With rpaths being set correctly, SHLIBPATH_VAR is not needed anymore.
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
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 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
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 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
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_CXX11
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_WERROR
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 ENABLE_THREADS
700 ENABLE_PTHREADS
701 LLVM_ENABLE_ZLIB
702 ENABLE_PIC
703 ENABLE_SHARED
704 ENABLE_EMBED_STDCXX
705 ENABLE_TIMESTAMPS
706 TARGETS_TO_BUILD
707 LLVM_ENUM_TARGETS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 BINUTILS_INCDIR
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HAVE_LIBZ
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 LLVM_PREFIX
775 LLVM_BINDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='tools/polly'
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855   # If the previous option needs an argument, assign it.
856   if test -n "$ac_prev"; then
857     eval $ac_prev=\$ac_option
858     ac_prev=
859     continue
860   fi
861
862   case $ac_option in
863   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864   *)    ac_optarg=yes ;;
865   esac
866
867   # Accept the important Cygnus configure options, so we can diagnose typos.
868
869   case $ac_dashdash$ac_option in
870   --)
871     ac_dashdash=yes ;;
872
873   -bindir | --bindir | --bindi | --bind | --bin | --bi)
874     ac_prev=bindir ;;
875   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876     bindir=$ac_optarg ;;
877
878   -build | --build | --buil | --bui | --bu)
879     ac_prev=build_alias ;;
880   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881     build_alias=$ac_optarg ;;
882
883   -cache-file | --cache-file | --cache-fil | --cache-fi \
884   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885     ac_prev=cache_file ;;
886   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888     cache_file=$ac_optarg ;;
889
890   --config-cache | -C)
891     cache_file=config.cache ;;
892
893   -datadir | --datadir | --datadi | --datad)
894     ac_prev=datadir ;;
895   -datadir=* | --datadir=* | --datadi=* | --datad=*)
896     datadir=$ac_optarg ;;
897
898   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899   | --dataroo | --dataro | --datar)
900     ac_prev=datarootdir ;;
901   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903     datarootdir=$ac_optarg ;;
904
905   -disable-* | --disable-*)
906     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907     # Reject names that are not valid shell variable names.
908     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
909       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910    { (exit 1); exit 1; }; }
911     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
912     eval enable_$ac_feature=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929    { (exit 1); exit 1; }; }
930     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931     eval enable_$ac_feature=\$ac_optarg ;;
932
933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935   | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939   | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941
942   -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945
946   -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952
953   -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955   -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957
958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961   | --ht=*)
962     htmldir=$ac_optarg ;;
963
964   -includedir | --includedir | --includedi | --included | --include \
965   | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968   | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970
971   -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975
976   -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980
981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982   | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985   | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987
988   -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992
993   -localstatedir | --localstatedir | --localstatedi | --localstated \
994   | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999
1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004
1005   -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012
1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016
1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019   | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025
1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030
1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032   | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037
1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039   | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044
1045   -program-transform-name | --program-transform-name \
1046   | --program-transform-nam | --program-transform-na \
1047   | --program-transform-n | --program-transform- \
1048   | --program-transform | --program-transfor \
1049   | --program-transfo | --program-transf \
1050   | --program-trans | --program-tran \
1051   | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053   -program-transform-name=* | --program-transform-name=* \
1054   | --program-transform-nam=* | --program-transform-na=* \
1055   | --program-transform-n=* | --program-transform-=* \
1056   | --program-transform=* | --program-transfor=* \
1057   | --program-transfo=* | --program-transf=* \
1058   | --program-trans=* | --program-tran=* \
1059   | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061
1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066
1067   -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071
1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073   | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075
1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079   | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081
1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084   | --sharedst | --shareds | --shared | --share | --shar \
1085   | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090   | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092
1093   -site | --site | --sit)
1094     ac_prev=site ;;
1095   -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097
1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102
1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104   | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109
1110   -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114
1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117
1118   -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120
1121   -with-* | --with-*)
1122     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1125       { echo "$as_me: error: invalid package name: $ac_package" >&2
1126    { (exit 1); exit 1; }; }
1127     ac_package=`echo $ac_package| sed 's/-/_/g'`
1128     eval with_$ac_package=\$ac_optarg ;;
1129
1130   -without-* | --without-*)
1131     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134       { echo "$as_me: error: invalid package name: $ac_package" >&2
1135    { (exit 1); exit 1; }; }
1136     ac_package=`echo $ac_package | sed 's/-/_/g'`
1137     eval with_$ac_package=no ;;
1138
1139   --x)
1140     # Obsolete; use --with-x.
1141     with_x=yes ;;
1142
1143   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144   | --x-incl | --x-inc | --x-in | --x-i)
1145     ac_prev=x_includes ;;
1146   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148     x_includes=$ac_optarg ;;
1149
1150   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152     ac_prev=x_libraries ;;
1153   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155     x_libraries=$ac_optarg ;;
1156
1157   -*) { echo "$as_me: error: unrecognized option: $ac_option
1158 Try \`$0 --help' for more information." >&2
1159    { (exit 1); exit 1; }; }
1160     ;;
1161
1162   *=*)
1163     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167    { (exit 1); exit 1; }; }
1168     eval $ac_envvar=\$ac_optarg
1169     export $ac_envvar ;;
1170
1171   *)
1172     # FIXME: should be removed in autoconf 3.0.
1173     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177     ;;
1178
1179   esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184   { echo "$as_me: error: missing argument to $ac_option" >&2
1185    { (exit 1); exit 1; }; }
1186 fi
1187
1188 # Be sure to have absolute directory names.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   case $ac_val in
1196     [\\/$]* | ?:[\\/]* )  continue;;
1197     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198   esac
1199   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200    { (exit 1); exit 1; }; }
1201 done
1202
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1209
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212   if test "x$build_alias" = x; then
1213     cross_compiling=maybe
1214     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215     If a cross compiler is detected then cross compile mode will be used." >&2
1216   elif test "x$build_alias" != "x$host_alias"; then
1217     cross_compiling=yes
1218   fi
1219 fi
1220
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224 test "$silent" = yes && exec 6>/dev/null
1225
1226
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230   { echo "$as_me: error: Working directory cannot be determined" >&2
1231    { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233   { echo "$as_me: error: pwd does not report name of working directory" >&2
1234    { (exit 1); exit 1; }; }
1235
1236
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239   ac_srcdir_defaulted=yes
1240   # Try the directory containing this script, then the parent directory.
1241   ac_confdir=`$as_dirname -- "$0" ||
1242 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243          X"$0" : 'X\(//\)[^/]' \| \
1244          X"$0" : 'X\(//\)$' \| \
1245          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 echo X"$0" |
1247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248             s//\1/
1249             q
1250           }
1251           /^X\(\/\/\)[^/].*/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\).*/{
1260             s//\1/
1261             q
1262           }
1263           s/.*/./; q'`
1264   srcdir=$ac_confdir
1265   if test ! -r "$srcdir/$ac_unique_file"; then
1266     srcdir=..
1267   fi
1268 else
1269   ac_srcdir_defaulted=no
1270 fi
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1279    { (exit 1); exit 1; }; }
1280         pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283   srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_env_${ac_var}_value=\$${ac_var}
1294   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302   # Omit some internal or obsolete options to make the list less imposing.
1303   # This message is too long to be a string in the A/UX 3.1 sh.
1304   cat <<_ACEOF
1305 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315   -h, --help              display this help and exit
1316       --help=short        display options specific to this package
1317       --help=recursive    display the short help of all the included packages
1318   -V, --version           display version information and exit
1319   -q, --quiet, --silent   do not print \`checking...' messages
1320       --cache-file=FILE   cache test results in FILE [disabled]
1321   -C, --config-cache      alias for \`--cache-file=config.cache'
1322   -n, --no-create         do not create output files
1323       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326   --prefix=PREFIX         install architecture-independent files in PREFIX
1327                           [$ac_default_prefix]
1328   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329                           [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339   --bindir=DIR           user executables [EPREFIX/bin]
1340   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1341   --libexecdir=DIR       program executables [EPREFIX/libexec]
1342   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1343   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1344   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1345   --libdir=DIR           object code libraries [EPREFIX/lib]
1346   --includedir=DIR       C header files [PREFIX/include]
1347   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1348   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1349   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1350   --infodir=DIR          info documentation [DATAROOTDIR/info]
1351   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1352   --mandir=DIR           man documentation [DATAROOTDIR/man]
1353   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1354   --htmldir=DIR          html documentation [DOCDIR]
1355   --dvidir=DIR           dvi documentation [DOCDIR]
1356   --pdfdir=DIR           pdf documentation [DOCDIR]
1357   --psdir=DIR            ps documentation [DOCDIR]
1358 _ACEOF
1359
1360   cat <<\_ACEOF
1361
1362 System types:
1363   --build=BUILD     configure for building on BUILD [guessed]
1364   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365   --target=TARGET   configure for building compilers for TARGET [HOST]
1366 _ACEOF
1367 fi
1368
1369 if test -n "$ac_init_help"; then
1370   case $ac_init_help in
1371      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1372    esac
1373   cat <<\_ACEOF
1374
1375 Optional Features:
1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378   --enable-polly          Use polly if available (default is YES)
1379   --enable-libcpp         Use libc++ if available (default is NO)
1380   --enable-cxx11          Use c++11 if available (default is NO)
1381   --enable-optimized      Compile with optimizations enabled (default is NO)
1382   --enable-profiling      Compile with profiling enabled (default is NO)
1383   --enable-assertions     Compile with assertion checks enabled (default is
1384                           YES)
1385   --enable-werror         Compile with -Werror enabled (default is NO)
1386   --enable-expensive-checks
1387                           Compile with expensive debug checks enabled (default
1388                           is NO)
1389   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1390                           NO)
1391   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1392                           optimization is on and YES if it's off)
1393   --enable-jit            Enable Just In Time Compiling (default is YES)
1394   --enable-docs           Build documents (default is YES)
1395   --enable-doxygen        Build doxygen documentation (default is NO)
1396   --enable-threads        Use threads if available (default is YES)
1397   --enable-pthreads       Use pthreads if available (default is YES)
1398   --enable-zlib           Use zlib for compression/decompression if available
1399                           (default is YES)
1400   --enable-pic            Build LLVM with Position Independent Code (default
1401                           is YES)
1402   --enable-shared         Build a shared library and link tools against it
1403                           (default is NO)
1404   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1405                           Win32 DLL (default is YES)
1406   --enable-timestamps     Enable embedding timestamp information in build
1407                           (default is YES)
1408   --enable-targets        Build specific host targets: all or
1409                           target1,target2,... Valid targets are: host, x86,
1410                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1411                           xcore, msp430, nvptx, systemz, r600, and cpp
1412                           (default=all)
1413   --enable-bindings       Build specific language bindings:
1414                           all,auto,none,{binding-name} (default=auto)
1415   --enable-terminfo       Query the terminfo database if available (default is
1416                           YES)
1417   --enable-libffi         Check for the presence of libffi (default is NO)
1418   --enable-ltdl-install   install libltdl
1419
1420 Optional Packages:
1421   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1422   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1423   --with-llvmsrc          Location of LLVM Source Code
1424   --with-llvmobj          Location of LLVM Object Code
1425   --with-optimize-option  Select the compiler options to use for optimized
1426                           builds
1427   --with-extra-options    Specify additional options to compile LLVM with
1428   --with-extra-ld-options Specify additional options to link LLVM with
1429   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1430                           is stdlib)
1431   --with-clang-resource-dir
1432                           Relative directory from the Clang binary for
1433                           resource files
1434   --with-c-include-dirs   Colon separated list of directories clang will
1435                           search for headers
1436   --with-gcc-toolchain    Directory where gcc is installed.
1437   --with-binutils-include Specify path to binutils/include/ containing
1438                           plugin-api.h file for gold plugin.
1439   --with-bug-report-url   Specify the URL where bug reports should be
1440                           submitted (default=http://llvm.org/bugs/)
1441   --with-tclinclude       directory where tcl headers are
1442   --with-udis86=<path>    Use udis86 external x86 disassembler library
1443   --with-oprofile=<prefix>
1444                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1445
1446 Some influential environment variables:
1447   CC          C compiler command
1448   CFLAGS      C compiler flags
1449   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450               nonstandard directory <lib dir>
1451   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452               you have headers in a nonstandard directory <include dir>
1453   CXX         C++ compiler command
1454   CXXFLAGS    C++ compiler flags
1455   CPP         C preprocessor
1456
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1459
1460 Report bugs to <bugs@yourdomain>.
1461 _ACEOF
1462 ac_status=$?
1463 fi
1464
1465 if test "$ac_init_help" = "recursive"; then
1466   # If there are subdirs, report their specific --help.
1467   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468     test -d "$ac_dir" || continue
1469     ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1475   # A ".." for each directory in $ac_dir_suffix.
1476   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1477   case $ac_top_builddir_sub in
1478   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480   esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488   .)  # We are building in place.
1489     ac_srcdir=.
1490     ac_top_srcdir=$ac_top_builddir_sub
1491     ac_abs_top_srcdir=$ac_pwd ;;
1492   [\\/]* | ?:[\\/]* )  # Absolute name.
1493     ac_srcdir=$srcdir$ac_dir_suffix;
1494     ac_top_srcdir=$srcdir
1495     ac_abs_top_srcdir=$srcdir ;;
1496   *) # Relative name.
1497     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498     ac_top_srcdir=$ac_top_build_prefix$srcdir
1499     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503     cd "$ac_dir" || { ac_status=$?; continue; }
1504     # Check for guested configure.
1505     if test -f "$ac_srcdir/configure.gnu"; then
1506       echo &&
1507       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508     elif test -f "$ac_srcdir/configure"; then
1509       echo &&
1510       $SHELL "$ac_srcdir/configure" --help=recursive
1511     else
1512       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513     fi || ac_status=$?
1514     cd "$ac_pwd" || { ac_status=$?; break; }
1515   done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520   cat <<\_ACEOF
1521 [SAMPLE] configure [x.xx]
1522 generated by GNU Autoconf 2.60
1523
1524 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1525 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529   exit
1530 fi
1531 cat >config.log <<_ACEOF
1532 This file contains any messages produced by compilers while
1533 running configure, to aid debugging if configure makes a mistake.
1534
1535 It was created by [SAMPLE] $as_me [x.xx], which was
1536 generated by GNU Autoconf 2.60.  Invocation command line was
1537
1538   $ $0 $@
1539
1540 _ACEOF
1541 exec 5>>config.log
1542 {
1543 cat <<_ASUNAME
1544 ## --------- ##
1545 ## Platform. ##
1546 ## --------- ##
1547
1548 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1549 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1550 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1551 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1552 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1553
1554 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1555 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1556
1557 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1558 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1559 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1560 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1561 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1562 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1563 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1564
1565 _ASUNAME
1566
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1569 do
1570   IFS=$as_save_IFS
1571   test -z "$as_dir" && as_dir=.
1572   echo "PATH: $as_dir"
1573 done
1574 IFS=$as_save_IFS
1575
1576 } >&5
1577
1578 cat >&5 <<_ACEOF
1579
1580
1581 ## ----------- ##
1582 ## Core tests. ##
1583 ## ----------- ##
1584
1585 _ACEOF
1586
1587
1588 # Keep a trace of the command line.
1589 # Strip out --no-create and --no-recursion so they do not pile up.
1590 # Strip out --silent because we don't want to record it for future runs.
1591 # Also quote any args containing shell meta-characters.
1592 # Make two passes to allow for proper duplicate-argument suppression.
1593 ac_configure_args=
1594 ac_configure_args0=
1595 ac_configure_args1=
1596 ac_must_keep_next=false
1597 for ac_pass in 1 2
1598 do
1599   for ac_arg
1600   do
1601     case $ac_arg in
1602     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1603     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1604     | -silent | --silent | --silen | --sile | --sil)
1605       continue ;;
1606     *\'*)
1607       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1608     esac
1609     case $ac_pass in
1610     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1611     2)
1612       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1613       if test $ac_must_keep_next = true; then
1614         ac_must_keep_next=false # Got value, back to normal.
1615       else
1616         case $ac_arg in
1617           *=* | --config-cache | -C | -disable-* | --disable-* \
1618           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1619           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1620           | -with-* | --with-* | -without-* | --without-* | --x)
1621             case "$ac_configure_args0 " in
1622               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1623             esac
1624             ;;
1625           -* ) ac_must_keep_next=true ;;
1626         esac
1627       fi
1628       ac_configure_args="$ac_configure_args '$ac_arg'"
1629       ;;
1630     esac
1631   done
1632 done
1633 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1634 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1635
1636 # When interrupted or exit'd, cleanup temporary files, and complete
1637 # config.log.  We remove comments because anyway the quotes in there
1638 # would cause problems or look ugly.
1639 # WARNING: Use '\'' to represent an apostrophe within the trap.
1640 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1641 trap 'exit_status=$?
1642   # Save into config.log some information that might help in debugging.
1643   {
1644     echo
1645
1646     cat <<\_ASBOX
1647 ## ---------------- ##
1648 ## Cache variables. ##
1649 ## ---------------- ##
1650 _ASBOX
1651     echo
1652     # The following way of writing the cache mishandles newlines in values,
1653 (
1654   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1655     eval ac_val=\$$ac_var
1656     case $ac_val in #(
1657     *${as_nl}*)
1658       case $ac_var in #(
1659       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1660 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1661       esac
1662       case $ac_var in #(
1663       _ | IFS | as_nl) ;; #(
1664       *) $as_unset $ac_var ;;
1665       esac ;;
1666     esac
1667   done
1668   (set) 2>&1 |
1669     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1670     *${as_nl}ac_space=\ *)
1671       sed -n \
1672         "s/'\''/'\''\\\\'\'''\''/g;
1673           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1674       ;; #(
1675     *)
1676       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1677       ;;
1678     esac |
1679     sort
1680 )
1681     echo
1682
1683     cat <<\_ASBOX
1684 ## ----------------- ##
1685 ## Output variables. ##
1686 ## ----------------- ##
1687 _ASBOX
1688     echo
1689     for ac_var in $ac_subst_vars
1690     do
1691       eval ac_val=\$$ac_var
1692       case $ac_val in
1693       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694       esac
1695       echo "$ac_var='\''$ac_val'\''"
1696     done | sort
1697     echo
1698
1699     if test -n "$ac_subst_files"; then
1700       cat <<\_ASBOX
1701 ## ------------------- ##
1702 ## File substitutions. ##
1703 ## ------------------- ##
1704 _ASBOX
1705       echo
1706       for ac_var in $ac_subst_files
1707       do
1708         eval ac_val=\$$ac_var
1709         case $ac_val in
1710         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711         esac
1712         echo "$ac_var='\''$ac_val'\''"
1713       done | sort
1714       echo
1715     fi
1716
1717     if test -s confdefs.h; then
1718       cat <<\_ASBOX
1719 ## ----------- ##
1720 ## confdefs.h. ##
1721 ## ----------- ##
1722 _ASBOX
1723       echo
1724       cat confdefs.h
1725       echo
1726     fi
1727     test "$ac_signal" != 0 &&
1728       echo "$as_me: caught signal $ac_signal"
1729     echo "$as_me: exit $exit_status"
1730   } >&5
1731   rm -f core *.core core.conftest.* &&
1732     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1733     exit $exit_status
1734 ' 0
1735 for ac_signal in 1 2 13 15; do
1736   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1737 done
1738 ac_signal=0
1739
1740 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1741 rm -f -r conftest* confdefs.h
1742
1743 # Predefined preprocessor variables.
1744
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_NAME "$PACKAGE_NAME"
1747 _ACEOF
1748
1749
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1752 _ACEOF
1753
1754
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1757 _ACEOF
1758
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_STRING "$PACKAGE_STRING"
1762 _ACEOF
1763
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1767 _ACEOF
1768
1769
1770 # Let the site file select an alternate cache file if it wants to.
1771 # Prefer explicitly selected file to automatically selected ones.
1772 if test -n "$CONFIG_SITE"; then
1773   set x "$CONFIG_SITE"
1774 elif test "x$prefix" != xNONE; then
1775   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1776 else
1777   set x "$ac_default_prefix/share/config.site" \
1778         "$ac_default_prefix/etc/config.site"
1779 fi
1780 shift
1781 for ac_site_file
1782 do
1783   if test -r "$ac_site_file"; then
1784     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1785 echo "$as_me: loading site script $ac_site_file" >&6;}
1786     sed 's/^/| /' "$ac_site_file" >&5
1787     . "$ac_site_file"
1788   fi
1789 done
1790
1791 if test -r "$cache_file"; then
1792   # Some versions of bash will fail to source /dev/null (special
1793   # files actually), so we avoid doing that.
1794   if test -f "$cache_file"; then
1795     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1796 echo "$as_me: loading cache $cache_file" >&6;}
1797     case $cache_file in
1798       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1799       *)                      . "./$cache_file";;
1800     esac
1801   fi
1802 else
1803   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1804 echo "$as_me: creating cache $cache_file" >&6;}
1805   >$cache_file
1806 fi
1807
1808 # Check that the precious variables saved in the cache have kept the same
1809 # value.
1810 ac_cache_corrupted=false
1811 for ac_var in $ac_precious_vars; do
1812   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1813   eval ac_new_set=\$ac_env_${ac_var}_set
1814   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1815   eval ac_new_val=\$ac_env_${ac_var}_value
1816   case $ac_old_set,$ac_new_set in
1817     set,)
1818       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1819 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1820       ac_cache_corrupted=: ;;
1821     ,set)
1822       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1823 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1824       ac_cache_corrupted=: ;;
1825     ,);;
1826     *)
1827       if test "x$ac_old_val" != "x$ac_new_val"; then
1828         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1829 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1830         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1831 echo "$as_me:   former value:  $ac_old_val" >&2;}
1832         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1833 echo "$as_me:   current value: $ac_new_val" >&2;}
1834         ac_cache_corrupted=:
1835       fi;;
1836   esac
1837   # Pass precious variables to config.status.
1838   if test "$ac_new_set" = set; then
1839     case $ac_new_val in
1840     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1841     *) ac_arg=$ac_var=$ac_new_val ;;
1842     esac
1843     case " $ac_configure_args " in
1844       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1845       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1846     esac
1847   fi
1848 done
1849 if $ac_cache_corrupted; then
1850   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1851 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1852   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1853 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1854    { (exit 1); exit 1; }; }
1855 fi
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881 ac_ext=c
1882 ac_cpp='$CPP $CPPFLAGS'
1883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1886
1887
1888
1889 LLVM_SRC_ROOT="../.."
1890 LLVM_OBJ_ROOT="../.."
1891
1892 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1893 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1894
1895
1896 # Check whether --with-llvmsrc was given.
1897 if test "${with_llvmsrc+set}" = set; then
1898   withval=$with_llvmsrc; llvm_src="$withval"
1899 else
1900   llvm_src="$LLVM_ABS_SRC_ROOT"
1901 fi
1902
1903   LLVM_SRC=$llvm_src
1904
1905
1906 # Check whether --with-llvmobj was given.
1907 if test "${with_llvmobj+set}" = set; then
1908   withval=$with_llvmobj; llvm_obj="$withval"
1909 else
1910   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1911 fi
1912
1913   LLVM_OBJ=$llvm_obj
1914
1915   ac_config_commands="$ac_config_commands setup"
1916
1917
1918
1919 { echo "$as_me:$LINENO: checking llvm-config" >&5
1920 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1921 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1922 if ! test -f "$llvm_config_path" ; then
1923    llvm_config_path="no"
1924 fi
1925 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1926 echo "${ECHO_T}$llvm_config_path" >&6; }
1927
1928 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1929 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1930 if test "$llvm_config_path" != no ; then
1931   llvm_package_version=`$llvm_config_path --version`
1932 else
1933   llvm_package_version="unknown";
1934 fi
1935 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1936 echo "${ECHO_T}$llvm_package_version" >&6; }
1937 LLVM_VERSION=$llvm_package_version
1938
1939
1940
1941
1942 ac_aux_dir=
1943 for ac_dir in autoconf "$srcdir"/autoconf; do
1944   if test -f "$ac_dir/install-sh"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/install-sh -c"
1947     break
1948   elif test -f "$ac_dir/install.sh"; then
1949     ac_aux_dir=$ac_dir
1950     ac_install_sh="$ac_aux_dir/install.sh -c"
1951     break
1952   elif test -f "$ac_dir/shtool"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/shtool install -c"
1955     break
1956   fi
1957 done
1958 if test -z "$ac_aux_dir"; then
1959   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1960 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1961    { (exit 1); exit 1; }; }
1962 fi
1963
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1971
1972
1973
1974
1975 ac_ext=c
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981   for ac_prog in clang llvm-gcc gcc
1982   do
1983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   if test -n "$CC"; then
1991   ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996   IFS=$as_save_IFS
1997   test -z "$as_dir" && as_dir=.
1998   for ac_exec_ext in '' $ac_executable_extensions; do
1999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2000     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002     break 2
2003   fi
2004 done
2005 done
2006 IFS=$as_save_IFS
2007
2008 fi
2009 fi
2010 CC=$ac_cv_prog_CC
2011 if test -n "$CC"; then
2012   { echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6; }
2014 else
2015   { echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6; }
2017 fi
2018
2019
2020     test -n "$CC" && break
2021   done
2022 fi
2023 if test -z "$CC"; then
2024   ac_ct_CC=$CC
2025   for ac_prog in clang llvm-gcc gcc
2026 do
2027   # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   if test -n "$ac_ct_CC"; then
2035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2044     ac_cv_prog_ac_ct_CC="$ac_prog"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050 IFS=$as_save_IFS
2051
2052 fi
2053 fi
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6; }
2058 else
2059   { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2061 fi
2062
2063
2064   test -n "$ac_ct_CC" && break
2065 done
2066
2067   if test "x$ac_ct_CC" = x; then
2068     CC=""
2069   else
2070     case $cross_compiling:$ac_tool_warned in
2071 yes:)
2072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2073 whose name does not start with the host triplet.  If you think this
2074 configuration is useful to you, please write to autoconf@gnu.org." >&5
2075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2076 whose name does not start with the host triplet.  If you think this
2077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2078 ac_tool_warned=yes ;;
2079 esac
2080     CC=$ac_ct_CC
2081   fi
2082 fi
2083
2084
2085 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: no acceptable C compiler found in \$PATH
2088 See \`config.log' for more details." >&2;}
2089    { (exit 1); exit 1; }; }
2090
2091 # Provide some information about the compiler.
2092 echo "$as_me:$LINENO: checking for C compiler version" >&5
2093 ac_compiler=`set X $ac_compile; echo $2`
2094 { (ac_try="$ac_compiler --version >&5"
2095 case "(($ac_try" in
2096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097   *) ac_try_echo=$ac_try;;
2098 esac
2099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2100   (eval "$ac_compiler --version >&5") 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }
2104 { (ac_try="$ac_compiler -v >&5"
2105 case "(($ac_try" in
2106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107   *) ac_try_echo=$ac_try;;
2108 esac
2109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2110   (eval "$ac_compiler -v >&5") 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }
2114 { (ac_try="$ac_compiler -V >&5"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120   (eval "$ac_compiler -V >&5") 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }
2124
2125 cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131
2132 int
2133 main ()
2134 {
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 ac_clean_files_save=$ac_clean_files
2141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2142 # Try to create an executable without -o first, disregard a.out.
2143 # It will help us diagnose broken compilers, and finding out an intuition
2144 # of exeext.
2145 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2146 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 #
2149 # List of possible output files, starting from the most likely.
2150 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2151 # only as a last resort.  b.out is created by i960 compilers.
2152 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2153 #
2154 # The IRIX 6 linker writes into existing files which may not be
2155 # executable, retaining their permissions.  Remove them first so a
2156 # subsequent execution test works.
2157 ac_rmfiles=
2158 for ac_file in $ac_files
2159 do
2160   case $ac_file in
2161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2162     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2163   esac
2164 done
2165 rm -f $ac_rmfiles
2166
2167 if { (ac_try="$ac_link_default"
2168 case "(($ac_try" in
2169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170   *) ac_try_echo=$ac_try;;
2171 esac
2172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2173   (eval "$ac_link_default") 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; then
2177   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2178 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2179 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2180 # so that the user can short-circuit this test for compilers unknown to
2181 # Autoconf.
2182 for ac_file in $ac_files
2183 do
2184   test -f "$ac_file" || continue
2185   case $ac_file in
2186     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2187         ;;
2188     [ab].out )
2189         # We found the default executable, but exeext='' is most
2190         # certainly right.
2191         break;;
2192     *.* )
2193         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2194         then :; else
2195            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196         fi
2197         # We set ac_cv_exeext here because the later test for it is not
2198         # safe: cross compilers may not add the suffix if given an `-o'
2199         # argument, so we may need to know it at that point already.
2200         # Even if this section looks crufty: it has the advantage of
2201         # actually working.
2202         break;;
2203     * )
2204         break;;
2205   esac
2206 done
2207 test "$ac_cv_exeext" = no && ac_cv_exeext=
2208
2209 else
2210   echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217    { (exit 77); exit 77; }; }
2218 fi
2219
2220 ac_exeext=$ac_cv_exeext
2221 { echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6; }
2223
2224 # Check that the compiler produces executables we can run.  If not, either
2225 # the compiler is broken, or we cross compile.
2226 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231   if { ac_try='./$ac_file'
2232   { (case "(($ac_try" in
2233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234   *) ac_try_echo=$ac_try;;
2235 esac
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237   (eval "$ac_try") 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; }; then
2241     cross_compiling=no
2242   else
2243     if test "$cross_compiling" = maybe; then
2244         cross_compiling=yes
2245     else
2246         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2247 If you meant to cross compile, use \`--host'.
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&2;}
2252    { (exit 1); exit 1; }; }
2253     fi
2254   fi
2255 fi
2256 { echo "$as_me:$LINENO: result: yes" >&5
2257 echo "${ECHO_T}yes" >&6; }
2258
2259 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260 ac_clean_files=$ac_clean_files_save
2261 # Check that the compiler produces executables we can run.  If not, either
2262 # the compiler is broken, or we cross compile.
2263 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2265 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266 echo "${ECHO_T}$cross_compiling" >&6; }
2267
2268 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2270 if { (ac_try="$ac_link"
2271 case "(($ac_try" in
2272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273   *) ac_try_echo=$ac_try;;
2274 esac
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276   (eval "$ac_link") 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; then
2280   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2281 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2282 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 # `rm'.
2284 for ac_file in conftest.exe conftest conftest.*; do
2285   test -f "$ac_file" || continue
2286   case $ac_file in
2287     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2288     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289           break;;
2290     * ) break;;
2291   esac
2292 done
2293 else
2294   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298    { (exit 1); exit 1; }; }
2299 fi
2300
2301 rm -f conftest$ac_cv_exeext
2302 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2304
2305 rm -f conftest.$ac_ext
2306 EXEEXT=$ac_cv_exeext
2307 ac_exeext=$EXEEXT
2308 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2310 if test "${ac_cv_objext+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h.  */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h.  */
2319
2320 int
2321 main ()
2322 {
2323
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 rm -f conftest.o conftest.obj
2329 if { (ac_try="$ac_compile"
2330 case "(($ac_try" in
2331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332   *) ac_try_echo=$ac_try;;
2333 esac
2334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2335   (eval "$ac_compile") 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; then
2339   for ac_file in conftest.o conftest.obj conftest.*; do
2340   test -f "$ac_file" || continue;
2341   case $ac_file in
2342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2343     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2344        break;;
2345   esac
2346 done
2347 else
2348   echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&2;}
2355    { (exit 1); exit 1; }; }
2356 fi
2357
2358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 fi
2360 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2361 echo "${ECHO_T}$ac_cv_objext" >&6; }
2362 OBJEXT=$ac_cv_objext
2363 ac_objext=$OBJEXT
2364 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2365 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h.  */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h.  */
2375
2376 int
2377 main ()
2378 {
2379 #ifndef __GNUC__
2380        choke me
2381 #endif
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (ac_try="$ac_compile"
2389 case "(($ac_try" in
2390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391   *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394   (eval "$ac_compile") 2>conftest.er1
2395   ac_status=$?
2396   grep -v '^ *+' conftest.er1 >conftest.err
2397   rm -f conftest.er1
2398   cat conftest.err >&5
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); } &&
2401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2402   { (case "(($ac_try" in
2403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404   *) ac_try_echo=$ac_try;;
2405 esac
2406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407   (eval "$ac_try") 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; } &&
2411          { ac_try='test -s conftest.$ac_objext'
2412   { (case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_try") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_compiler_gnu=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426         ac_compiler_gnu=no
2427 fi
2428
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2431
2432 fi
2433 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2434 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2435 GCC=`test $ac_compiler_gnu = yes && echo yes`
2436 ac_test_CFLAGS=${CFLAGS+set}
2437 ac_save_CFLAGS=$CFLAGS
2438 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2439 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_cc_g+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   ac_save_c_werror_flag=$ac_c_werror_flag
2444    ac_c_werror_flag=yes
2445    ac_cv_prog_cc_g=no
2446    CFLAGS="-g"
2447    cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453
2454 int
2455 main ()
2456 {
2457
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 rm -f conftest.$ac_objext
2463 if { (ac_try="$ac_compile"
2464 case "(($ac_try" in
2465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466   *) ac_try_echo=$ac_try;;
2467 esac
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469   (eval "$ac_compile") 2>conftest.er1
2470   ac_status=$?
2471   grep -v '^ *+' conftest.er1 >conftest.err
2472   rm -f conftest.er1
2473   cat conftest.err >&5
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } &&
2476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2477   { (case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482   (eval "$ac_try") 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; } &&
2486          { ac_try='test -s conftest.$ac_objext'
2487   { (case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492   (eval "$ac_try") 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }; }; then
2496   ac_cv_prog_cc_g=yes
2497 else
2498   echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500
2501         CFLAGS=""
2502       cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (ac_try="$ac_compile"
2519 case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_compile") 2>conftest.er1
2525   ac_status=$?
2526   grep -v '^ *+' conftest.er1 >conftest.err
2527   rm -f conftest.er1
2528   cat conftest.err >&5
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } &&
2531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2532   { (case "(($ac_try" in
2533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534   *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537   (eval "$ac_try") 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; } &&
2541          { ac_try='test -s conftest.$ac_objext'
2542   { (case "(($ac_try" in
2543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544   *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547   (eval "$ac_try") 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }; }; then
2551   :
2552 else
2553   echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2555
2556         ac_c_werror_flag=$ac_save_c_werror_flag
2557          CFLAGS="-g"
2558          cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568
2569   ;
2570   return 0;
2571 }
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (ac_try="$ac_compile"
2575 case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580   (eval "$ac_compile") 2>conftest.er1
2581   ac_status=$?
2582   grep -v '^ *+' conftest.er1 >conftest.err
2583   rm -f conftest.er1
2584   cat conftest.err >&5
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); } &&
2587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2588   { (case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_try") 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (case "(($ac_try" in
2599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600   *) ac_try_echo=$ac_try;;
2601 esac
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603   (eval "$ac_try") 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; }; then
2607   ac_cv_prog_cc_g=yes
2608 else
2609   echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612
2613 fi
2614
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 fi
2617
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622    ac_c_werror_flag=$ac_save_c_werror_flag
2623 fi
2624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2625 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2626 if test "$ac_test_CFLAGS" = set; then
2627   CFLAGS=$ac_save_CFLAGS
2628 elif test $ac_cv_prog_cc_g = yes; then
2629   if test "$GCC" = yes; then
2630     CFLAGS="-g -O2"
2631   else
2632     CFLAGS="-g"
2633   fi
2634 else
2635   if test "$GCC" = yes; then
2636     CFLAGS="-O2"
2637   else
2638     CFLAGS=
2639   fi
2640 fi
2641 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2642 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_cc_c89+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   ac_cv_prog_cc_c89=no
2647 ac_save_CC=$CC
2648 cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654 #include <stdarg.h>
2655 #include <stdio.h>
2656 #include <sys/types.h>
2657 #include <sys/stat.h>
2658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2659 struct buf { int x; };
2660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2661 static char *e (p, i)
2662      char **p;
2663      int i;
2664 {
2665   return p[i];
2666 }
2667 static char *f (char * (*g) (char **, int), char **p, ...)
2668 {
2669   char *s;
2670   va_list v;
2671   va_start (v,p);
2672   s = g (p, va_arg (v,int));
2673   va_end (v);
2674   return s;
2675 }
2676
2677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2678    function prototypes and stuff, but not '\xHH' hex character constants.
2679    These don't provoke an error unfortunately, instead are silently treated
2680    as 'x'.  The following induces an error, until -std is added to get
2681    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2682    array size at least.  It's necessary to write '\x00'==0 to get something
2683    that's true only with -std.  */
2684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2685
2686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2687    inside strings and character constants.  */
2688 #define FOO(x) 'x'
2689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2690
2691 int test (int i, double x);
2692 struct s1 {int (*f) (int a);};
2693 struct s2 {int (*f) (double a);};
2694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2695 int argc;
2696 char **argv;
2697 int
2698 main ()
2699 {
2700 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2706         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 do
2708   CC="$ac_save_CC $ac_arg"
2709   rm -f conftest.$ac_objext
2710 if { (ac_try="$ac_compile"
2711 case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_compile") 2>conftest.er1
2717   ac_status=$?
2718   grep -v '^ *+' conftest.er1 >conftest.err
2719   rm -f conftest.er1
2720   cat conftest.err >&5
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); } &&
2723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2724   { (case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_try") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; } &&
2733          { ac_try='test -s conftest.$ac_objext'
2734   { (case "(($ac_try" in
2735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736   *) ac_try_echo=$ac_try;;
2737 esac
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739   (eval "$ac_try") 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; }; then
2743   ac_cv_prog_cc_c89=$ac_arg
2744 else
2745   echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2747
2748
2749 fi
2750
2751 rm -f core conftest.err conftest.$ac_objext
2752   test "x$ac_cv_prog_cc_c89" != "xno" && break
2753 done
2754 rm -f conftest.$ac_ext
2755 CC=$ac_save_CC
2756
2757 fi
2758 # AC_CACHE_VAL
2759 case "x$ac_cv_prog_cc_c89" in
2760   x)
2761     { echo "$as_me:$LINENO: result: none needed" >&5
2762 echo "${ECHO_T}none needed" >&6; } ;;
2763   xno)
2764     { echo "$as_me:$LINENO: result: unsupported" >&5
2765 echo "${ECHO_T}unsupported" >&6; } ;;
2766   *)
2767     CC="$CC $ac_cv_prog_cc_c89"
2768     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2769 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2770 esac
2771
2772
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778
2779 ac_ext=cpp
2780 ac_cpp='$CXXCPP $CPPFLAGS'
2781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2784 if test -z "$CXX"; then
2785   if test -n "$CCC"; then
2786     CXX=$CCC
2787   else
2788     if test -n "$ac_tool_prefix"; then
2789   for ac_prog in clang++ llvm-g++ g++
2790   do
2791     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_CXX+set}" = set; then
2796   echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798   if test -n "$CXX"; then
2799   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806   for ac_exec_ext in '' $ac_executable_extensions; do
2807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2808     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810     break 2
2811   fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 CXX=$ac_cv_prog_CXX
2819 if test -n "$CXX"; then
2820   { echo "$as_me:$LINENO: result: $CXX" >&5
2821 echo "${ECHO_T}$CXX" >&6; }
2822 else
2823   { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2825 fi
2826
2827
2828     test -n "$CXX" && break
2829   done
2830 fi
2831 if test -z "$CXX"; then
2832   ac_ct_CXX=$CXX
2833   for ac_prog in clang++ llvm-g++ g++
2834 do
2835   # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy $ac_prog; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   if test -n "$ac_ct_CXX"; then
2843   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2852     ac_cv_prog_ac_ct_CXX="$ac_prog"
2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2863 if test -n "$ac_ct_CXX"; then
2864   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2865 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2866 else
2867   { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2869 fi
2870
2871
2872   test -n "$ac_ct_CXX" && break
2873 done
2874
2875   if test "x$ac_ct_CXX" = x; then
2876     CXX="g++"
2877   else
2878     case $cross_compiling:$ac_tool_warned in
2879 yes:)
2880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet.  If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&5
2883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884 whose name does not start with the host triplet.  If you think this
2885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888     CXX=$ac_ct_CXX
2889   fi
2890 fi
2891
2892   fi
2893 fi
2894 # Provide some information about the compiler.
2895 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2896 ac_compiler=`set X $ac_compile; echo $2`
2897 { (ac_try="$ac_compiler --version >&5"
2898 case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903   (eval "$ac_compiler --version >&5") 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }
2907 { (ac_try="$ac_compiler -v >&5"
2908 case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_compiler -v >&5") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }
2917 { (ac_try="$ac_compiler -V >&5"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_compiler -V >&5") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }
2927
2928 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2929 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2930 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2931   echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933   cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h.  */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h.  */
2939
2940 int
2941 main ()
2942 {
2943 #ifndef __GNUC__
2944        choke me
2945 #endif
2946
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (ac_try="$ac_compile"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_compile") 2>conftest.er1
2959   ac_status=$?
2960   grep -v '^ *+' conftest.er1 >conftest.err
2961   rm -f conftest.er1
2962   cat conftest.err >&5
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); } &&
2965          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2966   { (case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971   (eval "$ac_try") 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; } &&
2975          { ac_try='test -s conftest.$ac_objext'
2976   { (case "(($ac_try" in
2977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978   *) ac_try_echo=$ac_try;;
2979 esac
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981   (eval "$ac_try") 2>&5
2982   ac_status=$?
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); }; }; then
2985   ac_compiler_gnu=yes
2986 else
2987   echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990         ac_compiler_gnu=no
2991 fi
2992
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2995
2996 fi
2997 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2998 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2999 GXX=`test $ac_compiler_gnu = yes && echo yes`
3000 ac_test_CXXFLAGS=${CXXFLAGS+set}
3001 ac_save_CXXFLAGS=$CXXFLAGS
3002 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3003 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3004 if test "${ac_cv_prog_cxx_g+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3008    ac_cxx_werror_flag=yes
3009    ac_cv_prog_cxx_g=no
3010    CXXFLAGS="-g"
3011    cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017
3018 int
3019 main ()
3020 {
3021
3022   ;
3023   return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_compile") 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } &&
3040          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3041   { (case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_try") 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; } &&
3050          { ac_try='test -s conftest.$ac_objext'
3051   { (case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056   (eval "$ac_try") 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; }; then
3060   ac_cv_prog_cxx_g=yes
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065         CXXFLAGS=""
3066       cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072
3073 int
3074 main ()
3075 {
3076
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_compile") 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
3092   cat conftest.err >&5
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } &&
3095          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3096   { (case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_try") 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; } &&
3105          { ac_try='test -s conftest.$ac_objext'
3106   { (case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111   (eval "$ac_try") 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; }; then
3115   :
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3121          CXXFLAGS="-g"
3122          cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compile") 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } &&
3151          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3152   { (case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_try") 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; } &&
3161          { ac_try='test -s conftest.$ac_objext'
3162   { (case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167   (eval "$ac_try") 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; }; then
3171   ac_cv_prog_cxx_g=yes
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176
3177 fi
3178
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 fi
3181
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 fi
3184
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3187 fi
3188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3189 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3190 if test "$ac_test_CXXFLAGS" = set; then
3191   CXXFLAGS=$ac_save_CXXFLAGS
3192 elif test $ac_cv_prog_cxx_g = yes; then
3193   if test "$GXX" = yes; then
3194     CXXFLAGS="-g -O2"
3195   else
3196     CXXFLAGS="-g"
3197   fi
3198 else
3199   if test "$GXX" = yes; then
3200     CXXFLAGS="-O2"
3201   else
3202     CXXFLAGS=
3203   fi
3204 fi
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211 ac_ext=c
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3218 # On Suns, sometimes $CPP names a directory.
3219 if test -n "$CPP" && test -d "$CPP"; then
3220   CPP=
3221 fi
3222 if test -z "$CPP"; then
3223   if test "${ac_cv_prog_CPP+set}" = set; then
3224   echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226       # Double quotes because CPP needs to be expanded
3227     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3228     do
3229       ac_preproc_ok=false
3230 for ac_c_preproc_warn_flag in '' yes
3231 do
3232   # Use a header file that comes with gcc, so configuring glibc
3233   # with a fresh cross-compiler works.
3234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235   # <limits.h> exists even on freestanding compilers.
3236   # On the NeXT, cc -E runs the code through the compiler's parser,
3237   # not just through cpp. "Syntax error" is here to catch this case.
3238   cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244 #ifdef __STDC__
3245 # include <limits.h>
3246 #else
3247 # include <assert.h>
3248 #endif
3249                      Syntax error
3250 _ACEOF
3251 if { (ac_try="$ac_cpp conftest.$ac_ext"
3252 case "(($ac_try" in
3253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254   *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258   ac_status=$?
3259   grep -v '^ *+' conftest.er1 >conftest.err
3260   rm -f conftest.er1
3261   cat conftest.err >&5
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); } >/dev/null; then
3264   if test -s conftest.err; then
3265     ac_cpp_err=$ac_c_preproc_warn_flag
3266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3267   else
3268     ac_cpp_err=
3269   fi
3270 else
3271   ac_cpp_err=yes
3272 fi
3273 if test -z "$ac_cpp_err"; then
3274   :
3275 else
3276   echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279   # Broken: fails on valid input.
3280 continue
3281 fi
3282
3283 rm -f conftest.err conftest.$ac_ext
3284
3285   # OK, works on sane cases.  Now check whether nonexistent headers
3286   # can be detected and how.
3287   cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293 #include <ac_nonexistent.h>
3294 _ACEOF
3295 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302   ac_status=$?
3303   grep -v '^ *+' conftest.er1 >conftest.err
3304   rm -f conftest.er1
3305   cat conftest.err >&5
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); } >/dev/null; then
3308   if test -s conftest.err; then
3309     ac_cpp_err=$ac_c_preproc_warn_flag
3310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311   else
3312     ac_cpp_err=
3313   fi
3314 else
3315   ac_cpp_err=yes
3316 fi
3317 if test -z "$ac_cpp_err"; then
3318   # Broken: success on invalid input.
3319 continue
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324   # Passes both tests.
3325 ac_preproc_ok=:
3326 break
3327 fi
3328
3329 rm -f conftest.err conftest.$ac_ext
3330
3331 done
3332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3333 rm -f conftest.err conftest.$ac_ext
3334 if $ac_preproc_ok; then
3335   break
3336 fi
3337
3338     done
3339     ac_cv_prog_CPP=$CPP
3340
3341 fi
3342   CPP=$ac_cv_prog_CPP
3343 else
3344   ac_cv_prog_CPP=$CPP
3345 fi
3346 { echo "$as_me:$LINENO: result: $CPP" >&5
3347 echo "${ECHO_T}$CPP" >&6; }
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3350 do
3351   # Use a header file that comes with gcc, so configuring glibc
3352   # with a fresh cross-compiler works.
3353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354   # <limits.h> exists even on freestanding compilers.
3355   # On the NeXT, cc -E runs the code through the compiler's parser,
3356   # not just through cpp. "Syntax error" is here to catch this case.
3357   cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #ifdef __STDC__
3364 # include <limits.h>
3365 #else
3366 # include <assert.h>
3367 #endif
3368                      Syntax error
3369 _ACEOF
3370 if { (ac_try="$ac_cpp conftest.$ac_ext"
3371 case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3377   ac_status=$?
3378   grep -v '^ *+' conftest.er1 >conftest.err
3379   rm -f conftest.er1
3380   cat conftest.err >&5
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); } >/dev/null; then
3383   if test -s conftest.err; then
3384     ac_cpp_err=$ac_c_preproc_warn_flag
3385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386   else
3387     ac_cpp_err=
3388   fi
3389 else
3390   ac_cpp_err=yes
3391 fi
3392 if test -z "$ac_cpp_err"; then
3393   :
3394 else
3395   echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398   # Broken: fails on valid input.
3399 continue
3400 fi
3401
3402 rm -f conftest.err conftest.$ac_ext
3403
3404   # OK, works on sane cases.  Now check whether nonexistent headers
3405   # can be detected and how.
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #include <ac_nonexistent.h>
3413 _ACEOF
3414 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421   ac_status=$?
3422   grep -v '^ *+' conftest.er1 >conftest.err
3423   rm -f conftest.er1
3424   cat conftest.err >&5
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); } >/dev/null; then
3427   if test -s conftest.err; then
3428     ac_cpp_err=$ac_c_preproc_warn_flag
3429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3430   else
3431     ac_cpp_err=
3432   fi
3433 else
3434   ac_cpp_err=yes
3435 fi
3436 if test -z "$ac_cpp_err"; then
3437   # Broken: success on invalid input.
3438 continue
3439 else
3440   echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443   # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3446 fi
3447
3448 rm -f conftest.err conftest.$ac_ext
3449
3450 done
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then
3454   :
3455 else
3456   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3457 See \`config.log' for more details." >&5
3458 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3459 See \`config.log' for more details." >&2;}
3460    { (exit 1); exit 1; }; }
3461 fi
3462
3463 ac_ext=c
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468
3469
3470
3471
3472 # Check whether --enable-polly was given.
3473 if test "${enable_polly+set}" = set; then
3474   enableval=$enable_polly;
3475 else
3476   enableval=default
3477 fi
3478
3479 case "$enableval" in
3480   yes) ENABLE_POLLY=1
3481  ;;
3482   no)  ENABLE_POLLY=0
3483  ;;
3484   default) ENABLE_POLLY=1
3485  ;;
3486   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3487 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3488    { (exit 1); exit 1; }; } ;;
3489 esac
3490
3491
3492 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3493   LLVM_HAS_POLLY=1
3494
3495   subdirs="$subdirs tools/polly"
3496
3497 fi
3498
3499
3500 # Make sure we can run config.sub.
3501 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3502   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3503 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3504    { (exit 1); exit 1; }; }
3505
3506 { echo "$as_me:$LINENO: checking build system type" >&5
3507 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3508 if test "${ac_cv_build+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   ac_build_alias=$build_alias
3512 test "x$ac_build_alias" = x &&
3513   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3514 test "x$ac_build_alias" = x &&
3515   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3516 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3517    { (exit 1); exit 1; }; }
3518 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3519   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3520 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3521    { (exit 1); exit 1; }; }
3522
3523 fi
3524 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3525 echo "${ECHO_T}$ac_cv_build" >&6; }
3526 case $ac_cv_build in
3527 *-*-*) ;;
3528 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3529 echo "$as_me: error: invalid value of canonical build" >&2;}
3530    { (exit 1); exit 1; }; };;
3531 esac
3532 build=$ac_cv_build
3533 ac_save_IFS=$IFS; IFS='-'
3534 set x $ac_cv_build
3535 shift
3536 build_cpu=$1
3537 build_vendor=$2
3538 shift; shift
3539 # Remember, the first character of IFS is used to create $*,
3540 # except with old shells:
3541 build_os=$*
3542 IFS=$ac_save_IFS
3543 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3544
3545
3546 { echo "$as_me:$LINENO: checking host system type" >&5
3547 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3548 if test "${ac_cv_host+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   if test "x$host_alias" = x; then
3552   ac_cv_host=$ac_cv_build
3553 else
3554   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3555     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3556 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3557    { (exit 1); exit 1; }; }
3558 fi
3559
3560 fi
3561 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3562 echo "${ECHO_T}$ac_cv_host" >&6; }
3563 case $ac_cv_host in
3564 *-*-*) ;;
3565 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3566 echo "$as_me: error: invalid value of canonical host" >&2;}
3567    { (exit 1); exit 1; }; };;
3568 esac
3569 host=$ac_cv_host
3570 ac_save_IFS=$IFS; IFS='-'
3571 set x $ac_cv_host
3572 shift
3573 host_cpu=$1
3574 host_vendor=$2
3575 shift; shift
3576 # Remember, the first character of IFS is used to create $*,
3577 # except with old shells:
3578 host_os=$*
3579 IFS=$ac_save_IFS
3580 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3581
3582
3583 { echo "$as_me:$LINENO: checking target system type" >&5
3584 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3585 if test "${ac_cv_target+set}" = set; then
3586   echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588   if test "x$target_alias" = x; then
3589   ac_cv_target=$ac_cv_host
3590 else
3591   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3592     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3593 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3594    { (exit 1); exit 1; }; }
3595 fi
3596
3597 fi
3598 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3599 echo "${ECHO_T}$ac_cv_target" >&6; }
3600 case $ac_cv_target in
3601 *-*-*) ;;
3602 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3603 echo "$as_me: error: invalid value of canonical target" >&2;}
3604    { (exit 1); exit 1; }; };;
3605 esac
3606 target=$ac_cv_target
3607 ac_save_IFS=$IFS; IFS='-'
3608 set x $ac_cv_target
3609 shift
3610 target_cpu=$1
3611 target_vendor=$2
3612 shift; shift
3613 # Remember, the first character of IFS is used to create $*,
3614 # except with old shells:
3615 target_os=$*
3616 IFS=$ac_save_IFS
3617 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3618
3619
3620 # The aliases save the names the user supplied, while $host etc.
3621 # will get canonicalized.
3622 test -n "$target_alias" &&
3623   test "$program_prefix$program_suffix$program_transform_name" = \
3624     NONENONEs,x,x, &&
3625   program_prefix=${target_alias}-
3626
3627 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3628 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3629 if test "${llvm_cv_os_type+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   case $host in
3633   *-*-aix*)
3634     llvm_cv_link_all_option="-Wl,--whole-archive"
3635     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636     llvm_cv_os_type="AIX"
3637     llvm_cv_platform_type="Unix" ;;
3638   *-*-irix*)
3639     llvm_cv_link_all_option="-Wl,--whole-archive"
3640     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641     llvm_cv_os_type="IRIX"
3642     llvm_cv_platform_type="Unix" ;;
3643   *-*-cygwin*)
3644     llvm_cv_link_all_option="-Wl,--whole-archive"
3645     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3646     llvm_cv_os_type="Cygwin"
3647     llvm_cv_platform_type="Unix" ;;
3648   *-*-darwin*)
3649     llvm_cv_link_all_option="-Wl,-all_load"
3650     llvm_cv_no_link_all_option="-Wl,-noall_load"
3651     llvm_cv_os_type="Darwin"
3652     llvm_cv_platform_type="Unix" ;;
3653   *-*-minix*)
3654     llvm_cv_link_all_option="-Wl,-all_load"
3655     llvm_cv_no_link_all_option="-Wl,-noall_load"
3656     llvm_cv_os_type="Minix"
3657     llvm_cv_platform_type="Unix" ;;
3658   *-*-freebsd* | *-*-kfreebsd-gnu)
3659     llvm_cv_link_all_option="-Wl,--whole-archive"
3660     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661     llvm_cv_os_type="FreeBSD"
3662     llvm_cv_platform_type="Unix" ;;
3663   *-*-openbsd*)
3664     llvm_cv_link_all_option="-Wl,--whole-archive"
3665     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666     llvm_cv_os_type="OpenBSD"
3667     llvm_cv_platform_type="Unix" ;;
3668   *-*-netbsd*)
3669     llvm_cv_link_all_option="-Wl,--whole-archive"
3670     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671     llvm_cv_os_type="NetBSD"
3672     llvm_cv_platform_type="Unix" ;;
3673   *-*-dragonfly*)
3674     llvm_cv_link_all_option="-Wl,--whole-archive"
3675     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676     llvm_cv_os_type="DragonFly"
3677     llvm_cv_platform_type="Unix" ;;
3678   *-*-hpux*)
3679     llvm_cv_link_all_option="-Wl,--whole-archive"
3680     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681     llvm_cv_os_type="HP-UX"
3682     llvm_cv_platform_type="Unix" ;;
3683   *-*-interix*)
3684     llvm_cv_link_all_option="-Wl,--whole-archive"
3685     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686     llvm_cv_os_type="Interix"
3687     llvm_cv_platform_type="Unix" ;;
3688   *-*-linux*)
3689     llvm_cv_link_all_option="-Wl,--whole-archive"
3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691     llvm_cv_os_type="Linux"
3692     llvm_cv_platform_type="Unix" ;;
3693   *-*-gnu*)
3694     llvm_cv_link_all_option="-Wl,--whole-archive"
3695     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696     llvm_cv_os_type="GNU"
3697     llvm_cv_platform_type="Unix" ;;
3698   *-*-solaris*)
3699     llvm_cv_link_all_option="-Wl,-z,allextract"
3700     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3701     llvm_cv_os_type="SunOS"
3702     llvm_cv_platform_type="Unix" ;;
3703   *-*-auroraux*)
3704     llvm_cv_link_all_option="-Wl,-z,allextract"
3705     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3706     llvm_cv_os_type="AuroraUX"
3707     llvm_cv_platform_type="Unix" ;;
3708   *-*-win32*)
3709     llvm_cv_link_all_option="-Wl,--whole-archive"
3710     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711     llvm_cv_os_type="Win32"
3712     llvm_cv_platform_type="Win32" ;;
3713   *-*-mingw*)
3714     llvm_cv_link_all_option="-Wl,--whole-archive"
3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716     llvm_cv_os_type="MingW"
3717     llvm_cv_platform_type="Win32" ;;
3718   *-*-haiku*)
3719     llvm_cv_link_all_option="-Wl,--whole-archive"
3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721     llvm_cv_os_type="Haiku"
3722     llvm_cv_platform_type="Unix" ;;
3723   *-unknown-eabi*)
3724     llvm_cv_link_all_option="-Wl,--whole-archive"
3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726     llvm_cv_os_type="Freestanding"
3727     llvm_cv_platform_type="Unix" ;;
3728   *-unknown-elf*)
3729     llvm_cv_link_all_option="-Wl,--whole-archive"
3730     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731     llvm_cv_os_type="Freestanding"
3732     llvm_cv_platform_type="Unix" ;;
3733   *)
3734     llvm_cv_link_all_option=""
3735     llvm_cv_no_link_all_option=""
3736     llvm_cv_os_type="Unknown"
3737     llvm_cv_platform_type="Unknown" ;;
3738 esac
3739 fi
3740 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3741 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3742
3743 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3744 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3745 if test "${llvm_cv_target_os_type+set}" = set; then
3746   echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748   case $target in
3749   *-*-aix*)
3750     llvm_cv_target_os_type="AIX" ;;
3751   *-*-irix*)
3752     llvm_cv_target_os_type="IRIX" ;;
3753   *-*-cygwin*)
3754     llvm_cv_target_os_type="Cygwin" ;;
3755   *-*-darwin*)
3756     llvm_cv_target_os_type="Darwin" ;;
3757   *-*-minix*)
3758     llvm_cv_target_os_type="Minix" ;;
3759   *-*-freebsd* | *-*-kfreebsd-gnu)
3760     llvm_cv_target_os_type="FreeBSD" ;;
3761   *-*-openbsd*)
3762     llvm_cv_target_os_type="OpenBSD" ;;
3763   *-*-netbsd*)
3764     llvm_cv_target_os_type="NetBSD" ;;
3765   *-*-dragonfly*)
3766     llvm_cv_target_os_type="DragonFly" ;;
3767   *-*-hpux*)
3768     llvm_cv_target_os_type="HP-UX" ;;
3769   *-*-interix*)
3770     llvm_cv_target_os_type="Interix" ;;
3771   *-*-linux*)
3772     llvm_cv_target_os_type="Linux" ;;
3773   *-*-gnu*)
3774     llvm_cv_target_os_type="GNU" ;;
3775   *-*-solaris*)
3776     llvm_cv_target_os_type="SunOS" ;;
3777   *-*-auroraux*)
3778     llvm_cv_target_os_type="AuroraUX" ;;
3779   *-*-win32*)
3780     llvm_cv_target_os_type="Win32" ;;
3781   *-*-mingw*)
3782     llvm_cv_target_os_type="MingW" ;;
3783   *-*-haiku*)
3784     llvm_cv_target_os_type="Haiku" ;;
3785   *-*-rtems*)
3786     llvm_cv_target_os_type="RTEMS" ;;
3787   *-*-nacl*)
3788     llvm_cv_target_os_type="NativeClient" ;;
3789   *-unknown-eabi*)
3790     llvm_cv_target_os_type="Freestanding" ;;
3791   *)
3792     llvm_cv_target_os_type="Unknown" ;;
3793 esac
3794 fi
3795 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3796 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3797
3798 if test "$llvm_cv_os_type" = "Unknown" ; then
3799   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3800 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3801    { (exit 1); exit 1; }; }
3802 fi
3803
3804 OS=$llvm_cv_os_type
3805
3806 HOST_OS=$llvm_cv_os_type
3807
3808 TARGET_OS=$llvm_cv_target_os_type
3809
3810
3811 LINKALL=$llvm_cv_link_all_option
3812
3813 NOLINKALL=$llvm_cv_no_link_all_option
3814
3815
3816 case $llvm_cv_platform_type in
3817   Unix)
3818
3819 cat >>confdefs.h <<\_ACEOF
3820 #define LLVM_ON_UNIX 1
3821 _ACEOF
3822
3823     LLVM_ON_UNIX=1
3824
3825     LLVM_ON_WIN32=0
3826
3827     ;;
3828   Win32)
3829
3830 cat >>confdefs.h <<\_ACEOF
3831 #define LLVM_ON_WIN32 1
3832 _ACEOF
3833
3834     LLVM_ON_UNIX=0
3835
3836     LLVM_ON_WIN32=1
3837
3838     ;;
3839 esac
3840
3841 { echo "$as_me:$LINENO: checking target architecture" >&5
3842 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3843 if test "${llvm_cv_target_arch+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846   case $target in
3847   i?86-*)                 llvm_cv_target_arch="x86" ;;
3848   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3849   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3850   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3851   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3852   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
3853   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3854   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3855   xcore-*)                llvm_cv_target_arch="XCore" ;;
3856   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3857   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3858   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3859   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3860   *)                      llvm_cv_target_arch="Unknown" ;;
3861 esac
3862 fi
3863 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3864 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3865
3866 if test "$llvm_cv_target_arch" = "Unknown" ; then
3867   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3868 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3869 fi
3870
3871 # Determine the LLVM native architecture for the target
3872 case "$llvm_cv_target_arch" in
3873     x86)     LLVM_NATIVE_ARCH="X86" ;;
3874     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3875     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3876 esac
3877
3878 ARCH=$llvm_cv_target_arch
3879
3880
3881
3882
3883 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3884 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   # Extract the first word of "grep ggrep" to use in msg output
3889 if test -z "$GREP"; then
3890 set dummy grep ggrep; ac_prog_name=$2
3891 if test "${ac_cv_path_GREP+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   ac_path_GREP_found=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901   for ac_prog in grep ggrep; do
3902   for ac_exec_ext in '' $ac_executable_extensions; do
3903     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3904     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3905     # Check for GNU ac_path_GREP and select it if it is found.
3906   # Check for GNU $ac_path_GREP
3907 case `"$ac_path_GREP" --version 2>&1` in
3908 *GNU*)
3909   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3910 *)
3911   ac_count=0
3912   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3913   while :
3914   do
3915     cat "conftest.in" "conftest.in" >"conftest.tmp"
3916     mv "conftest.tmp" "conftest.in"
3917     cp "conftest.in" "conftest.nl"
3918     echo 'GREP' >> "conftest.nl"
3919     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921     ac_count=`expr $ac_count + 1`
3922     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3923       # Best one so far, save it but keep looking for a better one
3924       ac_cv_path_GREP="$ac_path_GREP"
3925       ac_path_GREP_max=$ac_count
3926     fi
3927     # 10*(2^10) chars as input seems more than enough
3928     test $ac_count -gt 10 && break
3929   done
3930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931 esac
3932
3933
3934     $ac_path_GREP_found && break 3
3935   done
3936 done
3937
3938 done
3939 IFS=$as_save_IFS
3940
3941
3942 fi
3943
3944 GREP="$ac_cv_path_GREP"
3945 if test -z "$GREP"; then
3946   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3947 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3948    { (exit 1); exit 1; }; }
3949 fi
3950
3951 else
3952   ac_cv_path_GREP=$GREP
3953 fi
3954
3955
3956 fi
3957 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3958 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3959  GREP="$ac_cv_path_GREP"
3960
3961
3962 { echo "$as_me:$LINENO: checking for egrep" >&5
3963 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968    then ac_cv_path_EGREP="$GREP -E"
3969    else
3970      # Extract the first word of "egrep" to use in msg output
3971 if test -z "$EGREP"; then
3972 set dummy egrep; ac_prog_name=$2
3973 if test "${ac_cv_path_EGREP+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   ac_path_EGREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_prog in egrep; do
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3986     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3987     # Check for GNU ac_path_EGREP and select it if it is found.
3988   # Check for GNU $ac_path_EGREP
3989 case `"$ac_path_EGREP" --version 2>&1` in
3990 *GNU*)
3991   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3992 *)
3993   ac_count=0
3994   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3995   while :
3996   do
3997     cat "conftest.in" "conftest.in" >"conftest.tmp"
3998     mv "conftest.tmp" "conftest.in"
3999     cp "conftest.in" "conftest.nl"
4000     echo 'EGREP' >> "conftest.nl"
4001     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003     ac_count=`expr $ac_count + 1`
4004     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4005       # Best one so far, save it but keep looking for a better one
4006       ac_cv_path_EGREP="$ac_path_EGREP"
4007       ac_path_EGREP_max=$ac_count
4008     fi
4009     # 10*(2^10) chars as input seems more than enough
4010     test $ac_count -gt 10 && break
4011   done
4012   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 esac
4014
4015
4016     $ac_path_EGREP_found && break 3
4017   done
4018 done
4019
4020 done
4021 IFS=$as_save_IFS
4022
4023
4024 fi
4025
4026 EGREP="$ac_cv_path_EGREP"
4027 if test -z "$EGREP"; then
4028   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030    { (exit 1); exit 1; }; }
4031 fi
4032
4033 else
4034   ac_cv_path_EGREP=$EGREP
4035 fi
4036
4037
4038    fi
4039 fi
4040 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4041 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4042  EGREP="$ac_cv_path_EGREP"
4043
4044
4045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4047 if test "${ac_cv_header_stdc+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056 #include <stdlib.h>
4057 #include <stdarg.h>
4058 #include <string.h>
4059 #include <float.h>
4060
4061 int
4062 main ()
4063 {
4064
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4071 case "(($ac_try" in
4072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073   *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076   (eval "$ac_compile") 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } &&
4083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084   { (case "(($ac_try" in
4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086   *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089   (eval "$ac_try") 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; } &&
4093          { ac_try='test -s conftest.$ac_objext'
4094   { (case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099   (eval "$ac_try") 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; }; then
4103   ac_cv_header_stdc=yes
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108         ac_cv_header_stdc=no
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112
4113 if test $ac_cv_header_stdc = yes; then
4114   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4115   cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #include <string.h>
4122
4123 _ACEOF
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125   $EGREP "memchr" >/dev/null 2>&1; then
4126   :
4127 else
4128   ac_cv_header_stdc=no
4129 fi
4130 rm -f conftest*
4131
4132 fi
4133
4134 if test $ac_cv_header_stdc = yes; then
4135   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 #include <stdlib.h>
4143
4144 _ACEOF
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146   $EGREP "free" >/dev/null 2>&1; then
4147   :
4148 else
4149   ac_cv_header_stdc=no
4150 fi
4151 rm -f conftest*
4152
4153 fi
4154
4155 if test $ac_cv_header_stdc = yes; then
4156   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4157   if test "$cross_compiling" = yes; then
4158   :
4159 else
4160   cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <ctype.h>
4167 #include <stdlib.h>
4168 #if ((' ' & 0x0FF) == 0x020)
4169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4171 #else
4172 # define ISLOWER(c) \
4173                    (('a' <= (c) && (c) <= 'i') \
4174                      || ('j' <= (c) && (c) <= 'r') \
4175                      || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4177 #endif
4178
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4180 int
4181 main ()
4182 {
4183   int i;
4184   for (i = 0; i < 256; i++)
4185     if (XOR (islower (i), ISLOWER (i))
4186         || toupper (i) != TOUPPER (i))
4187       return 2;
4188   return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest$ac_exeext
4192 if { (ac_try="$ac_link"
4193 case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198   (eval "$ac_link") 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4202   { (case "(($ac_try" in
4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204   *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207   (eval "$ac_try") 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; }; then
4211   :
4212 else
4213   echo "$as_me: program exited with status $ac_status" >&5
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 ( exit $ac_status )
4218 ac_cv_header_stdc=no
4219 fi
4220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4221 fi
4222
4223
4224 fi
4225 fi
4226 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4227 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4228 if test $ac_cv_header_stdc = yes; then
4229
4230 cat >>confdefs.h <<\_ACEOF
4231 #define STDC_HEADERS 1
4232 _ACEOF
4233
4234 fi
4235
4236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4247                   inttypes.h stdint.h unistd.h
4248 do
4249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   cat >conftest.$ac_ext <<_ACEOF
4256 /* confdefs.h.  */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h.  */
4261 $ac_includes_default
4262
4263 #include <$ac_header>
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (ac_try="$ac_compile"
4267 case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_compile") 2>conftest.er1
4273   ac_status=$?
4274   grep -v '^ *+' conftest.er1 >conftest.err
4275   rm -f conftest.er1
4276   cat conftest.err >&5
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); } &&
4279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4280   { (case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285   (eval "$ac_try") 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; } &&
4289          { ac_try='test -s conftest.$ac_objext'
4290   { (case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295   (eval "$ac_try") 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; }; then
4299   eval "$as_ac_Header=yes"
4300 else
4301   echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304         eval "$as_ac_Header=no"
4305 fi
4306
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 ac_res=`eval echo '${'$as_ac_Header'}'`
4310                { echo "$as_me:$LINENO: result: $ac_res" >&5
4311 echo "${ECHO_T}$ac_res" >&6; }
4312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4313   cat >>confdefs.h <<_ACEOF
4314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4315 _ACEOF
4316
4317 fi
4318
4319 done
4320
4321
4322 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4323 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4324 if test "${ac_cv_c_bigendian+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   # See if sys/param.h defines the BYTE_ORDER macro.
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334 #include <sys/types.h>
4335 #include <sys/param.h>
4336
4337 int
4338 main ()
4339 {
4340 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4341  bogus endian macros
4342 #endif
4343
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4350 case "(($ac_try" in
4351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352   *) ac_try_echo=$ac_try;;
4353 esac
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355   (eval "$ac_compile") 2>conftest.er1
4356   ac_status=$?
4357   grep -v '^ *+' conftest.er1 >conftest.err
4358   rm -f conftest.er1
4359   cat conftest.err >&5
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); } &&
4362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4363   { (case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368   (eval "$ac_try") 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; } &&
4372          { ac_try='test -s conftest.$ac_objext'
4373   { (case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378   (eval "$ac_try") 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; }; then
4382   # It does; now see whether it defined to BIG_ENDIAN or not.
4383 cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h.  */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h.  */
4389 #include <sys/types.h>
4390 #include <sys/param.h>
4391
4392 int
4393 main ()
4394 {
4395 #if BYTE_ORDER != BIG_ENDIAN
4396  not big endian
4397 #endif
4398
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext
4404 if { (ac_try="$ac_compile"
4405 case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410   (eval "$ac_compile") 2>conftest.er1
4411   ac_status=$?
4412   grep -v '^ *+' conftest.er1 >conftest.err
4413   rm -f conftest.er1
4414   cat conftest.err >&5
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); } &&
4417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4418   { (case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423   (eval "$ac_try") 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; } &&
4427          { ac_try='test -s conftest.$ac_objext'
4428   { (case "(($ac_try" in
4429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430   *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433   (eval "$ac_try") 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; }; then
4437   ac_cv_c_bigendian=yes
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442         ac_cv_c_bigendian=no
4443 fi
4444
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 else
4447   echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4449
4450         # It does not; compile a test program.
4451 if test "$cross_compiling" = yes; then
4452   # try to guess the endianness by grepping values into an object file
4453   ac_cv_c_bigendian=unknown
4454   cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4461 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4462 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4463 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4464 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4465 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4466 int
4467 main ()
4468 {
4469  _ascii (); _ebcdic ();
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4476 case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481   (eval "$ac_compile") 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } &&
4488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4489   { (case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494   (eval "$ac_try") 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; } &&
4498          { ac_try='test -s conftest.$ac_objext'
4499   { (case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_try") 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; }; then
4508   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4509   ac_cv_c_bigendian=yes
4510 fi
4511 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4512   if test "$ac_cv_c_bigendian" = unknown; then
4513     ac_cv_c_bigendian=no
4514   else
4515     # finding both strings is unlikely to happen, but who knows?
4516     ac_cv_c_bigendian=unknown
4517   fi
4518 fi
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523
4524 fi
4525
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 else
4528   cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 $ac_includes_default
4535 int
4536 main ()
4537 {
4538
4539   /* Are we little or big endian?  From Harbison&Steele.  */
4540   union
4541   {
4542     long int l;
4543     char c[sizeof (long int)];
4544   } u;
4545   u.l = 1;
4546   return u.c[sizeof (long int) - 1] == 1;
4547
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest$ac_exeext
4553 if { (ac_try="$ac_link"
4554 case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559   (eval "$ac_link") 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4563   { (case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568   (eval "$ac_try") 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; }; then
4572   ac_cv_c_bigendian=no
4573 else
4574   echo "$as_me: program exited with status $ac_status" >&5
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578 ( exit $ac_status )
4579 ac_cv_c_bigendian=yes
4580 fi
4581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4582 fi
4583
4584
4585 fi
4586
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 fi
4589 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4590 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4591 case $ac_cv_c_bigendian in
4592   yes)
4593     ENDIAN=big
4594  ;;
4595   no)
4596     ENDIAN=little
4597  ;;
4598   *)
4599     { { echo "$as_me:$LINENO: error: unknown endianness
4600 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4601 echo "$as_me: error: unknown endianness
4602 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4603    { (exit 1); exit 1; }; } ;;
4604 esac
4605
4606
4607 if test "$cross_compiling" = yes; then
4608   LLVM_CROSS_COMPILING=1
4609
4610
4611 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4612 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4613 if test "${ac_cv_build_exeext+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4617   ac_cv_build_exeext=.exe
4618 else
4619   ac_build_prefix=${build_alias}-
4620
4621   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4622 set dummy ${ac_build_prefix}gcc; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   if test -n "$BUILD_CC"; then
4629   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636   for ac_exec_ext in '' $ac_executable_extensions; do
4637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4638     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640     break 2
4641   fi
4642 done
4643 done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 BUILD_CC=$ac_cv_prog_BUILD_CC
4649 if test -n "$BUILD_CC"; then
4650   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4651 echo "${ECHO_T}$BUILD_CC" >&6; }
4652 else
4653   { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4655 fi
4656
4657
4658   if test -z "$BUILD_CC"; then
4659      # Extract the first word of "gcc", so it can be a program name with args.
4660 set dummy gcc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666   if test -n "$BUILD_CC"; then
4667   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4676     ac_cv_prog_BUILD_CC="gcc"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 BUILD_CC=$ac_cv_prog_BUILD_CC
4687 if test -n "$BUILD_CC"; then
4688   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4689 echo "${ECHO_T}$BUILD_CC" >&6; }
4690 else
4691   { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696      if test -z "$BUILD_CC"; then
4697        # Extract the first word of "cc", so it can be a program name with args.
4698 set dummy cc; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   if test -n "$BUILD_CC"; then
4705   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4706 else
4707   ac_prog_rejected=no
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4716        ac_prog_rejected=yes
4717        continue
4718      fi
4719     ac_cv_prog_BUILD_CC="cc"
4720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724 done
4725 IFS=$as_save_IFS
4726
4727 if test $ac_prog_rejected = yes; then
4728   # We found a bogon in the path, so make sure we never use it.
4729   set dummy $ac_cv_prog_BUILD_CC
4730   shift
4731   if test $# != 0; then
4732     # We chose a different compiler from the bogus one.
4733     # However, it has the same basename, so the bogon will be chosen
4734     # first if we set BUILD_CC to just the basename; use the full file name.
4735     shift
4736     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4737   fi
4738 fi
4739 fi
4740 fi
4741 BUILD_CC=$ac_cv_prog_BUILD_CC
4742 if test -n "$BUILD_CC"; then
4743   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4744 echo "${ECHO_T}$BUILD_CC" >&6; }
4745 else
4746   { echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6; }
4748 fi
4749
4750
4751      fi
4752   fi
4753   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4754 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4755    { (exit 1); exit 1; }; }
4756   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4757   rm -f conftest*
4758   echo 'int main () { return 0; }' > conftest.$ac_ext
4759   ac_cv_build_exeext=
4760   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4761   (eval $ac_build_link) 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }; then
4765     for file in conftest.*; do
4766       case $file in
4767       *.c | *.o | *.obj | *.dSYM) ;;
4768       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4769       esac
4770     done
4771   else
4772     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4773 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4774    { (exit 1); exit 1; }; }
4775   fi
4776   rm -f conftest*
4777   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4778 fi
4779 fi
4780
4781 BUILD_EXEEXT=""
4782 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4783 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4784 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4785 ac_build_exeext=$BUILD_EXEEXT
4786
4787   ac_build_prefix=${build_alias}-
4788   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4789 set dummy ${ac_build_prefix}g++; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   if test -n "$BUILD_CXX"; then
4796   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4797 else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803   for ac_exec_ext in '' $ac_executable_extensions; do
4804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4805     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810 done
4811 IFS=$as_save_IFS
4812
4813 fi
4814 fi
4815 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4816 if test -n "$BUILD_CXX"; then
4817   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4818 echo "${ECHO_T}$BUILD_CXX" >&6; }
4819 else
4820   { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 fi
4823
4824
4825   if test -z "$BUILD_CXX"; then
4826      # Extract the first word of "g++", so it can be a program name with args.
4827 set dummy g++; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   if test -n "$BUILD_CXX"; then
4834   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841   for ac_exec_ext in '' $ac_executable_extensions; do
4842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4843     ac_cv_prog_BUILD_CXX="g++"
4844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845     break 2
4846   fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4854 if test -n "$BUILD_CXX"; then
4855   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4856 echo "${ECHO_T}$BUILD_CXX" >&6; }
4857 else
4858   { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4860 fi
4861
4862
4863      if test -z "$BUILD_CXX"; then
4864        # Extract the first word of "c++", so it can be a program name with args.
4865 set dummy c++; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   if test -n "$BUILD_CXX"; then
4872   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4873 else
4874   ac_prog_rejected=no
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880   for ac_exec_ext in '' $ac_executable_extensions; do
4881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4882     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4883        ac_prog_rejected=yes
4884        continue
4885      fi
4886     ac_cv_prog_BUILD_CXX="c++"
4887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888     break 2
4889   fi
4890 done
4891 done
4892 IFS=$as_save_IFS
4893
4894 if test $ac_prog_rejected = yes; then
4895   # We found a bogon in the path, so make sure we never use it.
4896   set dummy $ac_cv_prog_BUILD_CXX
4897   shift
4898   if test $# != 0; then
4899     # We chose a different compiler from the bogus one.
4900     # However, it has the same basename, so the bogon will be chosen
4901     # first if we set BUILD_CXX to just the basename; use the full file name.
4902     shift
4903     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4904   fi
4905 fi
4906 fi
4907 fi
4908 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4909 if test -n "$BUILD_CXX"; then
4910   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4911 echo "${ECHO_T}$BUILD_CXX" >&6; }
4912 else
4913   { echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6; }
4915 fi
4916
4917
4918      fi
4919   fi
4920 else
4921   LLVM_CROSS_COMPILING=0
4922
4923 fi
4924
4925 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4926   cvsbuild="yes"
4927   optimize="no"
4928   CVSBUILD=CVSBUILD=1
4929
4930 else
4931   cvsbuild="no"
4932   optimize="yes"
4933 fi
4934
4935
4936 # Check whether --enable-libcpp was given.
4937 if test "${enable_libcpp+set}" = set; then
4938   enableval=$enable_libcpp;
4939 else
4940   enableval=default
4941 fi
4942
4943 case "$enableval" in
4944   yes) ENABLE_LIBCPP=1
4945  ;;
4946   no)  ENABLE_LIBCPP=0
4947  ;;
4948   default) ENABLE_LIBCPP=0
4949 ;;
4950   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4951 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4952    { (exit 1); exit 1; }; } ;;
4953 esac
4954
4955 # Check whether --enable-cxx11 was given.
4956 if test "${enable_cxx11+set}" = set; then
4957   enableval=$enable_cxx11;
4958 else
4959   enableval=default
4960 fi
4961
4962 case "$enableval" in
4963   yes) ENABLE_CXX11=1
4964  ;;
4965   no)  ENABLE_CXX11=0
4966  ;;
4967   default) ENABLE_CXX11=0
4968 ;;
4969   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4970 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4971    { (exit 1); exit 1; }; } ;;
4972 esac
4973
4974 # Check whether --enable-optimized was given.
4975 if test "${enable_optimized+set}" = set; then
4976   enableval=$enable_optimized;
4977 else
4978   enableval=$optimize
4979 fi
4980
4981 if test ${enableval} = "no" ; then
4982   ENABLE_OPTIMIZED=
4983
4984 else
4985   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4986
4987 fi
4988
4989 # Check whether --enable-profiling was given.
4990 if test "${enable_profiling+set}" = set; then
4991   enableval=$enable_profiling;
4992 else
4993   enableval="no"
4994 fi
4995
4996 if test ${enableval} = "no" ; then
4997   ENABLE_PROFILING=
4998
4999 else
5000   ENABLE_PROFILING=ENABLE_PROFILING=1
5001
5002 fi
5003
5004 # Check whether --enable-assertions was given.
5005 if test "${enable_assertions+set}" = set; then
5006   enableval=$enable_assertions;
5007 else
5008   enableval="yes"
5009 fi
5010
5011 if test ${enableval} = "yes" ; then
5012   DISABLE_ASSERTIONS=
5013
5014 else
5015   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5016
5017 fi
5018
5019 # Check whether --enable-werror was given.
5020 if test "${enable_werror+set}" = set; then
5021   enableval=$enable_werror;
5022 else
5023   enableval="no"
5024 fi
5025
5026 case "$enableval" in
5027   yes) ENABLE_WERROR=1
5028  ;;
5029   no)  ENABLE_WERROR=0
5030  ;;
5031   default) ENABLE_WERROR=0
5032 ;;
5033   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5034 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5035    { (exit 1); exit 1; }; } ;;
5036 esac
5037
5038 # Check whether --enable-expensive-checks was given.
5039 if test "${enable_expensive_checks+set}" = set; then
5040   enableval=$enable_expensive_checks;
5041 else
5042   enableval="no"
5043 fi
5044
5045 if test ${enableval} = "yes" ; then
5046   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5047
5048   EXPENSIVE_CHECKS=yes
5049
5050 else
5051   ENABLE_EXPENSIVE_CHECKS=
5052
5053   EXPENSIVE_CHECKS=no
5054
5055 fi
5056
5057 # Check whether --enable-debug-runtime was given.
5058 if test "${enable_debug_runtime+set}" = set; then
5059   enableval=$enable_debug_runtime;
5060 else
5061   enableval=no
5062 fi
5063
5064 if test ${enableval} = "no" ; then
5065   DEBUG_RUNTIME=
5066
5067 else
5068   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5069
5070 fi
5071
5072 # Check whether --enable-debug-symbols was given.
5073 if test "${enable_debug_symbols+set}" = set; then
5074   enableval=$enable_debug_symbols;
5075 else
5076   enableval=no
5077 fi
5078
5079 if test ${enableval} = "no" ; then
5080   DEBUG_SYMBOLS=
5081
5082 else
5083   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5084
5085 fi
5086
5087 # Check whether --enable-jit was given.
5088 if test "${enable_jit+set}" = set; then
5089   enableval=$enable_jit;
5090 else
5091   enableval=default
5092 fi
5093
5094 if test ${enableval} = "no"
5095 then
5096   JIT=
5097
5098 else
5099   case "$llvm_cv_target_arch" in
5100     x86)         TARGET_HAS_JIT=1
5101  ;;
5102     Sparc)       TARGET_HAS_JIT=0
5103  ;;
5104     PowerPC)     TARGET_HAS_JIT=1
5105  ;;
5106     x86_64)      TARGET_HAS_JIT=1
5107  ;;
5108     ARM)         TARGET_HAS_JIT=1
5109  ;;
5110     AArch64)     TARGET_HAS_JIT=0
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     NVPTX)       TARGET_HAS_JIT=0
5121  ;;
5122     SystemZ)     TARGET_HAS_JIT=1
5123  ;;
5124     *)           TARGET_HAS_JIT=0
5125  ;;
5126   esac
5127 fi
5128
5129 # Check whether --enable-docs was given.
5130 if test "${enable_docs+set}" = set; then
5131   enableval=$enable_docs;
5132 else
5133   enableval=default
5134 fi
5135
5136 case "$enableval" in
5137   yes) ENABLE_DOCS=1
5138  ;;
5139   no)  ENABLE_DOCS=0
5140  ;;
5141   default) ENABLE_DOCS=1
5142  ;;
5143   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5145    { (exit 1); exit 1; }; } ;;
5146 esac
5147
5148 # Check whether --enable-doxygen was given.
5149 if test "${enable_doxygen+set}" = set; then
5150   enableval=$enable_doxygen;
5151 else
5152   enableval=default
5153 fi
5154
5155 case "$enableval" in
5156   yes) ENABLE_DOXYGEN=1
5157  ;;
5158   no)  ENABLE_DOXYGEN=0
5159  ;;
5160   default) ENABLE_DOXYGEN=0
5161  ;;
5162   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5164    { (exit 1); exit 1; }; } ;;
5165 esac
5166
5167 # Check whether --enable-threads was given.
5168 if test "${enable_threads+set}" = set; then
5169   enableval=$enable_threads;
5170 else
5171   enableval=default
5172 fi
5173
5174 case "$enableval" in
5175   yes) ENABLE_THREADS=1
5176  ;;
5177   no)  ENABLE_THREADS=0
5178  ;;
5179   default) ENABLE_THREADS=1
5180  ;;
5181   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5183    { (exit 1); exit 1; }; } ;;
5184 esac
5185
5186 cat >>confdefs.h <<_ACEOF
5187 #define ENABLE_THREADS $ENABLE_THREADS
5188 _ACEOF
5189
5190
5191 # Check whether --enable-pthreads was given.
5192 if test "${enable_pthreads+set}" = set; then
5193   enableval=$enable_pthreads;
5194 else
5195   enableval=default
5196 fi
5197
5198 case "$enableval" in
5199   yes) ENABLE_PTHREADS=1
5200  ;;
5201   no)  ENABLE_PTHREADS=0
5202  ;;
5203   default) ENABLE_PTHREADS=1
5204  ;;
5205   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5207    { (exit 1); exit 1; }; } ;;
5208 esac
5209
5210 # Check whether --enable-zlib was given.
5211 if test "${enable_zlib+set}" = set; then
5212   enableval=$enable_zlib;
5213 else
5214   enableval=default
5215 fi
5216
5217 case "$enableval" in
5218   yes) LLVM_ENABLE_ZLIB=1
5219  ;;
5220   no)  LLVM_ENABLE_ZLIB=0
5221  ;;
5222   default) LLVM_ENABLE_ZLIB=1
5223  ;;
5224   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5226    { (exit 1); exit 1; }; } ;;
5227 esac
5228
5229 cat >>confdefs.h <<_ACEOF
5230 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5231 _ACEOF
5232
5233
5234 # Check whether --enable-pic was given.
5235 if test "${enable_pic+set}" = set; then
5236   enableval=$enable_pic;
5237 else
5238   enableval=default
5239 fi
5240
5241 case "$enableval" in
5242   yes) ENABLE_PIC=1
5243  ;;
5244   no)  ENABLE_PIC=0
5245  ;;
5246   default) ENABLE_PIC=1
5247  ;;
5248   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250    { (exit 1); exit 1; }; } ;;
5251 esac
5252
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_PIC $ENABLE_PIC
5255 _ACEOF
5256
5257
5258 # Check whether --enable-shared was given.
5259 if test "${enable_shared+set}" = set; then
5260   enableval=$enable_shared;
5261 else
5262   enableval=default
5263 fi
5264
5265 case "$enableval" in
5266   yes) ENABLE_SHARED=1
5267  ;;
5268   no)  ENABLE_SHARED=0
5269  ;;
5270   default) ENABLE_SHARED=0
5271  ;;
5272   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275 esac
5276
5277 # Check whether --enable-embed-stdcxx was given.
5278 if test "${enable_embed_stdcxx+set}" = set; then
5279   enableval=$enable_embed_stdcxx;
5280 else
5281   enableval=default
5282 fi
5283
5284 case "$enableval" in
5285   yes) ENABLE_EMBED_STDCXX=1
5286  ;;
5287   no)  ENABLE_EMBED_STDCXX=0
5288  ;;
5289   default) ENABLE_EMBED_STDCXX=1
5290  ;;
5291   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294 esac
5295
5296 # Check whether --enable-timestamps was given.
5297 if test "${enable_timestamps+set}" = set; then
5298   enableval=$enable_timestamps;
5299 else
5300   enableval=default
5301 fi
5302
5303 case "$enableval" in
5304   yes) ENABLE_TIMESTAMPS=1
5305  ;;
5306   no)  ENABLE_TIMESTAMPS=0
5307  ;;
5308   default) ENABLE_TIMESTAMPS=1
5309  ;;
5310   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312    { (exit 1); exit 1; }; } ;;
5313 esac
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5317 _ACEOF
5318
5319
5320 TARGETS_TO_BUILD=""
5321 # Check whether --enable-targets was given.
5322 if test "${enable_targets+set}" = set; then
5323   enableval=$enable_targets;
5324 else
5325   enableval=all
5326 fi
5327
5328 if test "$enableval" = host-only ; then
5329   enableval=host
5330 fi
5331 case "$enableval" in
5332   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5333   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5334       case "$a_target" in
5335         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5339         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5340         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5341         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5346         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5347         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5348         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5349         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5350         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5351         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5352         host) case "$llvm_cv_target_arch" in
5353             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5354             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5355             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5356             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5357             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5358             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5359             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5360             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5361             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5362             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5363             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5364             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5365             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5366 echo "$as_me: error: Can not set target to build" >&2;}
5367    { (exit 1); exit 1; }; } ;;
5368           esac ;;
5369         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5370 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5371    { (exit 1); exit 1; }; } ;;
5372       esac
5373   done
5374   ;;
5375 esac
5376 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5377
5378
5379 # Determine whether we are building LLVM support for the native architecture.
5380 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5381 for a_target in $TARGETS_TO_BUILD; do
5382   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5383
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5386 _ACEOF
5387
5388     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5389     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5390     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5391     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5392     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5393       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5394     fi
5395     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5396       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5397     fi
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5401 _ACEOF
5402
5403
5404 cat >>confdefs.h <<_ACEOF
5405 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5406 _ACEOF
5407
5408
5409 cat >>confdefs.h <<_ACEOF
5410 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5411 _ACEOF
5412
5413
5414 cat >>confdefs.h <<_ACEOF
5415 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5416 _ACEOF
5417
5418     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5419
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5422 _ACEOF
5423
5424     fi
5425     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5426
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5429 _ACEOF
5430
5431     fi
5432   fi
5433 done
5434
5435 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5436 # target feature def files.
5437 LLVM_ENUM_TARGETS=""
5438 LLVM_ENUM_ASM_PRINTERS=""
5439 LLVM_ENUM_ASM_PARSERS=""
5440 LLVM_ENUM_DISASSEMBLERS=""
5441 for target_to_build in $TARGETS_TO_BUILD; do
5442   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5443   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5444     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5445   fi
5446   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5447     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5448   fi
5449   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5450     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5451   fi
5452 done
5453
5454
5455
5456
5457
5458
5459 # Check whether --with-optimize-option was given.
5460 if test "${with_optimize_option+set}" = set; then
5461   withval=$with_optimize_option;
5462 else
5463   withval=default
5464 fi
5465
5466 { echo "$as_me:$LINENO: checking optimization flags" >&5
5467 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5468 case "$withval" in
5469   default)
5470     case "$llvm_cv_os_type" in
5471     FreeBSD) optimize_option=-O2 ;;
5472     MingW) optimize_option=-O2 ;;
5473     *)     optimize_option=-O3 ;;
5474     esac ;;
5475   *) optimize_option="$withval" ;;
5476 esac
5477 OPTIMIZE_OPTION=$optimize_option
5478
5479 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5480 echo "${ECHO_T}$optimize_option" >&6; }
5481
5482
5483 # Check whether --with-extra-options was given.
5484 if test "${with_extra_options+set}" = set; then
5485   withval=$with_extra_options;
5486 else
5487   withval=default
5488 fi
5489
5490 case "$withval" in
5491   default) EXTRA_OPTIONS= ;;
5492   *) EXTRA_OPTIONS=$withval ;;
5493 esac
5494 EXTRA_OPTIONS=$EXTRA_OPTIONS
5495
5496
5497
5498 # Check whether --with-extra-ld-options was given.
5499 if test "${with_extra_ld_options+set}" = set; then
5500   withval=$with_extra_ld_options;
5501 else
5502   withval=default
5503 fi
5504
5505 case "$withval" in
5506   default) EXTRA_LD_OPTIONS= ;;
5507   *) EXTRA_LD_OPTIONS=$withval ;;
5508 esac
5509 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5510
5511
5512 # Check whether --enable-bindings was given.
5513 if test "${enable_bindings+set}" = set; then
5514   enableval=$enable_bindings;
5515 else
5516   enableval=default
5517 fi
5518
5519 BINDINGS_TO_BUILD=""
5520 case "$enableval" in
5521   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5522   all ) BINDINGS_TO_BUILD="ocaml" ;;
5523   none | no) BINDINGS_TO_BUILD="" ;;
5524   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5525       case "$a_binding" in
5526         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5527         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5528 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5529    { (exit 1); exit 1; }; } ;;
5530       esac
5531   done
5532   ;;
5533 esac
5534
5535
5536 # Check whether --with-ocaml-libdir was given.
5537 if test "${with_ocaml_libdir+set}" = set; then
5538   withval=$with_ocaml_libdir;
5539 else
5540   withval=auto
5541 fi
5542
5543 case "$withval" in
5544   auto) with_ocaml_libdir="$withval" ;;
5545   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5546   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5547 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5548    { (exit 1); exit 1; }; } ;;
5549 esac
5550
5551
5552 # Check whether --with-clang-resource-dir was given.
5553 if test "${with_clang_resource_dir+set}" = set; then
5554   withval=$with_clang_resource_dir;
5555 else
5556   withval=""
5557 fi
5558
5559
5560 cat >>confdefs.h <<_ACEOF
5561 #define CLANG_RESOURCE_DIR "$withval"
5562 _ACEOF
5563
5564
5565
5566 # Check whether --with-c-include-dirs was given.
5567 if test "${with_c_include_dirs+set}" = set; then
5568   withval=$with_c_include_dirs;
5569 else
5570   withval=""
5571 fi
5572
5573
5574 cat >>confdefs.h <<_ACEOF
5575 #define C_INCLUDE_DIRS "$withval"
5576 _ACEOF
5577
5578
5579 # Clang normally uses the system c++ headers and libraries. With this option,
5580 # clang will use the ones provided by a gcc installation instead. This option should
5581 # be passed the same value that was used with --prefix when configuring gcc.
5582
5583 # Check whether --with-gcc-toolchain was given.
5584 if test "${with_gcc_toolchain+set}" = set; then
5585   withval=$with_gcc_toolchain;
5586 else
5587   withval=""
5588 fi
5589
5590
5591 cat >>confdefs.h <<_ACEOF
5592 #define GCC_INSTALL_PREFIX "$withval"
5593 _ACEOF
5594
5595
5596
5597 # Check whether --with-binutils-include was given.
5598 if test "${with_binutils_include+set}" = set; then
5599   withval=$with_binutils_include;
5600 else
5601   withval=default
5602 fi
5603
5604 case "$withval" in
5605   default) WITH_BINUTILS_INCDIR=default ;;
5606   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5607   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5608 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5609    { (exit 1); exit 1; }; } ;;
5610 esac
5611 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5612   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5613
5614   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5615      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5616      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5617 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5618    { (exit 1); exit 1; }; };
5619   fi
5620 fi
5621
5622
5623 # Check whether --with-bug-report-url was given.
5624 if test "${with_bug_report_url+set}" = set; then
5625   withval=$with_bug_report_url;
5626 else
5627   withval="http://llvm.org/bugs/"
5628 fi
5629
5630
5631 cat >>confdefs.h <<_ACEOF
5632 #define BUG_REPORT_URL "$withval"
5633 _ACEOF
5634
5635
5636 # Check whether --enable-terminfo was given.
5637 if test "${enable_terminfo+set}" = set; then
5638   enableval=$enable_terminfo; case "$enableval" in
5639     yes) llvm_cv_enable_terminfo="yes" ;;
5640     no)  llvm_cv_enable_terminfo="no"  ;;
5641     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5643    { (exit 1); exit 1; }; } ;;
5644   esac
5645 else
5646   llvm_cv_enable_terminfo="yes"
5647 fi
5648
5649
5650 # Check whether --enable-libffi was given.
5651 if test "${enable_libffi+set}" = set; then
5652   enableval=$enable_libffi; case "$enableval" in
5653     yes) llvm_cv_enable_libffi="yes" ;;
5654     no)  llvm_cv_enable_libffi="no"  ;;
5655     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5656 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5657    { (exit 1); exit 1; }; } ;;
5658   esac
5659 else
5660   llvm_cv_enable_libffi=no
5661 fi
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 "groff", so it can be a program name with args.
7117 set dummy groff; 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_GROFF+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   case $GROFF in
7124   [\\/]* | ?:[\\/]*)
7125   ac_cv_path_GROFF="$GROFF" # 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_GROFF="$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 GROFF=$ac_cv_path_GROFF
7147 if test -n "$GROFF"; then
7148   { echo "$as_me:$LINENO: result: $GROFF" >&5
7149 echo "${ECHO_T}$GROFF" >&6; }
7150 else
7151   { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 fi
7154
7155
7156 # Extract the first word of "gzip", so it can be a program name with args.
7157 set dummy gzip; ac_word=$2
7158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   case $GZIPBIN in
7164   [\\/]* | ?:[\\/]*)
7165   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7166   ;;
7167   *)
7168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173   for ac_exec_ext in '' $ac_executable_extensions; do
7174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7175     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183   ;;
7184 esac
7185 fi
7186 GZIPBIN=$ac_cv_path_GZIPBIN
7187 if test -n "$GZIPBIN"; then
7188   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7189 echo "${ECHO_T}$GZIPBIN" >&6; }
7190 else
7191   { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7193 fi
7194
7195
7196 # Extract the first word of "pod2html", so it can be a program name with args.
7197 set dummy pod2html; ac_word=$2
7198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200 if test "${ac_cv_path_POD2HTML+set}" = set; then
7201   echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203   case $POD2HTML in
7204   [\\/]* | ?:[\\/]*)
7205   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7206   ;;
7207   *)
7208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211   IFS=$as_save_IFS
7212   test -z "$as_dir" && as_dir=.
7213   for ac_exec_ext in '' $ac_executable_extensions; do
7214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7215     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220 done
7221 IFS=$as_save_IFS
7222
7223   ;;
7224 esac
7225 fi
7226 POD2HTML=$ac_cv_path_POD2HTML
7227 if test -n "$POD2HTML"; then
7228   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7229 echo "${ECHO_T}$POD2HTML" >&6; }
7230 else
7231   { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7233 fi
7234
7235
7236 # Extract the first word of "pod2man", so it can be a program name with args.
7237 set dummy pod2man; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_POD2MAN+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   case $POD2MAN in
7244   [\\/]* | ?:[\\/]*)
7245   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7246   ;;
7247   *)
7248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253   for ac_exec_ext in '' $ac_executable_extensions; do
7254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263   ;;
7264 esac
7265 fi
7266 POD2MAN=$ac_cv_path_POD2MAN
7267 if test -n "$POD2MAN"; then
7268   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7269 echo "${ECHO_T}$POD2MAN" >&6; }
7270 else
7271   { echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6; }
7273 fi
7274
7275
7276 # Extract the first word of "pdfroff", so it can be a program name with args.
7277 set dummy pdfroff; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_path_PDFROFF+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283   case $PDFROFF in
7284   [\\/]* | ?:[\\/]*)
7285   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7286   ;;
7287   *)
7288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293   for ac_exec_ext in '' $ac_executable_extensions; do
7294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300 done
7301 IFS=$as_save_IFS
7302
7303   ;;
7304 esac
7305 fi
7306 PDFROFF=$ac_cv_path_PDFROFF
7307 if test -n "$PDFROFF"; then
7308   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7309 echo "${ECHO_T}$PDFROFF" >&6; }
7310 else
7311   { echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6; }
7313 fi
7314
7315
7316 # Extract the first word of "runtest", so it can be a program name with args.
7317 set dummy runtest; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_path_RUNTEST+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   case $RUNTEST in
7324   [\\/]* | ?:[\\/]*)
7325   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7326   ;;
7327   *)
7328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333   for ac_exec_ext in '' $ac_executable_extensions; do
7334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7335     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340 done
7341 IFS=$as_save_IFS
7342
7343   ;;
7344 esac
7345 fi
7346 RUNTEST=$ac_cv_path_RUNTEST
7347 if test -n "$RUNTEST"; then
7348   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7349 echo "${ECHO_T}$RUNTEST" >&6; }
7350 else
7351   { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
7353 fi
7354
7355
7356
7357 no_itcl=true
7358 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7359 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7360
7361 # Check whether --with-tclinclude was given.
7362 if test "${with_tclinclude+set}" = set; then
7363   withval=$with_tclinclude; with_tclinclude=${withval}
7364 else
7365   with_tclinclude=''
7366 fi
7367
7368 if test "${ac_cv_path_tclsh+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371
7372 if test x"${with_tclinclude}" != x ; then
7373   if test -f ${with_tclinclude}/tclsh ; then
7374     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7375   elif test -f ${with_tclinclude}/src/tclsh ; then
7376     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7377   else
7378     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7379 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7380    { (exit 1); exit 1; }; }
7381   fi
7382 fi
7383 fi
7384
7385
7386 if test x"${ac_cv_path_tclsh}" = x ; then
7387   { echo "$as_me:$LINENO: result: none" >&5
7388 echo "${ECHO_T}none" >&6; }
7389   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
7390 do
7391   # Extract the first word of "$ac_prog", so it can be a program name with args.
7392 set dummy $ac_prog; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_TCLSH+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   case $TCLSH in
7399   [\\/]* | ?:[\\/]*)
7400   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7401   ;;
7402   *)
7403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408   for ac_exec_ext in '' $ac_executable_extensions; do
7409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415 done
7416 IFS=$as_save_IFS
7417
7418   ;;
7419 esac
7420 fi
7421 TCLSH=$ac_cv_path_TCLSH
7422 if test -n "$TCLSH"; then
7423   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7424 echo "${ECHO_T}$TCLSH" >&6; }
7425 else
7426   { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431   test -n "$TCLSH" && break
7432 done
7433
7434   if test x"${TCLSH}" = x ; then
7435     ac_cv_path_tclsh='';
7436   else
7437     ac_cv_path_tclsh="${TCLSH}";
7438   fi
7439 else
7440   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7441 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7442   TCLSH="${ac_cv_path_tclsh}"
7443
7444 fi
7445
7446 # Extract the first word of "zip", so it can be a program name with args.
7447 set dummy zip; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_ZIP+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   case $ZIP in
7454   [\\/]* | ?:[\\/]*)
7455   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7456   ;;
7457   *)
7458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473   ;;
7474 esac
7475 fi
7476 ZIP=$ac_cv_path_ZIP
7477 if test -n "$ZIP"; then
7478   { echo "$as_me:$LINENO: result: $ZIP" >&5
7479 echo "${ECHO_T}$ZIP" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485
7486 for ac_prog in ocamlc
7487 do
7488   # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_OCAMLC+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   case $OCAMLC in
7496   [\\/]* | ?:[\\/]*)
7497   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7498   ;;
7499   *)
7500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515   ;;
7516 esac
7517 fi
7518 OCAMLC=$ac_cv_path_OCAMLC
7519 if test -n "$OCAMLC"; then
7520   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7521 echo "${ECHO_T}$OCAMLC" >&6; }
7522 else
7523   { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7525 fi
7526
7527
7528   test -n "$OCAMLC" && break
7529 done
7530
7531 for ac_prog in ocamlopt
7532 do
7533   # Extract the first word of "$ac_prog", so it can be a program name with args.
7534 set dummy $ac_prog; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540   case $OCAMLOPT in
7541   [\\/]* | ?:[\\/]*)
7542   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7543   ;;
7544   *)
7545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558 IFS=$as_save_IFS
7559
7560   ;;
7561 esac
7562 fi
7563 OCAMLOPT=$ac_cv_path_OCAMLOPT
7564 if test -n "$OCAMLOPT"; then
7565   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7566 echo "${ECHO_T}$OCAMLOPT" >&6; }
7567 else
7568   { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7570 fi
7571
7572
7573   test -n "$OCAMLOPT" && break
7574 done
7575
7576 for ac_prog in ocamldep
7577 do
7578   # Extract the first word of "$ac_prog", so it can be a program name with args.
7579 set dummy $ac_prog; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7583   echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585   case $OCAMLDEP in
7586   [\\/]* | ?:[\\/]*)
7587   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7588   ;;
7589   *)
7590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593   IFS=$as_save_IFS
7594   test -z "$as_dir" && as_dir=.
7595   for ac_exec_ext in '' $ac_executable_extensions; do
7596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599     break 2
7600   fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605   ;;
7606 esac
7607 fi
7608 OCAMLDEP=$ac_cv_path_OCAMLDEP
7609 if test -n "$OCAMLDEP"; then
7610   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7611 echo "${ECHO_T}$OCAMLDEP" >&6; }
7612 else
7613   { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7615 fi
7616
7617
7618   test -n "$OCAMLDEP" && break
7619 done
7620
7621 for ac_prog in ocamldoc
7622 do
7623   # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630   case $OCAMLDOC in
7631   [\\/]* | ?:[\\/]*)
7632   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7633   ;;
7634   *)
7635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640   for ac_exec_ext in '' $ac_executable_extensions; do
7641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650   ;;
7651 esac
7652 fi
7653 OCAMLDOC=$ac_cv_path_OCAMLDOC
7654 if test -n "$OCAMLDOC"; then
7655   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7656 echo "${ECHO_T}$OCAMLDOC" >&6; }
7657 else
7658   { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7660 fi
7661
7662
7663   test -n "$OCAMLDOC" && break
7664 done
7665
7666 for ac_prog in gas as
7667 do
7668   # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_GAS+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675   case $GAS in
7676   [\\/]* | ?:[\\/]*)
7677   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7678   ;;
7679   *)
7680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685   for ac_exec_ext in '' $ac_executable_extensions; do
7686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692 done
7693 IFS=$as_save_IFS
7694
7695   ;;
7696 esac
7697 fi
7698 GAS=$ac_cv_path_GAS
7699 if test -n "$GAS"; then
7700   { echo "$as_me:$LINENO: result: $GAS" >&5
7701 echo "${ECHO_T}$GAS" >&6; }
7702 else
7703   { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7705 fi
7706
7707
7708   test -n "$GAS" && break
7709 done
7710
7711
7712 { echo "$as_me:$LINENO: checking for linker version" >&5
7713 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7714 if test "${llvm_cv_link_version+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717
7718    version_string="$(ld -v 2>&1 | head -1)"
7719
7720    # Check for ld64.
7721    if (echo "$version_string" | grep -q "ld64"); then
7722      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7723    else
7724      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7725    fi
7726
7727 fi
7728 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7729 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7730
7731 cat >>confdefs.h <<_ACEOF
7732 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7733 _ACEOF
7734
7735
7736
7737 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7738 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7739 if test "${llvm_cv_link_use_r+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742    ac_ext=c
7743 ac_cpp='$CPP $CPPFLAGS'
7744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747
7748   oldcflags="$CFLAGS"
7749   CFLAGS="$CFLAGS -Wl,-R."
7750   cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756
7757 int
7758 main ()
7759 {
7760
7761   ;
7762   return 0;
7763 }
7764 _ACEOF
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (ac_try="$ac_link"
7767 case "(($ac_try" in
7768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769   *) ac_try_echo=$ac_try;;
7770 esac
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772   (eval "$ac_link") 2>conftest.er1
7773   ac_status=$?
7774   grep -v '^ *+' conftest.er1 >conftest.err
7775   rm -f conftest.er1
7776   cat conftest.err >&5
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } &&
7779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780   { (case "(($ac_try" in
7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782   *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785   (eval "$ac_try") 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; } &&
7789          { ac_try='test -s conftest$ac_exeext'
7790   { (case "(($ac_try" in
7791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792   *) ac_try_echo=$ac_try;;
7793 esac
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795   (eval "$ac_try") 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   llvm_cv_link_use_r=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804         llvm_cv_link_use_r=no
7805 fi
7806
7807 rm -f core conftest.err conftest.$ac_objext \
7808       conftest$ac_exeext conftest.$ac_ext
7809   CFLAGS="$oldcflags"
7810   ac_ext=c
7811 ac_cpp='$CPP $CPPFLAGS'
7812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7815
7816
7817 fi
7818 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7819 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7820 if test "$llvm_cv_link_use_r" = yes ; then
7821
7822 cat >>confdefs.h <<\_ACEOF
7823 #define HAVE_LINK_R 1
7824 _ACEOF
7825
7826   fi
7827
7828
7829 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7830 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7831 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834    ac_ext=c
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840   oldcflags="$CFLAGS"
7841   CFLAGS="$CFLAGS -rdynamic"
7842   cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h.  */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h.  */
7848
7849 int
7850 main ()
7851 {
7852
7853   ;
7854   return 0;
7855 }
7856 _ACEOF
7857 rm -f conftest.$ac_objext conftest$ac_exeext
7858 if { (ac_try="$ac_link"
7859 case "(($ac_try" in
7860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861   *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864   (eval "$ac_link") 2>conftest.er1
7865   ac_status=$?
7866   grep -v '^ *+' conftest.er1 >conftest.err
7867   rm -f conftest.er1
7868   cat conftest.err >&5
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); } &&
7871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7872   { (case "(($ac_try" in
7873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874   *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877   (eval "$ac_try") 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; } &&
7881          { ac_try='test -s conftest$ac_exeext'
7882   { (case "(($ac_try" in
7883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884   *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887   (eval "$ac_try") 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; }; then
7891   llvm_cv_link_use_export_dynamic=yes
7892 else
7893   echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7895
7896         llvm_cv_link_use_export_dynamic=no
7897 fi
7898
7899 rm -f core conftest.err conftest.$ac_objext \
7900       conftest$ac_exeext conftest.$ac_ext
7901   CFLAGS="$oldcflags"
7902   ac_ext=c
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907
7908
7909 fi
7910 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7911 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7912 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7913
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_LINK_EXPORT_DYNAMIC 1
7916 _ACEOF
7917
7918   fi
7919
7920
7921 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7922 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7923 if test "${llvm_cv_link_use_version_script+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926    ac_ext=c
7927 ac_cpp='$CPP $CPPFLAGS'
7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7931
7932   oldcflags="$CFLAGS"
7933
7934   # The following code is from the autoconf manual,
7935   # "11.13: Limitations of Usual Tools".
7936   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7937   # Use mktemp if possible; otherwise fall back on mkdir,
7938   # with $RANDOM to make collisions less likely.
7939   : ${TMPDIR=/tmp}
7940   {
7941     tmp=`
7942       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7943     ` &&
7944     test -n "$tmp" && test -d "$tmp"
7945   } || {
7946     tmp=$TMPDIR/foo$$-$RANDOM
7947     (umask 077 && mkdir "$tmp")
7948   } || exit $?
7949
7950   echo "{" > "$tmp/export.map"
7951   echo "  global: main;" >> "$tmp/export.map"
7952   echo "  local: *;" >> "$tmp/export.map"
7953   echo "};" >> "$tmp/export.map"
7954
7955   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7956   cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962
7963 int
7964 main ()
7965 {
7966
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7973 case "(($ac_try" in
7974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975   *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978   (eval "$ac_link") 2>conftest.er1
7979   ac_status=$?
7980   grep -v '^ *+' conftest.er1 >conftest.err
7981   rm -f conftest.er1
7982   cat conftest.err >&5
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } &&
7985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7986   { (case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_try") 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; } &&
7995          { ac_try='test -s conftest$ac_exeext'
7996   { (case "(($ac_try" in
7997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998   *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001   (eval "$ac_try") 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; }; then
8005   llvm_cv_link_use_version_script=yes
8006 else
8007   echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8009
8010         llvm_cv_link_use_version_script=no
8011 fi
8012
8013 rm -f core conftest.err conftest.$ac_objext \
8014       conftest$ac_exeext conftest.$ac_ext
8015   rm "$tmp/export.map"
8016   rmdir "$tmp"
8017   CFLAGS="$oldcflags"
8018   ac_ext=c
8019 ac_cpp='$CPP $CPPFLAGS'
8020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023
8024
8025 fi
8026 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8027 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8028 if test "$llvm_cv_link_use_version_script" = yes ; then
8029   HAVE_LINK_VERSION_SCRIPT=1
8030
8031   fi
8032
8033
8034
8035
8036 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8038 if test "${ac_cv_c_const+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047
8048 int
8049 main ()
8050 {
8051 /* FIXME: Include the comments suggested by Paul. */
8052 #ifndef __cplusplus
8053   /* Ultrix mips cc rejects this.  */
8054   typedef int charset[2];
8055   const charset x;
8056   /* SunOS 4.1.1 cc rejects this.  */
8057   char const *const *ccp;
8058   char **p;
8059   /* NEC SVR4.0.2 mips cc rejects this.  */
8060   struct point {int x, y;};
8061   static struct point const zero = {0,0};
8062   /* AIX XL C 1.02.0.0 rejects this.
8063      It does not let you subtract one const X* pointer from another in
8064      an arm of an if-expression whose if-part is not a constant
8065      expression */
8066   const char *g = "string";
8067   ccp = &g + (g ? g-g : 0);
8068   /* HPUX 7.0 cc rejects these. */
8069   ++ccp;
8070   p = (char**) ccp;
8071   ccp = (char const *const *) p;
8072   { /* SCO 3.2v4 cc rejects this.  */
8073     char *t;
8074     char const *s = 0 ? (char *) 0 : (char const *) 0;
8075
8076     *t++ = 0;
8077     if (s) return 0;
8078   }
8079   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8080     int x[] = {25, 17};
8081     const int *foo = &x[0];
8082     ++foo;
8083   }
8084   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8085     typedef const int *iptr;
8086     iptr p = 0;
8087     ++p;
8088   }
8089   { /* AIX XL C 1.02.0.0 rejects this saying
8090        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8091     struct s { int j; const int *ap[3]; };
8092     struct s *b; b->j = 5;
8093   }
8094   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8095     const int foo = 10;
8096     if (!foo) return 0;
8097   }
8098   return !x[0] && !zero.x;
8099 #endif
8100
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8107 case "(($ac_try" in
8108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109   *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112   (eval "$ac_compile") 2>conftest.er1
8113   ac_status=$?
8114   grep -v '^ *+' conftest.er1 >conftest.err
8115   rm -f conftest.er1
8116   cat conftest.err >&5
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); } &&
8119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8120   { (case "(($ac_try" in
8121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122   *) ac_try_echo=$ac_try;;
8123 esac
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125   (eval "$ac_try") 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; } &&
8129          { ac_try='test -s conftest.$ac_objext'
8130   { (case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_try") 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_c_const=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144         ac_cv_c_const=no
8145 fi
8146
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8150 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8151 if test $ac_cv_c_const = no; then
8152
8153 cat >>confdefs.h <<\_ACEOF
8154 #define const
8155 _ACEOF
8156
8157 fi
8158
8159
8160
8161
8162
8163
8164 ac_header_dirent=no
8165 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8166   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8167 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8168 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178 #include <sys/types.h>
8179 #include <$ac_hdr>
8180
8181 int
8182 main ()
8183 {
8184 if ((DIR *) 0)
8185 return 0;
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_compile") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205   { (case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210   (eval "$ac_try") 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; } &&
8214          { ac_try='test -s conftest.$ac_objext'
8215   { (case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220   (eval "$ac_try") 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224   eval "$as_ac_Header=yes"
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229         eval "$as_ac_Header=no"
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 ac_res=`eval echo '${'$as_ac_Header'}'`
8235                { echo "$as_me:$LINENO: result: $ac_res" >&5
8236 echo "${ECHO_T}$ac_res" >&6; }
8237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8238   cat >>confdefs.h <<_ACEOF
8239 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8240 _ACEOF
8241
8242 ac_header_dirent=$ac_hdr; break
8243 fi
8244
8245 done
8246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8247 if test $ac_header_dirent = dirent.h; then
8248   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8250 if test "${ac_cv_search_opendir+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   ac_func_search_save_LIBS=$LIBS
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260
8261 /* Override any GCC internal prototype to avoid an error.
8262    Use char because int might match the return type of a GCC
8263    builtin and then its argument prototype would still apply.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 char opendir ();
8268 int
8269 main ()
8270 {
8271 return opendir ();
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 for ac_lib in '' dir; do
8277   if test -z "$ac_lib"; then
8278     ac_res="none required"
8279   else
8280     ac_res=-l$ac_lib
8281     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8282   fi
8283   rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (ac_try="$ac_link"
8285 case "(($ac_try" in
8286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287   *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290   (eval "$ac_link") 2>conftest.er1
8291   ac_status=$?
8292   grep -v '^ *+' conftest.er1 >conftest.err
8293   rm -f conftest.er1
8294   cat conftest.err >&5
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); } &&
8297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8298   { (case "(($ac_try" in
8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300   *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303   (eval "$ac_try") 2>&5
8304   ac_status=$?
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); }; } &&
8307          { ac_try='test -s conftest$ac_exeext'
8308   { (case "(($ac_try" in
8309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310   *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313   (eval "$ac_try") 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; }; then
8317   ac_cv_search_opendir=$ac_res
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext \
8326       conftest$ac_exeext
8327   if test "${ac_cv_search_opendir+set}" = set; then
8328   break
8329 fi
8330 done
8331 if test "${ac_cv_search_opendir+set}" = set; then
8332   :
8333 else
8334   ac_cv_search_opendir=no
8335 fi
8336 rm conftest.$ac_ext
8337 LIBS=$ac_func_search_save_LIBS
8338 fi
8339 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8340 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8341 ac_res=$ac_cv_search_opendir
8342 if test "$ac_res" != no; then
8343   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8344
8345 fi
8346
8347 else
8348   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8350 if test "${ac_cv_search_opendir+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353   ac_func_search_save_LIBS=$LIBS
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360
8361 /* Override any GCC internal prototype to avoid an error.
8362    Use char because int might match the return type of a GCC
8363    builtin and then its argument prototype would still apply.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 char opendir ();
8368 int
8369 main ()
8370 {
8371 return opendir ();
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 for ac_lib in '' x; do
8377   if test -z "$ac_lib"; then
8378     ac_res="none required"
8379   else
8380     ac_res=-l$ac_lib
8381     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8382   fi
8383   rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8385 case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390   (eval "$ac_link") 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } &&
8397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398   { (case "(($ac_try" in
8399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400   *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403   (eval "$ac_try") 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; } &&
8407          { ac_try='test -s conftest$ac_exeext'
8408   { (case "(($ac_try" in
8409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410   *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413   (eval "$ac_try") 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; }; then
8417   ac_cv_search_opendir=$ac_res
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422
8423 fi
8424
8425 rm -f core conftest.err conftest.$ac_objext \
8426       conftest$ac_exeext
8427   if test "${ac_cv_search_opendir+set}" = set; then
8428   break
8429 fi
8430 done
8431 if test "${ac_cv_search_opendir+set}" = set; then
8432   :
8433 else
8434   ac_cv_search_opendir=no
8435 fi
8436 rm conftest.$ac_ext
8437 LIBS=$ac_func_search_save_LIBS
8438 fi
8439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8441 ac_res=$ac_cv_search_opendir
8442 if test "$ac_res" != no; then
8443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8444
8445 fi
8446
8447 fi
8448
8449
8450 for ac_header in dlfcn.h
8451 do
8452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8454   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 fi
8459 ac_res=`eval echo '${'$as_ac_Header'}'`
8460                { echo "$as_me:$LINENO: result: $ac_res" >&5
8461 echo "${ECHO_T}$ac_res" >&6; }
8462 else
8463   # Is the header compilable?
8464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h.  */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h.  */
8472 $ac_includes_default
8473 #include <$ac_header>
8474 _ACEOF
8475 rm -f conftest.$ac_objext
8476 if { (ac_try="$ac_compile"
8477 case "(($ac_try" in
8478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479   *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482   (eval "$ac_compile") 2>conftest.er1
8483   ac_status=$?
8484   grep -v '^ *+' conftest.er1 >conftest.err
8485   rm -f conftest.er1
8486   cat conftest.err >&5
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); } &&
8489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8490   { (case "(($ac_try" in
8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492   *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495   (eval "$ac_try") 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); }; } &&
8499          { ac_try='test -s conftest.$ac_objext'
8500   { (case "(($ac_try" in
8501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502   *) ac_try_echo=$ac_try;;
8503 esac
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505   (eval "$ac_try") 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; }; then
8509   ac_header_compiler=yes
8510 else
8511   echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514         ac_header_compiler=no
8515 fi
8516
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519 echo "${ECHO_T}$ac_header_compiler" >&6; }
8520
8521 # Is the header present?
8522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530 #include <$ac_header>
8531 _ACEOF
8532 if { (ac_try="$ac_cpp conftest.$ac_ext"
8533 case "(($ac_try" in
8534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535   *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8539   ac_status=$?
8540   grep -v '^ *+' conftest.er1 >conftest.err
8541   rm -f conftest.er1
8542   cat conftest.err >&5
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } >/dev/null; then
8545   if test -s conftest.err; then
8546     ac_cpp_err=$ac_c_preproc_warn_flag
8547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8548   else
8549     ac_cpp_err=
8550   fi
8551 else
8552   ac_cpp_err=yes
8553 fi
8554 if test -z "$ac_cpp_err"; then
8555   ac_header_preproc=yes
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560   ac_header_preproc=no
8561 fi
8562
8563 rm -f conftest.err conftest.$ac_ext
8564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8565 echo "${ECHO_T}$ac_header_preproc" >&6; }
8566
8567 # So?  What about this header?
8568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8569   yes:no: )
8570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8574     ac_header_preproc=yes
8575     ;;
8576   no:yes:* )
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8589     ( cat <<\_ASBOX
8590 ## ------------------------------ ##
8591 ## Report this to bugs@yourdomain ##
8592 ## ------------------------------ ##
8593 _ASBOX
8594      ) | sed "s/^/$as_me: WARNING:     /" >&2
8595     ;;
8596 esac
8597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602   eval "$as_ac_Header=\$ac_header_preproc"
8603 fi
8604 ac_res=`eval echo '${'$as_ac_Header'}'`
8605                { echo "$as_me:$LINENO: result: $ac_res" >&5
8606 echo "${ECHO_T}$ac_res" >&6; }
8607
8608 fi
8609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610   cat >>confdefs.h <<_ACEOF
8611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8612 _ACEOF
8613
8614 fi
8615
8616 done
8617
8618 # Check whether --enable-ltdl-install was given.
8619 if test "${enable_ltdl_install+set}" = set; then
8620   enableval=$enable_ltdl_install;
8621 fi
8622
8623
8624
8625
8626 if test x"${enable_ltdl_install-no}" != xno; then
8627   INSTALL_LTDL_TRUE=
8628   INSTALL_LTDL_FALSE='#'
8629 else
8630   INSTALL_LTDL_TRUE='#'
8631   INSTALL_LTDL_FALSE=
8632 fi
8633
8634
8635
8636 if test x"${enable_ltdl_convenience-no}" != xno; then
8637   CONVENIENCE_LTDL_TRUE=
8638   CONVENIENCE_LTDL_FALSE='#'
8639 else
8640   CONVENIENCE_LTDL_TRUE='#'
8641   CONVENIENCE_LTDL_FALSE=
8642 fi
8643
8644
8645 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8646 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8647 library_names_spec=
8648 libname_spec='lib$name'
8649 soname_spec=
8650 shrext_cmds=".so"
8651 postinstall_cmds=
8652 postuninstall_cmds=
8653 finish_cmds=
8654 finish_eval=
8655 shlibpath_var=
8656 shlibpath_overrides_runpath=unknown
8657 version_type=none
8658 dynamic_linker="$host_os ld.so"
8659 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8660 if test "$GCC" = yes; then
8661   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8662   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8663     # if the path contains ";" then we assume it to be the separator
8664     # otherwise default to the standard path separator (i.e. ":") - it is
8665     # assumed that no part of a normal pathname contains ";" but that should
8666     # okay in the real world where ";" in dirpaths is itself problematic.
8667     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8668   else
8669     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8670   fi
8671 else
8672   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8673 fi
8674 need_lib_prefix=unknown
8675 hardcode_into_libs=no
8676
8677 # when you set need_version to no, make sure it does not cause -set_version
8678 # flags to be left without arguments
8679 need_version=unknown
8680
8681 case $host_os in
8682 aix3*)
8683   version_type=linux
8684   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8685   shlibpath_var=LIBPATH
8686
8687   # AIX 3 has no versioning support, so we append a major version to the name.
8688   soname_spec='${libname}${release}${shared_ext}$major'
8689   ;;
8690
8691 aix4* | aix5*)
8692   version_type=linux
8693   need_lib_prefix=no
8694   need_version=no
8695   hardcode_into_libs=yes
8696   if test "$host_cpu" = ia64; then
8697     # AIX 5 supports IA64
8698     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8699     shlibpath_var=LD_LIBRARY_PATH
8700   else
8701     # With GCC up to 2.95.x, collect2 would create an import file
8702     # for dependence libraries.  The import file would start with
8703     # the line `#! .'.  This would cause the generated library to
8704     # depend on `.', always an invalid library.  This was fixed in
8705     # development snapshots of GCC prior to 3.0.
8706     case $host_os in
8707       aix4 | aix4.[01] | aix4.[01].*)
8708       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8709            echo ' yes '
8710            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8711         :
8712       else
8713         can_build_shared=no
8714       fi
8715       ;;
8716     esac
8717     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8718     # soname into executable. Probably we can add versioning support to
8719     # collect2, so additional links can be useful in future.
8720     if test "$aix_use_runtimelinking" = yes; then
8721       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8722       # instead of lib<name>.a to let people know that these are not
8723       # typical AIX shared libraries.
8724       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8725     else
8726       # We preserve .a as extension for shared libraries through AIX4.2
8727       # and later when we are not doing run time linking.
8728       library_names_spec='${libname}${release}.a $libname.a'
8729       soname_spec='${libname}${release}${shared_ext}$major'
8730     fi
8731     shlibpath_var=LIBPATH
8732   fi
8733   ;;
8734
8735 amigaos*)
8736   library_names_spec='$libname.ixlibrary $libname.a'
8737   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8738   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'
8739   ;;
8740
8741 beos*)
8742   library_names_spec='${libname}${shared_ext}'
8743   dynamic_linker="$host_os ld.so"
8744   shlibpath_var=LIBRARY_PATH
8745   ;;
8746
8747 bsdi[45]*)
8748   version_type=linux
8749   need_version=no
8750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8751   soname_spec='${libname}${release}${shared_ext}$major'
8752   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8753   shlibpath_var=LD_LIBRARY_PATH
8754   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8755   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8756   # the default ld.so.conf also contains /usr/contrib/lib and
8757   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8758   # libtool to hard-code these into programs
8759   ;;
8760
8761 cygwin* | mingw* | pw32*)
8762   version_type=windows
8763   shrext_cmds=".dll"
8764   need_version=no
8765   need_lib_prefix=no
8766
8767   case $GCC,$host_os in
8768   yes,cygwin* | yes,mingw* | yes,pw32*)
8769     library_names_spec='$libname.dll.a'
8770     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8771     postinstall_cmds='base_file=`basename \${file}`~
8772       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8773       dldir=$destdir/`dirname \$dlpath`~
8774       test -d \$dldir || mkdir -p \$dldir~
8775       $install_prog $dir/$dlname \$dldir/$dlname~
8776       chmod a+x \$dldir/$dlname'
8777     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8778       dlpath=$dir/\$dldll~
8779        $rm \$dlpath'
8780     shlibpath_overrides_runpath=yes
8781
8782     case $host_os in
8783     cygwin*)
8784       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8785       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8787       ;;
8788     mingw*)
8789       # MinGW DLLs use traditional 'lib' prefix
8790       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8791       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8792       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8793         # It is most probably a Windows format PATH printed by
8794         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8795         # path with ; separators, and with drive letters. We can handle the
8796         # drive letters (cygwin fileutils understands them), so leave them,
8797         # especially as we might pass files found there to a mingw objdump,
8798         # which wouldn't understand a cygwinified path. Ahh.
8799         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8800       else
8801         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8802       fi
8803       ;;
8804     pw32*)
8805       # pw32 DLLs use 'pw' prefix rather than 'lib'
8806       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8807       ;;
8808     esac
8809     ;;
8810
8811   *)
8812     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8813     ;;
8814   esac
8815   dynamic_linker='Win32 ld.exe'
8816   # FIXME: first we should search . and the directory the executable is in
8817   shlibpath_var=PATH
8818   ;;
8819
8820 darwin* | rhapsody*)
8821   dynamic_linker="$host_os dyld"
8822   version_type=darwin
8823   need_lib_prefix=no
8824   need_version=no
8825   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8826   soname_spec='${libname}${release}${major}$shared_ext'
8827   shlibpath_overrides_runpath=yes
8828   shlibpath_var=DYLD_LIBRARY_PATH
8829   shrext_cmds='.dylib'
8830   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8831   if test "$GCC" = yes; then
8832     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"`
8833   else
8834     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8835   fi
8836   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8837   ;;
8838
8839 dgux*)
8840   version_type=linux
8841   need_lib_prefix=no
8842   need_version=no
8843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8844   soname_spec='${libname}${release}${shared_ext}$major'
8845   shlibpath_var=LD_LIBRARY_PATH
8846   ;;
8847
8848 freebsd1.*)
8849   dynamic_linker=no
8850   ;;
8851
8852 kfreebsd*-gnu)
8853   version_type=linux
8854   need_lib_prefix=no
8855   need_version=no
8856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8857   soname_spec='${libname}${release}${shared_ext}$major'
8858   shlibpath_var=LD_LIBRARY_PATH
8859   shlibpath_overrides_runpath=no
8860   hardcode_into_libs=yes
8861   dynamic_linker='GNU ld.so'
8862   ;;
8863
8864 freebsd* | dragonfly*)
8865   # DragonFly does not have aout.  When/if they implement a new
8866   # versioning mechanism, adjust this.
8867   if test -x /usr/bin/objformat; then
8868     objformat=`/usr/bin/objformat`
8869   else
8870     case $host_os in
8871     freebsd[123].*) objformat=aout ;;
8872     *) objformat=elf ;;
8873     esac
8874   fi
8875   version_type=freebsd-$objformat
8876   case $version_type in
8877     freebsd-elf*)
8878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8879       need_version=no
8880       need_lib_prefix=no
8881       ;;
8882     freebsd-*)
8883       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8884       need_version=yes
8885       ;;
8886   esac
8887   shlibpath_var=LD_LIBRARY_PATH
8888   case $host_os in
8889   freebsd2.*)
8890     shlibpath_overrides_runpath=yes
8891     ;;
8892   freebsd3.[01]* | freebsdelf3.[01]*)
8893     shlibpath_overrides_runpath=yes
8894     hardcode_into_libs=yes
8895     ;;
8896   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8897   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8898     shlibpath_overrides_runpath=no
8899     hardcode_into_libs=yes
8900     ;;
8901   freebsd*) # from 4.6 on
8902     shlibpath_overrides_runpath=yes
8903     hardcode_into_libs=yes
8904     ;;
8905   esac
8906   ;;
8907
8908 gnu*)
8909   version_type=linux
8910   need_lib_prefix=no
8911   need_version=no
8912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8913   soname_spec='${libname}${release}${shared_ext}$major'
8914   shlibpath_var=LD_LIBRARY_PATH
8915   hardcode_into_libs=yes
8916   ;;
8917
8918 hpux9* | hpux10* | hpux11*)
8919   # Give a soname corresponding to the major version so that dld.sl refuses to
8920   # link against other versions.
8921   version_type=sunos
8922   need_lib_prefix=no
8923   need_version=no
8924   case $host_cpu in
8925   ia64*)
8926     shrext_cmds='.so'
8927     hardcode_into_libs=yes
8928     dynamic_linker="$host_os dld.so"
8929     shlibpath_var=LD_LIBRARY_PATH
8930     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932     soname_spec='${libname}${release}${shared_ext}$major'
8933     if test "X$HPUX_IA64_MODE" = X32; then
8934       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8935     else
8936       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8937     fi
8938     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8939     ;;
8940    hppa*64*)
8941      shrext_cmds='.sl'
8942      hardcode_into_libs=yes
8943      dynamic_linker="$host_os dld.sl"
8944      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8945      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947      soname_spec='${libname}${release}${shared_ext}$major'
8948      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8949      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8950      ;;
8951    *)
8952     shrext_cmds='.sl'
8953     dynamic_linker="$host_os dld.sl"
8954     shlibpath_var=SHLIB_PATH
8955     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957     soname_spec='${libname}${release}${shared_ext}$major'
8958     ;;
8959   esac
8960   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8961   postinstall_cmds='chmod 555 $lib'
8962   ;;
8963
8964 interix3*)
8965   version_type=linux
8966   need_lib_prefix=no
8967   need_version=no
8968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969   soname_spec='${libname}${release}${shared_ext}$major'
8970   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8971   shlibpath_var=LD_LIBRARY_PATH
8972   shlibpath_overrides_runpath=no
8973   hardcode_into_libs=yes
8974   ;;
8975
8976 irix5* | irix6* | nonstopux*)
8977   case $host_os in
8978     nonstopux*) version_type=nonstopux ;;
8979     *)
8980         if test "$lt_cv_prog_gnu_ld" = yes; then
8981                 version_type=linux
8982         else
8983                 version_type=irix
8984         fi ;;
8985   esac
8986   need_lib_prefix=no
8987   need_version=no
8988   soname_spec='${libname}${release}${shared_ext}$major'
8989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8990   case $host_os in
8991   irix5* | nonstopux*)
8992     libsuff= shlibsuff=
8993     ;;
8994   *)
8995     case $LD in # libtool.m4 will add one of these switches to LD
8996     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8997       libsuff= shlibsuff= libmagic=32-bit;;
8998     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8999       libsuff=32 shlibsuff=N32 libmagic=N32;;
9000     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9001       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9002     *) libsuff= shlibsuff= libmagic=never-match;;
9003     esac
9004     ;;
9005   esac
9006   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9007   shlibpath_overrides_runpath=no
9008   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9009   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9010   hardcode_into_libs=yes
9011   ;;
9012
9013 # No shared lib support for Linux oldld, aout, or coff.
9014 linux*oldld* | linux*aout* | linux*coff*)
9015   dynamic_linker=no
9016   ;;
9017
9018 # This must be Linux ELF.
9019 linux*)
9020   version_type=linux
9021   need_lib_prefix=no
9022   need_version=no
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024   soname_spec='${libname}${release}${shared_ext}$major'
9025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9026   shlibpath_var=LD_LIBRARY_PATH
9027   shlibpath_overrides_runpath=no
9028   # This implies no fast_install, which is unacceptable.
9029   # Some rework will be needed to allow for fast_install
9030   # before this can be enabled.
9031   hardcode_into_libs=yes
9032
9033   # Append ld.so.conf contents to the search path
9034   if test -f /etc/ld.so.conf; then
9035     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' ' '`
9036     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9037   fi
9038
9039   # We used to test for /lib/ld.so.1 and disable shared libraries on
9040   # powerpc, because MkLinux only supported shared libraries with the
9041   # GNU dynamic linker.  Since this was broken with cross compilers,
9042   # most powerpc-linux boxes support dynamic linking these days and
9043   # people can always --disable-shared, the test was removed, and we
9044   # assume the GNU/Linux dynamic linker is in use.
9045   dynamic_linker='GNU/Linux ld.so'
9046   ;;
9047
9048 knetbsd*-gnu)
9049   version_type=linux
9050   need_lib_prefix=no
9051   need_version=no
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9053   soname_spec='${libname}${release}${shared_ext}$major'
9054   shlibpath_var=LD_LIBRARY_PATH
9055   shlibpath_overrides_runpath=no
9056   hardcode_into_libs=yes
9057   dynamic_linker='GNU ld.so'
9058   ;;
9059
9060 netbsd*)
9061   version_type=sunos
9062   need_lib_prefix=no
9063   need_version=no
9064   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9066     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9067     dynamic_linker='NetBSD (a.out) ld.so'
9068   else
9069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9070     soname_spec='${libname}${release}${shared_ext}$major'
9071     dynamic_linker='NetBSD ld.elf_so'
9072   fi
9073   shlibpath_var=LD_LIBRARY_PATH
9074   shlibpath_overrides_runpath=yes
9075   hardcode_into_libs=yes
9076   ;;
9077
9078 newsos6)
9079   version_type=linux
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081   shlibpath_var=LD_LIBRARY_PATH
9082   shlibpath_overrides_runpath=yes
9083   ;;
9084
9085 nto-qnx*)
9086   version_type=linux
9087   need_lib_prefix=no
9088   need_version=no
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090   soname_spec='${libname}${release}${shared_ext}$major'
9091   shlibpath_var=LD_LIBRARY_PATH
9092   shlibpath_overrides_runpath=yes
9093   ;;
9094
9095 openbsd*)
9096   version_type=sunos
9097   sys_lib_dlsearch_path_spec="/usr/lib"
9098   need_lib_prefix=no
9099   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9100   case $host_os in
9101     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9102     *)                         need_version=no  ;;
9103   esac
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9105   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9106   shlibpath_var=LD_LIBRARY_PATH
9107   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9108     case $host_os in
9109       openbsd2.[89] | openbsd2.[89].*)
9110         shlibpath_overrides_runpath=no
9111         ;;
9112       *)
9113         shlibpath_overrides_runpath=yes
9114         ;;
9115       esac
9116   else
9117     shlibpath_overrides_runpath=yes
9118   fi
9119   ;;
9120
9121 os2*)
9122   libname_spec='$name'
9123   shrext_cmds=".dll"
9124   need_lib_prefix=no
9125   library_names_spec='$libname${shared_ext} $libname.a'
9126   dynamic_linker='OS/2 ld.exe'
9127   shlibpath_var=LIBPATH
9128   ;;
9129
9130 osf3* | osf4* | osf5*)
9131   version_type=osf
9132   need_lib_prefix=no
9133   need_version=no
9134   soname_spec='${libname}${release}${shared_ext}$major'
9135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136   shlibpath_var=LD_LIBRARY_PATH
9137   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9138   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9139   ;;
9140
9141 solaris*)
9142   version_type=linux
9143   need_lib_prefix=no
9144   need_version=no
9145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146   soname_spec='${libname}${release}${shared_ext}$major'
9147   shlibpath_var=LD_LIBRARY_PATH
9148   shlibpath_overrides_runpath=yes
9149   hardcode_into_libs=yes
9150   # ldd complains unless libraries are executable
9151   postinstall_cmds='chmod +x $lib'
9152   ;;
9153
9154 sunos4*)
9155   version_type=sunos
9156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9157   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9158   shlibpath_var=LD_LIBRARY_PATH
9159   shlibpath_overrides_runpath=yes
9160   if test "$with_gnu_ld" = yes; then
9161     need_lib_prefix=no
9162   fi
9163   need_version=yes
9164   ;;
9165
9166 sysv4 | sysv4.3*)
9167   version_type=linux
9168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169   soname_spec='${libname}${release}${shared_ext}$major'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   case $host_vendor in
9172     sni)
9173       shlibpath_overrides_runpath=no
9174       need_lib_prefix=no
9175       export_dynamic_flag_spec='${wl}-Blargedynsym'
9176       runpath_var=LD_RUN_PATH
9177       ;;
9178     siemens)
9179       need_lib_prefix=no
9180       ;;
9181     motorola)
9182       need_lib_prefix=no
9183       need_version=no
9184       shlibpath_overrides_runpath=no
9185       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9186       ;;
9187   esac
9188   ;;
9189
9190 sysv4*MP*)
9191   if test -d /usr/nec ;then
9192     version_type=linux
9193     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9194     soname_spec='$libname${shared_ext}.$major'
9195     shlibpath_var=LD_LIBRARY_PATH
9196   fi
9197   ;;
9198
9199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9200   version_type=freebsd-elf
9201   need_lib_prefix=no
9202   need_version=no
9203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9204   soname_spec='${libname}${release}${shared_ext}$major'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   hardcode_into_libs=yes
9207   if test "$with_gnu_ld" = yes; then
9208     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9209     shlibpath_overrides_runpath=no
9210   else
9211     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9212     shlibpath_overrides_runpath=yes
9213     case $host_os in
9214       sco3.2v5*)
9215         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9216         ;;
9217     esac
9218   fi
9219   sys_lib_dlsearch_path_spec='/usr/lib'
9220   ;;
9221
9222 uts4*)
9223   version_type=linux
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225   soname_spec='${libname}${release}${shared_ext}$major'
9226   shlibpath_var=LD_LIBRARY_PATH
9227   ;;
9228
9229 *)
9230   dynamic_linker=no
9231   ;;
9232 esac
9233 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9234 echo "${ECHO_T}$dynamic_linker" >&6; }
9235 test "$dynamic_linker" = no && can_build_shared=no
9236
9237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9238 if test "$GCC" = yes; then
9239   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9240 fi
9241
9242
9243 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9244 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9245 if test "${libltdl_cv_shlibext+set}" = set; then
9246   echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248
9249 module=yes
9250 eval libltdl_cv_shlibext=$shrext_cmds
9251
9252 fi
9253 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9254 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9255 if test -n "$libltdl_cv_shlibext"; then
9256
9257 cat >>confdefs.h <<_ACEOF
9258 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9259 _ACEOF
9260
9261 fi
9262
9263
9264 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9265 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9266 if test "${libltdl_cv_sys_search_path+set}" = set; then
9267   echo $ECHO_N "(cached) $ECHO_C" >&6
9268 else
9269   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9270 fi
9271 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9272 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9273 if test -n "$libltdl_cv_sys_search_path"; then
9274   sys_search_path=
9275   for dir in $libltdl_cv_sys_search_path; do
9276     if test -z "$sys_search_path"; then
9277       sys_search_path="$dir"
9278     else
9279       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9280     fi
9281   done
9282
9283 cat >>confdefs.h <<_ACEOF
9284 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9285 _ACEOF
9286
9287 fi
9288
9289 { echo "$as_me:$LINENO: checking for objdir" >&5
9290 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9291 if test "${libltdl_cv_objdir+set}" = set; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294   libltdl_cv_objdir="$objdir"
9295   if test -n "$objdir"; then
9296     :
9297   else
9298     rm -f .libs 2>/dev/null
9299     mkdir .libs 2>/dev/null
9300     if test -d .libs; then
9301       libltdl_cv_objdir=.libs
9302     else
9303       # MS-DOS does not allow filenames that begin with a dot.
9304       libltdl_cv_objdir=_libs
9305     fi
9306   rmdir .libs 2>/dev/null
9307   fi
9308
9309 fi
9310 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9311 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9312
9313 cat >>confdefs.h <<_ACEOF
9314 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9315 _ACEOF
9316
9317
9318
9319
9320
9321
9322 # Check for command to grab the raw symbol name followed by C symbol from nm.
9323 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9324 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9325 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9326   echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328
9329 # These are sane defaults that work on at least a few old systems.
9330 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9331
9332 # Character class describing NM global symbol codes.
9333 symcode='[BCDEGRST]'
9334
9335 # Regexp to match symbols that can be accessed directly from C.
9336 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9337
9338 # Transform an extracted symbol line into a proper C declaration
9339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9340
9341 # Transform an extracted symbol line into symbol name and symbol address
9342 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'"
9343
9344 # Define system-specific variables.
9345 case $host_os in
9346 aix*)
9347   symcode='[BCDT]'
9348   ;;
9349 cygwin* | mingw* | pw32*)
9350   symcode='[ABCDGISTW]'
9351   ;;
9352 hpux*) # Its linker distinguishes data from code symbols
9353   if test "$host_cpu" = ia64; then
9354     symcode='[ABCDEGRST]'
9355   fi
9356   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9357   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'"
9358   ;;
9359 linux*)
9360   if test "$host_cpu" = ia64; then
9361     symcode='[ABCDGIRSTW]'
9362     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9363     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'"
9364   fi
9365   ;;
9366 irix* | nonstopux*)
9367   symcode='[BCDEGRST]'
9368   ;;
9369 osf*)
9370   symcode='[BCDEGQRST]'
9371   ;;
9372 solaris*)
9373   symcode='[BDRT]'
9374   ;;
9375 sco3.2v5*)
9376   symcode='[DT]'
9377   ;;
9378 sysv4.2uw2*)
9379   symcode='[DT]'
9380   ;;
9381 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9382   symcode='[ABDT]'
9383   ;;
9384 sysv4)
9385   symcode='[DFNSTU]'
9386   ;;
9387 esac
9388
9389 # Handle CRLF in mingw tool chain
9390 opt_cr=
9391 case $build_os in
9392 mingw*)
9393   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9394   ;;
9395 esac
9396
9397 # If we're using GNU nm, then use its standard symbol codes.
9398 case `$NM -V 2>&1` in
9399 *GNU* | *'with BFD'*)
9400   symcode='[ABCDGIRSTW]' ;;
9401 esac
9402
9403 # Try without a prefix undercore, then with it.
9404 for ac_symprfx in "" "_"; do
9405
9406   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9407   symxfrm="\\1 $ac_symprfx\\2 \\2"
9408
9409   # Write the raw and C identifiers.
9410   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9411
9412   # Check to see that the pipe works correctly.
9413   pipe_works=no
9414
9415   rm -f conftest*
9416   cat > conftest.$ac_ext <<EOF
9417 #ifdef __cplusplus
9418 extern "C" {
9419 #endif
9420 char nm_test_var;
9421 void nm_test_func(){}
9422 #ifdef __cplusplus
9423 }
9424 #endif
9425 int main(){nm_test_var='a';nm_test_func();return(0);}
9426 EOF
9427
9428   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9429   (eval $ac_compile) 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); }; then
9433     # Now try to grab the symbols.
9434     nlist=conftest.nm
9435     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9436   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } && test -s "$nlist"; then
9440       # Try sorting and uniquifying the output.
9441       if sort "$nlist" | uniq > "$nlist"T; then
9442         mv -f "$nlist"T "$nlist"
9443       else
9444         rm -f "$nlist"T
9445       fi
9446
9447       # Make sure that we snagged all the symbols we need.
9448       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9449         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9450           cat <<EOF > conftest.$ac_ext
9451 #ifdef __cplusplus
9452 extern "C" {
9453 #endif
9454
9455 EOF
9456           # Now generate the symbol file.
9457           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9458
9459           cat <<EOF >> conftest.$ac_ext
9460 #if defined (__STDC__) && __STDC__
9461 # define lt_ptr_t void *
9462 #else
9463 # define lt_ptr_t char *
9464 # define const
9465 #endif
9466
9467 /* The mapping between symbol names and symbols. */
9468 const struct {
9469   const char *name;
9470   lt_ptr_t address;
9471 }
9472 lt_preloaded_symbols[] =
9473 {
9474 EOF
9475           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9476           cat <<\EOF >> conftest.$ac_ext
9477   {0, (lt_ptr_t) 0}
9478 };
9479
9480 #ifdef __cplusplus
9481 }
9482 #endif
9483 EOF
9484           # Now try linking the two files.
9485           mv conftest.$ac_objext conftstm.$ac_objext
9486           lt_save_LIBS="$LIBS"
9487           lt_save_CFLAGS="$CFLAGS"
9488           LIBS="conftstm.$ac_objext"
9489           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9490           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491   (eval $ac_link) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9495             pipe_works=yes
9496           fi
9497           LIBS="$lt_save_LIBS"
9498           CFLAGS="$lt_save_CFLAGS"
9499         else
9500           echo "cannot find nm_test_func in $nlist" >&5
9501         fi
9502       else
9503         echo "cannot find nm_test_var in $nlist" >&5
9504       fi
9505     else
9506       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9507     fi
9508   else
9509     echo "$progname: failed program was:" >&5
9510     cat conftest.$ac_ext >&5
9511   fi
9512   rm -f conftest* conftst*
9513
9514   # Do not use the global_symbol_pipe unless it works.
9515   if test "$pipe_works" = yes; then
9516     break
9517   else
9518     lt_cv_sys_global_symbol_pipe=
9519   fi
9520 done
9521
9522 fi
9523
9524 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9525   lt_cv_sys_global_symbol_to_cdecl=
9526 fi
9527 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9528   { echo "$as_me:$LINENO: result: failed" >&5
9529 echo "${ECHO_T}failed" >&6; }
9530 else
9531   { echo "$as_me:$LINENO: result: ok" >&5
9532 echo "${ECHO_T}ok" >&6; }
9533 fi
9534
9535
9536 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9537 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9538 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9542     libltdl_cv_preloaded_symbols=yes
9543   else
9544     libltdl_cv_preloaded_symbols=no
9545   fi
9546
9547 fi
9548 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9549 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9550 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9551
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_PRELOADED_SYMBOLS 1
9554 _ACEOF
9555
9556 fi
9557
9558 LIBADD_DL=
9559
9560 ac_ext=c
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9565
9566
9567 { echo "$as_me:$LINENO: checking for shl_load" >&5
9568 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9569 if test "${ac_cv_func_shl_load+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9580 #define shl_load innocuous_shl_load
9581
9582 /* System header to define __stub macros and hopefully few prototypes,
9583     which can conflict with char shl_load (); below.
9584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9585     <limits.h> exists even on freestanding compilers.  */
9586
9587 #ifdef __STDC__
9588 # include <limits.h>
9589 #else
9590 # include <assert.h>
9591 #endif
9592
9593 #undef shl_load
9594
9595 /* Override any GCC internal prototype to avoid an error.
9596    Use char because int might match the return type of a GCC
9597    builtin and then its argument prototype would still apply.  */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char shl_load ();
9602 /* The GNU C library defines this for functions which it implements
9603     to always fail with ENOSYS.  Some functions are actually named
9604     something starting with __ and the normal name is an alias.  */
9605 #if defined __stub_shl_load || defined __stub___shl_load
9606 choke me
9607 #endif
9608
9609 int
9610 main ()
9611 {
9612 return shl_load ();
9613   ;
9614   return 0;
9615 }
9616 _ACEOF
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9619 case "(($ac_try" in
9620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621   *) ac_try_echo=$ac_try;;
9622 esac
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624   (eval "$ac_link") 2>conftest.er1
9625   ac_status=$?
9626   grep -v '^ *+' conftest.er1 >conftest.err
9627   rm -f conftest.er1
9628   cat conftest.err >&5
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } &&
9631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9632   { (case "(($ac_try" in
9633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634   *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637   (eval "$ac_try") 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; } &&
9641          { ac_try='test -s conftest$ac_exeext'
9642   { (case "(($ac_try" in
9643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644   *) ac_try_echo=$ac_try;;
9645 esac
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647   (eval "$ac_try") 2>&5
9648   ac_status=$?
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); }; }; then
9651   ac_cv_func_shl_load=yes
9652 else
9653   echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656         ac_cv_func_shl_load=no
9657 fi
9658
9659 rm -f core conftest.err conftest.$ac_objext \
9660       conftest$ac_exeext conftest.$ac_ext
9661 fi
9662 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9663 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9664 if test $ac_cv_func_shl_load = yes; then
9665
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_SHL_LOAD 1
9668 _ACEOF
9669
9670 else
9671   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9672 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9673 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676   ac_check_lib_save_LIBS=$LIBS
9677 LIBS="-ldld  $LIBS"
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h.  */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h.  */
9684
9685 /* Override any GCC internal prototype to avoid an error.
9686    Use char because int might match the return type of a GCC
9687    builtin and then its argument prototype would still apply.  */
9688 #ifdef __cplusplus
9689 extern "C"
9690 #endif
9691 char shl_load ();
9692 int
9693 main ()
9694 {
9695 return shl_load ();
9696   ;
9697   return 0;
9698 }
9699 _ACEOF
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9702 case "(($ac_try" in
9703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704   *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707   (eval "$ac_link") 2>conftest.er1
9708   ac_status=$?
9709   grep -v '^ *+' conftest.er1 >conftest.err
9710   rm -f conftest.er1
9711   cat conftest.err >&5
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); } &&
9714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9715   { (case "(($ac_try" in
9716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717   *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720   (eval "$ac_try") 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; } &&
9724          { ac_try='test -s conftest$ac_exeext'
9725   { (case "(($ac_try" in
9726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727   *) ac_try_echo=$ac_try;;
9728 esac
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730   (eval "$ac_try") 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   ac_cv_lib_dld_shl_load=yes
9735 else
9736   echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739         ac_cv_lib_dld_shl_load=no
9740 fi
9741
9742 rm -f core conftest.err conftest.$ac_objext \
9743       conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9745 fi
9746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9747 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9748 if test $ac_cv_lib_dld_shl_load = yes; then
9749
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_SHL_LOAD 1
9752 _ACEOF
9753
9754         LIBADD_DL="$LIBADD_DL -ldld"
9755 else
9756   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9757 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761   ac_check_lib_save_LIBS=$LIBS
9762 LIBS="-ldl  $LIBS"
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769
9770 /* Override any GCC internal prototype to avoid an error.
9771    Use char because int might match the return type of a GCC
9772    builtin and then its argument prototype would still apply.  */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 char dlopen ();
9777 int
9778 main ()
9779 {
9780 return dlopen ();
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9787 case "(($ac_try" in
9788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789   *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792   (eval "$ac_link") 2>conftest.er1
9793   ac_status=$?
9794   grep -v '^ *+' conftest.er1 >conftest.err
9795   rm -f conftest.er1
9796   cat conftest.err >&5
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); } &&
9799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9800   { (case "(($ac_try" in
9801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802   *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805   (eval "$ac_try") 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; } &&
9809          { ac_try='test -s conftest$ac_exeext'
9810   { (case "(($ac_try" in
9811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812   *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815   (eval "$ac_try") 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   ac_cv_lib_dl_dlopen=yes
9820 else
9821   echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824         ac_cv_lib_dl_dlopen=no
9825 fi
9826
9827 rm -f core conftest.err conftest.$ac_objext \
9828       conftest$ac_exeext conftest.$ac_ext
9829 LIBS=$ac_check_lib_save_LIBS
9830 fi
9831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9832 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9833 if test $ac_cv_lib_dl_dlopen = yes; then
9834
9835 cat >>confdefs.h <<\_ACEOF
9836 #define HAVE_LIBDL 1
9837 _ACEOF
9838
9839                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9840 else
9841   cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847 #if HAVE_DLFCN_H
9848 #  include <dlfcn.h>
9849 #endif
9850
9851 int
9852 main ()
9853 {
9854 dlopen(0, 0);
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9861 case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_link") 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874   { (case "(($ac_try" in
9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876   *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879   (eval "$ac_try") 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); }; } &&
9883          { ac_try='test -s conftest$ac_exeext'
9884   { (case "(($ac_try" in
9885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886   *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889   (eval "$ac_try") 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; }; then
9893
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_LIBDL 1
9896 _ACEOF
9897  libltdl_cv_func_dlopen="yes"
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9903 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9904 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9905   echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907   ac_check_lib_save_LIBS=$LIBS
9908 LIBS="-lsvld  $LIBS"
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h.  */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h.  */
9915
9916 /* Override any GCC internal prototype to avoid an error.
9917    Use char because int might match the return type of a GCC
9918    builtin and then its argument prototype would still apply.  */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char dlopen ();
9923 int
9924 main ()
9925 {
9926 return dlopen ();
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9933 case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938   (eval "$ac_link") 2>conftest.er1
9939   ac_status=$?
9940   grep -v '^ *+' conftest.er1 >conftest.err
9941   rm -f conftest.er1
9942   cat conftest.err >&5
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); } &&
9945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946   { (case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_try") 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; } &&
9955          { ac_try='test -s conftest$ac_exeext'
9956   { (case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961   (eval "$ac_try") 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; }; then
9965   ac_cv_lib_svld_dlopen=yes
9966 else
9967   echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970         ac_cv_lib_svld_dlopen=no
9971 fi
9972
9973 rm -f core conftest.err conftest.$ac_objext \
9974       conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9976 fi
9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9978 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9979 if test $ac_cv_lib_svld_dlopen = yes; then
9980
9981 cat >>confdefs.h <<\_ACEOF
9982 #define HAVE_LIBDL 1
9983 _ACEOF
9984
9985                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9986 else
9987   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9988 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9989 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   ac_check_lib_save_LIBS=$LIBS
9993 LIBS="-ldld  $LIBS"
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000
10001 /* Override any GCC internal prototype to avoid an error.
10002    Use char because int might match the return type of a GCC
10003    builtin and then its argument prototype would still apply.  */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char dld_link ();
10008 int
10009 main ()
10010 {
10011 return dld_link ();
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (ac_try="$ac_link"
10018 case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_link") 2>conftest.er1
10024   ac_status=$?
10025   grep -v '^ *+' conftest.er1 >conftest.err
10026   rm -f conftest.er1
10027   cat conftest.err >&5
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } &&
10030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; } &&
10040          { ac_try='test -s conftest$ac_exeext'
10041   { (case "(($ac_try" in
10042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043   *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046   (eval "$ac_try") 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; }; then
10050   ac_cv_lib_dld_dld_link=yes
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055         ac_cv_lib_dld_dld_link=no
10056 fi
10057
10058 rm -f core conftest.err conftest.$ac_objext \
10059       conftest$ac_exeext conftest.$ac_ext
10060 LIBS=$ac_check_lib_save_LIBS
10061 fi
10062 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10063 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10064 if test $ac_cv_lib_dld_dld_link = yes; then
10065
10066 cat >>confdefs.h <<\_ACEOF
10067 #define HAVE_DLD 1
10068 _ACEOF
10069
10070                 LIBADD_DL="$LIBADD_DL -ldld"
10071 else
10072   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10073 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10074 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10075   echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077   cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10085 #define _dyld_func_lookup innocuous__dyld_func_lookup
10086
10087 /* System header to define __stub macros and hopefully few prototypes,
10088     which can conflict with char _dyld_func_lookup (); below.
10089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10090     <limits.h> exists even on freestanding compilers.  */
10091
10092 #ifdef __STDC__
10093 # include <limits.h>
10094 #else
10095 # include <assert.h>
10096 #endif
10097
10098 #undef _dyld_func_lookup
10099
10100 /* Override any GCC internal prototype to avoid an error.
10101    Use char because int might match the return type of a GCC
10102    builtin and then its argument prototype would still apply.  */
10103 #ifdef __cplusplus
10104 extern "C"
10105 #endif
10106 char _dyld_func_lookup ();
10107 /* The GNU C library defines this for functions which it implements
10108     to always fail with ENOSYS.  Some functions are actually named
10109     something starting with __ and the normal name is an alias.  */
10110 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10111 choke me
10112 #endif
10113
10114 int
10115 main ()
10116 {
10117 return _dyld_func_lookup ();
10118   ;
10119   return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (ac_try="$ac_link"
10124 case "(($ac_try" in
10125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126   *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129   (eval "$ac_link") 2>conftest.er1
10130   ac_status=$?
10131   grep -v '^ *+' conftest.er1 >conftest.err
10132   rm -f conftest.er1
10133   cat conftest.err >&5
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); } &&
10136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10137   { (case "(($ac_try" in
10138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139   *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142   (eval "$ac_try") 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; } &&
10146          { ac_try='test -s conftest$ac_exeext'
10147   { (case "(($ac_try" in
10148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149   *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152   (eval "$ac_try") 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; }; then
10156   ac_cv_func__dyld_func_lookup=yes
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161         ac_cv_func__dyld_func_lookup=no
10162 fi
10163
10164 rm -f core conftest.err conftest.$ac_objext \
10165       conftest$ac_exeext conftest.$ac_ext
10166 fi
10167 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10168 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10169 if test $ac_cv_func__dyld_func_lookup = yes; then
10170
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_DYLD 1
10173 _ACEOF
10174
10175 fi
10176
10177
10178 fi
10179
10180
10181 fi
10182
10183
10184 fi
10185
10186 rm -f core conftest.err conftest.$ac_objext \
10187       conftest$ac_exeext conftest.$ac_ext
10188
10189 fi
10190
10191
10192 fi
10193
10194
10195 fi
10196
10197
10198 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10199 then
10200   lt_save_LIBS="$LIBS"
10201   LIBS="$LIBS $LIBADD_DL"
10202
10203 for ac_func in dlerror
10204 do
10205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10206 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h.  */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h.  */
10217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10219 #define $ac_func innocuous_$ac_func
10220
10221 /* System header to define __stub macros and hopefully few prototypes,
10222     which can conflict with char $ac_func (); below.
10223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10224     <limits.h> exists even on freestanding compilers.  */
10225
10226 #ifdef __STDC__
10227 # include <limits.h>
10228 #else
10229 # include <assert.h>
10230 #endif
10231
10232 #undef $ac_func
10233
10234 /* Override any GCC internal prototype to avoid an error.
10235    Use char because int might match the return type of a GCC
10236    builtin and then its argument prototype would still apply.  */
10237 #ifdef __cplusplus
10238 extern "C"
10239 #endif
10240 char $ac_func ();
10241 /* The GNU C library defines this for functions which it implements
10242     to always fail with ENOSYS.  Some functions are actually named
10243     something starting with __ and the normal name is an alias.  */
10244 #if defined __stub_$ac_func || defined __stub___$ac_func
10245 choke me
10246 #endif
10247
10248 int
10249 main ()
10250 {
10251 return $ac_func ();
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (ac_try="$ac_link"
10258 case "(($ac_try" in
10259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260   *) ac_try_echo=$ac_try;;
10261 esac
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263   (eval "$ac_link") 2>conftest.er1
10264   ac_status=$?
10265   grep -v '^ *+' conftest.er1 >conftest.err
10266   rm -f conftest.er1
10267   cat conftest.err >&5
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } &&
10270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10271   { (case "(($ac_try" in
10272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273   *) ac_try_echo=$ac_try;;
10274 esac
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276   (eval "$ac_try") 2>&5
10277   ac_status=$?
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); }; } &&
10280          { ac_try='test -s conftest$ac_exeext'
10281   { (case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286   (eval "$ac_try") 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; }; then
10290   eval "$as_ac_var=yes"
10291 else
10292   echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10294
10295         eval "$as_ac_var=no"
10296 fi
10297
10298 rm -f core conftest.err conftest.$ac_objext \
10299       conftest$ac_exeext conftest.$ac_ext
10300 fi
10301 ac_res=`eval echo '${'$as_ac_var'}'`
10302                { echo "$as_me:$LINENO: result: $ac_res" >&5
10303 echo "${ECHO_T}$ac_res" >&6; }
10304 if test `eval echo '${'$as_ac_var'}'` = yes; then
10305   cat >>confdefs.h <<_ACEOF
10306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10307 _ACEOF
10308
10309 fi
10310 done
10311
10312   LIBS="$lt_save_LIBS"
10313 fi
10314 ac_ext=c
10315 ac_cpp='$CPP $CPPFLAGS'
10316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10319
10320
10321
10322 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10323 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10324 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   ac_cv_sys_symbol_underscore=no
10328   cat > conftest.$ac_ext <<EOF
10329 void nm_test_func(){}
10330 int main(){nm_test_func;return 0;}
10331 EOF
10332   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333   (eval $ac_compile) 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); }; then
10337     # Now try to grab the symbols.
10338     ac_nlist=conftest.nm
10339     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10340   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); } && test -s "$ac_nlist"; then
10344       # See whether the symbols have a leading underscore.
10345       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10346         ac_cv_sys_symbol_underscore=yes
10347       else
10348         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10349           :
10350         else
10351           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10352         fi
10353       fi
10354     else
10355       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10356     fi
10357   else
10358     echo "configure: failed program was:" >&5
10359     cat conftest.c >&5
10360   fi
10361   rm -rf conftest*
10362
10363 fi
10364 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10365 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10366
10367
10368 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10369   if test x"$libltdl_cv_func_dlopen" = xyes ||
10370      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10371         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10372 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10373 if test "${libltdl_cv_need_uscore+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376   libltdl_cv_need_uscore=unknown
10377           save_LIBS="$LIBS"
10378           LIBS="$LIBS $LIBADD_DL"
10379           if test "$cross_compiling" = yes; then :
10380   libltdl_cv_need_uscore=cross
10381 else
10382   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10383   lt_status=$lt_dlunknown
10384   cat > conftest.$ac_ext <<EOF
10385 #line 10385 "configure"
10386 #include "confdefs.h"
10387
10388 #if HAVE_DLFCN_H
10389 #include <dlfcn.h>
10390 #endif
10391
10392 #include <stdio.h>
10393
10394 #ifdef RTLD_GLOBAL
10395 #  define LT_DLGLOBAL           RTLD_GLOBAL
10396 #else
10397 #  ifdef DL_GLOBAL
10398 #    define LT_DLGLOBAL         DL_GLOBAL
10399 #  else
10400 #    define LT_DLGLOBAL         0
10401 #  endif
10402 #endif
10403
10404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10405    find out it does not work in some platform. */
10406 #ifndef LT_DLLAZY_OR_NOW
10407 #  ifdef RTLD_LAZY
10408 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10409 #  else
10410 #    ifdef DL_LAZY
10411 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10412 #    else
10413 #      ifdef RTLD_NOW
10414 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10415 #      else
10416 #        ifdef DL_NOW
10417 #          define LT_DLLAZY_OR_NOW      DL_NOW
10418 #        else
10419 #          define LT_DLLAZY_OR_NOW      0
10420 #        endif
10421 #      endif
10422 #    endif
10423 #  endif
10424 #endif
10425
10426 #ifdef __cplusplus
10427 extern "C" void exit (int);
10428 #endif
10429
10430 void fnord() { int i=42;}
10431 int main ()
10432 {
10433   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10434   int status = $lt_dlunknown;
10435
10436   if (self)
10437     {
10438       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10439       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10440       /* dlclose (self); */
10441     }
10442   else
10443     puts (dlerror ());
10444
10445     exit (status);
10446 }
10447 EOF
10448   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449   (eval $ac_link) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10453     (./conftest; exit; ) >&5 2>/dev/null
10454     lt_status=$?
10455     case x$lt_status in
10456       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10457       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10458       x$lt_dlunknown|x*)  ;;
10459     esac
10460   else :
10461     # compilation failed
10462
10463   fi
10464 fi
10465 rm -fr conftest*
10466
10467           LIBS="$save_LIBS"
10468
10469 fi
10470 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10471 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10472   fi
10473 fi
10474
10475 if test x"$libltdl_cv_need_uscore" = xyes; then
10476
10477 cat >>confdefs.h <<\_ACEOF
10478 #define NEED_USCORE 1
10479 _ACEOF
10480
10481 fi
10482
10483
10484 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10485 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10486 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   # PORTME does your system automatically load deplibs for dlopen?
10490   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10491   # For now, we just catch OSes we know something about -- in the
10492   # future, we'll try test this programmatically.
10493   libltdl_cv_sys_dlopen_deplibs=unknown
10494   case "$host_os" in
10495   aix3*|aix4.1.*|aix4.2.*)
10496     # Unknown whether this is true for these versions of AIX, but
10497     # we want this `case' here to explicitly catch those versions.
10498     libltdl_cv_sys_dlopen_deplibs=unknown
10499     ;;
10500   aix[45]*)
10501     libltdl_cv_sys_dlopen_deplibs=yes
10502     ;;
10503   darwin*)
10504     # Assuming the user has installed a libdl from somewhere, this is true
10505     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10506     libltdl_cv_sys_dlopen_deplibs=yes
10507     ;;
10508   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10509     # GNU and its variants, using gnu ld.so (Glibc)
10510     libltdl_cv_sys_dlopen_deplibs=yes
10511     ;;
10512   hpux10*|hpux11*)
10513     libltdl_cv_sys_dlopen_deplibs=yes
10514     ;;
10515   interix*)
10516     libltdl_cv_sys_dlopen_deplibs=yes
10517     ;;
10518   irix[12345]*|irix6.[01]*)
10519     # Catch all versions of IRIX before 6.2, and indicate that we don't
10520     # know how it worked for any of those versions.
10521     libltdl_cv_sys_dlopen_deplibs=unknown
10522     ;;
10523   irix*)
10524     # The case above catches anything before 6.2, and it's known that
10525     # at 6.2 and later dlopen does load deplibs.
10526     libltdl_cv_sys_dlopen_deplibs=yes
10527     ;;
10528   netbsd*)
10529     libltdl_cv_sys_dlopen_deplibs=yes
10530     ;;
10531   openbsd*)
10532     libltdl_cv_sys_dlopen_deplibs=yes
10533     ;;
10534   osf[1234]*)
10535     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10536     # it did *not* use an RPATH in a shared library to find objects the
10537     # library depends on, so we explicitly say `no'.
10538     libltdl_cv_sys_dlopen_deplibs=no
10539     ;;
10540   osf5.0|osf5.0a|osf5.1)
10541     # dlopen *does* load deplibs and with the right loader patch applied
10542     # it even uses RPATH in a shared library to search for shared objects
10543     # that the library depends on, but there's no easy way to know if that
10544     # patch is installed.  Since this is the case, all we can really
10545     # say is unknown -- it depends on the patch being installed.  If
10546     # it is, this changes to `yes'.  Without it, it would be `no'.
10547     libltdl_cv_sys_dlopen_deplibs=unknown
10548     ;;
10549   osf*)
10550     # the two cases above should catch all versions of osf <= 5.1.  Read
10551     # the comments above for what we know about them.
10552     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10553     # is used to find them so we can finally say `yes'.
10554     libltdl_cv_sys_dlopen_deplibs=yes
10555     ;;
10556   solaris*)
10557     libltdl_cv_sys_dlopen_deplibs=yes
10558     ;;
10559   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10560     libltdl_cv_sys_dlopen_deplibs=yes
10561     ;;
10562   esac
10563
10564 fi
10565 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10566 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10567 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10568
10569 cat >>confdefs.h <<\_ACEOF
10570 #define LTDL_DLOPEN_DEPLIBS 1
10571 _ACEOF
10572
10573 fi
10574
10575
10576 for ac_header in argz.h
10577 do
10578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10580   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10583   echo $ECHO_N "(cached) $ECHO_C" >&6
10584 fi
10585 ac_res=`eval echo '${'$as_ac_Header'}'`
10586                { echo "$as_me:$LINENO: result: $ac_res" >&5
10587 echo "${ECHO_T}$ac_res" >&6; }
10588 else
10589   # Is the header compilable?
10590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h.  */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h.  */
10598 $ac_includes_default
10599 #include <$ac_header>
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608   (eval "$ac_compile") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } &&
10615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616   { (case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_try") 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); }; } &&
10625          { ac_try='test -s conftest.$ac_objext'
10626   { (case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_try") 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; }; then
10635   ac_header_compiler=yes
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640         ac_header_compiler=no
10641 fi
10642
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10645 echo "${ECHO_T}$ac_header_compiler" >&6; }
10646
10647 # Is the header present?
10648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656 #include <$ac_header>
10657 _ACEOF
10658 if { (ac_try="$ac_cpp conftest.$ac_ext"
10659 case "(($ac_try" in
10660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661   *) ac_try_echo=$ac_try;;
10662 esac
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10665   ac_status=$?
10666   grep -v '^ *+' conftest.er1 >conftest.err
10667   rm -f conftest.er1
10668   cat conftest.err >&5
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } >/dev/null; then
10671   if test -s conftest.err; then
10672     ac_cpp_err=$ac_c_preproc_warn_flag
10673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10674   else
10675     ac_cpp_err=
10676   fi
10677 else
10678   ac_cpp_err=yes
10679 fi
10680 if test -z "$ac_cpp_err"; then
10681   ac_header_preproc=yes
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686   ac_header_preproc=no
10687 fi
10688
10689 rm -f conftest.err conftest.$ac_ext
10690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10691 echo "${ECHO_T}$ac_header_preproc" >&6; }
10692
10693 # So?  What about this header?
10694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10695   yes:no: )
10696     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10700     ac_header_preproc=yes
10701     ;;
10702   no:yes:* )
10703     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10705     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10706 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10707     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10709     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10710 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10713     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10715     ( cat <<\_ASBOX
10716 ## ------------------------------ ##
10717 ## Report this to bugs@yourdomain ##
10718 ## ------------------------------ ##
10719 _ASBOX
10720      ) | sed "s/^/$as_me: WARNING:     /" >&2
10721     ;;
10722 esac
10723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10726   echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728   eval "$as_ac_Header=\$ac_header_preproc"
10729 fi
10730 ac_res=`eval echo '${'$as_ac_Header'}'`
10731                { echo "$as_me:$LINENO: result: $ac_res" >&5
10732 echo "${ECHO_T}$ac_res" >&6; }
10733
10734 fi
10735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10736   cat >>confdefs.h <<_ACEOF
10737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10738 _ACEOF
10739
10740 fi
10741
10742 done
10743
10744
10745 { echo "$as_me:$LINENO: checking for error_t" >&5
10746 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10747 if test "${ac_cv_type_error_t+set}" = set; then
10748   echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750   cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h.  */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h.  */
10756 #if HAVE_ARGZ_H
10757 #  include <argz.h>
10758 #endif
10759
10760 typedef error_t ac__type_new_;
10761 int
10762 main ()
10763 {
10764 if ((ac__type_new_ *) 0)
10765   return 0;
10766 if (sizeof (ac__type_new_))
10767   return 0;
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 rm -f conftest.$ac_objext
10773 if { (ac_try="$ac_compile"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_compile") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10787   { (case "(($ac_try" in
10788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789   *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792   (eval "$ac_try") 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; } &&
10796          { ac_try='test -s conftest.$ac_objext'
10797   { (case "(($ac_try" in
10798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799   *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802   (eval "$ac_try") 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; }; then
10806   ac_cv_type_error_t=yes
10807 else
10808   echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811         ac_cv_type_error_t=no
10812 fi
10813
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 fi
10816 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10817 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10818 if test $ac_cv_type_error_t = yes; then
10819
10820 cat >>confdefs.h <<_ACEOF
10821 #define HAVE_ERROR_T 1
10822 _ACEOF
10823
10824
10825 else
10826
10827 cat >>confdefs.h <<\_ACEOF
10828 #define error_t int
10829 _ACEOF
10830
10831 fi
10832
10833
10834
10835
10836
10837
10838
10839 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10840 do
10841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10845   echo $ECHO_N "(cached) $ECHO_C" >&6
10846 else
10847   cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10855 #define $ac_func innocuous_$ac_func
10856
10857 /* System header to define __stub macros and hopefully few prototypes,
10858     which can conflict with char $ac_func (); below.
10859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10860     <limits.h> exists even on freestanding compilers.  */
10861
10862 #ifdef __STDC__
10863 # include <limits.h>
10864 #else
10865 # include <assert.h>
10866 #endif
10867
10868 #undef $ac_func
10869
10870 /* Override any GCC internal prototype to avoid an error.
10871    Use char because int might match the return type of a GCC
10872    builtin and then its argument prototype would still apply.  */
10873 #ifdef __cplusplus
10874 extern "C"
10875 #endif
10876 char $ac_func ();
10877 /* The GNU C library defines this for functions which it implements
10878     to always fail with ENOSYS.  Some functions are actually named
10879     something starting with __ and the normal name is an alias.  */
10880 #if defined __stub_$ac_func || defined __stub___$ac_func
10881 choke me
10882 #endif
10883
10884 int
10885 main ()
10886 {
10887 return $ac_func ();
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (ac_try="$ac_link"
10894 case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_link") 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907   { (case "(($ac_try" in
10908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909   *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912   (eval "$ac_try") 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; } &&
10916          { ac_try='test -s conftest$ac_exeext'
10917   { (case "(($ac_try" in
10918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919   *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922   (eval "$ac_try") 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; }; then
10926   eval "$as_ac_var=yes"
10927 else
10928   echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931         eval "$as_ac_var=no"
10932 fi
10933
10934 rm -f core conftest.err conftest.$ac_objext \
10935       conftest$ac_exeext conftest.$ac_ext
10936 fi
10937 ac_res=`eval echo '${'$as_ac_var'}'`
10938                { echo "$as_me:$LINENO: result: $ac_res" >&5
10939 echo "${ECHO_T}$ac_res" >&6; }
10940 if test `eval echo '${'$as_ac_var'}'` = yes; then
10941   cat >>confdefs.h <<_ACEOF
10942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10943 _ACEOF
10944
10945 fi
10946 done
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10975                   stdio.h unistd.h
10976 do
10977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 fi
10984 ac_res=`eval echo '${'$as_ac_Header'}'`
10985                { echo "$as_me:$LINENO: result: $ac_res" >&5
10986 echo "${ECHO_T}$ac_res" >&6; }
10987 else
10988   # Is the header compilable?
10989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 $ac_includes_default
10998 #include <$ac_header>
10999 _ACEOF
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007   (eval "$ac_compile") 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015   { (case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020   (eval "$ac_try") 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; } &&
11024          { ac_try='test -s conftest.$ac_objext'
11025   { (case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_try") 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; }; then
11034   ac_header_compiler=yes
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039         ac_header_compiler=no
11040 fi
11041
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11044 echo "${ECHO_T}$ac_header_compiler" >&6; }
11045
11046 # Is the header present?
11047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055 #include <$ac_header>
11056 _ACEOF
11057 if { (ac_try="$ac_cpp conftest.$ac_ext"
11058 case "(($ac_try" in
11059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060   *) ac_try_echo=$ac_try;;
11061 esac
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } >/dev/null; then
11070   if test -s conftest.err; then
11071     ac_cpp_err=$ac_c_preproc_warn_flag
11072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11073   else
11074     ac_cpp_err=
11075   fi
11076 else
11077   ac_cpp_err=yes
11078 fi
11079 if test -z "$ac_cpp_err"; then
11080   ac_header_preproc=yes
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085   ac_header_preproc=no
11086 fi
11087
11088 rm -f conftest.err conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11090 echo "${ECHO_T}$ac_header_preproc" >&6; }
11091
11092 # So?  What about this header?
11093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11094   yes:no: )
11095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11099     ac_header_preproc=yes
11100     ;;
11101   no:yes:* )
11102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11114     ( cat <<\_ASBOX
11115 ## ------------------------------ ##
11116 ## Report this to bugs@yourdomain ##
11117 ## ------------------------------ ##
11118 _ASBOX
11119      ) | sed "s/^/$as_me: WARNING:     /" >&2
11120     ;;
11121 esac
11122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   eval "$as_ac_Header=\$ac_header_preproc"
11128 fi
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130                { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11132
11133 fi
11134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11135   cat >>confdefs.h <<_ACEOF
11136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11137 _ACEOF
11138
11139 fi
11140
11141 done
11142
11143
11144
11145
11146
11147 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11148 do
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154   echo $ECHO_N "(cached) $ECHO_C" >&6
11155 fi
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157                { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11159 else
11160   # Is the header compilable?
11161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 $ac_includes_default
11170 #include <$ac_header>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
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_compile") 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); } &&
11186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187   { (case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192   (eval "$ac_try") 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (case "(($ac_try" in
11198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199   *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202   (eval "$ac_try") 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   ac_header_compiler=yes
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211         ac_header_compiler=no
11212 fi
11213
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11216 echo "${ECHO_T}$ac_header_compiler" >&6; }
11217
11218 # Is the header present?
11219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 #include <$ac_header>
11228 _ACEOF
11229 if { (ac_try="$ac_cpp conftest.$ac_ext"
11230 case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11236   ac_status=$?
11237   grep -v '^ *+' conftest.er1 >conftest.err
11238   rm -f conftest.er1
11239   cat conftest.err >&5
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } >/dev/null; then
11242   if test -s conftest.err; then
11243     ac_cpp_err=$ac_c_preproc_warn_flag
11244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11245   else
11246     ac_cpp_err=
11247   fi
11248 else
11249   ac_cpp_err=yes
11250 fi
11251 if test -z "$ac_cpp_err"; then
11252   ac_header_preproc=yes
11253 else
11254   echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11256
11257   ac_header_preproc=no
11258 fi
11259
11260 rm -f conftest.err conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6; }
11263
11264 # So?  What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266   yes:no: )
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271     ac_header_preproc=yes
11272     ;;
11273   no:yes:* )
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11286     ( cat <<\_ASBOX
11287 ## ------------------------------ ##
11288 ## Report this to bugs@yourdomain ##
11289 ## ------------------------------ ##
11290 _ASBOX
11291      ) | sed "s/^/$as_me: WARNING:     /" >&2
11292     ;;
11293 esac
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   eval "$as_ac_Header=\$ac_header_preproc"
11300 fi
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302                { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304
11305 fi
11306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11307   cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11309 _ACEOF
11310
11311 fi
11312
11313 done
11314
11315
11316
11317 for ac_header in string.h strings.h
11318 do
11319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 fi
11326 ac_res=`eval echo '${'$as_ac_Header'}'`
11327                { echo "$as_me:$LINENO: result: $ac_res" >&5
11328 echo "${ECHO_T}$ac_res" >&6; }
11329 else
11330   # Is the header compilable?
11331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11333 cat >conftest.$ac_ext <<_ACEOF
11334 /* confdefs.h.  */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h.  */
11339 $ac_includes_default
11340 #include <$ac_header>
11341 _ACEOF
11342 rm -f conftest.$ac_objext
11343 if { (ac_try="$ac_compile"
11344 case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_compile") 2>conftest.er1
11350   ac_status=$?
11351   grep -v '^ *+' conftest.er1 >conftest.err
11352   rm -f conftest.er1
11353   cat conftest.err >&5
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } &&
11356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357   { (case "(($ac_try" in
11358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359   *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362   (eval "$ac_try") 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); }; } &&
11366          { ac_try='test -s conftest.$ac_objext'
11367   { (case "(($ac_try" in
11368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369   *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372   (eval "$ac_try") 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }; }; then
11376   ac_header_compiler=yes
11377 else
11378   echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11380
11381         ac_header_compiler=no
11382 fi
11383
11384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11386 echo "${ECHO_T}$ac_header_compiler" >&6; }
11387
11388 # Is the header present?
11389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 #include <$ac_header>
11398 _ACEOF
11399 if { (ac_try="$ac_cpp conftest.$ac_ext"
11400 case "(($ac_try" in
11401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402   *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11406   ac_status=$?
11407   grep -v '^ *+' conftest.er1 >conftest.err
11408   rm -f conftest.er1
11409   cat conftest.err >&5
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } >/dev/null; then
11412   if test -s conftest.err; then
11413     ac_cpp_err=$ac_c_preproc_warn_flag
11414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11415   else
11416     ac_cpp_err=
11417   fi
11418 else
11419   ac_cpp_err=yes
11420 fi
11421 if test -z "$ac_cpp_err"; then
11422   ac_header_preproc=yes
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427   ac_header_preproc=no
11428 fi
11429
11430 rm -f conftest.err conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11432 echo "${ECHO_T}$ac_header_preproc" >&6; }
11433
11434 # So?  What about this header?
11435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11436   yes:no: )
11437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11441     ac_header_preproc=yes
11442     ;;
11443   no:yes:* )
11444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11456     ( cat <<\_ASBOX
11457 ## ------------------------------ ##
11458 ## Report this to bugs@yourdomain ##
11459 ## ------------------------------ ##
11460 _ASBOX
11461      ) | sed "s/^/$as_me: WARNING:     /" >&2
11462     ;;
11463 esac
11464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   eval "$as_ac_Header=\$ac_header_preproc"
11470 fi
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472                { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11474
11475 fi
11476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11477   cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11479 _ACEOF
11480  break
11481 fi
11482
11483 done
11484
11485
11486
11487
11488 for ac_func in strchr index
11489 do
11490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496   cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11504 #define $ac_func innocuous_$ac_func
11505
11506 /* System header to define __stub macros and hopefully few prototypes,
11507     which can conflict with char $ac_func (); below.
11508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11509     <limits.h> exists even on freestanding compilers.  */
11510
11511 #ifdef __STDC__
11512 # include <limits.h>
11513 #else
11514 # include <assert.h>
11515 #endif
11516
11517 #undef $ac_func
11518
11519 /* Override any GCC internal prototype to avoid an error.
11520    Use char because int might match the return type of a GCC
11521    builtin and then its argument prototype would still apply.  */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char $ac_func ();
11526 /* The GNU C library defines this for functions which it implements
11527     to always fail with ENOSYS.  Some functions are actually named
11528     something starting with __ and the normal name is an alias.  */
11529 #if defined __stub_$ac_func || defined __stub___$ac_func
11530 choke me
11531 #endif
11532
11533 int
11534 main ()
11535 {
11536 return $ac_func ();
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 rm -f conftest.$ac_objext conftest$ac_exeext
11542 if { (ac_try="$ac_link"
11543 case "(($ac_try" in
11544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545   *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548   (eval "$ac_link") 2>conftest.er1
11549   ac_status=$?
11550   grep -v '^ *+' conftest.er1 >conftest.err
11551   rm -f conftest.er1
11552   cat conftest.err >&5
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); } &&
11555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11556   { (case "(($ac_try" in
11557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558   *) ac_try_echo=$ac_try;;
11559 esac
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561   (eval "$ac_try") 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; } &&
11565          { ac_try='test -s conftest$ac_exeext'
11566   { (case "(($ac_try" in
11567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568   *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571   (eval "$ac_try") 2>&5
11572   ac_status=$?
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); }; }; then
11575   eval "$as_ac_var=yes"
11576 else
11577   echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580         eval "$as_ac_var=no"
11581 fi
11582
11583 rm -f core conftest.err conftest.$ac_objext \
11584       conftest$ac_exeext conftest.$ac_ext
11585 fi
11586 ac_res=`eval echo '${'$as_ac_var'}'`
11587                { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11589 if test `eval echo '${'$as_ac_var'}'` = yes; then
11590   cat >>confdefs.h <<_ACEOF
11591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11592 _ACEOF
11593  break
11594 fi
11595 done
11596
11597
11598
11599 for ac_func in strrchr rindex
11600 do
11601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h.  */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h.  */
11613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11615 #define $ac_func innocuous_$ac_func
11616
11617 /* System header to define __stub macros and hopefully few prototypes,
11618     which can conflict with char $ac_func (); below.
11619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11620     <limits.h> exists even on freestanding compilers.  */
11621
11622 #ifdef __STDC__
11623 # include <limits.h>
11624 #else
11625 # include <assert.h>
11626 #endif
11627
11628 #undef $ac_func
11629
11630 /* Override any GCC internal prototype to avoid an error.
11631    Use char because int might match the return type of a GCC
11632    builtin and then its argument prototype would still apply.  */
11633 #ifdef __cplusplus
11634 extern "C"
11635 #endif
11636 char $ac_func ();
11637 /* The GNU C library defines this for functions which it implements
11638     to always fail with ENOSYS.  Some functions are actually named
11639     something starting with __ and the normal name is an alias.  */
11640 #if defined __stub_$ac_func || defined __stub___$ac_func
11641 choke me
11642 #endif
11643
11644 int
11645 main ()
11646 {
11647 return $ac_func ();
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_link") 2>conftest.er1
11660   ac_status=$?
11661   grep -v '^ *+' conftest.er1 >conftest.err
11662   rm -f conftest.er1
11663   cat conftest.err >&5
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667   { (case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_try") 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; } &&
11676          { ac_try='test -s conftest$ac_exeext'
11677   { (case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   eval "$as_ac_var=yes"
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691         eval "$as_ac_var=no"
11692 fi
11693
11694 rm -f core conftest.err conftest.$ac_objext \
11695       conftest$ac_exeext conftest.$ac_ext
11696 fi
11697 ac_res=`eval echo '${'$as_ac_var'}'`
11698                { echo "$as_me:$LINENO: result: $ac_res" >&5
11699 echo "${ECHO_T}$ac_res" >&6; }
11700 if test `eval echo '${'$as_ac_var'}'` = yes; then
11701   cat >>confdefs.h <<_ACEOF
11702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 _ACEOF
11704  break
11705 fi
11706 done
11707
11708
11709
11710 for ac_func in memcpy bcopy
11711 do
11712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718   cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11726 #define $ac_func innocuous_$ac_func
11727
11728 /* System header to define __stub macros and hopefully few prototypes,
11729     which can conflict with char $ac_func (); below.
11730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11731     <limits.h> exists even on freestanding compilers.  */
11732
11733 #ifdef __STDC__
11734 # include <limits.h>
11735 #else
11736 # include <assert.h>
11737 #endif
11738
11739 #undef $ac_func
11740
11741 /* Override any GCC internal prototype to avoid an error.
11742    Use char because int might match the return type of a GCC
11743    builtin and then its argument prototype would still apply.  */
11744 #ifdef __cplusplus
11745 extern "C"
11746 #endif
11747 char $ac_func ();
11748 /* The GNU C library defines this for functions which it implements
11749     to always fail with ENOSYS.  Some functions are actually named
11750     something starting with __ and the normal name is an alias.  */
11751 #if defined __stub_$ac_func || defined __stub___$ac_func
11752 choke me
11753 #endif
11754
11755 int
11756 main ()
11757 {
11758 return $ac_func ();
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (ac_try="$ac_link"
11765 case "(($ac_try" in
11766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767   *) ac_try_echo=$ac_try;;
11768 esac
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770   (eval "$ac_link") 2>conftest.er1
11771   ac_status=$?
11772   grep -v '^ *+' conftest.er1 >conftest.err
11773   rm -f conftest.er1
11774   cat conftest.err >&5
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } &&
11777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11778   { (case "(($ac_try" in
11779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780   *) ac_try_echo=$ac_try;;
11781 esac
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783   (eval "$ac_try") 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; } &&
11787          { ac_try='test -s conftest$ac_exeext'
11788   { (case "(($ac_try" in
11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790   *) ac_try_echo=$ac_try;;
11791 esac
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793   (eval "$ac_try") 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; }; then
11797   eval "$as_ac_var=yes"
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802         eval "$as_ac_var=no"
11803 fi
11804
11805 rm -f core conftest.err conftest.$ac_objext \
11806       conftest$ac_exeext conftest.$ac_ext
11807 fi
11808 ac_res=`eval echo '${'$as_ac_var'}'`
11809                { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11811 if test `eval echo '${'$as_ac_var'}'` = yes; then
11812   cat >>confdefs.h <<_ACEOF
11813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11814 _ACEOF
11815  break
11816 fi
11817 done
11818
11819
11820
11821 for ac_func in memmove strcmp
11822 do
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11837 #define $ac_func innocuous_$ac_func
11838
11839 /* System header to define __stub macros and hopefully few prototypes,
11840     which can conflict with char $ac_func (); below.
11841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842     <limits.h> exists even on freestanding compilers.  */
11843
11844 #ifdef __STDC__
11845 # include <limits.h>
11846 #else
11847 # include <assert.h>
11848 #endif
11849
11850 #undef $ac_func
11851
11852 /* Override any GCC internal prototype to avoid an error.
11853    Use char because int might match the return type of a GCC
11854    builtin and then its argument prototype would still apply.  */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 char $ac_func ();
11859 /* The GNU C library defines this for functions which it implements
11860     to always fail with ENOSYS.  Some functions are actually named
11861     something starting with __ and the normal name is an alias.  */
11862 #if defined __stub_$ac_func || defined __stub___$ac_func
11863 choke me
11864 #endif
11865
11866 int
11867 main ()
11868 {
11869 return $ac_func ();
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_link") 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } &&
11888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889   { (case "(($ac_try" in
11890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891   *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894   (eval "$ac_try") 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; } &&
11898          { ac_try='test -s conftest$ac_exeext'
11899   { (case "(($ac_try" in
11900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901   *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904   (eval "$ac_try") 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; }; then
11908   eval "$as_ac_var=yes"
11909 else
11910   echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913         eval "$as_ac_var=no"
11914 fi
11915
11916 rm -f core conftest.err conftest.$ac_objext \
11917       conftest$ac_exeext conftest.$ac_ext
11918 fi
11919 ac_res=`eval echo '${'$as_ac_var'}'`
11920                { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11922 if test `eval echo '${'$as_ac_var'}'` = yes; then
11923   cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11925 _ACEOF
11926
11927 fi
11928 done
11929
11930
11931
11932
11933 for ac_func in closedir opendir readdir
11934 do
11935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11939   echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941   cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11949 #define $ac_func innocuous_$ac_func
11950
11951 /* System header to define __stub macros and hopefully few prototypes,
11952     which can conflict with char $ac_func (); below.
11953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11954     <limits.h> exists even on freestanding compilers.  */
11955
11956 #ifdef __STDC__
11957 # include <limits.h>
11958 #else
11959 # include <assert.h>
11960 #endif
11961
11962 #undef $ac_func
11963
11964 /* Override any GCC internal prototype to avoid an error.
11965    Use char because int might match the return type of a GCC
11966    builtin and then its argument prototype would still apply.  */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char $ac_func ();
11971 /* The GNU C library defines this for functions which it implements
11972     to always fail with ENOSYS.  Some functions are actually named
11973     something starting with __ and the normal name is an alias.  */
11974 #if defined __stub_$ac_func || defined __stub___$ac_func
11975 choke me
11976 #endif
11977
11978 int
11979 main ()
11980 {
11981 return $ac_func ();
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (ac_try="$ac_link"
11988 case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_link") 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } &&
12000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001   { (case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006   (eval "$ac_try") 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; } &&
12010          { ac_try='test -s conftest$ac_exeext'
12011   { (case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_try") 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   eval "$as_ac_var=yes"
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025         eval "$as_ac_var=no"
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext \
12029       conftest$ac_exeext conftest.$ac_ext
12030 fi
12031 ac_res=`eval echo '${'$as_ac_var'}'`
12032                { echo "$as_me:$LINENO: result: $ac_res" >&5
12033 echo "${ECHO_T}$ac_res" >&6; }
12034 if test `eval echo '${'$as_ac_var'}'` = yes; then
12035   cat >>confdefs.h <<_ACEOF
12036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037 _ACEOF
12038
12039 fi
12040 done
12041
12042
12043
12044 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12045 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12046
12047 ICC=no
12048 IXX=no
12049 case $CC in
12050   icc*|icpc*)
12051     ICC=yes
12052     IXX=yes
12053     ;;
12054    *)
12055     ;;
12056 esac
12057
12058 if test "$GCC" != "yes" && test "$ICC" != "yes"
12059 then
12060   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12061 echo "$as_me: error: gcc|icc required but not found" >&2;}
12062    { (exit 1); exit 1; }; }
12063 fi
12064
12065 if test "$GXX" != "yes" && test "$IXX" != "yes"
12066 then
12067   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12068 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12069    { (exit 1); exit 1; }; }
12070 fi
12071
12072 if test "$GCC" = "yes"
12073 then
12074   cat >conftest.$ac_ext <<_ACEOF
12075 #if !defined(__GNUC__) || __GNUC__ < 3
12076 #error Unsupported GCC version
12077 #endif
12078
12079 _ACEOF
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087   (eval "$ac_compile") 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12095   { (case "(($ac_try" in
12096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097   *) ac_try_echo=$ac_try;;
12098 esac
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100   (eval "$ac_try") 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; } &&
12104          { ac_try='test -s conftest.$ac_objext'
12105   { (case "(($ac_try" in
12106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107   *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110   (eval "$ac_try") 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; }; then
12114   :
12115 else
12116   echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12120 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12121    { (exit 1); exit 1; }; }
12122 fi
12123
12124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12125 fi
12126
12127 if test -z "$llvm_cv_gnu_make_command"
12128 then
12129   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12130 echo "$as_me: error: GNU Make required but not found" >&2;}
12131    { (exit 1); exit 1; }; }
12132 fi
12133
12134 { echo "$as_me:$LINENO: result: ok" >&5
12135 echo "${ECHO_T}ok" >&6; }
12136
12137 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12138 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12139 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12140
12141 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12142
12143 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12144
12145 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12146 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12147
12148
12149
12150 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12151 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12152 if test "${ac_cv_lib_m_sin+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   ac_check_lib_save_LIBS=$LIBS
12156 LIBS="-lm  $LIBS"
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h.  */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h.  */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165    Use char because int might match the return type of a GCC
12166    builtin and then its argument prototype would still apply.  */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char sin ();
12171 int
12172 main ()
12173 {
12174 return sin ();
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183   *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186   (eval "$ac_link") 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } &&
12193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194   { (case "(($ac_try" in
12195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196   *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199   (eval "$ac_try") 2>&5
12200   ac_status=$?
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); }; } &&
12203          { ac_try='test -s conftest$ac_exeext'
12204   { (case "(($ac_try" in
12205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206   *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209   (eval "$ac_try") 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; }; then
12213   ac_cv_lib_m_sin=yes
12214 else
12215   echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12217
12218         ac_cv_lib_m_sin=no
12219 fi
12220
12221 rm -f core conftest.err conftest.$ac_objext \
12222       conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12224 fi
12225 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12226 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12227 if test $ac_cv_lib_m_sin = yes; then
12228   cat >>confdefs.h <<_ACEOF
12229 #define HAVE_LIBM 1
12230 _ACEOF
12231
12232   LIBS="-lm $LIBS"
12233
12234 fi
12235
12236 if test "$llvm_cv_os_type" = "MingW" ; then
12237
12238 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12239 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12240 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12241   echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243   ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-limagehlp  $LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12246 /* confdefs.h.  */
12247 _ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h.  */
12251
12252
12253 int
12254 main ()
12255 {
12256 return main ();
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265   *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268   (eval "$ac_link") 2>conftest.er1
12269   ac_status=$?
12270   grep -v '^ *+' conftest.er1 >conftest.err
12271   rm -f conftest.er1
12272   cat conftest.err >&5
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); } &&
12275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12276   { (case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_try") 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; } &&
12285          { ac_try='test -s conftest$ac_exeext'
12286   { (case "(($ac_try" in
12287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288   *) ac_try_echo=$ac_try;;
12289 esac
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291   (eval "$ac_try") 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }; }; then
12295   ac_cv_lib_imagehlp_main=yes
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300         ac_cv_lib_imagehlp_main=no
12301 fi
12302
12303 rm -f core conftest.err conftest.$ac_objext \
12304       conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12306 fi
12307 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12308 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12309 if test $ac_cv_lib_imagehlp_main = yes; then
12310   cat >>confdefs.h <<_ACEOF
12311 #define HAVE_LIBIMAGEHLP 1
12312 _ACEOF
12313
12314   LIBS="-limagehlp $LIBS"
12315
12316 fi
12317
12318
12319 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12320 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12321 if test "${ac_cv_lib_psapi_main+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-lpsapi  $LIBS"
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h.  */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h.  */
12332
12333
12334 int
12335 main ()
12336 {
12337 return main ();
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349   (eval "$ac_link") 2>conftest.er1
12350   ac_status=$?
12351   grep -v '^ *+' conftest.er1 >conftest.err
12352   rm -f conftest.er1
12353   cat conftest.err >&5
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } &&
12356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12357   { (case "(($ac_try" in
12358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359   *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362   (eval "$ac_try") 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); }; } &&
12366          { ac_try='test -s conftest$ac_exeext'
12367   { (case "(($ac_try" in
12368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369   *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372   (eval "$ac_try") 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; }; then
12376   ac_cv_lib_psapi_main=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381         ac_cv_lib_psapi_main=no
12382 fi
12383
12384 rm -f core conftest.err conftest.$ac_objext \
12385       conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12389 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12390 if test $ac_cv_lib_psapi_main = yes; then
12391   cat >>confdefs.h <<_ACEOF
12392 #define HAVE_LIBPSAPI 1
12393 _ACEOF
12394
12395   LIBS="-lpsapi $LIBS"
12396
12397 fi
12398
12399
12400 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12401 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12402 if test "${ac_cv_lib_shell32_main+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lshell32  $LIBS"
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413
12414
12415 int
12416 main ()
12417 {
12418 return main ();
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_link") 2>conftest.er1
12431   ac_status=$?
12432   grep -v '^ *+' conftest.er1 >conftest.err
12433   rm -f conftest.er1
12434   cat conftest.err >&5
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } &&
12437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438   { (case "(($ac_try" in
12439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440   *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443   (eval "$ac_try") 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; } &&
12447          { ac_try='test -s conftest$ac_exeext'
12448   { (case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453   (eval "$ac_try") 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; }; then
12457   ac_cv_lib_shell32_main=yes
12458 else
12459   echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462         ac_cv_lib_shell32_main=no
12463 fi
12464
12465 rm -f core conftest.err conftest.$ac_objext \
12466       conftest$ac_exeext conftest.$ac_ext
12467 LIBS=$ac_check_lib_save_LIBS
12468 fi
12469 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12470 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12471 if test $ac_cv_lib_shell32_main = yes; then
12472   cat >>confdefs.h <<_ACEOF
12473 #define HAVE_LIBSHELL32 1
12474 _ACEOF
12475
12476   LIBS="-lshell32 $LIBS"
12477
12478 fi
12479
12480 fi
12481
12482 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12483 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12484 if test "${ac_cv_search_dlopen+set}" = set; then
12485   echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487   ac_func_search_save_LIBS=$LIBS
12488 cat >conftest.$ac_ext <<_ACEOF
12489 /* confdefs.h.  */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h.  */
12494
12495 /* Override any GCC internal prototype to avoid an error.
12496    Use char because int might match the return type of a GCC
12497    builtin and then its argument prototype would still apply.  */
12498 #ifdef __cplusplus
12499 extern "C"
12500 #endif
12501 char dlopen ();
12502 int
12503 main ()
12504 {
12505 return dlopen ();
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 for ac_lib in '' dl; do
12511   if test -z "$ac_lib"; then
12512     ac_res="none required"
12513   else
12514     ac_res=-l$ac_lib
12515     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12516   fi
12517   rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524   (eval "$ac_link") 2>conftest.er1
12525   ac_status=$?
12526   grep -v '^ *+' conftest.er1 >conftest.err
12527   rm -f conftest.er1
12528   cat conftest.err >&5
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); } &&
12531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532   { (case "(($ac_try" in
12533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534   *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537   (eval "$ac_try") 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; } &&
12541          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12551   ac_cv_search_dlopen=$ac_res
12552 else
12553   echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556
12557 fi
12558
12559 rm -f core conftest.err conftest.$ac_objext \
12560       conftest$ac_exeext
12561   if test "${ac_cv_search_dlopen+set}" = set; then
12562   break
12563 fi
12564 done
12565 if test "${ac_cv_search_dlopen+set}" = set; then
12566   :
12567 else
12568   ac_cv_search_dlopen=no
12569 fi
12570 rm conftest.$ac_ext
12571 LIBS=$ac_func_search_save_LIBS
12572 fi
12573 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12574 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12575 ac_res=$ac_cv_search_dlopen
12576 if test "$ac_res" != no; then
12577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12578
12579 cat >>confdefs.h <<\_ACEOF
12580 #define HAVE_DLOPEN 1
12581 _ACEOF
12582
12583 else
12584   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12585 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12586 fi
12587
12588
12589 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12590 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12591 if test "${ac_cv_search_clock_gettime+set}" = set; then
12592   echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594   ac_func_search_save_LIBS=$LIBS
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h.  */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h.  */
12601
12602 /* Override any GCC internal prototype to avoid an error.
12603    Use char because int might match the return type of a GCC
12604    builtin and then its argument prototype would still apply.  */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 char clock_gettime ();
12609 int
12610 main ()
12611 {
12612 return clock_gettime ();
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 for ac_lib in '' rt; do
12618   if test -z "$ac_lib"; then
12619     ac_res="none required"
12620   else
12621     ac_res=-l$ac_lib
12622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12623   fi
12624   rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_link") 2>conftest.er1
12632   ac_status=$?
12633   grep -v '^ *+' conftest.er1 >conftest.err
12634   rm -f conftest.er1
12635   cat conftest.err >&5
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } &&
12638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639   { (case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_try") 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; } &&
12648          { ac_try='test -s conftest$ac_exeext'
12649   { (case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654   (eval "$ac_try") 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   ac_cv_search_clock_gettime=$ac_res
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663
12664 fi
12665
12666 rm -f core conftest.err conftest.$ac_objext \
12667       conftest$ac_exeext
12668   if test "${ac_cv_search_clock_gettime+set}" = set; then
12669   break
12670 fi
12671 done
12672 if test "${ac_cv_search_clock_gettime+set}" = set; then
12673   :
12674 else
12675   ac_cv_search_clock_gettime=no
12676 fi
12677 rm conftest.$ac_ext
12678 LIBS=$ac_func_search_save_LIBS
12679 fi
12680 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12681 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12682 ac_res=$ac_cv_search_clock_gettime
12683 if test "$ac_res" != no; then
12684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12685
12686 fi
12687
12688
12689 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12690     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12691 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12692 if test "${ac_cv_search_setupterm+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   ac_func_search_save_LIBS=$LIBS
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702
12703 /* Override any GCC internal prototype to avoid an error.
12704    Use char because int might match the return type of a GCC
12705    builtin and then its argument prototype would still apply.  */
12706 #ifdef __cplusplus
12707 extern "C"
12708 #endif
12709 char setupterm ();
12710 int
12711 main ()
12712 {
12713 return setupterm ();
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 for ac_lib in '' tinfo curses ncurses ncursesw; do
12719   if test -z "$ac_lib"; then
12720     ac_res="none required"
12721   else
12722     ac_res=-l$ac_lib
12723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12724   fi
12725   rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_link") 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12740   { (case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_try") 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; } &&
12749          { ac_try='test -s conftest$ac_exeext'
12750   { (case "(($ac_try" in
12751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752   *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755   (eval "$ac_try") 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; }; then
12759   ac_cv_search_setupterm=$ac_res
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764
12765 fi
12766
12767 rm -f core conftest.err conftest.$ac_objext \
12768       conftest$ac_exeext
12769   if test "${ac_cv_search_setupterm+set}" = set; then
12770   break
12771 fi
12772 done
12773 if test "${ac_cv_search_setupterm+set}" = set; then
12774   :
12775 else
12776   ac_cv_search_setupterm=no
12777 fi
12778 rm conftest.$ac_ext
12779 LIBS=$ac_func_search_save_LIBS
12780 fi
12781 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12782 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12783 ac_res=$ac_cv_search_setupterm
12784 if test "$ac_res" != no; then
12785   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12786
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_TERMINFO 1
12789 _ACEOF
12790
12791 fi
12792
12793 fi
12794
12795 if test "$llvm_cv_enable_libffi" = "yes" ; then
12796   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12797 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12798 if test "${ac_cv_search_ffi_call+set}" = set; then
12799   echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801   ac_func_search_save_LIBS=$LIBS
12802 cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h.  */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h.  */
12808
12809 /* Override any GCC internal prototype to avoid an error.
12810    Use char because int might match the return type of a GCC
12811    builtin and then its argument prototype would still apply.  */
12812 #ifdef __cplusplus
12813 extern "C"
12814 #endif
12815 char ffi_call ();
12816 int
12817 main ()
12818 {
12819 return ffi_call ();
12820   ;
12821   return 0;
12822 }
12823 _ACEOF
12824 for ac_lib in '' ffi; do
12825   if test -z "$ac_lib"; then
12826     ac_res="none required"
12827   else
12828     ac_res=-l$ac_lib
12829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12830   fi
12831   rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (ac_try="$ac_link"
12833 case "(($ac_try" in
12834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835   *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838   (eval "$ac_link") 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12846   { (case "(($ac_try" in
12847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848   *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851   (eval "$ac_try") 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; } &&
12855          { ac_try='test -s conftest$ac_exeext'
12856   { (case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861   (eval "$ac_try") 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; }; then
12865   ac_cv_search_ffi_call=$ac_res
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870
12871 fi
12872
12873 rm -f core conftest.err conftest.$ac_objext \
12874       conftest$ac_exeext
12875   if test "${ac_cv_search_ffi_call+set}" = set; then
12876   break
12877 fi
12878 done
12879 if test "${ac_cv_search_ffi_call+set}" = set; then
12880   :
12881 else
12882   ac_cv_search_ffi_call=no
12883 fi
12884 rm conftest.$ac_ext
12885 LIBS=$ac_func_search_save_LIBS
12886 fi
12887 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12888 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12889 ac_res=$ac_cv_search_ffi_call
12890 if test "$ac_res" != no; then
12891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12892
12893 cat >>confdefs.h <<\_ACEOF
12894 #define HAVE_FFI_CALL 1
12895 _ACEOF
12896
12897 else
12898   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12899 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12900    { (exit 1); exit 1; }; }
12901 fi
12902
12903 fi
12904
12905 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12906 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12907 if test "${ac_cv_search_mallinfo+set}" = set; then
12908   echo $ECHO_N "(cached) $ECHO_C" >&6
12909 else
12910   ac_func_search_save_LIBS=$LIBS
12911 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h.  */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h.  */
12917
12918 /* Override any GCC internal prototype to avoid an error.
12919    Use char because int might match the return type of a GCC
12920    builtin and then its argument prototype would still apply.  */
12921 #ifdef __cplusplus
12922 extern "C"
12923 #endif
12924 char mallinfo ();
12925 int
12926 main ()
12927 {
12928 return mallinfo ();
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 for ac_lib in '' malloc; do
12934   if test -z "$ac_lib"; then
12935     ac_res="none required"
12936   else
12937     ac_res=-l$ac_lib
12938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12939   fi
12940   rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (ac_try="$ac_link"
12942 case "(($ac_try" in
12943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944   *) ac_try_echo=$ac_try;;
12945 esac
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947   (eval "$ac_link") 2>conftest.er1
12948   ac_status=$?
12949   grep -v '^ *+' conftest.er1 >conftest.err
12950   rm -f conftest.er1
12951   cat conftest.err >&5
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); } &&
12954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12955   { (case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960   (eval "$ac_try") 2>&5
12961   ac_status=$?
12962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963   (exit $ac_status); }; } &&
12964          { ac_try='test -s conftest$ac_exeext'
12965   { (case "(($ac_try" in
12966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967   *) ac_try_echo=$ac_try;;
12968 esac
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970   (eval "$ac_try") 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; }; then
12974   ac_cv_search_mallinfo=$ac_res
12975 else
12976   echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12978
12979
12980 fi
12981
12982 rm -f core conftest.err conftest.$ac_objext \
12983       conftest$ac_exeext
12984   if test "${ac_cv_search_mallinfo+set}" = set; then
12985   break
12986 fi
12987 done
12988 if test "${ac_cv_search_mallinfo+set}" = set; then
12989   :
12990 else
12991   ac_cv_search_mallinfo=no
12992 fi
12993 rm conftest.$ac_ext
12994 LIBS=$ac_func_search_save_LIBS
12995 fi
12996 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12997 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12998 ac_res=$ac_cv_search_mallinfo
12999 if test "$ac_res" != no; then
13000   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13001
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_MALLINFO 1
13004 _ACEOF
13005
13006 fi
13007
13008
13009 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13010
13011 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13012 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13013 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   ac_check_lib_save_LIBS=$LIBS
13017 LIBS="-lpthread  $LIBS"
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024
13025 /* Override any GCC internal prototype to avoid an error.
13026    Use char because int might match the return type of a GCC
13027    builtin and then its argument prototype would still apply.  */
13028 #ifdef __cplusplus
13029 extern "C"
13030 #endif
13031 char pthread_mutex_init ();
13032 int
13033 main ()
13034 {
13035 return pthread_mutex_init ();
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (ac_try="$ac_link"
13042 case "(($ac_try" in
13043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044   *) ac_try_echo=$ac_try;;
13045 esac
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047   (eval "$ac_link") 2>conftest.er1
13048   ac_status=$?
13049   grep -v '^ *+' conftest.er1 >conftest.err
13050   rm -f conftest.er1
13051   cat conftest.err >&5
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); } &&
13054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13055   { (case "(($ac_try" in
13056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057   *) ac_try_echo=$ac_try;;
13058 esac
13059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13060   (eval "$ac_try") 2>&5
13061   ac_status=$?
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); }; } &&
13064          { ac_try='test -s conftest$ac_exeext'
13065   { (case "(($ac_try" in
13066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067   *) ac_try_echo=$ac_try;;
13068 esac
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070   (eval "$ac_try") 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; }; then
13074   ac_cv_lib_pthread_pthread_mutex_init=yes
13075 else
13076   echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079         ac_cv_lib_pthread_pthread_mutex_init=no
13080 fi
13081
13082 rm -f core conftest.err conftest.$ac_objext \
13083       conftest$ac_exeext conftest.$ac_ext
13084 LIBS=$ac_check_lib_save_LIBS
13085 fi
13086 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13087 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13088 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13089   cat >>confdefs.h <<_ACEOF
13090 #define HAVE_LIBPTHREAD 1
13091 _ACEOF
13092
13093   LIBS="-lpthread $LIBS"
13094
13095 fi
13096
13097   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13098 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13099 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   ac_func_search_save_LIBS=$LIBS
13103 cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h.  */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h.  */
13109
13110 /* Override any GCC internal prototype to avoid an error.
13111    Use char because int might match the return type of a GCC
13112    builtin and then its argument prototype would still apply.  */
13113 #ifdef __cplusplus
13114 extern "C"
13115 #endif
13116 char pthread_mutex_lock ();
13117 int
13118 main ()
13119 {
13120 return pthread_mutex_lock ();
13121   ;
13122   return 0;
13123 }
13124 _ACEOF
13125 for ac_lib in '' pthread; do
13126   if test -z "$ac_lib"; then
13127     ac_res="none required"
13128   else
13129     ac_res=-l$ac_lib
13130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13131   fi
13132   rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (ac_try="$ac_link"
13134 case "(($ac_try" in
13135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136   *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139   (eval "$ac_link") 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13147   { (case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_try") 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; } &&
13156          { ac_try='test -s conftest$ac_exeext'
13157   { (case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162   (eval "$ac_try") 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); }; }; then
13166   ac_cv_search_pthread_mutex_lock=$ac_res
13167 else
13168   echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13170
13171
13172 fi
13173
13174 rm -f core conftest.err conftest.$ac_objext \
13175       conftest$ac_exeext
13176   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13177   break
13178 fi
13179 done
13180 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13181   :
13182 else
13183   ac_cv_search_pthread_mutex_lock=no
13184 fi
13185 rm conftest.$ac_ext
13186 LIBS=$ac_func_search_save_LIBS
13187 fi
13188 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13189 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13190 ac_res=$ac_cv_search_pthread_mutex_lock
13191 if test "$ac_res" != no; then
13192   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13193
13194 cat >>confdefs.h <<\_ACEOF
13195 #define HAVE_PTHREAD_MUTEX_LOCK 1
13196 _ACEOF
13197
13198 fi
13199
13200   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13201 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13202 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13203   echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205   ac_func_search_save_LIBS=$LIBS
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212
13213 /* Override any GCC internal prototype to avoid an error.
13214    Use char because int might match the return type of a GCC
13215    builtin and then its argument prototype would still apply.  */
13216 #ifdef __cplusplus
13217 extern "C"
13218 #endif
13219 char pthread_rwlock_init ();
13220 int
13221 main ()
13222 {
13223 return pthread_rwlock_init ();
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 for ac_lib in '' pthread; do
13229   if test -z "$ac_lib"; then
13230     ac_res="none required"
13231   else
13232     ac_res=-l$ac_lib
13233     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13234   fi
13235   rm -f conftest.$ac_objext conftest$ac_exeext
13236 if { (ac_try="$ac_link"
13237 case "(($ac_try" in
13238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239   *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242   (eval "$ac_link") 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } &&
13249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250   { (case "(($ac_try" in
13251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252   *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255   (eval "$ac_try") 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; } &&
13259          { ac_try='test -s conftest$ac_exeext'
13260   { (case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_try") 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; }; then
13269   ac_cv_search_pthread_rwlock_init=$ac_res
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext \
13278       conftest$ac_exeext
13279   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13280   break
13281 fi
13282 done
13283 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13284   :
13285 else
13286   ac_cv_search_pthread_rwlock_init=no
13287 fi
13288 rm conftest.$ac_ext
13289 LIBS=$ac_func_search_save_LIBS
13290 fi
13291 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13292 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13293 ac_res=$ac_cv_search_pthread_rwlock_init
13294 if test "$ac_res" != no; then
13295   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13296
13297 cat >>confdefs.h <<\_ACEOF
13298 #define HAVE_PTHREAD_RWLOCK_INIT 1
13299 _ACEOF
13300
13301 fi
13302
13303   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13304 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13305 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13306   echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308   ac_func_search_save_LIBS=$LIBS
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h.  */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h.  */
13315
13316 /* Override any GCC internal prototype to avoid an error.
13317    Use char because int might match the return type of a GCC
13318    builtin and then its argument prototype would still apply.  */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 char pthread_getspecific ();
13323 int
13324 main ()
13325 {
13326 return pthread_getspecific ();
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 for ac_lib in '' pthread; do
13332   if test -z "$ac_lib"; then
13333     ac_res="none required"
13334   else
13335     ac_res=-l$ac_lib
13336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13337   fi
13338   rm -f conftest.$ac_objext conftest$ac_exeext
13339 if { (ac_try="$ac_link"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_link") 2>conftest.er1
13346   ac_status=$?
13347   grep -v '^ *+' conftest.er1 >conftest.err
13348   rm -f conftest.er1
13349   cat conftest.err >&5
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); } &&
13352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13353   { (case "(($ac_try" in
13354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355   *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358   (eval "$ac_try") 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; } &&
13362          { ac_try='test -s conftest$ac_exeext'
13363   { (case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368   (eval "$ac_try") 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   ac_cv_search_pthread_getspecific=$ac_res
13373 else
13374   echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377
13378 fi
13379
13380 rm -f core conftest.err conftest.$ac_objext \
13381       conftest$ac_exeext
13382   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13383   break
13384 fi
13385 done
13386 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13387   :
13388 else
13389   ac_cv_search_pthread_getspecific=no
13390 fi
13391 rm conftest.$ac_ext
13392 LIBS=$ac_func_search_save_LIBS
13393 fi
13394 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13395 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13396 ac_res=$ac_cv_search_pthread_getspecific
13397 if test "$ac_res" != no; then
13398   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13399
13400 cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_PTHREAD_GETSPECIFIC 1
13402 _ACEOF
13403
13404 fi
13405
13406 fi
13407
13408 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13409
13410 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13411 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13412 if test "${ac_cv_lib_z_compress2+set}" = set; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415   ac_check_lib_save_LIBS=$LIBS
13416 LIBS="-lz  $LIBS"
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423
13424 /* Override any GCC internal prototype to avoid an error.
13425    Use char because int might match the return type of a GCC
13426    builtin and then its argument prototype would still apply.  */
13427 #ifdef __cplusplus
13428 extern "C"
13429 #endif
13430 char compress2 ();
13431 int
13432 main ()
13433 {
13434 return compress2 ();
13435   ;
13436   return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (ac_try="$ac_link"
13441 case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_link") 2>conftest.er1
13447   ac_status=$?
13448   grep -v '^ *+' conftest.er1 >conftest.err
13449   rm -f conftest.er1
13450   cat conftest.err >&5
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } &&
13453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13454   { (case "(($ac_try" in
13455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456   *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459   (eval "$ac_try") 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; } &&
13463          { ac_try='test -s conftest$ac_exeext'
13464   { (case "(($ac_try" in
13465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466   *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469   (eval "$ac_try") 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   ac_cv_lib_z_compress2=yes
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478         ac_cv_lib_z_compress2=no
13479 fi
13480
13481 rm -f core conftest.err conftest.$ac_objext \
13482       conftest$ac_exeext conftest.$ac_ext
13483 LIBS=$ac_check_lib_save_LIBS
13484 fi
13485 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13486 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13487 if test $ac_cv_lib_z_compress2 = yes; then
13488   cat >>confdefs.h <<_ACEOF
13489 #define HAVE_LIBZ 1
13490 _ACEOF
13491
13492   LIBS="-lz $LIBS"
13493
13494 fi
13495
13496 fi
13497
13498
13499 # Check whether --with-udis86 was given.
13500 if test "${with_udis86+set}" = set; then
13501   withval=$with_udis86;
13502       USE_UDIS86=1
13503
13504       case "$withval" in
13505         /usr/lib|yes) ;;
13506         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13507       esac
13508
13509 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13510 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13511 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13512   echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514   ac_check_lib_save_LIBS=$LIBS
13515 LIBS="-ludis86  $LIBS"
13516 cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h.  */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h.  */
13522
13523 /* Override any GCC internal prototype to avoid an error.
13524    Use char because int might match the return type of a GCC
13525    builtin and then its argument prototype would still apply.  */
13526 #ifdef __cplusplus
13527 extern "C"
13528 #endif
13529 char ud_init ();
13530 int
13531 main ()
13532 {
13533 return ud_init ();
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (ac_try="$ac_link"
13540 case "(($ac_try" in
13541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542   *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545   (eval "$ac_link") 2>conftest.er1
13546   ac_status=$?
13547   grep -v '^ *+' conftest.er1 >conftest.err
13548   rm -f conftest.er1
13549   cat conftest.err >&5
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); } &&
13552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13553   { (case "(($ac_try" in
13554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555   *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558   (eval "$ac_try") 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; } &&
13562          { ac_try='test -s conftest$ac_exeext'
13563   { (case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_try") 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); }; }; then
13572   ac_cv_lib_udis86_ud_init=yes
13573 else
13574   echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577         ac_cv_lib_udis86_ud_init=no
13578 fi
13579
13580 rm -f core conftest.err conftest.$ac_objext \
13581       conftest$ac_exeext conftest.$ac_ext
13582 LIBS=$ac_check_lib_save_LIBS
13583 fi
13584 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13585 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13586 if test $ac_cv_lib_udis86_ud_init = yes; then
13587   cat >>confdefs.h <<_ACEOF
13588 #define HAVE_LIBUDIS86 1
13589 _ACEOF
13590
13591   LIBS="-ludis86 $LIBS"
13592
13593 else
13594
13595         echo "Error! You need to have libudis86 around."
13596         exit -1
13597
13598 fi
13599
13600
13601 else
13602   USE_UDIS86=0
13603
13604 fi
13605
13606
13607 cat >>confdefs.h <<_ACEOF
13608 #define USE_UDIS86 $USE_UDIS86
13609 _ACEOF
13610
13611
13612
13613 # Check whether --with-oprofile was given.
13614 if test "${with_oprofile+set}" = set; then
13615   withval=$with_oprofile;
13616       USE_OPROFILE=1
13617
13618       case "$withval" in
13619         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13620         no) llvm_cv_oppath=
13621             USE_OPROFILE=0
13622  ;;
13623         *) llvm_cv_oppath="${withval}/lib/oprofile"
13624            CPPFLAGS="-I${withval}/include";;
13625       esac
13626       if test -n "$llvm_cv_oppath" ; then
13627         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13628                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13629 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13630 if test "${ac_cv_search_bfd_init+set}" = set; then
13631   echo $ECHO_N "(cached) $ECHO_C" >&6
13632 else
13633   ac_func_search_save_LIBS=$LIBS
13634 cat >conftest.$ac_ext <<_ACEOF
13635 /* confdefs.h.  */
13636 _ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h.  */
13640
13641 /* Override any GCC internal prototype to avoid an error.
13642    Use char because int might match the return type of a GCC
13643    builtin and then its argument prototype would still apply.  */
13644 #ifdef __cplusplus
13645 extern "C"
13646 #endif
13647 char bfd_init ();
13648 int
13649 main ()
13650 {
13651 return bfd_init ();
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 for ac_lib in '' bfd; do
13657   if test -z "$ac_lib"; then
13658     ac_res="none required"
13659   else
13660     ac_res=-l$ac_lib
13661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13662   fi
13663   rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (ac_try="$ac_link"
13665 case "(($ac_try" in
13666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667   *) ac_try_echo=$ac_try;;
13668 esac
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670   (eval "$ac_link") 2>conftest.er1
13671   ac_status=$?
13672   grep -v '^ *+' conftest.er1 >conftest.err
13673   rm -f conftest.er1
13674   cat conftest.err >&5
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); } &&
13677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13678   { (case "(($ac_try" in
13679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680   *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683   (eval "$ac_try") 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); }; } &&
13687          { ac_try='test -s conftest$ac_exeext'
13688   { (case "(($ac_try" in
13689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690   *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693   (eval "$ac_try") 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; }; then
13697   ac_cv_search_bfd_init=$ac_res
13698 else
13699   echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13701
13702
13703 fi
13704
13705 rm -f core conftest.err conftest.$ac_objext \
13706       conftest$ac_exeext
13707   if test "${ac_cv_search_bfd_init+set}" = set; then
13708   break
13709 fi
13710 done
13711 if test "${ac_cv_search_bfd_init+set}" = set; then
13712   :
13713 else
13714   ac_cv_search_bfd_init=no
13715 fi
13716 rm conftest.$ac_ext
13717 LIBS=$ac_func_search_save_LIBS
13718 fi
13719 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13720 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13721 ac_res=$ac_cv_search_bfd_init
13722 if test "$ac_res" != no; then
13723   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13724
13725 fi
13726
13727         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13728 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13729 if test "${ac_cv_search_op_open_agent+set}" = set; then
13730   echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732   ac_func_search_save_LIBS=$LIBS
13733 cat >conftest.$ac_ext <<_ACEOF
13734 /* confdefs.h.  */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h.  */
13739
13740 /* Override any GCC internal prototype to avoid an error.
13741    Use char because int might match the return type of a GCC
13742    builtin and then its argument prototype would still apply.  */
13743 #ifdef __cplusplus
13744 extern "C"
13745 #endif
13746 char op_open_agent ();
13747 int
13748 main ()
13749 {
13750 return op_open_agent ();
13751   ;
13752   return 0;
13753 }
13754 _ACEOF
13755 for ac_lib in '' opagent; do
13756   if test -z "$ac_lib"; then
13757     ac_res="none required"
13758   else
13759     ac_res=-l$ac_lib
13760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13761   fi
13762   rm -f conftest.$ac_objext conftest$ac_exeext
13763 if { (ac_try="$ac_link"
13764 case "(($ac_try" in
13765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766   *) ac_try_echo=$ac_try;;
13767 esac
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769   (eval "$ac_link") 2>conftest.er1
13770   ac_status=$?
13771   grep -v '^ *+' conftest.er1 >conftest.err
13772   rm -f conftest.er1
13773   cat conftest.err >&5
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); } &&
13776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13777   { (case "(($ac_try" in
13778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779   *) ac_try_echo=$ac_try;;
13780 esac
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782   (eval "$ac_try") 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; } &&
13786          { ac_try='test -s conftest$ac_exeext'
13787   { (case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792   (eval "$ac_try") 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); }; }; then
13796   ac_cv_search_op_open_agent=$ac_res
13797 else
13798   echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801
13802 fi
13803
13804 rm -f core conftest.err conftest.$ac_objext \
13805       conftest$ac_exeext
13806   if test "${ac_cv_search_op_open_agent+set}" = set; then
13807   break
13808 fi
13809 done
13810 if test "${ac_cv_search_op_open_agent+set}" = set; then
13811   :
13812 else
13813   ac_cv_search_op_open_agent=no
13814 fi
13815 rm conftest.$ac_ext
13816 LIBS=$ac_func_search_save_LIBS
13817 fi
13818 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13819 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13820 ac_res=$ac_cv_search_op_open_agent
13821 if test "$ac_res" != no; then
13822   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13823
13824 else
13825
13826           echo "Error! You need to have libopagent around."
13827           exit -1
13828
13829 fi
13830
13831         if test "${ac_cv_header_opagent_h+set}" = set; then
13832   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13833 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13834 if test "${ac_cv_header_opagent_h+set}" = set; then
13835   echo $ECHO_N "(cached) $ECHO_C" >&6
13836 fi
13837 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13838 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13839 else
13840   # Is the header compilable?
13841 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13842 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13843 cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h.  */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h.  */
13849 $ac_includes_default
13850 #include <opagent.h>
13851 _ACEOF
13852 rm -f conftest.$ac_objext
13853 if { (ac_try="$ac_compile"
13854 case "(($ac_try" in
13855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856   *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859   (eval "$ac_compile") 2>conftest.er1
13860   ac_status=$?
13861   grep -v '^ *+' conftest.er1 >conftest.err
13862   rm -f conftest.er1
13863   cat conftest.err >&5
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); } &&
13866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13867   { (case "(($ac_try" in
13868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869   *) ac_try_echo=$ac_try;;
13870 esac
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872   (eval "$ac_try") 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; } &&
13876          { ac_try='test -s conftest.$ac_objext'
13877   { (case "(($ac_try" in
13878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879   *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882   (eval "$ac_try") 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); }; }; then
13886   ac_header_compiler=yes
13887 else
13888   echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891         ac_header_compiler=no
13892 fi
13893
13894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13896 echo "${ECHO_T}$ac_header_compiler" >&6; }
13897
13898 # Is the header present?
13899 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13900 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13901 cat >conftest.$ac_ext <<_ACEOF
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907 #include <opagent.h>
13908 _ACEOF
13909 if { (ac_try="$ac_cpp conftest.$ac_ext"
13910 case "(($ac_try" in
13911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912   *) ac_try_echo=$ac_try;;
13913 esac
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13916   ac_status=$?
13917   grep -v '^ *+' conftest.er1 >conftest.err
13918   rm -f conftest.er1
13919   cat conftest.err >&5
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } >/dev/null; then
13922   if test -s conftest.err; then
13923     ac_cpp_err=$ac_c_preproc_warn_flag
13924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13925   else
13926     ac_cpp_err=
13927   fi
13928 else
13929   ac_cpp_err=yes
13930 fi
13931 if test -z "$ac_cpp_err"; then
13932   ac_header_preproc=yes
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937   ac_header_preproc=no
13938 fi
13939
13940 rm -f conftest.err conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13942 echo "${ECHO_T}$ac_header_preproc" >&6; }
13943
13944 # So?  What about this header?
13945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13946   yes:no: )
13947     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13948 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13949     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13950 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13951     ac_header_preproc=yes
13952     ;;
13953   no:yes:* )
13954     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13955 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13956     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13957 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13958     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13959 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13960     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13961 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13962     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13963 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13964     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13965 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13966     ( cat <<\_ASBOX
13967 ## ------------------------------ ##
13968 ## Report this to bugs@yourdomain ##
13969 ## ------------------------------ ##
13970 _ASBOX
13971      ) | sed "s/^/$as_me: WARNING:     /" >&2
13972     ;;
13973 esac
13974 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13975 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13976 if test "${ac_cv_header_opagent_h+set}" = set; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979   ac_cv_header_opagent_h=$ac_header_preproc
13980 fi
13981 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13982 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13983
13984 fi
13985 if test $ac_cv_header_opagent_h = yes; then
13986   :
13987 else
13988
13989           echo "Error! You need to have opagent.h around."
13990           exit -1
13991
13992 fi
13993
13994
13995       fi
13996
13997 else
13998
13999       USE_OPROFILE=0
14000
14001
14002 fi
14003
14004
14005 cat >>confdefs.h <<_ACEOF
14006 #define USE_OPROFILE $USE_OPROFILE
14007 _ACEOF
14008
14009
14010
14011
14012
14013
14014
14015
14016 ac_header_dirent=no
14017 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14018   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14019 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14020 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14022   echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024   cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h.  */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h.  */
14030 #include <sys/types.h>
14031 #include <$ac_hdr>
14032
14033 int
14034 main ()
14035 {
14036 if ((DIR *) 0)
14037 return 0;
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046   *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049   (eval "$ac_compile") 2>conftest.er1
14050   ac_status=$?
14051   grep -v '^ *+' conftest.er1 >conftest.err
14052   rm -f conftest.er1
14053   cat conftest.err >&5
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); } &&
14056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057   { (case "(($ac_try" in
14058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059   *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062   (eval "$ac_try") 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; } &&
14066          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14076   eval "$as_ac_Header=yes"
14077 else
14078   echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081         eval "$as_ac_Header=no"
14082 fi
14083
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14085 fi
14086 ac_res=`eval echo '${'$as_ac_Header'}'`
14087                { echo "$as_me:$LINENO: result: $ac_res" >&5
14088 echo "${ECHO_T}$ac_res" >&6; }
14089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14090   cat >>confdefs.h <<_ACEOF
14091 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14092 _ACEOF
14093
14094 ac_header_dirent=$ac_hdr; break
14095 fi
14096
14097 done
14098 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14099 if test $ac_header_dirent = dirent.h; then
14100   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14101 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14102 if test "${ac_cv_search_opendir+set}" = set; then
14103   echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105   ac_func_search_save_LIBS=$LIBS
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h.  */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h.  */
14112
14113 /* Override any GCC internal prototype to avoid an error.
14114    Use char because int might match the return type of a GCC
14115    builtin and then its argument prototype would still apply.  */
14116 #ifdef __cplusplus
14117 extern "C"
14118 #endif
14119 char opendir ();
14120 int
14121 main ()
14122 {
14123 return opendir ();
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 for ac_lib in '' dir; do
14129   if test -z "$ac_lib"; then
14130     ac_res="none required"
14131   else
14132     ac_res=-l$ac_lib
14133     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14134   fi
14135   rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (ac_try="$ac_link"
14137 case "(($ac_try" in
14138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139   *) ac_try_echo=$ac_try;;
14140 esac
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142   (eval "$ac_link") 2>conftest.er1
14143   ac_status=$?
14144   grep -v '^ *+' conftest.er1 >conftest.err
14145   rm -f conftest.er1
14146   cat conftest.err >&5
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } &&
14149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14150   { (case "(($ac_try" in
14151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152   *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155   (eval "$ac_try") 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; } &&
14159          { ac_try='test -s conftest$ac_exeext'
14160   { (case "(($ac_try" in
14161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162   *) ac_try_echo=$ac_try;;
14163 esac
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165   (eval "$ac_try") 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; }; then
14169   ac_cv_search_opendir=$ac_res
14170 else
14171   echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174
14175 fi
14176
14177 rm -f core conftest.err conftest.$ac_objext \
14178       conftest$ac_exeext
14179   if test "${ac_cv_search_opendir+set}" = set; then
14180   break
14181 fi
14182 done
14183 if test "${ac_cv_search_opendir+set}" = set; then
14184   :
14185 else
14186   ac_cv_search_opendir=no
14187 fi
14188 rm conftest.$ac_ext
14189 LIBS=$ac_func_search_save_LIBS
14190 fi
14191 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14192 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14193 ac_res=$ac_cv_search_opendir
14194 if test "$ac_res" != no; then
14195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14196
14197 fi
14198
14199 else
14200   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14201 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14202 if test "${ac_cv_search_opendir+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   ac_func_search_save_LIBS=$LIBS
14206 cat >conftest.$ac_ext <<_ACEOF
14207 /* confdefs.h.  */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h.  */
14212
14213 /* Override any GCC internal prototype to avoid an error.
14214    Use char because int might match the return type of a GCC
14215    builtin and then its argument prototype would still apply.  */
14216 #ifdef __cplusplus
14217 extern "C"
14218 #endif
14219 char opendir ();
14220 int
14221 main ()
14222 {
14223 return opendir ();
14224   ;
14225   return 0;
14226 }
14227 _ACEOF
14228 for ac_lib in '' x; do
14229   if test -z "$ac_lib"; then
14230     ac_res="none required"
14231   else
14232     ac_res=-l$ac_lib
14233     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14234   fi
14235   rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (ac_try="$ac_link"
14237 case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_link") 2>conftest.er1
14243   ac_status=$?
14244   grep -v '^ *+' conftest.er1 >conftest.err
14245   rm -f conftest.er1
14246   cat conftest.err >&5
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } &&
14249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14250   { (case "(($ac_try" in
14251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252   *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255   (eval "$ac_try") 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; } &&
14259          { ac_try='test -s conftest$ac_exeext'
14260   { (case "(($ac_try" in
14261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262   *) ac_try_echo=$ac_try;;
14263 esac
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265   (eval "$ac_try") 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; }; then
14269   ac_cv_search_opendir=$ac_res
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274
14275 fi
14276
14277 rm -f core conftest.err conftest.$ac_objext \
14278       conftest$ac_exeext
14279   if test "${ac_cv_search_opendir+set}" = set; then
14280   break
14281 fi
14282 done
14283 if test "${ac_cv_search_opendir+set}" = set; then
14284   :
14285 else
14286   ac_cv_search_opendir=no
14287 fi
14288 rm conftest.$ac_ext
14289 LIBS=$ac_func_search_save_LIBS
14290 fi
14291 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14292 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14293 ac_res=$ac_cv_search_opendir
14294 if test "$ac_res" != no; then
14295   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14296
14297 fi
14298
14299 fi
14300
14301 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14302 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14303 if test "${ac_cv_header_mmap_anon+set}" = set; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306    ac_ext=c
14307 ac_cpp='$CPP $CPPFLAGS'
14308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14311
14312   cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h.  */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h.  */
14318 #include <sys/mman.h>
14319 #include <unistd.h>
14320 #include <fcntl.h>
14321 int
14322 main ()
14323 {
14324 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14325   ;
14326   return 0;
14327 }
14328 _ACEOF
14329 rm -f conftest.$ac_objext
14330 if { (ac_try="$ac_compile"
14331 case "(($ac_try" in
14332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333   *) ac_try_echo=$ac_try;;
14334 esac
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336   (eval "$ac_compile") 2>conftest.er1
14337   ac_status=$?
14338   grep -v '^ *+' conftest.er1 >conftest.err
14339   rm -f conftest.er1
14340   cat conftest.err >&5
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); } &&
14343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14344   { (case "(($ac_try" in
14345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346   *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349   (eval "$ac_try") 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; } &&
14353          { ac_try='test -s conftest.$ac_objext'
14354   { (case "(($ac_try" in
14355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356   *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359   (eval "$ac_try") 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   ac_cv_header_mmap_anon=yes
14364 else
14365   echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14367
14368         ac_cv_header_mmap_anon=no
14369 fi
14370
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372   ac_ext=c
14373 ac_cpp='$CPP $CPPFLAGS'
14374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14377
14378
14379 fi
14380 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14381 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14382 if test "$ac_cv_header_mmap_anon" = yes; then
14383
14384 cat >>confdefs.h <<\_ACEOF
14385 #define HAVE_MMAP_ANONYMOUS 1
14386 _ACEOF
14387
14388 fi
14389
14390 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14391 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14392 if test "${ac_cv_header_stat_broken+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h.  */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h.  */
14401 #include <sys/types.h>
14402 #include <sys/stat.h>
14403
14404 #if defined S_ISBLK && defined S_IFDIR
14405 # if S_ISBLK (S_IFDIR)
14406 You lose.
14407 # endif
14408 #endif
14409
14410 #if defined S_ISBLK && defined S_IFCHR
14411 # if S_ISBLK (S_IFCHR)
14412 You lose.
14413 # endif
14414 #endif
14415
14416 #if defined S_ISLNK && defined S_IFREG
14417 # if S_ISLNK (S_IFREG)
14418 You lose.
14419 # endif
14420 #endif
14421
14422 #if defined S_ISSOCK && defined S_IFREG
14423 # if S_ISSOCK (S_IFREG)
14424 You lose.
14425 # endif
14426 #endif
14427
14428 _ACEOF
14429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14430   $EGREP "You lose" >/dev/null 2>&1; then
14431   ac_cv_header_stat_broken=yes
14432 else
14433   ac_cv_header_stat_broken=no
14434 fi
14435 rm -f conftest*
14436
14437 fi
14438 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14439 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14440 if test $ac_cv_header_stat_broken = yes; then
14441
14442 cat >>confdefs.h <<\_ACEOF
14443 #define STAT_MACROS_BROKEN 1
14444 _ACEOF
14445
14446 fi
14447
14448 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14449 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14450 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14451   echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453   cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459 #include <sys/types.h>
14460 #include <sys/wait.h>
14461 #ifndef WEXITSTATUS
14462 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14463 #endif
14464 #ifndef WIFEXITED
14465 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14466 #endif
14467
14468 int
14469 main ()
14470 {
14471   int s;
14472   wait (&s);
14473   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 rm -f conftest.$ac_objext
14479 if { (ac_try="$ac_compile"
14480 case "(($ac_try" in
14481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482   *) ac_try_echo=$ac_try;;
14483 esac
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485   (eval "$ac_compile") 2>conftest.er1
14486   ac_status=$?
14487   grep -v '^ *+' conftest.er1 >conftest.err
14488   rm -f conftest.er1
14489   cat conftest.err >&5
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); } &&
14492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14493   { (case "(($ac_try" in
14494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495   *) ac_try_echo=$ac_try;;
14496 esac
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498   (eval "$ac_try") 2>&5
14499   ac_status=$?
14500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; } &&
14502          { ac_try='test -s conftest.$ac_objext'
14503   { (case "(($ac_try" in
14504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505   *) ac_try_echo=$ac_try;;
14506 esac
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508   (eval "$ac_try") 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); }; }; then
14512   ac_cv_header_sys_wait_h=yes
14513 else
14514   echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14516
14517         ac_cv_header_sys_wait_h=no
14518 fi
14519
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521 fi
14522 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14523 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14524 if test $ac_cv_header_sys_wait_h = yes; then
14525
14526 cat >>confdefs.h <<\_ACEOF
14527 #define HAVE_SYS_WAIT_H 1
14528 _ACEOF
14529
14530 fi
14531
14532 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14533 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14534 if test "${ac_cv_header_time+set}" = set; then
14535   echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537   cat >conftest.$ac_ext <<_ACEOF
14538 /* confdefs.h.  */
14539 _ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h.  */
14543 #include <sys/types.h>
14544 #include <sys/time.h>
14545 #include <time.h>
14546
14547 int
14548 main ()
14549 {
14550 if ((struct tm *) 0)
14551 return 0;
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext
14557 if { (ac_try="$ac_compile"
14558 case "(($ac_try" in
14559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560   *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563   (eval "$ac_compile") 2>conftest.er1
14564   ac_status=$?
14565   grep -v '^ *+' conftest.er1 >conftest.err
14566   rm -f conftest.er1
14567   cat conftest.err >&5
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); } &&
14570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14571   { (case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_try") 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; } &&
14580          { ac_try='test -s conftest.$ac_objext'
14581   { (case "(($ac_try" in
14582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583   *) ac_try_echo=$ac_try;;
14584 esac
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586   (eval "$ac_try") 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }; then
14590   ac_cv_header_time=yes
14591 else
14592   echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595         ac_cv_header_time=no
14596 fi
14597
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 fi
14600 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14601 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14602 if test $ac_cv_header_time = yes; then
14603
14604 cat >>confdefs.h <<\_ACEOF
14605 #define TIME_WITH_SYS_TIME 1
14606 _ACEOF
14607
14608 fi
14609
14610
14611
14612
14613
14614
14615
14616
14617 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14618 do
14619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14621   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14624   echo $ECHO_N "(cached) $ECHO_C" >&6
14625 fi
14626 ac_res=`eval echo '${'$as_ac_Header'}'`
14627                { echo "$as_me:$LINENO: result: $ac_res" >&5
14628 echo "${ECHO_T}$ac_res" >&6; }
14629 else
14630   # Is the header compilable?
14631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h.  */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h.  */
14639 $ac_includes_default
14640 #include <$ac_header>
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (ac_try="$ac_compile"
14644 case "(($ac_try" in
14645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646   *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649   (eval "$ac_compile") 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } &&
14656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657   { (case "(($ac_try" in
14658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659   *) ac_try_echo=$ac_try;;
14660 esac
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662   (eval "$ac_try") 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; } &&
14666          { ac_try='test -s conftest.$ac_objext'
14667   { (case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672   (eval "$ac_try") 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; }; then
14676   ac_header_compiler=yes
14677 else
14678   echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681         ac_header_compiler=no
14682 fi
14683
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6; }
14687
14688 # Is the header present?
14689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h.  */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h.  */
14697 #include <$ac_header>
14698 _ACEOF
14699 if { (ac_try="$ac_cpp conftest.$ac_ext"
14700 case "(($ac_try" in
14701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702   *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14706   ac_status=$?
14707   grep -v '^ *+' conftest.er1 >conftest.err
14708   rm -f conftest.er1
14709   cat conftest.err >&5
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); } >/dev/null; then
14712   if test -s conftest.err; then
14713     ac_cpp_err=$ac_c_preproc_warn_flag
14714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14715   else
14716     ac_cpp_err=
14717   fi
14718 else
14719   ac_cpp_err=yes
14720 fi
14721 if test -z "$ac_cpp_err"; then
14722   ac_header_preproc=yes
14723 else
14724   echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14726
14727   ac_header_preproc=no
14728 fi
14729
14730 rm -f conftest.err conftest.$ac_ext
14731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14732 echo "${ECHO_T}$ac_header_preproc" >&6; }
14733
14734 # So?  What about this header?
14735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14736   yes:no: )
14737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14741     ac_header_preproc=yes
14742     ;;
14743   no:yes:* )
14744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14756     ( cat <<\_ASBOX
14757 ## ------------------------------ ##
14758 ## Report this to bugs@yourdomain ##
14759 ## ------------------------------ ##
14760 _ASBOX
14761      ) | sed "s/^/$as_me: WARNING:     /" >&2
14762     ;;
14763 esac
14764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767   echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769   eval "$as_ac_Header=\$ac_header_preproc"
14770 fi
14771 ac_res=`eval echo '${'$as_ac_Header'}'`
14772                { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14774
14775 fi
14776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14777   cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14779 _ACEOF
14780
14781 fi
14782
14783 done
14784
14785
14786
14787
14788
14789
14790
14791 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14792 do
14793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14798   echo $ECHO_N "(cached) $ECHO_C" >&6
14799 fi
14800 ac_res=`eval echo '${'$as_ac_Header'}'`
14801                { echo "$as_me:$LINENO: result: $ac_res" >&5
14802 echo "${ECHO_T}$ac_res" >&6; }
14803 else
14804   # Is the header compilable?
14805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h.  */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h.  */
14813 $ac_includes_default
14814 #include <$ac_header>
14815 _ACEOF
14816 rm -f conftest.$ac_objext
14817 if { (ac_try="$ac_compile"
14818 case "(($ac_try" in
14819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820   *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823   (eval "$ac_compile") 2>conftest.er1
14824   ac_status=$?
14825   grep -v '^ *+' conftest.er1 >conftest.err
14826   rm -f conftest.er1
14827   cat conftest.err >&5
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); } &&
14830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14831   { (case "(($ac_try" in
14832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833   *) ac_try_echo=$ac_try;;
14834 esac
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836   (eval "$ac_try") 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); }; } &&
14840          { ac_try='test -s conftest.$ac_objext'
14841   { (case "(($ac_try" in
14842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843   *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846   (eval "$ac_try") 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; }; then
14850   ac_header_compiler=yes
14851 else
14852   echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855         ac_header_compiler=no
14856 fi
14857
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14860 echo "${ECHO_T}$ac_header_compiler" >&6; }
14861
14862 # Is the header present?
14863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14865 cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h.  */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h.  */
14871 #include <$ac_header>
14872 _ACEOF
14873 if { (ac_try="$ac_cpp conftest.$ac_ext"
14874 case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14880   ac_status=$?
14881   grep -v '^ *+' conftest.er1 >conftest.err
14882   rm -f conftest.er1
14883   cat conftest.err >&5
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } >/dev/null; then
14886   if test -s conftest.err; then
14887     ac_cpp_err=$ac_c_preproc_warn_flag
14888     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14889   else
14890     ac_cpp_err=
14891   fi
14892 else
14893   ac_cpp_err=yes
14894 fi
14895 if test -z "$ac_cpp_err"; then
14896   ac_header_preproc=yes
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901   ac_header_preproc=no
14902 fi
14903
14904 rm -f conftest.err conftest.$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14906 echo "${ECHO_T}$ac_header_preproc" >&6; }
14907
14908 # So?  What about this header?
14909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14910   yes:no: )
14911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14915     ac_header_preproc=yes
14916     ;;
14917   no:yes:* )
14918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14930     ( cat <<\_ASBOX
14931 ## ------------------------------ ##
14932 ## Report this to bugs@yourdomain ##
14933 ## ------------------------------ ##
14934 _ASBOX
14935      ) | sed "s/^/$as_me: WARNING:     /" >&2
14936     ;;
14937 esac
14938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14941   echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943   eval "$as_ac_Header=\$ac_header_preproc"
14944 fi
14945 ac_res=`eval echo '${'$as_ac_Header'}'`
14946                { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14948
14949 fi
14950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14951   cat >>confdefs.h <<_ACEOF
14952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14953 _ACEOF
14954
14955 fi
14956
14957 done
14958
14959
14960
14961 for ac_header in utime.h windows.h
14962 do
14963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 fi
14970 ac_res=`eval echo '${'$as_ac_Header'}'`
14971                { echo "$as_me:$LINENO: result: $ac_res" >&5
14972 echo "${ECHO_T}$ac_res" >&6; }
14973 else
14974   # Is the header compilable?
14975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h.  */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h.  */
14983 $ac_includes_default
14984 #include <$ac_header>
14985 _ACEOF
14986 rm -f conftest.$ac_objext
14987 if { (ac_try="$ac_compile"
14988 case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_compile") 2>conftest.er1
14994   ac_status=$?
14995   grep -v '^ *+' conftest.er1 >conftest.err
14996   rm -f conftest.er1
14997   cat conftest.err >&5
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); } &&
15000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15001   { (case "(($ac_try" in
15002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003   *) ac_try_echo=$ac_try;;
15004 esac
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006   (eval "$ac_try") 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); }; } &&
15010          { ac_try='test -s conftest.$ac_objext'
15011   { (case "(($ac_try" in
15012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013   *) ac_try_echo=$ac_try;;
15014 esac
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016   (eval "$ac_try") 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; }; then
15020   ac_header_compiler=yes
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025         ac_header_compiler=no
15026 fi
15027
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15030 echo "${ECHO_T}$ac_header_compiler" >&6; }
15031
15032 # Is the header present?
15033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 #include <$ac_header>
15042 _ACEOF
15043 if { (ac_try="$ac_cpp conftest.$ac_ext"
15044 case "(($ac_try" in
15045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046   *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15050   ac_status=$?
15051   grep -v '^ *+' conftest.er1 >conftest.err
15052   rm -f conftest.er1
15053   cat conftest.err >&5
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); } >/dev/null; then
15056   if test -s conftest.err; then
15057     ac_cpp_err=$ac_c_preproc_warn_flag
15058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15059   else
15060     ac_cpp_err=
15061   fi
15062 else
15063   ac_cpp_err=yes
15064 fi
15065 if test -z "$ac_cpp_err"; then
15066   ac_header_preproc=yes
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071   ac_header_preproc=no
15072 fi
15073
15074 rm -f conftest.err conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076 echo "${ECHO_T}$ac_header_preproc" >&6; }
15077
15078 # So?  What about this header?
15079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15080   yes:no: )
15081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15085     ac_header_preproc=yes
15086     ;;
15087   no:yes:* )
15088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15100     ( cat <<\_ASBOX
15101 ## ------------------------------ ##
15102 ## Report this to bugs@yourdomain ##
15103 ## ------------------------------ ##
15104 _ASBOX
15105      ) | sed "s/^/$as_me: WARNING:     /" >&2
15106     ;;
15107 esac
15108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   eval "$as_ac_Header=\$ac_header_preproc"
15114 fi
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116                { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15118
15119 fi
15120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15121   cat >>confdefs.h <<_ACEOF
15122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15123 _ACEOF
15124
15125 fi
15126
15127 done
15128
15129
15130
15131
15132
15133
15134 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15135 do
15136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15138   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15141   echo $ECHO_N "(cached) $ECHO_C" >&6
15142 fi
15143 ac_res=`eval echo '${'$as_ac_Header'}'`
15144                { echo "$as_me:$LINENO: result: $ac_res" >&5
15145 echo "${ECHO_T}$ac_res" >&6; }
15146 else
15147   # Is the header compilable?
15148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15150 cat >conftest.$ac_ext <<_ACEOF
15151 /* confdefs.h.  */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h.  */
15156 $ac_includes_default
15157 #include <$ac_header>
15158 _ACEOF
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163   *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166   (eval "$ac_compile") 2>conftest.er1
15167   ac_status=$?
15168   grep -v '^ *+' conftest.er1 >conftest.err
15169   rm -f conftest.er1
15170   cat conftest.err >&5
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } &&
15173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15174   { (case "(($ac_try" in
15175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176   *) ac_try_echo=$ac_try;;
15177 esac
15178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179   (eval "$ac_try") 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; } &&
15183          { ac_try='test -s conftest.$ac_objext'
15184   { (case "(($ac_try" in
15185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186   *) ac_try_echo=$ac_try;;
15187 esac
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189   (eval "$ac_try") 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; }; then
15193   ac_header_compiler=yes
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198         ac_header_compiler=no
15199 fi
15200
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15203 echo "${ECHO_T}$ac_header_compiler" >&6; }
15204
15205 # Is the header present?
15206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214 #include <$ac_header>
15215 _ACEOF
15216 if { (ac_try="$ac_cpp conftest.$ac_ext"
15217 case "(($ac_try" in
15218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219   *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15223   ac_status=$?
15224   grep -v '^ *+' conftest.er1 >conftest.err
15225   rm -f conftest.er1
15226   cat conftest.err >&5
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); } >/dev/null; then
15229   if test -s conftest.err; then
15230     ac_cpp_err=$ac_c_preproc_warn_flag
15231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15232   else
15233     ac_cpp_err=
15234   fi
15235 else
15236   ac_cpp_err=yes
15237 fi
15238 if test -z "$ac_cpp_err"; then
15239   ac_header_preproc=yes
15240 else
15241   echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244   ac_header_preproc=no
15245 fi
15246
15247 rm -f conftest.err conftest.$ac_ext
15248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15249 echo "${ECHO_T}$ac_header_preproc" >&6; }
15250
15251 # So?  What about this header?
15252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15253   yes:no: )
15254     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15258     ac_header_preproc=yes
15259     ;;
15260   no:yes:* )
15261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15263     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15264 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15265     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15267     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15268 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15271     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15273     ( cat <<\_ASBOX
15274 ## ------------------------------ ##
15275 ## Report this to bugs@yourdomain ##
15276 ## ------------------------------ ##
15277 _ASBOX
15278      ) | sed "s/^/$as_me: WARNING:     /" >&2
15279     ;;
15280 esac
15281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   eval "$as_ac_Header=\$ac_header_preproc"
15287 fi
15288 ac_res=`eval echo '${'$as_ac_Header'}'`
15289                { echo "$as_me:$LINENO: result: $ac_res" >&5
15290 echo "${ECHO_T}$ac_res" >&6; }
15291
15292 fi
15293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15294   cat >>confdefs.h <<_ACEOF
15295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15296 _ACEOF
15297
15298 fi
15299
15300 done
15301
15302
15303
15304
15305
15306 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15307 do
15308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15313   echo $ECHO_N "(cached) $ECHO_C" >&6
15314 fi
15315 ac_res=`eval echo '${'$as_ac_Header'}'`
15316                { echo "$as_me:$LINENO: result: $ac_res" >&5
15317 echo "${ECHO_T}$ac_res" >&6; }
15318 else
15319   # Is the header compilable?
15320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h.  */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h.  */
15328 $ac_includes_default
15329 #include <$ac_header>
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_compile") 2>conftest.er1
15339   ac_status=$?
15340   grep -v '^ *+' conftest.er1 >conftest.err
15341   rm -f conftest.er1
15342   cat conftest.err >&5
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } &&
15345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15346   { (case "(($ac_try" in
15347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348   *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351   (eval "$ac_try") 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; } &&
15355          { ac_try='test -s conftest.$ac_objext'
15356   { (case "(($ac_try" in
15357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358   *) ac_try_echo=$ac_try;;
15359 esac
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361   (eval "$ac_try") 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); }; }; then
15365   ac_header_compiler=yes
15366 else
15367   echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370         ac_header_compiler=no
15371 fi
15372
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15375 echo "${ECHO_T}$ac_header_compiler" >&6; }
15376
15377 # Is the header present?
15378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h.  */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h.  */
15386 #include <$ac_header>
15387 _ACEOF
15388 if { (ac_try="$ac_cpp conftest.$ac_ext"
15389 case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } >/dev/null; then
15401   if test -s conftest.err; then
15402     ac_cpp_err=$ac_c_preproc_warn_flag
15403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15404   else
15405     ac_cpp_err=
15406   fi
15407 else
15408   ac_cpp_err=yes
15409 fi
15410 if test -z "$ac_cpp_err"; then
15411   ac_header_preproc=yes
15412 else
15413   echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416   ac_header_preproc=no
15417 fi
15418
15419 rm -f conftest.err conftest.$ac_ext
15420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15421 echo "${ECHO_T}$ac_header_preproc" >&6; }
15422
15423 # So?  What about this header?
15424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15425   yes:no: )
15426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15430     ac_header_preproc=yes
15431     ;;
15432   no:yes:* )
15433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15445     ( cat <<\_ASBOX
15446 ## ------------------------------ ##
15447 ## Report this to bugs@yourdomain ##
15448 ## ------------------------------ ##
15449 _ASBOX
15450      ) | sed "s/^/$as_me: WARNING:     /" >&2
15451     ;;
15452 esac
15453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456   echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458   eval "$as_ac_Header=\$ac_header_preproc"
15459 fi
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461                { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15463
15464 fi
15465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15466   cat >>confdefs.h <<_ACEOF
15467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15468 _ACEOF
15469
15470 fi
15471
15472 done
15473
15474
15475 for ac_header in valgrind/valgrind.h
15476 do
15477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482   echo $ECHO_N "(cached) $ECHO_C" >&6
15483 fi
15484 ac_res=`eval echo '${'$as_ac_Header'}'`
15485                { echo "$as_me:$LINENO: result: $ac_res" >&5
15486 echo "${ECHO_T}$ac_res" >&6; }
15487 else
15488   # Is the header compilable?
15489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15491 cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h.  */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h.  */
15497 $ac_includes_default
15498 #include <$ac_header>
15499 _ACEOF
15500 rm -f conftest.$ac_objext
15501 if { (ac_try="$ac_compile"
15502 case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_compile") 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } &&
15514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515   { (case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_try") 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; } &&
15524          { ac_try='test -s conftest.$ac_objext'
15525   { (case "(($ac_try" in
15526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527   *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530   (eval "$ac_try") 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   ac_header_compiler=yes
15535 else
15536   echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539         ac_header_compiler=no
15540 fi
15541
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15544 echo "${ECHO_T}$ac_header_compiler" >&6; }
15545
15546 # Is the header present?
15547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555 #include <$ac_header>
15556 _ACEOF
15557 if { (ac_try="$ac_cpp conftest.$ac_ext"
15558 case "(($ac_try" in
15559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560   *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15564   ac_status=$?
15565   grep -v '^ *+' conftest.er1 >conftest.err
15566   rm -f conftest.er1
15567   cat conftest.err >&5
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); } >/dev/null; then
15570   if test -s conftest.err; then
15571     ac_cpp_err=$ac_c_preproc_warn_flag
15572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15573   else
15574     ac_cpp_err=
15575   fi
15576 else
15577   ac_cpp_err=yes
15578 fi
15579 if test -z "$ac_cpp_err"; then
15580   ac_header_preproc=yes
15581 else
15582   echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15584
15585   ac_header_preproc=no
15586 fi
15587
15588 rm -f conftest.err conftest.$ac_ext
15589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15590 echo "${ECHO_T}$ac_header_preproc" >&6; }
15591
15592 # So?  What about this header?
15593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15594   yes:no: )
15595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15599     ac_header_preproc=yes
15600     ;;
15601   no:yes:* )
15602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15614     ( cat <<\_ASBOX
15615 ## ------------------------------ ##
15616 ## Report this to bugs@yourdomain ##
15617 ## ------------------------------ ##
15618 _ASBOX
15619      ) | sed "s/^/$as_me: WARNING:     /" >&2
15620     ;;
15621 esac
15622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625   echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627   eval "$as_ac_Header=\$ac_header_preproc"
15628 fi
15629 ac_res=`eval echo '${'$as_ac_Header'}'`
15630                { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15632
15633 fi
15634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15635   cat >>confdefs.h <<_ACEOF
15636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15637 _ACEOF
15638
15639 fi
15640
15641 done
15642
15643
15644 for ac_header in fenv.h
15645 do
15646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651   echo $ECHO_N "(cached) $ECHO_C" >&6
15652 fi
15653 ac_res=`eval echo '${'$as_ac_Header'}'`
15654                { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15656 else
15657   # Is the header compilable?
15658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h.  */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h.  */
15666 $ac_includes_default
15667 #include <$ac_header>
15668 _ACEOF
15669 rm -f conftest.$ac_objext
15670 if { (ac_try="$ac_compile"
15671 case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676   (eval "$ac_compile") 2>conftest.er1
15677   ac_status=$?
15678   grep -v '^ *+' conftest.er1 >conftest.err
15679   rm -f conftest.er1
15680   cat conftest.err >&5
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); } &&
15683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684   { (case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689   (eval "$ac_try") 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; } &&
15693          { ac_try='test -s conftest.$ac_objext'
15694   { (case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699   (eval "$ac_try") 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; }; then
15703   ac_header_compiler=yes
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708         ac_header_compiler=no
15709 fi
15710
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713 echo "${ECHO_T}$ac_header_compiler" >&6; }
15714
15715 # Is the header present?
15716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724 #include <$ac_header>
15725 _ACEOF
15726 if { (ac_try="$ac_cpp conftest.$ac_ext"
15727 case "(($ac_try" in
15728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729   *) ac_try_echo=$ac_try;;
15730 esac
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } >/dev/null; then
15739   if test -s conftest.err; then
15740     ac_cpp_err=$ac_c_preproc_warn_flag
15741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15742   else
15743     ac_cpp_err=
15744   fi
15745 else
15746   ac_cpp_err=yes
15747 fi
15748 if test -z "$ac_cpp_err"; then
15749   ac_header_preproc=yes
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754   ac_header_preproc=no
15755 fi
15756
15757 rm -f conftest.err conftest.$ac_ext
15758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759 echo "${ECHO_T}$ac_header_preproc" >&6; }
15760
15761 # So?  What about this header?
15762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15763   yes:no: )
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768     ac_header_preproc=yes
15769     ;;
15770   no:yes:* )
15771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15783     ( cat <<\_ASBOX
15784 ## ------------------------------ ##
15785 ## Report this to bugs@yourdomain ##
15786 ## ------------------------------ ##
15787 _ASBOX
15788      ) | sed "s/^/$as_me: WARNING:     /" >&2
15789     ;;
15790 esac
15791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   eval "$as_ac_Header=\$ac_header_preproc"
15797 fi
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799                { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15801
15802 fi
15803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15804   cat >>confdefs.h <<_ACEOF
15805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15806 _ACEOF
15807
15808 fi
15809
15810 done
15811
15812 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15813
15814 for ac_header in pthread.h
15815 do
15816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821   echo $ECHO_N "(cached) $ECHO_C" >&6
15822 fi
15823 ac_res=`eval echo '${'$as_ac_Header'}'`
15824                { echo "$as_me:$LINENO: result: $ac_res" >&5
15825 echo "${ECHO_T}$ac_res" >&6; }
15826 else
15827   # Is the header compilable?
15828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h.  */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h.  */
15836 $ac_includes_default
15837 #include <$ac_header>
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (ac_try="$ac_compile"
15841 case "(($ac_try" in
15842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843   *) ac_try_echo=$ac_try;;
15844 esac
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846   (eval "$ac_compile") 2>conftest.er1
15847   ac_status=$?
15848   grep -v '^ *+' conftest.er1 >conftest.err
15849   rm -f conftest.er1
15850   cat conftest.err >&5
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } &&
15853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15854   { (case "(($ac_try" in
15855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856   *) ac_try_echo=$ac_try;;
15857 esac
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859   (eval "$ac_try") 2>&5
15860   ac_status=$?
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); }; } &&
15863          { ac_try='test -s conftest.$ac_objext'
15864   { (case "(($ac_try" in
15865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866   *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869   (eval "$ac_try") 2>&5
15870   ac_status=$?
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); }; }; then
15873   ac_header_compiler=yes
15874 else
15875   echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878         ac_header_compiler=no
15879 fi
15880
15881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15883 echo "${ECHO_T}$ac_header_compiler" >&6; }
15884
15885 # Is the header present?
15886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15888 cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894 #include <$ac_header>
15895 _ACEOF
15896 if { (ac_try="$ac_cpp conftest.$ac_ext"
15897 case "(($ac_try" in
15898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899   *) ac_try_echo=$ac_try;;
15900 esac
15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15903   ac_status=$?
15904   grep -v '^ *+' conftest.er1 >conftest.err
15905   rm -f conftest.er1
15906   cat conftest.err >&5
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); } >/dev/null; then
15909   if test -s conftest.err; then
15910     ac_cpp_err=$ac_c_preproc_warn_flag
15911     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15912   else
15913     ac_cpp_err=
15914   fi
15915 else
15916   ac_cpp_err=yes
15917 fi
15918 if test -z "$ac_cpp_err"; then
15919   ac_header_preproc=yes
15920 else
15921   echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924   ac_header_preproc=no
15925 fi
15926
15927 rm -f conftest.err conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15929 echo "${ECHO_T}$ac_header_preproc" >&6; }
15930
15931 # So?  What about this header?
15932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15933   yes:no: )
15934     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15938     ac_header_preproc=yes
15939     ;;
15940   no:yes:* )
15941     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15943     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15944 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15945     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15947     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15948 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15951     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15953     ( cat <<\_ASBOX
15954 ## ------------------------------ ##
15955 ## Report this to bugs@yourdomain ##
15956 ## ------------------------------ ##
15957 _ASBOX
15958      ) | sed "s/^/$as_me: WARNING:     /" >&2
15959     ;;
15960 esac
15961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966   eval "$as_ac_Header=\$ac_header_preproc"
15967 fi
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969                { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15971
15972 fi
15973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974   cat >>confdefs.h <<_ACEOF
15975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15976 _ACEOF
15977  HAVE_PTHREAD=1
15978
15979 else
15980   HAVE_PTHREAD=0
15981
15982 fi
15983
15984 done
15985
15986 else
15987   HAVE_PTHREAD=0
15988
15989 fi
15990 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
15991
15992 for ac_header in zlib.h
15993 do
15994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15996   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 fi
16001 ac_res=`eval echo '${'$as_ac_Header'}'`
16002                { echo "$as_me:$LINENO: result: $ac_res" >&5
16003 echo "${ECHO_T}$ac_res" >&6; }
16004 else
16005   # Is the header compilable?
16006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16008 cat >conftest.$ac_ext <<_ACEOF
16009 /* confdefs.h.  */
16010 _ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h.  */
16014 $ac_includes_default
16015 #include <$ac_header>
16016 _ACEOF
16017 rm -f conftest.$ac_objext
16018 if { (ac_try="$ac_compile"
16019 case "(($ac_try" in
16020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021   *) ac_try_echo=$ac_try;;
16022 esac
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024   (eval "$ac_compile") 2>conftest.er1
16025   ac_status=$?
16026   grep -v '^ *+' conftest.er1 >conftest.err
16027   rm -f conftest.er1
16028   cat conftest.err >&5
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } &&
16031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16032   { (case "(($ac_try" in
16033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034   *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037   (eval "$ac_try") 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; } &&
16041          { ac_try='test -s conftest.$ac_objext'
16042   { (case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_try") 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; }; then
16051   ac_header_compiler=yes
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056         ac_header_compiler=no
16057 fi
16058
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16061 echo "${ECHO_T}$ac_header_compiler" >&6; }
16062
16063 # Is the header present?
16064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h.  */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h.  */
16072 #include <$ac_header>
16073 _ACEOF
16074 if { (ac_try="$ac_cpp conftest.$ac_ext"
16075 case "(($ac_try" in
16076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077   *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16081   ac_status=$?
16082   grep -v '^ *+' conftest.er1 >conftest.err
16083   rm -f conftest.er1
16084   cat conftest.err >&5
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); } >/dev/null; then
16087   if test -s conftest.err; then
16088     ac_cpp_err=$ac_c_preproc_warn_flag
16089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16090   else
16091     ac_cpp_err=
16092   fi
16093 else
16094   ac_cpp_err=yes
16095 fi
16096 if test -z "$ac_cpp_err"; then
16097   ac_header_preproc=yes
16098 else
16099   echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16101
16102   ac_header_preproc=no
16103 fi
16104
16105 rm -f conftest.err conftest.$ac_ext
16106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16107 echo "${ECHO_T}$ac_header_preproc" >&6; }
16108
16109 # So?  What about this header?
16110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16111   yes:no: )
16112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16116     ac_header_preproc=yes
16117     ;;
16118   no:yes:* )
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16122 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16123     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16125     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16126 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16129     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16131     ( cat <<\_ASBOX
16132 ## ------------------------------ ##
16133 ## Report this to bugs@yourdomain ##
16134 ## ------------------------------ ##
16135 _ASBOX
16136      ) | sed "s/^/$as_me: WARNING:     /" >&2
16137     ;;
16138 esac
16139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144   eval "$as_ac_Header=\$ac_header_preproc"
16145 fi
16146 ac_res=`eval echo '${'$as_ac_Header'}'`
16147                { echo "$as_me:$LINENO: result: $ac_res" >&5
16148 echo "${ECHO_T}$ac_res" >&6; }
16149
16150 fi
16151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16152   cat >>confdefs.h <<_ACEOF
16153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16154 _ACEOF
16155  HAVE_LIBZ=1
16156
16157 else
16158   HAVE_LIBZ=0
16159
16160 fi
16161
16162 done
16163
16164 else
16165   HAVE_LIBZ=0
16166
16167 fi
16168
16169 if test "$llvm_cv_enable_libffi" = "yes" ; then
16170
16171
16172 for ac_header in ffi.h ffi/ffi.h
16173 do
16174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16179   echo $ECHO_N "(cached) $ECHO_C" >&6
16180 fi
16181 ac_res=`eval echo '${'$as_ac_Header'}'`
16182                { echo "$as_me:$LINENO: result: $ac_res" >&5
16183 echo "${ECHO_T}$ac_res" >&6; }
16184 else
16185   # Is the header compilable?
16186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h.  */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h.  */
16194 $ac_includes_default
16195 #include <$ac_header>
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204   (eval "$ac_compile") 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16212   { (case "(($ac_try" in
16213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214   *) ac_try_echo=$ac_try;;
16215 esac
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217   (eval "$ac_try") 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; } &&
16221          { ac_try='test -s conftest.$ac_objext'
16222   { (case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_try") 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; }; then
16231   ac_header_compiler=yes
16232 else
16233   echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236         ac_header_compiler=no
16237 fi
16238
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16241 echo "${ECHO_T}$ac_header_compiler" >&6; }
16242
16243 # Is the header present?
16244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252 #include <$ac_header>
16253 _ACEOF
16254 if { (ac_try="$ac_cpp conftest.$ac_ext"
16255 case "(($ac_try" in
16256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257   *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16261   ac_status=$?
16262   grep -v '^ *+' conftest.er1 >conftest.err
16263   rm -f conftest.er1
16264   cat conftest.err >&5
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } >/dev/null; then
16267   if test -s conftest.err; then
16268     ac_cpp_err=$ac_c_preproc_warn_flag
16269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16270   else
16271     ac_cpp_err=
16272   fi
16273 else
16274   ac_cpp_err=yes
16275 fi
16276 if test -z "$ac_cpp_err"; then
16277   ac_header_preproc=yes
16278 else
16279   echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282   ac_header_preproc=no
16283 fi
16284
16285 rm -f conftest.err conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16287 echo "${ECHO_T}$ac_header_preproc" >&6; }
16288
16289 # So?  What about this header?
16290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16291   yes:no: )
16292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16296     ac_header_preproc=yes
16297     ;;
16298   no:yes:* )
16299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16311     ( cat <<\_ASBOX
16312 ## ------------------------------ ##
16313 ## Report this to bugs@yourdomain ##
16314 ## ------------------------------ ##
16315 _ASBOX
16316      ) | sed "s/^/$as_me: WARNING:     /" >&2
16317     ;;
16318 esac
16319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16322   echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324   eval "$as_ac_Header=\$ac_header_preproc"
16325 fi
16326 ac_res=`eval echo '${'$as_ac_Header'}'`
16327                { echo "$as_me:$LINENO: result: $ac_res" >&5
16328 echo "${ECHO_T}$ac_res" >&6; }
16329
16330 fi
16331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16332   cat >>confdefs.h <<_ACEOF
16333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16334 _ACEOF
16335
16336 fi
16337
16338 done
16339
16340 fi
16341
16342
16343 for ac_header in CrashReporterClient.h
16344 do
16345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350   echo $ECHO_N "(cached) $ECHO_C" >&6
16351 fi
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353                { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16355 else
16356   # Is the header compilable?
16357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 $ac_includes_default
16366 #include <$ac_header>
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375   (eval "$ac_compile") 2>conftest.er1
16376   ac_status=$?
16377   grep -v '^ *+' conftest.er1 >conftest.err
16378   rm -f conftest.er1
16379   cat conftest.err >&5
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } &&
16382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383   { (case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_try") 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_try") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   ac_header_compiler=yes
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407         ac_header_compiler=no
16408 fi
16409
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16412 echo "${ECHO_T}$ac_header_compiler" >&6; }
16413
16414 # Is the header present?
16415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423 #include <$ac_header>
16424 _ACEOF
16425 if { (ac_try="$ac_cpp conftest.$ac_ext"
16426 case "(($ac_try" in
16427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428   *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16432   ac_status=$?
16433   grep -v '^ *+' conftest.er1 >conftest.err
16434   rm -f conftest.er1
16435   cat conftest.err >&5
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } >/dev/null; then
16438   if test -s conftest.err; then
16439     ac_cpp_err=$ac_c_preproc_warn_flag
16440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16441   else
16442     ac_cpp_err=
16443   fi
16444 else
16445   ac_cpp_err=yes
16446 fi
16447 if test -z "$ac_cpp_err"; then
16448   ac_header_preproc=yes
16449 else
16450   echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16452
16453   ac_header_preproc=no
16454 fi
16455
16456 rm -f conftest.err conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458 echo "${ECHO_T}$ac_header_preproc" >&6; }
16459
16460 # So?  What about this header?
16461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16462   yes:no: )
16463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467     ac_header_preproc=yes
16468     ;;
16469   no:yes:* )
16470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16482     ( cat <<\_ASBOX
16483 ## ------------------------------ ##
16484 ## Report this to bugs@yourdomain ##
16485 ## ------------------------------ ##
16486 _ASBOX
16487      ) | sed "s/^/$as_me: WARNING:     /" >&2
16488     ;;
16489 esac
16490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   eval "$as_ac_Header=\$ac_header_preproc"
16496 fi
16497 ac_res=`eval echo '${'$as_ac_Header'}'`
16498                { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16500
16501 fi
16502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16503   cat >>confdefs.h <<_ACEOF
16504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16505 _ACEOF
16506
16507 fi
16508
16509 done
16510
16511
16512 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16513 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 extern const char *__crashreporter_info__;
16521       int main() {
16522         __crashreporter_info__ = "test";
16523         return 0;
16524       }
16525
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531   *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534   (eval "$ac_link") 2>conftest.er1
16535   ac_status=$?
16536   grep -v '^ *+' conftest.er1 >conftest.err
16537   rm -f conftest.er1
16538   cat conftest.err >&5
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); } &&
16541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542   { (case "(($ac_try" in
16543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544   *) ac_try_echo=$ac_try;;
16545 esac
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547   (eval "$ac_try") 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); }; } &&
16551          { ac_try='test -s conftest$ac_exeext'
16552   { (case "(($ac_try" in
16553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554   *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557   (eval "$ac_try") 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; }; then
16561   { echo "$as_me:$LINENO: result: yes" >&5
16562 echo "${ECHO_T}yes" >&6; }
16563
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_CRASHREPORTER_INFO 1
16566 _ACEOF
16567
16568 else
16569   echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16571
16572         { echo "$as_me:$LINENO: result: no" >&5
16573 echo "${ECHO_T}no" >&6; }
16574
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_CRASHREPORTER_INFO 0
16577 _ACEOF
16578
16579 fi
16580
16581 rm -f core conftest.err conftest.$ac_objext \
16582       conftest$ac_exeext conftest.$ac_ext
16583
16584
16585
16586
16587   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16588 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16589 if test "${ac_cv_huge_val_sanity+set}" = set; then
16590   echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592
16593     ac_ext=cpp
16594 ac_cpp='$CXXCPP $CPPFLAGS'
16595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16598
16599     ac_save_CXXFLAGS=$CXXFLAGS
16600     CXXFLAGS="$CXXFLAGS -pedantic"
16601     if test "$cross_compiling" = yes; then
16602   ac_cv_huge_val_sanity=yes
16603 else
16604   cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610 #include <math.h>
16611 int
16612 main ()
16613 {
16614 double x = HUGE_VAL; return x != x;
16615   ;
16616   return 0;
16617 }
16618 _ACEOF
16619 rm -f conftest$ac_exeext
16620 if { (ac_try="$ac_link"
16621 case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_link") 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16630   { (case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_try") 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; }; then
16639   ac_cv_huge_val_sanity=yes
16640 else
16641   echo "$as_me: program exited with status $ac_status" >&5
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16644
16645 ( exit $ac_status )
16646 ac_cv_huge_val_sanity=no
16647 fi
16648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16649 fi
16650
16651
16652     CXXFLAGS=$ac_save_CXXFLAGS
16653     ac_ext=c
16654 ac_cpp='$CPP $CPPFLAGS'
16655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16658
16659
16660 fi
16661 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16662 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16663   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16664
16665
16666 { echo "$as_me:$LINENO: checking for pid_t" >&5
16667 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16668 if test "${ac_cv_type_pid_t+set}" = set; then
16669   echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671   cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h.  */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h.  */
16677 $ac_includes_default
16678 typedef pid_t ac__type_new_;
16679 int
16680 main ()
16681 {
16682 if ((ac__type_new_ *) 0)
16683   return 0;
16684 if (sizeof (ac__type_new_))
16685   return 0;
16686   ;
16687   return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_compile") 2>conftest.er1
16698   ac_status=$?
16699   grep -v '^ *+' conftest.er1 >conftest.err
16700   rm -f conftest.er1
16701   cat conftest.err >&5
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } &&
16704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705   { (case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_try") 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; } &&
16714          { ac_try='test -s conftest.$ac_objext'
16715   { (case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_try") 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; }; then
16724   ac_cv_type_pid_t=yes
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729         ac_cv_type_pid_t=no
16730 fi
16731
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 fi
16734 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16735 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16736 if test $ac_cv_type_pid_t = yes; then
16737   :
16738 else
16739
16740 cat >>confdefs.h <<_ACEOF
16741 #define pid_t int
16742 _ACEOF
16743
16744 fi
16745
16746 { echo "$as_me:$LINENO: checking for size_t" >&5
16747 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16748 if test "${ac_cv_type_size_t+set}" = set; then
16749   echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751   cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h.  */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h.  */
16757 $ac_includes_default
16758 typedef size_t ac__type_new_;
16759 int
16760 main ()
16761 {
16762 if ((ac__type_new_ *) 0)
16763   return 0;
16764 if (sizeof (ac__type_new_))
16765   return 0;
16766   ;
16767   return 0;
16768 }
16769 _ACEOF
16770 rm -f conftest.$ac_objext
16771 if { (ac_try="$ac_compile"
16772 case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_compile") 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } &&
16784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16794          { ac_try='test -s conftest.$ac_objext'
16795   { (case "(($ac_try" in
16796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797   *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800   (eval "$ac_try") 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; }; then
16804   ac_cv_type_size_t=yes
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809         ac_cv_type_size_t=no
16810 fi
16811
16812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813 fi
16814 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16815 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16816 if test $ac_cv_type_size_t = yes; then
16817   :
16818 else
16819
16820 cat >>confdefs.h <<_ACEOF
16821 #define size_t unsigned int
16822 _ACEOF
16823
16824 fi
16825
16826
16827 cat >>confdefs.h <<_ACEOF
16828 #define RETSIGTYPE void
16829 _ACEOF
16830
16831 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16832 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16833 if test "${ac_cv_struct_tm+set}" = set; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836   cat >conftest.$ac_ext <<_ACEOF
16837 /* confdefs.h.  */
16838 _ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h.  */
16842 #include <sys/types.h>
16843 #include <time.h>
16844
16845 int
16846 main ()
16847 {
16848 struct tm *tp; tp->tm_sec;
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 rm -f conftest.$ac_objext
16854 if { (ac_try="$ac_compile"
16855 case "(($ac_try" in
16856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857   *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860   (eval "$ac_compile") 2>conftest.er1
16861   ac_status=$?
16862   grep -v '^ *+' conftest.er1 >conftest.err
16863   rm -f conftest.er1
16864   cat conftest.err >&5
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } &&
16867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16868   { (case "(($ac_try" in
16869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870   *) ac_try_echo=$ac_try;;
16871 esac
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873   (eval "$ac_try") 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; } &&
16877          { ac_try='test -s conftest.$ac_objext'
16878   { (case "(($ac_try" in
16879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880   *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883   (eval "$ac_try") 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; }; then
16887   ac_cv_struct_tm=time.h
16888 else
16889   echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892         ac_cv_struct_tm=sys/time.h
16893 fi
16894
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 fi
16897 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16898 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16899 if test $ac_cv_struct_tm = sys/time.h; then
16900
16901 cat >>confdefs.h <<\_ACEOF
16902 #define TM_IN_SYS_TIME 1
16903 _ACEOF
16904
16905 fi
16906
16907 { echo "$as_me:$LINENO: checking for int64_t" >&5
16908 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16909 if test "${ac_cv_type_int64_t+set}" = set; then
16910   echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912   cat >conftest.$ac_ext <<_ACEOF
16913 /* confdefs.h.  */
16914 _ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h.  */
16918 $ac_includes_default
16919 typedef int64_t ac__type_new_;
16920 int
16921 main ()
16922 {
16923 if ((ac__type_new_ *) 0)
16924   return 0;
16925 if (sizeof (ac__type_new_))
16926   return 0;
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (ac_try="$ac_compile"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_compile") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946   { (case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951   (eval "$ac_try") 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; } &&
16955          { ac_try='test -s conftest.$ac_objext'
16956   { (case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_try") 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; }; then
16965   ac_cv_type_int64_t=yes
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970         ac_cv_type_int64_t=no
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 fi
16975 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16976 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16977 if test $ac_cv_type_int64_t = yes; then
16978
16979 cat >>confdefs.h <<_ACEOF
16980 #define HAVE_INT64_T 1
16981 _ACEOF
16982
16983
16984 else
16985   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16986 echo "$as_me: error: Type int64_t required but not found" >&2;}
16987    { (exit 1); exit 1; }; }
16988 fi
16989
16990 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16991 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16992 if test "${ac_cv_type_uint64_t+set}" = set; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995   cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001 $ac_includes_default
17002 typedef uint64_t ac__type_new_;
17003 int
17004 main ()
17005 {
17006 if ((ac__type_new_ *) 0)
17007   return 0;
17008 if (sizeof (ac__type_new_))
17009   return 0;
17010   ;
17011   return 0;
17012 }
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (ac_try="$ac_compile"
17016 case "(($ac_try" in
17017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018   *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021   (eval "$ac_compile") 2>conftest.er1
17022   ac_status=$?
17023   grep -v '^ *+' conftest.er1 >conftest.err
17024   rm -f conftest.er1
17025   cat conftest.err >&5
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); } &&
17028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17029   { (case "(($ac_try" in
17030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031   *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034   (eval "$ac_try") 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); }; } &&
17038          { ac_try='test -s conftest.$ac_objext'
17039   { (case "(($ac_try" in
17040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041   *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044   (eval "$ac_try") 2>&5
17045   ac_status=$?
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); }; }; then
17048   ac_cv_type_uint64_t=yes
17049 else
17050   echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053         ac_cv_type_uint64_t=no
17054 fi
17055
17056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057 fi
17058 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17059 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17060 if test $ac_cv_type_uint64_t = yes; then
17061
17062 cat >>confdefs.h <<_ACEOF
17063 #define HAVE_UINT64_T 1
17064 _ACEOF
17065
17066
17067 else
17068   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17069 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17070 if test "${ac_cv_type_u_int64_t+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079 $ac_includes_default
17080 typedef u_int64_t ac__type_new_;
17081 int
17082 main ()
17083 {
17084 if ((ac__type_new_ *) 0)
17085   return 0;
17086 if (sizeof (ac__type_new_))
17087   return 0;
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext
17093 if { (ac_try="$ac_compile"
17094 case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_compile") 2>conftest.er1
17100   ac_status=$?
17101   grep -v '^ *+' conftest.er1 >conftest.err
17102   rm -f conftest.er1
17103   cat conftest.err >&5
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); } &&
17106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17107   { (case "(($ac_try" in
17108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109   *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112   (eval "$ac_try") 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); }; } &&
17116          { ac_try='test -s conftest.$ac_objext'
17117   { (case "(($ac_try" in
17118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119   *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122   (eval "$ac_try") 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; }; then
17126   ac_cv_type_u_int64_t=yes
17127 else
17128   echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131         ac_cv_type_u_int64_t=no
17132 fi
17133
17134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17135 fi
17136 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17137 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17138 if test $ac_cv_type_u_int64_t = yes; then
17139
17140 cat >>confdefs.h <<_ACEOF
17141 #define HAVE_U_INT64_T 1
17142 _ACEOF
17143
17144
17145 else
17146   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17147 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17148    { (exit 1); exit 1; }; }
17149 fi
17150
17151 fi
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
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 powf fmodf strtof round
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
17389 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17390 do
17391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17405 #define $ac_func innocuous_$ac_func
17406
17407 /* System header to define __stub macros and hopefully few prototypes,
17408     which can conflict with char $ac_func (); below.
17409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17410     <limits.h> exists even on freestanding compilers.  */
17411
17412 #ifdef __STDC__
17413 # include <limits.h>
17414 #else
17415 # include <assert.h>
17416 #endif
17417
17418 #undef $ac_func
17419
17420 /* Override any GCC internal prototype to avoid an error.
17421    Use char because int might match the return type of a GCC
17422    builtin and then its argument prototype would still apply.  */
17423 #ifdef __cplusplus
17424 extern "C"
17425 #endif
17426 char $ac_func ();
17427 /* The GNU C library defines this for functions which it implements
17428     to always fail with ENOSYS.  Some functions are actually named
17429     something starting with __ and the normal name is an alias.  */
17430 #if defined __stub_$ac_func || defined __stub___$ac_func
17431 choke me
17432 #endif
17433
17434 int
17435 main ()
17436 {
17437 return $ac_func ();
17438   ;
17439   return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446   *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449   (eval "$ac_link") 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } &&
17456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17457   { (case "(($ac_try" in
17458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459   *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462   (eval "$ac_try") 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; } &&
17466          { ac_try='test -s conftest$ac_exeext'
17467   { (case "(($ac_try" in
17468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469   *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472   (eval "$ac_try") 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476   eval "$as_ac_var=yes"
17477 else
17478   echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481         eval "$as_ac_var=no"
17482 fi
17483
17484 rm -f core conftest.err conftest.$ac_objext \
17485       conftest$ac_exeext conftest.$ac_ext
17486 fi
17487 ac_res=`eval echo '${'$as_ac_var'}'`
17488                { echo "$as_me:$LINENO: result: $ac_res" >&5
17489 echo "${ECHO_T}$ac_res" >&6; }
17490 if test `eval echo '${'$as_ac_var'}'` = yes; then
17491   cat >>confdefs.h <<_ACEOF
17492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17493 _ACEOF
17494
17495 fi
17496 done
17497
17498
17499
17500
17501 for ac_func in isatty mkdtemp mkstemp
17502 do
17503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509   cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17517 #define $ac_func innocuous_$ac_func
17518
17519 /* System header to define __stub macros and hopefully few prototypes,
17520     which can conflict with char $ac_func (); below.
17521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17522     <limits.h> exists even on freestanding compilers.  */
17523
17524 #ifdef __STDC__
17525 # include <limits.h>
17526 #else
17527 # include <assert.h>
17528 #endif
17529
17530 #undef $ac_func
17531
17532 /* Override any GCC internal prototype to avoid an error.
17533    Use char because int might match the return type of a GCC
17534    builtin and then its argument prototype would still apply.  */
17535 #ifdef __cplusplus
17536 extern "C"
17537 #endif
17538 char $ac_func ();
17539 /* The GNU C library defines this for functions which it implements
17540     to always fail with ENOSYS.  Some functions are actually named
17541     something starting with __ and the normal name is an alias.  */
17542 #if defined __stub_$ac_func || defined __stub___$ac_func
17543 choke me
17544 #endif
17545
17546 int
17547 main ()
17548 {
17549 return $ac_func ();
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (ac_try="$ac_link"
17556 case "(($ac_try" in
17557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558   *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561   (eval "$ac_link") 2>conftest.er1
17562   ac_status=$?
17563   grep -v '^ *+' conftest.er1 >conftest.err
17564   rm -f conftest.er1
17565   cat conftest.err >&5
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); } &&
17568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17569   { (case "(($ac_try" in
17570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571   *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574   (eval "$ac_try") 2>&5
17575   ac_status=$?
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); }; } &&
17578          { ac_try='test -s conftest$ac_exeext'
17579   { (case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_try") 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; }; then
17588   eval "$as_ac_var=yes"
17589 else
17590   echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593         eval "$as_ac_var=no"
17594 fi
17595
17596 rm -f core conftest.err conftest.$ac_objext \
17597       conftest$ac_exeext conftest.$ac_ext
17598 fi
17599 ac_res=`eval echo '${'$as_ac_var'}'`
17600                { echo "$as_me:$LINENO: result: $ac_res" >&5
17601 echo "${ECHO_T}$ac_res" >&6; }
17602 if test `eval echo '${'$as_ac_var'}'` = yes; then
17603   cat >>confdefs.h <<_ACEOF
17604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17605 _ACEOF
17606
17607 fi
17608 done
17609
17610
17611
17612
17613
17614
17615
17616 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17617 do
17618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17632 #define $ac_func innocuous_$ac_func
17633
17634 /* System header to define __stub macros and hopefully few prototypes,
17635     which can conflict with char $ac_func (); below.
17636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17637     <limits.h> exists even on freestanding compilers.  */
17638
17639 #ifdef __STDC__
17640 # include <limits.h>
17641 #else
17642 # include <assert.h>
17643 #endif
17644
17645 #undef $ac_func
17646
17647 /* Override any GCC internal prototype to avoid an error.
17648    Use char because int might match the return type of a GCC
17649    builtin and then its argument prototype would still apply.  */
17650 #ifdef __cplusplus
17651 extern "C"
17652 #endif
17653 char $ac_func ();
17654 /* The GNU C library defines this for functions which it implements
17655     to always fail with ENOSYS.  Some functions are actually named
17656     something starting with __ and the normal name is an alias.  */
17657 #if defined __stub_$ac_func || defined __stub___$ac_func
17658 choke me
17659 #endif
17660
17661 int
17662 main ()
17663 {
17664 return $ac_func ();
17665   ;
17666   return 0;
17667 }
17668 _ACEOF
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (ac_try="$ac_link"
17671 case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_link") 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } &&
17683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17684   { (case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689   (eval "$ac_try") 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; } &&
17693          { ac_try='test -s conftest$ac_exeext'
17694   { (case "(($ac_try" in
17695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696   *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699   (eval "$ac_try") 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; }; then
17703   eval "$as_ac_var=yes"
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708         eval "$as_ac_var=no"
17709 fi
17710
17711 rm -f core conftest.err conftest.$ac_objext \
17712       conftest$ac_exeext conftest.$ac_ext
17713 fi
17714 ac_res=`eval echo '${'$as_ac_var'}'`
17715                { echo "$as_me:$LINENO: result: $ac_res" >&5
17716 echo "${ECHO_T}$ac_res" >&6; }
17717 if test `eval echo '${'$as_ac_var'}'` = yes; then
17718   cat >>confdefs.h <<_ACEOF
17719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17720 _ACEOF
17721
17722 fi
17723 done
17724
17725
17726
17727
17728 for ac_func in strerror strerror_r setenv
17729 do
17730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17734   echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736   cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h.  */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h.  */
17742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17744 #define $ac_func innocuous_$ac_func
17745
17746 /* System header to define __stub macros and hopefully few prototypes,
17747     which can conflict with char $ac_func (); below.
17748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17749     <limits.h> exists even on freestanding compilers.  */
17750
17751 #ifdef __STDC__
17752 # include <limits.h>
17753 #else
17754 # include <assert.h>
17755 #endif
17756
17757 #undef $ac_func
17758
17759 /* Override any GCC internal prototype to avoid an error.
17760    Use char because int might match the return type of a GCC
17761    builtin and then its argument prototype would still apply.  */
17762 #ifdef __cplusplus
17763 extern "C"
17764 #endif
17765 char $ac_func ();
17766 /* The GNU C library defines this for functions which it implements
17767     to always fail with ENOSYS.  Some functions are actually named
17768     something starting with __ and the normal name is an alias.  */
17769 #if defined __stub_$ac_func || defined __stub___$ac_func
17770 choke me
17771 #endif
17772
17773 int
17774 main ()
17775 {
17776 return $ac_func ();
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (ac_try="$ac_link"
17783 case "(($ac_try" in
17784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785   *) ac_try_echo=$ac_try;;
17786 esac
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788   (eval "$ac_link") 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } &&
17795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796   { (case "(($ac_try" in
17797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798   *) ac_try_echo=$ac_try;;
17799 esac
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801   (eval "$ac_try") 2>&5
17802   ac_status=$?
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); }; } &&
17805          { ac_try='test -s conftest$ac_exeext'
17806   { (case "(($ac_try" in
17807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808   *) ac_try_echo=$ac_try;;
17809 esac
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811   (eval "$ac_try") 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; }; then
17815   eval "$as_ac_var=yes"
17816 else
17817   echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17819
17820         eval "$as_ac_var=no"
17821 fi
17822
17823 rm -f core conftest.err conftest.$ac_objext \
17824       conftest$ac_exeext conftest.$ac_ext
17825 fi
17826 ac_res=`eval echo '${'$as_ac_var'}'`
17827                { echo "$as_me:$LINENO: result: $ac_res" >&5
17828 echo "${ECHO_T}$ac_res" >&6; }
17829 if test `eval echo '${'$as_ac_var'}'` = yes; then
17830   cat >>confdefs.h <<_ACEOF
17831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17832 _ACEOF
17833
17834 fi
17835 done
17836
17837
17838
17839
17840
17841 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17842 do
17843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17847   echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849   cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17857 #define $ac_func innocuous_$ac_func
17858
17859 /* System header to define __stub macros and hopefully few prototypes,
17860     which can conflict with char $ac_func (); below.
17861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17862     <limits.h> exists even on freestanding compilers.  */
17863
17864 #ifdef __STDC__
17865 # include <limits.h>
17866 #else
17867 # include <assert.h>
17868 #endif
17869
17870 #undef $ac_func
17871
17872 /* Override any GCC internal prototype to avoid an error.
17873    Use char because int might match the return type of a GCC
17874    builtin and then its argument prototype would still apply.  */
17875 #ifdef __cplusplus
17876 extern "C"
17877 #endif
17878 char $ac_func ();
17879 /* The GNU C library defines this for functions which it implements
17880     to always fail with ENOSYS.  Some functions are actually named
17881     something starting with __ and the normal name is an alias.  */
17882 #if defined __stub_$ac_func || defined __stub___$ac_func
17883 choke me
17884 #endif
17885
17886 int
17887 main ()
17888 {
17889 return $ac_func ();
17890   ;
17891   return 0;
17892 }
17893 _ACEOF
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (ac_try="$ac_link"
17896 case "(($ac_try" in
17897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898   *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901   (eval "$ac_link") 2>conftest.er1
17902   ac_status=$?
17903   grep -v '^ *+' conftest.er1 >conftest.err
17904   rm -f conftest.er1
17905   cat conftest.err >&5
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); } &&
17908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909   { (case "(($ac_try" in
17910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911   *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914   (eval "$ac_try") 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; } &&
17918          { ac_try='test -s conftest$ac_exeext'
17919   { (case "(($ac_try" in
17920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921   *) ac_try_echo=$ac_try;;
17922 esac
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924   (eval "$ac_try") 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; }; then
17928   eval "$as_ac_var=yes"
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933         eval "$as_ac_var=no"
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext \
17937       conftest$ac_exeext conftest.$ac_ext
17938 fi
17939 ac_res=`eval echo '${'$as_ac_var'}'`
17940                { echo "$as_me:$LINENO: result: $ac_res" >&5
17941 echo "${ECHO_T}$ac_res" >&6; }
17942 if test `eval echo '${'$as_ac_var'}'` = yes; then
17943   cat >>confdefs.h <<_ACEOF
17944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17945 _ACEOF
17946
17947 fi
17948 done
17949
17950
17951
17952
17953
17954
17955 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17956 do
17957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17961   echo $ECHO_N "(cached) $ECHO_C" >&6
17962 else
17963   cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h.  */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h.  */
17969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17971 #define $ac_func innocuous_$ac_func
17972
17973 /* System header to define __stub macros and hopefully few prototypes,
17974     which can conflict with char $ac_func (); below.
17975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976     <limits.h> exists even on freestanding compilers.  */
17977
17978 #ifdef __STDC__
17979 # include <limits.h>
17980 #else
17981 # include <assert.h>
17982 #endif
17983
17984 #undef $ac_func
17985
17986 /* Override any GCC internal prototype to avoid an error.
17987    Use char because int might match the return type of a GCC
17988    builtin and then its argument prototype would still apply.  */
17989 #ifdef __cplusplus
17990 extern "C"
17991 #endif
17992 char $ac_func ();
17993 /* The GNU C library defines this for functions which it implements
17994     to always fail with ENOSYS.  Some functions are actually named
17995     something starting with __ and the normal name is an alias.  */
17996 #if defined __stub_$ac_func || defined __stub___$ac_func
17997 choke me
17998 #endif
17999
18000 int
18001 main ()
18002 {
18003 return $ac_func ();
18004   ;
18005   return 0;
18006 }
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (ac_try="$ac_link"
18010 case "(($ac_try" in
18011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012   *) ac_try_echo=$ac_try;;
18013 esac
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015   (eval "$ac_link") 2>conftest.er1
18016   ac_status=$?
18017   grep -v '^ *+' conftest.er1 >conftest.err
18018   rm -f conftest.er1
18019   cat conftest.err >&5
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); } &&
18022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18023   { (case "(($ac_try" in
18024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025   *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028   (eval "$ac_try") 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; } &&
18032          { ac_try='test -s conftest$ac_exeext'
18033   { (case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038   (eval "$ac_try") 2>&5
18039   ac_status=$?
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); }; }; then
18042   eval "$as_ac_var=yes"
18043 else
18044   echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047         eval "$as_ac_var=no"
18048 fi
18049
18050 rm -f core conftest.err conftest.$ac_objext \
18051       conftest$ac_exeext conftest.$ac_ext
18052 fi
18053 ac_res=`eval echo '${'$as_ac_var'}'`
18054                { echo "$as_me:$LINENO: result: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18056 if test `eval echo '${'$as_ac_var'}'` = yes; then
18057   cat >>confdefs.h <<_ACEOF
18058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18059 _ACEOF
18060
18061 fi
18062 done
18063
18064 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18065 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18066 if test "${llvm_cv_c_printf_a+set}" = set; then
18067   echo $ECHO_N "(cached) $ECHO_C" >&6
18068 else
18069   ac_ext=c
18070 ac_cpp='$CPP $CPPFLAGS'
18071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18074
18075  if test "$cross_compiling" = yes; then
18076   llvmac_cv_c_printf_a=no
18077 else
18078   cat >conftest.$ac_ext <<_ACEOF
18079
18080   /* confdefs.h.  */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h.  */
18085
18086 #include <stdio.h>
18087 #include <stdlib.h>
18088
18089 int
18090 main ()
18091 {
18092
18093 volatile double A, B;
18094 char Buffer[100];
18095 A = 1;
18096 A /= 10.0;
18097 sprintf(Buffer, "%a", A);
18098 B = atof(Buffer);
18099 if (A != B)
18100   return (1);
18101 if (A != 0x1.999999999999ap-4)
18102   return (1);
18103 return (0);
18104   ;
18105   return 0;
18106 }
18107 _ACEOF
18108 rm -f conftest$ac_exeext
18109 if { (ac_try="$ac_link"
18110 case "(($ac_try" in
18111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112   *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115   (eval "$ac_link") 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18119   { (case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_try") 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; }; then
18128   llvm_cv_c_printf_a=yes
18129 else
18130   echo "$as_me: program exited with status $ac_status" >&5
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134 ( exit $ac_status )
18135 llvmac_cv_c_printf_a=no
18136 fi
18137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18138 fi
18139
18140
18141  ac_ext=c
18142 ac_cpp='$CPP $CPPFLAGS'
18143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18146
18147 fi
18148 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18149 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18150  if test "$llvm_cv_c_printf_a" = "yes"; then
18151
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE_PRINTF_A 1
18154 _ACEOF
18155
18156  fi
18157
18158
18159 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18160 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18161 if test "${ac_cv_func_rand48+set}" = set; then
18162   echo $ECHO_N "(cached) $ECHO_C" >&6
18163 else
18164   ac_ext=cpp
18165 ac_cpp='$CXXCPP $CPPFLAGS'
18166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18169
18170    cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176 #include <stdlib.h>
18177 int
18178 main ()
18179 {
18180 srand48(0);lrand48();drand48();
18181   ;
18182   return 0;
18183 }
18184 _ACEOF
18185 rm -f conftest.$ac_objext
18186 if { (ac_try="$ac_compile"
18187 case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_compile") 2>conftest.er1
18193   ac_status=$?
18194   grep -v '^ *+' conftest.er1 >conftest.err
18195   rm -f conftest.er1
18196   cat conftest.err >&5
18197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); } &&
18199          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18200   { (case "(($ac_try" in
18201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202   *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205   (eval "$ac_try") 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); }; } &&
18209          { ac_try='test -s conftest.$ac_objext'
18210   { (case "(($ac_try" in
18211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212   *) ac_try_echo=$ac_try;;
18213 esac
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215   (eval "$ac_try") 2>&5
18216   ac_status=$?
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); }; }; then
18219   ac_cv_func_rand48=yes
18220 else
18221   echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18223
18224         ac_cv_func_rand48=no
18225 fi
18226
18227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18228   ac_ext=c
18229 ac_cpp='$CPP $CPPFLAGS'
18230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18233
18234 fi
18235 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18236 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18237
18238 if test "$ac_cv_func_rand48" = "yes" ; then
18239
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_RAND48 1
18242 _ACEOF
18243
18244 fi
18245
18246
18247 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18248 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18249 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252   cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h.  */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h.  */
18258 $ac_includes_default
18259 int
18260 main ()
18261 {
18262 #ifndef strerror_s
18263   char *p = (char *) strerror_s;
18264   return !p;
18265 #endif
18266
18267   ;
18268   return 0;
18269 }
18270 _ACEOF
18271 rm -f conftest.$ac_objext
18272 if { (ac_try="$ac_compile"
18273 case "(($ac_try" in
18274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275   *) ac_try_echo=$ac_try;;
18276 esac
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278   (eval "$ac_compile") 2>conftest.er1
18279   ac_status=$?
18280   grep -v '^ *+' conftest.er1 >conftest.err
18281   rm -f conftest.er1
18282   cat conftest.err >&5
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); } &&
18285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18286   { (case "(($ac_try" in
18287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288   *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291   (eval "$ac_try") 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); }; } &&
18295          { ac_try='test -s conftest.$ac_objext'
18296   { (case "(($ac_try" in
18297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298   *) ac_try_echo=$ac_try;;
18299 esac
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301   (eval "$ac_try") 2>&5
18302   ac_status=$?
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); }; }; then
18305   ac_cv_have_decl_strerror_s=yes
18306 else
18307   echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18309
18310         ac_cv_have_decl_strerror_s=no
18311 fi
18312
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18314 fi
18315 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18316 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18317 if test $ac_cv_have_decl_strerror_s = yes; then
18318
18319 cat >>confdefs.h <<_ACEOF
18320 #define HAVE_DECL_STRERROR_S 1
18321 _ACEOF
18322
18323
18324 else
18325   cat >>confdefs.h <<_ACEOF
18326 #define HAVE_DECL_STRERROR_S 0
18327 _ACEOF
18328
18329
18330 fi
18331
18332
18333
18334 if test "$llvm_cv_os_type" = "MingW" ; then
18335   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18336 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18337 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340   ac_check_lib_save_LIBS=$LIBS
18341 LIBS="-lgcc  $LIBS"
18342 cat >conftest.$ac_ext <<_ACEOF
18343 /* confdefs.h.  */
18344 _ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h.  */
18348
18349 /* Override any GCC internal prototype to avoid an error.
18350    Use char because int might match the return type of a GCC
18351    builtin and then its argument prototype would still apply.  */
18352 #ifdef __cplusplus
18353 extern "C"
18354 #endif
18355 char _alloca ();
18356 int
18357 main ()
18358 {
18359 return _alloca ();
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest.$ac_objext conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371   (eval "$ac_link") 2>conftest.er1
18372   ac_status=$?
18373   grep -v '^ *+' conftest.er1 >conftest.err
18374   rm -f conftest.er1
18375   cat conftest.err >&5
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); } &&
18378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18379   { (case "(($ac_try" in
18380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381   *) ac_try_echo=$ac_try;;
18382 esac
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384   (eval "$ac_try") 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); }; } &&
18388          { ac_try='test -s conftest$ac_exeext'
18389   { (case "(($ac_try" in
18390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391   *) ac_try_echo=$ac_try;;
18392 esac
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394   (eval "$ac_try") 2>&5
18395   ac_status=$?
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); }; }; then
18398   ac_cv_lib_gcc__alloca=yes
18399 else
18400   echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18402
18403         ac_cv_lib_gcc__alloca=no
18404 fi
18405
18406 rm -f core conftest.err conftest.$ac_objext \
18407       conftest$ac_exeext conftest.$ac_ext
18408 LIBS=$ac_check_lib_save_LIBS
18409 fi
18410 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18411 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18412 if test $ac_cv_lib_gcc__alloca = yes; then
18413
18414 cat >>confdefs.h <<\_ACEOF
18415 #define HAVE__ALLOCA 1
18416 _ACEOF
18417
18418 fi
18419
18420   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18421 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18422 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18423   echo $ECHO_N "(cached) $ECHO_C" >&6
18424 else
18425   ac_check_lib_save_LIBS=$LIBS
18426 LIBS="-lgcc  $LIBS"
18427 cat >conftest.$ac_ext <<_ACEOF
18428 /* confdefs.h.  */
18429 _ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h.  */
18433
18434 /* Override any GCC internal prototype to avoid an error.
18435    Use char because int might match the return type of a GCC
18436    builtin and then its argument prototype would still apply.  */
18437 #ifdef __cplusplus
18438 extern "C"
18439 #endif
18440 char __alloca ();
18441 int
18442 main ()
18443 {
18444 return __alloca ();
18445   ;
18446   return 0;
18447 }
18448 _ACEOF
18449 rm -f conftest.$ac_objext conftest$ac_exeext
18450 if { (ac_try="$ac_link"
18451 case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456   (eval "$ac_link") 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } &&
18463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18464   { (case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469   (eval "$ac_try") 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; } &&
18473          { ac_try='test -s conftest$ac_exeext'
18474   { (case "(($ac_try" in
18475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476   *) ac_try_echo=$ac_try;;
18477 esac
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479   (eval "$ac_try") 2>&5
18480   ac_status=$?
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); }; }; then
18483   ac_cv_lib_gcc___alloca=yes
18484 else
18485   echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18487
18488         ac_cv_lib_gcc___alloca=no
18489 fi
18490
18491 rm -f core conftest.err conftest.$ac_objext \
18492       conftest$ac_exeext conftest.$ac_ext
18493 LIBS=$ac_check_lib_save_LIBS
18494 fi
18495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18496 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18497 if test $ac_cv_lib_gcc___alloca = yes; then
18498
18499 cat >>confdefs.h <<\_ACEOF
18500 #define HAVE___ALLOCA 1
18501 _ACEOF
18502
18503 fi
18504
18505   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18506 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18507 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18508   echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510   ac_check_lib_save_LIBS=$LIBS
18511 LIBS="-lgcc  $LIBS"
18512 cat >conftest.$ac_ext <<_ACEOF
18513 /* confdefs.h.  */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h.  */
18518
18519 /* Override any GCC internal prototype to avoid an error.
18520    Use char because int might match the return type of a GCC
18521    builtin and then its argument prototype would still apply.  */
18522 #ifdef __cplusplus
18523 extern "C"
18524 #endif
18525 char __chkstk ();
18526 int
18527 main ()
18528 {
18529 return __chkstk ();
18530   ;
18531   return 0;
18532 }
18533 _ACEOF
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (ac_try="$ac_link"
18536 case "(($ac_try" in
18537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538   *) ac_try_echo=$ac_try;;
18539 esac
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541   (eval "$ac_link") 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } &&
18548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18549   { (case "(($ac_try" in
18550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551   *) ac_try_echo=$ac_try;;
18552 esac
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554   (eval "$ac_try") 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); }; } &&
18558          { ac_try='test -s conftest$ac_exeext'
18559   { (case "(($ac_try" in
18560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561   *) ac_try_echo=$ac_try;;
18562 esac
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564   (eval "$ac_try") 2>&5
18565   ac_status=$?
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); }; }; then
18568   ac_cv_lib_gcc___chkstk=yes
18569 else
18570   echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18572
18573         ac_cv_lib_gcc___chkstk=no
18574 fi
18575
18576 rm -f core conftest.err conftest.$ac_objext \
18577       conftest$ac_exeext conftest.$ac_ext
18578 LIBS=$ac_check_lib_save_LIBS
18579 fi
18580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18581 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18582 if test $ac_cv_lib_gcc___chkstk = yes; then
18583
18584 cat >>confdefs.h <<\_ACEOF
18585 #define HAVE___CHKSTK 1
18586 _ACEOF
18587
18588 fi
18589
18590   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18591 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18592 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595   ac_check_lib_save_LIBS=$LIBS
18596 LIBS="-lgcc  $LIBS"
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h.  */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h.  */
18603
18604 /* Override any GCC internal prototype to avoid an error.
18605    Use char because int might match the return type of a GCC
18606    builtin and then its argument prototype would still apply.  */
18607 #ifdef __cplusplus
18608 extern "C"
18609 #endif
18610 char ___chkstk ();
18611 int
18612 main ()
18613 {
18614 return ___chkstk ();
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623   *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626   (eval "$ac_link") 2>conftest.er1
18627   ac_status=$?
18628   grep -v '^ *+' conftest.er1 >conftest.err
18629   rm -f conftest.er1
18630   cat conftest.err >&5
18631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632   (exit $ac_status); } &&
18633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18634   { (case "(($ac_try" in
18635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636   *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639   (eval "$ac_try") 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); }; } &&
18643          { ac_try='test -s conftest$ac_exeext'
18644   { (case "(($ac_try" in
18645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646   *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649   (eval "$ac_try") 2>&5
18650   ac_status=$?
18651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652   (exit $ac_status); }; }; then
18653   ac_cv_lib_gcc____chkstk=yes
18654 else
18655   echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18657
18658         ac_cv_lib_gcc____chkstk=no
18659 fi
18660
18661 rm -f core conftest.err conftest.$ac_objext \
18662       conftest$ac_exeext conftest.$ac_ext
18663 LIBS=$ac_check_lib_save_LIBS
18664 fi
18665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18666 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18667 if test $ac_cv_lib_gcc____chkstk = yes; then
18668
18669 cat >>confdefs.h <<\_ACEOF
18670 #define HAVE____CHKSTK 1
18671 _ACEOF
18672
18673 fi
18674
18675
18676   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18677 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18678 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18679   echo $ECHO_N "(cached) $ECHO_C" >&6
18680 else
18681   ac_check_lib_save_LIBS=$LIBS
18682 LIBS="-lgcc  $LIBS"
18683 cat >conftest.$ac_ext <<_ACEOF
18684 /* confdefs.h.  */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h.  */
18689
18690 /* Override any GCC internal prototype to avoid an error.
18691    Use char because int might match the return type of a GCC
18692    builtin and then its argument prototype would still apply.  */
18693 #ifdef __cplusplus
18694 extern "C"
18695 #endif
18696 char __ashldi3 ();
18697 int
18698 main ()
18699 {
18700 return __ashldi3 ();
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext conftest$ac_exeext
18706 if { (ac_try="$ac_link"
18707 case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_link") 2>conftest.er1
18713   ac_status=$?
18714   grep -v '^ *+' conftest.er1 >conftest.err
18715   rm -f conftest.er1
18716   cat conftest.err >&5
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } &&
18719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18720   { (case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_try") 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; } &&
18729          { ac_try='test -s conftest$ac_exeext'
18730   { (case "(($ac_try" in
18731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732   *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735   (eval "$ac_try") 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; }; then
18739   ac_cv_lib_gcc___ashldi3=yes
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744         ac_cv_lib_gcc___ashldi3=no
18745 fi
18746
18747 rm -f core conftest.err conftest.$ac_objext \
18748       conftest$ac_exeext conftest.$ac_ext
18749 LIBS=$ac_check_lib_save_LIBS
18750 fi
18751 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18752 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18753 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18754
18755 cat >>confdefs.h <<\_ACEOF
18756 #define HAVE___ASHLDI3 1
18757 _ACEOF
18758
18759 fi
18760
18761   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18762 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18763 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766   ac_check_lib_save_LIBS=$LIBS
18767 LIBS="-lgcc  $LIBS"
18768 cat >conftest.$ac_ext <<_ACEOF
18769 /* confdefs.h.  */
18770 _ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h.  */
18774
18775 /* Override any GCC internal prototype to avoid an error.
18776    Use char because int might match the return type of a GCC
18777    builtin and then its argument prototype would still apply.  */
18778 #ifdef __cplusplus
18779 extern "C"
18780 #endif
18781 char __ashrdi3 ();
18782 int
18783 main ()
18784 {
18785 return __ashrdi3 ();
18786   ;
18787   return 0;
18788 }
18789 _ACEOF
18790 rm -f conftest.$ac_objext conftest$ac_exeext
18791 if { (ac_try="$ac_link"
18792 case "(($ac_try" in
18793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794   *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797   (eval "$ac_link") 2>conftest.er1
18798   ac_status=$?
18799   grep -v '^ *+' conftest.er1 >conftest.err
18800   rm -f conftest.er1
18801   cat conftest.err >&5
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); } &&
18804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18805   { (case "(($ac_try" in
18806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807   *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810   (eval "$ac_try") 2>&5
18811   ac_status=$?
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); }; } &&
18814          { ac_try='test -s conftest$ac_exeext'
18815   { (case "(($ac_try" in
18816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817   *) ac_try_echo=$ac_try;;
18818 esac
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820   (eval "$ac_try") 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; }; then
18824   ac_cv_lib_gcc___ashrdi3=yes
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829         ac_cv_lib_gcc___ashrdi3=no
18830 fi
18831
18832 rm -f core conftest.err conftest.$ac_objext \
18833       conftest$ac_exeext conftest.$ac_ext
18834 LIBS=$ac_check_lib_save_LIBS
18835 fi
18836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18837 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18838 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18839
18840 cat >>confdefs.h <<\_ACEOF
18841 #define HAVE___ASHRDI3 1
18842 _ACEOF
18843
18844 fi
18845
18846   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18847 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18848 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18849   echo $ECHO_N "(cached) $ECHO_C" >&6
18850 else
18851   ac_check_lib_save_LIBS=$LIBS
18852 LIBS="-lgcc  $LIBS"
18853 cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h.  */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h.  */
18859
18860 /* Override any GCC internal prototype to avoid an error.
18861    Use char because int might match the return type of a GCC
18862    builtin and then its argument prototype would still apply.  */
18863 #ifdef __cplusplus
18864 extern "C"
18865 #endif
18866 char __divdi3 ();
18867 int
18868 main ()
18869 {
18870 return __divdi3 ();
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext conftest$ac_exeext
18876 if { (ac_try="$ac_link"
18877 case "(($ac_try" in
18878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879   *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882   (eval "$ac_link") 2>conftest.er1
18883   ac_status=$?
18884   grep -v '^ *+' conftest.er1 >conftest.err
18885   rm -f conftest.er1
18886   cat conftest.err >&5
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); } &&
18889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18890   { (case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_try") 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; } &&
18899          { ac_try='test -s conftest$ac_exeext'
18900   { (case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_try") 2>&5
18906   ac_status=$?
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); }; }; then
18909   ac_cv_lib_gcc___divdi3=yes
18910 else
18911   echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18913
18914         ac_cv_lib_gcc___divdi3=no
18915 fi
18916
18917 rm -f core conftest.err conftest.$ac_objext \
18918       conftest$ac_exeext conftest.$ac_ext
18919 LIBS=$ac_check_lib_save_LIBS
18920 fi
18921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18922 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18923 if test $ac_cv_lib_gcc___divdi3 = yes; then
18924
18925 cat >>confdefs.h <<\_ACEOF
18926 #define HAVE___DIVDI3 1
18927 _ACEOF
18928
18929 fi
18930
18931   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18932 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936   ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-lgcc  $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944
18945 /* Override any GCC internal prototype to avoid an error.
18946    Use char because int might match the return type of a GCC
18947    builtin and then its argument prototype would still apply.  */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char __fixdfdi ();
18952 int
18953 main ()
18954 {
18955 return __fixdfdi ();
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_link") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } &&
18974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18975   { (case "(($ac_try" in
18976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977   *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980   (eval "$ac_try") 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; } &&
18984          { ac_try='test -s conftest$ac_exeext'
18985   { (case "(($ac_try" in
18986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987   *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990   (eval "$ac_try") 2>&5
18991   ac_status=$?
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); }; }; then
18994   ac_cv_lib_gcc___fixdfdi=yes
18995 else
18996   echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18998
18999         ac_cv_lib_gcc___fixdfdi=no
19000 fi
19001
19002 rm -f core conftest.err conftest.$ac_objext \
19003       conftest$ac_exeext conftest.$ac_ext
19004 LIBS=$ac_check_lib_save_LIBS
19005 fi
19006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19007 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19008 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19009
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE___FIXDFDI 1
19012 _ACEOF
19013
19014 fi
19015
19016   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19017 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19018 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lgcc  $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029
19030 /* Override any GCC internal prototype to avoid an error.
19031    Use char because int might match the return type of a GCC
19032    builtin and then its argument prototype would still apply.  */
19033 #ifdef __cplusplus
19034 extern "C"
19035 #endif
19036 char __fixsfdi ();
19037 int
19038 main ()
19039 {
19040 return __fixsfdi ();
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_link") 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } &&
19059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19060   { (case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_try") 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; } &&
19069          { ac_try='test -s conftest$ac_exeext'
19070   { (case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_try") 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   ac_cv_lib_gcc___fixsfdi=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084         ac_cv_lib_gcc___fixsfdi=no
19085 fi
19086
19087 rm -f core conftest.err conftest.$ac_objext \
19088       conftest$ac_exeext conftest.$ac_ext
19089 LIBS=$ac_check_lib_save_LIBS
19090 fi
19091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19092 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19093 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19094
19095 cat >>confdefs.h <<\_ACEOF
19096 #define HAVE___FIXSFDI 1
19097 _ACEOF
19098
19099 fi
19100
19101   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19102 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19103 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19104   echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106   ac_check_lib_save_LIBS=$LIBS
19107 LIBS="-lgcc  $LIBS"
19108 cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114
19115 /* Override any GCC internal prototype to avoid an error.
19116    Use char because int might match the return type of a GCC
19117    builtin and then its argument prototype would still apply.  */
19118 #ifdef __cplusplus
19119 extern "C"
19120 #endif
19121 char __floatdidf ();
19122 int
19123 main ()
19124 {
19125 return __floatdidf ();
19126   ;
19127   return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (ac_try="$ac_link"
19132 case "(($ac_try" in
19133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134   *) ac_try_echo=$ac_try;;
19135 esac
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137   (eval "$ac_link") 2>conftest.er1
19138   ac_status=$?
19139   grep -v '^ *+' conftest.er1 >conftest.err
19140   rm -f conftest.er1
19141   cat conftest.err >&5
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); } &&
19144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19145   { (case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150   (eval "$ac_try") 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; } &&
19154          { ac_try='test -s conftest$ac_exeext'
19155   { (case "(($ac_try" in
19156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157   *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160   (eval "$ac_try") 2>&5
19161   ac_status=$?
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); }; }; then
19164   ac_cv_lib_gcc___floatdidf=yes
19165 else
19166   echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19168
19169         ac_cv_lib_gcc___floatdidf=no
19170 fi
19171
19172 rm -f core conftest.err conftest.$ac_objext \
19173       conftest$ac_exeext conftest.$ac_ext
19174 LIBS=$ac_check_lib_save_LIBS
19175 fi
19176 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19177 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19178 if test $ac_cv_lib_gcc___floatdidf = yes; then
19179
19180 cat >>confdefs.h <<\_ACEOF
19181 #define HAVE___FLOATDIDF 1
19182 _ACEOF
19183
19184 fi
19185
19186   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19187 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19188 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19189   echo $ECHO_N "(cached) $ECHO_C" >&6
19190 else
19191   ac_check_lib_save_LIBS=$LIBS
19192 LIBS="-lgcc  $LIBS"
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199
19200 /* Override any GCC internal prototype to avoid an error.
19201    Use char because int might match the return type of a GCC
19202    builtin and then its argument prototype would still apply.  */
19203 #ifdef __cplusplus
19204 extern "C"
19205 #endif
19206 char __lshrdi3 ();
19207 int
19208 main ()
19209 {
19210 return __lshrdi3 ();
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (ac_try="$ac_link"
19217 case "(($ac_try" in
19218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219   *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222   (eval "$ac_link") 2>conftest.er1
19223   ac_status=$?
19224   grep -v '^ *+' conftest.er1 >conftest.err
19225   rm -f conftest.er1
19226   cat conftest.err >&5
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); } &&
19229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19230   { (case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235   (eval "$ac_try") 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; } &&
19239          { ac_try='test -s conftest$ac_exeext'
19240   { (case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_try") 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; }; then
19249   ac_cv_lib_gcc___lshrdi3=yes
19250 else
19251   echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254         ac_cv_lib_gcc___lshrdi3=no
19255 fi
19256
19257 rm -f core conftest.err conftest.$ac_objext \
19258       conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19260 fi
19261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19262 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19263 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19264
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE___LSHRDI3 1
19267 _ACEOF
19268
19269 fi
19270
19271   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19272 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19273 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19274   echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276   ac_check_lib_save_LIBS=$LIBS
19277 LIBS="-lgcc  $LIBS"
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284
19285 /* Override any GCC internal prototype to avoid an error.
19286    Use char because int might match the return type of a GCC
19287    builtin and then its argument prototype would still apply.  */
19288 #ifdef __cplusplus
19289 extern "C"
19290 #endif
19291 char __moddi3 ();
19292 int
19293 main ()
19294 {
19295 return __moddi3 ();
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_link") 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } &&
19314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19315   { (case "(($ac_try" in
19316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317   *) ac_try_echo=$ac_try;;
19318 esac
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320   (eval "$ac_try") 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); }; } &&
19324          { ac_try='test -s conftest$ac_exeext'
19325   { (case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_try") 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; }; then
19334   ac_cv_lib_gcc___moddi3=yes
19335 else
19336   echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19338
19339         ac_cv_lib_gcc___moddi3=no
19340 fi
19341
19342 rm -f core conftest.err conftest.$ac_objext \
19343       conftest$ac_exeext conftest.$ac_ext
19344 LIBS=$ac_check_lib_save_LIBS
19345 fi
19346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19347 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19348 if test $ac_cv_lib_gcc___moddi3 = yes; then
19349
19350 cat >>confdefs.h <<\_ACEOF
19351 #define HAVE___MODDI3 1
19352 _ACEOF
19353
19354 fi
19355
19356   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19357 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19358 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19359   echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361   ac_check_lib_save_LIBS=$LIBS
19362 LIBS="-lgcc  $LIBS"
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h.  */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h.  */
19369
19370 /* Override any GCC internal prototype to avoid an error.
19371    Use char because int might match the return type of a GCC
19372    builtin and then its argument prototype would still apply.  */
19373 #ifdef __cplusplus
19374 extern "C"
19375 #endif
19376 char __udivdi3 ();
19377 int
19378 main ()
19379 {
19380 return __udivdi3 ();
19381   ;
19382   return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if { (ac_try="$ac_link"
19387 case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392   (eval "$ac_link") 2>conftest.er1
19393   ac_status=$?
19394   grep -v '^ *+' conftest.er1 >conftest.err
19395   rm -f conftest.er1
19396   cat conftest.err >&5
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); } &&
19399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19400   { (case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_try") 2>&5
19406   ac_status=$?
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); }; } &&
19409          { ac_try='test -s conftest$ac_exeext'
19410   { (case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_try") 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; }; then
19419   ac_cv_lib_gcc___udivdi3=yes
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424         ac_cv_lib_gcc___udivdi3=no
19425 fi
19426
19427 rm -f core conftest.err conftest.$ac_objext \
19428       conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19430 fi
19431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19432 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19433 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19434
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE___UDIVDI3 1
19437 _ACEOF
19438
19439 fi
19440
19441   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19442 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19443 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19444   echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446   ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lgcc  $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454
19455 /* Override any GCC internal prototype to avoid an error.
19456    Use char because int might match the return type of a GCC
19457    builtin and then its argument prototype would still apply.  */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char __umoddi3 ();
19462 int
19463 main ()
19464 {
19465 return __umoddi3 ();
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474   *) ac_try_echo=$ac_try;;
19475 esac
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477   (eval "$ac_link") 2>conftest.er1
19478   ac_status=$?
19479   grep -v '^ *+' conftest.er1 >conftest.err
19480   rm -f conftest.er1
19481   cat conftest.err >&5
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } &&
19484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19485   { (case "(($ac_try" in
19486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487   *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490   (eval "$ac_try") 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; } &&
19494          { ac_try='test -s conftest$ac_exeext'
19495   { (case "(($ac_try" in
19496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497   *) ac_try_echo=$ac_try;;
19498 esac
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500   (eval "$ac_try") 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; }; then
19504   ac_cv_lib_gcc___umoddi3=yes
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509         ac_cv_lib_gcc___umoddi3=no
19510 fi
19511
19512 rm -f core conftest.err conftest.$ac_objext \
19513       conftest$ac_exeext conftest.$ac_ext
19514 LIBS=$ac_check_lib_save_LIBS
19515 fi
19516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19517 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19518 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19519
19520 cat >>confdefs.h <<\_ACEOF
19521 #define HAVE___UMODDI3 1
19522 _ACEOF
19523
19524 fi
19525
19526
19527   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19528 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19529 if test "${ac_cv_lib_gcc___main+set}" = set; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532   ac_check_lib_save_LIBS=$LIBS
19533 LIBS="-lgcc  $LIBS"
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540
19541 /* Override any GCC internal prototype to avoid an error.
19542    Use char because int might match the return type of a GCC
19543    builtin and then its argument prototype would still apply.  */
19544 #ifdef __cplusplus
19545 extern "C"
19546 #endif
19547 char __main ();
19548 int
19549 main ()
19550 {
19551 return __main ();
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560   *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563   (eval "$ac_link") 2>conftest.er1
19564   ac_status=$?
19565   grep -v '^ *+' conftest.er1 >conftest.err
19566   rm -f conftest.er1
19567   cat conftest.err >&5
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); } &&
19570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19571   { (case "(($ac_try" in
19572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573   *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576   (eval "$ac_try") 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; } &&
19580          { ac_try='test -s conftest$ac_exeext'
19581   { (case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586   (eval "$ac_try") 2>&5
19587   ac_status=$?
19588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); }; }; then
19590   ac_cv_lib_gcc___main=yes
19591 else
19592   echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19594
19595         ac_cv_lib_gcc___main=no
19596 fi
19597
19598 rm -f core conftest.err conftest.$ac_objext \
19599       conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19601 fi
19602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19603 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19604 if test $ac_cv_lib_gcc___main = yes; then
19605
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE___MAIN 1
19608 _ACEOF
19609
19610 fi
19611
19612   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19613 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19614 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19615   echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617   ac_check_lib_save_LIBS=$LIBS
19618 LIBS="-lgcc  $LIBS"
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h.  */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h.  */
19625
19626 /* Override any GCC internal prototype to avoid an error.
19627    Use char because int might match the return type of a GCC
19628    builtin and then its argument prototype would still apply.  */
19629 #ifdef __cplusplus
19630 extern "C"
19631 #endif
19632 char __cmpdi2 ();
19633 int
19634 main ()
19635 {
19636 return __cmpdi2 ();
19637   ;
19638   return 0;
19639 }
19640 _ACEOF
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (ac_try="$ac_link"
19643 case "(($ac_try" in
19644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645   *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648   (eval "$ac_link") 2>conftest.er1
19649   ac_status=$?
19650   grep -v '^ *+' conftest.er1 >conftest.err
19651   rm -f conftest.er1
19652   cat conftest.err >&5
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); } &&
19655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19656   { (case "(($ac_try" in
19657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658   *) ac_try_echo=$ac_try;;
19659 esac
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661   (eval "$ac_try") 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); }; } &&
19665          { ac_try='test -s conftest$ac_exeext'
19666   { (case "(($ac_try" in
19667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668   *) ac_try_echo=$ac_try;;
19669 esac
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671   (eval "$ac_try") 2>&5
19672   ac_status=$?
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); }; }; then
19675   ac_cv_lib_gcc___cmpdi2=yes
19676 else
19677   echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19679
19680         ac_cv_lib_gcc___cmpdi2=no
19681 fi
19682
19683 rm -f core conftest.err conftest.$ac_objext \
19684       conftest$ac_exeext conftest.$ac_ext
19685 LIBS=$ac_check_lib_save_LIBS
19686 fi
19687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19688 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19689 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19690
19691 cat >>confdefs.h <<\_ACEOF
19692 #define HAVE___CMPDI2 1
19693 _ACEOF
19694
19695 fi
19696
19697 fi
19698
19699 if test "$llvm_cv_os_type" = "MingW" ; then
19700   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19701 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19702   cat >conftest.$ac_ext <<_ACEOF
19703 #include <windows.h>
19704 #include <imagehlp.h>
19705 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19706 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712   *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715   (eval "$ac_compile") 2>conftest.er1
19716   ac_status=$?
19717   grep -v '^ *+' conftest.er1 >conftest.err
19718   rm -f conftest.er1
19719   cat conftest.err >&5
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } &&
19722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19723   { (case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728   (eval "$ac_try") 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; } &&
19732          { ac_try='test -s conftest.$ac_objext'
19733   { (case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_try") 2>&5
19739   ac_status=$?
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); }; }; then
19742
19743   { echo "$as_me:$LINENO: result: yes" >&5
19744 echo "${ECHO_T}yes" >&6; }
19745   llvm_cv_win32_elmcb_pcstr="PCSTR"
19746
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751
19752   { echo "$as_me:$LINENO: result: no" >&5
19753 echo "${ECHO_T}no" >&6; }
19754   llvm_cv_win32_elmcb_pcstr="PSTR"
19755
19756 fi
19757
19758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19759
19760 cat >>confdefs.h <<_ACEOF
19761 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19762 _ACEOF
19763
19764 fi
19765
19766
19767 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19768 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19769 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   ac_ext=cpp
19773 ac_cpp='$CXXCPP $CPPFLAGS'
19774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19777
19778    cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h.  */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h.  */
19784 #include <math.h>
19785 int
19786 main ()
19787 {
19788 float f; isnan(f);
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext
19794 if { (ac_try="$ac_compile"
19795 case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_compile") 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19808   { (case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_try") 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; } &&
19817          { ac_try='test -s conftest.$ac_objext'
19818   { (case "(($ac_try" in
19819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820   *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823   (eval "$ac_try") 2>&5
19824   ac_status=$?
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); }; }; then
19827   ac_cv_func_isnan_in_math_h=yes
19828 else
19829   echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832         ac_cv_func_isnan_in_math_h=no
19833 fi
19834
19835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836   ac_ext=c
19837 ac_cpp='$CPP $CPPFLAGS'
19838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19841
19842 fi
19843 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19844 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19845
19846
19847 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19848
19849 cat >>confdefs.h <<\_ACEOF
19850 #define HAVE_ISNAN_IN_MATH_H 1
19851 _ACEOF
19852
19853 fi
19854
19855 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19856 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19857 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19858   echo $ECHO_N "(cached) $ECHO_C" >&6
19859 else
19860   ac_ext=cpp
19861 ac_cpp='$CXXCPP $CPPFLAGS'
19862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19865
19866    cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872 #include <cmath>
19873 int
19874 main ()
19875 {
19876 float f; isnan(f);
19877   ;
19878   return 0;
19879 }
19880 _ACEOF
19881 rm -f conftest.$ac_objext
19882 if { (ac_try="$ac_compile"
19883 case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_compile") 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19896   { (case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_try") 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }; } &&
19905          { ac_try='test -s conftest.$ac_objext'
19906   { (case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_try") 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); }; }; then
19915   ac_cv_func_isnan_in_cmath=yes
19916 else
19917   echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920         ac_cv_func_isnan_in_cmath=no
19921 fi
19922
19923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19924   ac_ext=c
19925 ac_cpp='$CPP $CPPFLAGS'
19926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19929
19930 fi
19931 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19932 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19933
19934 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19935
19936 cat >>confdefs.h <<\_ACEOF
19937 #define HAVE_ISNAN_IN_CMATH 1
19938 _ACEOF
19939
19940 fi
19941
19942 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19943 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19944 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19945   echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947   ac_ext=cpp
19948 ac_cpp='$CXXCPP $CPPFLAGS'
19949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19952
19953    cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h.  */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h.  */
19959 #include <cmath>
19960 int
19961 main ()
19962 {
19963 float f; std::isnan(f);
19964   ;
19965   return 0;
19966 }
19967 _ACEOF
19968 rm -f conftest.$ac_objext
19969 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19976   ac_status=$?
19977   grep -v '^ *+' conftest.er1 >conftest.err
19978   rm -f conftest.er1
19979   cat conftest.err >&5
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); } &&
19982          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19983   { (case "(($ac_try" in
19984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985   *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988   (eval "$ac_try") 2>&5
19989   ac_status=$?
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); }; } &&
19992          { ac_try='test -s conftest.$ac_objext'
19993   { (case "(($ac_try" in
19994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995   *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998   (eval "$ac_try") 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; }; then
20002   ac_cv_func_std_isnan_in_cmath=yes
20003 else
20004   echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20006
20007         ac_cv_func_std_isnan_in_cmath=no
20008 fi
20009
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011   ac_ext=c
20012 ac_cpp='$CPP $CPPFLAGS'
20013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20016
20017 fi
20018 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20019 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20020
20021 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20022
20023 cat >>confdefs.h <<\_ACEOF
20024 #define HAVE_STD_ISNAN_IN_CMATH 1
20025 _ACEOF
20026
20027 fi
20028
20029
20030 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20031 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20032 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20033   echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035   ac_ext=cpp
20036 ac_cpp='$CXXCPP $CPPFLAGS'
20037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040
20041    cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047 #include <math.h>
20048 int
20049 main ()
20050 {
20051 float f; isinf(f);
20052   ;
20053   return 0;
20054 }
20055 _ACEOF
20056 rm -f conftest.$ac_objext
20057 if { (ac_try="$ac_compile"
20058 case "(($ac_try" in
20059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060   *) ac_try_echo=$ac_try;;
20061 esac
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063   (eval "$ac_compile") 2>conftest.er1
20064   ac_status=$?
20065   grep -v '^ *+' conftest.er1 >conftest.err
20066   rm -f conftest.er1
20067   cat conftest.err >&5
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } &&
20070          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20071   { (case "(($ac_try" in
20072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073   *) ac_try_echo=$ac_try;;
20074 esac
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076   (eval "$ac_try") 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); }; } &&
20080          { ac_try='test -s conftest.$ac_objext'
20081   { (case "(($ac_try" in
20082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083   *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086   (eval "$ac_try") 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; }; then
20090   ac_cv_func_isinf_in_math_h=yes
20091 else
20092   echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20094
20095         ac_cv_func_isinf_in_math_h=no
20096 fi
20097
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20099   ac_ext=c
20100 ac_cpp='$CPP $CPPFLAGS'
20101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20104
20105 fi
20106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20108
20109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20110
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_ISINF_IN_MATH_H 1
20113 _ACEOF
20114
20115 fi
20116
20117 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20118 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20119 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20120   echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122   ac_ext=cpp
20123 ac_cpp='$CXXCPP $CPPFLAGS'
20124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20127
20128    cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 #include <cmath>
20135 int
20136 main ()
20137 {
20138 float f; isinf(f);
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_compile") 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } &&
20157          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20158   { (case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_try") 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; } &&
20167          { ac_try='test -s conftest.$ac_objext'
20168   { (case "(($ac_try" in
20169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170   *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173   (eval "$ac_try") 2>&5
20174   ac_status=$?
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); }; }; then
20177   ac_cv_func_isinf_in_cmath=yes
20178 else
20179   echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20181
20182         ac_cv_func_isinf_in_cmath=no
20183 fi
20184
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186   ac_ext=c
20187 ac_cpp='$CPP $CPPFLAGS'
20188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20191
20192 fi
20193 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20194 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20195
20196 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20197
20198 cat >>confdefs.h <<\_ACEOF
20199 #define HAVE_ISINF_IN_CMATH 1
20200 _ACEOF
20201
20202 fi
20203
20204 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20205 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20206 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   ac_ext=cpp
20210 ac_cpp='$CXXCPP $CPPFLAGS'
20211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20214
20215    cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221 #include <cmath>
20222 int
20223 main ()
20224 {
20225 float f; std::isinf(f);
20226   ;
20227   return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (ac_try="$ac_compile"
20232 case "(($ac_try" in
20233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234   *) ac_try_echo=$ac_try;;
20235 esac
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237   (eval "$ac_compile") 2>conftest.er1
20238   ac_status=$?
20239   grep -v '^ *+' conftest.er1 >conftest.err
20240   rm -f conftest.er1
20241   cat conftest.err >&5
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); } &&
20244          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20245   { (case "(($ac_try" in
20246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247   *) ac_try_echo=$ac_try;;
20248 esac
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250   (eval "$ac_try") 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }; } &&
20254          { ac_try='test -s conftest.$ac_objext'
20255   { (case "(($ac_try" in
20256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257   *) ac_try_echo=$ac_try;;
20258 esac
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260   (eval "$ac_try") 2>&5
20261   ac_status=$?
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); }; }; then
20264   ac_cv_func_std_isinf_in_cmath=yes
20265 else
20266   echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20268
20269         ac_cv_func_std_isinf_in_cmath=no
20270 fi
20271
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20273   ac_ext=c
20274 ac_cpp='$CPP $CPPFLAGS'
20275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20278
20279 fi
20280 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20281 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20282
20283 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20284
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_STD_ISINF_IN_CMATH 1
20287 _ACEOF
20288
20289 fi
20290
20291 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20292 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20293 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20294   echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296   ac_ext=cpp
20297 ac_cpp='$CXXCPP $CPPFLAGS'
20298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20301
20302    cat >conftest.$ac_ext <<_ACEOF
20303 /* confdefs.h.  */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h.  */
20308 #include <ieeefp.h>
20309 int
20310 main ()
20311 {
20312 float f; finite(f);
20313   ;
20314   return 0;
20315 }
20316 _ACEOF
20317 rm -f conftest.$ac_objext
20318 if { (ac_try="$ac_compile"
20319 case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_compile") 2>conftest.er1
20325   ac_status=$?
20326   grep -v '^ *+' conftest.er1 >conftest.err
20327   rm -f conftest.er1
20328   cat conftest.err >&5
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } &&
20331          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20332   { (case "(($ac_try" in
20333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334   *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337   (eval "$ac_try") 2>&5
20338   ac_status=$?
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); }; } &&
20341          { ac_try='test -s conftest.$ac_objext'
20342   { (case "(($ac_try" in
20343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344   *) ac_try_echo=$ac_try;;
20345 esac
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347   (eval "$ac_try") 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; }; then
20351   ac_cv_func_finite_in_ieeefp_h=yes
20352 else
20353   echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356         ac_cv_func_finite_in_ieeefp_h=no
20357 fi
20358
20359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20360   ac_ext=c
20361 ac_cpp='$CPP $CPPFLAGS'
20362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20365
20366 fi
20367 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20368 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20369
20370 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20371
20372 cat >>confdefs.h <<\_ACEOF
20373 #define HAVE_FINITE_IN_IEEEFP_H 1
20374 _ACEOF
20375
20376 fi
20377
20378
20379
20380 if test "$llvm_cv_platform_type" = "Unix" ; then
20381
20382
20383 for ac_header in stdlib.h unistd.h
20384 do
20385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20387   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 fi
20392 ac_res=`eval echo '${'$as_ac_Header'}'`
20393                { echo "$as_me:$LINENO: result: $ac_res" >&5
20394 echo "${ECHO_T}$ac_res" >&6; }
20395 else
20396   # Is the header compilable?
20397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 $ac_includes_default
20406 #include <$ac_header>
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (ac_try="$ac_compile"
20410 case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_compile") 2>conftest.er1
20416   ac_status=$?
20417   grep -v '^ *+' conftest.er1 >conftest.err
20418   rm -f conftest.er1
20419   cat conftest.err >&5
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); } &&
20422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20423   { (case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_try") 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); }; } &&
20432          { ac_try='test -s conftest.$ac_objext'
20433   { (case "(($ac_try" in
20434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435   *) ac_try_echo=$ac_try;;
20436 esac
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438   (eval "$ac_try") 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; }; then
20442   ac_header_compiler=yes
20443 else
20444   echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447         ac_header_compiler=no
20448 fi
20449
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20452 echo "${ECHO_T}$ac_header_compiler" >&6; }
20453
20454 # Is the header present?
20455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20457 cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h.  */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h.  */
20463 #include <$ac_header>
20464 _ACEOF
20465 if { (ac_try="$ac_cpp conftest.$ac_ext"
20466 case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20472   ac_status=$?
20473   grep -v '^ *+' conftest.er1 >conftest.err
20474   rm -f conftest.er1
20475   cat conftest.err >&5
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); } >/dev/null; then
20478   if test -s conftest.err; then
20479     ac_cpp_err=$ac_c_preproc_warn_flag
20480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20481   else
20482     ac_cpp_err=
20483   fi
20484 else
20485   ac_cpp_err=yes
20486 fi
20487 if test -z "$ac_cpp_err"; then
20488   ac_header_preproc=yes
20489 else
20490   echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493   ac_header_preproc=no
20494 fi
20495
20496 rm -f conftest.err conftest.$ac_ext
20497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20498 echo "${ECHO_T}$ac_header_preproc" >&6; }
20499
20500 # So?  What about this header?
20501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20502   yes:no: )
20503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20507     ac_header_preproc=yes
20508     ;;
20509   no:yes:* )
20510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20522     ( cat <<\_ASBOX
20523 ## ------------------------------ ##
20524 ## Report this to bugs@yourdomain ##
20525 ## ------------------------------ ##
20526 _ASBOX
20527      ) | sed "s/^/$as_me: WARNING:     /" >&2
20528     ;;
20529 esac
20530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535   eval "$as_ac_Header=\$ac_header_preproc"
20536 fi
20537 ac_res=`eval echo '${'$as_ac_Header'}'`
20538                { echo "$as_me:$LINENO: result: $ac_res" >&5
20539 echo "${ECHO_T}$ac_res" >&6; }
20540
20541 fi
20542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20543   cat >>confdefs.h <<_ACEOF
20544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20545 _ACEOF
20546
20547 fi
20548
20549 done
20550
20551
20552 for ac_func in getpagesize
20553 do
20554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20558   echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560   cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h.  */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h.  */
20566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20568 #define $ac_func innocuous_$ac_func
20569
20570 /* System header to define __stub macros and hopefully few prototypes,
20571     which can conflict with char $ac_func (); below.
20572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20573     <limits.h> exists even on freestanding compilers.  */
20574
20575 #ifdef __STDC__
20576 # include <limits.h>
20577 #else
20578 # include <assert.h>
20579 #endif
20580
20581 #undef $ac_func
20582
20583 /* Override any GCC internal prototype to avoid an error.
20584    Use char because int might match the return type of a GCC
20585    builtin and then its argument prototype would still apply.  */
20586 #ifdef __cplusplus
20587 extern "C"
20588 #endif
20589 char $ac_func ();
20590 /* The GNU C library defines this for functions which it implements
20591     to always fail with ENOSYS.  Some functions are actually named
20592     something starting with __ and the normal name is an alias.  */
20593 #if defined __stub_$ac_func || defined __stub___$ac_func
20594 choke me
20595 #endif
20596
20597 int
20598 main ()
20599 {
20600 return $ac_func ();
20601   ;
20602   return 0;
20603 }
20604 _ACEOF
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (ac_try="$ac_link"
20607 case "(($ac_try" in
20608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609   *) ac_try_echo=$ac_try;;
20610 esac
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612   (eval "$ac_link") 2>conftest.er1
20613   ac_status=$?
20614   grep -v '^ *+' conftest.er1 >conftest.err
20615   rm -f conftest.er1
20616   cat conftest.err >&5
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); } &&
20619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20620   { (case "(($ac_try" in
20621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622   *) ac_try_echo=$ac_try;;
20623 esac
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625   (eval "$ac_try") 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); }; } &&
20629          { ac_try='test -s conftest$ac_exeext'
20630   { (case "(($ac_try" in
20631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632   *) ac_try_echo=$ac_try;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635   (eval "$ac_try") 2>&5
20636   ac_status=$?
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); }; }; then
20639   eval "$as_ac_var=yes"
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644         eval "$as_ac_var=no"
20645 fi
20646
20647 rm -f core conftest.err conftest.$ac_objext \
20648       conftest$ac_exeext conftest.$ac_ext
20649 fi
20650 ac_res=`eval echo '${'$as_ac_var'}'`
20651                { echo "$as_me:$LINENO: result: $ac_res" >&5
20652 echo "${ECHO_T}$ac_res" >&6; }
20653 if test `eval echo '${'$as_ac_var'}'` = yes; then
20654   cat >>confdefs.h <<_ACEOF
20655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20656 _ACEOF
20657
20658 fi
20659 done
20660
20661 { echo "$as_me:$LINENO: checking for working mmap" >&5
20662 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20664   echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666   if test "$cross_compiling" = yes; then
20667   ac_cv_func_mmap_fixed_mapped=no
20668 else
20669   cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h.  */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h.  */
20675 $ac_includes_default
20676 /* malloc might have been renamed as rpl_malloc. */
20677 #undef malloc
20678
20679 /* Thanks to Mike Haertel and Jim Avera for this test.
20680    Here is a matrix of mmap possibilities:
20681         mmap private not fixed
20682         mmap private fixed at somewhere currently unmapped
20683         mmap private fixed at somewhere already mapped
20684         mmap shared not fixed
20685         mmap shared fixed at somewhere currently unmapped
20686         mmap shared fixed at somewhere already mapped
20687    For private mappings, we should verify that changes cannot be read()
20688    back from the file, nor mmap's back from the file at a different
20689    address.  (There have been systems where private was not correctly
20690    implemented like the infamous i386 svr4.0, and systems where the
20691    VM page cache was not coherent with the file system buffer cache
20692    like early versions of FreeBSD and possibly contemporary NetBSD.)
20693    For shared mappings, we should conversely verify that changes get
20694    propagated back to all the places they're supposed to be.
20695
20696    Grep wants private fixed already mapped.
20697    The main things grep needs to know about mmap are:
20698    * does it exist and is it safe to write into the mmap'd area
20699    * how to use it (BSD variants)  */
20700
20701 #include <fcntl.h>
20702 #include <sys/mman.h>
20703
20704 #if !STDC_HEADERS && !HAVE_STDLIB_H
20705 char *malloc ();
20706 #endif
20707
20708 /* This mess was copied from the GNU getpagesize.h.  */
20709 #if !HAVE_GETPAGESIZE
20710 /* Assume that all systems that can run configure have sys/param.h.  */
20711 # if !HAVE_SYS_PARAM_H
20712 #  define HAVE_SYS_PARAM_H 1
20713 # endif
20714
20715 # ifdef _SC_PAGESIZE
20716 #  define getpagesize() sysconf(_SC_PAGESIZE)
20717 # else /* no _SC_PAGESIZE */
20718 #  if HAVE_SYS_PARAM_H
20719 #   include <sys/param.h>
20720 #   ifdef EXEC_PAGESIZE
20721 #    define getpagesize() EXEC_PAGESIZE
20722 #   else /* no EXEC_PAGESIZE */
20723 #    ifdef NBPG
20724 #     define getpagesize() NBPG * CLSIZE
20725 #     ifndef CLSIZE
20726 #      define CLSIZE 1
20727 #     endif /* no CLSIZE */
20728 #    else /* no NBPG */
20729 #     ifdef NBPC
20730 #      define getpagesize() NBPC
20731 #     else /* no NBPC */
20732 #      ifdef PAGESIZE
20733 #       define getpagesize() PAGESIZE
20734 #      endif /* PAGESIZE */
20735 #     endif /* no NBPC */
20736 #    endif /* no NBPG */
20737 #   endif /* no EXEC_PAGESIZE */
20738 #  else /* no HAVE_SYS_PARAM_H */
20739 #   define getpagesize() 8192   /* punt totally */
20740 #  endif /* no HAVE_SYS_PARAM_H */
20741 # endif /* no _SC_PAGESIZE */
20742
20743 #endif /* no HAVE_GETPAGESIZE */
20744
20745 int
20746 main ()
20747 {
20748   char *data, *data2, *data3;
20749   int i, pagesize;
20750   int fd;
20751
20752   pagesize = getpagesize ();
20753
20754   /* First, make a file with some known garbage in it. */
20755   data = (char *) malloc (pagesize);
20756   if (!data)
20757     return 1;
20758   for (i = 0; i < pagesize; ++i)
20759     *(data + i) = rand ();
20760   umask (0);
20761   fd = creat ("conftest.mmap", 0600);
20762   if (fd < 0)
20763     return 1;
20764   if (write (fd, data, pagesize) != pagesize)
20765     return 1;
20766   close (fd);
20767
20768   /* Next, try to mmap the file at a fixed address which already has
20769      something else allocated at it.  If we can, also make sure that
20770      we see the same garbage.  */
20771   fd = open ("conftest.mmap", O_RDWR);
20772   if (fd < 0)
20773     return 1;
20774   data2 = (char *) malloc (2 * pagesize);
20775   if (!data2)
20776     return 1;
20777   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20778   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20779                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20780     return 1;
20781   for (i = 0; i < pagesize; ++i)
20782     if (*(data + i) != *(data2 + i))
20783       return 1;
20784
20785   /* Finally, make sure that changes to the mapped area do not
20786      percolate back to the file as seen by read().  (This is a bug on
20787      some variants of i386 svr4.0.)  */
20788   for (i = 0; i < pagesize; ++i)
20789     *(data2 + i) = *(data2 + i) + 1;
20790   data3 = (char *) malloc (pagesize);
20791   if (!data3)
20792     return 1;
20793   if (read (fd, data3, pagesize) != pagesize)
20794     return 1;
20795   for (i = 0; i < pagesize; ++i)
20796     if (*(data + i) != *(data3 + i))
20797       return 1;
20798   close (fd);
20799   return 0;
20800 }
20801 _ACEOF
20802 rm -f conftest$ac_exeext
20803 if { (ac_try="$ac_link"
20804 case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809   (eval "$ac_link") 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20813   { (case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_try") 2>&5
20819   ac_status=$?
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); }; }; then
20822   ac_cv_func_mmap_fixed_mapped=yes
20823 else
20824   echo "$as_me: program exited with status $ac_status" >&5
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20827
20828 ( exit $ac_status )
20829 ac_cv_func_mmap_fixed_mapped=no
20830 fi
20831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20832 fi
20833
20834
20835 fi
20836 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20837 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20838 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20839
20840 cat >>confdefs.h <<\_ACEOF
20841 #define HAVE_MMAP 1
20842 _ACEOF
20843
20844 fi
20845 rm -f conftest.mmap
20846
20847   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20848 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20849 if test "${ac_cv_func_mmap_file+set}" = set; then
20850   echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852    ac_ext=c
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20857
20858   if test "$cross_compiling" = yes; then
20859   ac_cv_func_mmap_file=no
20860 else
20861   cat >conftest.$ac_ext <<_ACEOF
20862
20863     /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868
20869 #include <sys/types.h>
20870 #include <sys/mman.h>
20871 #include <fcntl.h>
20872
20873 int
20874 main ()
20875 {
20876
20877   int fd;
20878   fd = creat ("foo",0777);
20879   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20880   unlink ("foo");
20881   return (fd != (int) MAP_FAILED);
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_link") 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20897   { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   ac_cv_func_mmap_file=yes
20907 else
20908   echo "$as_me: program exited with status $ac_status" >&5
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912 ( exit $ac_status )
20913 ac_cv_func_mmap_file=no
20914 fi
20915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20916 fi
20917
20918
20919   ac_ext=c
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
20925
20926 fi
20927 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20928 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20929 if test "$ac_cv_func_mmap_file" = yes; then
20930
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_MMAP_FILE
20933 _ACEOF
20934
20935    MMAP_FILE=yes
20936
20937 fi
20938
20939   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20940 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20941 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944   if test "$llvm_cv_os_type" = "Interix" ; then
20945    ac_cv_need_dev_zero_for_mmap=yes
20946  else
20947    ac_cv_need_dev_zero_for_mmap=no
20948  fi
20949
20950 fi
20951 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20952 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20953 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20954
20955 cat >>confdefs.h <<\_ACEOF
20956 #define NEED_DEV_ZERO_FOR_MMAP 1
20957 _ACEOF
20958
20959 fi
20960
20961   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20962   then
20963     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20964 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20965   fi
20966   if test "$ac_cv_func_mmap_file" = "no"
20967   then
20968     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20969 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20970   fi
20971 fi
20972
20973 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20974 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20975 ac_ext=cpp
20976 ac_cpp='$CXXCPP $CPPFLAGS'
20977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20980
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 int main() {
20988         volatile unsigned long val = 1;
20989         __sync_synchronize();
20990         __sync_val_compare_and_swap(&val, 1, 0);
20991         __sync_add_and_fetch(&val, 1);
20992         __sync_sub_and_fetch(&val, 1);
20993         return 0;
20994       }
20995
20996 _ACEOF
20997 rm -f conftest.$ac_objext conftest$ac_exeext
20998 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
21005   ac_status=$?
21006   grep -v '^ *+' conftest.er1 >conftest.err
21007   rm -f conftest.er1
21008   cat conftest.err >&5
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); } &&
21011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21012   { (case "(($ac_try" in
21013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014   *) ac_try_echo=$ac_try;;
21015 esac
21016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017   (eval "$ac_try") 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); }; } &&
21021          { ac_try='test -s conftest$ac_exeext'
21022   { (case "(($ac_try" in
21023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024   *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027   (eval "$ac_try") 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; }; then
21031   ac_ext=c
21032 ac_cpp='$CPP $CPPFLAGS'
21033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21036
21037   { echo "$as_me:$LINENO: result: yes" >&5
21038 echo "${ECHO_T}yes" >&6; }
21039
21040 cat >>confdefs.h <<\_ACEOF
21041 #define LLVM_HAS_ATOMICS 1
21042 _ACEOF
21043
21044 else
21045   echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048         { echo "$as_me:$LINENO: result: no" >&5
21049 echo "${ECHO_T}no" >&6; }
21050
21051 cat >>confdefs.h <<\_ACEOF
21052 #define LLVM_HAS_ATOMICS 0
21053 _ACEOF
21054
21055   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21056 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21057 fi
21058
21059 rm -f core conftest.err conftest.$ac_objext \
21060       conftest$ac_exeext conftest.$ac_ext
21061
21062
21063 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21064   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21065 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21066 if test "${llvm_cv_linux_mixed+set}" = set; then
21067   echo $ECHO_N "(cached) $ECHO_C" >&6
21068 else
21069    ac_ext=c
21070 ac_cpp='$CPP $CPPFLAGS'
21071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21074
21075   cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081 #ifndef __x86_64__
21082        error: Not x86-64 even if uname says so!
21083       #endif
21084
21085 int
21086 main ()
21087 {
21088
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext
21094 if { (ac_try="$ac_compile"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_compile") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } &&
21107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21108   { (case "(($ac_try" in
21109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110   *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113   (eval "$ac_try") 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; } &&
21117          { ac_try='test -s conftest.$ac_objext'
21118   { (case "(($ac_try" in
21119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120   *) ac_try_echo=$ac_try;;
21121 esac
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123   (eval "$ac_try") 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; }; then
21127   llvm_cv_linux_mixed=no
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132         llvm_cv_linux_mixed=yes
21133 fi
21134
21135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21136   ac_ext=c
21137 ac_cpp='$CPP $CPPFLAGS'
21138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21141
21142
21143 fi
21144 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21145 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21146
21147   if test "$llvm_cv_linux_mixed" = "yes"; then
21148     llvm_cv_target_arch="x86"
21149     ARCH="x86"
21150   fi
21151 fi
21152
21153
21154 for ac_func in __dso_handle
21155 do
21156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21160   echo $ECHO_N "(cached) $ECHO_C" >&6
21161 else
21162   cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h.  */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h.  */
21168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21170 #define $ac_func innocuous_$ac_func
21171
21172 /* System header to define __stub macros and hopefully few prototypes,
21173     which can conflict with char $ac_func (); below.
21174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21175     <limits.h> exists even on freestanding compilers.  */
21176
21177 #ifdef __STDC__
21178 # include <limits.h>
21179 #else
21180 # include <assert.h>
21181 #endif
21182
21183 #undef $ac_func
21184
21185 /* Override any GCC internal prototype to avoid an error.
21186    Use char because int might match the return type of a GCC
21187    builtin and then its argument prototype would still apply.  */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 char $ac_func ();
21192 /* The GNU C library defines this for functions which it implements
21193     to always fail with ENOSYS.  Some functions are actually named
21194     something starting with __ and the normal name is an alias.  */
21195 #if defined __stub_$ac_func || defined __stub___$ac_func
21196 choke me
21197 #endif
21198
21199 int
21200 main ()
21201 {
21202 return $ac_func ();
21203   ;
21204   return 0;
21205 }
21206 _ACEOF
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (ac_try="$ac_link"
21209 case "(($ac_try" in
21210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211   *) ac_try_echo=$ac_try;;
21212 esac
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214   (eval "$ac_link") 2>conftest.er1
21215   ac_status=$?
21216   grep -v '^ *+' conftest.er1 >conftest.err
21217   rm -f conftest.er1
21218   cat conftest.err >&5
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } &&
21221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21222   { (case "(($ac_try" in
21223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224   *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227   (eval "$ac_try") 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; } &&
21231          { ac_try='test -s conftest$ac_exeext'
21232   { (case "(($ac_try" in
21233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234   *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237   (eval "$ac_try") 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; }; then
21241   eval "$as_ac_var=yes"
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246         eval "$as_ac_var=no"
21247 fi
21248
21249 rm -f core conftest.err conftest.$ac_objext \
21250       conftest$ac_exeext conftest.$ac_ext
21251 fi
21252 ac_res=`eval echo '${'$as_ac_var'}'`
21253                { echo "$as_me:$LINENO: result: $ac_res" >&5
21254 echo "${ECHO_T}$ac_res" >&6; }
21255 if test `eval echo '${'$as_ac_var'}'` = yes; then
21256   cat >>confdefs.h <<_ACEOF
21257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21258 _ACEOF
21259
21260 fi
21261 done
21262
21263
21264 SHLIBEXT=$libltdl_cv_shlibext
21265
21266
21267 # Translate the various configuration directories and other basic
21268 # information into substitutions that will end up in Makefile.config.in
21269 # that these configured values can be used by the makefiles
21270 if test "${prefix}" = "NONE" ; then
21271   prefix="/usr/local"
21272 fi
21273 eval LLVM_PREFIX="${prefix}";
21274 eval LLVM_BINDIR="${prefix}/bin";
21275 eval LLVM_DATADIR="${prefix}/share/llvm";
21276 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21277 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21278 eval LLVM_INCLUDEDIR="${prefix}/include";
21279 eval LLVM_INFODIR="${prefix}/info";
21280 eval LLVM_MANDIR="${prefix}/man";
21281 LLVM_CONFIGTIME=`date`
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292 # Place the various directores into the config.h file as #defines so that we
21293 # can know about the installation paths within LLVM.
21294
21295 cat >>confdefs.h <<_ACEOF
21296 #define LLVM_PREFIX "$LLVM_PREFIX"
21297 _ACEOF
21298
21299
21300 cat >>confdefs.h <<_ACEOF
21301 #define LLVM_BINDIR "$LLVM_BINDIR"
21302 _ACEOF
21303
21304
21305 cat >>confdefs.h <<_ACEOF
21306 #define LLVM_DATADIR "$LLVM_DATADIR"
21307 _ACEOF
21308
21309
21310 cat >>confdefs.h <<_ACEOF
21311 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21312 _ACEOF
21313
21314
21315 cat >>confdefs.h <<_ACEOF
21316 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21317 _ACEOF
21318
21319
21320 cat >>confdefs.h <<_ACEOF
21321 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21322 _ACEOF
21323
21324
21325 cat >>confdefs.h <<_ACEOF
21326 #define LLVM_INFODIR "$LLVM_INFODIR"
21327 _ACEOF
21328
21329
21330 cat >>confdefs.h <<_ACEOF
21331 #define LLVM_MANDIR "$LLVM_MANDIR"
21332 _ACEOF
21333
21334
21335 cat >>confdefs.h <<_ACEOF
21336 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21337 _ACEOF
21338
21339
21340 cat >>confdefs.h <<_ACEOF
21341 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21342 _ACEOF
21343
21344
21345 # Determine which bindings to build.
21346 if test "$BINDINGS_TO_BUILD" = auto ; then
21347   BINDINGS_TO_BUILD=""
21348   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21349     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21350   fi
21351 fi
21352 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21353
21354
21355 # This isn't really configurey, but it avoids having to repeat the list in
21356 # other files.
21357 ALL_BINDINGS=ocaml
21358
21359
21360 # Do any work necessary to ensure that bindings have what they need.
21361 binding_prereqs_failed=0
21362 for a_binding in $BINDINGS_TO_BUILD ; do
21363   case "$a_binding" in
21364   ocaml)
21365     if test "x$OCAMLC" = x ; then
21366       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21367 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21368       binding_prereqs_failed=1
21369     fi
21370     if test "x$OCAMLDEP" = x ; then
21371       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21372 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21373       binding_prereqs_failed=1
21374     fi
21375     if test "x$OCAMLOPT" = x ; then
21376       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21377 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21378           fi
21379     if test "x$with_ocaml_libdir" != xauto ; then
21380       OCAML_LIBDIR=$with_ocaml_libdir
21381
21382     else
21383       ocaml_stdlib="`"$OCAMLC" -where`"
21384       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21385       then
21386         # ocaml stdlib is beneath our prefix; use stdlib
21387         OCAML_LIBDIR=$ocaml_stdlib
21388
21389       else
21390         # ocaml stdlib is outside our prefix; use libdir/ocaml
21391         OCAML_LIBDIR=${prefix}/lib/ocaml
21392
21393       fi
21394     fi
21395     ;;
21396   esac
21397 done
21398 if test "$binding_prereqs_failed" = 1 ; then
21399   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21400 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21401    { (exit 1); exit 1; }; }
21402 fi
21403
21404 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21405 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21406 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21407   echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409    ac_ext=cpp
21410 ac_cpp='$CXXCPP $CPPFLAGS'
21411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21414
21415   oldcxxflags="$CXXFLAGS"
21416   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21417   cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21424 int
21425 main ()
21426 {
21427 X<int>().f();
21428   ;
21429   return 0;
21430 }
21431 _ACEOF
21432 rm -f conftest.$ac_objext
21433 if { (ac_try="$ac_compile"
21434 case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_compile") 2>conftest.er1
21440   ac_status=$?
21441   grep -v '^ *+' conftest.er1 >conftest.err
21442   rm -f conftest.er1
21443   cat conftest.err >&5
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); } &&
21446          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21447   { (case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_try") 2>&5
21453   ac_status=$?
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); }; } &&
21456          { ac_try='test -s conftest.$ac_objext'
21457   { (case "(($ac_try" in
21458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459   *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462   (eval "$ac_try") 2>&5
21463   ac_status=$?
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); }; }; then
21466   llvm_cv_cxx_visibility_inlines_hidden=yes
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471         llvm_cv_cxx_visibility_inlines_hidden=no
21472 fi
21473
21474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21475   CXXFLAGS="$oldcxxflags"
21476   ac_ext=c
21477 ac_cpp='$CPP $CPPFLAGS'
21478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21481
21482
21483 fi
21484 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21485 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21486 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21487   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21488
21489 else
21490   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21491
21492 fi
21493
21494
21495 if test "$llvm_cv_link_use_r" = "yes" ; then
21496   RPATH="-Wl,-R"
21497 else
21498   RPATH="-Wl,-rpath"
21499 fi
21500
21501
21502 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21503   RDYNAMIC="-rdynamic"
21504 else
21505   RDYNAMIC=""
21506 fi
21507
21508
21509
21510
21511 ac_config_files="$ac_config_files Makefile.common"
21512
21513 ac_config_files="$ac_config_files Makefile.llvm.config"
21514
21515
21516 ac_config_commands="$ac_config_commands Makefile"
21517
21518
21519 ac_config_commands="$ac_config_commands lib/Makefile"
21520
21521
21522 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21523
21524
21525 ac_config_commands="$ac_config_commands tools/Makefile"
21526
21527
21528 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21529
21530
21531
21532 cat >confcache <<\_ACEOF
21533 # This file is a shell script that caches the results of configure
21534 # tests run on this system so they can be shared between configure
21535 # scripts and configure runs, see configure's option --config-cache.
21536 # It is not useful on other systems.  If it contains results you don't
21537 # want to keep, you may remove or edit it.
21538 #
21539 # config.status only pays attention to the cache file if you give it
21540 # the --recheck option to rerun configure.
21541 #
21542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21544 # following values.
21545
21546 _ACEOF
21547
21548 # The following way of writing the cache mishandles newlines in values,
21549 # but we know of no workaround that is simple, portable, and efficient.
21550 # So, we kill variables containing newlines.
21551 # Ultrix sh set writes to stderr and can't be redirected directly,
21552 # and sets the high bit in the cache file unless we assign to the vars.
21553 (
21554   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21555     eval ac_val=\$$ac_var
21556     case $ac_val in #(
21557     *${as_nl}*)
21558       case $ac_var in #(
21559       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21560 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21561       esac
21562       case $ac_var in #(
21563       _ | IFS | as_nl) ;; #(
21564       *) $as_unset $ac_var ;;
21565       esac ;;
21566     esac
21567   done
21568
21569   (set) 2>&1 |
21570     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21571     *${as_nl}ac_space=\ *)
21572       # `set' does not quote correctly, so add quotes (double-quote
21573       # substitution turns \\\\ into \\, and sed turns \\ into \).
21574       sed -n \
21575         "s/'/'\\\\''/g;
21576           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21577       ;; #(
21578     *)
21579       # `set' quotes correctly as required by POSIX, so do not add quotes.
21580       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21581       ;;
21582     esac |
21583     sort
21584 ) |
21585   sed '
21586      /^ac_cv_env_/b end
21587      t clear
21588      :clear
21589      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21590      t end
21591      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21592      :end' >>confcache
21593 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21594   if test -w "$cache_file"; then
21595     test "x$cache_file" != "x/dev/null" &&
21596       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21597 echo "$as_me: updating cache $cache_file" >&6;}
21598     cat confcache >$cache_file
21599   else
21600     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21601 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21602   fi
21603 fi
21604 rm -f confcache
21605
21606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21607 # Let make expand exec_prefix.
21608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21609
21610 # Transform confdefs.h into DEFS.
21611 # Protect against shell expansion while executing Makefile rules.
21612 # Protect against Makefile macro expansion.
21613 #
21614 # If the first sed substitution is executed (which looks for macros that
21615 # take arguments), then branch to the quote section.  Otherwise,
21616 # look for a macro that doesn't take arguments.
21617 ac_script='
21618 t clear
21619 :clear
21620 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21621 t quote
21622 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21623 t quote
21624 b any
21625 :quote
21626 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21627 s/\[/\\&/g
21628 s/\]/\\&/g
21629 s/\$/$$/g
21630 H
21631 :any
21632 ${
21633         g
21634         s/^\n//
21635         s/\n/ /g
21636         p
21637 }
21638 '
21639 DEFS=`sed -n "$ac_script" confdefs.h`
21640
21641
21642 ac_libobjs=
21643 ac_ltlibobjs=
21644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21645   # 1. Remove the extension, and $U if already installed.
21646   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21647   ac_i=`echo "$ac_i" | sed "$ac_script"`
21648   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21649   #    will be set to the directory where LIBOBJS objects are built.
21650   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21651   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21652 done
21653 LIBOBJS=$ac_libobjs
21654
21655 LTLIBOBJS=$ac_ltlibobjs
21656
21657
21658 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21659   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21660 Usually this means the macro was only invoked conditionally." >&5
21661 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21662 Usually this means the macro was only invoked conditionally." >&2;}
21663    { (exit 1); exit 1; }; }
21664 fi
21665 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21666   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21667 Usually this means the macro was only invoked conditionally." >&5
21668 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21669 Usually this means the macro was only invoked conditionally." >&2;}
21670    { (exit 1); exit 1; }; }
21671 fi
21672
21673 : ${CONFIG_STATUS=./config.status}
21674 ac_clean_files_save=$ac_clean_files
21675 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21676 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21677 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21678 cat >$CONFIG_STATUS <<_ACEOF
21679 #! $SHELL
21680 # Generated by $as_me.
21681 # Run this file to recreate the current configuration.
21682 # Compiler output produced by configure, useful for debugging
21683 # configure, is in config.log if it exists.
21684
21685 debug=false
21686 ac_cs_recheck=false
21687 ac_cs_silent=false
21688 SHELL=\${CONFIG_SHELL-$SHELL}
21689 _ACEOF
21690
21691 cat >>$CONFIG_STATUS <<\_ACEOF
21692 ## --------------------- ##
21693 ## M4sh Initialization.  ##
21694 ## --------------------- ##
21695
21696 # Be Bourne compatible
21697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21698   emulate sh
21699   NULLCMD=:
21700   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21701   # is contrary to our usage.  Disable this feature.
21702   alias -g '${1+"$@"}'='"$@"'
21703   setopt NO_GLOB_SUBST
21704 else
21705   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21706 fi
21707 BIN_SH=xpg4; export BIN_SH # for Tru64
21708 DUALCASE=1; export DUALCASE # for MKS sh
21709
21710
21711 # PATH needs CR
21712 # Avoid depending upon Character Ranges.
21713 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21714 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21715 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21716 as_cr_digits='0123456789'
21717 as_cr_alnum=$as_cr_Letters$as_cr_digits
21718
21719 # The user is always right.
21720 if test "${PATH_SEPARATOR+set}" != set; then
21721   echo "#! /bin/sh" >conf$$.sh
21722   echo  "exit 0"   >>conf$$.sh
21723   chmod +x conf$$.sh
21724   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21725     PATH_SEPARATOR=';'
21726   else
21727     PATH_SEPARATOR=:
21728   fi
21729   rm -f conf$$.sh
21730 fi
21731
21732 # Support unset when possible.
21733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21734   as_unset=unset
21735 else
21736   as_unset=false
21737 fi
21738
21739
21740 # IFS
21741 # We need space, tab and new line, in precisely that order.  Quoting is
21742 # there to prevent editors from complaining about space-tab.
21743 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21744 # splitting by setting IFS to empty value.)
21745 as_nl='
21746 '
21747 IFS=" ""        $as_nl"
21748
21749 # Find who we are.  Look in the path if we contain no directory separator.
21750 case $0 in
21751   *[\\/]* ) as_myself=$0 ;;
21752   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21753 for as_dir in $PATH
21754 do
21755   IFS=$as_save_IFS
21756   test -z "$as_dir" && as_dir=.
21757   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21758 done
21759 IFS=$as_save_IFS
21760
21761      ;;
21762 esac
21763 # We did not find ourselves, most probably we were run as `sh COMMAND'
21764 # in which case we are not to be found in the path.
21765 if test "x$as_myself" = x; then
21766   as_myself=$0
21767 fi
21768 if test ! -f "$as_myself"; then
21769   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21770   { (exit 1); exit 1; }
21771 fi
21772
21773 # Work around bugs in pre-3.0 UWIN ksh.
21774 for as_var in ENV MAIL MAILPATH
21775 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21776 done
21777 PS1='$ '
21778 PS2='> '
21779 PS4='+ '
21780
21781 # NLS nuisances.
21782 for as_var in \
21783   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21784   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21785   LC_TELEPHONE LC_TIME
21786 do
21787   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21788     eval $as_var=C; export $as_var
21789   else
21790     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21791   fi
21792 done
21793
21794 # Required to use basename.
21795 if expr a : '\(a\)' >/dev/null 2>&1 &&
21796    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21797   as_expr=expr
21798 else
21799   as_expr=false
21800 fi
21801
21802 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21803   as_basename=basename
21804 else
21805   as_basename=false
21806 fi
21807
21808
21809 # Name of the executable.
21810 as_me=`$as_basename -- "$0" ||
21811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21812          X"$0" : 'X\(//\)$' \| \
21813          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21814 echo X/"$0" |
21815     sed '/^.*\/\([^/][^/]*\)\/*$/{
21816             s//\1/
21817             q
21818           }
21819           /^X\/\(\/\/\)$/{
21820             s//\1/
21821             q
21822           }
21823           /^X\/\(\/\).*/{
21824             s//\1/
21825             q
21826           }
21827           s/.*/./; q'`
21828
21829 # CDPATH.
21830 $as_unset CDPATH
21831
21832
21833
21834   as_lineno_1=$LINENO
21835   as_lineno_2=$LINENO
21836   test "x$as_lineno_1" != "x$as_lineno_2" &&
21837   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21838
21839   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21840   # uniformly replaced by the line number.  The first 'sed' inserts a
21841   # line-number line after each line using $LINENO; the second 'sed'
21842   # does the real work.  The second script uses 'N' to pair each
21843   # line-number line with the line containing $LINENO, and appends
21844   # trailing '-' during substitution so that $LINENO is not a special
21845   # case at line end.
21846   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21847   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21848   # E. McMahon (1931-1989) for sed's syntax.  :-)
21849   sed -n '
21850     p
21851     /[$]LINENO/=
21852   ' <$as_myself |
21853     sed '
21854       s/[$]LINENO.*/&-/
21855       t lineno
21856       b
21857       :lineno
21858       N
21859       :loop
21860       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21861       t loop
21862       s/-\n.*//
21863     ' >$as_me.lineno &&
21864   chmod +x "$as_me.lineno" ||
21865     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21866    { (exit 1); exit 1; }; }
21867
21868   # Don't try to exec as it changes $[0], causing all sort of problems
21869   # (the dirname of $[0] is not the place where we might find the
21870   # original and so on.  Autoconf is especially sensitive to this).
21871   . "./$as_me.lineno"
21872   # Exit status is that of the last command.
21873   exit
21874 }
21875
21876
21877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21878   as_dirname=dirname
21879 else
21880   as_dirname=false
21881 fi
21882
21883 ECHO_C= ECHO_N= ECHO_T=
21884 case `echo -n x` in
21885 -n*)
21886   case `echo 'x\c'` in
21887   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21888   *)   ECHO_C='\c';;
21889   esac;;
21890 *)
21891   ECHO_N='-n';;
21892 esac
21893
21894 if expr a : '\(a\)' >/dev/null 2>&1 &&
21895    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21896   as_expr=expr
21897 else
21898   as_expr=false
21899 fi
21900
21901 rm -f conf$$ conf$$.exe conf$$.file
21902 if test -d conf$$.dir; then
21903   rm -f conf$$.dir/conf$$.file
21904 else
21905   rm -f conf$$.dir
21906   mkdir conf$$.dir
21907 fi
21908 echo >conf$$.file
21909 if ln -s conf$$.file conf$$ 2>/dev/null; then
21910   as_ln_s='ln -s'
21911   # ... but there are two gotchas:
21912   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21913   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21914   # In both cases, we have to default to `cp -p'.
21915   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21916     as_ln_s='cp -p'
21917 elif ln conf$$.file conf$$ 2>/dev/null; then
21918   as_ln_s=ln
21919 else
21920   as_ln_s='cp -p'
21921 fi
21922 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21923 rmdir conf$$.dir 2>/dev/null
21924
21925 if mkdir -p . 2>/dev/null; then
21926   as_mkdir_p=:
21927 else
21928   test -d ./-p && rmdir ./-p
21929   as_mkdir_p=false
21930 fi
21931
21932 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21933 # systems may use methods other than mode bits to determine executability.
21934 cat >conf$$.file <<_ASEOF
21935 #! /bin/sh
21936 exit 0
21937 _ASEOF
21938 chmod +x conf$$.file
21939 if test -x conf$$.file >/dev/null 2>&1; then
21940   as_executable_p="test -x"
21941 else
21942   as_executable_p=:
21943 fi
21944 rm -f conf$$.file
21945
21946 # Sed expression to map a string onto a valid CPP name.
21947 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21948
21949 # Sed expression to map a string onto a valid variable name.
21950 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21951
21952
21953 exec 6>&1
21954
21955 # Save the log message, to keep $[0] and so on meaningful, and to
21956 # report actual input values of CONFIG_FILES etc. instead of their
21957 # values after options handling.
21958 ac_log="
21959 This file was extended by [SAMPLE] $as_me [x.xx], which was
21960 generated by GNU Autoconf 2.60.  Invocation command line was
21961
21962   CONFIG_FILES    = $CONFIG_FILES
21963   CONFIG_HEADERS  = $CONFIG_HEADERS
21964   CONFIG_LINKS    = $CONFIG_LINKS
21965   CONFIG_COMMANDS = $CONFIG_COMMANDS
21966   $ $0 $@
21967
21968 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21969 "
21970
21971 _ACEOF
21972
21973 cat >>$CONFIG_STATUS <<_ACEOF
21974 # Files that config.status was made for.
21975 config_files="$ac_config_files"
21976 config_commands="$ac_config_commands"
21977
21978 _ACEOF
21979
21980 cat >>$CONFIG_STATUS <<\_ACEOF
21981 ac_cs_usage="\
21982 \`$as_me' instantiates files from templates according to the
21983 current configuration.
21984
21985 Usage: $0 [OPTIONS] [FILE]...
21986
21987   -h, --help       print this help, then exit
21988   -V, --version    print version number, then exit
21989   -q, --quiet      do not print progress messages
21990   -d, --debug      don't remove temporary files
21991       --recheck    update $as_me by reconfiguring in the same conditions
21992   --file=FILE[:TEMPLATE]
21993                    instantiate the configuration file FILE
21994
21995 Configuration files:
21996 $config_files
21997
21998 Configuration commands:
21999 $config_commands
22000
22001 Report bugs to <bug-autoconf@gnu.org>."
22002
22003 _ACEOF
22004 cat >>$CONFIG_STATUS <<_ACEOF
22005 ac_cs_version="\\
22006 [SAMPLE] config.status [x.xx]
22007 configured by $0, generated by GNU Autoconf 2.60,
22008   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22009
22010 Copyright (C) 2006 Free Software Foundation, Inc.
22011 This config.status script is free software; the Free Software Foundation
22012 gives unlimited permission to copy, distribute and modify it."
22013
22014 ac_pwd='$ac_pwd'
22015 srcdir='$srcdir'
22016 INSTALL='$INSTALL'
22017 _ACEOF
22018
22019 cat >>$CONFIG_STATUS <<\_ACEOF
22020 # If no file are specified by the user, then we need to provide default
22021 # value.  By we need to know if files were specified by the user.
22022 ac_need_defaults=:
22023 while test $# != 0
22024 do
22025   case $1 in
22026   --*=*)
22027     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22028     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22029     ac_shift=:
22030     ;;
22031   *)
22032     ac_option=$1
22033     ac_optarg=$2
22034     ac_shift=shift
22035     ;;
22036   esac
22037
22038   case $ac_option in
22039   # Handling of the options.
22040   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22041     ac_cs_recheck=: ;;
22042   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22043     echo "$ac_cs_version"; exit ;;
22044   --debug | --debu | --deb | --de | --d | -d )
22045     debug=: ;;
22046   --file | --fil | --fi | --f )
22047     $ac_shift
22048     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22049     ac_need_defaults=false;;
22050   --he | --h |  --help | --hel | -h )
22051     echo "$ac_cs_usage"; exit ;;
22052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22053   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22054     ac_cs_silent=: ;;
22055
22056   # This is an error.
22057   -*) { echo "$as_me: error: unrecognized option: $1
22058 Try \`$0 --help' for more information." >&2
22059    { (exit 1); exit 1; }; } ;;
22060
22061   *) ac_config_targets="$ac_config_targets $1"
22062      ac_need_defaults=false ;;
22063
22064   esac
22065   shift
22066 done
22067
22068 ac_configure_extra_args=
22069
22070 if $ac_cs_silent; then
22071   exec 6>/dev/null
22072   ac_configure_extra_args="$ac_configure_extra_args --silent"
22073 fi
22074
22075 _ACEOF
22076 cat >>$CONFIG_STATUS <<_ACEOF
22077 if \$ac_cs_recheck; then
22078   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22079   CONFIG_SHELL=$SHELL
22080   export CONFIG_SHELL
22081   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22082 fi
22083
22084 _ACEOF
22085 cat >>$CONFIG_STATUS <<\_ACEOF
22086 exec 5>>config.log
22087 {
22088   echo
22089   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22090 ## Running $as_me. ##
22091 _ASBOX
22092   echo "$ac_log"
22093 } >&5
22094
22095 _ACEOF
22096 cat >>$CONFIG_STATUS <<_ACEOF
22097 #
22098 # INIT-COMMANDS
22099 #
22100 llvm_src="${LLVM_SRC}"
22101
22102 _ACEOF
22103
22104 cat >>$CONFIG_STATUS <<\_ACEOF
22105
22106 # Handling of arguments.
22107 for ac_config_target in $ac_config_targets
22108 do
22109   case $ac_config_target in
22110     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22111     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
22112     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
22113     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22114     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22115     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
22116     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22117     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
22118
22119   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22120 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22121    { (exit 1); exit 1; }; };;
22122   esac
22123 done
22124
22125
22126 # If the user did not use the arguments to specify the items to instantiate,
22127 # then the envvar interface is used.  Set only those that are not.
22128 # We use the long form for the default assignment because of an extremely
22129 # bizarre bug on SunOS 4.1.3.
22130 if $ac_need_defaults; then
22131   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22132   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22133 fi
22134
22135 # Have a temporary directory for convenience.  Make it in the build tree
22136 # simply because there is no reason against having it here, and in addition,
22137 # creating and moving files from /tmp can sometimes cause problems.
22138 # Hook for its removal unless debugging.
22139 # Note that there is a small window in which the directory will not be cleaned:
22140 # after its creation but before its name has been assigned to `$tmp'.
22141 $debug ||
22142 {
22143   tmp=
22144   trap 'exit_status=$?
22145   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22146 ' 0
22147   trap '{ (exit 1); exit 1; }' 1 2 13 15
22148 }
22149 # Create a (secure) tmp directory for tmp files.
22150
22151 {
22152   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22153   test -n "$tmp" && test -d "$tmp"
22154 }  ||
22155 {
22156   tmp=./conf$$-$RANDOM
22157   (umask 077 && mkdir "$tmp")
22158 } ||
22159 {
22160    echo "$me: cannot create a temporary directory in ." >&2
22161    { (exit 1); exit 1; }
22162 }
22163
22164 #
22165 # Set up the sed scripts for CONFIG_FILES section.
22166 #
22167
22168 # No need to generate the scripts if there are no CONFIG_FILES.
22169 # This happens for instance when ./config.status config.h
22170 if test -n "$CONFIG_FILES"; then
22171
22172 _ACEOF
22173
22174
22175
22176 ac_delim='%!_!# '
22177 for ac_last_try in false false false false false :; do
22178   cat >conf$$subs.sed <<_ACEOF
22179 SHELL!$SHELL$ac_delim
22180 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22181 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22182 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22183 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22184 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22185 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22186 exec_prefix!$exec_prefix$ac_delim
22187 prefix!$prefix$ac_delim
22188 program_transform_name!$program_transform_name$ac_delim
22189 bindir!$bindir$ac_delim
22190 sbindir!$sbindir$ac_delim
22191 libexecdir!$libexecdir$ac_delim
22192 datarootdir!$datarootdir$ac_delim
22193 datadir!$datadir$ac_delim
22194 sysconfdir!$sysconfdir$ac_delim
22195 sharedstatedir!$sharedstatedir$ac_delim
22196 localstatedir!$localstatedir$ac_delim
22197 includedir!$includedir$ac_delim
22198 oldincludedir!$oldincludedir$ac_delim
22199 docdir!$docdir$ac_delim
22200 infodir!$infodir$ac_delim
22201 htmldir!$htmldir$ac_delim
22202 dvidir!$dvidir$ac_delim
22203 pdfdir!$pdfdir$ac_delim
22204 psdir!$psdir$ac_delim
22205 libdir!$libdir$ac_delim
22206 localedir!$localedir$ac_delim
22207 mandir!$mandir$ac_delim
22208 DEFS!$DEFS$ac_delim
22209 ECHO_C!$ECHO_C$ac_delim
22210 ECHO_N!$ECHO_N$ac_delim
22211 ECHO_T!$ECHO_T$ac_delim
22212 LIBS!$LIBS$ac_delim
22213 build_alias!$build_alias$ac_delim
22214 host_alias!$host_alias$ac_delim
22215 target_alias!$target_alias$ac_delim
22216 LLVM_SRC!$LLVM_SRC$ac_delim
22217 LLVM_OBJ!$LLVM_OBJ$ac_delim
22218 LLVM_VERSION!$LLVM_VERSION$ac_delim
22219 CC!$CC$ac_delim
22220 CFLAGS!$CFLAGS$ac_delim
22221 LDFLAGS!$LDFLAGS$ac_delim
22222 CPPFLAGS!$CPPFLAGS$ac_delim
22223 ac_ct_CC!$ac_ct_CC$ac_delim
22224 EXEEXT!$EXEEXT$ac_delim
22225 OBJEXT!$OBJEXT$ac_delim
22226 CXX!$CXX$ac_delim
22227 CXXFLAGS!$CXXFLAGS$ac_delim
22228 ac_ct_CXX!$ac_ct_CXX$ac_delim
22229 CPP!$CPP$ac_delim
22230 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22231 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22232 subdirs!$subdirs$ac_delim
22233 build!$build$ac_delim
22234 build_cpu!$build_cpu$ac_delim
22235 build_vendor!$build_vendor$ac_delim
22236 build_os!$build_os$ac_delim
22237 host!$host$ac_delim
22238 host_cpu!$host_cpu$ac_delim
22239 host_vendor!$host_vendor$ac_delim
22240 host_os!$host_os$ac_delim
22241 target!$target$ac_delim
22242 target_cpu!$target_cpu$ac_delim
22243 target_vendor!$target_vendor$ac_delim
22244 target_os!$target_os$ac_delim
22245 OS!$OS$ac_delim
22246 HOST_OS!$HOST_OS$ac_delim
22247 TARGET_OS!$TARGET_OS$ac_delim
22248 LINKALL!$LINKALL$ac_delim
22249 NOLINKALL!$NOLINKALL$ac_delim
22250 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22251 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22252 ARCH!$ARCH$ac_delim
22253 ENDIAN!$ENDIAN$ac_delim
22254 GREP!$GREP$ac_delim
22255 EGREP!$EGREP$ac_delim
22256 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22257 BUILD_CC!$BUILD_CC$ac_delim
22258 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22259 BUILD_CXX!$BUILD_CXX$ac_delim
22260 CVSBUILD!$CVSBUILD$ac_delim
22261 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22262 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22263 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22264 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22265 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22266 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22267 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22268 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22269 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22270 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22271 JIT!$JIT$ac_delim
22272 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22273 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22274 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22275 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22276 _ACEOF
22277
22278   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22279     break
22280   elif $ac_last_try; then
22281     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22282 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22283    { (exit 1); exit 1; }; }
22284   else
22285     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22286   fi
22287 done
22288
22289 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22290 if test -n "$ac_eof"; then
22291   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22292   ac_eof=`expr $ac_eof + 1`
22293 fi
22294
22295 cat >>$CONFIG_STATUS <<_ACEOF
22296 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22298 _ACEOF
22299 sed '
22300 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22301 s/^/s,@/; s/!/@,|#_!!_#|/
22302 :n
22303 t n
22304 s/'"$ac_delim"'$/,g/; t
22305 s/$/\\/; p
22306 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22307 ' >>$CONFIG_STATUS <conf$$subs.sed
22308 rm -f conf$$subs.sed
22309 cat >>$CONFIG_STATUS <<_ACEOF
22310 CEOF$ac_eof
22311 _ACEOF
22312
22313
22314 ac_delim='%!_!# '
22315 for ac_last_try in false false false false false :; do
22316   cat >conf$$subs.sed <<_ACEOF
22317 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22318 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22319 ENABLE_PIC!$ENABLE_PIC$ac_delim
22320 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22321 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22322 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22323 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22324 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22325 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22326 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22327 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22328 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22329 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22330 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22331 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22332 NM!$NM$ac_delim
22333 ifGNUmake!$ifGNUmake$ac_delim
22334 LN_S!$LN_S$ac_delim
22335 CMP!$CMP$ac_delim
22336 CP!$CP$ac_delim
22337 DATE!$DATE$ac_delim
22338 FIND!$FIND$ac_delim
22339 MKDIR!$MKDIR$ac_delim
22340 MV!$MV$ac_delim
22341 RANLIB!$RANLIB$ac_delim
22342 AR!$AR$ac_delim
22343 RM!$RM$ac_delim
22344 SED!$SED$ac_delim
22345 TAR!$TAR$ac_delim
22346 BINPWD!$BINPWD$ac_delim
22347 GRAPHVIZ!$GRAPHVIZ$ac_delim
22348 DOT!$DOT$ac_delim
22349 FDP!$FDP$ac_delim
22350 NEATO!$NEATO$ac_delim
22351 TWOPI!$TWOPI$ac_delim
22352 CIRCO!$CIRCO$ac_delim
22353 GV!$GV$ac_delim
22354 DOTTY!$DOTTY$ac_delim
22355 XDOT_PY!$XDOT_PY$ac_delim
22356 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22357 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22358 INSTALL_DATA!$INSTALL_DATA$ac_delim
22359 BZIP2!$BZIP2$ac_delim
22360 CAT!$CAT$ac_delim
22361 DOXYGEN!$DOXYGEN$ac_delim
22362 GROFF!$GROFF$ac_delim
22363 GZIPBIN!$GZIPBIN$ac_delim
22364 POD2HTML!$POD2HTML$ac_delim
22365 POD2MAN!$POD2MAN$ac_delim
22366 PDFROFF!$PDFROFF$ac_delim
22367 RUNTEST!$RUNTEST$ac_delim
22368 TCLSH!$TCLSH$ac_delim
22369 ZIP!$ZIP$ac_delim
22370 OCAMLC!$OCAMLC$ac_delim
22371 OCAMLOPT!$OCAMLOPT$ac_delim
22372 OCAMLDEP!$OCAMLDEP$ac_delim
22373 OCAMLDOC!$OCAMLDOC$ac_delim
22374 GAS!$GAS$ac_delim
22375 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22376 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22377 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22378 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22379 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22380 LIBADD_DL!$LIBADD_DL$ac_delim
22381 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22382 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22383 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22384 USE_UDIS86!$USE_UDIS86$ac_delim
22385 USE_OPROFILE!$USE_OPROFILE$ac_delim
22386 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22387 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22388 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22389 MMAP_FILE!$MMAP_FILE$ac_delim
22390 SHLIBEXT!$SHLIBEXT$ac_delim
22391 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22392 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22393 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22394 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22395 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22396 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22397 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22398 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22399 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22400 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22401 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22402 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22403 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22404 RPATH!$RPATH$ac_delim
22405 RDYNAMIC!$RDYNAMIC$ac_delim
22406 LIBOBJS!$LIBOBJS$ac_delim
22407 LTLIBOBJS!$LTLIBOBJS$ac_delim
22408 _ACEOF
22409
22410   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22411     break
22412   elif $ac_last_try; then
22413     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22414 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22415    { (exit 1); exit 1; }; }
22416   else
22417     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22418   fi
22419 done
22420
22421 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22422 if test -n "$ac_eof"; then
22423   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22424   ac_eof=`expr $ac_eof + 1`
22425 fi
22426
22427 cat >>$CONFIG_STATUS <<_ACEOF
22428 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22430 _ACEOF
22431 sed '
22432 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22433 s/^/s,@/; s/!/@,|#_!!_#|/
22434 :n
22435 t n
22436 s/'"$ac_delim"'$/,g/; t
22437 s/$/\\/; p
22438 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22439 ' >>$CONFIG_STATUS <conf$$subs.sed
22440 rm -f conf$$subs.sed
22441 cat >>$CONFIG_STATUS <<_ACEOF
22442 :end
22443 s/|#_!!_#|//g
22444 CEOF$ac_eof
22445 _ACEOF
22446
22447
22448 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22449 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22450 # trailing colons and then remove the whole line if VPATH becomes empty
22451 # (actually we leave an empty line to preserve line numbers).
22452 if test "x$srcdir" = x.; then
22453   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22454 s/:*\$(srcdir):*/:/
22455 s/:*\${srcdir}:*/:/
22456 s/:*@srcdir@:*/:/
22457 s/^\([^=]*=[     ]*\):*/\1/
22458 s/:*$//
22459 s/^[^=]*=[       ]*$//
22460 }'
22461 fi
22462
22463 cat >>$CONFIG_STATUS <<\_ACEOF
22464 fi # test -n "$CONFIG_FILES"
22465
22466
22467 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
22468 do
22469   case $ac_tag in
22470   :[FHLC]) ac_mode=$ac_tag; continue;;
22471   esac
22472   case $ac_mode$ac_tag in
22473   :[FHL]*:*);;
22474   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22475 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22476    { (exit 1); exit 1; }; };;
22477   :[FH]-) ac_tag=-:-;;
22478   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22479   esac
22480   ac_save_IFS=$IFS
22481   IFS=:
22482   set x $ac_tag
22483   IFS=$ac_save_IFS
22484   shift
22485   ac_file=$1
22486   shift
22487
22488   case $ac_mode in
22489   :L) ac_source=$1;;
22490   :[FH])
22491     ac_file_inputs=
22492     for ac_f
22493     do
22494       case $ac_f in
22495       -) ac_f="$tmp/stdin";;
22496       *) # Look for the file first in the build tree, then in the source tree
22497          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22498          # because $ac_f cannot contain `:'.
22499          test -f "$ac_f" ||
22500            case $ac_f in
22501            [\\/$]*) false;;
22502            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22503            esac ||
22504            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22505 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22506    { (exit 1); exit 1; }; };;
22507       esac
22508       ac_file_inputs="$ac_file_inputs $ac_f"
22509     done
22510
22511     # Let's still pretend it is `configure' which instantiates (i.e., don't
22512     # use $as_me), people would be surprised to read:
22513     #    /* config.h.  Generated by config.status.  */
22514     configure_input="Generated from "`IFS=:
22515           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22516     if test x"$ac_file" != x-; then
22517       configure_input="$ac_file.  $configure_input"
22518       { echo "$as_me:$LINENO: creating $ac_file" >&5
22519 echo "$as_me: creating $ac_file" >&6;}
22520     fi
22521
22522     case $ac_tag in
22523     *:-:* | *:-) cat >"$tmp/stdin";;
22524     esac
22525     ;;
22526   esac
22527
22528   ac_dir=`$as_dirname -- "$ac_file" ||
22529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22530          X"$ac_file" : 'X\(//\)[^/]' \| \
22531          X"$ac_file" : 'X\(//\)$' \| \
22532          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22533 echo X"$ac_file" |
22534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22535             s//\1/
22536             q
22537           }
22538           /^X\(\/\/\)[^/].*/{
22539             s//\1/
22540             q
22541           }
22542           /^X\(\/\/\)$/{
22543             s//\1/
22544             q
22545           }
22546           /^X\(\/\).*/{
22547             s//\1/
22548             q
22549           }
22550           s/.*/./; q'`
22551   { as_dir="$ac_dir"
22552   case $as_dir in #(
22553   -*) as_dir=./$as_dir;;
22554   esac
22555   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22556     as_dirs=
22557     while :; do
22558       case $as_dir in #(
22559       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22560       *) as_qdir=$as_dir;;
22561       esac
22562       as_dirs="'$as_qdir' $as_dirs"
22563       as_dir=`$as_dirname -- "$as_dir" ||
22564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565          X"$as_dir" : 'X\(//\)[^/]' \| \
22566          X"$as_dir" : 'X\(//\)$' \| \
22567          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22568 echo X"$as_dir" |
22569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22570             s//\1/
22571             q
22572           }
22573           /^X\(\/\/\)[^/].*/{
22574             s//\1/
22575             q
22576           }
22577           /^X\(\/\/\)$/{
22578             s//\1/
22579             q
22580           }
22581           /^X\(\/\).*/{
22582             s//\1/
22583             q
22584           }
22585           s/.*/./; q'`
22586       test -d "$as_dir" && break
22587     done
22588     test -z "$as_dirs" || eval "mkdir $as_dirs"
22589   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22590 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22591    { (exit 1); exit 1; }; }; }
22592   ac_builddir=.
22593
22594 case "$ac_dir" in
22595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22596 *)
22597   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22598   # A ".." for each directory in $ac_dir_suffix.
22599   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22600   case $ac_top_builddir_sub in
22601   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22603   esac ;;
22604 esac
22605 ac_abs_top_builddir=$ac_pwd
22606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22607 # for backward compatibility:
22608 ac_top_builddir=$ac_top_build_prefix
22609
22610 case $srcdir in
22611   .)  # We are building in place.
22612     ac_srcdir=.
22613     ac_top_srcdir=$ac_top_builddir_sub
22614     ac_abs_top_srcdir=$ac_pwd ;;
22615   [\\/]* | ?:[\\/]* )  # Absolute name.
22616     ac_srcdir=$srcdir$ac_dir_suffix;
22617     ac_top_srcdir=$srcdir
22618     ac_abs_top_srcdir=$srcdir ;;
22619   *) # Relative name.
22620     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22621     ac_top_srcdir=$ac_top_build_prefix$srcdir
22622     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22623 esac
22624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22625
22626
22627   case $ac_mode in
22628   :F)
22629   #
22630   # CONFIG_FILE
22631   #
22632
22633   case $INSTALL in
22634   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22635   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22636   esac
22637 _ACEOF
22638
22639 cat >>$CONFIG_STATUS <<\_ACEOF
22640 # If the template does not know about datarootdir, expand it.
22641 # FIXME: This hack should be removed a few years after 2.60.
22642 ac_datarootdir_hack=; ac_datarootdir_seen=
22643
22644 case `sed -n '/datarootdir/ {
22645   p
22646   q
22647 }
22648 /@datadir@/p
22649 /@docdir@/p
22650 /@infodir@/p
22651 /@localedir@/p
22652 /@mandir@/p
22653 ' $ac_file_inputs` in
22654 *datarootdir*) ac_datarootdir_seen=yes;;
22655 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22656   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22657 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22658 _ACEOF
22659 cat >>$CONFIG_STATUS <<_ACEOF
22660   ac_datarootdir_hack='
22661   s&@datadir@&$datadir&g
22662   s&@docdir@&$docdir&g
22663   s&@infodir@&$infodir&g
22664   s&@localedir@&$localedir&g
22665   s&@mandir@&$mandir&g
22666     s&\\\${datarootdir}&$datarootdir&g' ;;
22667 esac
22668 _ACEOF
22669
22670 # Neutralize VPATH when `$srcdir' = `.'.
22671 # Shell code in configure.ac might set extrasub.
22672 # FIXME: do we really want to maintain this feature?
22673 cat >>$CONFIG_STATUS <<_ACEOF
22674   sed "$ac_vpsub
22675 $extrasub
22676 _ACEOF
22677 cat >>$CONFIG_STATUS <<\_ACEOF
22678 :t
22679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22680 s&@configure_input@&$configure_input&;t t
22681 s&@top_builddir@&$ac_top_builddir_sub&;t t
22682 s&@srcdir@&$ac_srcdir&;t t
22683 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22684 s&@top_srcdir@&$ac_top_srcdir&;t t
22685 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22686 s&@builddir@&$ac_builddir&;t t
22687 s&@abs_builddir@&$ac_abs_builddir&;t t
22688 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22689 s&@INSTALL@&$ac_INSTALL&;t t
22690 $ac_datarootdir_hack
22691 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22692
22693 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22694   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22695   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22696   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22697 which seems to be undefined.  Please make sure it is defined." >&5
22698 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22699 which seems to be undefined.  Please make sure it is defined." >&2;}
22700
22701   rm -f "$tmp/stdin"
22702   case $ac_file in
22703   -) cat "$tmp/out"; rm -f "$tmp/out";;
22704   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22705   esac
22706  ;;
22707
22708
22709   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22710 echo "$as_me: executing $ac_file commands" >&6;}
22711  ;;
22712   esac
22713
22714
22715   case $ac_file$ac_mode in
22716     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22717    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22718     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22719    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22720     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22721    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22722     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22723    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22724     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22725    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22726
22727   esac
22728 done # for ac_tag
22729
22730
22731 { (exit 0); exit 0; }
22732 _ACEOF
22733 chmod +x $CONFIG_STATUS
22734 ac_clean_files=$ac_clean_files_save
22735
22736
22737 # configure is writing to config.log, and then calls config.status.
22738 # config.status does its own redirection, appending to config.log.
22739 # Unfortunately, on DOS this fails, as config.log is still kept open
22740 # by configure, so config.status won't be able to write to it; its
22741 # output is simply discarded.  So we exec the FD to /dev/null,
22742 # effectively closing config.log, so it can be properly (re)opened and
22743 # appended to by config.status.  When coming back to configure, we
22744 # need to make the FD available again.
22745 if test "$no_create" != yes; then
22746   ac_cs_success=:
22747   ac_config_status_args=
22748   test "$silent" = yes &&
22749     ac_config_status_args="$ac_config_status_args --quiet"
22750   exec 5>/dev/null
22751   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22752   exec 5>>config.log
22753   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22754   # would make configure fail if this is the last instruction.
22755   $ac_cs_success || { (exit 1); exit 1; }
22756 fi
22757
22758 #
22759 # CONFIG_SUBDIRS section.
22760 #
22761 if test "$no_recursion" != yes; then
22762
22763   # Remove --cache-file and --srcdir arguments so they do not pile up.
22764   ac_sub_configure_args=
22765   ac_prev=
22766   eval "set x $ac_configure_args"
22767   shift
22768   for ac_arg
22769   do
22770     if test -n "$ac_prev"; then
22771       ac_prev=
22772       continue
22773     fi
22774     case $ac_arg in
22775     -cache-file | --cache-file | --cache-fil | --cache-fi \
22776     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22777       ac_prev=cache_file ;;
22778     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22779     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22780     | --c=*)
22781       ;;
22782     --config-cache | -C)
22783       ;;
22784     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22785       ac_prev=srcdir ;;
22786     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22787       ;;
22788     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22789       ac_prev=prefix ;;
22790     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22791       ;;
22792     *)
22793       case $ac_arg in
22794       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22795       esac
22796       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22797     esac
22798   done
22799
22800   # Always prepend --prefix to ensure using the same prefix
22801   # in subdir configurations.
22802   ac_arg="--prefix=$prefix"
22803   case $ac_arg in
22804   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22805   esac
22806   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22807
22808   ac_popdir=`pwd`
22809   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22810
22811     # Do not complain, so a configure script can configure whichever
22812     # parts of a large source tree are present.
22813     test -d "$srcdir/$ac_dir" || continue
22814
22815     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22816     echo "$as_me:$LINENO: $ac_msg" >&5
22817     echo "$ac_msg" >&6
22818     { as_dir="$ac_dir"
22819   case $as_dir in #(
22820   -*) as_dir=./$as_dir;;
22821   esac
22822   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22823     as_dirs=
22824     while :; do
22825       case $as_dir in #(
22826       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22827       *) as_qdir=$as_dir;;
22828       esac
22829       as_dirs="'$as_qdir' $as_dirs"
22830       as_dir=`$as_dirname -- "$as_dir" ||
22831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22832          X"$as_dir" : 'X\(//\)[^/]' \| \
22833          X"$as_dir" : 'X\(//\)$' \| \
22834          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22835 echo X"$as_dir" |
22836     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22837             s//\1/
22838             q
22839           }
22840           /^X\(\/\/\)[^/].*/{
22841             s//\1/
22842             q
22843           }
22844           /^X\(\/\/\)$/{
22845             s//\1/
22846             q
22847           }
22848           /^X\(\/\).*/{
22849             s//\1/
22850             q
22851           }
22852           s/.*/./; q'`
22853       test -d "$as_dir" && break
22854     done
22855     test -z "$as_dirs" || eval "mkdir $as_dirs"
22856   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22857 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22858    { (exit 1); exit 1; }; }; }
22859     ac_builddir=.
22860
22861 case "$ac_dir" in
22862 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22863 *)
22864   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22865   # A ".." for each directory in $ac_dir_suffix.
22866   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22867   case $ac_top_builddir_sub in
22868   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22869   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22870   esac ;;
22871 esac
22872 ac_abs_top_builddir=$ac_pwd
22873 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22874 # for backward compatibility:
22875 ac_top_builddir=$ac_top_build_prefix
22876
22877 case $srcdir in
22878   .)  # We are building in place.
22879     ac_srcdir=.
22880     ac_top_srcdir=$ac_top_builddir_sub
22881     ac_abs_top_srcdir=$ac_pwd ;;
22882   [\\/]* | ?:[\\/]* )  # Absolute name.
22883     ac_srcdir=$srcdir$ac_dir_suffix;
22884     ac_top_srcdir=$srcdir
22885     ac_abs_top_srcdir=$srcdir ;;
22886   *) # Relative name.
22887     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22888     ac_top_srcdir=$ac_top_build_prefix$srcdir
22889     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22890 esac
22891 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22892
22893
22894     cd "$ac_dir"
22895
22896     # Check for guested configure; otherwise get Cygnus style configure.
22897     if test -f "$ac_srcdir/configure.gnu"; then
22898       ac_sub_configure=$ac_srcdir/configure.gnu
22899     elif test -f "$ac_srcdir/configure"; then
22900       ac_sub_configure=$ac_srcdir/configure
22901     elif test -f "$ac_srcdir/configure.in"; then
22902       # This should be Cygnus configure.
22903       ac_sub_configure=$ac_aux_dir/configure
22904     else
22905       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22906 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22907       ac_sub_configure=
22908     fi
22909
22910     # The recursion is here.
22911     if test -n "$ac_sub_configure"; then
22912       # Make the cache file name correct relative to the subdirectory.
22913       case $cache_file in
22914       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22915       *) # Relative name.
22916         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22917       esac
22918
22919       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22920 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22921       # The eval makes quoting arguments work.
22922       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22923            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22924         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22925 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22926    { (exit 1); exit 1; }; }
22927     fi
22928
22929     cd "$ac_popdir"
22930   done
22931 fi
22932