use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJIT
[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_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 NM
713 ifGNUmake
714 LN_S
715 CMP
716 CP
717 DATE
718 FIND
719 MKDIR
720 MV
721 RANLIB
722 AR
723 RM
724 SED
725 TAR
726 BINPWD
727 GRAPHVIZ
728 DOT
729 FDP
730 NEATO
731 TWOPI
732 CIRCO
733 GV
734 DOTTY
735 XDOT_PY
736 PERL
737 HAVE_PERL
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 USE_UDIS86
766 USE_OPROFILE
767 HAVE_PTHREAD
768 HUGE_VAL_SANITY
769 MMAP_FILE
770 SHLIBEXT
771 SHLIBPATH_VAR
772 LLVM_PREFIX
773 LLVM_BINDIR
774 LLVM_LIBDIR
775 LLVM_DATADIR
776 LLVM_DOCSDIR
777 LLVM_ETCDIR
778 LLVM_INCLUDEDIR
779 LLVM_INFODIR
780 LLVM_MANDIR
781 LLVM_CONFIGTIME
782 BINDINGS_TO_BUILD
783 ALL_BINDINGS
784 OCAML_LIBDIR
785 ENABLE_VISIBILITY_INLINES_HIDDEN
786 RPATH
787 RDYNAMIC
788 LIBOBJS
789 LTLIBOBJS'
790 ac_subst_files=''
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP'
802 ac_subdirs_all='tools/polly'
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854   # If the previous option needs an argument, assign it.
855   if test -n "$ac_prev"; then
856     eval $ac_prev=\$ac_option
857     ac_prev=
858     continue
859   fi
860
861   case $ac_option in
862   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911     eval enable_$ac_feature=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package| sed 's/-/_/g'`
1127     eval with_$ac_package=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133       { echo "$as_me: error: invalid package name: $ac_package" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_package=`echo $ac_package | sed 's/-/_/g'`
1136     eval with_$ac_package=no ;;
1137
1138   --x)
1139     # Obsolete; use --with-x.
1140     with_x=yes ;;
1141
1142   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143   | --x-incl | --x-inc | --x-in | --x-i)
1144     ac_prev=x_includes ;;
1145   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147     x_includes=$ac_optarg ;;
1148
1149   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151     ac_prev=x_libraries ;;
1152   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154     x_libraries=$ac_optarg ;;
1155
1156   -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158    { (exit 1); exit 1; }; }
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166    { (exit 1); exit 1; }; }
1167     eval $ac_envvar=\$ac_optarg
1168     export $ac_envvar ;;
1169
1170   *)
1171     # FIXME: should be removed in autoconf 3.0.
1172     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176     ;;
1177
1178   esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183   { echo "$as_me: error: missing argument to $ac_option" >&2
1184    { (exit 1); exit 1; }; }
1185 fi
1186
1187 # Be sure to have absolute directory names.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199    { (exit 1); exit 1; }; }
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used." >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   { echo "$as_me: error: Working directory cannot be determined" >&2
1230    { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232   { echo "$as_me: error: pwd does not report name of working directory" >&2
1233    { (exit 1); exit 1; }; }
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238   ac_srcdir_defaulted=yes
1239   # Try the directory containing this script, then the parent directory.
1240   ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242          X"$0" : 'X\(//\)[^/]' \| \
1243          X"$0" : 'X\(//\)$' \| \
1244          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 echo X"$0" |
1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)[^/].*/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\).*/{
1259             s//\1/
1260             q
1261           }
1262           s/.*/./; q'`
1263   srcdir=$ac_confdir
1264   if test ! -r "$srcdir/$ac_unique_file"; then
1265     srcdir=..
1266   fi
1267 else
1268   ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278    { (exit 1); exit 1; }; }
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR           user executables [EPREFIX/bin]
1339   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR       program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR           object code libraries [EPREFIX/lib]
1345   --includedir=DIR       C header files [PREFIX/include]
1346   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR          info documentation [DATAROOTDIR/info]
1350   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR           man documentation [DATAROOTDIR/man]
1352   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1353   --htmldir=DIR          html documentation [DOCDIR]
1354   --dvidir=DIR           dvi documentation [DOCDIR]
1355   --pdfdir=DIR           pdf documentation [DOCDIR]
1356   --psdir=DIR            ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364   --target=TARGET   configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --enable-polly          Use polly if available (default is YES)
1378   --enable-optimized      Compile with optimizations enabled (default is NO)
1379   --enable-profiling      Compile with profiling enabled (default is NO)
1380   --enable-assertions     Compile with assertion checks enabled (default is
1381                           YES)
1382   --enable-expensive-checks
1383                           Compile with expensive debug checks enabled (default
1384                           is NO)
1385   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1386                           NO)
1387   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1388                           optimization is on and YES if it's off)
1389   --enable-jit            Enable Just In Time Compiling (default is YES)
1390   --enable-docs           Build documents (default is YES)
1391   --enable-doxygen        Build doxygen documentation (default is NO)
1392   --enable-threads        Use threads if available (default is YES)
1393   --enable-pthreads       Use pthreads if available (default is YES)
1394   --enable-pic            Build LLVM with Position Independent Code (default
1395                           is YES)
1396   --enable-shared         Build a shared library and link tools against it
1397                           (default is NO)
1398   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1399                           Win32 DLL (default is YES)
1400   --enable-timestamps     Enable embedding timestamp information in build
1401                           (default is YES)
1402   --enable-targets        Build specific host targets: all or
1403                           target1,target2,... Valid targets are: host, x86,
1404                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405                           xcore, msp430, ptx, cbe, and cpp (default=all)
1406   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1407                           %a (default is YES)
1408   --enable-bindings       Build specific language bindings:
1409                           all,auto,none,{binding-name} (default=auto)
1410   --enable-libffi         Check for the presence of libffi (default is NO)
1411   --enable-ltdl-install   install libltdl
1412
1413 Optional Packages:
1414   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1415   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1416   --with-llvmsrc          Location of LLVM Source Code
1417   --with-llvmobj          Location of LLVM Object Code
1418   --with-optimize-option  Select the compiler options to use for optimized
1419                           builds
1420   --with-extra-options    Specify additional options to compile LLVM with
1421   --with-extra-ld-options Specify additional options to link LLVM with
1422   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1423                           is stdlib)
1424   --with-clang-resource-dir
1425                           Relative directory from the Clang binary for
1426                           resource files
1427   --with-c-include-dirs   Colon separated list of directories clang will
1428                           search for headers
1429   --with-cxx-include-root Directory with the libstdc++ headers.
1430   --with-cxx-include-arch Architecture of the libstdc++ headers.
1431   --with-cxx-include-32bit-dir
1432                           32 bit multilib dir.
1433   --with-cxx-include-64bit-dir
1434                           64 bit multilib directory.
1435   --with-binutils-include Specify path to binutils/include/ containing
1436                           plugin-api.h file for gold plugin.
1437   --with-bug-report-url   Specify the URL where bug reports should be
1438                           submitted (default=http://llvm.org/bugs/)
1439   --with-tclinclude       directory where tcl headers are
1440   --with-udis86=<path>    Use udis86 external x86 disassembler library
1441   --with-oprofile=<prefix>
1442                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1443
1444 Some influential environment variables:
1445   CC          C compiler command
1446   CFLAGS      C compiler flags
1447   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1448               nonstandard directory <lib dir>
1449   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1450               you have headers in a nonstandard directory <include dir>
1451   CXX         C++ compiler command
1452   CXXFLAGS    C++ compiler flags
1453   CPP         C preprocessor
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to <bugs@yourdomain>.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464   # If there are subdirs, report their specific --help.
1465   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466     test -d "$ac_dir" || continue
1467     ac_builddir=.
1468
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *)
1472   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1473   # A ".." for each directory in $ac_dir_suffix.
1474   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1475   case $ac_top_builddir_sub in
1476   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478   esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1484
1485 case $srcdir in
1486   .)  # We are building in place.
1487     ac_srcdir=.
1488     ac_top_srcdir=$ac_top_builddir_sub
1489     ac_abs_top_srcdir=$ac_pwd ;;
1490   [\\/]* | ?:[\\/]* )  # Absolute name.
1491     ac_srcdir=$srcdir$ac_dir_suffix;
1492     ac_top_srcdir=$srcdir
1493     ac_abs_top_srcdir=$srcdir ;;
1494   *) # Relative name.
1495     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496     ac_top_srcdir=$ac_top_build_prefix$srcdir
1497     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501     cd "$ac_dir" || { ac_status=$?; continue; }
1502     # Check for guested configure.
1503     if test -f "$ac_srcdir/configure.gnu"; then
1504       echo &&
1505       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506     elif test -f "$ac_srcdir/configure"; then
1507       echo &&
1508       $SHELL "$ac_srcdir/configure" --help=recursive
1509     else
1510       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511     fi || ac_status=$?
1512     cd "$ac_pwd" || { ac_status=$?; break; }
1513   done
1514 fi
1515
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518   cat <<\_ACEOF
1519 [SAMPLE] configure [x.xx]
1520 generated by GNU Autoconf 2.60
1521
1522 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1523 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1526 _ACEOF
1527   exit
1528 fi
1529 cat >config.log <<_ACEOF
1530 This file contains any messages produced by compilers while
1531 running configure, to aid debugging if configure makes a mistake.
1532
1533 It was created by [SAMPLE] $as_me [x.xx], which was
1534 generated by GNU Autoconf 2.60.  Invocation command line was
1535
1536   $ $0 $@
1537
1538 _ACEOF
1539 exec 5>>config.log
1540 {
1541 cat <<_ASUNAME
1542 ## --------- ##
1543 ## Platform. ##
1544 ## --------- ##
1545
1546 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1547 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1548 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1549 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1550 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1551
1552 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1553 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1554
1555 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1556 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1557 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1558 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1559 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1560 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1561 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1562
1563 _ASUNAME
1564
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   echo "PATH: $as_dir"
1571 done
1572 IFS=$as_save_IFS
1573
1574 } >&5
1575
1576 cat >&5 <<_ACEOF
1577
1578
1579 ## ----------- ##
1580 ## Core tests. ##
1581 ## ----------- ##
1582
1583 _ACEOF
1584
1585
1586 # Keep a trace of the command line.
1587 # Strip out --no-create and --no-recursion so they do not pile up.
1588 # Strip out --silent because we don't want to record it for future runs.
1589 # Also quote any args containing shell meta-characters.
1590 # Make two passes to allow for proper duplicate-argument suppression.
1591 ac_configure_args=
1592 ac_configure_args0=
1593 ac_configure_args1=
1594 ac_must_keep_next=false
1595 for ac_pass in 1 2
1596 do
1597   for ac_arg
1598   do
1599     case $ac_arg in
1600     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1601     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1602     | -silent | --silent | --silen | --sile | --sil)
1603       continue ;;
1604     *\'*)
1605       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1606     esac
1607     case $ac_pass in
1608     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1609     2)
1610       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1611       if test $ac_must_keep_next = true; then
1612         ac_must_keep_next=false # Got value, back to normal.
1613       else
1614         case $ac_arg in
1615           *=* | --config-cache | -C | -disable-* | --disable-* \
1616           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1617           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1618           | -with-* | --with-* | -without-* | --without-* | --x)
1619             case "$ac_configure_args0 " in
1620               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1621             esac
1622             ;;
1623           -* ) ac_must_keep_next=true ;;
1624         esac
1625       fi
1626       ac_configure_args="$ac_configure_args '$ac_arg'"
1627       ;;
1628     esac
1629   done
1630 done
1631 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1632 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1633
1634 # When interrupted or exit'd, cleanup temporary files, and complete
1635 # config.log.  We remove comments because anyway the quotes in there
1636 # would cause problems or look ugly.
1637 # WARNING: Use '\'' to represent an apostrophe within the trap.
1638 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1639 trap 'exit_status=$?
1640   # Save into config.log some information that might help in debugging.
1641   {
1642     echo
1643
1644     cat <<\_ASBOX
1645 ## ---------------- ##
1646 ## Cache variables. ##
1647 ## ---------------- ##
1648 _ASBOX
1649     echo
1650     # The following way of writing the cache mishandles newlines in values,
1651 (
1652   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1653     eval ac_val=\$$ac_var
1654     case $ac_val in #(
1655     *${as_nl}*)
1656       case $ac_var in #(
1657       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1658 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1659       esac
1660       case $ac_var in #(
1661       _ | IFS | as_nl) ;; #(
1662       *) $as_unset $ac_var ;;
1663       esac ;;
1664     esac
1665   done
1666   (set) 2>&1 |
1667     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1668     *${as_nl}ac_space=\ *)
1669       sed -n \
1670         "s/'\''/'\''\\\\'\'''\''/g;
1671           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1672       ;; #(
1673     *)
1674       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1675       ;;
1676     esac |
1677     sort
1678 )
1679     echo
1680
1681     cat <<\_ASBOX
1682 ## ----------------- ##
1683 ## Output variables. ##
1684 ## ----------------- ##
1685 _ASBOX
1686     echo
1687     for ac_var in $ac_subst_vars
1688     do
1689       eval ac_val=\$$ac_var
1690       case $ac_val in
1691       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1692       esac
1693       echo "$ac_var='\''$ac_val'\''"
1694     done | sort
1695     echo
1696
1697     if test -n "$ac_subst_files"; then
1698       cat <<\_ASBOX
1699 ## ------------------- ##
1700 ## File substitutions. ##
1701 ## ------------------- ##
1702 _ASBOX
1703       echo
1704       for ac_var in $ac_subst_files
1705       do
1706         eval ac_val=\$$ac_var
1707         case $ac_val in
1708         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709         esac
1710         echo "$ac_var='\''$ac_val'\''"
1711       done | sort
1712       echo
1713     fi
1714
1715     if test -s confdefs.h; then
1716       cat <<\_ASBOX
1717 ## ----------- ##
1718 ## confdefs.h. ##
1719 ## ----------- ##
1720 _ASBOX
1721       echo
1722       cat confdefs.h
1723       echo
1724     fi
1725     test "$ac_signal" != 0 &&
1726       echo "$as_me: caught signal $ac_signal"
1727     echo "$as_me: exit $exit_status"
1728   } >&5
1729   rm -f core *.core core.conftest.* &&
1730     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1731     exit $exit_status
1732 ' 0
1733 for ac_signal in 1 2 13 15; do
1734   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735 done
1736 ac_signal=0
1737
1738 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1739 rm -f -r conftest* confdefs.h
1740
1741 # Predefined preprocessor variables.
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_NAME "$PACKAGE_NAME"
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750 _ACEOF
1751
1752
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1755 _ACEOF
1756
1757
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_STRING "$PACKAGE_STRING"
1760 _ACEOF
1761
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765 _ACEOF
1766
1767
1768 # Let the site file select an alternate cache file if it wants to.
1769 # Prefer explicitly selected file to automatically selected ones.
1770 if test -n "$CONFIG_SITE"; then
1771   set x "$CONFIG_SITE"
1772 elif test "x$prefix" != xNONE; then
1773   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1774 else
1775   set x "$ac_default_prefix/share/config.site" \
1776         "$ac_default_prefix/etc/config.site"
1777 fi
1778 shift
1779 for ac_site_file
1780 do
1781   if test -r "$ac_site_file"; then
1782     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1783 echo "$as_me: loading site script $ac_site_file" >&6;}
1784     sed 's/^/| /' "$ac_site_file" >&5
1785     . "$ac_site_file"
1786   fi
1787 done
1788
1789 if test -r "$cache_file"; then
1790   # Some versions of bash will fail to source /dev/null (special
1791   # files actually), so we avoid doing that.
1792   if test -f "$cache_file"; then
1793     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1794 echo "$as_me: loading cache $cache_file" >&6;}
1795     case $cache_file in
1796       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1797       *)                      . "./$cache_file";;
1798     esac
1799   fi
1800 else
1801   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1802 echo "$as_me: creating cache $cache_file" >&6;}
1803   >$cache_file
1804 fi
1805
1806 # Check that the precious variables saved in the cache have kept the same
1807 # value.
1808 ac_cache_corrupted=false
1809 for ac_var in $ac_precious_vars; do
1810   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1811   eval ac_new_set=\$ac_env_${ac_var}_set
1812   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1813   eval ac_new_val=\$ac_env_${ac_var}_value
1814   case $ac_old_set,$ac_new_set in
1815     set,)
1816       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1818       ac_cache_corrupted=: ;;
1819     ,set)
1820       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1821 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1822       ac_cache_corrupted=: ;;
1823     ,);;
1824     *)
1825       if test "x$ac_old_val" != "x$ac_new_val"; then
1826         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1827 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1828         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1829 echo "$as_me:   former value:  $ac_old_val" >&2;}
1830         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1831 echo "$as_me:   current value: $ac_new_val" >&2;}
1832         ac_cache_corrupted=:
1833       fi;;
1834   esac
1835   # Pass precious variables to config.status.
1836   if test "$ac_new_set" = set; then
1837     case $ac_new_val in
1838     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1839     *) ac_arg=$ac_var=$ac_new_val ;;
1840     esac
1841     case " $ac_configure_args " in
1842       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1843       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844     esac
1845   fi
1846 done
1847 if $ac_cache_corrupted; then
1848   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1849 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1850   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1851 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1852    { (exit 1); exit 1; }; }
1853 fi
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879 ac_ext=c
1880 ac_cpp='$CPP $CPPFLAGS'
1881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884
1885
1886
1887 LLVM_SRC_ROOT="../.."
1888 LLVM_OBJ_ROOT="../.."
1889
1890 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1891 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1892
1893
1894 # Check whether --with-llvmsrc was given.
1895 if test "${with_llvmsrc+set}" = set; then
1896   withval=$with_llvmsrc; llvm_src="$withval"
1897 else
1898   llvm_src="$LLVM_ABS_SRC_ROOT"
1899 fi
1900
1901   LLVM_SRC=$llvm_src
1902
1903
1904 # Check whether --with-llvmobj was given.
1905 if test "${with_llvmobj+set}" = set; then
1906   withval=$with_llvmobj; llvm_obj="$withval"
1907 else
1908   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1909 fi
1910
1911   LLVM_OBJ=$llvm_obj
1912
1913   ac_config_commands="$ac_config_commands setup"
1914
1915
1916
1917 { echo "$as_me:$LINENO: checking llvm-config" >&5
1918 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1919 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1920 if ! test -f "$llvm_config_path" ; then
1921    llvm_config_path="no"
1922 fi
1923 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1924 echo "${ECHO_T}$llvm_config_path" >&6; }
1925
1926 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1927 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1928 if test "$llvm_config_path" != no ; then
1929   llvm_package_version=`$llvm_config_path --version`
1930 else
1931   llvm_package_version="unknown";
1932 fi
1933 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1934 echo "${ECHO_T}$llvm_package_version" >&6; }
1935 LLVM_VERSION=$llvm_package_version
1936
1937
1938
1939
1940 ac_aux_dir=
1941 for ac_dir in autoconf "$srcdir"/autoconf; do
1942   if test -f "$ac_dir/install-sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install-sh -c"
1945     break
1946   elif test -f "$ac_dir/install.sh"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/install.sh -c"
1949     break
1950   elif test -f "$ac_dir/shtool"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/shtool install -c"
1953     break
1954   fi
1955 done
1956 if test -z "$ac_aux_dir"; then
1957   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1958 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1969
1970
1971
1972
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978 if test -n "$ac_tool_prefix"; then
1979   for ac_prog in clang llvm-gcc gcc
1980   do
1981     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985 if test "${ac_cv_prog_CC+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   if test -n "$CC"; then
1989   ac_cv_prog_CC="$CC" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   for ac_exec_ext in '' $ac_executable_extensions; do
1997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1998     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004 IFS=$as_save_IFS
2005
2006 fi
2007 fi
2008 CC=$ac_cv_prog_CC
2009 if test -n "$CC"; then
2010   { echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6; }
2012 else
2013   { echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6; }
2015 fi
2016
2017
2018     test -n "$CC" && break
2019   done
2020 fi
2021 if test -z "$CC"; then
2022   ac_ct_CC=$CC
2023   for ac_prog in clang llvm-gcc gcc
2024 do
2025   # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   if test -n "$ac_ct_CC"; then
2033   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040   for ac_exec_ext in '' $ac_executable_extensions; do
2041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2042     ac_cv_prog_ac_ct_CC="$ac_prog"
2043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044     break 2
2045   fi
2046 done
2047 done
2048 IFS=$as_save_IFS
2049
2050 fi
2051 fi
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6; }
2056 else
2057   { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2059 fi
2060
2061
2062   test -n "$ac_ct_CC" && break
2063 done
2064
2065   if test "x$ac_ct_CC" = x; then
2066     CC=""
2067   else
2068     case $cross_compiling:$ac_tool_warned in
2069 yes:)
2070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet.  If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&5
2073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet.  If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2076 ac_tool_warned=yes ;;
2077 esac
2078     CC=$ac_ct_CC
2079   fi
2080 fi
2081
2082
2083 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&5
2085 echo "$as_me: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&2;}
2087    { (exit 1); exit 1; }; }
2088
2089 # Provide some information about the compiler.
2090 echo "$as_me:$LINENO: checking for C compiler version" >&5
2091 ac_compiler=`set X $ac_compile; echo $2`
2092 { (ac_try="$ac_compiler --version >&5"
2093 case "(($ac_try" in
2094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095   *) ac_try_echo=$ac_try;;
2096 esac
2097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098   (eval "$ac_compiler --version >&5") 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }
2102 { (ac_try="$ac_compiler -v >&5"
2103 case "(($ac_try" in
2104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105   *) ac_try_echo=$ac_try;;
2106 esac
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108   (eval "$ac_compiler -v >&5") 2>&5
2109   ac_status=$?
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); }
2112 { (ac_try="$ac_compiler -V >&5"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118   (eval "$ac_compiler -V >&5") 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122
2123 cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129
2130 int
2131 main ()
2132 {
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 ac_clean_files_save=$ac_clean_files
2139 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2140 # Try to create an executable without -o first, disregard a.out.
2141 # It will help us diagnose broken compilers, and finding out an intuition
2142 # of exeext.
2143 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2145 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146 #
2147 # List of possible output files, starting from the most likely.
2148 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2149 # only as a last resort.  b.out is created by i960 compilers.
2150 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2151 #
2152 # The IRIX 6 linker writes into existing files which may not be
2153 # executable, retaining their permissions.  Remove them first so a
2154 # subsequent execution test works.
2155 ac_rmfiles=
2156 for ac_file in $ac_files
2157 do
2158   case $ac_file in
2159     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2160     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2161   esac
2162 done
2163 rm -f $ac_rmfiles
2164
2165 if { (ac_try="$ac_link_default"
2166 case "(($ac_try" in
2167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168   *) ac_try_echo=$ac_try;;
2169 esac
2170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171   (eval "$ac_link_default") 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; then
2175   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2176 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2177 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2178 # so that the user can short-circuit this test for compilers unknown to
2179 # Autoconf.
2180 for ac_file in $ac_files
2181 do
2182   test -f "$ac_file" || continue
2183   case $ac_file in
2184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2185         ;;
2186     [ab].out )
2187         # We found the default executable, but exeext='' is most
2188         # certainly right.
2189         break;;
2190     *.* )
2191         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2192         then :; else
2193            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194         fi
2195         # We set ac_cv_exeext here because the later test for it is not
2196         # safe: cross compilers may not add the suffix if given an `-o'
2197         # argument, so we may need to know it at that point already.
2198         # Even if this section looks crufty: it has the advantage of
2199         # actually working.
2200         break;;
2201     * )
2202         break;;
2203   esac
2204 done
2205 test "$ac_cv_exeext" = no && ac_cv_exeext=
2206
2207 else
2208   echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2210
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215    { (exit 77); exit 77; }; }
2216 fi
2217
2218 ac_exeext=$ac_cv_exeext
2219 { echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6; }
2221
2222 # Check that the compiler produces executables we can run.  If not, either
2223 # the compiler is broken, or we cross compile.
2224 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229   if { ac_try='./$ac_file'
2230   { (case "(($ac_try" in
2231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232   *) ac_try_echo=$ac_try;;
2233 esac
2234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2235   (eval "$ac_try") 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239     cross_compiling=no
2240   else
2241     if test "$cross_compiling" = maybe; then
2242         cross_compiling=yes
2243     else
2244         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&2;}
2250    { (exit 1); exit 1; }; }
2251     fi
2252   fi
2253 fi
2254 { echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6; }
2256
2257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258 ac_clean_files=$ac_clean_files_save
2259 # Check that the compiler produces executables we can run.  If not, either
2260 # the compiler is broken, or we cross compile.
2261 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2263 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264 echo "${ECHO_T}$cross_compiling" >&6; }
2265
2266 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2268 if { (ac_try="$ac_link"
2269 case "(($ac_try" in
2270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271   *) ac_try_echo=$ac_try;;
2272 esac
2273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274   (eval "$ac_link") 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; then
2278   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2280 # work properly (i.e., refer to `conftest.exe'), while it won't with
2281 # `rm'.
2282 for ac_file in conftest.exe conftest conftest.*; do
2283   test -f "$ac_file" || continue
2284   case $ac_file in
2285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2286     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287           break;;
2288     * ) break;;
2289   esac
2290 done
2291 else
2292   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296    { (exit 1); exit 1; }; }
2297 fi
2298
2299 rm -f conftest$ac_cv_exeext
2300 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2302
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2305 ac_exeext=$EXEEXT
2306 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2308 if test "${ac_cv_objext+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 rm -f conftest.o conftest.obj
2327 if { (ac_try="$ac_compile"
2328 case "(($ac_try" in
2329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330   *) ac_try_echo=$ac_try;;
2331 esac
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333   (eval "$ac_compile") 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; then
2337   for ac_file in conftest.o conftest.obj conftest.*; do
2338   test -f "$ac_file" || continue;
2339   case $ac_file in
2340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2341     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342        break;;
2343   esac
2344 done
2345 else
2346   echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&2;}
2353    { (exit 1); exit 1; }; }
2354 fi
2355
2356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357 fi
2358 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359 echo "${ECHO_T}$ac_cv_objext" >&6; }
2360 OBJEXT=$ac_cv_objext
2361 ac_objext=$OBJEXT
2362 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2364 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h.  */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h.  */
2373
2374 int
2375 main ()
2376 {
2377 #ifndef __GNUC__
2378        choke me
2379 #endif
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (ac_try="$ac_compile"
2387 case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392   (eval "$ac_compile") 2>conftest.er1
2393   ac_status=$?
2394   grep -v '^ *+' conftest.er1 >conftest.err
2395   rm -f conftest.er1
2396   cat conftest.err >&5
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); } &&
2399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2400   { (case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405   (eval "$ac_try") 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; } &&
2409          { ac_try='test -s conftest.$ac_objext'
2410   { (case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415   (eval "$ac_try") 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; }; then
2419   ac_compiler_gnu=yes
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424         ac_compiler_gnu=no
2425 fi
2426
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2429
2430 fi
2431 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2433 GCC=`test $ac_compiler_gnu = yes && echo yes`
2434 ac_test_CFLAGS=${CFLAGS+set}
2435 ac_save_CFLAGS=$CFLAGS
2436 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_cc_g+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   ac_save_c_werror_flag=$ac_c_werror_flag
2442    ac_c_werror_flag=yes
2443    ac_cv_prog_cc_g=no
2444    CFLAGS="-g"
2445    cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.$ac_objext
2461 if { (ac_try="$ac_compile"
2462 case "(($ac_try" in
2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464   *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467   (eval "$ac_compile") 2>conftest.er1
2468   ac_status=$?
2469   grep -v '^ *+' conftest.er1 >conftest.err
2470   rm -f conftest.er1
2471   cat conftest.err >&5
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2475   { (case "(($ac_try" in
2476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477   *) ac_try_echo=$ac_try;;
2478 esac
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480   (eval "$ac_try") 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; } &&
2484          { ac_try='test -s conftest.$ac_objext'
2485   { (case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490   (eval "$ac_try") 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   ac_cv_prog_cc_g=yes
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499         CFLAGS=""
2500       cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h.  */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h.  */
2506
2507 int
2508 main ()
2509 {
2510
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (ac_try="$ac_compile"
2517 case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_compile") 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530   { (case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535   (eval "$ac_try") 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; } &&
2539          { ac_try='test -s conftest.$ac_objext'
2540   { (case "(($ac_try" in
2541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542   *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545   (eval "$ac_try") 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549   :
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554         ac_c_werror_flag=$ac_save_c_werror_flag
2555          CFLAGS="-g"
2556          cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562
2563 int
2564 main ()
2565 {
2566
2567   ;
2568   return 0;
2569 }
2570 _ACEOF
2571 rm -f conftest.$ac_objext
2572 if { (ac_try="$ac_compile"
2573 case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578   (eval "$ac_compile") 2>conftest.er1
2579   ac_status=$?
2580   grep -v '^ *+' conftest.er1 >conftest.err
2581   rm -f conftest.er1
2582   cat conftest.err >&5
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2586   { (case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_try") 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; } &&
2595          { ac_try='test -s conftest.$ac_objext'
2596   { (case "(($ac_try" in
2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598   *) ac_try_echo=$ac_try;;
2599 esac
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601   (eval "$ac_try") 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; }; then
2605   ac_cv_prog_cc_g=yes
2606 else
2607   echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620    ac_c_werror_flag=$ac_save_c_werror_flag
2621 fi
2622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2623 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2624 if test "$ac_test_CFLAGS" = set; then
2625   CFLAGS=$ac_save_CFLAGS
2626 elif test $ac_cv_prog_cc_g = yes; then
2627   if test "$GCC" = yes; then
2628     CFLAGS="-g -O2"
2629   else
2630     CFLAGS="-g"
2631   fi
2632 else
2633   if test "$GCC" = yes; then
2634     CFLAGS="-O2"
2635   else
2636     CFLAGS=
2637   fi
2638 fi
2639 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2640 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_cc_c89+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   ac_cv_prog_cc_c89=no
2645 ac_save_CC=$CC
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h.  */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h.  */
2652 #include <stdarg.h>
2653 #include <stdio.h>
2654 #include <sys/types.h>
2655 #include <sys/stat.h>
2656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2657 struct buf { int x; };
2658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2659 static char *e (p, i)
2660      char **p;
2661      int i;
2662 {
2663   return p[i];
2664 }
2665 static char *f (char * (*g) (char **, int), char **p, ...)
2666 {
2667   char *s;
2668   va_list v;
2669   va_start (v,p);
2670   s = g (p, va_arg (v,int));
2671   va_end (v);
2672   return s;
2673 }
2674
2675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2676    function prototypes and stuff, but not '\xHH' hex character constants.
2677    These don't provoke an error unfortunately, instead are silently treated
2678    as 'x'.  The following induces an error, until -std is added to get
2679    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2680    array size at least.  It's necessary to write '\x00'==0 to get something
2681    that's true only with -std.  */
2682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2683
2684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2685    inside strings and character constants.  */
2686 #define FOO(x) 'x'
2687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2688
2689 int test (int i, double x);
2690 struct s1 {int (*f) (int a);};
2691 struct s2 {int (*f) (double a);};
2692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 int argc;
2694 char **argv;
2695 int
2696 main ()
2697 {
2698 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2704         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2705 do
2706   CC="$ac_save_CC $ac_arg"
2707   rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_compile") 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722   { (case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_try") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; } &&
2731          { ac_try='test -s conftest.$ac_objext'
2732   { (case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_try") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   ac_cv_prog_cc_c89=$ac_arg
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746
2747 fi
2748
2749 rm -f core conftest.err conftest.$ac_objext
2750   test "x$ac_cv_prog_cc_c89" != "xno" && break
2751 done
2752 rm -f conftest.$ac_ext
2753 CC=$ac_save_CC
2754
2755 fi
2756 # AC_CACHE_VAL
2757 case "x$ac_cv_prog_cc_c89" in
2758   x)
2759     { echo "$as_me:$LINENO: result: none needed" >&5
2760 echo "${ECHO_T}none needed" >&6; } ;;
2761   xno)
2762     { echo "$as_me:$LINENO: result: unsupported" >&5
2763 echo "${ECHO_T}unsupported" >&6; } ;;
2764   *)
2765     CC="$CC $ac_cv_prog_cc_c89"
2766     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2767 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2768 esac
2769
2770
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777 ac_ext=cpp
2778 ac_cpp='$CXXCPP $CPPFLAGS'
2779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2782 if test -z "$CXX"; then
2783   if test -n "$CCC"; then
2784     CXX=$CCC
2785   else
2786     if test -n "$ac_tool_prefix"; then
2787   for ac_prog in clang++ llvm-g++ g++
2788   do
2789     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793 if test "${ac_cv_prog_CXX+set}" = set; then
2794   echo $ECHO_N "(cached) $ECHO_C" >&6
2795 else
2796   if test -n "$CXX"; then
2797   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802   IFS=$as_save_IFS
2803   test -z "$as_dir" && as_dir=.
2804   for ac_exec_ext in '' $ac_executable_extensions; do
2805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2806     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809   fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CXX=$ac_cv_prog_CXX
2817 if test -n "$CXX"; then
2818   { echo "$as_me:$LINENO: result: $CXX" >&5
2819 echo "${ECHO_T}$CXX" >&6; }
2820 else
2821   { echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6; }
2823 fi
2824
2825
2826     test -n "$CXX" && break
2827   done
2828 fi
2829 if test -z "$CXX"; then
2830   ac_ct_CXX=$CXX
2831   for ac_prog in clang++ llvm-g++ g++
2832 do
2833   # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$ac_ct_CXX"; then
2841   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2850     ac_cv_prog_ac_ct_CXX="$ac_prog"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2861 if test -n "$ac_ct_CXX"; then
2862   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2863 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2864 else
2865   { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2867 fi
2868
2869
2870   test -n "$ac_ct_CXX" && break
2871 done
2872
2873   if test "x$ac_ct_CXX" = x; then
2874     CXX="g++"
2875   else
2876     case $cross_compiling:$ac_tool_warned in
2877 yes:)
2878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet.  If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&5
2881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884 ac_tool_warned=yes ;;
2885 esac
2886     CXX=$ac_ct_CXX
2887   fi
2888 fi
2889
2890   fi
2891 fi
2892 # Provide some information about the compiler.
2893 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2894 ac_compiler=`set X $ac_compile; echo $2`
2895 { (ac_try="$ac_compiler --version >&5"
2896 case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901   (eval "$ac_compiler --version >&5") 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }
2905 { (ac_try="$ac_compiler -v >&5"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compiler -v >&5") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }
2915 { (ac_try="$ac_compiler -V >&5"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_compiler -V >&5") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }
2925
2926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941 #ifndef __GNUC__
2942        choke me
2943 #endif
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_compile") 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } &&
2963          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2964   { (case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_try") 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; } &&
2973          { ac_try='test -s conftest.$ac_objext'
2974   { (case "(($ac_try" in
2975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976   *) ac_try_echo=$ac_try;;
2977 esac
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979   (eval "$ac_try") 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   ac_compiler_gnu=yes
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988         ac_compiler_gnu=no
2989 fi
2990
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2993
2994 fi
2995 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2997 GXX=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CXXFLAGS=${CXXFLAGS+set}
2999 ac_save_CXXFLAGS=$CXXFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3001 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cxx_g+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3006    ac_cxx_werror_flag=yes
3007    ac_cv_prog_cxx_g=no
3008    CXXFLAGS="-g"
3009    cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_compile") 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } &&
3038          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3039   { (case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_try") 2>&5
3045   ac_status=$?
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); }; } &&
3048          { ac_try='test -s conftest.$ac_objext'
3049   { (case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_try") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; }; then
3058   ac_cv_prog_cxx_g=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063         CXXFLAGS=""
3064       cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } &&
3093          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; } &&
3103          { ac_try='test -s conftest.$ac_objext'
3104   { (case "(($ac_try" in
3105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106   *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109   (eval "$ac_try") 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   :
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3119          CXXFLAGS="-g"
3120          cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } &&
3149          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_try") 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   ac_cv_prog_cxx_g=yes
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3185 fi
3186 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3188 if test "$ac_test_CXXFLAGS" = set; then
3189   CXXFLAGS=$ac_save_CXXFLAGS
3190 elif test $ac_cv_prog_cxx_g = yes; then
3191   if test "$GXX" = yes; then
3192     CXXFLAGS="-g -O2"
3193   else
3194     CXXFLAGS="-g"
3195   fi
3196 else
3197   if test "$GXX" = yes; then
3198     CXXFLAGS="-O2"
3199   else
3200     CXXFLAGS=
3201   fi
3202 fi
3203 ac_ext=c
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208
3209 ac_ext=c
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3215 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3216 # On Suns, sometimes $CPP names a directory.
3217 if test -n "$CPP" && test -d "$CPP"; then
3218   CPP=
3219 fi
3220 if test -z "$CPP"; then
3221   if test "${ac_cv_prog_CPP+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224       # Double quotes because CPP needs to be expanded
3225     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3226     do
3227       ac_preproc_ok=false
3228 for ac_c_preproc_warn_flag in '' yes
3229 do
3230   # Use a header file that comes with gcc, so configuring glibc
3231   # with a fresh cross-compiler works.
3232   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233   # <limits.h> exists even on freestanding compilers.
3234   # On the NeXT, cc -E runs the code through the compiler's parser,
3235   # not just through cpp. "Syntax error" is here to catch this case.
3236   cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h.  */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h.  */
3242 #ifdef __STDC__
3243 # include <limits.h>
3244 #else
3245 # include <assert.h>
3246 #endif
3247                      Syntax error
3248 _ACEOF
3249 if { (ac_try="$ac_cpp conftest.$ac_ext"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3256   ac_status=$?
3257   grep -v '^ *+' conftest.er1 >conftest.err
3258   rm -f conftest.er1
3259   cat conftest.err >&5
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); } >/dev/null; then
3262   if test -s conftest.err; then
3263     ac_cpp_err=$ac_c_preproc_warn_flag
3264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265   else
3266     ac_cpp_err=
3267   fi
3268 else
3269   ac_cpp_err=yes
3270 fi
3271 if test -z "$ac_cpp_err"; then
3272   :
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277   # Broken: fails on valid input.
3278 continue
3279 fi
3280
3281 rm -f conftest.err conftest.$ac_ext
3282
3283   # OK, works on sane cases.  Now check whether nonexistent headers
3284   # can be detected and how.
3285   cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291 #include <ac_nonexistent.h>
3292 _ACEOF
3293 if { (ac_try="$ac_cpp conftest.$ac_ext"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3300   ac_status=$?
3301   grep -v '^ *+' conftest.er1 >conftest.err
3302   rm -f conftest.er1
3303   cat conftest.err >&5
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); } >/dev/null; then
3306   if test -s conftest.err; then
3307     ac_cpp_err=$ac_c_preproc_warn_flag
3308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3309   else
3310     ac_cpp_err=
3311   fi
3312 else
3313   ac_cpp_err=yes
3314 fi
3315 if test -z "$ac_cpp_err"; then
3316   # Broken: success on invalid input.
3317 continue
3318 else
3319   echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322   # Passes both tests.
3323 ac_preproc_ok=:
3324 break
3325 fi
3326
3327 rm -f conftest.err conftest.$ac_ext
3328
3329 done
3330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331 rm -f conftest.err conftest.$ac_ext
3332 if $ac_preproc_ok; then
3333   break
3334 fi
3335
3336     done
3337     ac_cv_prog_CPP=$CPP
3338
3339 fi
3340   CPP=$ac_cv_prog_CPP
3341 else
3342   ac_cv_prog_CPP=$CPP
3343 fi
3344 { echo "$as_me:$LINENO: result: $CPP" >&5
3345 echo "${ECHO_T}$CPP" >&6; }
3346 ac_preproc_ok=false
3347 for ac_c_preproc_warn_flag in '' yes
3348 do
3349   # Use a header file that comes with gcc, so configuring glibc
3350   # with a fresh cross-compiler works.
3351   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352   # <limits.h> exists even on freestanding compilers.
3353   # On the NeXT, cc -E runs the code through the compiler's parser,
3354   # not just through cpp. "Syntax error" is here to catch this case.
3355   cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361 #ifdef __STDC__
3362 # include <limits.h>
3363 #else
3364 # include <assert.h>
3365 #endif
3366                      Syntax error
3367 _ACEOF
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375   ac_status=$?
3376   grep -v '^ *+' conftest.er1 >conftest.err
3377   rm -f conftest.er1
3378   cat conftest.err >&5
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); } >/dev/null; then
3381   if test -s conftest.err; then
3382     ac_cpp_err=$ac_c_preproc_warn_flag
3383     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384   else
3385     ac_cpp_err=
3386   fi
3387 else
3388   ac_cpp_err=yes
3389 fi
3390 if test -z "$ac_cpp_err"; then
3391   :
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396   # Broken: fails on valid input.
3397 continue
3398 fi
3399
3400 rm -f conftest.err conftest.$ac_ext
3401
3402   # OK, works on sane cases.  Now check whether nonexistent headers
3403   # can be detected and how.
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410 #include <ac_nonexistent.h>
3411 _ACEOF
3412 if { (ac_try="$ac_cpp conftest.$ac_ext"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } >/dev/null; then
3425   if test -s conftest.err; then
3426     ac_cpp_err=$ac_c_preproc_warn_flag
3427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428   else
3429     ac_cpp_err=
3430   fi
3431 else
3432   ac_cpp_err=yes
3433 fi
3434 if test -z "$ac_cpp_err"; then
3435   # Broken: success on invalid input.
3436 continue
3437 else
3438   echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441   # Passes both tests.
3442 ac_preproc_ok=:
3443 break
3444 fi
3445
3446 rm -f conftest.err conftest.$ac_ext
3447
3448 done
3449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450 rm -f conftest.err conftest.$ac_ext
3451 if $ac_preproc_ok; then
3452   :
3453 else
3454   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." >&5
3456 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3457 See \`config.log' for more details." >&2;}
3458    { (exit 1); exit 1; }; }
3459 fi
3460
3461 ac_ext=c
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468
3469
3470 # Check whether --enable-polly was given.
3471 if test "${enable_polly+set}" = set; then
3472   enableval=$enable_polly;
3473 else
3474   enableval=default
3475 fi
3476
3477 case "$enableval" in
3478   yes) ENABLE_POLLY=1
3479  ;;
3480   no)  ENABLE_POLLY=0
3481  ;;
3482   default) ENABLE_POLLY=1
3483  ;;
3484   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3485 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3486    { (exit 1); exit 1; }; } ;;
3487 esac
3488
3489
3490 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3491   LLVM_HAS_POLLY=1
3492
3493   subdirs="$subdirs tools/polly"
3494
3495 fi
3496
3497
3498 # Make sure we can run config.sub.
3499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3500   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3501 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3502    { (exit 1); exit 1; }; }
3503
3504 { echo "$as_me:$LINENO: checking build system type" >&5
3505 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3506 if test "${ac_cv_build+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   ac_build_alias=$build_alias
3510 test "x$ac_build_alias" = x &&
3511   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3512 test "x$ac_build_alias" = x &&
3513   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3514 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3515    { (exit 1); exit 1; }; }
3516 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3517   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3518 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3519    { (exit 1); exit 1; }; }
3520
3521 fi
3522 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3523 echo "${ECHO_T}$ac_cv_build" >&6; }
3524 case $ac_cv_build in
3525 *-*-*) ;;
3526 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3527 echo "$as_me: error: invalid value of canonical build" >&2;}
3528    { (exit 1); exit 1; }; };;
3529 esac
3530 build=$ac_cv_build
3531 ac_save_IFS=$IFS; IFS='-'
3532 set x $ac_cv_build
3533 shift
3534 build_cpu=$1
3535 build_vendor=$2
3536 shift; shift
3537 # Remember, the first character of IFS is used to create $*,
3538 # except with old shells:
3539 build_os=$*
3540 IFS=$ac_save_IFS
3541 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3542
3543
3544 { echo "$as_me:$LINENO: checking host system type" >&5
3545 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_host+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   if test "x$host_alias" = x; then
3550   ac_cv_host=$ac_cv_build
3551 else
3552   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3553     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3555    { (exit 1); exit 1; }; }
3556 fi
3557
3558 fi
3559 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3560 echo "${ECHO_T}$ac_cv_host" >&6; }
3561 case $ac_cv_host in
3562 *-*-*) ;;
3563 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3564 echo "$as_me: error: invalid value of canonical host" >&2;}
3565    { (exit 1); exit 1; }; };;
3566 esac
3567 host=$ac_cv_host
3568 ac_save_IFS=$IFS; IFS='-'
3569 set x $ac_cv_host
3570 shift
3571 host_cpu=$1
3572 host_vendor=$2
3573 shift; shift
3574 # Remember, the first character of IFS is used to create $*,
3575 # except with old shells:
3576 host_os=$*
3577 IFS=$ac_save_IFS
3578 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3579
3580
3581 { echo "$as_me:$LINENO: checking target system type" >&5
3582 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3583 if test "${ac_cv_target+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   if test "x$target_alias" = x; then
3587   ac_cv_target=$ac_cv_host
3588 else
3589   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3590     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3592    { (exit 1); exit 1; }; }
3593 fi
3594
3595 fi
3596 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3597 echo "${ECHO_T}$ac_cv_target" >&6; }
3598 case $ac_cv_target in
3599 *-*-*) ;;
3600 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3601 echo "$as_me: error: invalid value of canonical target" >&2;}
3602    { (exit 1); exit 1; }; };;
3603 esac
3604 target=$ac_cv_target
3605 ac_save_IFS=$IFS; IFS='-'
3606 set x $ac_cv_target
3607 shift
3608 target_cpu=$1
3609 target_vendor=$2
3610 shift; shift
3611 # Remember, the first character of IFS is used to create $*,
3612 # except with old shells:
3613 target_os=$*
3614 IFS=$ac_save_IFS
3615 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3616
3617
3618 # The aliases save the names the user supplied, while $host etc.
3619 # will get canonicalized.
3620 test -n "$target_alias" &&
3621   test "$program_prefix$program_suffix$program_transform_name" = \
3622     NONENONEs,x,x, &&
3623   program_prefix=${target_alias}-
3624
3625 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3626 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3627 if test "${llvm_cv_os_type+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   case $host in
3631   *-*-aix*)
3632     llvm_cv_link_all_option="-Wl,--whole-archive"
3633     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3634     llvm_cv_os_type="AIX"
3635     llvm_cv_platform_type="Unix" ;;
3636   *-*-irix*)
3637     llvm_cv_link_all_option="-Wl,--whole-archive"
3638     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3639     llvm_cv_os_type="IRIX"
3640     llvm_cv_platform_type="Unix" ;;
3641   *-*-cygwin*)
3642     llvm_cv_link_all_option="-Wl,--whole-archive"
3643     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3644     llvm_cv_os_type="Cygwin"
3645     llvm_cv_platform_type="Unix" ;;
3646   *-*-darwin*)
3647     llvm_cv_link_all_option="-Wl,-all_load"
3648     llvm_cv_no_link_all_option="-Wl,-noall_load"
3649     llvm_cv_os_type="Darwin"
3650     llvm_cv_platform_type="Unix" ;;
3651   *-*-minix*)
3652     llvm_cv_link_all_option="-Wl,-all_load"
3653     llvm_cv_no_link_all_option="-Wl,-noall_load"
3654     llvm_cv_os_type="Minix"
3655     llvm_cv_platform_type="Unix" ;;
3656   *-*-freebsd*)
3657     llvm_cv_link_all_option="-Wl,--whole-archive"
3658     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3659     llvm_cv_os_type="FreeBSD"
3660     llvm_cv_platform_type="Unix" ;;
3661   *-*-openbsd*)
3662     llvm_cv_link_all_option="-Wl,--whole-archive"
3663     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3664     llvm_cv_os_type="OpenBSD"
3665     llvm_cv_platform_type="Unix" ;;
3666   *-*-netbsd*)
3667     llvm_cv_link_all_option="-Wl,--whole-archive"
3668     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669     llvm_cv_os_type="NetBSD"
3670     llvm_cv_platform_type="Unix" ;;
3671   *-*-dragonfly*)
3672     llvm_cv_link_all_option="-Wl,--whole-archive"
3673     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674     llvm_cv_os_type="DragonFly"
3675     llvm_cv_platform_type="Unix" ;;
3676   *-*-hpux*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="HP-UX"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-interix*)
3682     llvm_cv_link_all_option="-Wl,--whole-archive"
3683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684     llvm_cv_os_type="Interix"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-linux*)
3687     llvm_cv_link_all_option="-Wl,--whole-archive"
3688     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689     llvm_cv_os_type="Linux"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-solaris*)
3692     llvm_cv_link_all_option="-Wl,-z,allextract"
3693     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3694     llvm_cv_os_type="SunOS"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-auroraux*)
3697     llvm_cv_link_all_option="-Wl,-z,allextract"
3698     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3699     llvm_cv_os_type="AuroraUX"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-win32*)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="Win32"
3705     llvm_cv_platform_type="Win32" ;;
3706   *-*-mingw*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="MingW"
3710     llvm_cv_platform_type="Win32" ;;
3711   *-*-haiku*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="Haiku"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-unknown-eabi*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="Freestanding"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-unknown-elf*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="Freestanding"
3725     llvm_cv_platform_type="Unix" ;;
3726   *)
3727     llvm_cv_link_all_option=""
3728     llvm_cv_no_link_all_option=""
3729     llvm_cv_os_type="Unknown"
3730     llvm_cv_platform_type="Unknown" ;;
3731 esac
3732 fi
3733 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3734 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3735
3736 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3737 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3738 if test "${llvm_cv_target_os_type+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   case $target in
3742   *-*-aix*)
3743     llvm_cv_target_os_type="AIX" ;;
3744   *-*-irix*)
3745     llvm_cv_target_os_type="IRIX" ;;
3746   *-*-cygwin*)
3747     llvm_cv_target_os_type="Cygwin" ;;
3748   *-*-darwin*)
3749     llvm_cv_target_os_type="Darwin" ;;
3750   *-*-minix*)
3751     llvm_cv_target_os_type="Minix" ;;
3752   *-*-freebsd*)
3753     llvm_cv_target_os_type="FreeBSD" ;;
3754   *-*-openbsd*)
3755     llvm_cv_target_os_type="OpenBSD" ;;
3756   *-*-netbsd*)
3757     llvm_cv_target_os_type="NetBSD" ;;
3758   *-*-dragonfly*)
3759     llvm_cv_target_os_type="DragonFly" ;;
3760   *-*-hpux*)
3761     llvm_cv_target_os_type="HP-UX" ;;
3762   *-*-interix*)
3763     llvm_cv_target_os_type="Interix" ;;
3764   *-*-linux*)
3765     llvm_cv_target_os_type="Linux" ;;
3766   *-*-solaris*)
3767     llvm_cv_target_os_type="SunOS" ;;
3768   *-*-auroraux*)
3769     llvm_cv_target_os_type="AuroraUX" ;;
3770   *-*-win32*)
3771     llvm_cv_target_os_type="Win32" ;;
3772   *-*-mingw*)
3773     llvm_cv_target_os_type="MingW" ;;
3774   *-*-haiku*)
3775     llvm_cv_target_os_type="Haiku" ;;
3776   *-*-rtems*)
3777     llvm_cv_target_os_type="RTEMS" ;;
3778   *-*-nacl*)
3779     llvm_cv_target_os_type="NativeClient" ;;
3780   *-unknown-eabi*)
3781     llvm_cv_target_os_type="Freestanding" ;;
3782   *)
3783     llvm_cv_target_os_type="Unknown" ;;
3784 esac
3785 fi
3786 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3788
3789 if test "$llvm_cv_os_type" = "Unknown" ; then
3790   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3791 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3792    { (exit 1); exit 1; }; }
3793 fi
3794
3795 OS=$llvm_cv_os_type
3796
3797 HOST_OS=$llvm_cv_os_type
3798
3799 TARGET_OS=$llvm_cv_target_os_type
3800
3801
3802 LINKALL=$llvm_cv_link_all_option
3803
3804 NOLINKALL=$llvm_cv_no_link_all_option
3805
3806
3807 case $llvm_cv_platform_type in
3808   Unix)
3809
3810 cat >>confdefs.h <<\_ACEOF
3811 #define LLVM_ON_UNIX 1
3812 _ACEOF
3813
3814     LLVM_ON_UNIX=1
3815
3816     LLVM_ON_WIN32=0
3817
3818     ;;
3819   Win32)
3820
3821 cat >>confdefs.h <<\_ACEOF
3822 #define LLVM_ON_WIN32 1
3823 _ACEOF
3824
3825     LLVM_ON_UNIX=0
3826
3827     LLVM_ON_WIN32=1
3828
3829     ;;
3830 esac
3831
3832 { echo "$as_me:$LINENO: checking target architecture" >&5
3833 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3834 if test "${llvm_cv_target_arch+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   case $target in
3838   i?86-*)                 llvm_cv_target_arch="x86" ;;
3839   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3840   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3841   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3842   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3843   mips-*)                 llvm_cv_target_arch="Mips" ;;
3844   xcore-*)                llvm_cv_target_arch="XCore" ;;
3845   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3846   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3847   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3848   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3849   *)                      llvm_cv_target_arch="Unknown" ;;
3850 esac
3851 fi
3852 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3853 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3854
3855 if test "$llvm_cv_target_arch" = "Unknown" ; then
3856   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3857 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3858 fi
3859
3860 # Determine the LLVM native architecture for the target
3861 case "$llvm_cv_target_arch" in
3862     x86)     LLVM_NATIVE_ARCH="X86" ;;
3863     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3864     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3865 esac
3866
3867 ARCH=$llvm_cv_target_arch
3868
3869
3870
3871
3872 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3873 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3874 if test "${ac_cv_path_GREP+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   # Extract the first word of "grep ggrep" to use in msg output
3878 if test -z "$GREP"; then
3879 set dummy grep ggrep; ac_prog_name=$2
3880 if test "${ac_cv_path_GREP+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   ac_path_GREP_found=false
3884 # Loop through the user's path and test for each of PROGNAME-LIST
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890   for ac_prog in grep ggrep; do
3891   for ac_exec_ext in '' $ac_executable_extensions; do
3892     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3893     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3894     # Check for GNU ac_path_GREP and select it if it is found.
3895   # Check for GNU $ac_path_GREP
3896 case `"$ac_path_GREP" --version 2>&1` in
3897 *GNU*)
3898   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3899 *)
3900   ac_count=0
3901   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3902   while :
3903   do
3904     cat "conftest.in" "conftest.in" >"conftest.tmp"
3905     mv "conftest.tmp" "conftest.in"
3906     cp "conftest.in" "conftest.nl"
3907     echo 'GREP' >> "conftest.nl"
3908     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910     ac_count=`expr $ac_count + 1`
3911     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3912       # Best one so far, save it but keep looking for a better one
3913       ac_cv_path_GREP="$ac_path_GREP"
3914       ac_path_GREP_max=$ac_count
3915     fi
3916     # 10*(2^10) chars as input seems more than enough
3917     test $ac_count -gt 10 && break
3918   done
3919   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 esac
3921
3922
3923     $ac_path_GREP_found && break 3
3924   done
3925 done
3926
3927 done
3928 IFS=$as_save_IFS
3929
3930
3931 fi
3932
3933 GREP="$ac_cv_path_GREP"
3934 if test -z "$GREP"; then
3935   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937    { (exit 1); exit 1; }; }
3938 fi
3939
3940 else
3941   ac_cv_path_GREP=$GREP
3942 fi
3943
3944
3945 fi
3946 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3947 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3948  GREP="$ac_cv_path_GREP"
3949
3950
3951 { echo "$as_me:$LINENO: checking for egrep" >&5
3952 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3953 if test "${ac_cv_path_EGREP+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3957    then ac_cv_path_EGREP="$GREP -E"
3958    else
3959      # Extract the first word of "egrep" to use in msg output
3960 if test -z "$EGREP"; then
3961 set dummy egrep; ac_prog_name=$2
3962 if test "${ac_cv_path_EGREP+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   ac_path_EGREP_found=false
3966 # Loop through the user's path and test for each of PROGNAME-LIST
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_prog in egrep; do
3973   for ac_exec_ext in '' $ac_executable_extensions; do
3974     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3975     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3976     # Check for GNU ac_path_EGREP and select it if it is found.
3977   # Check for GNU $ac_path_EGREP
3978 case `"$ac_path_EGREP" --version 2>&1` in
3979 *GNU*)
3980   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3981 *)
3982   ac_count=0
3983   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3984   while :
3985   do
3986     cat "conftest.in" "conftest.in" >"conftest.tmp"
3987     mv "conftest.tmp" "conftest.in"
3988     cp "conftest.in" "conftest.nl"
3989     echo 'EGREP' >> "conftest.nl"
3990     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992     ac_count=`expr $ac_count + 1`
3993     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3994       # Best one so far, save it but keep looking for a better one
3995       ac_cv_path_EGREP="$ac_path_EGREP"
3996       ac_path_EGREP_max=$ac_count
3997     fi
3998     # 10*(2^10) chars as input seems more than enough
3999     test $ac_count -gt 10 && break
4000   done
4001   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002 esac
4003
4004
4005     $ac_path_EGREP_found && break 3
4006   done
4007 done
4008
4009 done
4010 IFS=$as_save_IFS
4011
4012
4013 fi
4014
4015 EGREP="$ac_cv_path_EGREP"
4016 if test -z "$EGREP"; then
4017   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019    { (exit 1); exit 1; }; }
4020 fi
4021
4022 else
4023   ac_cv_path_EGREP=$EGREP
4024 fi
4025
4026
4027    fi
4028 fi
4029 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4030 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4031  EGREP="$ac_cv_path_EGREP"
4032
4033
4034 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4035 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4036 if test "${ac_cv_header_stdc+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 #include <stdlib.h>
4046 #include <stdarg.h>
4047 #include <string.h>
4048 #include <float.h>
4049
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4060 case "(($ac_try" in
4061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062   *) ac_try_echo=$ac_try;;
4063 esac
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065   (eval "$ac_compile") 2>conftest.er1
4066   ac_status=$?
4067   grep -v '^ *+' conftest.er1 >conftest.err
4068   rm -f conftest.er1
4069   cat conftest.err >&5
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); } &&
4072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073   { (case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078   (eval "$ac_try") 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }; } &&
4082          { ac_try='test -s conftest.$ac_objext'
4083   { (case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088   (eval "$ac_try") 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); }; }; then
4092   ac_cv_header_stdc=yes
4093 else
4094   echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097         ac_cv_header_stdc=no
4098 fi
4099
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101
4102 if test $ac_cv_header_stdc = yes; then
4103   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104   cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h.  */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h.  */
4110 #include <string.h>
4111
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114   $EGREP "memchr" >/dev/null 2>&1; then
4115   :
4116 else
4117   ac_cv_header_stdc=no
4118 fi
4119 rm -f conftest*
4120
4121 fi
4122
4123 if test $ac_cv_header_stdc = yes; then
4124   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125   cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 #include <stdlib.h>
4132
4133 _ACEOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135   $EGREP "free" >/dev/null 2>&1; then
4136   :
4137 else
4138   ac_cv_header_stdc=no
4139 fi
4140 rm -f conftest*
4141
4142 fi
4143
4144 if test $ac_cv_header_stdc = yes; then
4145   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146   if test "$cross_compiling" = yes; then
4147   :
4148 else
4149   cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <ctype.h>
4156 #include <stdlib.h>
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160 #else
4161 # define ISLOWER(c) \
4162                    (('a' <= (c) && (c) <= 'i') \
4163                      || ('j' <= (c) && (c) <= 'r') \
4164                      || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166 #endif
4167
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169 int
4170 main ()
4171 {
4172   int i;
4173   for (i = 0; i < 256; i++)
4174     if (XOR (islower (i), ISLOWER (i))
4175         || toupper (i) != TOUPPER (i))
4176       return 2;
4177   return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest$ac_exeext
4181 if { (ac_try="$ac_link"
4182 case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_link") 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191   { (case "(($ac_try" in
4192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193   *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196   (eval "$ac_try") 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; }; then
4200   :
4201 else
4202   echo "$as_me: program exited with status $ac_status" >&5
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 ( exit $ac_status )
4207 ac_cv_header_stdc=no
4208 fi
4209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4210 fi
4211
4212
4213 fi
4214 fi
4215 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4217 if test $ac_cv_header_stdc = yes; then
4218
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4221 _ACEOF
4222
4223 fi
4224
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236                   inttypes.h stdint.h unistd.h
4237 do
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h.  */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h.  */
4250 $ac_includes_default
4251
4252 #include <$ac_header>
4253 _ACEOF
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261   (eval "$ac_compile") 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } &&
4268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269   { (case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_try") 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284   (eval "$ac_try") 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; }; then
4288   eval "$as_ac_Header=yes"
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293         eval "$as_ac_Header=no"
4294 fi
4295
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 fi
4298 ac_res=`eval echo '${'$as_ac_Header'}'`
4299                { echo "$as_me:$LINENO: result: $ac_res" >&5
4300 echo "${ECHO_T}$ac_res" >&6; }
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302   cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4305
4306 fi
4307
4308 done
4309
4310
4311 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4312 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4313 if test "${ac_cv_c_bigendian+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   # See if sys/param.h defines the BYTE_ORDER macro.
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323 #include <sys/types.h>
4324 #include <sys/param.h>
4325
4326 int
4327 main ()
4328 {
4329 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4330  bogus endian macros
4331 #endif
4332
4333   ;
4334   return 0;
4335 }
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4339 case "(($ac_try" in
4340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341   *) ac_try_echo=$ac_try;;
4342 esac
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344   (eval "$ac_compile") 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } &&
4351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4352   { (case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357   (eval "$ac_try") 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; } &&
4361          { ac_try='test -s conftest.$ac_objext'
4362   { (case "(($ac_try" in
4363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364   *) ac_try_echo=$ac_try;;
4365 esac
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367   (eval "$ac_try") 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; }; then
4371   # It does; now see whether it defined to BIG_ENDIAN or not.
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4380
4381 int
4382 main ()
4383 {
4384 #if BYTE_ORDER != BIG_ENDIAN
4385  not big endian
4386 #endif
4387
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4394 case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399   (eval "$ac_compile") 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } &&
4406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407   { (case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412   (eval "$ac_try") 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; } &&
4416          { ac_try='test -s conftest.$ac_objext'
4417   { (case "(($ac_try" in
4418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419   *) ac_try_echo=$ac_try;;
4420 esac
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422   (eval "$ac_try") 2>&5
4423   ac_status=$?
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); }; }; then
4426   ac_cv_c_bigendian=yes
4427 else
4428   echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4430
4431         ac_cv_c_bigendian=no
4432 fi
4433
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439         # It does not; compile a test program.
4440 if test "$cross_compiling" = yes; then
4441   # try to guess the endianness by grepping values into an object file
4442   ac_cv_c_bigendian=unknown
4443   cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h.  */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h.  */
4449 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4450 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4451 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4452 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4453 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4454 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4455 int
4456 main ()
4457 {
4458  _ascii (); _ebcdic ();
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (ac_try="$ac_compile"
4465 case "(($ac_try" in
4466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467   *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470   (eval "$ac_compile") 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4478   { (case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483   (eval "$ac_try") 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; } &&
4487          { ac_try='test -s conftest.$ac_objext'
4488   { (case "(($ac_try" in
4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490   *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493   (eval "$ac_try") 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; }; then
4497   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4498   ac_cv_c_bigendian=yes
4499 fi
4500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4501   if test "$ac_cv_c_bigendian" = unknown; then
4502     ac_cv_c_bigendian=no
4503   else
4504     # finding both strings is unlikely to happen, but who knows?
4505     ac_cv_c_bigendian=unknown
4506   fi
4507 fi
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512
4513 fi
4514
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 else
4517   cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523 $ac_includes_default
4524 int
4525 main ()
4526 {
4527
4528   /* Are we little or big endian?  From Harbison&Steele.  */
4529   union
4530   {
4531     long int l;
4532     char c[sizeof (long int)];
4533   } u;
4534   u.l = 1;
4535   return u.c[sizeof (long int) - 1] == 1;
4536
4537   ;
4538   return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest$ac_exeext
4542 if { (ac_try="$ac_link"
4543 case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548   (eval "$ac_link") 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552   { (case "(($ac_try" in
4553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554   *) ac_try_echo=$ac_try;;
4555 esac
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557   (eval "$ac_try") 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   ac_cv_c_bigendian=no
4562 else
4563   echo "$as_me: program exited with status $ac_status" >&5
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567 ( exit $ac_status )
4568 ac_cv_c_bigendian=yes
4569 fi
4570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4571 fi
4572
4573
4574 fi
4575
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 fi
4578 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4579 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4580 case $ac_cv_c_bigendian in
4581   yes)
4582     ENDIAN=big
4583  ;;
4584   no)
4585     ENDIAN=little
4586  ;;
4587   *)
4588     { { echo "$as_me:$LINENO: error: unknown endianness
4589 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4590 echo "$as_me: error: unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4592    { (exit 1); exit 1; }; } ;;
4593 esac
4594
4595
4596 if test "$cross_compiling" = yes; then
4597   LLVM_CROSS_COMPILING=1
4598
4599
4600 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4601 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4602 if test "${ac_cv_build_exeext+set}" = set; then
4603   echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4606   ac_cv_build_exeext=.exe
4607 else
4608   ac_build_prefix=${build_alias}-
4609
4610   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4611 set dummy ${ac_build_prefix}gcc; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   if test -n "$BUILD_CC"; then
4618   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 fi
4636 fi
4637 BUILD_CC=$ac_cv_prog_BUILD_CC
4638 if test -n "$BUILD_CC"; then
4639   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4640 echo "${ECHO_T}$BUILD_CC" >&6; }
4641 else
4642   { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4644 fi
4645
4646
4647   if test -z "$BUILD_CC"; then
4648      # Extract the first word of "gcc", so it can be a program name with args.
4649 set dummy gcc; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   if test -n "$BUILD_CC"; then
4656   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663   for ac_exec_ext in '' $ac_executable_extensions; do
4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665     ac_cv_prog_BUILD_CC="gcc"
4666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670 done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 BUILD_CC=$ac_cv_prog_BUILD_CC
4676 if test -n "$BUILD_CC"; then
4677   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678 echo "${ECHO_T}$BUILD_CC" >&6; }
4679 else
4680   { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4682 fi
4683
4684
4685      if test -z "$BUILD_CC"; then
4686        # Extract the first word of "cc", so it can be a program name with args.
4687 set dummy cc; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   if test -n "$BUILD_CC"; then
4694   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695 else
4696   ac_prog_rejected=no
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702   for ac_exec_ext in '' $ac_executable_extensions; do
4703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4705        ac_prog_rejected=yes
4706        continue
4707      fi
4708     ac_cv_prog_BUILD_CC="cc"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716 if test $ac_prog_rejected = yes; then
4717   # We found a bogon in the path, so make sure we never use it.
4718   set dummy $ac_cv_prog_BUILD_CC
4719   shift
4720   if test $# != 0; then
4721     # We chose a different compiler from the bogus one.
4722     # However, it has the same basename, so the bogon will be chosen
4723     # first if we set BUILD_CC to just the basename; use the full file name.
4724     shift
4725     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4726   fi
4727 fi
4728 fi
4729 fi
4730 BUILD_CC=$ac_cv_prog_BUILD_CC
4731 if test -n "$BUILD_CC"; then
4732   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733 echo "${ECHO_T}$BUILD_CC" >&6; }
4734 else
4735   { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4737 fi
4738
4739
4740      fi
4741   fi
4742   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4743 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4744    { (exit 1); exit 1; }; }
4745   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4746   rm -f conftest*
4747   echo 'int main () { return 0; }' > conftest.$ac_ext
4748   ac_cv_build_exeext=
4749   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4750   (eval $ac_build_link) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; then
4754     for file in conftest.*; do
4755       case $file in
4756       *.c | *.o | *.obj | *.dSYM) ;;
4757       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4758       esac
4759     done
4760   else
4761     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4762 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4763    { (exit 1); exit 1; }; }
4764   fi
4765   rm -f conftest*
4766   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4767 fi
4768 fi
4769
4770 BUILD_EXEEXT=""
4771 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4772 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4773 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4774 ac_build_exeext=$BUILD_EXEEXT
4775
4776   ac_build_prefix=${build_alias}-
4777   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4778 set dummy ${ac_build_prefix}g++; ac_word=$2
4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   if test -n "$BUILD_CXX"; then
4785   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792   for ac_exec_ext in '' $ac_executable_extensions; do
4793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4794     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802 fi
4803 fi
4804 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4805 if test -n "$BUILD_CXX"; then
4806   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4807 echo "${ECHO_T}$BUILD_CXX" >&6; }
4808 else
4809   { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4811 fi
4812
4813
4814   if test -z "$BUILD_CXX"; then
4815      # Extract the first word of "g++", so it can be a program name with args.
4816 set dummy g++; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$BUILD_CXX"; then
4823   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_prog_BUILD_CXX="g++"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843 if test -n "$BUILD_CXX"; then
4844   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845 echo "${ECHO_T}$BUILD_CXX" >&6; }
4846 else
4847   { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4849 fi
4850
4851
4852      if test -z "$BUILD_CXX"; then
4853        # Extract the first word of "c++", so it can be a program name with args.
4854 set dummy c++; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$BUILD_CXX"; then
4861   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862 else
4863   ac_prog_rejected=no
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869   for ac_exec_ext in '' $ac_executable_extensions; do
4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4872        ac_prog_rejected=yes
4873        continue
4874      fi
4875     ac_cv_prog_BUILD_CXX="c++"
4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 if test $ac_prog_rejected = yes; then
4884   # We found a bogon in the path, so make sure we never use it.
4885   set dummy $ac_cv_prog_BUILD_CXX
4886   shift
4887   if test $# != 0; then
4888     # We chose a different compiler from the bogus one.
4889     # However, it has the same basename, so the bogon will be chosen
4890     # first if we set BUILD_CXX to just the basename; use the full file name.
4891     shift
4892     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4893   fi
4894 fi
4895 fi
4896 fi
4897 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898 if test -n "$BUILD_CXX"; then
4899   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900 echo "${ECHO_T}$BUILD_CXX" >&6; }
4901 else
4902   { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4904 fi
4905
4906
4907      fi
4908   fi
4909 else
4910   LLVM_CROSS_COMPILING=0
4911
4912 fi
4913
4914 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4915   cvsbuild="yes"
4916   optimize="no"
4917   CVSBUILD=CVSBUILD=1
4918
4919 else
4920   cvsbuild="no"
4921   optimize="yes"
4922 fi
4923
4924
4925 # Check whether --enable-optimized was given.
4926 if test "${enable_optimized+set}" = set; then
4927   enableval=$enable_optimized;
4928 else
4929   enableval=$optimize
4930 fi
4931
4932 if test ${enableval} = "no" ; then
4933   ENABLE_OPTIMIZED=
4934
4935 else
4936   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4937
4938 fi
4939
4940 # Check whether --enable-profiling was given.
4941 if test "${enable_profiling+set}" = set; then
4942   enableval=$enable_profiling;
4943 else
4944   enableval="no"
4945 fi
4946
4947 if test ${enableval} = "no" ; then
4948   ENABLE_PROFILING=
4949
4950 else
4951   ENABLE_PROFILING=ENABLE_PROFILING=1
4952
4953 fi
4954
4955 # Check whether --enable-assertions was given.
4956 if test "${enable_assertions+set}" = set; then
4957   enableval=$enable_assertions;
4958 else
4959   enableval="yes"
4960 fi
4961
4962 if test ${enableval} = "yes" ; then
4963   DISABLE_ASSERTIONS=
4964
4965 else
4966   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4967
4968 fi
4969
4970 # Check whether --enable-expensive-checks was given.
4971 if test "${enable_expensive_checks+set}" = set; then
4972   enableval=$enable_expensive_checks;
4973 else
4974   enableval="no"
4975 fi
4976
4977 if test ${enableval} = "yes" ; then
4978   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4979
4980   EXPENSIVE_CHECKS=yes
4981
4982 else
4983   ENABLE_EXPENSIVE_CHECKS=
4984
4985   EXPENSIVE_CHECKS=no
4986
4987 fi
4988
4989 # Check whether --enable-debug-runtime was given.
4990 if test "${enable_debug_runtime+set}" = set; then
4991   enableval=$enable_debug_runtime;
4992 else
4993   enableval=no
4994 fi
4995
4996 if test ${enableval} = "no" ; then
4997   DEBUG_RUNTIME=
4998
4999 else
5000   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5001
5002 fi
5003
5004 # Check whether --enable-debug-symbols was given.
5005 if test "${enable_debug_symbols+set}" = set; then
5006   enableval=$enable_debug_symbols;
5007 else
5008   enableval=no
5009 fi
5010
5011 if test ${enableval} = "no" ; then
5012   DEBUG_SYMBOLS=
5013
5014 else
5015   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5016
5017 fi
5018
5019 # Check whether --enable-jit was given.
5020 if test "${enable_jit+set}" = set; then
5021   enableval=$enable_jit;
5022 else
5023   enableval=default
5024 fi
5025
5026 if test ${enableval} = "no"
5027 then
5028   JIT=
5029
5030 else
5031   case "$llvm_cv_target_arch" in
5032     x86)         TARGET_HAS_JIT=1
5033  ;;
5034     Sparc)       TARGET_HAS_JIT=0
5035  ;;
5036     PowerPC)     TARGET_HAS_JIT=1
5037  ;;
5038     x86_64)      TARGET_HAS_JIT=1
5039  ;;
5040     ARM)         TARGET_HAS_JIT=1
5041  ;;
5042     Mips)        TARGET_HAS_JIT=1
5043  ;;
5044     XCore)       TARGET_HAS_JIT=0
5045  ;;
5046     MSP430)      TARGET_HAS_JIT=0
5047  ;;
5048     Hexagon)     TARGET_HAS_JIT=0
5049  ;;
5050     MBlaze)      TARGET_HAS_JIT=0
5051  ;;
5052     PTX)         TARGET_HAS_JIT=0
5053  ;;
5054     *)           TARGET_HAS_JIT=0
5055  ;;
5056   esac
5057 fi
5058
5059 # Check whether --enable-docs was given.
5060 if test "${enable_docs+set}" = set; then
5061   enableval=$enable_docs;
5062 else
5063   enableval=default
5064 fi
5065
5066 case "$enableval" in
5067   yes) ENABLE_DOCS=1
5068  ;;
5069   no)  ENABLE_DOCS=0
5070  ;;
5071   default) ENABLE_DOCS=1
5072  ;;
5073   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5074 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5075    { (exit 1); exit 1; }; } ;;
5076 esac
5077
5078 # Check whether --enable-doxygen was given.
5079 if test "${enable_doxygen+set}" = set; then
5080   enableval=$enable_doxygen;
5081 else
5082   enableval=default
5083 fi
5084
5085 case "$enableval" in
5086   yes) ENABLE_DOXYGEN=1
5087  ;;
5088   no)  ENABLE_DOXYGEN=0
5089  ;;
5090   default) ENABLE_DOXYGEN=0
5091  ;;
5092   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5093 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5094    { (exit 1); exit 1; }; } ;;
5095 esac
5096
5097 # Check whether --enable-threads was given.
5098 if test "${enable_threads+set}" = set; then
5099   enableval=$enable_threads;
5100 else
5101   enableval=default
5102 fi
5103
5104 case "$enableval" in
5105   yes) ENABLE_THREADS=1
5106  ;;
5107   no)  ENABLE_THREADS=0
5108  ;;
5109   default) ENABLE_THREADS=1
5110  ;;
5111   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5113    { (exit 1); exit 1; }; } ;;
5114 esac
5115
5116 cat >>confdefs.h <<_ACEOF
5117 #define ENABLE_THREADS $ENABLE_THREADS
5118 _ACEOF
5119
5120
5121 # Check whether --enable-pthreads was given.
5122 if test "${enable_pthreads+set}" = set; then
5123   enableval=$enable_pthreads;
5124 else
5125   enableval=default
5126 fi
5127
5128 case "$enableval" in
5129   yes) ENABLE_PTHREADS=1
5130  ;;
5131   no)  ENABLE_PTHREADS=0
5132  ;;
5133   default) ENABLE_PTHREADS=1
5134  ;;
5135   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5137    { (exit 1); exit 1; }; } ;;
5138 esac
5139
5140 # Check whether --enable-pic was given.
5141 if test "${enable_pic+set}" = set; then
5142   enableval=$enable_pic;
5143 else
5144   enableval=default
5145 fi
5146
5147 case "$enableval" in
5148   yes) ENABLE_PIC=1
5149  ;;
5150   no)  ENABLE_PIC=0
5151  ;;
5152   default) ENABLE_PIC=1
5153  ;;
5154   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5156    { (exit 1); exit 1; }; } ;;
5157 esac
5158
5159 cat >>confdefs.h <<_ACEOF
5160 #define ENABLE_PIC $ENABLE_PIC
5161 _ACEOF
5162
5163
5164 # Check whether --enable-shared was given.
5165 if test "${enable_shared+set}" = set; then
5166   enableval=$enable_shared;
5167 else
5168   enableval=default
5169 fi
5170
5171 case "$enableval" in
5172   yes) ENABLE_SHARED=1
5173  ;;
5174   no)  ENABLE_SHARED=0
5175  ;;
5176   default) ENABLE_SHARED=0
5177  ;;
5178   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5180    { (exit 1); exit 1; }; } ;;
5181 esac
5182
5183 # Check whether --enable-embed-stdcxx was given.
5184 if test "${enable_embed_stdcxx+set}" = set; then
5185   enableval=$enable_embed_stdcxx;
5186 else
5187   enableval=default
5188 fi
5189
5190 case "$enableval" in
5191   yes) ENABLE_EMBED_STDCXX=1
5192  ;;
5193   no)  ENABLE_EMBED_STDCXX=0
5194  ;;
5195   default) ENABLE_EMBED_STDCXX=1
5196  ;;
5197   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5198 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5199    { (exit 1); exit 1; }; } ;;
5200 esac
5201
5202 # Check whether --enable-timestamps was given.
5203 if test "${enable_timestamps+set}" = set; then
5204   enableval=$enable_timestamps;
5205 else
5206   enableval=default
5207 fi
5208
5209 case "$enableval" in
5210   yes) ENABLE_TIMESTAMPS=1
5211  ;;
5212   no)  ENABLE_TIMESTAMPS=0
5213  ;;
5214   default) ENABLE_TIMESTAMPS=1
5215  ;;
5216   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5218    { (exit 1); exit 1; }; } ;;
5219 esac
5220
5221 cat >>confdefs.h <<_ACEOF
5222 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5223 _ACEOF
5224
5225
5226 TARGETS_TO_BUILD=""
5227 # Check whether --enable-targets was given.
5228 if test "${enable_targets+set}" = set; then
5229   enableval=$enable_targets;
5230 else
5231   enableval=all
5232 fi
5233
5234 if test "$enableval" = host-only ; then
5235   enableval=host
5236 fi
5237 case "$enableval" in
5238   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5239   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5240       case "$a_target" in
5241         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5242         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5243         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5244         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5245         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5246         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5247         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5248         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5249         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5250         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5251         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5252         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5253         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5254         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5255         host) case "$llvm_cv_target_arch" in
5256             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5257             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5258             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5259             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5260             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5261             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5262             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5263             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5264             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5265             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5266             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5267             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5268             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5269 echo "$as_me: error: Can not set target to build" >&2;}
5270    { (exit 1); exit 1; }; } ;;
5271           esac ;;
5272         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5273 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275       esac
5276   done
5277   ;;
5278 esac
5279 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5280
5281
5282 # Determine whether we are building LLVM support for the native architecture.
5283 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5284 for a_target in $TARGETS_TO_BUILD; do
5285   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5286
5287 cat >>confdefs.h <<_ACEOF
5288 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5289 _ACEOF
5290
5291     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5292     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5293     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5294     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5295     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5296       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5297     fi
5298
5299 cat >>confdefs.h <<_ACEOF
5300 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5301 _ACEOF
5302
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5306 _ACEOF
5307
5308
5309 cat >>confdefs.h <<_ACEOF
5310 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5311 _ACEOF
5312
5313
5314 cat >>confdefs.h <<_ACEOF
5315 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5316 _ACEOF
5317
5318     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5319
5320 cat >>confdefs.h <<_ACEOF
5321 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5322 _ACEOF
5323
5324     fi
5325   fi
5326 done
5327
5328 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5329 # target feature def files.
5330 LLVM_ENUM_TARGETS=""
5331 LLVM_ENUM_ASM_PRINTERS=""
5332 LLVM_ENUM_ASM_PARSERS=""
5333 LLVM_ENUM_DISASSEMBLERS=""
5334 for target_to_build in $TARGETS_TO_BUILD; do
5335   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5336   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5337     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5338   fi
5339   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5340     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5341   fi
5342   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5343     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5344   fi
5345 done
5346
5347
5348
5349
5350
5351 # Check whether --enable-cbe-printf-a was given.
5352 if test "${enable_cbe_printf_a+set}" = set; then
5353   enableval=$enable_cbe_printf_a;
5354 else
5355   enableval=default
5356 fi
5357
5358 case "$enableval" in
5359   yes) ENABLE_CBE_PRINTF_A=1
5360  ;;
5361   no)  ENABLE_CBE_PRINTF_A=0
5362  ;;
5363   default)  ENABLE_CBE_PRINTF_A=1
5364  ;;
5365   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5366 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5367    { (exit 1); exit 1; }; } ;;
5368 esac
5369
5370 cat >>confdefs.h <<_ACEOF
5371 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5372 _ACEOF
5373
5374
5375
5376 # Check whether --with-optimize-option was given.
5377 if test "${with_optimize_option+set}" = set; then
5378   withval=$with_optimize_option;
5379 else
5380   withval=default
5381 fi
5382
5383 { echo "$as_me:$LINENO: checking optimization flags" >&5
5384 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5385 case "$withval" in
5386   default)
5387     case "$llvm_cv_os_type" in
5388     FreeBSD) optimize_option=-O2 ;;
5389     MingW) optimize_option=-O2 ;;
5390     *)     optimize_option=-O3 ;;
5391     esac ;;
5392   *) optimize_option="$withval" ;;
5393 esac
5394 OPTIMIZE_OPTION=$optimize_option
5395
5396 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5397 echo "${ECHO_T}$optimize_option" >&6; }
5398
5399
5400 # Check whether --with-extra-options was given.
5401 if test "${with_extra_options+set}" = set; then
5402   withval=$with_extra_options;
5403 else
5404   withval=default
5405 fi
5406
5407 case "$withval" in
5408   default) EXTRA_OPTIONS= ;;
5409   *) EXTRA_OPTIONS=$withval ;;
5410 esac
5411 EXTRA_OPTIONS=$EXTRA_OPTIONS
5412
5413
5414
5415 # Check whether --with-extra-ld-options was given.
5416 if test "${with_extra_ld_options+set}" = set; then
5417   withval=$with_extra_ld_options;
5418 else
5419   withval=default
5420 fi
5421
5422 case "$withval" in
5423   default) EXTRA_LD_OPTIONS= ;;
5424   *) EXTRA_LD_OPTIONS=$withval ;;
5425 esac
5426 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5427
5428
5429 # Check whether --enable-bindings was given.
5430 if test "${enable_bindings+set}" = set; then
5431   enableval=$enable_bindings;
5432 else
5433   enableval=default
5434 fi
5435
5436 BINDINGS_TO_BUILD=""
5437 case "$enableval" in
5438   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5439   all ) BINDINGS_TO_BUILD="ocaml" ;;
5440   none | no) BINDINGS_TO_BUILD="" ;;
5441   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5442       case "$a_binding" in
5443         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5444         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5445 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5446    { (exit 1); exit 1; }; } ;;
5447       esac
5448   done
5449   ;;
5450 esac
5451
5452
5453 # Check whether --with-ocaml-libdir was given.
5454 if test "${with_ocaml_libdir+set}" = set; then
5455   withval=$with_ocaml_libdir;
5456 else
5457   withval=auto
5458 fi
5459
5460 case "$withval" in
5461   auto) with_ocaml_libdir="$withval" ;;
5462   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5463   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5464 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5465    { (exit 1); exit 1; }; } ;;
5466 esac
5467
5468
5469 # Check whether --with-clang-resource-dir was given.
5470 if test "${with_clang_resource_dir+set}" = set; then
5471   withval=$with_clang_resource_dir;
5472 else
5473   withval=""
5474 fi
5475
5476
5477 cat >>confdefs.h <<_ACEOF
5478 #define CLANG_RESOURCE_DIR "$withval"
5479 _ACEOF
5480
5481
5482
5483 # Check whether --with-c-include-dirs was given.
5484 if test "${with_c_include_dirs+set}" = set; then
5485   withval=$with_c_include_dirs;
5486 else
5487   withval=""
5488 fi
5489
5490
5491 cat >>confdefs.h <<_ACEOF
5492 #define C_INCLUDE_DIRS "$withval"
5493 _ACEOF
5494
5495
5496
5497 # Check whether --with-cxx-include-root was given.
5498 if test "${with_cxx_include_root+set}" = set; then
5499   withval=$with_cxx_include_root;
5500 else
5501   withval=""
5502 fi
5503
5504
5505 cat >>confdefs.h <<_ACEOF
5506 #define CXX_INCLUDE_ROOT "$withval"
5507 _ACEOF
5508
5509
5510
5511 # Check whether --with-cxx-include-arch was given.
5512 if test "${with_cxx_include_arch+set}" = set; then
5513   withval=$with_cxx_include_arch;
5514 else
5515   withval=""
5516 fi
5517
5518
5519 cat >>confdefs.h <<_ACEOF
5520 #define CXX_INCLUDE_ARCH "$withval"
5521 _ACEOF
5522
5523
5524
5525 # Check whether --with-cxx-include-32bit-dir was given.
5526 if test "${with_cxx_include_32bit_dir+set}" = set; then
5527   withval=$with_cxx_include_32bit_dir;
5528 else
5529   withval=""
5530 fi
5531
5532
5533 cat >>confdefs.h <<_ACEOF
5534 #define CXX_INCLUDE_32BIT_DIR "$withval"
5535 _ACEOF
5536
5537
5538
5539 # Check whether --with-cxx-include-64bit-dir was given.
5540 if test "${with_cxx_include_64bit_dir+set}" = set; then
5541   withval=$with_cxx_include_64bit_dir;
5542 else
5543   withval=""
5544 fi
5545
5546
5547 cat >>confdefs.h <<_ACEOF
5548 #define CXX_INCLUDE_64BIT_DIR "$withval"
5549 _ACEOF
5550
5551
5552
5553 # Check whether --with-binutils-include was given.
5554 if test "${with_binutils_include+set}" = set; then
5555   withval=$with_binutils_include;
5556 else
5557   withval=default
5558 fi
5559
5560 case "$withval" in
5561   default) WITH_BINUTILS_INCDIR=default ;;
5562   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5563   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5564 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5565    { (exit 1); exit 1; }; } ;;
5566 esac
5567 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5568   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5569
5570   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5571      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5572      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5573 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5574    { (exit 1); exit 1; }; };
5575   fi
5576 fi
5577
5578
5579 # Check whether --with-bug-report-url was given.
5580 if test "${with_bug_report_url+set}" = set; then
5581   withval=$with_bug_report_url;
5582 else
5583   withval="http://llvm.org/bugs/"
5584 fi
5585
5586
5587 cat >>confdefs.h <<_ACEOF
5588 #define BUG_REPORT_URL "$withval"
5589 _ACEOF
5590
5591
5592 # Check whether --enable-libffi was given.
5593 if test "${enable_libffi+set}" = set; then
5594   enableval=$enable_libffi; case "$enableval" in
5595     yes) llvm_cv_enable_libffi="yes" ;;
5596     no)  llvm_cv_enable_libffi="no"  ;;
5597     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5598 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5599    { (exit 1); exit 1; }; } ;;
5600   esac
5601 else
5602   llvm_cv_enable_libffi=no
5603 fi
5604
5605
5606
5607 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5608 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5609 if test "${lt_cv_path_NM+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if test -n "$NM"; then
5613   # Let the user override the test.
5614   lt_cv_path_NM="$NM"
5615 else
5616   lt_nm_to_check="${ac_tool_prefix}nm"
5617   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5618     lt_nm_to_check="$lt_nm_to_check nm"
5619   fi
5620   for lt_tmp_nm in $lt_nm_to_check; do
5621     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5622     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5623       IFS="$lt_save_ifs"
5624       test -z "$ac_dir" && ac_dir=.
5625       tmp_nm="$ac_dir/$lt_tmp_nm"
5626       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5627         # Check to see if the nm accepts a BSD-compat flag.
5628         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5629         #   nm: unknown option "B" ignored
5630         # Tru64's nm complains that /dev/null is an invalid object file
5631         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5632         */dev/null* | *'Invalid file or object type'*)
5633           lt_cv_path_NM="$tmp_nm -B"
5634           break
5635           ;;
5636         *)
5637           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5638           */dev/null*)
5639             lt_cv_path_NM="$tmp_nm -p"
5640             break
5641             ;;
5642           *)
5643             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5644             continue # so that we can try to find one that supports BSD flags
5645             ;;
5646           esac
5647           ;;
5648         esac
5649       fi
5650     done
5651     IFS="$lt_save_ifs"
5652   done
5653   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5654 fi
5655 fi
5656 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5657 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5658 NM="$lt_cv_path_NM"
5659
5660
5661
5662 { echo "$as_me:$LINENO: checking for GNU make" >&5
5663 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5664 if test "${llvm_cv_gnu_make_command+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   llvm_cv_gnu_make_command=''
5668  for a in "$MAKE" make gmake gnumake ; do
5669   if test -z "$a" ; then continue ; fi ;
5670   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5671   then
5672    llvm_cv_gnu_make_command=$a ;
5673    break;
5674   fi
5675  done
5676 fi
5677 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5678 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5679  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5680    ifGNUmake='' ;
5681  else
5682    ifGNUmake='#' ;
5683    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5684 echo "${ECHO_T}\"Not found\"" >&6; };
5685  fi
5686
5687
5688 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5689 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5690 LN_S=$as_ln_s
5691 if test "$LN_S" = "ln -s"; then
5692   { echo "$as_me:$LINENO: result: yes" >&5
5693 echo "${ECHO_T}yes" >&6; }
5694 else
5695   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5696 echo "${ECHO_T}no, using $LN_S" >&6; }
5697 fi
5698
5699 # Extract the first word of "cmp", so it can be a program name with args.
5700 set dummy cmp; ac_word=$2
5701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703 if test "${ac_cv_path_CMP+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   case $CMP in
5707   [\\/]* | ?:[\\/]*)
5708   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5709   ;;
5710   *)
5711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716   for ac_exec_ext in '' $ac_executable_extensions; do
5717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5718     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5727   ;;
5728 esac
5729 fi
5730 CMP=$ac_cv_path_CMP
5731 if test -n "$CMP"; then
5732   { echo "$as_me:$LINENO: result: $CMP" >&5
5733 echo "${ECHO_T}$CMP" >&6; }
5734 else
5735   { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5737 fi
5738
5739
5740 # Extract the first word of "cp", so it can be a program name with args.
5741 set dummy cp; ac_word=$2
5742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744 if test "${ac_cv_path_CP+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   case $CP in
5748   [\\/]* | ?:[\\/]*)
5749   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5750   ;;
5751   *)
5752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755   IFS=$as_save_IFS
5756   test -z "$as_dir" && as_dir=.
5757   for ac_exec_ext in '' $ac_executable_extensions; do
5758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5759     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761     break 2
5762   fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5768   ;;
5769 esac
5770 fi
5771 CP=$ac_cv_path_CP
5772 if test -n "$CP"; then
5773   { echo "$as_me:$LINENO: result: $CP" >&5
5774 echo "${ECHO_T}$CP" >&6; }
5775 else
5776   { echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6; }
5778 fi
5779
5780
5781 # Extract the first word of "date", so it can be a program name with args.
5782 set dummy date; ac_word=$2
5783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5785 if test "${ac_cv_path_DATE+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   case $DATE in
5789   [\\/]* | ?:[\\/]*)
5790   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5791   ;;
5792   *)
5793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798   for ac_exec_ext in '' $ac_executable_extensions; do
5799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5800     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805 done
5806 IFS=$as_save_IFS
5807
5808   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5809   ;;
5810 esac
5811 fi
5812 DATE=$ac_cv_path_DATE
5813 if test -n "$DATE"; then
5814   { echo "$as_me:$LINENO: result: $DATE" >&5
5815 echo "${ECHO_T}$DATE" >&6; }
5816 else
5817   { echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6; }
5819 fi
5820
5821
5822 # Extract the first word of "find", so it can be a program name with args.
5823 set dummy find; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_path_FIND+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   case $FIND in
5830   [\\/]* | ?:[\\/]*)
5831   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5832   ;;
5833   *)
5834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839   for ac_exec_ext in '' $ac_executable_extensions; do
5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5841     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5850   ;;
5851 esac
5852 fi
5853 FIND=$ac_cv_path_FIND
5854 if test -n "$FIND"; then
5855   { echo "$as_me:$LINENO: result: $FIND" >&5
5856 echo "${ECHO_T}$FIND" >&6; }
5857 else
5858   { echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6; }
5860 fi
5861
5862
5863 # Extract the first word of "grep", so it can be a program name with args.
5864 set dummy grep; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_path_GREP+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   case $GREP in
5871   [\\/]* | ?:[\\/]*)
5872   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5873   ;;
5874   *)
5875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880   for ac_exec_ext in '' $ac_executable_extensions; do
5881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5882     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884     break 2
5885   fi
5886 done
5887 done
5888 IFS=$as_save_IFS
5889
5890   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5891   ;;
5892 esac
5893 fi
5894 GREP=$ac_cv_path_GREP
5895 if test -n "$GREP"; then
5896   { echo "$as_me:$LINENO: result: $GREP" >&5
5897 echo "${ECHO_T}$GREP" >&6; }
5898 else
5899   { echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6; }
5901 fi
5902
5903
5904 # Extract the first word of "mkdir", so it can be a program name with args.
5905 set dummy mkdir; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_path_MKDIR+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   case $MKDIR in
5912   [\\/]* | ?:[\\/]*)
5913   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5914   ;;
5915   *)
5916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921   for ac_exec_ext in '' $ac_executable_extensions; do
5922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5923     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5932   ;;
5933 esac
5934 fi
5935 MKDIR=$ac_cv_path_MKDIR
5936 if test -n "$MKDIR"; then
5937   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5938 echo "${ECHO_T}$MKDIR" >&6; }
5939 else
5940   { echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6; }
5942 fi
5943
5944
5945 # Extract the first word of "mv", so it can be a program name with args.
5946 set dummy mv; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_path_MV+set}" = set; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   case $MV in
5953   [\\/]* | ?:[\\/]*)
5954   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5955   ;;
5956   *)
5957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960   IFS=$as_save_IFS
5961   test -z "$as_dir" && as_dir=.
5962   for ac_exec_ext in '' $ac_executable_extensions; do
5963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5964     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966     break 2
5967   fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5973   ;;
5974 esac
5975 fi
5976 MV=$ac_cv_path_MV
5977 if test -n "$MV"; then
5978   { echo "$as_me:$LINENO: result: $MV" >&5
5979 echo "${ECHO_T}$MV" >&6; }
5980 else
5981   { echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6; }
5983 fi
5984
5985
5986 if test -n "$ac_tool_prefix"; then
5987   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_RANLIB+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   if test -n "$RANLIB"; then
5995   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000   IFS=$as_save_IFS
6001   test -z "$as_dir" && as_dir=.
6002   for ac_exec_ext in '' $ac_executable_extensions; do
6003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6004     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006     break 2
6007   fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 RANLIB=$ac_cv_prog_RANLIB
6015 if test -n "$RANLIB"; then
6016   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6017 echo "${ECHO_T}$RANLIB" >&6; }
6018 else
6019   { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6021 fi
6022
6023
6024 fi
6025 if test -z "$ac_cv_prog_RANLIB"; then
6026   ac_ct_RANLIB=$RANLIB
6027   # Extract the first word of "ranlib", so it can be a program name with args.
6028 set dummy ranlib; ac_word=$2
6029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6031 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   if test -n "$ac_ct_RANLIB"; then
6035   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042   for ac_exec_ext in '' $ac_executable_extensions; do
6043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044     ac_cv_prog_ac_ct_RANLIB="ranlib"
6045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6055 if test -n "$ac_ct_RANLIB"; then
6056   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6057 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6058 else
6059   { echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6; }
6061 fi
6062
6063   if test "x$ac_ct_RANLIB" = x; then
6064     RANLIB=":"
6065   else
6066     case $cross_compiling:$ac_tool_warned in
6067 yes:)
6068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6069 whose name does not start with the host triplet.  If you think this
6070 configuration is useful to you, please write to autoconf@gnu.org." >&5
6071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6072 whose name does not start with the host triplet.  If you think this
6073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6074 ac_tool_warned=yes ;;
6075 esac
6076     RANLIB=$ac_ct_RANLIB
6077   fi
6078 else
6079   RANLIB="$ac_cv_prog_RANLIB"
6080 fi
6081
6082 if test -n "$ac_tool_prefix"; then
6083   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6084 set dummy ${ac_tool_prefix}ar; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_prog_AR+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   if test -n "$AR"; then
6091   ac_cv_prog_AR="$AR" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098   for ac_exec_ext in '' $ac_executable_extensions; do
6099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6100     ac_cv_prog_AR="${ac_tool_prefix}ar"
6101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105 done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 AR=$ac_cv_prog_AR
6111 if test -n "$AR"; then
6112   { echo "$as_me:$LINENO: result: $AR" >&5
6113 echo "${ECHO_T}$AR" >&6; }
6114 else
6115   { echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6; }
6117 fi
6118
6119
6120 fi
6121 if test -z "$ac_cv_prog_AR"; then
6122   ac_ct_AR=$AR
6123   # Extract the first word of "ar", so it can be a program name with args.
6124 set dummy ar; ac_word=$2
6125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   if test -n "$ac_ct_AR"; then
6131   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6135 do
6136   IFS=$as_save_IFS
6137   test -z "$as_dir" && as_dir=.
6138   for ac_exec_ext in '' $ac_executable_extensions; do
6139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6140     ac_cv_prog_ac_ct_AR="ar"
6141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142     break 2
6143   fi
6144 done
6145 done
6146 IFS=$as_save_IFS
6147
6148 fi
6149 fi
6150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6151 if test -n "$ac_ct_AR"; then
6152   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6153 echo "${ECHO_T}$ac_ct_AR" >&6; }
6154 else
6155   { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6157 fi
6158
6159   if test "x$ac_ct_AR" = x; then
6160     AR="false"
6161   else
6162     case $cross_compiling:$ac_tool_warned in
6163 yes:)
6164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6165 whose name does not start with the host triplet.  If you think this
6166 configuration is useful to you, please write to autoconf@gnu.org." >&5
6167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6168 whose name does not start with the host triplet.  If you think this
6169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6170 ac_tool_warned=yes ;;
6171 esac
6172     AR=$ac_ct_AR
6173   fi
6174 else
6175   AR="$ac_cv_prog_AR"
6176 fi
6177
6178 # Extract the first word of "rm", so it can be a program name with args.
6179 set dummy rm; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_path_RM+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   case $RM in
6186   [\\/]* | ?:[\\/]*)
6187   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6188   ;;
6189   *)
6190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195   for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6206   ;;
6207 esac
6208 fi
6209 RM=$ac_cv_path_RM
6210 if test -n "$RM"; then
6211   { echo "$as_me:$LINENO: result: $RM" >&5
6212 echo "${ECHO_T}$RM" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218
6219 # Extract the first word of "sed", so it can be a program name with args.
6220 set dummy sed; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_SED+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   case $SED in
6227   [\\/]* | ?:[\\/]*)
6228   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6229   ;;
6230   *)
6231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236   for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6247   ;;
6248 esac
6249 fi
6250 SED=$ac_cv_path_SED
6251 if test -n "$SED"; then
6252   { echo "$as_me:$LINENO: result: $SED" >&5
6253 echo "${ECHO_T}$SED" >&6; }
6254 else
6255   { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6257 fi
6258
6259
6260 # Extract the first word of "tar", so it can be a program name with args.
6261 set dummy tar; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_TAR+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   case $TAR in
6268   [\\/]* | ?:[\\/]*)
6269   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6270   ;;
6271   *)
6272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277   for ac_exec_ext in '' $ac_executable_extensions; do
6278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281     break 2
6282   fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6288   ;;
6289 esac
6290 fi
6291 TAR=$ac_cv_path_TAR
6292 if test -n "$TAR"; then
6293   { echo "$as_me:$LINENO: result: $TAR" >&5
6294 echo "${ECHO_T}$TAR" >&6; }
6295 else
6296   { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6298 fi
6299
6300
6301 # Extract the first word of "pwd", so it can be a program name with args.
6302 set dummy pwd; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_BINPWD+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   case $BINPWD in
6309   [\\/]* | ?:[\\/]*)
6310   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6311   ;;
6312   *)
6313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6329   ;;
6330 esac
6331 fi
6332 BINPWD=$ac_cv_path_BINPWD
6333 if test -n "$BINPWD"; then
6334   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6335 echo "${ECHO_T}$BINPWD" >&6; }
6336 else
6337   { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6339 fi
6340
6341
6342
6343 # Extract the first word of "Graphviz", so it can be a program name with args.
6344 set dummy Graphviz; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   case $GRAPHVIZ in
6351   [\\/]* | ?:[\\/]*)
6352   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6353   ;;
6354   *)
6355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360   for ac_exec_ext in '' $ac_executable_extensions; do
6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6362     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6371   ;;
6372 esac
6373 fi
6374 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6375 if test -n "$GRAPHVIZ"; then
6376   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6377 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6378 else
6379   { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6381 fi
6382
6383
6384 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6385
6386 cat >>confdefs.h <<\_ACEOF
6387 #define HAVE_GRAPHVIZ 1
6388 _ACEOF
6389
6390     if test "$llvm_cv_os_type" = "MingW" ; then
6391     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6392   fi
6393
6394 cat >>confdefs.h <<_ACEOF
6395 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6396 _ACEOF
6397
6398 fi
6399 # Extract the first word of "dot", so it can be a program name with args.
6400 set dummy dot; ac_word=$2
6401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403 if test "${ac_cv_path_DOT+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   case $DOT in
6407   [\\/]* | ?:[\\/]*)
6408   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6409   ;;
6410   *)
6411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416   for ac_exec_ext in '' $ac_executable_extensions; do
6417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6427   ;;
6428 esac
6429 fi
6430 DOT=$ac_cv_path_DOT
6431 if test -n "$DOT"; then
6432   { echo "$as_me:$LINENO: result: $DOT" >&5
6433 echo "${ECHO_T}$DOT" >&6; }
6434 else
6435   { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6437 fi
6438
6439
6440 if test "$DOT" != "echo dot" ; then
6441
6442 cat >>confdefs.h <<\_ACEOF
6443 #define HAVE_DOT 1
6444 _ACEOF
6445
6446     if test "$llvm_cv_os_type" = "MingW" ; then
6447     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6448   fi
6449
6450 cat >>confdefs.h <<_ACEOF
6451 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6452 _ACEOF
6453
6454 fi
6455 # Extract the first word of "fdp", so it can be a program name with args.
6456 set dummy fdp; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_path_FDP+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   case $FDP in
6463   [\\/]* | ?:[\\/]*)
6464   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6465   ;;
6466   *)
6467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472   for ac_exec_ext in '' $ac_executable_extensions; do
6473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6474     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476     break 2
6477   fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6483   ;;
6484 esac
6485 fi
6486 FDP=$ac_cv_path_FDP
6487 if test -n "$FDP"; then
6488   { echo "$as_me:$LINENO: result: $FDP" >&5
6489 echo "${ECHO_T}$FDP" >&6; }
6490 else
6491   { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6493 fi
6494
6495
6496 if test "$FDP" != "echo fdp" ; then
6497
6498 cat >>confdefs.h <<\_ACEOF
6499 #define HAVE_FDP 1
6500 _ACEOF
6501
6502     if test "$llvm_cv_os_type" = "MingW" ; then
6503     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6504   fi
6505
6506 cat >>confdefs.h <<_ACEOF
6507 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6508 _ACEOF
6509
6510 fi
6511 # Extract the first word of "neato", so it can be a program name with args.
6512 set dummy neato; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_path_NEATO+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   case $NEATO in
6519   [\\/]* | ?:[\\/]*)
6520   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6521   ;;
6522   *)
6523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528   for ac_exec_ext in '' $ac_executable_extensions; do
6529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6530     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535 done
6536 IFS=$as_save_IFS
6537
6538   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6539   ;;
6540 esac
6541 fi
6542 NEATO=$ac_cv_path_NEATO
6543 if test -n "$NEATO"; then
6544   { echo "$as_me:$LINENO: result: $NEATO" >&5
6545 echo "${ECHO_T}$NEATO" >&6; }
6546 else
6547   { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6549 fi
6550
6551
6552 if test "$NEATO" != "echo neato" ; then
6553
6554 cat >>confdefs.h <<\_ACEOF
6555 #define HAVE_NEATO 1
6556 _ACEOF
6557
6558     if test "$llvm_cv_os_type" = "MingW" ; then
6559     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6560   fi
6561
6562 cat >>confdefs.h <<_ACEOF
6563 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6564 _ACEOF
6565
6566 fi
6567 # Extract the first word of "twopi", so it can be a program name with args.
6568 set dummy twopi; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_path_TWOPI+set}" = set; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   case $TWOPI in
6575   [\\/]* | ?:[\\/]*)
6576   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6577   ;;
6578   *)
6579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584   for ac_exec_ext in '' $ac_executable_extensions; do
6585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6595   ;;
6596 esac
6597 fi
6598 TWOPI=$ac_cv_path_TWOPI
6599 if test -n "$TWOPI"; then
6600   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6601 echo "${ECHO_T}$TWOPI" >&6; }
6602 else
6603   { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6605 fi
6606
6607
6608 if test "$TWOPI" != "echo twopi" ; then
6609
6610 cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_TWOPI 1
6612 _ACEOF
6613
6614     if test "$llvm_cv_os_type" = "MingW" ; then
6615     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6616   fi
6617
6618 cat >>confdefs.h <<_ACEOF
6619 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6620 _ACEOF
6621
6622 fi
6623 # Extract the first word of "circo", so it can be a program name with args.
6624 set dummy circo; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_path_CIRCO+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   case $CIRCO in
6631   [\\/]* | ?:[\\/]*)
6632   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6633   ;;
6634   *)
6635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6651   ;;
6652 esac
6653 fi
6654 CIRCO=$ac_cv_path_CIRCO
6655 if test -n "$CIRCO"; then
6656   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6657 echo "${ECHO_T}$CIRCO" >&6; }
6658 else
6659   { echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6; }
6661 fi
6662
6663
6664 if test "$CIRCO" != "echo circo" ; then
6665
6666 cat >>confdefs.h <<\_ACEOF
6667 #define HAVE_CIRCO 1
6668 _ACEOF
6669
6670     if test "$llvm_cv_os_type" = "MingW" ; then
6671     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6672   fi
6673
6674 cat >>confdefs.h <<_ACEOF
6675 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6676 _ACEOF
6677
6678 fi
6679 for ac_prog in gv gsview32
6680 do
6681   # Extract the first word of "$ac_prog", so it can be a program name with args.
6682 set dummy $ac_prog; 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_GV+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   case $GV in
6689   [\\/]* | ?:[\\/]*)
6690   ac_cv_path_GV="$GV" # 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_GV="$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   ;;
6709 esac
6710 fi
6711 GV=$ac_cv_path_GV
6712 if test -n "$GV"; then
6713   { echo "$as_me:$LINENO: result: $GV" >&5
6714 echo "${ECHO_T}$GV" >&6; }
6715 else
6716   { echo "$as_me:$LINENO: result: no" >&5
6717 echo "${ECHO_T}no" >&6; }
6718 fi
6719
6720
6721   test -n "$GV" && break
6722 done
6723 test -n "$GV" || GV="echo gv"
6724
6725 if test "$GV" != "echo gv" ; then
6726
6727 cat >>confdefs.h <<\_ACEOF
6728 #define HAVE_GV 1
6729 _ACEOF
6730
6731     if test "$llvm_cv_os_type" = "MingW" ; then
6732     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6733   fi
6734
6735 cat >>confdefs.h <<_ACEOF
6736 #define LLVM_PATH_GV "$GV${EXEEXT}"
6737 _ACEOF
6738
6739 fi
6740 # Extract the first word of "dotty", so it can be a program name with args.
6741 set dummy dotty; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_DOTTY+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   case $DOTTY in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6768   ;;
6769 esac
6770 fi
6771 DOTTY=$ac_cv_path_DOTTY
6772 if test -n "$DOTTY"; then
6773   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6774 echo "${ECHO_T}$DOTTY" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781 if test "$DOTTY" != "echo dotty" ; then
6782
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_DOTTY 1
6785 _ACEOF
6786
6787     if test "$llvm_cv_os_type" = "MingW" ; then
6788     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6789   fi
6790
6791 cat >>confdefs.h <<_ACEOF
6792 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6793 _ACEOF
6794
6795 fi
6796 # Extract the first word of "xdot.py", so it can be a program name with args.
6797 set dummy xdot.py; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   case $XDOT_PY in
6804   [\\/]* | ?:[\\/]*)
6805   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6806   ;;
6807   *)
6808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813   for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6824   ;;
6825 esac
6826 fi
6827 XDOT_PY=$ac_cv_path_XDOT_PY
6828 if test -n "$XDOT_PY"; then
6829   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6830 echo "${ECHO_T}$XDOT_PY" >&6; }
6831 else
6832   { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6834 fi
6835
6836
6837 if test "$XDOT_PY" != "echo xdot.py" ; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 #define HAVE_XDOT_PY 1
6841 _ACEOF
6842
6843     if test "$llvm_cv_os_type" = "MingW" ; then
6844     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6845   fi
6846
6847 cat >>confdefs.h <<_ACEOF
6848 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6849 _ACEOF
6850
6851 fi
6852
6853
6854 # Extract the first word of "perl", so it can be a program name with args.
6855 set dummy perl; 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_PERL+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   case $PERL in
6862   [\\/]* | ?:[\\/]*)
6863   ac_cv_path_PERL="$PERL" # 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_PERL="$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_PERL" && ac_cv_path_PERL="none"
6882   ;;
6883 esac
6884 fi
6885 PERL=$ac_cv_path_PERL
6886 if test -n "$PERL"; then
6887   { echo "$as_me:$LINENO: result: $PERL" >&5
6888 echo "${ECHO_T}$PERL" >&6; }
6889 else
6890   { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6892 fi
6893
6894
6895 if test "$PERL" != "none"; then
6896   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6897 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6898   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6899     { echo "$as_me:$LINENO: result: yes" >&5
6900 echo "${ECHO_T}yes" >&6; }
6901   else
6902     PERL=none
6903     { echo "$as_me:$LINENO: result: not found" >&5
6904 echo "${ECHO_T}not found" >&6; }
6905   fi
6906 fi
6907
6908
6909 if test x"$PERL" = xnone; then
6910    HAVE_PERL=0
6911
6912    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6913 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6914    { (exit 1); exit 1; }; }
6915 else
6916    HAVE_PERL=1
6917
6918 fi
6919
6920 # Find a good install program.  We prefer a C program (faster),
6921 # so one script is as good as another.  But avoid the broken or
6922 # incompatible versions:
6923 # SysV /etc/install, /usr/sbin/install
6924 # SunOS /usr/etc/install
6925 # IRIX /sbin/install
6926 # AIX /bin/install
6927 # AmigaOS /C/install, which installs bootblocks on floppy discs
6928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6931 # OS/2's system install, which has a completely different semantic
6932 # ./install, which can be erroneously created by make from ./install.sh.
6933 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6934 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6935 if test -z "$INSTALL"; then
6936 if test "${ac_cv_path_install+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942   IFS=$as_save_IFS
6943   test -z "$as_dir" && as_dir=.
6944   # Account for people who put trailing slashes in PATH elements.
6945 case $as_dir/ in
6946   ./ | .// | /cC/* | \
6947   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6948   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6949   /usr/ucb/* ) ;;
6950   *)
6951     # OSF1 and SCO ODT 3.0 have their own names for install.
6952     # Don't use installbsd from OSF since it installs stuff as root
6953     # by default.
6954     for ac_prog in ginstall scoinst install; do
6955       for ac_exec_ext in '' $ac_executable_extensions; do
6956         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6957           if test $ac_prog = install &&
6958             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6959             # AIX install.  It has an incompatible calling convention.
6960             :
6961           elif test $ac_prog = install &&
6962             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6963             # program-specific install script used by HP pwplus--don't use.
6964             :
6965           else
6966             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6967             break 3
6968           fi
6969         fi
6970       done
6971     done
6972     ;;
6973 esac
6974 done
6975 IFS=$as_save_IFS
6976
6977
6978 fi
6979   if test "${ac_cv_path_install+set}" = set; then
6980     INSTALL=$ac_cv_path_install
6981   else
6982     # As a last resort, use the slow shell script.  Don't cache a
6983     # value for INSTALL within a source directory, because that will
6984     # break other packages using the cache if that directory is
6985     # removed, or if the value is a relative name.
6986     INSTALL=$ac_install_sh
6987   fi
6988 fi
6989 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6990 echo "${ECHO_T}$INSTALL" >&6; }
6991
6992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6993 # It thinks the first close brace ends the variable substitution.
6994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6995
6996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6997
6998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6999
7000 case "$INSTALL" in
7001  [\\/$]* | ?:[\\/]* ) ;;
7002  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7003 esac
7004
7005 # Extract the first word of "bzip2", so it can be a program name with args.
7006 set dummy bzip2; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_BZIP2+set}" = set; then
7010   echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012   case $BZIP2 in
7013   [\\/]* | ?:[\\/]*)
7014   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7015   ;;
7016   *)
7017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022   for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032   ;;
7033 esac
7034 fi
7035 BZIP2=$ac_cv_path_BZIP2
7036 if test -n "$BZIP2"; then
7037   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7038 echo "${ECHO_T}$BZIP2" >&6; }
7039 else
7040   { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7042 fi
7043
7044
7045 # Extract the first word of "cat", so it can be a program name with args.
7046 set dummy cat; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_path_CAT+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   case $CAT in
7053   [\\/]* | ?:[\\/]*)
7054   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7055   ;;
7056   *)
7057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062   for ac_exec_ext in '' $ac_executable_extensions; do
7063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072   ;;
7073 esac
7074 fi
7075 CAT=$ac_cv_path_CAT
7076 if test -n "$CAT"; then
7077   { echo "$as_me:$LINENO: result: $CAT" >&5
7078 echo "${ECHO_T}$CAT" >&6; }
7079 else
7080   { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7082 fi
7083
7084
7085 # Extract the first word of "doxygen", so it can be a program name with args.
7086 set dummy doxygen; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   case $DOXYGEN in
7093   [\\/]* | ?:[\\/]*)
7094   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7095   ;;
7096   *)
7097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102   for ac_exec_ext in '' $ac_executable_extensions; do
7103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112   ;;
7113 esac
7114 fi
7115 DOXYGEN=$ac_cv_path_DOXYGEN
7116 if test -n "$DOXYGEN"; then
7117   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7118 echo "${ECHO_T}$DOXYGEN" >&6; }
7119 else
7120   { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7122 fi
7123
7124
7125 # Extract the first word of "groff", so it can be a program name with args.
7126 set dummy groff; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_path_GROFF+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   case $GROFF in
7133   [\\/]* | ?:[\\/]*)
7134   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7135   ;;
7136   *)
7137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142   for ac_exec_ext in '' $ac_executable_extensions; do
7143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152   ;;
7153 esac
7154 fi
7155 GROFF=$ac_cv_path_GROFF
7156 if test -n "$GROFF"; then
7157   { echo "$as_me:$LINENO: result: $GROFF" >&5
7158 echo "${ECHO_T}$GROFF" >&6; }
7159 else
7160   { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7162 fi
7163
7164
7165 # Extract the first word of "gzip", so it can be a program name with args.
7166 set dummy gzip; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   case $GZIPBIN in
7173   [\\/]* | ?:[\\/]*)
7174   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7175   ;;
7176   *)
7177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182   for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192   ;;
7193 esac
7194 fi
7195 GZIPBIN=$ac_cv_path_GZIPBIN
7196 if test -n "$GZIPBIN"; then
7197   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7198 echo "${ECHO_T}$GZIPBIN" >&6; }
7199 else
7200   { echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6; }
7202 fi
7203
7204
7205 # Extract the first word of "pod2html", so it can be a program name with args.
7206 set dummy pod2html; ac_word=$2
7207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209 if test "${ac_cv_path_POD2HTML+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   case $POD2HTML in
7213   [\\/]* | ?:[\\/]*)
7214   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7215   ;;
7216   *)
7217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222   for ac_exec_ext in '' $ac_executable_extensions; do
7223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7224     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232   ;;
7233 esac
7234 fi
7235 POD2HTML=$ac_cv_path_POD2HTML
7236 if test -n "$POD2HTML"; then
7237   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7238 echo "${ECHO_T}$POD2HTML" >&6; }
7239 else
7240   { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7242 fi
7243
7244
7245 # Extract the first word of "pod2man", so it can be a program name with args.
7246 set dummy pod2man; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_POD2MAN+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   case $POD2MAN in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262   for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272   ;;
7273 esac
7274 fi
7275 POD2MAN=$ac_cv_path_POD2MAN
7276 if test -n "$POD2MAN"; then
7277   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7278 echo "${ECHO_T}$POD2MAN" >&6; }
7279 else
7280   { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285 # Extract the first word of "pdfroff", so it can be a program name with args.
7286 set dummy pdfroff; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_PDFROFF+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   case $PDFROFF in
7293   [\\/]* | ?:[\\/]*)
7294   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7295   ;;
7296   *)
7297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302   for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309 done
7310 IFS=$as_save_IFS
7311
7312   ;;
7313 esac
7314 fi
7315 PDFROFF=$ac_cv_path_PDFROFF
7316 if test -n "$PDFROFF"; then
7317   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7318 echo "${ECHO_T}$PDFROFF" >&6; }
7319 else
7320   { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7322 fi
7323
7324
7325 # Extract the first word of "runtest", so it can be a program name with args.
7326 set dummy runtest; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_RUNTEST+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   case $RUNTEST in
7333   [\\/]* | ?:[\\/]*)
7334   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7335   ;;
7336   *)
7337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342   for ac_exec_ext in '' $ac_executable_extensions; do
7343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352   ;;
7353 esac
7354 fi
7355 RUNTEST=$ac_cv_path_RUNTEST
7356 if test -n "$RUNTEST"; then
7357   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7358 echo "${ECHO_T}$RUNTEST" >&6; }
7359 else
7360   { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7362 fi
7363
7364
7365
7366 no_itcl=true
7367 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7368 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7369
7370 # Check whether --with-tclinclude was given.
7371 if test "${with_tclinclude+set}" = set; then
7372   withval=$with_tclinclude; with_tclinclude=${withval}
7373 else
7374   with_tclinclude=''
7375 fi
7376
7377 if test "${ac_cv_path_tclsh+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380
7381 if test x"${with_tclinclude}" != x ; then
7382   if test -f ${with_tclinclude}/tclsh ; then
7383     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7384   elif test -f ${with_tclinclude}/src/tclsh ; then
7385     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7386   else
7387     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7388 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7389    { (exit 1); exit 1; }; }
7390   fi
7391 fi
7392 fi
7393
7394
7395 if test x"${ac_cv_path_tclsh}" = x ; then
7396   { echo "$as_me:$LINENO: result: none" >&5
7397 echo "${ECHO_T}none" >&6; }
7398   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
7399 do
7400   # Extract the first word of "$ac_prog", so it can be a program name with args.
7401 set dummy $ac_prog; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_TCLSH+set}" = set; then
7405   echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407   case $TCLSH in
7408   [\\/]* | ?:[\\/]*)
7409   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7410   ;;
7411   *)
7412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417   for ac_exec_ext in '' $ac_executable_extensions; do
7418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427   ;;
7428 esac
7429 fi
7430 TCLSH=$ac_cv_path_TCLSH
7431 if test -n "$TCLSH"; then
7432   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7433 echo "${ECHO_T}$TCLSH" >&6; }
7434 else
7435   { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7437 fi
7438
7439
7440   test -n "$TCLSH" && break
7441 done
7442
7443   if test x"${TCLSH}" = x ; then
7444     ac_cv_path_tclsh='';
7445   else
7446     ac_cv_path_tclsh="${TCLSH}";
7447   fi
7448 else
7449   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7450 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7451   TCLSH="${ac_cv_path_tclsh}"
7452
7453 fi
7454
7455 # Extract the first word of "zip", so it can be a program name with args.
7456 set dummy zip; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_ZIP+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   case $ZIP in
7463   [\\/]* | ?:[\\/]*)
7464   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7465   ;;
7466   *)
7467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472   for ac_exec_ext in '' $ac_executable_extensions; do
7473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482   ;;
7483 esac
7484 fi
7485 ZIP=$ac_cv_path_ZIP
7486 if test -n "$ZIP"; then
7487   { echo "$as_me:$LINENO: result: $ZIP" >&5
7488 echo "${ECHO_T}$ZIP" >&6; }
7489 else
7490   { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7492 fi
7493
7494
7495 for ac_prog in ocamlc
7496 do
7497   # Extract the first word of "$ac_prog", so it can be a program name with args.
7498 set dummy $ac_prog; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_path_OCAMLC+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   case $OCAMLC in
7505   [\\/]* | ?:[\\/]*)
7506   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7507   ;;
7508   *)
7509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514   for ac_exec_ext in '' $ac_executable_extensions; do
7515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524   ;;
7525 esac
7526 fi
7527 OCAMLC=$ac_cv_path_OCAMLC
7528 if test -n "$OCAMLC"; then
7529   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7530 echo "${ECHO_T}$OCAMLC" >&6; }
7531 else
7532   { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7534 fi
7535
7536
7537   test -n "$OCAMLC" && break
7538 done
7539
7540 for ac_prog in ocamlopt
7541 do
7542   # Extract the first word of "$ac_prog", so it can be a program name with args.
7543 set dummy $ac_prog; ac_word=$2
7544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7546 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   case $OCAMLOPT in
7550   [\\/]* | ?:[\\/]*)
7551   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7552   ;;
7553   *)
7554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559   for ac_exec_ext in '' $ac_executable_extensions; do
7560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7561     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569   ;;
7570 esac
7571 fi
7572 OCAMLOPT=$ac_cv_path_OCAMLOPT
7573 if test -n "$OCAMLOPT"; then
7574   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7575 echo "${ECHO_T}$OCAMLOPT" >&6; }
7576 else
7577   { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7579 fi
7580
7581
7582   test -n "$OCAMLOPT" && break
7583 done
7584
7585 for ac_prog in ocamldep
7586 do
7587   # Extract the first word of "$ac_prog", so it can be a program name with args.
7588 set dummy $ac_prog; ac_word=$2
7589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7592   echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594   case $OCAMLDEP in
7595   [\\/]* | ?:[\\/]*)
7596   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7597   ;;
7598   *)
7599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604   for ac_exec_ext in '' $ac_executable_extensions; do
7605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611 done
7612 IFS=$as_save_IFS
7613
7614   ;;
7615 esac
7616 fi
7617 OCAMLDEP=$ac_cv_path_OCAMLDEP
7618 if test -n "$OCAMLDEP"; then
7619   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7620 echo "${ECHO_T}$OCAMLDEP" >&6; }
7621 else
7622   { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7624 fi
7625
7626
7627   test -n "$OCAMLDEP" && break
7628 done
7629
7630 for ac_prog in ocamldoc
7631 do
7632   # Extract the first word of "$ac_prog", so it can be a program name with args.
7633 set dummy $ac_prog; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   case $OCAMLDOC in
7640   [\\/]* | ?:[\\/]*)
7641   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7642   ;;
7643   *)
7644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649   for ac_exec_ext in '' $ac_executable_extensions; do
7650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7651     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656 done
7657 IFS=$as_save_IFS
7658
7659   ;;
7660 esac
7661 fi
7662 OCAMLDOC=$ac_cv_path_OCAMLDOC
7663 if test -n "$OCAMLDOC"; then
7664   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7665 echo "${ECHO_T}$OCAMLDOC" >&6; }
7666 else
7667   { echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6; }
7669 fi
7670
7671
7672   test -n "$OCAMLDOC" && break
7673 done
7674
7675 for ac_prog in gas as
7676 do
7677   # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681 if test "${ac_cv_path_GAS+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   case $GAS in
7685   [\\/]* | ?:[\\/]*)
7686   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7687   ;;
7688   *)
7689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692   IFS=$as_save_IFS
7693   test -z "$as_dir" && as_dir=.
7694   for ac_exec_ext in '' $ac_executable_extensions; do
7695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7696     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698     break 2
7699   fi
7700 done
7701 done
7702 IFS=$as_save_IFS
7703
7704   ;;
7705 esac
7706 fi
7707 GAS=$ac_cv_path_GAS
7708 if test -n "$GAS"; then
7709   { echo "$as_me:$LINENO: result: $GAS" >&5
7710 echo "${ECHO_T}$GAS" >&6; }
7711 else
7712   { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7714 fi
7715
7716
7717   test -n "$GAS" && break
7718 done
7719
7720
7721 { echo "$as_me:$LINENO: checking for linker version" >&5
7722 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7723 if test "${llvm_cv_link_version+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726
7727    version_string="$(ld -v 2>&1 | head -1)"
7728
7729    # Check for ld64.
7730    if (echo "$version_string" | grep -q "ld64"); then
7731      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7732    else
7733      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7734    fi
7735
7736 fi
7737 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7738 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7739
7740 cat >>confdefs.h <<_ACEOF
7741 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7742 _ACEOF
7743
7744
7745
7746 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7747 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7748 if test "${llvm_cv_link_use_r+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751    ac_ext=c
7752 ac_cpp='$CPP $CPPFLAGS'
7753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757   oldcflags="$CFLAGS"
7758   CFLAGS="$CFLAGS -Wl,-R."
7759   cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h.  */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h.  */
7765
7766 int
7767 main ()
7768 {
7769
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 rm -f conftest.$ac_objext conftest$ac_exeext
7775 if { (ac_try="$ac_link"
7776 case "(($ac_try" in
7777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778   *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781   (eval "$ac_link") 2>conftest.er1
7782   ac_status=$?
7783   grep -v '^ *+' conftest.er1 >conftest.err
7784   rm -f conftest.er1
7785   cat conftest.err >&5
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); } &&
7788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7789   { (case "(($ac_try" in
7790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791   *) ac_try_echo=$ac_try;;
7792 esac
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794   (eval "$ac_try") 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); }; } &&
7798          { ac_try='test -s conftest$ac_exeext'
7799   { (case "(($ac_try" in
7800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801   *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804   (eval "$ac_try") 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); }; }; then
7808   llvm_cv_link_use_r=yes
7809 else
7810   echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7812
7813         llvm_cv_link_use_r=no
7814 fi
7815
7816 rm -f core conftest.err conftest.$ac_objext \
7817       conftest$ac_exeext conftest.$ac_ext
7818   CFLAGS="$oldcflags"
7819   ac_ext=c
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826 fi
7827 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7828 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7829 if test "$llvm_cv_link_use_r" = yes ; then
7830
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_LINK_R 1
7833 _ACEOF
7834
7835   fi
7836
7837
7838 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7839 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843    ac_ext=c
7844 ac_cpp='$CPP $CPPFLAGS'
7845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849   oldcflags="$CFLAGS"
7850   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7851   cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h.  */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h.  */
7857
7858 int
7859 main ()
7860 {
7861
7862   ;
7863   return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7868 case "(($ac_try" in
7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870   *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873   (eval "$ac_link") 2>conftest.er1
7874   ac_status=$?
7875   grep -v '^ *+' conftest.er1 >conftest.err
7876   rm -f conftest.er1
7877   cat conftest.err >&5
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } &&
7880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7881   { (case "(($ac_try" in
7882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883   *) ac_try_echo=$ac_try;;
7884 esac
7885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886   (eval "$ac_try") 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; } &&
7890          { ac_try='test -s conftest$ac_exeext'
7891   { (case "(($ac_try" in
7892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893   *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896   (eval "$ac_try") 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); }; }; then
7900   llvm_cv_link_use_export_dynamic=yes
7901 else
7902   echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905         llvm_cv_link_use_export_dynamic=no
7906 fi
7907
7908 rm -f core conftest.err conftest.$ac_objext \
7909       conftest$ac_exeext conftest.$ac_ext
7910   CFLAGS="$oldcflags"
7911   ac_ext=c
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916
7917
7918 fi
7919 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7920 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7921 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7922
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_LINK_EXPORT_DYNAMIC 1
7925 _ACEOF
7926
7927   fi
7928
7929
7930 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7931 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7932 if test "${llvm_cv_link_use_version_script+set}" = set; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935    ac_ext=c
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940
7941   oldcflags="$CFLAGS"
7942
7943   # The following code is from the autoconf manual,
7944   # "11.13: Limitations of Usual Tools".
7945   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7946   # Use mktemp if possible; otherwise fall back on mkdir,
7947   # with $RANDOM to make collisions less likely.
7948   : ${TMPDIR=/tmp}
7949   {
7950     tmp=`
7951       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7952     ` &&
7953     test -n "$tmp" && test -d "$tmp"
7954   } || {
7955     tmp=$TMPDIR/foo$$-$RANDOM
7956     (umask 077 && mkdir "$tmp")
7957   } || exit $?
7958
7959   echo "{" > "$tmp/export.map"
7960   echo "  global: main;" >> "$tmp/export.map"
7961   echo "  local: *;" >> "$tmp/export.map"
7962   echo "};" >> "$tmp/export.map"
7963
7964   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7965   cat >conftest.$ac_ext <<_ACEOF
7966 /* confdefs.h.  */
7967 _ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h.  */
7971
7972 int
7973 main ()
7974 {
7975
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 rm -f conftest.$ac_objext conftest$ac_exeext
7981 if { (ac_try="$ac_link"
7982 case "(($ac_try" in
7983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984   *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987   (eval "$ac_link") 2>conftest.er1
7988   ac_status=$?
7989   grep -v '^ *+' conftest.er1 >conftest.err
7990   rm -f conftest.er1
7991   cat conftest.err >&5
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); } &&
7994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7995   { (case "(($ac_try" in
7996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997   *) ac_try_echo=$ac_try;;
7998 esac
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000   (eval "$ac_try") 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); }; } &&
8004          { ac_try='test -s conftest$ac_exeext'
8005   { (case "(($ac_try" in
8006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007   *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010   (eval "$ac_try") 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); }; }; then
8014   llvm_cv_link_use_version_script=yes
8015 else
8016   echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8018
8019         llvm_cv_link_use_version_script=no
8020 fi
8021
8022 rm -f core conftest.err conftest.$ac_objext \
8023       conftest$ac_exeext conftest.$ac_ext
8024   rm "$tmp/export.map"
8025   rmdir "$tmp"
8026   CFLAGS="$oldcflags"
8027   ac_ext=c
8028 ac_cpp='$CPP $CPPFLAGS'
8029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032
8033
8034 fi
8035 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8036 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8037 if test "$llvm_cv_link_use_version_script" = yes ; then
8038   HAVE_LINK_VERSION_SCRIPT=1
8039
8040   fi
8041
8042
8043
8044
8045 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8046 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8047 if test "${ac_cv_c_const+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056
8057 int
8058 main ()
8059 {
8060 /* FIXME: Include the comments suggested by Paul. */
8061 #ifndef __cplusplus
8062   /* Ultrix mips cc rejects this.  */
8063   typedef int charset[2];
8064   const charset x;
8065   /* SunOS 4.1.1 cc rejects this.  */
8066   char const *const *ccp;
8067   char **p;
8068   /* NEC SVR4.0.2 mips cc rejects this.  */
8069   struct point {int x, y;};
8070   static struct point const zero = {0,0};
8071   /* AIX XL C 1.02.0.0 rejects this.
8072      It does not let you subtract one const X* pointer from another in
8073      an arm of an if-expression whose if-part is not a constant
8074      expression */
8075   const char *g = "string";
8076   ccp = &g + (g ? g-g : 0);
8077   /* HPUX 7.0 cc rejects these. */
8078   ++ccp;
8079   p = (char**) ccp;
8080   ccp = (char const *const *) p;
8081   { /* SCO 3.2v4 cc rejects this.  */
8082     char *t;
8083     char const *s = 0 ? (char *) 0 : (char const *) 0;
8084
8085     *t++ = 0;
8086     if (s) return 0;
8087   }
8088   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8089     int x[] = {25, 17};
8090     const int *foo = &x[0];
8091     ++foo;
8092   }
8093   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8094     typedef const int *iptr;
8095     iptr p = 0;
8096     ++p;
8097   }
8098   { /* AIX XL C 1.02.0.0 rejects this saying
8099        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8100     struct s { int j; const int *ap[3]; };
8101     struct s *b; b->j = 5;
8102   }
8103   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8104     const int foo = 10;
8105     if (!foo) return 0;
8106   }
8107   return !x[0] && !zero.x;
8108 #endif
8109
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8116 case "(($ac_try" in
8117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118   *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121   (eval "$ac_compile") 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129   { (case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_try") 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; } &&
8138          { ac_try='test -s conftest.$ac_objext'
8139   { (case "(($ac_try" in
8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141   *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144   (eval "$ac_try") 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   ac_cv_c_const=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153         ac_cv_c_const=no
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8159 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8160 if test $ac_cv_c_const = no; then
8161
8162 cat >>confdefs.h <<\_ACEOF
8163 #define const
8164 _ACEOF
8165
8166 fi
8167
8168
8169
8170
8171
8172
8173 ac_header_dirent=no
8174 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8175   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8176 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8177 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187 #include <sys/types.h>
8188 #include <$ac_hdr>
8189
8190 int
8191 main ()
8192 {
8193 if ((DIR *) 0)
8194 return 0;
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (ac_try="$ac_compile"
8201 case "(($ac_try" in
8202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203   *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206   (eval "$ac_compile") 2>conftest.er1
8207   ac_status=$?
8208   grep -v '^ *+' conftest.er1 >conftest.err
8209   rm -f conftest.er1
8210   cat conftest.err >&5
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); } &&
8213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214   { (case "(($ac_try" in
8215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216   *) ac_try_echo=$ac_try;;
8217 esac
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219   (eval "$ac_try") 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; } &&
8223          { ac_try='test -s conftest.$ac_objext'
8224   { (case "(($ac_try" in
8225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226   *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229   (eval "$ac_try") 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; }; then
8233   eval "$as_ac_Header=yes"
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238         eval "$as_ac_Header=no"
8239 fi
8240
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 fi
8243 ac_res=`eval echo '${'$as_ac_Header'}'`
8244                { echo "$as_me:$LINENO: result: $ac_res" >&5
8245 echo "${ECHO_T}$ac_res" >&6; }
8246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8247   cat >>confdefs.h <<_ACEOF
8248 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8249 _ACEOF
8250
8251 ac_header_dirent=$ac_hdr; break
8252 fi
8253
8254 done
8255 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8256 if test $ac_header_dirent = dirent.h; then
8257   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8258 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8259 if test "${ac_cv_search_opendir+set}" = set; then
8260   echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262   ac_func_search_save_LIBS=$LIBS
8263 cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h.  */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h.  */
8269
8270 /* Override any GCC internal prototype to avoid an error.
8271    Use char because int might match the return type of a GCC
8272    builtin and then its argument prototype would still apply.  */
8273 #ifdef __cplusplus
8274 extern "C"
8275 #endif
8276 char opendir ();
8277 int
8278 main ()
8279 {
8280 return opendir ();
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 for ac_lib in '' dir; do
8286   if test -z "$ac_lib"; then
8287     ac_res="none required"
8288   else
8289     ac_res=-l$ac_lib
8290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8291   fi
8292   rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (ac_try="$ac_link"
8294 case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_link") 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } &&
8306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307   { (case "(($ac_try" in
8308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309   *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312   (eval "$ac_try") 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; } &&
8316          { ac_try='test -s conftest$ac_exeext'
8317   { (case "(($ac_try" in
8318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319   *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322   (eval "$ac_try") 2>&5
8323   ac_status=$?
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); }; }; then
8326   ac_cv_search_opendir=$ac_res
8327 else
8328   echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext \
8335       conftest$ac_exeext
8336   if test "${ac_cv_search_opendir+set}" = set; then
8337   break
8338 fi
8339 done
8340 if test "${ac_cv_search_opendir+set}" = set; then
8341   :
8342 else
8343   ac_cv_search_opendir=no
8344 fi
8345 rm conftest.$ac_ext
8346 LIBS=$ac_func_search_save_LIBS
8347 fi
8348 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8349 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8350 ac_res=$ac_cv_search_opendir
8351 if test "$ac_res" != no; then
8352   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8353
8354 fi
8355
8356 else
8357   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8358 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8359 if test "${ac_cv_search_opendir+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   ac_func_search_save_LIBS=$LIBS
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369
8370 /* Override any GCC internal prototype to avoid an error.
8371    Use char because int might match the return type of a GCC
8372    builtin and then its argument prototype would still apply.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 char opendir ();
8377 int
8378 main ()
8379 {
8380 return opendir ();
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 for ac_lib in '' x; do
8386   if test -z "$ac_lib"; then
8387     ac_res="none required"
8388   else
8389     ac_res=-l$ac_lib
8390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8391   fi
8392   rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (ac_try="$ac_link"
8394 case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_link") 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } &&
8406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8407   { (case "(($ac_try" in
8408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409   *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412   (eval "$ac_try") 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest$ac_exeext'
8417   { (case "(($ac_try" in
8418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419   *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422   (eval "$ac_try") 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_cv_search_opendir=$ac_res
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431
8432 fi
8433
8434 rm -f core conftest.err conftest.$ac_objext \
8435       conftest$ac_exeext
8436   if test "${ac_cv_search_opendir+set}" = set; then
8437   break
8438 fi
8439 done
8440 if test "${ac_cv_search_opendir+set}" = set; then
8441   :
8442 else
8443   ac_cv_search_opendir=no
8444 fi
8445 rm conftest.$ac_ext
8446 LIBS=$ac_func_search_save_LIBS
8447 fi
8448 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8449 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8450 ac_res=$ac_cv_search_opendir
8451 if test "$ac_res" != no; then
8452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8453
8454 fi
8455
8456 fi
8457
8458
8459 for ac_header in dlfcn.h
8460 do
8461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8463   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8466   echo $ECHO_N "(cached) $ECHO_C" >&6
8467 fi
8468 ac_res=`eval echo '${'$as_ac_Header'}'`
8469                { echo "$as_me:$LINENO: result: $ac_res" >&5
8470 echo "${ECHO_T}$ac_res" >&6; }
8471 else
8472   # Is the header compilable?
8473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h.  */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h.  */
8481 $ac_includes_default
8482 #include <$ac_header>
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488   *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491   (eval "$ac_compile") 2>conftest.er1
8492   ac_status=$?
8493   grep -v '^ *+' conftest.er1 >conftest.err
8494   rm -f conftest.er1
8495   cat conftest.err >&5
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } &&
8498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8499   { (case "(($ac_try" in
8500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501   *) ac_try_echo=$ac_try;;
8502 esac
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504   (eval "$ac_try") 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); }; } &&
8508          { ac_try='test -s conftest.$ac_objext'
8509   { (case "(($ac_try" in
8510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511   *) ac_try_echo=$ac_try;;
8512 esac
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514   (eval "$ac_try") 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); }; }; then
8518   ac_header_compiler=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8522
8523         ac_header_compiler=no
8524 fi
8525
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8528 echo "${ECHO_T}$ac_header_compiler" >&6; }
8529
8530 # Is the header present?
8531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h.  */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h.  */
8539 #include <$ac_header>
8540 _ACEOF
8541 if { (ac_try="$ac_cpp conftest.$ac_ext"
8542 case "(($ac_try" in
8543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544   *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } >/dev/null; then
8554   if test -s conftest.err; then
8555     ac_cpp_err=$ac_c_preproc_warn_flag
8556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8557   else
8558     ac_cpp_err=
8559   fi
8560 else
8561   ac_cpp_err=yes
8562 fi
8563 if test -z "$ac_cpp_err"; then
8564   ac_header_preproc=yes
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569   ac_header_preproc=no
8570 fi
8571
8572 rm -f conftest.err conftest.$ac_ext
8573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8574 echo "${ECHO_T}$ac_header_preproc" >&6; }
8575
8576 # So?  What about this header?
8577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8578   yes:no: )
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8583     ac_header_preproc=yes
8584     ;;
8585   no:yes:* )
8586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8588     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8589 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8590     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8592     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8593 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8596     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8598     ( cat <<\_ASBOX
8599 ## ------------------------------ ##
8600 ## Report this to bugs@yourdomain ##
8601 ## ------------------------------ ##
8602 _ASBOX
8603      ) | sed "s/^/$as_me: WARNING:     /" >&2
8604     ;;
8605 esac
8606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   eval "$as_ac_Header=\$ac_header_preproc"
8612 fi
8613 ac_res=`eval echo '${'$as_ac_Header'}'`
8614                { echo "$as_me:$LINENO: result: $ac_res" >&5
8615 echo "${ECHO_T}$ac_res" >&6; }
8616
8617 fi
8618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619   cat >>confdefs.h <<_ACEOF
8620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8621 _ACEOF
8622
8623 fi
8624
8625 done
8626
8627 # Check whether --enable-ltdl-install was given.
8628 if test "${enable_ltdl_install+set}" = set; then
8629   enableval=$enable_ltdl_install;
8630 fi
8631
8632
8633
8634
8635 if test x"${enable_ltdl_install-no}" != xno; then
8636   INSTALL_LTDL_TRUE=
8637   INSTALL_LTDL_FALSE='#'
8638 else
8639   INSTALL_LTDL_TRUE='#'
8640   INSTALL_LTDL_FALSE=
8641 fi
8642
8643
8644
8645 if test x"${enable_ltdl_convenience-no}" != xno; then
8646   CONVENIENCE_LTDL_TRUE=
8647   CONVENIENCE_LTDL_FALSE='#'
8648 else
8649   CONVENIENCE_LTDL_TRUE='#'
8650   CONVENIENCE_LTDL_FALSE=
8651 fi
8652
8653
8654 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8655 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8656 library_names_spec=
8657 libname_spec='lib$name'
8658 soname_spec=
8659 shrext_cmds=".so"
8660 postinstall_cmds=
8661 postuninstall_cmds=
8662 finish_cmds=
8663 finish_eval=
8664 shlibpath_var=
8665 shlibpath_overrides_runpath=unknown
8666 version_type=none
8667 dynamic_linker="$host_os ld.so"
8668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8669 if test "$GCC" = yes; then
8670   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8671   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8672     # if the path contains ";" then we assume it to be the separator
8673     # otherwise default to the standard path separator (i.e. ":") - it is
8674     # assumed that no part of a normal pathname contains ";" but that should
8675     # okay in the real world where ";" in dirpaths is itself problematic.
8676     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8677   else
8678     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8679   fi
8680 else
8681   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8682 fi
8683 need_lib_prefix=unknown
8684 hardcode_into_libs=no
8685
8686 # when you set need_version to no, make sure it does not cause -set_version
8687 # flags to be left without arguments
8688 need_version=unknown
8689
8690 case $host_os in
8691 aix3*)
8692   version_type=linux
8693   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8694   shlibpath_var=LIBPATH
8695
8696   # AIX 3 has no versioning support, so we append a major version to the name.
8697   soname_spec='${libname}${release}${shared_ext}$major'
8698   ;;
8699
8700 aix4* | aix5*)
8701   version_type=linux
8702   need_lib_prefix=no
8703   need_version=no
8704   hardcode_into_libs=yes
8705   if test "$host_cpu" = ia64; then
8706     # AIX 5 supports IA64
8707     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8708     shlibpath_var=LD_LIBRARY_PATH
8709   else
8710     # With GCC up to 2.95.x, collect2 would create an import file
8711     # for dependence libraries.  The import file would start with
8712     # the line `#! .'.  This would cause the generated library to
8713     # depend on `.', always an invalid library.  This was fixed in
8714     # development snapshots of GCC prior to 3.0.
8715     case $host_os in
8716       aix4 | aix4.[01] | aix4.[01].*)
8717       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8718            echo ' yes '
8719            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8720         :
8721       else
8722         can_build_shared=no
8723       fi
8724       ;;
8725     esac
8726     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8727     # soname into executable. Probably we can add versioning support to
8728     # collect2, so additional links can be useful in future.
8729     if test "$aix_use_runtimelinking" = yes; then
8730       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8731       # instead of lib<name>.a to let people know that these are not
8732       # typical AIX shared libraries.
8733       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8734     else
8735       # We preserve .a as extension for shared libraries through AIX4.2
8736       # and later when we are not doing run time linking.
8737       library_names_spec='${libname}${release}.a $libname.a'
8738       soname_spec='${libname}${release}${shared_ext}$major'
8739     fi
8740     shlibpath_var=LIBPATH
8741   fi
8742   ;;
8743
8744 amigaos*)
8745   library_names_spec='$libname.ixlibrary $libname.a'
8746   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8747   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'
8748   ;;
8749
8750 beos*)
8751   library_names_spec='${libname}${shared_ext}'
8752   dynamic_linker="$host_os ld.so"
8753   shlibpath_var=LIBRARY_PATH
8754   ;;
8755
8756 bsdi[45]*)
8757   version_type=linux
8758   need_version=no
8759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760   soname_spec='${libname}${release}${shared_ext}$major'
8761   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8762   shlibpath_var=LD_LIBRARY_PATH
8763   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8764   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8765   # the default ld.so.conf also contains /usr/contrib/lib and
8766   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8767   # libtool to hard-code these into programs
8768   ;;
8769
8770 cygwin* | mingw* | pw32*)
8771   version_type=windows
8772   shrext_cmds=".dll"
8773   need_version=no
8774   need_lib_prefix=no
8775
8776   case $GCC,$host_os in
8777   yes,cygwin* | yes,mingw* | yes,pw32*)
8778     library_names_spec='$libname.dll.a'
8779     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8780     postinstall_cmds='base_file=`basename \${file}`~
8781       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8782       dldir=$destdir/`dirname \$dlpath`~
8783       test -d \$dldir || mkdir -p \$dldir~
8784       $install_prog $dir/$dlname \$dldir/$dlname~
8785       chmod a+x \$dldir/$dlname'
8786     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8787       dlpath=$dir/\$dldll~
8788        $rm \$dlpath'
8789     shlibpath_overrides_runpath=yes
8790
8791     case $host_os in
8792     cygwin*)
8793       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8794       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8795       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8796       ;;
8797     mingw*)
8798       # MinGW DLLs use traditional 'lib' prefix
8799       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8800       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8801       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8802         # It is most probably a Windows format PATH printed by
8803         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8804         # path with ; separators, and with drive letters. We can handle the
8805         # drive letters (cygwin fileutils understands them), so leave them,
8806         # especially as we might pass files found there to a mingw objdump,
8807         # which wouldn't understand a cygwinified path. Ahh.
8808         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8809       else
8810         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8811       fi
8812       ;;
8813     pw32*)
8814       # pw32 DLLs use 'pw' prefix rather than 'lib'
8815       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8816       ;;
8817     esac
8818     ;;
8819
8820   *)
8821     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8822     ;;
8823   esac
8824   dynamic_linker='Win32 ld.exe'
8825   # FIXME: first we should search . and the directory the executable is in
8826   shlibpath_var=PATH
8827   ;;
8828
8829 darwin* | rhapsody*)
8830   dynamic_linker="$host_os dyld"
8831   version_type=darwin
8832   need_lib_prefix=no
8833   need_version=no
8834   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8835   soname_spec='${libname}${release}${major}$shared_ext'
8836   shlibpath_overrides_runpath=yes
8837   shlibpath_var=DYLD_LIBRARY_PATH
8838   shrext_cmds='.dylib'
8839   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8840   if test "$GCC" = yes; then
8841     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"`
8842   else
8843     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8844   fi
8845   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8846   ;;
8847
8848 dgux*)
8849   version_type=linux
8850   need_lib_prefix=no
8851   need_version=no
8852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8853   soname_spec='${libname}${release}${shared_ext}$major'
8854   shlibpath_var=LD_LIBRARY_PATH
8855   ;;
8856
8857 freebsd1.*)
8858   dynamic_linker=no
8859   ;;
8860
8861 kfreebsd*-gnu)
8862   version_type=linux
8863   need_lib_prefix=no
8864   need_version=no
8865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866   soname_spec='${libname}${release}${shared_ext}$major'
8867   shlibpath_var=LD_LIBRARY_PATH
8868   shlibpath_overrides_runpath=no
8869   hardcode_into_libs=yes
8870   dynamic_linker='GNU ld.so'
8871   ;;
8872
8873 freebsd* | dragonfly*)
8874   # DragonFly does not have aout.  When/if they implement a new
8875   # versioning mechanism, adjust this.
8876   if test -x /usr/bin/objformat; then
8877     objformat=`/usr/bin/objformat`
8878   else
8879     case $host_os in
8880     freebsd[123].*) objformat=aout ;;
8881     *) objformat=elf ;;
8882     esac
8883   fi
8884   version_type=freebsd-$objformat
8885   case $version_type in
8886     freebsd-elf*)
8887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8888       need_version=no
8889       need_lib_prefix=no
8890       ;;
8891     freebsd-*)
8892       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8893       need_version=yes
8894       ;;
8895   esac
8896   shlibpath_var=LD_LIBRARY_PATH
8897   case $host_os in
8898   freebsd2.*)
8899     shlibpath_overrides_runpath=yes
8900     ;;
8901   freebsd3.[01]* | freebsdelf3.[01]*)
8902     shlibpath_overrides_runpath=yes
8903     hardcode_into_libs=yes
8904     ;;
8905   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8906   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8907     shlibpath_overrides_runpath=no
8908     hardcode_into_libs=yes
8909     ;;
8910   freebsd*) # from 4.6 on
8911     shlibpath_overrides_runpath=yes
8912     hardcode_into_libs=yes
8913     ;;
8914   esac
8915   ;;
8916
8917 gnu*)
8918   version_type=linux
8919   need_lib_prefix=no
8920   need_version=no
8921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8922   soname_spec='${libname}${release}${shared_ext}$major'
8923   shlibpath_var=LD_LIBRARY_PATH
8924   hardcode_into_libs=yes
8925   ;;
8926
8927 hpux9* | hpux10* | hpux11*)
8928   # Give a soname corresponding to the major version so that dld.sl refuses to
8929   # link against other versions.
8930   version_type=sunos
8931   need_lib_prefix=no
8932   need_version=no
8933   case $host_cpu in
8934   ia64*)
8935     shrext_cmds='.so'
8936     hardcode_into_libs=yes
8937     dynamic_linker="$host_os dld.so"
8938     shlibpath_var=LD_LIBRARY_PATH
8939     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941     soname_spec='${libname}${release}${shared_ext}$major'
8942     if test "X$HPUX_IA64_MODE" = X32; then
8943       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8944     else
8945       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8946     fi
8947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8948     ;;
8949    hppa*64*)
8950      shrext_cmds='.sl'
8951      hardcode_into_libs=yes
8952      dynamic_linker="$host_os dld.sl"
8953      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8954      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8955      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956      soname_spec='${libname}${release}${shared_ext}$major'
8957      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8958      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8959      ;;
8960    *)
8961     shrext_cmds='.sl'
8962     dynamic_linker="$host_os dld.sl"
8963     shlibpath_var=SHLIB_PATH
8964     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966     soname_spec='${libname}${release}${shared_ext}$major'
8967     ;;
8968   esac
8969   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8970   postinstall_cmds='chmod 555 $lib'
8971   ;;
8972
8973 interix3*)
8974   version_type=linux
8975   need_lib_prefix=no
8976   need_version=no
8977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8978   soname_spec='${libname}${release}${shared_ext}$major'
8979   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8980   shlibpath_var=LD_LIBRARY_PATH
8981   shlibpath_overrides_runpath=no
8982   hardcode_into_libs=yes
8983   ;;
8984
8985 irix5* | irix6* | nonstopux*)
8986   case $host_os in
8987     nonstopux*) version_type=nonstopux ;;
8988     *)
8989         if test "$lt_cv_prog_gnu_ld" = yes; then
8990                 version_type=linux
8991         else
8992                 version_type=irix
8993         fi ;;
8994   esac
8995   need_lib_prefix=no
8996   need_version=no
8997   soname_spec='${libname}${release}${shared_ext}$major'
8998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8999   case $host_os in
9000   irix5* | nonstopux*)
9001     libsuff= shlibsuff=
9002     ;;
9003   *)
9004     case $LD in # libtool.m4 will add one of these switches to LD
9005     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9006       libsuff= shlibsuff= libmagic=32-bit;;
9007     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9008       libsuff=32 shlibsuff=N32 libmagic=N32;;
9009     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9010       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9011     *) libsuff= shlibsuff= libmagic=never-match;;
9012     esac
9013     ;;
9014   esac
9015   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9016   shlibpath_overrides_runpath=no
9017   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9018   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9019   hardcode_into_libs=yes
9020   ;;
9021
9022 # No shared lib support for Linux oldld, aout, or coff.
9023 linux*oldld* | linux*aout* | linux*coff*)
9024   dynamic_linker=no
9025   ;;
9026
9027 # This must be Linux ELF.
9028 linux*)
9029   version_type=linux
9030   need_lib_prefix=no
9031   need_version=no
9032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033   soname_spec='${libname}${release}${shared_ext}$major'
9034   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9035   shlibpath_var=LD_LIBRARY_PATH
9036   shlibpath_overrides_runpath=no
9037   # This implies no fast_install, which is unacceptable.
9038   # Some rework will be needed to allow for fast_install
9039   # before this can be enabled.
9040   hardcode_into_libs=yes
9041
9042   # Append ld.so.conf contents to the search path
9043   if test -f /etc/ld.so.conf; then
9044     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' ' '`
9045     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9046   fi
9047
9048   # We used to test for /lib/ld.so.1 and disable shared libraries on
9049   # powerpc, because MkLinux only supported shared libraries with the
9050   # GNU dynamic linker.  Since this was broken with cross compilers,
9051   # most powerpc-linux boxes support dynamic linking these days and
9052   # people can always --disable-shared, the test was removed, and we
9053   # assume the GNU/Linux dynamic linker is in use.
9054   dynamic_linker='GNU/Linux ld.so'
9055   ;;
9056
9057 knetbsd*-gnu)
9058   version_type=linux
9059   need_lib_prefix=no
9060   need_version=no
9061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9062   soname_spec='${libname}${release}${shared_ext}$major'
9063   shlibpath_var=LD_LIBRARY_PATH
9064   shlibpath_overrides_runpath=no
9065   hardcode_into_libs=yes
9066   dynamic_linker='GNU ld.so'
9067   ;;
9068
9069 netbsd*)
9070   version_type=sunos
9071   need_lib_prefix=no
9072   need_version=no
9073   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9075     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9076     dynamic_linker='NetBSD (a.out) ld.so'
9077   else
9078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9079     soname_spec='${libname}${release}${shared_ext}$major'
9080     dynamic_linker='NetBSD ld.elf_so'
9081   fi
9082   shlibpath_var=LD_LIBRARY_PATH
9083   shlibpath_overrides_runpath=yes
9084   hardcode_into_libs=yes
9085   ;;
9086
9087 newsos6)
9088   version_type=linux
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090   shlibpath_var=LD_LIBRARY_PATH
9091   shlibpath_overrides_runpath=yes
9092   ;;
9093
9094 nto-qnx*)
9095   version_type=linux
9096   need_lib_prefix=no
9097   need_version=no
9098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099   soname_spec='${libname}${release}${shared_ext}$major'
9100   shlibpath_var=LD_LIBRARY_PATH
9101   shlibpath_overrides_runpath=yes
9102   ;;
9103
9104 openbsd*)
9105   version_type=sunos
9106   sys_lib_dlsearch_path_spec="/usr/lib"
9107   need_lib_prefix=no
9108   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9109   case $host_os in
9110     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9111     *)                         need_version=no  ;;
9112   esac
9113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9114   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9117     case $host_os in
9118       openbsd2.[89] | openbsd2.[89].*)
9119         shlibpath_overrides_runpath=no
9120         ;;
9121       *)
9122         shlibpath_overrides_runpath=yes
9123         ;;
9124       esac
9125   else
9126     shlibpath_overrides_runpath=yes
9127   fi
9128   ;;
9129
9130 os2*)
9131   libname_spec='$name'
9132   shrext_cmds=".dll"
9133   need_lib_prefix=no
9134   library_names_spec='$libname${shared_ext} $libname.a'
9135   dynamic_linker='OS/2 ld.exe'
9136   shlibpath_var=LIBPATH
9137   ;;
9138
9139 osf3* | osf4* | osf5*)
9140   version_type=osf
9141   need_lib_prefix=no
9142   need_version=no
9143   soname_spec='${libname}${release}${shared_ext}$major'
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145   shlibpath_var=LD_LIBRARY_PATH
9146   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9147   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9148   ;;
9149
9150 solaris*)
9151   version_type=linux
9152   need_lib_prefix=no
9153   need_version=no
9154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155   soname_spec='${libname}${release}${shared_ext}$major'
9156   shlibpath_var=LD_LIBRARY_PATH
9157   shlibpath_overrides_runpath=yes
9158   hardcode_into_libs=yes
9159   # ldd complains unless libraries are executable
9160   postinstall_cmds='chmod +x $lib'
9161   ;;
9162
9163 sunos4*)
9164   version_type=sunos
9165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9167   shlibpath_var=LD_LIBRARY_PATH
9168   shlibpath_overrides_runpath=yes
9169   if test "$with_gnu_ld" = yes; then
9170     need_lib_prefix=no
9171   fi
9172   need_version=yes
9173   ;;
9174
9175 sysv4 | sysv4.3*)
9176   version_type=linux
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178   soname_spec='${libname}${release}${shared_ext}$major'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   case $host_vendor in
9181     sni)
9182       shlibpath_overrides_runpath=no
9183       need_lib_prefix=no
9184       export_dynamic_flag_spec='${wl}-Blargedynsym'
9185       runpath_var=LD_RUN_PATH
9186       ;;
9187     siemens)
9188       need_lib_prefix=no
9189       ;;
9190     motorola)
9191       need_lib_prefix=no
9192       need_version=no
9193       shlibpath_overrides_runpath=no
9194       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9195       ;;
9196   esac
9197   ;;
9198
9199 sysv4*MP*)
9200   if test -d /usr/nec ;then
9201     version_type=linux
9202     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9203     soname_spec='$libname${shared_ext}.$major'
9204     shlibpath_var=LD_LIBRARY_PATH
9205   fi
9206   ;;
9207
9208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9209   version_type=freebsd-elf
9210   need_lib_prefix=no
9211   need_version=no
9212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9213   soname_spec='${libname}${release}${shared_ext}$major'
9214   shlibpath_var=LD_LIBRARY_PATH
9215   hardcode_into_libs=yes
9216   if test "$with_gnu_ld" = yes; then
9217     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9218     shlibpath_overrides_runpath=no
9219   else
9220     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9221     shlibpath_overrides_runpath=yes
9222     case $host_os in
9223       sco3.2v5*)
9224         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9225         ;;
9226     esac
9227   fi
9228   sys_lib_dlsearch_path_spec='/usr/lib'
9229   ;;
9230
9231 uts4*)
9232   version_type=linux
9233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234   soname_spec='${libname}${release}${shared_ext}$major'
9235   shlibpath_var=LD_LIBRARY_PATH
9236   ;;
9237
9238 *)
9239   dynamic_linker=no
9240   ;;
9241 esac
9242 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9243 echo "${ECHO_T}$dynamic_linker" >&6; }
9244 test "$dynamic_linker" = no && can_build_shared=no
9245
9246 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9247 if test "$GCC" = yes; then
9248   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9249 fi
9250
9251
9252 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9253 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9254 if test "${libltdl_cv_shlibext+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257
9258 module=yes
9259 eval libltdl_cv_shlibext=$shrext_cmds
9260
9261 fi
9262 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9263 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9264 if test -n "$libltdl_cv_shlibext"; then
9265
9266 cat >>confdefs.h <<_ACEOF
9267 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9268 _ACEOF
9269
9270 fi
9271
9272
9273 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9274 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9275 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   libltdl_cv_shlibpath_var="$shlibpath_var"
9279 fi
9280 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9281 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9282 if test -n "$libltdl_cv_shlibpath_var"; then
9283
9284 cat >>confdefs.h <<_ACEOF
9285 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9286 _ACEOF
9287
9288 fi
9289
9290
9291 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9292 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9293 if test "${libltdl_cv_sys_search_path+set}" = set; then
9294   echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9297 fi
9298 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9299 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9300 if test -n "$libltdl_cv_sys_search_path"; then
9301   sys_search_path=
9302   for dir in $libltdl_cv_sys_search_path; do
9303     if test -z "$sys_search_path"; then
9304       sys_search_path="$dir"
9305     else
9306       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9307     fi
9308   done
9309
9310 cat >>confdefs.h <<_ACEOF
9311 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9312 _ACEOF
9313
9314 fi
9315
9316 { echo "$as_me:$LINENO: checking for objdir" >&5
9317 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9318 if test "${libltdl_cv_objdir+set}" = set; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   libltdl_cv_objdir="$objdir"
9322   if test -n "$objdir"; then
9323     :
9324   else
9325     rm -f .libs 2>/dev/null
9326     mkdir .libs 2>/dev/null
9327     if test -d .libs; then
9328       libltdl_cv_objdir=.libs
9329     else
9330       # MS-DOS does not allow filenames that begin with a dot.
9331       libltdl_cv_objdir=_libs
9332     fi
9333   rmdir .libs 2>/dev/null
9334   fi
9335
9336 fi
9337 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9338 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9339
9340 cat >>confdefs.h <<_ACEOF
9341 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9342 _ACEOF
9343
9344
9345
9346
9347
9348
9349 # Check for command to grab the raw symbol name followed by C symbol from nm.
9350 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9351 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9352 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9353   echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355
9356 # These are sane defaults that work on at least a few old systems.
9357 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9358
9359 # Character class describing NM global symbol codes.
9360 symcode='[BCDEGRST]'
9361
9362 # Regexp to match symbols that can be accessed directly from C.
9363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9364
9365 # Transform an extracted symbol line into a proper C declaration
9366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9367
9368 # Transform an extracted symbol line into symbol name and symbol address
9369 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'"
9370
9371 # Define system-specific variables.
9372 case $host_os in
9373 aix*)
9374   symcode='[BCDT]'
9375   ;;
9376 cygwin* | mingw* | pw32*)
9377   symcode='[ABCDGISTW]'
9378   ;;
9379 hpux*) # Its linker distinguishes data from code symbols
9380   if test "$host_cpu" = ia64; then
9381     symcode='[ABCDEGRST]'
9382   fi
9383   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9384   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'"
9385   ;;
9386 linux*)
9387   if test "$host_cpu" = ia64; then
9388     symcode='[ABCDGIRSTW]'
9389     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9390     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'"
9391   fi
9392   ;;
9393 irix* | nonstopux*)
9394   symcode='[BCDEGRST]'
9395   ;;
9396 osf*)
9397   symcode='[BCDEGQRST]'
9398   ;;
9399 solaris*)
9400   symcode='[BDRT]'
9401   ;;
9402 sco3.2v5*)
9403   symcode='[DT]'
9404   ;;
9405 sysv4.2uw2*)
9406   symcode='[DT]'
9407   ;;
9408 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9409   symcode='[ABDT]'
9410   ;;
9411 sysv4)
9412   symcode='[DFNSTU]'
9413   ;;
9414 esac
9415
9416 # Handle CRLF in mingw tool chain
9417 opt_cr=
9418 case $build_os in
9419 mingw*)
9420   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9421   ;;
9422 esac
9423
9424 # If we're using GNU nm, then use its standard symbol codes.
9425 case `$NM -V 2>&1` in
9426 *GNU* | *'with BFD'*)
9427   symcode='[ABCDGIRSTW]' ;;
9428 esac
9429
9430 # Try without a prefix undercore, then with it.
9431 for ac_symprfx in "" "_"; do
9432
9433   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9434   symxfrm="\\1 $ac_symprfx\\2 \\2"
9435
9436   # Write the raw and C identifiers.
9437   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9438
9439   # Check to see that the pipe works correctly.
9440   pipe_works=no
9441
9442   rm -f conftest*
9443   cat > conftest.$ac_ext <<EOF
9444 #ifdef __cplusplus
9445 extern "C" {
9446 #endif
9447 char nm_test_var;
9448 void nm_test_func(){}
9449 #ifdef __cplusplus
9450 }
9451 #endif
9452 int main(){nm_test_var='a';nm_test_func();return(0);}
9453 EOF
9454
9455   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456   (eval $ac_compile) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; then
9460     # Now try to grab the symbols.
9461     nlist=conftest.nm
9462     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9463   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } && test -s "$nlist"; then
9467       # Try sorting and uniquifying the output.
9468       if sort "$nlist" | uniq > "$nlist"T; then
9469         mv -f "$nlist"T "$nlist"
9470       else
9471         rm -f "$nlist"T
9472       fi
9473
9474       # Make sure that we snagged all the symbols we need.
9475       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9476         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9477           cat <<EOF > conftest.$ac_ext
9478 #ifdef __cplusplus
9479 extern "C" {
9480 #endif
9481
9482 EOF
9483           # Now generate the symbol file.
9484           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9485
9486           cat <<EOF >> conftest.$ac_ext
9487 #if defined (__STDC__) && __STDC__
9488 # define lt_ptr_t void *
9489 #else
9490 # define lt_ptr_t char *
9491 # define const
9492 #endif
9493
9494 /* The mapping between symbol names and symbols. */
9495 const struct {
9496   const char *name;
9497   lt_ptr_t address;
9498 }
9499 lt_preloaded_symbols[] =
9500 {
9501 EOF
9502           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9503           cat <<\EOF >> conftest.$ac_ext
9504   {0, (lt_ptr_t) 0}
9505 };
9506
9507 #ifdef __cplusplus
9508 }
9509 #endif
9510 EOF
9511           # Now try linking the two files.
9512           mv conftest.$ac_objext conftstm.$ac_objext
9513           lt_save_LIBS="$LIBS"
9514           lt_save_CFLAGS="$CFLAGS"
9515           LIBS="conftstm.$ac_objext"
9516           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9517           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518   (eval $ac_link) 2>&5
9519   ac_status=$?
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9522             pipe_works=yes
9523           fi
9524           LIBS="$lt_save_LIBS"
9525           CFLAGS="$lt_save_CFLAGS"
9526         else
9527           echo "cannot find nm_test_func in $nlist" >&5
9528         fi
9529       else
9530         echo "cannot find nm_test_var in $nlist" >&5
9531       fi
9532     else
9533       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9534     fi
9535   else
9536     echo "$progname: failed program was:" >&5
9537     cat conftest.$ac_ext >&5
9538   fi
9539   rm -f conftest* conftst*
9540
9541   # Do not use the global_symbol_pipe unless it works.
9542   if test "$pipe_works" = yes; then
9543     break
9544   else
9545     lt_cv_sys_global_symbol_pipe=
9546   fi
9547 done
9548
9549 fi
9550
9551 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9552   lt_cv_sys_global_symbol_to_cdecl=
9553 fi
9554 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9555   { echo "$as_me:$LINENO: result: failed" >&5
9556 echo "${ECHO_T}failed" >&6; }
9557 else
9558   { echo "$as_me:$LINENO: result: ok" >&5
9559 echo "${ECHO_T}ok" >&6; }
9560 fi
9561
9562
9563 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9564 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9565 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9569     libltdl_cv_preloaded_symbols=yes
9570   else
9571     libltdl_cv_preloaded_symbols=no
9572   fi
9573
9574 fi
9575 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9576 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9577 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9578
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_PRELOADED_SYMBOLS 1
9581 _ACEOF
9582
9583 fi
9584
9585 LIBADD_DL=
9586
9587 ac_ext=c
9588 ac_cpp='$CPP $CPPFLAGS'
9589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9592
9593
9594 { echo "$as_me:$LINENO: checking for shl_load" >&5
9595 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9596 if test "${ac_cv_func_shl_load+set}" = set; then
9597   echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599   cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h.  */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h.  */
9605 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9607 #define shl_load innocuous_shl_load
9608
9609 /* System header to define __stub macros and hopefully few prototypes,
9610     which can conflict with char shl_load (); below.
9611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612     <limits.h> exists even on freestanding compilers.  */
9613
9614 #ifdef __STDC__
9615 # include <limits.h>
9616 #else
9617 # include <assert.h>
9618 #endif
9619
9620 #undef shl_load
9621
9622 /* Override any GCC internal prototype to avoid an error.
9623    Use char because int might match the return type of a GCC
9624    builtin and then its argument prototype would still apply.  */
9625 #ifdef __cplusplus
9626 extern "C"
9627 #endif
9628 char shl_load ();
9629 /* The GNU C library defines this for functions which it implements
9630     to always fail with ENOSYS.  Some functions are actually named
9631     something starting with __ and the normal name is an alias.  */
9632 #if defined __stub_shl_load || defined __stub___shl_load
9633 choke me
9634 #endif
9635
9636 int
9637 main ()
9638 {
9639 return shl_load ();
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9646 case "(($ac_try" in
9647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648   *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651   (eval "$ac_link") 2>conftest.er1
9652   ac_status=$?
9653   grep -v '^ *+' conftest.er1 >conftest.err
9654   rm -f conftest.er1
9655   cat conftest.err >&5
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); } &&
9658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659   { (case "(($ac_try" in
9660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661   *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664   (eval "$ac_try") 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (case "(($ac_try" in
9670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671   *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674   (eval "$ac_try") 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_func_shl_load=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683         ac_cv_func_shl_load=no
9684 fi
9685
9686 rm -f core conftest.err conftest.$ac_objext \
9687       conftest$ac_exeext conftest.$ac_ext
9688 fi
9689 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9690 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9691 if test $ac_cv_func_shl_load = yes; then
9692
9693 cat >>confdefs.h <<\_ACEOF
9694 #define HAVE_SHL_LOAD 1
9695 _ACEOF
9696
9697 else
9698   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9699 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9700 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9701   echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703   ac_check_lib_save_LIBS=$LIBS
9704 LIBS="-ldld  $LIBS"
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h.  */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h.  */
9711
9712 /* Override any GCC internal prototype to avoid an error.
9713    Use char because int might match the return type of a GCC
9714    builtin and then its argument prototype would still apply.  */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char shl_load ();
9719 int
9720 main ()
9721 {
9722 return shl_load ();
9723   ;
9724   return 0;
9725 }
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (ac_try="$ac_link"
9729 case "(($ac_try" in
9730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731   *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734   (eval "$ac_link") 2>conftest.er1
9735   ac_status=$?
9736   grep -v '^ *+' conftest.er1 >conftest.err
9737   rm -f conftest.er1
9738   cat conftest.err >&5
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742   { (case "(($ac_try" in
9743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744   *) ac_try_echo=$ac_try;;
9745 esac
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747   (eval "$ac_try") 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; } &&
9751          { ac_try='test -s conftest$ac_exeext'
9752   { (case "(($ac_try" in
9753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754   *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757   (eval "$ac_try") 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; }; then
9761   ac_cv_lib_dld_shl_load=yes
9762 else
9763   echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766         ac_cv_lib_dld_shl_load=no
9767 fi
9768
9769 rm -f core conftest.err conftest.$ac_objext \
9770       conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_lib_save_LIBS
9772 fi
9773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9774 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9775 if test $ac_cv_lib_dld_shl_load = yes; then
9776
9777 cat >>confdefs.h <<\_ACEOF
9778 #define HAVE_SHL_LOAD 1
9779 _ACEOF
9780
9781         LIBADD_DL="$LIBADD_DL -ldld"
9782 else
9783   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9784 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9785 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   ac_check_lib_save_LIBS=$LIBS
9789 LIBS="-ldl  $LIBS"
9790 cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796
9797 /* Override any GCC internal prototype to avoid an error.
9798    Use char because int might match the return type of a GCC
9799    builtin and then its argument prototype would still apply.  */
9800 #ifdef __cplusplus
9801 extern "C"
9802 #endif
9803 char dlopen ();
9804 int
9805 main ()
9806 {
9807 return dlopen ();
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9814 case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819   (eval "$ac_link") 2>conftest.er1
9820   ac_status=$?
9821   grep -v '^ *+' conftest.er1 >conftest.err
9822   rm -f conftest.er1
9823   cat conftest.err >&5
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); } &&
9826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827   { (case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_try") 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; } &&
9836          { ac_try='test -s conftest$ac_exeext'
9837   { (case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_try") 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; }; then
9846   ac_cv_lib_dl_dlopen=yes
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851         ac_cv_lib_dl_dlopen=no
9852 fi
9853
9854 rm -f core conftest.err conftest.$ac_objext \
9855       conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9857 fi
9858 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9859 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9860 if test $ac_cv_lib_dl_dlopen = yes; then
9861
9862 cat >>confdefs.h <<\_ACEOF
9863 #define HAVE_LIBDL 1
9864 _ACEOF
9865
9866                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9867 else
9868   cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 #if HAVE_DLFCN_H
9875 #  include <dlfcn.h>
9876 #endif
9877
9878 int
9879 main ()
9880 {
9881 dlopen(0, 0);
9882   ;
9883   return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9888 case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_link") 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901   { (case "(($ac_try" in
9902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903   *) ac_try_echo=$ac_try;;
9904 esac
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906   (eval "$ac_try") 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; } &&
9910          { ac_try='test -s conftest$ac_exeext'
9911   { (case "(($ac_try" in
9912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913   *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916   (eval "$ac_try") 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_LIBDL 1
9923 _ACEOF
9924  libltdl_cv_func_dlopen="yes"
9925 else
9926   echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9930 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9931 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9932   echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934   ac_check_lib_save_LIBS=$LIBS
9935 LIBS="-lsvld  $LIBS"
9936 cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942
9943 /* Override any GCC internal prototype to avoid an error.
9944    Use char because int might match the return type of a GCC
9945    builtin and then its argument prototype would still apply.  */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 char dlopen ();
9950 int
9951 main ()
9952 {
9953 return dlopen ();
9954   ;
9955   return 0;
9956 }
9957 _ACEOF
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (ac_try="$ac_link"
9960 case "(($ac_try" in
9961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962   *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965   (eval "$ac_link") 2>conftest.er1
9966   ac_status=$?
9967   grep -v '^ *+' conftest.er1 >conftest.err
9968   rm -f conftest.er1
9969   cat conftest.err >&5
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } &&
9972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973   { (case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978   (eval "$ac_try") 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; } &&
9982          { ac_try='test -s conftest$ac_exeext'
9983   { (case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_try") 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_cv_lib_svld_dlopen=yes
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997         ac_cv_lib_svld_dlopen=no
9998 fi
9999
10000 rm -f core conftest.err conftest.$ac_objext \
10001       conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10003 fi
10004 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10005 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10006 if test $ac_cv_lib_svld_dlopen = yes; then
10007
10008 cat >>confdefs.h <<\_ACEOF
10009 #define HAVE_LIBDL 1
10010 _ACEOF
10011
10012                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10013 else
10014   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10015 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-ldld  $LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027
10028 /* Override any GCC internal prototype to avoid an error.
10029    Use char because int might match the return type of a GCC
10030    builtin and then its argument prototype would still apply.  */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char dld_link ();
10035 int
10036 main ()
10037 {
10038 return dld_link ();
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047   *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050   (eval "$ac_link") 2>conftest.er1
10051   ac_status=$?
10052   grep -v '^ *+' conftest.er1 >conftest.err
10053   rm -f conftest.er1
10054   cat conftest.err >&5
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } &&
10057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058   { (case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063   (eval "$ac_try") 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; } &&
10067          { ac_try='test -s conftest$ac_exeext'
10068   { (case "(($ac_try" in
10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070   *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073   (eval "$ac_try") 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; }; then
10077   ac_cv_lib_dld_dld_link=yes
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082         ac_cv_lib_dld_dld_link=no
10083 fi
10084
10085 rm -f core conftest.err conftest.$ac_objext \
10086       conftest$ac_exeext conftest.$ac_ext
10087 LIBS=$ac_check_lib_save_LIBS
10088 fi
10089 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10090 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10091 if test $ac_cv_lib_dld_dld_link = yes; then
10092
10093 cat >>confdefs.h <<\_ACEOF
10094 #define HAVE_DLD 1
10095 _ACEOF
10096
10097                 LIBADD_DL="$LIBADD_DL -ldld"
10098 else
10099   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10100 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10101 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10102   echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104   cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10112 #define _dyld_func_lookup innocuous__dyld_func_lookup
10113
10114 /* System header to define __stub macros and hopefully few prototypes,
10115     which can conflict with char _dyld_func_lookup (); below.
10116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10117     <limits.h> exists even on freestanding compilers.  */
10118
10119 #ifdef __STDC__
10120 # include <limits.h>
10121 #else
10122 # include <assert.h>
10123 #endif
10124
10125 #undef _dyld_func_lookup
10126
10127 /* Override any GCC internal prototype to avoid an error.
10128    Use char because int might match the return type of a GCC
10129    builtin and then its argument prototype would still apply.  */
10130 #ifdef __cplusplus
10131 extern "C"
10132 #endif
10133 char _dyld_func_lookup ();
10134 /* The GNU C library defines this for functions which it implements
10135     to always fail with ENOSYS.  Some functions are actually named
10136     something starting with __ and the normal name is an alias.  */
10137 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10138 choke me
10139 #endif
10140
10141 int
10142 main ()
10143 {
10144 return _dyld_func_lookup ();
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153   *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156   (eval "$ac_link") 2>conftest.er1
10157   ac_status=$?
10158   grep -v '^ *+' conftest.er1 >conftest.err
10159   rm -f conftest.er1
10160   cat conftest.err >&5
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); } &&
10163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10164   { (case "(($ac_try" in
10165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166   *) ac_try_echo=$ac_try;;
10167 esac
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169   (eval "$ac_try") 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; } &&
10173          { ac_try='test -s conftest$ac_exeext'
10174   { (case "(($ac_try" in
10175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176   *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179   (eval "$ac_try") 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   ac_cv_func__dyld_func_lookup=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188         ac_cv_func__dyld_func_lookup=no
10189 fi
10190
10191 rm -f core conftest.err conftest.$ac_objext \
10192       conftest$ac_exeext conftest.$ac_ext
10193 fi
10194 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10195 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10196 if test $ac_cv_func__dyld_func_lookup = yes; then
10197
10198 cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_DYLD 1
10200 _ACEOF
10201
10202 fi
10203
10204
10205 fi
10206
10207
10208 fi
10209
10210
10211 fi
10212
10213 rm -f core conftest.err conftest.$ac_objext \
10214       conftest$ac_exeext conftest.$ac_ext
10215
10216 fi
10217
10218
10219 fi
10220
10221
10222 fi
10223
10224
10225 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10226 then
10227   lt_save_LIBS="$LIBS"
10228   LIBS="$LIBS $LIBADD_DL"
10229
10230 for ac_func in dlerror
10231 do
10232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h.  */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h.  */
10244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10246 #define $ac_func innocuous_$ac_func
10247
10248 /* System header to define __stub macros and hopefully few prototypes,
10249     which can conflict with char $ac_func (); below.
10250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10251     <limits.h> exists even on freestanding compilers.  */
10252
10253 #ifdef __STDC__
10254 # include <limits.h>
10255 #else
10256 # include <assert.h>
10257 #endif
10258
10259 #undef $ac_func
10260
10261 /* Override any GCC internal prototype to avoid an error.
10262    Use char because int might match the return type of a GCC
10263    builtin and then its argument prototype would still apply.  */
10264 #ifdef __cplusplus
10265 extern "C"
10266 #endif
10267 char $ac_func ();
10268 /* The GNU C library defines this for functions which it implements
10269     to always fail with ENOSYS.  Some functions are actually named
10270     something starting with __ and the normal name is an alias.  */
10271 #if defined __stub_$ac_func || defined __stub___$ac_func
10272 choke me
10273 #endif
10274
10275 int
10276 main ()
10277 {
10278 return $ac_func ();
10279   ;
10280   return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290   (eval "$ac_link") 2>conftest.er1
10291   ac_status=$?
10292   grep -v '^ *+' conftest.er1 >conftest.err
10293   rm -f conftest.er1
10294   cat conftest.err >&5
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } &&
10297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10298   { (case "(($ac_try" in
10299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300   *) ac_try_echo=$ac_try;;
10301 esac
10302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303   (eval "$ac_try") 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; } &&
10307          { ac_try='test -s conftest$ac_exeext'
10308   { (case "(($ac_try" in
10309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310   *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313   (eval "$ac_try") 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   eval "$as_ac_var=yes"
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322         eval "$as_ac_var=no"
10323 fi
10324
10325 rm -f core conftest.err conftest.$ac_objext \
10326       conftest$ac_exeext conftest.$ac_ext
10327 fi
10328 ac_res=`eval echo '${'$as_ac_var'}'`
10329                { echo "$as_me:$LINENO: result: $ac_res" >&5
10330 echo "${ECHO_T}$ac_res" >&6; }
10331 if test `eval echo '${'$as_ac_var'}'` = yes; then
10332   cat >>confdefs.h <<_ACEOF
10333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10334 _ACEOF
10335
10336 fi
10337 done
10338
10339   LIBS="$lt_save_LIBS"
10340 fi
10341 ac_ext=c
10342 ac_cpp='$CPP $CPPFLAGS'
10343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10346
10347
10348
10349 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10350 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10351 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354   ac_cv_sys_symbol_underscore=no
10355   cat > conftest.$ac_ext <<EOF
10356 void nm_test_func(){}
10357 int main(){nm_test_func;return 0;}
10358 EOF
10359   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360   (eval $ac_compile) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; then
10364     # Now try to grab the symbols.
10365     ac_nlist=conftest.nm
10366     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10367   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } && test -s "$ac_nlist"; then
10371       # See whether the symbols have a leading underscore.
10372       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10373         ac_cv_sys_symbol_underscore=yes
10374       else
10375         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10376           :
10377         else
10378           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10379         fi
10380       fi
10381     else
10382       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10383     fi
10384   else
10385     echo "configure: failed program was:" >&5
10386     cat conftest.c >&5
10387   fi
10388   rm -rf conftest*
10389
10390 fi
10391 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10392 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10393
10394
10395 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10396   if test x"$libltdl_cv_func_dlopen" = xyes ||
10397      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10398         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10399 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10400 if test "${libltdl_cv_need_uscore+set}" = set; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   libltdl_cv_need_uscore=unknown
10404           save_LIBS="$LIBS"
10405           LIBS="$LIBS $LIBADD_DL"
10406           if test "$cross_compiling" = yes; then :
10407   libltdl_cv_need_uscore=cross
10408 else
10409   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10410   lt_status=$lt_dlunknown
10411   cat > conftest.$ac_ext <<EOF
10412 #line 10412 "configure"
10413 #include "confdefs.h"
10414
10415 #if HAVE_DLFCN_H
10416 #include <dlfcn.h>
10417 #endif
10418
10419 #include <stdio.h>
10420
10421 #ifdef RTLD_GLOBAL
10422 #  define LT_DLGLOBAL           RTLD_GLOBAL
10423 #else
10424 #  ifdef DL_GLOBAL
10425 #    define LT_DLGLOBAL         DL_GLOBAL
10426 #  else
10427 #    define LT_DLGLOBAL         0
10428 #  endif
10429 #endif
10430
10431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10432    find out it does not work in some platform. */
10433 #ifndef LT_DLLAZY_OR_NOW
10434 #  ifdef RTLD_LAZY
10435 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10436 #  else
10437 #    ifdef DL_LAZY
10438 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10439 #    else
10440 #      ifdef RTLD_NOW
10441 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10442 #      else
10443 #        ifdef DL_NOW
10444 #          define LT_DLLAZY_OR_NOW      DL_NOW
10445 #        else
10446 #          define LT_DLLAZY_OR_NOW      0
10447 #        endif
10448 #      endif
10449 #    endif
10450 #  endif
10451 #endif
10452
10453 #ifdef __cplusplus
10454 extern "C" void exit (int);
10455 #endif
10456
10457 void fnord() { int i=42;}
10458 int main ()
10459 {
10460   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10461   int status = $lt_dlunknown;
10462
10463   if (self)
10464     {
10465       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10466       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10467       /* dlclose (self); */
10468     }
10469   else
10470     puts (dlerror ());
10471
10472     exit (status);
10473 }
10474 EOF
10475   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476   (eval $ac_link) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10480     (./conftest; exit; ) >&5 2>/dev/null
10481     lt_status=$?
10482     case x$lt_status in
10483       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10484       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10485       x$lt_dlunknown|x*)  ;;
10486     esac
10487   else :
10488     # compilation failed
10489
10490   fi
10491 fi
10492 rm -fr conftest*
10493
10494           LIBS="$save_LIBS"
10495
10496 fi
10497 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10498 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10499   fi
10500 fi
10501
10502 if test x"$libltdl_cv_need_uscore" = xyes; then
10503
10504 cat >>confdefs.h <<\_ACEOF
10505 #define NEED_USCORE 1
10506 _ACEOF
10507
10508 fi
10509
10510
10511 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10512 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10513 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516   # PORTME does your system automatically load deplibs for dlopen?
10517   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10518   # For now, we just catch OSes we know something about -- in the
10519   # future, we'll try test this programmatically.
10520   libltdl_cv_sys_dlopen_deplibs=unknown
10521   case "$host_os" in
10522   aix3*|aix4.1.*|aix4.2.*)
10523     # Unknown whether this is true for these versions of AIX, but
10524     # we want this `case' here to explicitly catch those versions.
10525     libltdl_cv_sys_dlopen_deplibs=unknown
10526     ;;
10527   aix[45]*)
10528     libltdl_cv_sys_dlopen_deplibs=yes
10529     ;;
10530   darwin*)
10531     # Assuming the user has installed a libdl from somewhere, this is true
10532     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10533     libltdl_cv_sys_dlopen_deplibs=yes
10534     ;;
10535   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10536     # GNU and its variants, using gnu ld.so (Glibc)
10537     libltdl_cv_sys_dlopen_deplibs=yes
10538     ;;
10539   hpux10*|hpux11*)
10540     libltdl_cv_sys_dlopen_deplibs=yes
10541     ;;
10542   interix*)
10543     libltdl_cv_sys_dlopen_deplibs=yes
10544     ;;
10545   irix[12345]*|irix6.[01]*)
10546     # Catch all versions of IRIX before 6.2, and indicate that we don't
10547     # know how it worked for any of those versions.
10548     libltdl_cv_sys_dlopen_deplibs=unknown
10549     ;;
10550   irix*)
10551     # The case above catches anything before 6.2, and it's known that
10552     # at 6.2 and later dlopen does load deplibs.
10553     libltdl_cv_sys_dlopen_deplibs=yes
10554     ;;
10555   netbsd*)
10556     libltdl_cv_sys_dlopen_deplibs=yes
10557     ;;
10558   openbsd*)
10559     libltdl_cv_sys_dlopen_deplibs=yes
10560     ;;
10561   osf[1234]*)
10562     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10563     # it did *not* use an RPATH in a shared library to find objects the
10564     # library depends on, so we explicitly say `no'.
10565     libltdl_cv_sys_dlopen_deplibs=no
10566     ;;
10567   osf5.0|osf5.0a|osf5.1)
10568     # dlopen *does* load deplibs and with the right loader patch applied
10569     # it even uses RPATH in a shared library to search for shared objects
10570     # that the library depends on, but there's no easy way to know if that
10571     # patch is installed.  Since this is the case, all we can really
10572     # say is unknown -- it depends on the patch being installed.  If
10573     # it is, this changes to `yes'.  Without it, it would be `no'.
10574     libltdl_cv_sys_dlopen_deplibs=unknown
10575     ;;
10576   osf*)
10577     # the two cases above should catch all versions of osf <= 5.1.  Read
10578     # the comments above for what we know about them.
10579     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10580     # is used to find them so we can finally say `yes'.
10581     libltdl_cv_sys_dlopen_deplibs=yes
10582     ;;
10583   solaris*)
10584     libltdl_cv_sys_dlopen_deplibs=yes
10585     ;;
10586   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10587     libltdl_cv_sys_dlopen_deplibs=yes
10588     ;;
10589   esac
10590
10591 fi
10592 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10593 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10594 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10595
10596 cat >>confdefs.h <<\_ACEOF
10597 #define LTDL_DLOPEN_DEPLIBS 1
10598 _ACEOF
10599
10600 fi
10601
10602
10603 for ac_header in argz.h
10604 do
10605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10610   echo $ECHO_N "(cached) $ECHO_C" >&6
10611 fi
10612 ac_res=`eval echo '${'$as_ac_Header'}'`
10613                { echo "$as_me:$LINENO: result: $ac_res" >&5
10614 echo "${ECHO_T}$ac_res" >&6; }
10615 else
10616   # Is the header compilable?
10617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h.  */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h.  */
10625 $ac_includes_default
10626 #include <$ac_header>
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_compile") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } &&
10642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643   { (case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_try") 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest.$ac_objext'
10653   { (case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658   (eval "$ac_try") 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_header_compiler=yes
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667         ac_header_compiler=no
10668 fi
10669
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672 echo "${ECHO_T}$ac_header_compiler" >&6; }
10673
10674 # Is the header present?
10675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683 #include <$ac_header>
10684 _ACEOF
10685 if { (ac_try="$ac_cpp conftest.$ac_ext"
10686 case "(($ac_try" in
10687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688   *) ac_try_echo=$ac_try;;
10689 esac
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10692   ac_status=$?
10693   grep -v '^ *+' conftest.er1 >conftest.err
10694   rm -f conftest.er1
10695   cat conftest.err >&5
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } >/dev/null; then
10698   if test -s conftest.err; then
10699     ac_cpp_err=$ac_c_preproc_warn_flag
10700     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10701   else
10702     ac_cpp_err=
10703   fi
10704 else
10705   ac_cpp_err=yes
10706 fi
10707 if test -z "$ac_cpp_err"; then
10708   ac_header_preproc=yes
10709 else
10710   echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10712
10713   ac_header_preproc=no
10714 fi
10715
10716 rm -f conftest.err conftest.$ac_ext
10717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10718 echo "${ECHO_T}$ac_header_preproc" >&6; }
10719
10720 # So?  What about this header?
10721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10722   yes:no: )
10723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10727     ac_header_preproc=yes
10728     ;;
10729   no:yes:* )
10730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10742     ( cat <<\_ASBOX
10743 ## ------------------------------ ##
10744 ## Report this to bugs@yourdomain ##
10745 ## ------------------------------ ##
10746 _ASBOX
10747      ) | sed "s/^/$as_me: WARNING:     /" >&2
10748     ;;
10749 esac
10750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   eval "$as_ac_Header=\$ac_header_preproc"
10756 fi
10757 ac_res=`eval echo '${'$as_ac_Header'}'`
10758                { echo "$as_me:$LINENO: result: $ac_res" >&5
10759 echo "${ECHO_T}$ac_res" >&6; }
10760
10761 fi
10762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10763   cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10765 _ACEOF
10766
10767 fi
10768
10769 done
10770
10771
10772 { echo "$as_me:$LINENO: checking for error_t" >&5
10773 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10774 if test "${ac_cv_type_error_t+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783 #if HAVE_ARGZ_H
10784 #  include <argz.h>
10785 #endif
10786
10787 typedef error_t ac__type_new_;
10788 int
10789 main ()
10790 {
10791 if ((ac__type_new_ *) 0)
10792   return 0;
10793 if (sizeof (ac__type_new_))
10794   return 0;
10795   ;
10796   return 0;
10797 }
10798 _ACEOF
10799 rm -f conftest.$ac_objext
10800 if { (ac_try="$ac_compile"
10801 case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806   (eval "$ac_compile") 2>conftest.er1
10807   ac_status=$?
10808   grep -v '^ *+' conftest.er1 >conftest.err
10809   rm -f conftest.er1
10810   cat conftest.err >&5
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); } &&
10813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814   { (case "(($ac_try" in
10815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816   *) ac_try_echo=$ac_try;;
10817 esac
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819   (eval "$ac_try") 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; } &&
10823          { ac_try='test -s conftest.$ac_objext'
10824   { (case "(($ac_try" in
10825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826   *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829   (eval "$ac_try") 2>&5
10830   ac_status=$?
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); }; }; then
10833   ac_cv_type_error_t=yes
10834 else
10835   echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838         ac_cv_type_error_t=no
10839 fi
10840
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10842 fi
10843 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10844 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10845 if test $ac_cv_type_error_t = yes; then
10846
10847 cat >>confdefs.h <<_ACEOF
10848 #define HAVE_ERROR_T 1
10849 _ACEOF
10850
10851
10852 else
10853
10854 cat >>confdefs.h <<\_ACEOF
10855 #define error_t int
10856 _ACEOF
10857
10858 fi
10859
10860
10861
10862
10863
10864
10865
10866 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10867 do
10868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10872   echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874   cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10882 #define $ac_func innocuous_$ac_func
10883
10884 /* System header to define __stub macros and hopefully few prototypes,
10885     which can conflict with char $ac_func (); below.
10886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10887     <limits.h> exists even on freestanding compilers.  */
10888
10889 #ifdef __STDC__
10890 # include <limits.h>
10891 #else
10892 # include <assert.h>
10893 #endif
10894
10895 #undef $ac_func
10896
10897 /* Override any GCC internal prototype to avoid an error.
10898    Use char because int might match the return type of a GCC
10899    builtin and then its argument prototype would still apply.  */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char $ac_func ();
10904 /* The GNU C library defines this for functions which it implements
10905     to always fail with ENOSYS.  Some functions are actually named
10906     something starting with __ and the normal name is an alias.  */
10907 #if defined __stub_$ac_func || defined __stub___$ac_func
10908 choke me
10909 #endif
10910
10911 int
10912 main ()
10913 {
10914 return $ac_func ();
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (ac_try="$ac_link"
10921 case "(($ac_try" in
10922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923   *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926   (eval "$ac_link") 2>conftest.er1
10927   ac_status=$?
10928   grep -v '^ *+' conftest.er1 >conftest.err
10929   rm -f conftest.er1
10930   cat conftest.err >&5
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } &&
10933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934   { (case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939   (eval "$ac_try") 2>&5
10940   ac_status=$?
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); }; } &&
10943          { ac_try='test -s conftest$ac_exeext'
10944   { (case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_try") 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; }; then
10953   eval "$as_ac_var=yes"
10954 else
10955   echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10957
10958         eval "$as_ac_var=no"
10959 fi
10960
10961 rm -f core conftest.err conftest.$ac_objext \
10962       conftest$ac_exeext conftest.$ac_ext
10963 fi
10964 ac_res=`eval echo '${'$as_ac_var'}'`
10965                { echo "$as_me:$LINENO: result: $ac_res" >&5
10966 echo "${ECHO_T}$ac_res" >&6; }
10967 if test `eval echo '${'$as_ac_var'}'` = yes; then
10968   cat >>confdefs.h <<_ACEOF
10969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10970 _ACEOF
10971
10972 fi
10973 done
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11003                   stdio.h unistd.h
11004 do
11005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11010   echo $ECHO_N "(cached) $ECHO_C" >&6
11011 fi
11012 ac_res=`eval echo '${'$as_ac_Header'}'`
11013                { echo "$as_me:$LINENO: result: $ac_res" >&5
11014 echo "${ECHO_T}$ac_res" >&6; }
11015 else
11016   # Is the header compilable?
11017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h.  */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h.  */
11025 $ac_includes_default
11026 #include <$ac_header>
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (ac_try="$ac_compile"
11030 case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_compile") 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } &&
11042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043   { (case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048   (eval "$ac_try") 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }; } &&
11052          { ac_try='test -s conftest.$ac_objext'
11053   { (case "(($ac_try" in
11054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055   *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058   (eval "$ac_try") 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }; }; then
11062   ac_header_compiler=yes
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067         ac_header_compiler=no
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11072 echo "${ECHO_T}$ac_header_compiler" >&6; }
11073
11074 # Is the header present?
11075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h.  */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h.  */
11083 #include <$ac_header>
11084 _ACEOF
11085 if { (ac_try="$ac_cpp conftest.$ac_ext"
11086 case "(($ac_try" in
11087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088   *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11092   ac_status=$?
11093   grep -v '^ *+' conftest.er1 >conftest.err
11094   rm -f conftest.er1
11095   cat conftest.err >&5
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } >/dev/null; then
11098   if test -s conftest.err; then
11099     ac_cpp_err=$ac_c_preproc_warn_flag
11100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11101   else
11102     ac_cpp_err=
11103   fi
11104 else
11105   ac_cpp_err=yes
11106 fi
11107 if test -z "$ac_cpp_err"; then
11108   ac_header_preproc=yes
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113   ac_header_preproc=no
11114 fi
11115
11116 rm -f conftest.err conftest.$ac_ext
11117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11118 echo "${ECHO_T}$ac_header_preproc" >&6; }
11119
11120 # So?  What about this header?
11121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11122   yes:no: )
11123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11127     ac_header_preproc=yes
11128     ;;
11129   no:yes:* )
11130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11142     ( cat <<\_ASBOX
11143 ## ------------------------------ ##
11144 ## Report this to bugs@yourdomain ##
11145 ## ------------------------------ ##
11146 _ASBOX
11147      ) | sed "s/^/$as_me: WARNING:     /" >&2
11148     ;;
11149 esac
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155   eval "$as_ac_Header=\$ac_header_preproc"
11156 fi
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158                { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160
11161 fi
11162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11163   cat >>confdefs.h <<_ACEOF
11164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11165 _ACEOF
11166
11167 fi
11168
11169 done
11170
11171
11172
11173
11174
11175 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11176 do
11177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182   echo $ECHO_N "(cached) $ECHO_C" >&6
11183 fi
11184 ac_res=`eval echo '${'$as_ac_Header'}'`
11185                { echo "$as_me:$LINENO: result: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11187 else
11188   # Is the header compilable?
11189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11191 cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h.  */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h.  */
11197 $ac_includes_default
11198 #include <$ac_header>
11199 _ACEOF
11200 rm -f conftest.$ac_objext
11201 if { (ac_try="$ac_compile"
11202 case "(($ac_try" in
11203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204   *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207   (eval "$ac_compile") 2>conftest.er1
11208   ac_status=$?
11209   grep -v '^ *+' conftest.er1 >conftest.err
11210   rm -f conftest.er1
11211   cat conftest.err >&5
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); } &&
11214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11215   { (case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_try") 2>&5
11221   ac_status=$?
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); }; } &&
11224          { ac_try='test -s conftest.$ac_objext'
11225   { (case "(($ac_try" in
11226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227   *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230   (eval "$ac_try") 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; }; then
11234   ac_header_compiler=yes
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239         ac_header_compiler=no
11240 fi
11241
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11244 echo "${ECHO_T}$ac_header_compiler" >&6; }
11245
11246 # Is the header present?
11247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 #include <$ac_header>
11256 _ACEOF
11257 if { (ac_try="$ac_cpp conftest.$ac_ext"
11258 case "(($ac_try" in
11259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260   *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } >/dev/null; then
11270   if test -s conftest.err; then
11271     ac_cpp_err=$ac_c_preproc_warn_flag
11272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11273   else
11274     ac_cpp_err=
11275   fi
11276 else
11277   ac_cpp_err=yes
11278 fi
11279 if test -z "$ac_cpp_err"; then
11280   ac_header_preproc=yes
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285   ac_header_preproc=no
11286 fi
11287
11288 rm -f conftest.err conftest.$ac_ext
11289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11290 echo "${ECHO_T}$ac_header_preproc" >&6; }
11291
11292 # So?  What about this header?
11293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11294   yes:no: )
11295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11299     ac_header_preproc=yes
11300     ;;
11301   no:yes:* )
11302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11314     ( cat <<\_ASBOX
11315 ## ------------------------------ ##
11316 ## Report this to bugs@yourdomain ##
11317 ## ------------------------------ ##
11318 _ASBOX
11319      ) | sed "s/^/$as_me: WARNING:     /" >&2
11320     ;;
11321 esac
11322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   eval "$as_ac_Header=\$ac_header_preproc"
11328 fi
11329 ac_res=`eval echo '${'$as_ac_Header'}'`
11330                { echo "$as_me:$LINENO: result: $ac_res" >&5
11331 echo "${ECHO_T}$ac_res" >&6; }
11332
11333 fi
11334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11335   cat >>confdefs.h <<_ACEOF
11336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11337 _ACEOF
11338
11339 fi
11340
11341 done
11342
11343
11344
11345 for ac_header in string.h strings.h
11346 do
11347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352   echo $ECHO_N "(cached) $ECHO_C" >&6
11353 fi
11354 ac_res=`eval echo '${'$as_ac_Header'}'`
11355                { echo "$as_me:$LINENO: result: $ac_res" >&5
11356 echo "${ECHO_T}$ac_res" >&6; }
11357 else
11358   # Is the header compilable?
11359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h.  */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h.  */
11367 $ac_includes_default
11368 #include <$ac_header>
11369 _ACEOF
11370 rm -f conftest.$ac_objext
11371 if { (ac_try="$ac_compile"
11372 case "(($ac_try" in
11373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374   *) ac_try_echo=$ac_try;;
11375 esac
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377   (eval "$ac_compile") 2>conftest.er1
11378   ac_status=$?
11379   grep -v '^ *+' conftest.er1 >conftest.err
11380   rm -f conftest.er1
11381   cat conftest.err >&5
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } &&
11384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385   { (case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390   (eval "$ac_try") 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; } &&
11394          { ac_try='test -s conftest.$ac_objext'
11395   { (case "(($ac_try" in
11396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397   *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400   (eval "$ac_try") 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; }; then
11404   ac_header_compiler=yes
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409         ac_header_compiler=no
11410 fi
11411
11412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11414 echo "${ECHO_T}$ac_header_compiler" >&6; }
11415
11416 # Is the header present?
11417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h.  */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h.  */
11425 #include <$ac_header>
11426 _ACEOF
11427 if { (ac_try="$ac_cpp conftest.$ac_ext"
11428 case "(($ac_try" in
11429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430   *) ac_try_echo=$ac_try;;
11431 esac
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11434   ac_status=$?
11435   grep -v '^ *+' conftest.er1 >conftest.err
11436   rm -f conftest.er1
11437   cat conftest.err >&5
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); } >/dev/null; then
11440   if test -s conftest.err; then
11441     ac_cpp_err=$ac_c_preproc_warn_flag
11442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11443   else
11444     ac_cpp_err=
11445   fi
11446 else
11447   ac_cpp_err=yes
11448 fi
11449 if test -z "$ac_cpp_err"; then
11450   ac_header_preproc=yes
11451 else
11452   echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11454
11455   ac_header_preproc=no
11456 fi
11457
11458 rm -f conftest.err conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6; }
11461
11462 # So?  What about this header?
11463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464   yes:no: )
11465     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469     ac_header_preproc=yes
11470     ;;
11471   no:yes:* )
11472     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11476     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484     ( cat <<\_ASBOX
11485 ## ------------------------------ ##
11486 ## Report this to bugs@yourdomain ##
11487 ## ------------------------------ ##
11488 _ASBOX
11489      ) | sed "s/^/$as_me: WARNING:     /" >&2
11490     ;;
11491 esac
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   eval "$as_ac_Header=\$ac_header_preproc"
11498 fi
11499 ac_res=`eval echo '${'$as_ac_Header'}'`
11500                { echo "$as_me:$LINENO: result: $ac_res" >&5
11501 echo "${ECHO_T}$ac_res" >&6; }
11502
11503 fi
11504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11505   cat >>confdefs.h <<_ACEOF
11506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11507 _ACEOF
11508  break
11509 fi
11510
11511 done
11512
11513
11514
11515
11516 for ac_func in strchr index
11517 do
11518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h.  */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h.  */
11530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11532 #define $ac_func innocuous_$ac_func
11533
11534 /* System header to define __stub macros and hopefully few prototypes,
11535     which can conflict with char $ac_func (); below.
11536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537     <limits.h> exists even on freestanding compilers.  */
11538
11539 #ifdef __STDC__
11540 # include <limits.h>
11541 #else
11542 # include <assert.h>
11543 #endif
11544
11545 #undef $ac_func
11546
11547 /* Override any GCC internal prototype to avoid an error.
11548    Use char because int might match the return type of a GCC
11549    builtin and then its argument prototype would still apply.  */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char $ac_func ();
11554 /* The GNU C library defines this for functions which it implements
11555     to always fail with ENOSYS.  Some functions are actually named
11556     something starting with __ and the normal name is an alias.  */
11557 #if defined __stub_$ac_func || defined __stub___$ac_func
11558 choke me
11559 #endif
11560
11561 int
11562 main ()
11563 {
11564 return $ac_func ();
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (ac_try="$ac_link"
11571 case "(($ac_try" in
11572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573   *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576   (eval "$ac_link") 2>conftest.er1
11577   ac_status=$?
11578   grep -v '^ *+' conftest.er1 >conftest.err
11579   rm -f conftest.er1
11580   cat conftest.err >&5
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); } &&
11583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11584   { (case "(($ac_try" in
11585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586   *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589   (eval "$ac_try") 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; } &&
11593          { ac_try='test -s conftest$ac_exeext'
11594   { (case "(($ac_try" in
11595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596   *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599   (eval "$ac_try") 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; }; then
11603   eval "$as_ac_var=yes"
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608         eval "$as_ac_var=no"
11609 fi
11610
11611 rm -f core conftest.err conftest.$ac_objext \
11612       conftest$ac_exeext conftest.$ac_ext
11613 fi
11614 ac_res=`eval echo '${'$as_ac_var'}'`
11615                { echo "$as_me:$LINENO: result: $ac_res" >&5
11616 echo "${ECHO_T}$ac_res" >&6; }
11617 if test `eval echo '${'$as_ac_var'}'` = yes; then
11618   cat >>confdefs.h <<_ACEOF
11619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11620 _ACEOF
11621  break
11622 fi
11623 done
11624
11625
11626
11627 for ac_func in strrchr rindex
11628 do
11629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h.  */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h.  */
11641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11643 #define $ac_func innocuous_$ac_func
11644
11645 /* System header to define __stub macros and hopefully few prototypes,
11646     which can conflict with char $ac_func (); below.
11647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648     <limits.h> exists even on freestanding compilers.  */
11649
11650 #ifdef __STDC__
11651 # include <limits.h>
11652 #else
11653 # include <assert.h>
11654 #endif
11655
11656 #undef $ac_func
11657
11658 /* Override any GCC internal prototype to avoid an error.
11659    Use char because int might match the return type of a GCC
11660    builtin and then its argument prototype would still apply.  */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char $ac_func ();
11665 /* The GNU C library defines this for functions which it implements
11666     to always fail with ENOSYS.  Some functions are actually named
11667     something starting with __ and the normal name is an alias.  */
11668 #if defined __stub_$ac_func || defined __stub___$ac_func
11669 choke me
11670 #endif
11671
11672 int
11673 main ()
11674 {
11675 return $ac_func ();
11676   ;
11677   return 0;
11678 }
11679 _ACEOF
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_link") 2>conftest.er1
11688   ac_status=$?
11689   grep -v '^ *+' conftest.er1 >conftest.err
11690   rm -f conftest.er1
11691   cat conftest.err >&5
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695   { (case "(($ac_try" in
11696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697   *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700   (eval "$ac_try") 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; } &&
11704          { ac_try='test -s conftest$ac_exeext'
11705   { (case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_try") 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   eval "$as_ac_var=yes"
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719         eval "$as_ac_var=no"
11720 fi
11721
11722 rm -f core conftest.err conftest.$ac_objext \
11723       conftest$ac_exeext conftest.$ac_ext
11724 fi
11725 ac_res=`eval echo '${'$as_ac_var'}'`
11726                { echo "$as_me:$LINENO: result: $ac_res" >&5
11727 echo "${ECHO_T}$ac_res" >&6; }
11728 if test `eval echo '${'$as_ac_var'}'` = yes; then
11729   cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731 _ACEOF
11732  break
11733 fi
11734 done
11735
11736
11737
11738 for ac_func in memcpy bcopy
11739 do
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11754 #define $ac_func innocuous_$ac_func
11755
11756 /* System header to define __stub macros and hopefully few prototypes,
11757     which can conflict with char $ac_func (); below.
11758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759     <limits.h> exists even on freestanding compilers.  */
11760
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11766
11767 #undef $ac_func
11768
11769 /* Override any GCC internal prototype to avoid an error.
11770    Use char because int might match the return type of a GCC
11771    builtin and then its argument prototype would still apply.  */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char $ac_func ();
11776 /* The GNU C library defines this for functions which it implements
11777     to always fail with ENOSYS.  Some functions are actually named
11778     something starting with __ and the normal name is an alias.  */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11780 choke me
11781 #endif
11782
11783 int
11784 main ()
11785 {
11786 return $ac_func ();
11787   ;
11788   return 0;
11789 }
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_link") 2>conftest.er1
11799   ac_status=$?
11800   grep -v '^ *+' conftest.er1 >conftest.err
11801   rm -f conftest.er1
11802   cat conftest.err >&5
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } &&
11805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806   { (case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811   (eval "$ac_try") 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; } &&
11815          { ac_try='test -s conftest$ac_exeext'
11816   { (case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_try") 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; }; then
11825   eval "$as_ac_var=yes"
11826 else
11827   echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830         eval "$as_ac_var=no"
11831 fi
11832
11833 rm -f core conftest.err conftest.$ac_objext \
11834       conftest$ac_exeext conftest.$ac_ext
11835 fi
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837                { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840   cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842 _ACEOF
11843  break
11844 fi
11845 done
11846
11847
11848
11849 for ac_func in memmove strcmp
11850 do
11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11865 #define $ac_func innocuous_$ac_func
11866
11867 /* System header to define __stub macros and hopefully few prototypes,
11868     which can conflict with char $ac_func (); below.
11869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870     <limits.h> exists even on freestanding compilers.  */
11871
11872 #ifdef __STDC__
11873 # include <limits.h>
11874 #else
11875 # include <assert.h>
11876 #endif
11877
11878 #undef $ac_func
11879
11880 /* Override any GCC internal prototype to avoid an error.
11881    Use char because int might match the return type of a GCC
11882    builtin and then its argument prototype would still apply.  */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char $ac_func ();
11887 /* The GNU C library defines this for functions which it implements
11888     to always fail with ENOSYS.  Some functions are actually named
11889     something starting with __ and the normal name is an alias.  */
11890 #if defined __stub_$ac_func || defined __stub___$ac_func
11891 choke me
11892 #endif
11893
11894 int
11895 main ()
11896 {
11897 return $ac_func ();
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906   *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909   (eval "$ac_link") 2>conftest.er1
11910   ac_status=$?
11911   grep -v '^ *+' conftest.er1 >conftest.err
11912   rm -f conftest.er1
11913   cat conftest.err >&5
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917   { (case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922   (eval "$ac_try") 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; } &&
11926          { ac_try='test -s conftest$ac_exeext'
11927   { (case "(($ac_try" in
11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929   *) ac_try_echo=$ac_try;;
11930 esac
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932   (eval "$ac_try") 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; }; then
11936   eval "$as_ac_var=yes"
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941         eval "$as_ac_var=no"
11942 fi
11943
11944 rm -f core conftest.err conftest.$ac_objext \
11945       conftest$ac_exeext conftest.$ac_ext
11946 fi
11947 ac_res=`eval echo '${'$as_ac_var'}'`
11948                { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11950 if test `eval echo '${'$as_ac_var'}'` = yes; then
11951   cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953 _ACEOF
11954
11955 fi
11956 done
11957
11958
11959
11960
11961 for ac_func in closedir opendir readdir
11962 do
11963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11967   echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969   cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h.  */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h.  */
11975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11977 #define $ac_func innocuous_$ac_func
11978
11979 /* System header to define __stub macros and hopefully few prototypes,
11980     which can conflict with char $ac_func (); below.
11981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982     <limits.h> exists even on freestanding compilers.  */
11983
11984 #ifdef __STDC__
11985 # include <limits.h>
11986 #else
11987 # include <assert.h>
11988 #endif
11989
11990 #undef $ac_func
11991
11992 /* Override any GCC internal prototype to avoid an error.
11993    Use char because int might match the return type of a GCC
11994    builtin and then its argument prototype would still apply.  */
11995 #ifdef __cplusplus
11996 extern "C"
11997 #endif
11998 char $ac_func ();
11999 /* The GNU C library defines this for functions which it implements
12000     to always fail with ENOSYS.  Some functions are actually named
12001     something starting with __ and the normal name is an alias.  */
12002 #if defined __stub_$ac_func || defined __stub___$ac_func
12003 choke me
12004 #endif
12005
12006 int
12007 main ()
12008 {
12009 return $ac_func ();
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (ac_try="$ac_link"
12016 case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_link") 2>conftest.er1
12022   ac_status=$?
12023   grep -v '^ *+' conftest.er1 >conftest.err
12024   rm -f conftest.er1
12025   cat conftest.err >&5
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029   { (case "(($ac_try" in
12030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031   *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034   (eval "$ac_try") 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); }; } &&
12038          { ac_try='test -s conftest$ac_exeext'
12039   { (case "(($ac_try" in
12040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041   *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044   (eval "$ac_try") 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048   eval "$as_ac_var=yes"
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053         eval "$as_ac_var=no"
12054 fi
12055
12056 rm -f core conftest.err conftest.$ac_objext \
12057       conftest$ac_exeext conftest.$ac_ext
12058 fi
12059 ac_res=`eval echo '${'$as_ac_var'}'`
12060                { echo "$as_me:$LINENO: result: $ac_res" >&5
12061 echo "${ECHO_T}$ac_res" >&6; }
12062 if test `eval echo '${'$as_ac_var'}'` = yes; then
12063   cat >>confdefs.h <<_ACEOF
12064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12065 _ACEOF
12066
12067 fi
12068 done
12069
12070
12071
12072 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12073 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12074
12075 ICC=no
12076 IXX=no
12077 case $CC in
12078   icc*|icpc*)
12079     ICC=yes
12080     IXX=yes
12081     ;;
12082    *)
12083     ;;
12084 esac
12085
12086 if test "$GCC" != "yes" && test "$ICC" != "yes"
12087 then
12088   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12089 echo "$as_me: error: gcc|icc required but not found" >&2;}
12090    { (exit 1); exit 1; }; }
12091 fi
12092
12093 if test "$GXX" != "yes" && test "$IXX" != "yes"
12094 then
12095   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12096 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12097    { (exit 1); exit 1; }; }
12098 fi
12099
12100 if test "$GCC" = "yes"
12101 then
12102   cat >conftest.$ac_ext <<_ACEOF
12103 #if !defined(__GNUC__) || __GNUC__ < 3
12104 #error Unsupported GCC version
12105 #endif
12106
12107 _ACEOF
12108 rm -f conftest.$ac_objext
12109 if { (ac_try="$ac_compile"
12110 case "(($ac_try" in
12111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112   *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115   (eval "$ac_compile") 2>conftest.er1
12116   ac_status=$?
12117   grep -v '^ *+' conftest.er1 >conftest.err
12118   rm -f conftest.er1
12119   cat conftest.err >&5
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); } &&
12122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123   { (case "(($ac_try" in
12124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125   *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128   (eval "$ac_try") 2>&5
12129   ac_status=$?
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); }; } &&
12132          { ac_try='test -s conftest.$ac_objext'
12133   { (case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_try") 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; }; then
12142   :
12143 else
12144   echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12146
12147         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12148 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12149    { (exit 1); exit 1; }; }
12150 fi
12151
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 fi
12154
12155 if test -z "$llvm_cv_gnu_make_command"
12156 then
12157   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12158 echo "$as_me: error: GNU Make required but not found" >&2;}
12159    { (exit 1); exit 1; }; }
12160 fi
12161
12162 { echo "$as_me:$LINENO: result: ok" >&5
12163 echo "${ECHO_T}ok" >&6; }
12164
12165 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12166 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12167 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12168
12169 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12170
12171 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12172 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12173
12174
12175
12176 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12177 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12178 if test "${ac_cv_lib_m_sin+set}" = set; then
12179   echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181   ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-lm  $LIBS"
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189
12190 /* Override any GCC internal prototype to avoid an error.
12191    Use char because int might match the return type of a GCC
12192    builtin and then its argument prototype would still apply.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char sin ();
12197 int
12198 main ()
12199 {
12200 return sin ();
12201   ;
12202   return 0;
12203 }
12204 _ACEOF
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (ac_try="$ac_link"
12207 case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_link") 2>conftest.er1
12213   ac_status=$?
12214   grep -v '^ *+' conftest.er1 >conftest.err
12215   rm -f conftest.er1
12216   cat conftest.err >&5
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } &&
12219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12220   { (case "(($ac_try" in
12221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222   *) ac_try_echo=$ac_try;;
12223 esac
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225   (eval "$ac_try") 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; } &&
12229          { ac_try='test -s conftest$ac_exeext'
12230   { (case "(($ac_try" in
12231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232   *) ac_try_echo=$ac_try;;
12233 esac
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235   (eval "$ac_try") 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; }; then
12239   ac_cv_lib_m_sin=yes
12240 else
12241   echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244         ac_cv_lib_m_sin=no
12245 fi
12246
12247 rm -f core conftest.err conftest.$ac_objext \
12248       conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12250 fi
12251 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12252 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12253 if test $ac_cv_lib_m_sin = yes; then
12254   cat >>confdefs.h <<_ACEOF
12255 #define HAVE_LIBM 1
12256 _ACEOF
12257
12258   LIBS="-lm $LIBS"
12259
12260 fi
12261
12262 if test "$llvm_cv_os_type" = "MingW" ; then
12263
12264 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12265 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12266 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12267   echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269   ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-limagehlp  $LIBS"
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h.  */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h.  */
12277
12278
12279 int
12280 main ()
12281 {
12282 return main ();
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (ac_try="$ac_link"
12289 case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_link") 2>conftest.er1
12295   ac_status=$?
12296   grep -v '^ *+' conftest.er1 >conftest.err
12297   rm -f conftest.er1
12298   cat conftest.err >&5
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } &&
12301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12302   { (case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307   (eval "$ac_try") 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; } &&
12311          { ac_try='test -s conftest$ac_exeext'
12312   { (case "(($ac_try" in
12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314   *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317   (eval "$ac_try") 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }; }; then
12321   ac_cv_lib_imagehlp_main=yes
12322 else
12323   echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12325
12326         ac_cv_lib_imagehlp_main=no
12327 fi
12328
12329 rm -f core conftest.err conftest.$ac_objext \
12330       conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12332 fi
12333 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12334 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12335 if test $ac_cv_lib_imagehlp_main = yes; then
12336   cat >>confdefs.h <<_ACEOF
12337 #define HAVE_LIBIMAGEHLP 1
12338 _ACEOF
12339
12340   LIBS="-limagehlp $LIBS"
12341
12342 fi
12343
12344
12345 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12346 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12347 if test "${ac_cv_lib_psapi_main+set}" = set; then
12348   echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350   ac_check_lib_save_LIBS=$LIBS
12351 LIBS="-lpsapi  $LIBS"
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h.  */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h.  */
12358
12359
12360 int
12361 main ()
12362 {
12363 return main ();
12364   ;
12365   return 0;
12366 }
12367 _ACEOF
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (ac_try="$ac_link"
12370 case "(($ac_try" in
12371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372   *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375   (eval "$ac_link") 2>conftest.er1
12376   ac_status=$?
12377   grep -v '^ *+' conftest.er1 >conftest.err
12378   rm -f conftest.er1
12379   cat conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); } &&
12382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383   { (case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_try") 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; } &&
12392          { ac_try='test -s conftest$ac_exeext'
12393   { (case "(($ac_try" in
12394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395   *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398   (eval "$ac_try") 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; }; then
12402   ac_cv_lib_psapi_main=yes
12403 else
12404   echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407         ac_cv_lib_psapi_main=no
12408 fi
12409
12410 rm -f core conftest.err conftest.$ac_objext \
12411       conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_lib_save_LIBS
12413 fi
12414 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12415 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12416 if test $ac_cv_lib_psapi_main = yes; then
12417   cat >>confdefs.h <<_ACEOF
12418 #define HAVE_LIBPSAPI 1
12419 _ACEOF
12420
12421   LIBS="-lpsapi $LIBS"
12422
12423 fi
12424
12425 fi
12426
12427 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12428 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12429 if test "${ac_cv_search_dlopen+set}" = set; then
12430   echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432   ac_func_search_save_LIBS=$LIBS
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439
12440 /* Override any GCC internal prototype to avoid an error.
12441    Use char because int might match the return type of a GCC
12442    builtin and then its argument prototype would still apply.  */
12443 #ifdef __cplusplus
12444 extern "C"
12445 #endif
12446 char dlopen ();
12447 int
12448 main ()
12449 {
12450 return dlopen ();
12451   ;
12452   return 0;
12453 }
12454 _ACEOF
12455 for ac_lib in '' dl; do
12456   if test -z "$ac_lib"; then
12457     ac_res="none required"
12458   else
12459     ac_res=-l$ac_lib
12460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12461   fi
12462   rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (ac_try="$ac_link"
12464 case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469   (eval "$ac_link") 2>conftest.er1
12470   ac_status=$?
12471   grep -v '^ *+' conftest.er1 >conftest.err
12472   rm -f conftest.er1
12473   cat conftest.err >&5
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); } &&
12476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477   { (case "(($ac_try" in
12478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479   *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482   (eval "$ac_try") 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; } &&
12486          { ac_try='test -s conftest$ac_exeext'
12487   { (case "(($ac_try" in
12488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489   *) ac_try_echo=$ac_try;;
12490 esac
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492   (eval "$ac_try") 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; }; then
12496   ac_cv_search_dlopen=$ac_res
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501
12502 fi
12503
12504 rm -f core conftest.err conftest.$ac_objext \
12505       conftest$ac_exeext
12506   if test "${ac_cv_search_dlopen+set}" = set; then
12507   break
12508 fi
12509 done
12510 if test "${ac_cv_search_dlopen+set}" = set; then
12511   :
12512 else
12513   ac_cv_search_dlopen=no
12514 fi
12515 rm conftest.$ac_ext
12516 LIBS=$ac_func_search_save_LIBS
12517 fi
12518 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12519 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12520 ac_res=$ac_cv_search_dlopen
12521 if test "$ac_res" != no; then
12522   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12523
12524 cat >>confdefs.h <<\_ACEOF
12525 #define HAVE_DLOPEN 1
12526 _ACEOF
12527
12528 else
12529   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12530 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12531 fi
12532
12533
12534 if test "$llvm_cv_enable_libffi" = "yes" ; then
12535   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12536 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12537 if test "${ac_cv_search_ffi_call+set}" = set; then
12538   echo $ECHO_N "(cached) $ECHO_C" >&6
12539 else
12540   ac_func_search_save_LIBS=$LIBS
12541 cat >conftest.$ac_ext <<_ACEOF
12542 /* confdefs.h.  */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h.  */
12547
12548 /* Override any GCC internal prototype to avoid an error.
12549    Use char because int might match the return type of a GCC
12550    builtin and then its argument prototype would still apply.  */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char ffi_call ();
12555 int
12556 main ()
12557 {
12558 return ffi_call ();
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 for ac_lib in '' ffi; do
12564   if test -z "$ac_lib"; then
12565     ac_res="none required"
12566   else
12567     ac_res=-l$ac_lib
12568     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12569   fi
12570   rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574   *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577   (eval "$ac_link") 2>conftest.er1
12578   ac_status=$?
12579   grep -v '^ *+' conftest.er1 >conftest.err
12580   rm -f conftest.er1
12581   cat conftest.err >&5
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } &&
12584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12585   { (case "(($ac_try" in
12586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587   *) ac_try_echo=$ac_try;;
12588 esac
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590   (eval "$ac_try") 2>&5
12591   ac_status=$?
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); }; } &&
12594          { ac_try='test -s conftest$ac_exeext'
12595   { (case "(($ac_try" in
12596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597   *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600   (eval "$ac_try") 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; }; then
12604   ac_cv_search_ffi_call=$ac_res
12605 else
12606   echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12608
12609
12610 fi
12611
12612 rm -f core conftest.err conftest.$ac_objext \
12613       conftest$ac_exeext
12614   if test "${ac_cv_search_ffi_call+set}" = set; then
12615   break
12616 fi
12617 done
12618 if test "${ac_cv_search_ffi_call+set}" = set; then
12619   :
12620 else
12621   ac_cv_search_ffi_call=no
12622 fi
12623 rm conftest.$ac_ext
12624 LIBS=$ac_func_search_save_LIBS
12625 fi
12626 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12627 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12628 ac_res=$ac_cv_search_ffi_call
12629 if test "$ac_res" != no; then
12630   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12631
12632 cat >>confdefs.h <<\_ACEOF
12633 #define HAVE_FFI_CALL 1
12634 _ACEOF
12635
12636 else
12637   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12638 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12639    { (exit 1); exit 1; }; }
12640 fi
12641
12642 fi
12643
12644 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12645 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12646 if test "${ac_cv_search_mallinfo+set}" = set; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649   ac_func_search_save_LIBS=$LIBS
12650 cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h.  */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h.  */
12656
12657 /* Override any GCC internal prototype to avoid an error.
12658    Use char because int might match the return type of a GCC
12659    builtin and then its argument prototype would still apply.  */
12660 #ifdef __cplusplus
12661 extern "C"
12662 #endif
12663 char mallinfo ();
12664 int
12665 main ()
12666 {
12667 return mallinfo ();
12668   ;
12669   return 0;
12670 }
12671 _ACEOF
12672 for ac_lib in '' malloc; do
12673   if test -z "$ac_lib"; then
12674     ac_res="none required"
12675   else
12676     ac_res=-l$ac_lib
12677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12678   fi
12679   rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (ac_try="$ac_link"
12681 case "(($ac_try" in
12682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683   *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686   (eval "$ac_link") 2>conftest.er1
12687   ac_status=$?
12688   grep -v '^ *+' conftest.er1 >conftest.err
12689   rm -f conftest.er1
12690   cat conftest.err >&5
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); } &&
12693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12694   { (case "(($ac_try" in
12695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696   *) ac_try_echo=$ac_try;;
12697 esac
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699   (eval "$ac_try") 2>&5
12700   ac_status=$?
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); }; } &&
12703          { ac_try='test -s conftest$ac_exeext'
12704   { (case "(($ac_try" in
12705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706   *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709   (eval "$ac_try") 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ac_cv_search_mallinfo=$ac_res
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718
12719 fi
12720
12721 rm -f core conftest.err conftest.$ac_objext \
12722       conftest$ac_exeext
12723   if test "${ac_cv_search_mallinfo+set}" = set; then
12724   break
12725 fi
12726 done
12727 if test "${ac_cv_search_mallinfo+set}" = set; then
12728   :
12729 else
12730   ac_cv_search_mallinfo=no
12731 fi
12732 rm conftest.$ac_ext
12733 LIBS=$ac_func_search_save_LIBS
12734 fi
12735 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12736 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12737 ac_res=$ac_cv_search_mallinfo
12738 if test "$ac_res" != no; then
12739   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12740
12741 cat >>confdefs.h <<\_ACEOF
12742 #define HAVE_MALLINFO 1
12743 _ACEOF
12744
12745 fi
12746
12747
12748 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12749
12750 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12751 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12752 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12753   echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755   ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lpthread  $LIBS"
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763
12764 /* Override any GCC internal prototype to avoid an error.
12765    Use char because int might match the return type of a GCC
12766    builtin and then its argument prototype would still apply.  */
12767 #ifdef __cplusplus
12768 extern "C"
12769 #endif
12770 char pthread_mutex_init ();
12771 int
12772 main ()
12773 {
12774 return pthread_mutex_init ();
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783   *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786   (eval "$ac_link") 2>conftest.er1
12787   ac_status=$?
12788   grep -v '^ *+' conftest.er1 >conftest.err
12789   rm -f conftest.er1
12790   cat conftest.err >&5
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } &&
12793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12794   { (case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799   (eval "$ac_try") 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); }; } &&
12803          { ac_try='test -s conftest$ac_exeext'
12804   { (case "(($ac_try" in
12805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806   *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809   (eval "$ac_try") 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; }; then
12813   ac_cv_lib_pthread_pthread_mutex_init=yes
12814 else
12815   echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818         ac_cv_lib_pthread_pthread_mutex_init=no
12819 fi
12820
12821 rm -f core conftest.err conftest.$ac_objext \
12822       conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12824 fi
12825 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12826 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12827 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12828   cat >>confdefs.h <<_ACEOF
12829 #define HAVE_LIBPTHREAD 1
12830 _ACEOF
12831
12832   LIBS="-lpthread $LIBS"
12833
12834 fi
12835
12836   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12837 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12838 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12839   echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841   ac_func_search_save_LIBS=$LIBS
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h.  */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h.  */
12848
12849 /* Override any GCC internal prototype to avoid an error.
12850    Use char because int might match the return type of a GCC
12851    builtin and then its argument prototype would still apply.  */
12852 #ifdef __cplusplus
12853 extern "C"
12854 #endif
12855 char pthread_mutex_lock ();
12856 int
12857 main ()
12858 {
12859 return pthread_mutex_lock ();
12860   ;
12861   return 0;
12862 }
12863 _ACEOF
12864 for ac_lib in '' pthread; do
12865   if test -z "$ac_lib"; then
12866     ac_res="none required"
12867   else
12868     ac_res=-l$ac_lib
12869     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12870   fi
12871   rm -f conftest.$ac_objext conftest$ac_exeext
12872 if { (ac_try="$ac_link"
12873 case "(($ac_try" in
12874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875   *) ac_try_echo=$ac_try;;
12876 esac
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878   (eval "$ac_link") 2>conftest.er1
12879   ac_status=$?
12880   grep -v '^ *+' conftest.er1 >conftest.err
12881   rm -f conftest.er1
12882   cat conftest.err >&5
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } &&
12885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886   { (case "(($ac_try" in
12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888   *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891   (eval "$ac_try") 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; } &&
12895          { ac_try='test -s conftest$ac_exeext'
12896   { (case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_try") 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; }; then
12905   ac_cv_search_pthread_mutex_lock=$ac_res
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910
12911 fi
12912
12913 rm -f core conftest.err conftest.$ac_objext \
12914       conftest$ac_exeext
12915   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12916   break
12917 fi
12918 done
12919 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12920   :
12921 else
12922   ac_cv_search_pthread_mutex_lock=no
12923 fi
12924 rm conftest.$ac_ext
12925 LIBS=$ac_func_search_save_LIBS
12926 fi
12927 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12928 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12929 ac_res=$ac_cv_search_pthread_mutex_lock
12930 if test "$ac_res" != no; then
12931   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12932
12933 cat >>confdefs.h <<\_ACEOF
12934 #define HAVE_PTHREAD_MUTEX_LOCK 1
12935 _ACEOF
12936
12937 fi
12938
12939   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12940 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12941 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12942   echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944   ac_func_search_save_LIBS=$LIBS
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951
12952 /* Override any GCC internal prototype to avoid an error.
12953    Use char because int might match the return type of a GCC
12954    builtin and then its argument prototype would still apply.  */
12955 #ifdef __cplusplus
12956 extern "C"
12957 #endif
12958 char pthread_rwlock_init ();
12959 int
12960 main ()
12961 {
12962 return pthread_rwlock_init ();
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 for ac_lib in '' pthread; do
12968   if test -z "$ac_lib"; then
12969     ac_res="none required"
12970   else
12971     ac_res=-l$ac_lib
12972     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12973   fi
12974   rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (ac_try="$ac_link"
12976 case "(($ac_try" in
12977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978   *) ac_try_echo=$ac_try;;
12979 esac
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981   (eval "$ac_link") 2>conftest.er1
12982   ac_status=$?
12983   grep -v '^ *+' conftest.er1 >conftest.err
12984   rm -f conftest.er1
12985   cat conftest.err >&5
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); } &&
12988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12989   { (case "(($ac_try" in
12990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991   *) ac_try_echo=$ac_try;;
12992 esac
12993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994   (eval "$ac_try") 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); }; } &&
12998          { ac_try='test -s conftest$ac_exeext'
12999   { (case "(($ac_try" in
13000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001   *) ac_try_echo=$ac_try;;
13002 esac
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004   (eval "$ac_try") 2>&5
13005   ac_status=$?
13006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); }; }; then
13008   ac_cv_search_pthread_rwlock_init=$ac_res
13009 else
13010   echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13012
13013
13014 fi
13015
13016 rm -f core conftest.err conftest.$ac_objext \
13017       conftest$ac_exeext
13018   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13019   break
13020 fi
13021 done
13022 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13023   :
13024 else
13025   ac_cv_search_pthread_rwlock_init=no
13026 fi
13027 rm conftest.$ac_ext
13028 LIBS=$ac_func_search_save_LIBS
13029 fi
13030 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13031 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13032 ac_res=$ac_cv_search_pthread_rwlock_init
13033 if test "$ac_res" != no; then
13034   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13035
13036 cat >>confdefs.h <<\_ACEOF
13037 #define HAVE_PTHREAD_RWLOCK_INIT 1
13038 _ACEOF
13039
13040 fi
13041
13042   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13043 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13044 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13045   echo $ECHO_N "(cached) $ECHO_C" >&6
13046 else
13047   ac_func_search_save_LIBS=$LIBS
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h.  */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h.  */
13054
13055 /* Override any GCC internal prototype to avoid an error.
13056    Use char because int might match the return type of a GCC
13057    builtin and then its argument prototype would still apply.  */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char pthread_getspecific ();
13062 int
13063 main ()
13064 {
13065 return pthread_getspecific ();
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 for ac_lib in '' pthread; do
13071   if test -z "$ac_lib"; then
13072     ac_res="none required"
13073   else
13074     ac_res=-l$ac_lib
13075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13076   fi
13077   rm -f conftest.$ac_objext conftest$ac_exeext
13078 if { (ac_try="$ac_link"
13079 case "(($ac_try" in
13080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081   *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084   (eval "$ac_link") 2>conftest.er1
13085   ac_status=$?
13086   grep -v '^ *+' conftest.er1 >conftest.err
13087   rm -f conftest.er1
13088   cat conftest.err >&5
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); } &&
13091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092   { (case "(($ac_try" in
13093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094   *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097   (eval "$ac_try") 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; } &&
13101          { ac_try='test -s conftest$ac_exeext'
13102   { (case "(($ac_try" in
13103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104   *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107   (eval "$ac_try") 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; }; then
13111   ac_cv_search_pthread_getspecific=$ac_res
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116
13117 fi
13118
13119 rm -f core conftest.err conftest.$ac_objext \
13120       conftest$ac_exeext
13121   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13122   break
13123 fi
13124 done
13125 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13126   :
13127 else
13128   ac_cv_search_pthread_getspecific=no
13129 fi
13130 rm conftest.$ac_ext
13131 LIBS=$ac_func_search_save_LIBS
13132 fi
13133 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13134 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13135 ac_res=$ac_cv_search_pthread_getspecific
13136 if test "$ac_res" != no; then
13137   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13138
13139 cat >>confdefs.h <<\_ACEOF
13140 #define HAVE_PTHREAD_GETSPECIFIC 1
13141 _ACEOF
13142
13143 fi
13144
13145 fi
13146
13147
13148 # Check whether --with-udis86 was given.
13149 if test "${with_udis86+set}" = set; then
13150   withval=$with_udis86;
13151       USE_UDIS86=1
13152
13153       case "$withval" in
13154         /usr/lib|yes) ;;
13155         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13156       esac
13157
13158 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13159 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13160 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13161   echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163   ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-ludis86  $LIBS"
13165 cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h.  */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h.  */
13171
13172 /* Override any GCC internal prototype to avoid an error.
13173    Use char because int might match the return type of a GCC
13174    builtin and then its argument prototype would still apply.  */
13175 #ifdef __cplusplus
13176 extern "C"
13177 #endif
13178 char ud_init ();
13179 int
13180 main ()
13181 {
13182 return ud_init ();
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 rm -f conftest.$ac_objext conftest$ac_exeext
13188 if { (ac_try="$ac_link"
13189 case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194   (eval "$ac_link") 2>conftest.er1
13195   ac_status=$?
13196   grep -v '^ *+' conftest.er1 >conftest.err
13197   rm -f conftest.er1
13198   cat conftest.err >&5
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); } &&
13201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13202   { (case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207   (eval "$ac_try") 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; } &&
13211          { ac_try='test -s conftest$ac_exeext'
13212   { (case "(($ac_try" in
13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214   *) ac_try_echo=$ac_try;;
13215 esac
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217   (eval "$ac_try") 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   ac_cv_lib_udis86_ud_init=yes
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226         ac_cv_lib_udis86_ud_init=no
13227 fi
13228
13229 rm -f core conftest.err conftest.$ac_objext \
13230       conftest$ac_exeext conftest.$ac_ext
13231 LIBS=$ac_check_lib_save_LIBS
13232 fi
13233 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13234 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13235 if test $ac_cv_lib_udis86_ud_init = yes; then
13236   cat >>confdefs.h <<_ACEOF
13237 #define HAVE_LIBUDIS86 1
13238 _ACEOF
13239
13240   LIBS="-ludis86 $LIBS"
13241
13242 else
13243
13244         echo "Error! You need to have libudis86 around."
13245         exit -1
13246
13247 fi
13248
13249
13250 else
13251   USE_UDIS86=0
13252
13253 fi
13254
13255
13256 cat >>confdefs.h <<_ACEOF
13257 #define USE_UDIS86 $USE_UDIS86
13258 _ACEOF
13259
13260
13261
13262 # Check whether --with-oprofile was given.
13263 if test "${with_oprofile+set}" = set; then
13264   withval=$with_oprofile;
13265       USE_OPROFILE=1
13266
13267       case "$withval" in
13268         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13269         no) llvm_cv_oppath=
13270             USE_OPROFILE=0
13271  ;;
13272         *) llvm_cv_oppath="${withval}/lib/oprofile"
13273            CPPFLAGS="-I${withval}/include";;
13274       esac
13275       if test -n "$llvm_cv_oppath" ; then
13276         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13277                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13278 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13279 if test "${ac_cv_search_bfd_init+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   ac_func_search_save_LIBS=$LIBS
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h.  */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h.  */
13289
13290 /* Override any GCC internal prototype to avoid an error.
13291    Use char because int might match the return type of a GCC
13292    builtin and then its argument prototype would still apply.  */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char bfd_init ();
13297 int
13298 main ()
13299 {
13300 return bfd_init ();
13301   ;
13302   return 0;
13303 }
13304 _ACEOF
13305 for ac_lib in '' bfd; do
13306   if test -z "$ac_lib"; then
13307     ac_res="none required"
13308   else
13309     ac_res=-l$ac_lib
13310     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13311   fi
13312   rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_link") 2>conftest.er1
13320   ac_status=$?
13321   grep -v '^ *+' conftest.er1 >conftest.err
13322   rm -f conftest.er1
13323   cat conftest.err >&5
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); } &&
13326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327   { (case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_try") 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; } &&
13336          { ac_try='test -s conftest$ac_exeext'
13337   { (case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_try") 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; }; then
13346   ac_cv_search_bfd_init=$ac_res
13347 else
13348   echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350
13351
13352 fi
13353
13354 rm -f core conftest.err conftest.$ac_objext \
13355       conftest$ac_exeext
13356   if test "${ac_cv_search_bfd_init+set}" = set; then
13357   break
13358 fi
13359 done
13360 if test "${ac_cv_search_bfd_init+set}" = set; then
13361   :
13362 else
13363   ac_cv_search_bfd_init=no
13364 fi
13365 rm conftest.$ac_ext
13366 LIBS=$ac_func_search_save_LIBS
13367 fi
13368 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13369 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13370 ac_res=$ac_cv_search_bfd_init
13371 if test "$ac_res" != no; then
13372   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13373
13374 fi
13375
13376         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13377 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13378 if test "${ac_cv_search_op_open_agent+set}" = set; then
13379   echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381   ac_func_search_save_LIBS=$LIBS
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388
13389 /* Override any GCC internal prototype to avoid an error.
13390    Use char because int might match the return type of a GCC
13391    builtin and then its argument prototype would still apply.  */
13392 #ifdef __cplusplus
13393 extern "C"
13394 #endif
13395 char op_open_agent ();
13396 int
13397 main ()
13398 {
13399 return op_open_agent ();
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 for ac_lib in '' opagent; do
13405   if test -z "$ac_lib"; then
13406     ac_res="none required"
13407   else
13408     ac_res=-l$ac_lib
13409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13410   fi
13411   rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (ac_try="$ac_link"
13413 case "(($ac_try" in
13414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415   *) ac_try_echo=$ac_try;;
13416 esac
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418   (eval "$ac_link") 2>conftest.er1
13419   ac_status=$?
13420   grep -v '^ *+' conftest.er1 >conftest.err
13421   rm -f conftest.er1
13422   cat conftest.err >&5
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); } &&
13425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426   { (case "(($ac_try" in
13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428   *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431   (eval "$ac_try") 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; } &&
13435          { ac_try='test -s conftest$ac_exeext'
13436   { (case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_try") 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_cv_search_op_open_agent=$ac_res
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450
13451 fi
13452
13453 rm -f core conftest.err conftest.$ac_objext \
13454       conftest$ac_exeext
13455   if test "${ac_cv_search_op_open_agent+set}" = set; then
13456   break
13457 fi
13458 done
13459 if test "${ac_cv_search_op_open_agent+set}" = set; then
13460   :
13461 else
13462   ac_cv_search_op_open_agent=no
13463 fi
13464 rm conftest.$ac_ext
13465 LIBS=$ac_func_search_save_LIBS
13466 fi
13467 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13468 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13469 ac_res=$ac_cv_search_op_open_agent
13470 if test "$ac_res" != no; then
13471   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13472
13473 else
13474
13475           echo "Error! You need to have libopagent around."
13476           exit -1
13477
13478 fi
13479
13480         if test "${ac_cv_header_opagent_h+set}" = set; then
13481   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13482 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13483 if test "${ac_cv_header_opagent_h+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 fi
13486 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13487 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13488 else
13489   # Is the header compilable?
13490 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13491 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498 $ac_includes_default
13499 #include <opagent.h>
13500 _ACEOF
13501 rm -f conftest.$ac_objext
13502 if { (ac_try="$ac_compile"
13503 case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_compile") 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516   { (case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_try") 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest.$ac_objext'
13526   { (case "(($ac_try" in
13527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528   *) ac_try_echo=$ac_try;;
13529 esac
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531   (eval "$ac_try") 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   ac_header_compiler=yes
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540         ac_header_compiler=no
13541 fi
13542
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13545 echo "${ECHO_T}$ac_header_compiler" >&6; }
13546
13547 # Is the header present?
13548 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13549 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13550 cat >conftest.$ac_ext <<_ACEOF
13551 /* confdefs.h.  */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h.  */
13556 #include <opagent.h>
13557 _ACEOF
13558 if { (ac_try="$ac_cpp conftest.$ac_ext"
13559 case "(($ac_try" in
13560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561   *) ac_try_echo=$ac_try;;
13562 esac
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } >/dev/null; then
13571   if test -s conftest.err; then
13572     ac_cpp_err=$ac_c_preproc_warn_flag
13573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13574   else
13575     ac_cpp_err=
13576   fi
13577 else
13578   ac_cpp_err=yes
13579 fi
13580 if test -z "$ac_cpp_err"; then
13581   ac_header_preproc=yes
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586   ac_header_preproc=no
13587 fi
13588
13589 rm -f conftest.err conftest.$ac_ext
13590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13591 echo "${ECHO_T}$ac_header_preproc" >&6; }
13592
13593 # So?  What about this header?
13594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13595   yes:no: )
13596     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13597 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13598     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13599 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13600     ac_header_preproc=yes
13601     ;;
13602   no:yes:* )
13603     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13604 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13605     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13606 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13607     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13608 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13610 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13611     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13612 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13613     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13614 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13615     ( cat <<\_ASBOX
13616 ## ------------------------------ ##
13617 ## Report this to bugs@yourdomain ##
13618 ## ------------------------------ ##
13619 _ASBOX
13620      ) | sed "s/^/$as_me: WARNING:     /" >&2
13621     ;;
13622 esac
13623 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13624 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13625 if test "${ac_cv_header_opagent_h+set}" = set; then
13626   echo $ECHO_N "(cached) $ECHO_C" >&6
13627 else
13628   ac_cv_header_opagent_h=$ac_header_preproc
13629 fi
13630 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13631 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13632
13633 fi
13634 if test $ac_cv_header_opagent_h = yes; then
13635   :
13636 else
13637
13638           echo "Error! You need to have opagent.h around."
13639           exit -1
13640
13641 fi
13642
13643
13644       fi
13645
13646 else
13647
13648       USE_OPROFILE=0
13649
13650
13651 fi
13652
13653
13654 cat >>confdefs.h <<_ACEOF
13655 #define USE_OPROFILE $USE_OPROFILE
13656 _ACEOF
13657
13658
13659
13660
13661
13662
13663
13664
13665 ac_header_dirent=no
13666 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13667   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13668 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13669 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673   cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679 #include <sys/types.h>
13680 #include <$ac_hdr>
13681
13682 int
13683 main ()
13684 {
13685 if ((DIR *) 0)
13686 return 0;
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext
13692 if { (ac_try="$ac_compile"
13693 case "(($ac_try" in
13694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695   *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698   (eval "$ac_compile") 2>conftest.er1
13699   ac_status=$?
13700   grep -v '^ *+' conftest.er1 >conftest.err
13701   rm -f conftest.er1
13702   cat conftest.err >&5
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } &&
13705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706   { (case "(($ac_try" in
13707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708   *) ac_try_echo=$ac_try;;
13709 esac
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711   (eval "$ac_try") 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); }; } &&
13715          { ac_try='test -s conftest.$ac_objext'
13716   { (case "(($ac_try" in
13717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718   *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721   (eval "$ac_try") 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; }; then
13725   eval "$as_ac_Header=yes"
13726 else
13727   echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13729
13730         eval "$as_ac_Header=no"
13731 fi
13732
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 fi
13735 ac_res=`eval echo '${'$as_ac_Header'}'`
13736                { echo "$as_me:$LINENO: result: $ac_res" >&5
13737 echo "${ECHO_T}$ac_res" >&6; }
13738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13739   cat >>confdefs.h <<_ACEOF
13740 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13741 _ACEOF
13742
13743 ac_header_dirent=$ac_hdr; break
13744 fi
13745
13746 done
13747 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13748 if test $ac_header_dirent = dirent.h; then
13749   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13751 if test "${ac_cv_search_opendir+set}" = set; then
13752   echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754   ac_func_search_save_LIBS=$LIBS
13755 cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h.  */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h.  */
13761
13762 /* Override any GCC internal prototype to avoid an error.
13763    Use char because int might match the return type of a GCC
13764    builtin and then its argument prototype would still apply.  */
13765 #ifdef __cplusplus
13766 extern "C"
13767 #endif
13768 char opendir ();
13769 int
13770 main ()
13771 {
13772 return opendir ();
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 for ac_lib in '' dir; do
13778   if test -z "$ac_lib"; then
13779     ac_res="none required"
13780   else
13781     ac_res=-l$ac_lib
13782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13783   fi
13784   rm -f conftest.$ac_objext conftest$ac_exeext
13785 if { (ac_try="$ac_link"
13786 case "(($ac_try" in
13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788   *) ac_try_echo=$ac_try;;
13789 esac
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791   (eval "$ac_link") 2>conftest.er1
13792   ac_status=$?
13793   grep -v '^ *+' conftest.er1 >conftest.err
13794   rm -f conftest.er1
13795   cat conftest.err >&5
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } &&
13798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799   { (case "(($ac_try" in
13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801   *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804   (eval "$ac_try") 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; } &&
13808          { ac_try='test -s conftest$ac_exeext'
13809   { (case "(($ac_try" in
13810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811   *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814   (eval "$ac_try") 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; }; then
13818   ac_cv_search_opendir=$ac_res
13819 else
13820   echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823
13824 fi
13825
13826 rm -f core conftest.err conftest.$ac_objext \
13827       conftest$ac_exeext
13828   if test "${ac_cv_search_opendir+set}" = set; then
13829   break
13830 fi
13831 done
13832 if test "${ac_cv_search_opendir+set}" = set; then
13833   :
13834 else
13835   ac_cv_search_opendir=no
13836 fi
13837 rm conftest.$ac_ext
13838 LIBS=$ac_func_search_save_LIBS
13839 fi
13840 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13841 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13842 ac_res=$ac_cv_search_opendir
13843 if test "$ac_res" != no; then
13844   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13845
13846 fi
13847
13848 else
13849   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13850 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13851 if test "${ac_cv_search_opendir+set}" = set; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   ac_func_search_save_LIBS=$LIBS
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861
13862 /* Override any GCC internal prototype to avoid an error.
13863    Use char because int might match the return type of a GCC
13864    builtin and then its argument prototype would still apply.  */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 char opendir ();
13869 int
13870 main ()
13871 {
13872 return opendir ();
13873   ;
13874   return 0;
13875 }
13876 _ACEOF
13877 for ac_lib in '' x; do
13878   if test -z "$ac_lib"; then
13879     ac_res="none required"
13880   else
13881     ac_res=-l$ac_lib
13882     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13883   fi
13884   rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_link") 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } &&
13898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899   { (case "(($ac_try" in
13900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901   *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904   (eval "$ac_try") 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; } &&
13908          { ac_try='test -s conftest$ac_exeext'
13909   { (case "(($ac_try" in
13910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911   *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914   (eval "$ac_try") 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; }; then
13918   ac_cv_search_opendir=$ac_res
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923
13924 fi
13925
13926 rm -f core conftest.err conftest.$ac_objext \
13927       conftest$ac_exeext
13928   if test "${ac_cv_search_opendir+set}" = set; then
13929   break
13930 fi
13931 done
13932 if test "${ac_cv_search_opendir+set}" = set; then
13933   :
13934 else
13935   ac_cv_search_opendir=no
13936 fi
13937 rm conftest.$ac_ext
13938 LIBS=$ac_func_search_save_LIBS
13939 fi
13940 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13941 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13942 ac_res=$ac_cv_search_opendir
13943 if test "$ac_res" != no; then
13944   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13945
13946 fi
13947
13948 fi
13949
13950 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13951 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13952 if test "${ac_cv_header_mmap_anon+set}" = set; then
13953   echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955    ac_ext=c
13956 ac_cpp='$CPP $CPPFLAGS'
13957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13960
13961   cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h.  */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h.  */
13967 #include <sys/mman.h>
13968 #include <unistd.h>
13969 #include <fcntl.h>
13970 int
13971 main ()
13972 {
13973 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13974   ;
13975   return 0;
13976 }
13977 _ACEOF
13978 rm -f conftest.$ac_objext
13979 if { (ac_try="$ac_compile"
13980 case "(($ac_try" in
13981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982   *) ac_try_echo=$ac_try;;
13983 esac
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985   (eval "$ac_compile") 2>conftest.er1
13986   ac_status=$?
13987   grep -v '^ *+' conftest.er1 >conftest.err
13988   rm -f conftest.er1
13989   cat conftest.err >&5
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } &&
13992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13993   { (case "(($ac_try" in
13994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995   *) ac_try_echo=$ac_try;;
13996 esac
13997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998   (eval "$ac_try") 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }; } &&
14002          { ac_try='test -s conftest.$ac_objext'
14003   { (case "(($ac_try" in
14004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005   *) ac_try_echo=$ac_try;;
14006 esac
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008   (eval "$ac_try") 2>&5
14009   ac_status=$?
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); }; }; then
14012   ac_cv_header_mmap_anon=yes
14013 else
14014   echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017         ac_cv_header_mmap_anon=no
14018 fi
14019
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021   ac_ext=c
14022 ac_cpp='$CPP $CPPFLAGS'
14023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14026
14027
14028 fi
14029 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14030 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14031 if test "$ac_cv_header_mmap_anon" = yes; then
14032
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_MMAP_ANONYMOUS 1
14035 _ACEOF
14036
14037 fi
14038
14039 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14040 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14041 if test "${ac_cv_header_stat_broken+set}" = set; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044   cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 #include <sys/types.h>
14051 #include <sys/stat.h>
14052
14053 #if defined S_ISBLK && defined S_IFDIR
14054 # if S_ISBLK (S_IFDIR)
14055 You lose.
14056 # endif
14057 #endif
14058
14059 #if defined S_ISBLK && defined S_IFCHR
14060 # if S_ISBLK (S_IFCHR)
14061 You lose.
14062 # endif
14063 #endif
14064
14065 #if defined S_ISLNK && defined S_IFREG
14066 # if S_ISLNK (S_IFREG)
14067 You lose.
14068 # endif
14069 #endif
14070
14071 #if defined S_ISSOCK && defined S_IFREG
14072 # if S_ISSOCK (S_IFREG)
14073 You lose.
14074 # endif
14075 #endif
14076
14077 _ACEOF
14078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14079   $EGREP "You lose" >/dev/null 2>&1; then
14080   ac_cv_header_stat_broken=yes
14081 else
14082   ac_cv_header_stat_broken=no
14083 fi
14084 rm -f conftest*
14085
14086 fi
14087 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14088 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14089 if test $ac_cv_header_stat_broken = yes; then
14090
14091 cat >>confdefs.h <<\_ACEOF
14092 #define STAT_MACROS_BROKEN 1
14093 _ACEOF
14094
14095 fi
14096
14097 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14098 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14099 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108 #include <sys/types.h>
14109 #include <sys/wait.h>
14110 #ifndef WEXITSTATUS
14111 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14112 #endif
14113 #ifndef WIFEXITED
14114 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14115 #endif
14116
14117 int
14118 main ()
14119 {
14120   int s;
14121   wait (&s);
14122   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134   (eval "$ac_compile") 2>conftest.er1
14135   ac_status=$?
14136   grep -v '^ *+' conftest.er1 >conftest.err
14137   rm -f conftest.er1
14138   cat conftest.err >&5
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } &&
14141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142   { (case "(($ac_try" in
14143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144   *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147   (eval "$ac_try") 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; } &&
14151          { ac_try='test -s conftest.$ac_objext'
14152   { (case "(($ac_try" in
14153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154   *) ac_try_echo=$ac_try;;
14155 esac
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157   (eval "$ac_try") 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; }; then
14161   ac_cv_header_sys_wait_h=yes
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166         ac_cv_header_sys_wait_h=no
14167 fi
14168
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 fi
14171 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14172 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14173 if test $ac_cv_header_sys_wait_h = yes; then
14174
14175 cat >>confdefs.h <<\_ACEOF
14176 #define HAVE_SYS_WAIT_H 1
14177 _ACEOF
14178
14179 fi
14180
14181 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14182 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14183 if test "${ac_cv_header_time+set}" = set; then
14184   echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186   cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h.  */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h.  */
14192 #include <sys/types.h>
14193 #include <sys/time.h>
14194 #include <time.h>
14195
14196 int
14197 main ()
14198 {
14199 if ((struct tm *) 0)
14200 return 0;
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (ac_try="$ac_compile"
14207 case "(($ac_try" in
14208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209   *) ac_try_echo=$ac_try;;
14210 esac
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212   (eval "$ac_compile") 2>conftest.er1
14213   ac_status=$?
14214   grep -v '^ *+' conftest.er1 >conftest.err
14215   rm -f conftest.er1
14216   cat conftest.err >&5
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); } &&
14219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14220   { (case "(($ac_try" in
14221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222   *) ac_try_echo=$ac_try;;
14223 esac
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225   (eval "$ac_try") 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; } &&
14229          { ac_try='test -s conftest.$ac_objext'
14230   { (case "(($ac_try" in
14231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232   *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235   (eval "$ac_try") 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; }; then
14239   ac_cv_header_time=yes
14240 else
14241   echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14243
14244         ac_cv_header_time=no
14245 fi
14246
14247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 fi
14249 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14250 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14251 if test $ac_cv_header_time = yes; then
14252
14253 cat >>confdefs.h <<\_ACEOF
14254 #define TIME_WITH_SYS_TIME 1
14255 _ACEOF
14256
14257 fi
14258
14259
14260
14261
14262
14263
14264
14265
14266 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14267 do
14268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14270   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14273   echo $ECHO_N "(cached) $ECHO_C" >&6
14274 fi
14275 ac_res=`eval echo '${'$as_ac_Header'}'`
14276                { echo "$as_me:$LINENO: result: $ac_res" >&5
14277 echo "${ECHO_T}$ac_res" >&6; }
14278 else
14279   # Is the header compilable?
14280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14282 cat >conftest.$ac_ext <<_ACEOF
14283 /* confdefs.h.  */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h.  */
14288 $ac_includes_default
14289 #include <$ac_header>
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (ac_try="$ac_compile"
14293 case "(($ac_try" in
14294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295   *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298   (eval "$ac_compile") 2>conftest.er1
14299   ac_status=$?
14300   grep -v '^ *+' conftest.er1 >conftest.err
14301   rm -f conftest.er1
14302   cat conftest.err >&5
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); } &&
14305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14306   { (case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311   (eval "$ac_try") 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; } &&
14315          { ac_try='test -s conftest.$ac_objext'
14316   { (case "(($ac_try" in
14317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318   *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321   (eval "$ac_try") 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }; then
14325   ac_header_compiler=yes
14326 else
14327   echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330         ac_header_compiler=no
14331 fi
14332
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14335 echo "${ECHO_T}$ac_header_compiler" >&6; }
14336
14337 # Is the header present?
14338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h.  */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h.  */
14346 #include <$ac_header>
14347 _ACEOF
14348 if { (ac_try="$ac_cpp conftest.$ac_ext"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } >/dev/null; then
14361   if test -s conftest.err; then
14362     ac_cpp_err=$ac_c_preproc_warn_flag
14363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14364   else
14365     ac_cpp_err=
14366   fi
14367 else
14368   ac_cpp_err=yes
14369 fi
14370 if test -z "$ac_cpp_err"; then
14371   ac_header_preproc=yes
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376   ac_header_preproc=no
14377 fi
14378
14379 rm -f conftest.err conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14381 echo "${ECHO_T}$ac_header_preproc" >&6; }
14382
14383 # So?  What about this header?
14384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14385   yes:no: )
14386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14390     ac_header_preproc=yes
14391     ;;
14392   no:yes:* )
14393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14405     ( cat <<\_ASBOX
14406 ## ------------------------------ ##
14407 ## Report this to bugs@yourdomain ##
14408 ## ------------------------------ ##
14409 _ASBOX
14410      ) | sed "s/^/$as_me: WARNING:     /" >&2
14411     ;;
14412 esac
14413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14416   echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418   eval "$as_ac_Header=\$ac_header_preproc"
14419 fi
14420 ac_res=`eval echo '${'$as_ac_Header'}'`
14421                { echo "$as_me:$LINENO: result: $ac_res" >&5
14422 echo "${ECHO_T}$ac_res" >&6; }
14423
14424 fi
14425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14426   cat >>confdefs.h <<_ACEOF
14427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428 _ACEOF
14429
14430 fi
14431
14432 done
14433
14434
14435
14436
14437
14438
14439
14440 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14441 do
14442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14444   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 fi
14449 ac_res=`eval echo '${'$as_ac_Header'}'`
14450                { echo "$as_me:$LINENO: result: $ac_res" >&5
14451 echo "${ECHO_T}$ac_res" >&6; }
14452 else
14453   # Is the header compilable?
14454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14456 cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h.  */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h.  */
14462 $ac_includes_default
14463 #include <$ac_header>
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_compile") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } &&
14479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; } &&
14489          { ac_try='test -s conftest.$ac_objext'
14490   { (case "(($ac_try" in
14491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492   *) ac_try_echo=$ac_try;;
14493 esac
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495   (eval "$ac_try") 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   ac_header_compiler=yes
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504         ac_header_compiler=no
14505 fi
14506
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509 echo "${ECHO_T}$ac_header_compiler" >&6; }
14510
14511 # Is the header present?
14512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520 #include <$ac_header>
14521 _ACEOF
14522 if { (ac_try="$ac_cpp conftest.$ac_ext"
14523 case "(($ac_try" in
14524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525   *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14529   ac_status=$?
14530   grep -v '^ *+' conftest.er1 >conftest.err
14531   rm -f conftest.er1
14532   cat conftest.err >&5
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); } >/dev/null; then
14535   if test -s conftest.err; then
14536     ac_cpp_err=$ac_c_preproc_warn_flag
14537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14538   else
14539     ac_cpp_err=
14540   fi
14541 else
14542   ac_cpp_err=yes
14543 fi
14544 if test -z "$ac_cpp_err"; then
14545   ac_header_preproc=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550   ac_header_preproc=no
14551 fi
14552
14553 rm -f conftest.err conftest.$ac_ext
14554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14555 echo "${ECHO_T}$ac_header_preproc" >&6; }
14556
14557 # So?  What about this header?
14558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14559   yes:no: )
14560     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14564     ac_header_preproc=yes
14565     ;;
14566   no:yes:* )
14567     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14569     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14570 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14571     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14573     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14574 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14577     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14579     ( cat <<\_ASBOX
14580 ## ------------------------------ ##
14581 ## Report this to bugs@yourdomain ##
14582 ## ------------------------------ ##
14583 _ASBOX
14584      ) | sed "s/^/$as_me: WARNING:     /" >&2
14585     ;;
14586 esac
14587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14590   echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592   eval "$as_ac_Header=\$ac_header_preproc"
14593 fi
14594 ac_res=`eval echo '${'$as_ac_Header'}'`
14595                { echo "$as_me:$LINENO: result: $ac_res" >&5
14596 echo "${ECHO_T}$ac_res" >&6; }
14597
14598 fi
14599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14600   cat >>confdefs.h <<_ACEOF
14601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14602 _ACEOF
14603
14604 fi
14605
14606 done
14607
14608
14609
14610 for ac_header in utime.h windows.h
14611 do
14612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14614   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 fi
14619 ac_res=`eval echo '${'$as_ac_Header'}'`
14620                { echo "$as_me:$LINENO: result: $ac_res" >&5
14621 echo "${ECHO_T}$ac_res" >&6; }
14622 else
14623   # Is the header compilable?
14624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14626 cat >conftest.$ac_ext <<_ACEOF
14627 /* confdefs.h.  */
14628 _ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h.  */
14632 $ac_includes_default
14633 #include <$ac_header>
14634 _ACEOF
14635 rm -f conftest.$ac_objext
14636 if { (ac_try="$ac_compile"
14637 case "(($ac_try" in
14638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639   *) ac_try_echo=$ac_try;;
14640 esac
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642   (eval "$ac_compile") 2>conftest.er1
14643   ac_status=$?
14644   grep -v '^ *+' conftest.er1 >conftest.err
14645   rm -f conftest.er1
14646   cat conftest.err >&5
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } &&
14649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14650   { (case "(($ac_try" in
14651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652   *) ac_try_echo=$ac_try;;
14653 esac
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655   (eval "$ac_try") 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; } &&
14659          { ac_try='test -s conftest.$ac_objext'
14660   { (case "(($ac_try" in
14661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662   *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665   (eval "$ac_try") 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }; }; then
14669   ac_header_compiler=yes
14670 else
14671   echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674         ac_header_compiler=no
14675 fi
14676
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14679 echo "${ECHO_T}$ac_header_compiler" >&6; }
14680
14681 # Is the header present?
14682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h.  */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h.  */
14690 #include <$ac_header>
14691 _ACEOF
14692 if { (ac_try="$ac_cpp conftest.$ac_ext"
14693 case "(($ac_try" in
14694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695   *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } >/dev/null; then
14705   if test -s conftest.err; then
14706     ac_cpp_err=$ac_c_preproc_warn_flag
14707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14708   else
14709     ac_cpp_err=
14710   fi
14711 else
14712   ac_cpp_err=yes
14713 fi
14714 if test -z "$ac_cpp_err"; then
14715   ac_header_preproc=yes
14716 else
14717   echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720   ac_header_preproc=no
14721 fi
14722
14723 rm -f conftest.err conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14725 echo "${ECHO_T}$ac_header_preproc" >&6; }
14726
14727 # So?  What about this header?
14728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14729   yes:no: )
14730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14734     ac_header_preproc=yes
14735     ;;
14736   no:yes:* )
14737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14749     ( cat <<\_ASBOX
14750 ## ------------------------------ ##
14751 ## Report this to bugs@yourdomain ##
14752 ## ------------------------------ ##
14753 _ASBOX
14754      ) | sed "s/^/$as_me: WARNING:     /" >&2
14755     ;;
14756 esac
14757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762   eval "$as_ac_Header=\$ac_header_preproc"
14763 fi
14764 ac_res=`eval echo '${'$as_ac_Header'}'`
14765                { echo "$as_me:$LINENO: result: $ac_res" >&5
14766 echo "${ECHO_T}$ac_res" >&6; }
14767
14768 fi
14769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14770   cat >>confdefs.h <<_ACEOF
14771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14772 _ACEOF
14773
14774 fi
14775
14776 done
14777
14778
14779
14780
14781
14782
14783 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14784 do
14785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 fi
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793                { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14795 else
14796   # Is the header compilable?
14797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805 $ac_includes_default
14806 #include <$ac_header>
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812   *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815   (eval "$ac_compile") 2>conftest.er1
14816   ac_status=$?
14817   grep -v '^ *+' conftest.er1 >conftest.err
14818   rm -f conftest.er1
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } &&
14822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14823   { (case "(($ac_try" in
14824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825   *) ac_try_echo=$ac_try;;
14826 esac
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828   (eval "$ac_try") 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; } &&
14832          { ac_try='test -s conftest.$ac_objext'
14833   { (case "(($ac_try" in
14834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835   *) ac_try_echo=$ac_try;;
14836 esac
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838   (eval "$ac_try") 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; }; then
14842   ac_header_compiler=yes
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847         ac_header_compiler=no
14848 fi
14849
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852 echo "${ECHO_T}$ac_header_compiler" >&6; }
14853
14854 # Is the header present?
14855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 #include <$ac_header>
14864 _ACEOF
14865 if { (ac_try="$ac_cpp conftest.$ac_ext"
14866 case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14872   ac_status=$?
14873   grep -v '^ *+' conftest.er1 >conftest.err
14874   rm -f conftest.er1
14875   cat conftest.err >&5
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); } >/dev/null; then
14878   if test -s conftest.err; then
14879     ac_cpp_err=$ac_c_preproc_warn_flag
14880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14881   else
14882     ac_cpp_err=
14883   fi
14884 else
14885   ac_cpp_err=yes
14886 fi
14887 if test -z "$ac_cpp_err"; then
14888   ac_header_preproc=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893   ac_header_preproc=no
14894 fi
14895
14896 rm -f conftest.err conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898 echo "${ECHO_T}$ac_header_preproc" >&6; }
14899
14900 # So?  What about this header?
14901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14902   yes:no: )
14903     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14907     ac_header_preproc=yes
14908     ;;
14909   no:yes:* )
14910     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14912     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14913 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14914     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14916     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14917 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14920     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14922     ( cat <<\_ASBOX
14923 ## ------------------------------ ##
14924 ## Report this to bugs@yourdomain ##
14925 ## ------------------------------ ##
14926 _ASBOX
14927      ) | sed "s/^/$as_me: WARNING:     /" >&2
14928     ;;
14929 esac
14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   eval "$as_ac_Header=\$ac_header_preproc"
14936 fi
14937 ac_res=`eval echo '${'$as_ac_Header'}'`
14938                { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14940
14941 fi
14942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14943   cat >>confdefs.h <<_ACEOF
14944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14945 _ACEOF
14946
14947 fi
14948
14949 done
14950
14951
14952
14953
14954
14955 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14956 do
14957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14959   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962   echo $ECHO_N "(cached) $ECHO_C" >&6
14963 fi
14964 ac_res=`eval echo '${'$as_ac_Header'}'`
14965                { echo "$as_me:$LINENO: result: $ac_res" >&5
14966 echo "${ECHO_T}$ac_res" >&6; }
14967 else
14968   # Is the header compilable?
14969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h.  */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h.  */
14977 $ac_includes_default
14978 #include <$ac_header>
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_compile") 2>conftest.er1
14988   ac_status=$?
14989   grep -v '^ *+' conftest.er1 >conftest.err
14990   rm -f conftest.er1
14991   cat conftest.err >&5
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } &&
14994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14995   { (case "(($ac_try" in
14996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997   *) ac_try_echo=$ac_try;;
14998 esac
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000   (eval "$ac_try") 2>&5
15001   ac_status=$?
15002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003   (exit $ac_status); }; } &&
15004          { ac_try='test -s conftest.$ac_objext'
15005   { (case "(($ac_try" in
15006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007   *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010   (eval "$ac_try") 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); }; }; then
15014   ac_header_compiler=yes
15015 else
15016   echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15018
15019         ac_header_compiler=no
15020 fi
15021
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15024 echo "${ECHO_T}$ac_header_compiler" >&6; }
15025
15026 # Is the header present?
15027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15029 cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035 #include <$ac_header>
15036 _ACEOF
15037 if { (ac_try="$ac_cpp conftest.$ac_ext"
15038 case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } >/dev/null; then
15050   if test -s conftest.err; then
15051     ac_cpp_err=$ac_c_preproc_warn_flag
15052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15053   else
15054     ac_cpp_err=
15055   fi
15056 else
15057   ac_cpp_err=yes
15058 fi
15059 if test -z "$ac_cpp_err"; then
15060   ac_header_preproc=yes
15061 else
15062   echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15064
15065   ac_header_preproc=no
15066 fi
15067
15068 rm -f conftest.err conftest.$ac_ext
15069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15070 echo "${ECHO_T}$ac_header_preproc" >&6; }
15071
15072 # So?  What about this header?
15073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15074   yes:no: )
15075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15079     ac_header_preproc=yes
15080     ;;
15081   no:yes:* )
15082     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15084     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15085 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15086     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15088     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15089 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15092     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15094     ( cat <<\_ASBOX
15095 ## ------------------------------ ##
15096 ## Report this to bugs@yourdomain ##
15097 ## ------------------------------ ##
15098 _ASBOX
15099      ) | sed "s/^/$as_me: WARNING:     /" >&2
15100     ;;
15101 esac
15102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15105   echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107   eval "$as_ac_Header=\$ac_header_preproc"
15108 fi
15109 ac_res=`eval echo '${'$as_ac_Header'}'`
15110                { echo "$as_me:$LINENO: result: $ac_res" >&5
15111 echo "${ECHO_T}$ac_res" >&6; }
15112
15113 fi
15114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15115   cat >>confdefs.h <<_ACEOF
15116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15117 _ACEOF
15118
15119 fi
15120
15121 done
15122
15123
15124 for ac_header in valgrind/valgrind.h
15125 do
15126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15131   echo $ECHO_N "(cached) $ECHO_C" >&6
15132 fi
15133 ac_res=`eval echo '${'$as_ac_Header'}'`
15134                { echo "$as_me:$LINENO: result: $ac_res" >&5
15135 echo "${ECHO_T}$ac_res" >&6; }
15136 else
15137   # Is the header compilable?
15138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h.  */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h.  */
15146 $ac_includes_default
15147 #include <$ac_header>
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (ac_try="$ac_compile"
15151 case "(($ac_try" in
15152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153   *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156   (eval "$ac_compile") 2>conftest.er1
15157   ac_status=$?
15158   grep -v '^ *+' conftest.er1 >conftest.err
15159   rm -f conftest.er1
15160   cat conftest.err >&5
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } &&
15163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15164   { (case "(($ac_try" in
15165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166   *) ac_try_echo=$ac_try;;
15167 esac
15168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169   (eval "$ac_try") 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); }; } &&
15173          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15183   ac_header_compiler=yes
15184 else
15185   echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15187
15188         ac_header_compiler=no
15189 fi
15190
15191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15193 echo "${ECHO_T}$ac_header_compiler" >&6; }
15194
15195 # Is the header present?
15196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h.  */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h.  */
15204 #include <$ac_header>
15205 _ACEOF
15206 if { (ac_try="$ac_cpp conftest.$ac_ext"
15207 case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15213   ac_status=$?
15214   grep -v '^ *+' conftest.er1 >conftest.err
15215   rm -f conftest.er1
15216   cat conftest.err >&5
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); } >/dev/null; then
15219   if test -s conftest.err; then
15220     ac_cpp_err=$ac_c_preproc_warn_flag
15221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15222   else
15223     ac_cpp_err=
15224   fi
15225 else
15226   ac_cpp_err=yes
15227 fi
15228 if test -z "$ac_cpp_err"; then
15229   ac_header_preproc=yes
15230 else
15231   echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15233
15234   ac_header_preproc=no
15235 fi
15236
15237 rm -f conftest.err conftest.$ac_ext
15238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15239 echo "${ECHO_T}$ac_header_preproc" >&6; }
15240
15241 # So?  What about this header?
15242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15243   yes:no: )
15244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15248     ac_header_preproc=yes
15249     ;;
15250   no:yes:* )
15251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15263     ( cat <<\_ASBOX
15264 ## ------------------------------ ##
15265 ## Report this to bugs@yourdomain ##
15266 ## ------------------------------ ##
15267 _ASBOX
15268      ) | sed "s/^/$as_me: WARNING:     /" >&2
15269     ;;
15270 esac
15271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   eval "$as_ac_Header=\$ac_header_preproc"
15277 fi
15278 ac_res=`eval echo '${'$as_ac_Header'}'`
15279                { echo "$as_me:$LINENO: result: $ac_res" >&5
15280 echo "${ECHO_T}$ac_res" >&6; }
15281
15282 fi
15283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15284   cat >>confdefs.h <<_ACEOF
15285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15286 _ACEOF
15287
15288 fi
15289
15290 done
15291
15292
15293 for ac_header in fenv.h
15294 do
15295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 fi
15302 ac_res=`eval echo '${'$as_ac_Header'}'`
15303                { echo "$as_me:$LINENO: result: $ac_res" >&5
15304 echo "${ECHO_T}$ac_res" >&6; }
15305 else
15306   # Is the header compilable?
15307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h.  */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h.  */
15315 $ac_includes_default
15316 #include <$ac_header>
15317 _ACEOF
15318 rm -f conftest.$ac_objext
15319 if { (ac_try="$ac_compile"
15320 case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_compile") 2>conftest.er1
15326   ac_status=$?
15327   grep -v '^ *+' conftest.er1 >conftest.err
15328   rm -f conftest.er1
15329   cat conftest.err >&5
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); } &&
15332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; } &&
15342          { ac_try='test -s conftest.$ac_objext'
15343   { (case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348   (eval "$ac_try") 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); }; }; then
15352   ac_header_compiler=yes
15353 else
15354   echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15356
15357         ac_header_compiler=no
15358 fi
15359
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15362 echo "${ECHO_T}$ac_header_compiler" >&6; }
15363
15364 # Is the header present?
15365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15367 cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h.  */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h.  */
15373 #include <$ac_header>
15374 _ACEOF
15375 if { (ac_try="$ac_cpp conftest.$ac_ext"
15376 case "(($ac_try" in
15377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378   *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15382   ac_status=$?
15383   grep -v '^ *+' conftest.er1 >conftest.err
15384   rm -f conftest.er1
15385   cat conftest.err >&5
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } >/dev/null; then
15388   if test -s conftest.err; then
15389     ac_cpp_err=$ac_c_preproc_warn_flag
15390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15391   else
15392     ac_cpp_err=
15393   fi
15394 else
15395   ac_cpp_err=yes
15396 fi
15397 if test -z "$ac_cpp_err"; then
15398   ac_header_preproc=yes
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403   ac_header_preproc=no
15404 fi
15405
15406 rm -f conftest.err conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15408 echo "${ECHO_T}$ac_header_preproc" >&6; }
15409
15410 # So?  What about this header?
15411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15412   yes:no: )
15413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15417     ac_header_preproc=yes
15418     ;;
15419   no:yes:* )
15420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15432     ( cat <<\_ASBOX
15433 ## ------------------------------ ##
15434 ## Report this to bugs@yourdomain ##
15435 ## ------------------------------ ##
15436 _ASBOX
15437      ) | sed "s/^/$as_me: WARNING:     /" >&2
15438     ;;
15439 esac
15440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15443   echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445   eval "$as_ac_Header=\$ac_header_preproc"
15446 fi
15447 ac_res=`eval echo '${'$as_ac_Header'}'`
15448                { echo "$as_me:$LINENO: result: $ac_res" >&5
15449 echo "${ECHO_T}$ac_res" >&6; }
15450
15451 fi
15452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15453   cat >>confdefs.h <<_ACEOF
15454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15455 _ACEOF
15456
15457 fi
15458
15459 done
15460
15461 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15462
15463 for ac_header in pthread.h
15464 do
15465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 fi
15472 ac_res=`eval echo '${'$as_ac_Header'}'`
15473                { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15475 else
15476   # Is the header compilable?
15477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15479 cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485 $ac_includes_default
15486 #include <$ac_header>
15487 _ACEOF
15488 rm -f conftest.$ac_objext
15489 if { (ac_try="$ac_compile"
15490 case "(($ac_try" in
15491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492   *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495   (eval "$ac_compile") 2>conftest.er1
15496   ac_status=$?
15497   grep -v '^ *+' conftest.er1 >conftest.err
15498   rm -f conftest.er1
15499   cat conftest.err >&5
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); } &&
15502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15503   { (case "(($ac_try" in
15504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505   *) ac_try_echo=$ac_try;;
15506 esac
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508   (eval "$ac_try") 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; } &&
15512          { ac_try='test -s conftest.$ac_objext'
15513   { (case "(($ac_try" in
15514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515   *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518   (eval "$ac_try") 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; }; then
15522   ac_header_compiler=yes
15523 else
15524   echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527         ac_header_compiler=no
15528 fi
15529
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15532 echo "${ECHO_T}$ac_header_compiler" >&6; }
15533
15534 # Is the header present?
15535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543 #include <$ac_header>
15544 _ACEOF
15545 if { (ac_try="$ac_cpp conftest.$ac_ext"
15546 case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } >/dev/null; then
15558   if test -s conftest.err; then
15559     ac_cpp_err=$ac_c_preproc_warn_flag
15560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15561   else
15562     ac_cpp_err=
15563   fi
15564 else
15565   ac_cpp_err=yes
15566 fi
15567 if test -z "$ac_cpp_err"; then
15568   ac_header_preproc=yes
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573   ac_header_preproc=no
15574 fi
15575
15576 rm -f conftest.err conftest.$ac_ext
15577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15578 echo "${ECHO_T}$ac_header_preproc" >&6; }
15579
15580 # So?  What about this header?
15581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15582   yes:no: )
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15587     ac_header_preproc=yes
15588     ;;
15589   no:yes:* )
15590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15602     ( cat <<\_ASBOX
15603 ## ------------------------------ ##
15604 ## Report this to bugs@yourdomain ##
15605 ## ------------------------------ ##
15606 _ASBOX
15607      ) | sed "s/^/$as_me: WARNING:     /" >&2
15608     ;;
15609 esac
15610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613   echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615   eval "$as_ac_Header=\$ac_header_preproc"
15616 fi
15617 ac_res=`eval echo '${'$as_ac_Header'}'`
15618                { echo "$as_me:$LINENO: result: $ac_res" >&5
15619 echo "${ECHO_T}$ac_res" >&6; }
15620
15621 fi
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623   cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625 _ACEOF
15626  HAVE_PTHREAD=1
15627
15628 else
15629   HAVE_PTHREAD=0
15630
15631 fi
15632
15633 done
15634
15635 else
15636   HAVE_PTHREAD=0
15637
15638 fi
15639
15640 if test "$llvm_cv_enable_libffi" = "yes" ; then
15641
15642
15643 for ac_header in ffi.h ffi/ffi.h
15644 do
15645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15647   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650   echo $ECHO_N "(cached) $ECHO_C" >&6
15651 fi
15652 ac_res=`eval echo '${'$as_ac_Header'}'`
15653                { echo "$as_me:$LINENO: result: $ac_res" >&5
15654 echo "${ECHO_T}$ac_res" >&6; }
15655 else
15656   # Is the header compilable?
15657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15659 cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665 $ac_includes_default
15666 #include <$ac_header>
15667 _ACEOF
15668 rm -f conftest.$ac_objext
15669 if { (ac_try="$ac_compile"
15670 case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_compile") 2>conftest.er1
15676   ac_status=$?
15677   grep -v '^ *+' conftest.er1 >conftest.err
15678   rm -f conftest.er1
15679   cat conftest.err >&5
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } &&
15682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15683   { (case "(($ac_try" in
15684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685   *) ac_try_echo=$ac_try;;
15686 esac
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688   (eval "$ac_try") 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; } &&
15692          { ac_try='test -s conftest.$ac_objext'
15693   { (case "(($ac_try" in
15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695   *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698   (eval "$ac_try") 2>&5
15699   ac_status=$?
15700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); }; }; then
15702   ac_header_compiler=yes
15703 else
15704   echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15706
15707         ac_header_compiler=no
15708 fi
15709
15710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15712 echo "${ECHO_T}$ac_header_compiler" >&6; }
15713
15714 # Is the header present?
15715 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h.  */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h.  */
15723 #include <$ac_header>
15724 _ACEOF
15725 if { (ac_try="$ac_cpp conftest.$ac_ext"
15726 case "(($ac_try" in
15727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728   *) ac_try_echo=$ac_try;;
15729 esac
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15732   ac_status=$?
15733   grep -v '^ *+' conftest.er1 >conftest.err
15734   rm -f conftest.er1
15735   cat conftest.err >&5
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); } >/dev/null; then
15738   if test -s conftest.err; then
15739     ac_cpp_err=$ac_c_preproc_warn_flag
15740     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15741   else
15742     ac_cpp_err=
15743   fi
15744 else
15745   ac_cpp_err=yes
15746 fi
15747 if test -z "$ac_cpp_err"; then
15748   ac_header_preproc=yes
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753   ac_header_preproc=no
15754 fi
15755
15756 rm -f conftest.err conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15758 echo "${ECHO_T}$ac_header_preproc" >&6; }
15759
15760 # So?  What about this header?
15761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15762   yes:no: )
15763     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15767     ac_header_preproc=yes
15768     ;;
15769   no:yes:* )
15770     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15772     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15773 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15774     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15776     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15777 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15780     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15782     ( cat <<\_ASBOX
15783 ## ------------------------------ ##
15784 ## Report this to bugs@yourdomain ##
15785 ## ------------------------------ ##
15786 _ASBOX
15787      ) | sed "s/^/$as_me: WARNING:     /" >&2
15788     ;;
15789 esac
15790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793   echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795   eval "$as_ac_Header=\$ac_header_preproc"
15796 fi
15797 ac_res=`eval echo '${'$as_ac_Header'}'`
15798                { echo "$as_me:$LINENO: result: $ac_res" >&5
15799 echo "${ECHO_T}$ac_res" >&6; }
15800
15801 fi
15802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15803   cat >>confdefs.h <<_ACEOF
15804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15805 _ACEOF
15806
15807 fi
15808
15809 done
15810
15811 fi
15812
15813
15814 for ac_header in CrashReporterClient.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
15978 fi
15979
15980 done
15981
15982
15983 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15984 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15985 cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 extern const char *__crashreporter_info__;
15992       int main() {
15993         __crashreporter_info__ = "test";
15994         return 0;
15995       }
15996
15997 _ACEOF
15998 rm -f conftest.$ac_objext conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002   *) ac_try_echo=$ac_try;;
16003 esac
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005   (eval "$ac_link") 2>conftest.er1
16006   ac_status=$?
16007   grep -v '^ *+' conftest.er1 >conftest.err
16008   rm -f conftest.er1
16009   cat conftest.err >&5
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); } &&
16012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16013   { (case "(($ac_try" in
16014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015   *) ac_try_echo=$ac_try;;
16016 esac
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018   (eval "$ac_try") 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; } &&
16022          { ac_try='test -s conftest$ac_exeext'
16023   { (case "(($ac_try" in
16024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025   *) ac_try_echo=$ac_try;;
16026 esac
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028   (eval "$ac_try") 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); }; }; then
16032   { echo "$as_me:$LINENO: result: yes" >&5
16033 echo "${ECHO_T}yes" >&6; }
16034
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_CRASHREPORTER_INFO 1
16037 _ACEOF
16038
16039 else
16040   echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043         { echo "$as_me:$LINENO: result: no" >&5
16044 echo "${ECHO_T}no" >&6; }
16045
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_CRASHREPORTER_INFO 0
16048 _ACEOF
16049
16050 fi
16051
16052 rm -f core conftest.err conftest.$ac_objext \
16053       conftest$ac_exeext conftest.$ac_ext
16054
16055
16056
16057
16058   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16059 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16060 if test "${ac_cv_huge_val_sanity+set}" = set; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063
16064     ac_ext=cpp
16065 ac_cpp='$CXXCPP $CPPFLAGS'
16066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16069
16070     ac_save_CXXFLAGS=$CXXFLAGS
16071     CXXFLAGS=-pedantic
16072     if test "$cross_compiling" = yes; then
16073   ac_cv_huge_val_sanity=yes
16074 else
16075   cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081 #include <math.h>
16082 int
16083 main ()
16084 {
16085 double x = HUGE_VAL; return x != x;
16086   ;
16087   return 0;
16088 }
16089 _ACEOF
16090 rm -f conftest$ac_exeext
16091 if { (ac_try="$ac_link"
16092 case "(($ac_try" in
16093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094   *) ac_try_echo=$ac_try;;
16095 esac
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097   (eval "$ac_link") 2>&5
16098   ac_status=$?
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16101   { (case "(($ac_try" in
16102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103   *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106   (eval "$ac_try") 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; }; then
16110   ac_cv_huge_val_sanity=yes
16111 else
16112   echo "$as_me: program exited with status $ac_status" >&5
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 ( exit $ac_status )
16117 ac_cv_huge_val_sanity=no
16118 fi
16119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16120 fi
16121
16122
16123     CXXFLAGS=$ac_save_CXXFLAGS
16124     ac_ext=c
16125 ac_cpp='$CPP $CPPFLAGS'
16126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16129
16130
16131 fi
16132 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16133 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16134   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16135
16136
16137 { echo "$as_me:$LINENO: checking for pid_t" >&5
16138 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16139 if test "${ac_cv_type_pid_t+set}" = set; then
16140   echo $ECHO_N "(cached) $ECHO_C" >&6
16141 else
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 $ac_includes_default
16149 typedef pid_t ac__type_new_;
16150 int
16151 main ()
16152 {
16153 if ((ac__type_new_ *) 0)
16154   return 0;
16155 if (sizeof (ac__type_new_))
16156   return 0;
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext
16162 if { (ac_try="$ac_compile"
16163 case "(($ac_try" in
16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165   *) ac_try_echo=$ac_try;;
16166 esac
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168   (eval "$ac_compile") 2>conftest.er1
16169   ac_status=$?
16170   grep -v '^ *+' conftest.er1 >conftest.err
16171   rm -f conftest.er1
16172   cat conftest.err >&5
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } &&
16175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16176   { (case "(($ac_try" in
16177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178   *) ac_try_echo=$ac_try;;
16179 esac
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181   (eval "$ac_try") 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); }; } &&
16185          { ac_try='test -s conftest.$ac_objext'
16186   { (case "(($ac_try" in
16187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188   *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191   (eval "$ac_try") 2>&5
16192   ac_status=$?
16193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; }; then
16195   ac_cv_type_pid_t=yes
16196 else
16197   echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16199
16200         ac_cv_type_pid_t=no
16201 fi
16202
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 fi
16205 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16206 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16207 if test $ac_cv_type_pid_t = yes; then
16208   :
16209 else
16210
16211 cat >>confdefs.h <<_ACEOF
16212 #define pid_t int
16213 _ACEOF
16214
16215 fi
16216
16217 { echo "$as_me:$LINENO: checking for size_t" >&5
16218 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16219 if test "${ac_cv_type_size_t+set}" = set; then
16220   echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222   cat >conftest.$ac_ext <<_ACEOF
16223 /* confdefs.h.  */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h.  */
16228 $ac_includes_default
16229 typedef size_t ac__type_new_;
16230 int
16231 main ()
16232 {
16233 if ((ac__type_new_ *) 0)
16234   return 0;
16235 if (sizeof (ac__type_new_))
16236   return 0;
16237   ;
16238   return 0;
16239 }
16240 _ACEOF
16241 rm -f conftest.$ac_objext
16242 if { (ac_try="$ac_compile"
16243 case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_compile") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256   { (case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_try") 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; } &&
16265          { ac_try='test -s conftest.$ac_objext'
16266   { (case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271   (eval "$ac_try") 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   ac_cv_type_size_t=yes
16276 else
16277   echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280         ac_cv_type_size_t=no
16281 fi
16282
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16286 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16287 if test $ac_cv_type_size_t = yes; then
16288   :
16289 else
16290
16291 cat >>confdefs.h <<_ACEOF
16292 #define size_t unsigned int
16293 _ACEOF
16294
16295 fi
16296
16297
16298 cat >>confdefs.h <<_ACEOF
16299 #define RETSIGTYPE void
16300 _ACEOF
16301
16302 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16303 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16304 if test "${ac_cv_struct_tm+set}" = set; then
16305   echo $ECHO_N "(cached) $ECHO_C" >&6
16306 else
16307   cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h.  */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h.  */
16313 #include <sys/types.h>
16314 #include <time.h>
16315
16316 int
16317 main ()
16318 {
16319 struct tm *tp; tp->tm_sec;
16320   ;
16321   return 0;
16322 }
16323 _ACEOF
16324 rm -f conftest.$ac_objext
16325 if { (ac_try="$ac_compile"
16326 case "(($ac_try" in
16327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328   *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331   (eval "$ac_compile") 2>conftest.er1
16332   ac_status=$?
16333   grep -v '^ *+' conftest.er1 >conftest.err
16334   rm -f conftest.er1
16335   cat conftest.err >&5
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); } &&
16338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16339   { (case "(($ac_try" in
16340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341   *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344   (eval "$ac_try") 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; } &&
16348          { ac_try='test -s conftest.$ac_objext'
16349   { (case "(($ac_try" in
16350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351   *) ac_try_echo=$ac_try;;
16352 esac
16353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354   (eval "$ac_try") 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; }; then
16358   ac_cv_struct_tm=time.h
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363         ac_cv_struct_tm=sys/time.h
16364 fi
16365
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 fi
16368 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16369 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16370 if test $ac_cv_struct_tm = sys/time.h; then
16371
16372 cat >>confdefs.h <<\_ACEOF
16373 #define TM_IN_SYS_TIME 1
16374 _ACEOF
16375
16376 fi
16377
16378 { echo "$as_me:$LINENO: checking for int64_t" >&5
16379 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16380 if test "${ac_cv_type_int64_t+set}" = set; then
16381   echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383   cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389 $ac_includes_default
16390 typedef int64_t ac__type_new_;
16391 int
16392 main ()
16393 {
16394 if ((ac__type_new_ *) 0)
16395   return 0;
16396 if (sizeof (ac__type_new_))
16397   return 0;
16398   ;
16399   return 0;
16400 }
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (ac_try="$ac_compile"
16404 case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409   (eval "$ac_compile") 2>conftest.er1
16410   ac_status=$?
16411   grep -v '^ *+' conftest.er1 >conftest.err
16412   rm -f conftest.er1
16413   cat conftest.err >&5
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); } &&
16416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417   { (case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_try") 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); }; } &&
16426          { ac_try='test -s conftest.$ac_objext'
16427   { (case "(($ac_try" in
16428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429   *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432   (eval "$ac_try") 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   ac_cv_type_int64_t=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441         ac_cv_type_int64_t=no
16442 fi
16443
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 fi
16446 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16447 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16448 if test $ac_cv_type_int64_t = yes; then
16449
16450 cat >>confdefs.h <<_ACEOF
16451 #define HAVE_INT64_T 1
16452 _ACEOF
16453
16454
16455 else
16456   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16457 echo "$as_me: error: Type int64_t required but not found" >&2;}
16458    { (exit 1); exit 1; }; }
16459 fi
16460
16461 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16462 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16463 if test "${ac_cv_type_uint64_t+set}" = set; then
16464   echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466   cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h.  */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h.  */
16472 $ac_includes_default
16473 typedef uint64_t ac__type_new_;
16474 int
16475 main ()
16476 {
16477 if ((ac__type_new_ *) 0)
16478   return 0;
16479 if (sizeof (ac__type_new_))
16480   return 0;
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489   *) ac_try_echo=$ac_try;;
16490 esac
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492   (eval "$ac_compile") 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } &&
16499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16500   { (case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505   (eval "$ac_try") 2>&5
16506   ac_status=$?
16507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508   (exit $ac_status); }; } &&
16509          { ac_try='test -s conftest.$ac_objext'
16510   { (case "(($ac_try" in
16511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512   *) ac_try_echo=$ac_try;;
16513 esac
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515   (eval "$ac_try") 2>&5
16516   ac_status=$?
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); }; }; then
16519   ac_cv_type_uint64_t=yes
16520 else
16521   echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524         ac_cv_type_uint64_t=no
16525 fi
16526
16527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16528 fi
16529 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16530 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16531 if test $ac_cv_type_uint64_t = yes; then
16532
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_UINT64_T 1
16535 _ACEOF
16536
16537
16538 else
16539   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16540 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16541 if test "${ac_cv_type_u_int64_t+set}" = set; then
16542   echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544   cat >conftest.$ac_ext <<_ACEOF
16545 /* confdefs.h.  */
16546 _ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h.  */
16550 $ac_includes_default
16551 typedef u_int64_t ac__type_new_;
16552 int
16553 main ()
16554 {
16555 if ((ac__type_new_ *) 0)
16556   return 0;
16557 if (sizeof (ac__type_new_))
16558   return 0;
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_compile") 2>conftest.er1
16571   ac_status=$?
16572   grep -v '^ *+' conftest.er1 >conftest.err
16573   rm -f conftest.er1
16574   cat conftest.err >&5
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); } &&
16577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16578   { (case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_try") 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; } &&
16587          { ac_try='test -s conftest.$ac_objext'
16588   { (case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593   (eval "$ac_try") 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); }; }; then
16597   ac_cv_type_u_int64_t=yes
16598 else
16599   echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16601
16602         ac_cv_type_u_int64_t=no
16603 fi
16604
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 fi
16607 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16608 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16609 if test $ac_cv_type_u_int64_t = yes; then
16610
16611 cat >>confdefs.h <<_ACEOF
16612 #define HAVE_U_INT64_T 1
16613 _ACEOF
16614
16615
16616 else
16617   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16618 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16619    { (exit 1); exit 1; }; }
16620 fi
16621
16622 fi
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16634 do
16635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16649 #define $ac_func innocuous_$ac_func
16650
16651 /* System header to define __stub macros and hopefully few prototypes,
16652     which can conflict with char $ac_func (); below.
16653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654     <limits.h> exists even on freestanding compilers.  */
16655
16656 #ifdef __STDC__
16657 # include <limits.h>
16658 #else
16659 # include <assert.h>
16660 #endif
16661
16662 #undef $ac_func
16663
16664 /* Override any GCC internal prototype to avoid an error.
16665    Use char because int might match the return type of a GCC
16666    builtin and then its argument prototype would still apply.  */
16667 #ifdef __cplusplus
16668 extern "C"
16669 #endif
16670 char $ac_func ();
16671 /* The GNU C library defines this for functions which it implements
16672     to always fail with ENOSYS.  Some functions are actually named
16673     something starting with __ and the normal name is an alias.  */
16674 #if defined __stub_$ac_func || defined __stub___$ac_func
16675 choke me
16676 #endif
16677
16678 int
16679 main ()
16680 {
16681 return $ac_func ();
16682   ;
16683   return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690   *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693   (eval "$ac_link") 2>conftest.er1
16694   ac_status=$?
16695   grep -v '^ *+' conftest.er1 >conftest.err
16696   rm -f conftest.er1
16697   cat conftest.err >&5
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); } &&
16700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16701   { (case "(($ac_try" in
16702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703   *) ac_try_echo=$ac_try;;
16704 esac
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706   (eval "$ac_try") 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); }; } &&
16710          { ac_try='test -s conftest$ac_exeext'
16711   { (case "(($ac_try" in
16712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713   *) ac_try_echo=$ac_try;;
16714 esac
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716   (eval "$ac_try") 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); }; }; then
16720   eval "$as_ac_var=yes"
16721 else
16722   echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725         eval "$as_ac_var=no"
16726 fi
16727
16728 rm -f core conftest.err conftest.$ac_objext \
16729       conftest$ac_exeext conftest.$ac_ext
16730 fi
16731 ac_res=`eval echo '${'$as_ac_var'}'`
16732                { echo "$as_me:$LINENO: result: $ac_res" >&5
16733 echo "${ECHO_T}$ac_res" >&6; }
16734 if test `eval echo '${'$as_ac_var'}'` = yes; then
16735   cat >>confdefs.h <<_ACEOF
16736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16737 _ACEOF
16738
16739 fi
16740 done
16741
16742
16743
16744
16745
16746 for ac_func in powf fmodf strtof round
16747 do
16748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16752   echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754   cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h.  */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h.  */
16760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16762 #define $ac_func innocuous_$ac_func
16763
16764 /* System header to define __stub macros and hopefully few prototypes,
16765     which can conflict with char $ac_func (); below.
16766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16767     <limits.h> exists even on freestanding compilers.  */
16768
16769 #ifdef __STDC__
16770 # include <limits.h>
16771 #else
16772 # include <assert.h>
16773 #endif
16774
16775 #undef $ac_func
16776
16777 /* Override any GCC internal prototype to avoid an error.
16778    Use char because int might match the return type of a GCC
16779    builtin and then its argument prototype would still apply.  */
16780 #ifdef __cplusplus
16781 extern "C"
16782 #endif
16783 char $ac_func ();
16784 /* The GNU C library defines this for functions which it implements
16785     to always fail with ENOSYS.  Some functions are actually named
16786     something starting with __ and the normal name is an alias.  */
16787 #if defined __stub_$ac_func || defined __stub___$ac_func
16788 choke me
16789 #endif
16790
16791 int
16792 main ()
16793 {
16794 return $ac_func ();
16795   ;
16796   return 0;
16797 }
16798 _ACEOF
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (ac_try="$ac_link"
16801 case "(($ac_try" in
16802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803   *) ac_try_echo=$ac_try;;
16804 esac
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806   (eval "$ac_link") 2>conftest.er1
16807   ac_status=$?
16808   grep -v '^ *+' conftest.er1 >conftest.err
16809   rm -f conftest.er1
16810   cat conftest.err >&5
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } &&
16813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16814   { (case "(($ac_try" in
16815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816   *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819   (eval "$ac_try") 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); }; } &&
16823          { ac_try='test -s conftest$ac_exeext'
16824   { (case "(($ac_try" in
16825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826   *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829   (eval "$ac_try") 2>&5
16830   ac_status=$?
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); }; }; then
16833   eval "$as_ac_var=yes"
16834 else
16835   echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838         eval "$as_ac_var=no"
16839 fi
16840
16841 rm -f core conftest.err conftest.$ac_objext \
16842       conftest$ac_exeext conftest.$ac_ext
16843 fi
16844 ac_res=`eval echo '${'$as_ac_var'}'`
16845                { echo "$as_me:$LINENO: result: $ac_res" >&5
16846 echo "${ECHO_T}$ac_res" >&6; }
16847 if test `eval echo '${'$as_ac_var'}'` = yes; then
16848   cat >>confdefs.h <<_ACEOF
16849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16850 _ACEOF
16851
16852 fi
16853 done
16854
16855
16856
16857
16858
16859
16860 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16861 do
16862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16866   echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868   cat >conftest.$ac_ext <<_ACEOF
16869 /* confdefs.h.  */
16870 _ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h.  */
16874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16876 #define $ac_func innocuous_$ac_func
16877
16878 /* System header to define __stub macros and hopefully few prototypes,
16879     which can conflict with char $ac_func (); below.
16880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16881     <limits.h> exists even on freestanding compilers.  */
16882
16883 #ifdef __STDC__
16884 # include <limits.h>
16885 #else
16886 # include <assert.h>
16887 #endif
16888
16889 #undef $ac_func
16890
16891 /* Override any GCC internal prototype to avoid an error.
16892    Use char because int might match the return type of a GCC
16893    builtin and then its argument prototype would still apply.  */
16894 #ifdef __cplusplus
16895 extern "C"
16896 #endif
16897 char $ac_func ();
16898 /* The GNU C library defines this for functions which it implements
16899     to always fail with ENOSYS.  Some functions are actually named
16900     something starting with __ and the normal name is an alias.  */
16901 #if defined __stub_$ac_func || defined __stub___$ac_func
16902 choke me
16903 #endif
16904
16905 int
16906 main ()
16907 {
16908 return $ac_func ();
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext conftest$ac_exeext
16914 if { (ac_try="$ac_link"
16915 case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_link") 2>conftest.er1
16921   ac_status=$?
16922   grep -v '^ *+' conftest.er1 >conftest.err
16923   rm -f conftest.er1
16924   cat conftest.err >&5
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } &&
16927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16928   { (case "(($ac_try" in
16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930   *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933   (eval "$ac_try") 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; } &&
16937          { ac_try='test -s conftest$ac_exeext'
16938   { (case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_try") 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; }; then
16947   eval "$as_ac_var=yes"
16948 else
16949   echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16951
16952         eval "$as_ac_var=no"
16953 fi
16954
16955 rm -f core conftest.err conftest.$ac_objext \
16956       conftest$ac_exeext conftest.$ac_ext
16957 fi
16958 ac_res=`eval echo '${'$as_ac_var'}'`
16959                { echo "$as_me:$LINENO: result: $ac_res" >&5
16960 echo "${ECHO_T}$ac_res" >&6; }
16961 if test `eval echo '${'$as_ac_var'}'` = yes; then
16962   cat >>confdefs.h <<_ACEOF
16963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964 _ACEOF
16965
16966 fi
16967 done
16968
16969
16970
16971
16972 for ac_func in isatty mkdtemp mkstemp
16973 do
16974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16978   echo $ECHO_N "(cached) $ECHO_C" >&6
16979 else
16980   cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h.  */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h.  */
16986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16988 #define $ac_func innocuous_$ac_func
16989
16990 /* System header to define __stub macros and hopefully few prototypes,
16991     which can conflict with char $ac_func (); below.
16992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16993     <limits.h> exists even on freestanding compilers.  */
16994
16995 #ifdef __STDC__
16996 # include <limits.h>
16997 #else
16998 # include <assert.h>
16999 #endif
17000
17001 #undef $ac_func
17002
17003 /* Override any GCC internal prototype to avoid an error.
17004    Use char because int might match the return type of a GCC
17005    builtin and then its argument prototype would still apply.  */
17006 #ifdef __cplusplus
17007 extern "C"
17008 #endif
17009 char $ac_func ();
17010 /* The GNU C library defines this for functions which it implements
17011     to always fail with ENOSYS.  Some functions are actually named
17012     something starting with __ and the normal name is an alias.  */
17013 #if defined __stub_$ac_func || defined __stub___$ac_func
17014 choke me
17015 #endif
17016
17017 int
17018 main ()
17019 {
17020 return $ac_func ();
17021   ;
17022   return 0;
17023 }
17024 _ACEOF
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029   *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032   (eval "$ac_link") 2>conftest.er1
17033   ac_status=$?
17034   grep -v '^ *+' conftest.er1 >conftest.err
17035   rm -f conftest.er1
17036   cat conftest.err >&5
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); } &&
17039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040   { (case "(($ac_try" in
17041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042   *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045   (eval "$ac_try") 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); }; } &&
17049          { ac_try='test -s conftest$ac_exeext'
17050   { (case "(($ac_try" in
17051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052   *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055   (eval "$ac_try") 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; }; then
17059   eval "$as_ac_var=yes"
17060 else
17061   echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17063
17064         eval "$as_ac_var=no"
17065 fi
17066
17067 rm -f core conftest.err conftest.$ac_objext \
17068       conftest$ac_exeext conftest.$ac_ext
17069 fi
17070 ac_res=`eval echo '${'$as_ac_var'}'`
17071                { echo "$as_me:$LINENO: result: $ac_res" >&5
17072 echo "${ECHO_T}$ac_res" >&6; }
17073 if test `eval echo '${'$as_ac_var'}'` = yes; then
17074   cat >>confdefs.h <<_ACEOF
17075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17076 _ACEOF
17077
17078 fi
17079 done
17080
17081
17082
17083
17084
17085
17086
17087 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17088 do
17089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17093   echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095   cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h.  */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h.  */
17101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17103 #define $ac_func innocuous_$ac_func
17104
17105 /* System header to define __stub macros and hopefully few prototypes,
17106     which can conflict with char $ac_func (); below.
17107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108     <limits.h> exists even on freestanding compilers.  */
17109
17110 #ifdef __STDC__
17111 # include <limits.h>
17112 #else
17113 # include <assert.h>
17114 #endif
17115
17116 #undef $ac_func
17117
17118 /* Override any GCC internal prototype to avoid an error.
17119    Use char because int might match the return type of a GCC
17120    builtin and then its argument prototype would still apply.  */
17121 #ifdef __cplusplus
17122 extern "C"
17123 #endif
17124 char $ac_func ();
17125 /* The GNU C library defines this for functions which it implements
17126     to always fail with ENOSYS.  Some functions are actually named
17127     something starting with __ and the normal name is an alias.  */
17128 #if defined __stub_$ac_func || defined __stub___$ac_func
17129 choke me
17130 #endif
17131
17132 int
17133 main ()
17134 {
17135 return $ac_func ();
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext conftest$ac_exeext
17141 if { (ac_try="$ac_link"
17142 case "(($ac_try" in
17143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144   *) ac_try_echo=$ac_try;;
17145 esac
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147   (eval "$ac_link") 2>conftest.er1
17148   ac_status=$?
17149   grep -v '^ *+' conftest.er1 >conftest.err
17150   rm -f conftest.er1
17151   cat conftest.err >&5
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } &&
17154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155   { (case "(($ac_try" in
17156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157   *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160   (eval "$ac_try") 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; } &&
17164          { ac_try='test -s conftest$ac_exeext'
17165   { (case "(($ac_try" in
17166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167   *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170   (eval "$ac_try") 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; }; then
17174   eval "$as_ac_var=yes"
17175 else
17176   echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17178
17179         eval "$as_ac_var=no"
17180 fi
17181
17182 rm -f core conftest.err conftest.$ac_objext \
17183       conftest$ac_exeext conftest.$ac_ext
17184 fi
17185 ac_res=`eval echo '${'$as_ac_var'}'`
17186                { echo "$as_me:$LINENO: result: $ac_res" >&5
17187 echo "${ECHO_T}$ac_res" >&6; }
17188 if test `eval echo '${'$as_ac_var'}'` = yes; then
17189   cat >>confdefs.h <<_ACEOF
17190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17191 _ACEOF
17192
17193 fi
17194 done
17195
17196
17197
17198
17199 for ac_func in strerror strerror_r setenv
17200 do
17201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17205   echo $ECHO_N "(cached) $ECHO_C" >&6
17206 else
17207   cat >conftest.$ac_ext <<_ACEOF
17208 /* confdefs.h.  */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h.  */
17213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17215 #define $ac_func innocuous_$ac_func
17216
17217 /* System header to define __stub macros and hopefully few prototypes,
17218     which can conflict with char $ac_func (); below.
17219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17220     <limits.h> exists even on freestanding compilers.  */
17221
17222 #ifdef __STDC__
17223 # include <limits.h>
17224 #else
17225 # include <assert.h>
17226 #endif
17227
17228 #undef $ac_func
17229
17230 /* Override any GCC internal prototype to avoid an error.
17231    Use char because int might match the return type of a GCC
17232    builtin and then its argument prototype would still apply.  */
17233 #ifdef __cplusplus
17234 extern "C"
17235 #endif
17236 char $ac_func ();
17237 /* The GNU C library defines this for functions which it implements
17238     to always fail with ENOSYS.  Some functions are actually named
17239     something starting with __ and the normal name is an alias.  */
17240 #if defined __stub_$ac_func || defined __stub___$ac_func
17241 choke me
17242 #endif
17243
17244 int
17245 main ()
17246 {
17247 return $ac_func ();
17248   ;
17249   return 0;
17250 }
17251 _ACEOF
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_link") 2>conftest.er1
17260   ac_status=$?
17261   grep -v '^ *+' conftest.er1 >conftest.err
17262   rm -f conftest.er1
17263   cat conftest.err >&5
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } &&
17266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267   { (case "(($ac_try" in
17268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269   *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272   (eval "$ac_try") 2>&5
17273   ac_status=$?
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); }; } &&
17276          { ac_try='test -s conftest$ac_exeext'
17277   { (case "(($ac_try" in
17278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279   *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282   (eval "$ac_try") 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; }; then
17286   eval "$as_ac_var=yes"
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291         eval "$as_ac_var=no"
17292 fi
17293
17294 rm -f core conftest.err conftest.$ac_objext \
17295       conftest$ac_exeext conftest.$ac_ext
17296 fi
17297 ac_res=`eval echo '${'$as_ac_var'}'`
17298                { echo "$as_me:$LINENO: result: $ac_res" >&5
17299 echo "${ECHO_T}$ac_res" >&6; }
17300 if test `eval echo '${'$as_ac_var'}'` = yes; then
17301   cat >>confdefs.h <<_ACEOF
17302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17303 _ACEOF
17304
17305 fi
17306 done
17307
17308
17309
17310
17311
17312 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17313 do
17314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17318   echo $ECHO_N "(cached) $ECHO_C" >&6
17319 else
17320   cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h.  */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h.  */
17326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17328 #define $ac_func innocuous_$ac_func
17329
17330 /* System header to define __stub macros and hopefully few prototypes,
17331     which can conflict with char $ac_func (); below.
17332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17333     <limits.h> exists even on freestanding compilers.  */
17334
17335 #ifdef __STDC__
17336 # include <limits.h>
17337 #else
17338 # include <assert.h>
17339 #endif
17340
17341 #undef $ac_func
17342
17343 /* Override any GCC internal prototype to avoid an error.
17344    Use char because int might match the return type of a GCC
17345    builtin and then its argument prototype would still apply.  */
17346 #ifdef __cplusplus
17347 extern "C"
17348 #endif
17349 char $ac_func ();
17350 /* The GNU C library defines this for functions which it implements
17351     to always fail with ENOSYS.  Some functions are actually named
17352     something starting with __ and the normal name is an alias.  */
17353 #if defined __stub_$ac_func || defined __stub___$ac_func
17354 choke me
17355 #endif
17356
17357 int
17358 main ()
17359 {
17360 return $ac_func ();
17361   ;
17362   return 0;
17363 }
17364 _ACEOF
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (ac_try="$ac_link"
17367 case "(($ac_try" in
17368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369   *) ac_try_echo=$ac_try;;
17370 esac
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372   (eval "$ac_link") 2>conftest.er1
17373   ac_status=$?
17374   grep -v '^ *+' conftest.er1 >conftest.err
17375   rm -f conftest.er1
17376   cat conftest.err >&5
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); } &&
17379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17380   { (case "(($ac_try" in
17381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382   *) ac_try_echo=$ac_try;;
17383 esac
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385   (eval "$ac_try") 2>&5
17386   ac_status=$?
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); }; } &&
17389          { ac_try='test -s conftest$ac_exeext'
17390   { (case "(($ac_try" in
17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392   *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395   (eval "$ac_try") 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; }; then
17399   eval "$as_ac_var=yes"
17400 else
17401   echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404         eval "$as_ac_var=no"
17405 fi
17406
17407 rm -f core conftest.err conftest.$ac_objext \
17408       conftest$ac_exeext conftest.$ac_ext
17409 fi
17410 ac_res=`eval echo '${'$as_ac_var'}'`
17411                { echo "$as_me:$LINENO: result: $ac_res" >&5
17412 echo "${ECHO_T}$ac_res" >&6; }
17413 if test `eval echo '${'$as_ac_var'}'` = yes; then
17414   cat >>confdefs.h <<_ACEOF
17415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17416 _ACEOF
17417
17418 fi
17419 done
17420
17421
17422
17423
17424
17425
17426 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17427 do
17428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17429 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17432   echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434   cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h.  */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h.  */
17440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17442 #define $ac_func innocuous_$ac_func
17443
17444 /* System header to define __stub macros and hopefully few prototypes,
17445     which can conflict with char $ac_func (); below.
17446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17447     <limits.h> exists even on freestanding compilers.  */
17448
17449 #ifdef __STDC__
17450 # include <limits.h>
17451 #else
17452 # include <assert.h>
17453 #endif
17454
17455 #undef $ac_func
17456
17457 /* Override any GCC internal prototype to avoid an error.
17458    Use char because int might match the return type of a GCC
17459    builtin and then its argument prototype would still apply.  */
17460 #ifdef __cplusplus
17461 extern "C"
17462 #endif
17463 char $ac_func ();
17464 /* The GNU C library defines this for functions which it implements
17465     to always fail with ENOSYS.  Some functions are actually named
17466     something starting with __ and the normal name is an alias.  */
17467 #if defined __stub_$ac_func || defined __stub___$ac_func
17468 choke me
17469 #endif
17470
17471 int
17472 main ()
17473 {
17474 return $ac_func ();
17475   ;
17476   return 0;
17477 }
17478 _ACEOF
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (ac_try="$ac_link"
17481 case "(($ac_try" in
17482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483   *) ac_try_echo=$ac_try;;
17484 esac
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486   (eval "$ac_link") 2>conftest.er1
17487   ac_status=$?
17488   grep -v '^ *+' conftest.er1 >conftest.err
17489   rm -f conftest.er1
17490   cat conftest.err >&5
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); } &&
17493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17494   { (case "(($ac_try" in
17495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496   *) ac_try_echo=$ac_try;;
17497 esac
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499   (eval "$ac_try") 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; } &&
17503          { ac_try='test -s conftest$ac_exeext'
17504   { (case "(($ac_try" in
17505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506   *) ac_try_echo=$ac_try;;
17507 esac
17508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509   (eval "$ac_try") 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; }; then
17513   eval "$as_ac_var=yes"
17514 else
17515   echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518         eval "$as_ac_var=no"
17519 fi
17520
17521 rm -f core conftest.err conftest.$ac_objext \
17522       conftest$ac_exeext conftest.$ac_ext
17523 fi
17524 ac_res=`eval echo '${'$as_ac_var'}'`
17525                { echo "$as_me:$LINENO: result: $ac_res" >&5
17526 echo "${ECHO_T}$ac_res" >&6; }
17527 if test `eval echo '${'$as_ac_var'}'` = yes; then
17528   cat >>confdefs.h <<_ACEOF
17529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17530 _ACEOF
17531
17532 fi
17533 done
17534
17535 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17536 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17537 if test "${llvm_cv_c_printf_a+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540   ac_ext=c
17541 ac_cpp='$CPP $CPPFLAGS'
17542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17545
17546  if test "$cross_compiling" = yes; then
17547   llvmac_cv_c_printf_a=no
17548 else
17549   cat >conftest.$ac_ext <<_ACEOF
17550
17551   /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556
17557 #include <stdio.h>
17558 #include <stdlib.h>
17559
17560 int
17561 main ()
17562 {
17563
17564 volatile double A, B;
17565 char Buffer[100];
17566 A = 1;
17567 A /= 10.0;
17568 sprintf(Buffer, "%a", A);
17569 B = atof(Buffer);
17570 if (A != B)
17571   return (1);
17572 if (A != 0x1.999999999999ap-4)
17573   return (1);
17574 return (0);
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_link") 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17590   { (case "(($ac_try" in
17591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592   *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595   (eval "$ac_try") 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; }; then
17599   llvm_cv_c_printf_a=yes
17600 else
17601   echo "$as_me: program exited with status $ac_status" >&5
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
17605 ( exit $ac_status )
17606 llvmac_cv_c_printf_a=no
17607 fi
17608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17609 fi
17610
17611
17612  ac_ext=c
17613 ac_cpp='$CPP $CPPFLAGS'
17614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17617
17618 fi
17619 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17620 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17621  if test "$llvm_cv_c_printf_a" = "yes"; then
17622
17623 cat >>confdefs.h <<\_ACEOF
17624 #define HAVE_PRINTF_A 1
17625 _ACEOF
17626
17627  fi
17628
17629
17630 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17631 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17632 if test "${ac_cv_func_rand48+set}" = set; then
17633   echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635   ac_ext=cpp
17636 ac_cpp='$CXXCPP $CPPFLAGS'
17637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17640
17641    cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h.  */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h.  */
17647 #include <stdlib.h>
17648 int
17649 main ()
17650 {
17651 srand48(0);lrand48();drand48();
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_compile") 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } &&
17670          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); }; } &&
17680          { ac_try='test -s conftest.$ac_objext'
17681   { (case "(($ac_try" in
17682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683   *) ac_try_echo=$ac_try;;
17684 esac
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686   (eval "$ac_try") 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; }; then
17690   ac_cv_func_rand48=yes
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695         ac_cv_func_rand48=no
17696 fi
17697
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699   ac_ext=c
17700 ac_cpp='$CPP $CPPFLAGS'
17701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704
17705 fi
17706 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17707 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17708
17709 if test "$ac_cv_func_rand48" = "yes" ; then
17710
17711 cat >>confdefs.h <<\_ACEOF
17712 #define HAVE_RAND48 1
17713 _ACEOF
17714
17715 fi
17716
17717
17718 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17719 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17720 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17721   echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723   cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h.  */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h.  */
17729 $ac_includes_default
17730 int
17731 main ()
17732 {
17733 #ifndef strerror_s
17734   char *p = (char *) strerror_s;
17735   return !p;
17736 #endif
17737
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746   *) ac_try_echo=$ac_try;;
17747 esac
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749   (eval "$ac_compile") 2>conftest.er1
17750   ac_status=$?
17751   grep -v '^ *+' conftest.er1 >conftest.err
17752   rm -f conftest.er1
17753   cat conftest.err >&5
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); } &&
17756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17757   { (case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_try") 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; } &&
17766          { ac_try='test -s conftest.$ac_objext'
17767   { (case "(($ac_try" in
17768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769   *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772   (eval "$ac_try") 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   ac_cv_have_decl_strerror_s=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781         ac_cv_have_decl_strerror_s=no
17782 fi
17783
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785 fi
17786 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17787 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17788 if test $ac_cv_have_decl_strerror_s = yes; then
17789
17790 cat >>confdefs.h <<_ACEOF
17791 #define HAVE_DECL_STRERROR_S 1
17792 _ACEOF
17793
17794
17795 else
17796   cat >>confdefs.h <<_ACEOF
17797 #define HAVE_DECL_STRERROR_S 0
17798 _ACEOF
17799
17800
17801 fi
17802
17803
17804
17805 if test "$llvm_cv_os_type" = "MingW" ; then
17806   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17807 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17808 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17809   echo $ECHO_N "(cached) $ECHO_C" >&6
17810 else
17811   ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-lgcc  $LIBS"
17813 cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h.  */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h.  */
17819
17820 /* Override any GCC internal prototype to avoid an error.
17821    Use char because int might match the return type of a GCC
17822    builtin and then its argument prototype would still apply.  */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 char _alloca ();
17827 int
17828 main ()
17829 {
17830 return _alloca ();
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (ac_try="$ac_link"
17837 case "(($ac_try" in
17838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839   *) ac_try_echo=$ac_try;;
17840 esac
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842   (eval "$ac_link") 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } &&
17849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850   { (case "(($ac_try" in
17851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852   *) ac_try_echo=$ac_try;;
17853 esac
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855   (eval "$ac_try") 2>&5
17856   ac_status=$?
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); }; } &&
17859          { ac_try='test -s conftest$ac_exeext'
17860   { (case "(($ac_try" in
17861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862   *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865   (eval "$ac_try") 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); }; }; then
17869   ac_cv_lib_gcc__alloca=yes
17870 else
17871   echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17873
17874         ac_cv_lib_gcc__alloca=no
17875 fi
17876
17877 rm -f core conftest.err conftest.$ac_objext \
17878       conftest$ac_exeext conftest.$ac_ext
17879 LIBS=$ac_check_lib_save_LIBS
17880 fi
17881 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17882 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17883 if test $ac_cv_lib_gcc__alloca = yes; then
17884
17885 cat >>confdefs.h <<\_ACEOF
17886 #define HAVE__ALLOCA 1
17887 _ACEOF
17888
17889 fi
17890
17891   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17892 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17893 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17894   echo $ECHO_N "(cached) $ECHO_C" >&6
17895 else
17896   ac_check_lib_save_LIBS=$LIBS
17897 LIBS="-lgcc  $LIBS"
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h.  */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h.  */
17904
17905 /* Override any GCC internal prototype to avoid an error.
17906    Use char because int might match the return type of a GCC
17907    builtin and then its argument prototype would still apply.  */
17908 #ifdef __cplusplus
17909 extern "C"
17910 #endif
17911 char __alloca ();
17912 int
17913 main ()
17914 {
17915 return __alloca ();
17916   ;
17917   return 0;
17918 }
17919 _ACEOF
17920 rm -f conftest.$ac_objext conftest$ac_exeext
17921 if { (ac_try="$ac_link"
17922 case "(($ac_try" in
17923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924   *) ac_try_echo=$ac_try;;
17925 esac
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927   (eval "$ac_link") 2>conftest.er1
17928   ac_status=$?
17929   grep -v '^ *+' conftest.er1 >conftest.err
17930   rm -f conftest.er1
17931   cat conftest.err >&5
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); } &&
17934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935   { (case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_try") 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest$ac_exeext'
17945   { (case "(($ac_try" in
17946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947   *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950   (eval "$ac_try") 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); }; }; then
17954   ac_cv_lib_gcc___alloca=yes
17955 else
17956   echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959         ac_cv_lib_gcc___alloca=no
17960 fi
17961
17962 rm -f core conftest.err conftest.$ac_objext \
17963       conftest$ac_exeext conftest.$ac_ext
17964 LIBS=$ac_check_lib_save_LIBS
17965 fi
17966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17967 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17968 if test $ac_cv_lib_gcc___alloca = yes; then
17969
17970 cat >>confdefs.h <<\_ACEOF
17971 #define HAVE___ALLOCA 1
17972 _ACEOF
17973
17974 fi
17975
17976   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17977 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17978 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17979   echo $ECHO_N "(cached) $ECHO_C" >&6
17980 else
17981   ac_check_lib_save_LIBS=$LIBS
17982 LIBS="-lgcc  $LIBS"
17983 cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h.  */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h.  */
17989
17990 /* Override any GCC internal prototype to avoid an error.
17991    Use char because int might match the return type of a GCC
17992    builtin and then its argument prototype would still apply.  */
17993 #ifdef __cplusplus
17994 extern "C"
17995 #endif
17996 char __chkstk ();
17997 int
17998 main ()
17999 {
18000 return __chkstk ();
18001   ;
18002   return 0;
18003 }
18004 _ACEOF
18005 rm -f conftest.$ac_objext conftest$ac_exeext
18006 if { (ac_try="$ac_link"
18007 case "(($ac_try" in
18008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009   *) ac_try_echo=$ac_try;;
18010 esac
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012   (eval "$ac_link") 2>conftest.er1
18013   ac_status=$?
18014   grep -v '^ *+' conftest.er1 >conftest.err
18015   rm -f conftest.er1
18016   cat conftest.err >&5
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } &&
18019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18020   { (case "(($ac_try" in
18021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022   *) ac_try_echo=$ac_try;;
18023 esac
18024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025   (eval "$ac_try") 2>&5
18026   ac_status=$?
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); }; } &&
18029          { ac_try='test -s conftest$ac_exeext'
18030   { (case "(($ac_try" in
18031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18032   *) ac_try_echo=$ac_try;;
18033 esac
18034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18035   (eval "$ac_try") 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); }; }; then
18039   ac_cv_lib_gcc___chkstk=yes
18040 else
18041   echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18043
18044         ac_cv_lib_gcc___chkstk=no
18045 fi
18046
18047 rm -f core conftest.err conftest.$ac_objext \
18048       conftest$ac_exeext conftest.$ac_ext
18049 LIBS=$ac_check_lib_save_LIBS
18050 fi
18051 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18052 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18053 if test $ac_cv_lib_gcc___chkstk = yes; then
18054
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE___CHKSTK 1
18057 _ACEOF
18058
18059 fi
18060
18061   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18062 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18063 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18064   echo $ECHO_N "(cached) $ECHO_C" >&6
18065 else
18066   ac_check_lib_save_LIBS=$LIBS
18067 LIBS="-lgcc  $LIBS"
18068 cat >conftest.$ac_ext <<_ACEOF
18069 /* confdefs.h.  */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h.  */
18074
18075 /* Override any GCC internal prototype to avoid an error.
18076    Use char because int might match the return type of a GCC
18077    builtin and then its argument prototype would still apply.  */
18078 #ifdef __cplusplus
18079 extern "C"
18080 #endif
18081 char ___chkstk ();
18082 int
18083 main ()
18084 {
18085 return ___chkstk ();
18086   ;
18087   return 0;
18088 }
18089 _ACEOF
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (ac_try="$ac_link"
18092 case "(($ac_try" in
18093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094   *) ac_try_echo=$ac_try;;
18095 esac
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097   (eval "$ac_link") 2>conftest.er1
18098   ac_status=$?
18099   grep -v '^ *+' conftest.er1 >conftest.err
18100   rm -f conftest.er1
18101   cat conftest.err >&5
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); } &&
18104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18105   { (case "(($ac_try" in
18106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107   *) ac_try_echo=$ac_try;;
18108 esac
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110   (eval "$ac_try") 2>&5
18111   ac_status=$?
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); }; } &&
18114          { ac_try='test -s conftest$ac_exeext'
18115   { (case "(($ac_try" in
18116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117   *) ac_try_echo=$ac_try;;
18118 esac
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120   (eval "$ac_try") 2>&5
18121   ac_status=$?
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); }; }; then
18124   ac_cv_lib_gcc____chkstk=yes
18125 else
18126   echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18128
18129         ac_cv_lib_gcc____chkstk=no
18130 fi
18131
18132 rm -f core conftest.err conftest.$ac_objext \
18133       conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18135 fi
18136 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18137 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18138 if test $ac_cv_lib_gcc____chkstk = yes; then
18139
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE____CHKSTK 1
18142 _ACEOF
18143
18144 fi
18145
18146
18147   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18148 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18149 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18150   echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152   ac_check_lib_save_LIBS=$LIBS
18153 LIBS="-lgcc  $LIBS"
18154 cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160
18161 /* Override any GCC internal prototype to avoid an error.
18162    Use char because int might match the return type of a GCC
18163    builtin and then its argument prototype would still apply.  */
18164 #ifdef __cplusplus
18165 extern "C"
18166 #endif
18167 char __ashldi3 ();
18168 int
18169 main ()
18170 {
18171 return __ashldi3 ();
18172   ;
18173   return 0;
18174 }
18175 _ACEOF
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183   (eval "$ac_link") 2>conftest.er1
18184   ac_status=$?
18185   grep -v '^ *+' conftest.er1 >conftest.err
18186   rm -f conftest.er1
18187   cat conftest.err >&5
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); } &&
18190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18191   { (case "(($ac_try" in
18192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193   *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196   (eval "$ac_try") 2>&5
18197   ac_status=$?
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); }; } &&
18200          { ac_try='test -s conftest$ac_exeext'
18201   { (case "(($ac_try" in
18202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203   *) ac_try_echo=$ac_try;;
18204 esac
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206   (eval "$ac_try") 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; }; then
18210   ac_cv_lib_gcc___ashldi3=yes
18211 else
18212   echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215         ac_cv_lib_gcc___ashldi3=no
18216 fi
18217
18218 rm -f core conftest.err conftest.$ac_objext \
18219       conftest$ac_exeext conftest.$ac_ext
18220 LIBS=$ac_check_lib_save_LIBS
18221 fi
18222 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18223 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18224 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18225
18226 cat >>confdefs.h <<\_ACEOF
18227 #define HAVE___ASHLDI3 1
18228 _ACEOF
18229
18230 fi
18231
18232   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18233 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18234 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18235   echo $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237   ac_check_lib_save_LIBS=$LIBS
18238 LIBS="-lgcc  $LIBS"
18239 cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h.  */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h.  */
18245
18246 /* Override any GCC internal prototype to avoid an error.
18247    Use char because int might match the return type of a GCC
18248    builtin and then its argument prototype would still apply.  */
18249 #ifdef __cplusplus
18250 extern "C"
18251 #endif
18252 char __ashrdi3 ();
18253 int
18254 main ()
18255 {
18256 return __ashrdi3 ();
18257   ;
18258   return 0;
18259 }
18260 _ACEOF
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (ac_try="$ac_link"
18263 case "(($ac_try" in
18264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265   *) ac_try_echo=$ac_try;;
18266 esac
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268   (eval "$ac_link") 2>conftest.er1
18269   ac_status=$?
18270   grep -v '^ *+' conftest.er1 >conftest.err
18271   rm -f conftest.er1
18272   cat conftest.err >&5
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); } &&
18275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276   { (case "(($ac_try" in
18277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278   *) ac_try_echo=$ac_try;;
18279 esac
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281   (eval "$ac_try") 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; } &&
18285          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18295   ac_cv_lib_gcc___ashrdi3=yes
18296 else
18297   echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18299
18300         ac_cv_lib_gcc___ashrdi3=no
18301 fi
18302
18303 rm -f core conftest.err conftest.$ac_objext \
18304       conftest$ac_exeext conftest.$ac_ext
18305 LIBS=$ac_check_lib_save_LIBS
18306 fi
18307 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18308 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18309 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18310
18311 cat >>confdefs.h <<\_ACEOF
18312 #define HAVE___ASHRDI3 1
18313 _ACEOF
18314
18315 fi
18316
18317   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18318 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18319 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18320   echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322   ac_check_lib_save_LIBS=$LIBS
18323 LIBS="-lgcc  $LIBS"
18324 cat >conftest.$ac_ext <<_ACEOF
18325 /* confdefs.h.  */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h.  */
18330
18331 /* Override any GCC internal prototype to avoid an error.
18332    Use char because int might match the return type of a GCC
18333    builtin and then its argument prototype would still apply.  */
18334 #ifdef __cplusplus
18335 extern "C"
18336 #endif
18337 char __divdi3 ();
18338 int
18339 main ()
18340 {
18341 return __divdi3 ();
18342   ;
18343   return 0;
18344 }
18345 _ACEOF
18346 rm -f conftest.$ac_objext conftest$ac_exeext
18347 if { (ac_try="$ac_link"
18348 case "(($ac_try" in
18349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350   *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353   (eval "$ac_link") 2>conftest.er1
18354   ac_status=$?
18355   grep -v '^ *+' conftest.er1 >conftest.err
18356   rm -f conftest.er1
18357   cat conftest.err >&5
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } &&
18360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18361   { (case "(($ac_try" in
18362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363   *) ac_try_echo=$ac_try;;
18364 esac
18365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366   (eval "$ac_try") 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); }; } &&
18370          { ac_try='test -s conftest$ac_exeext'
18371   { (case "(($ac_try" in
18372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373   *) ac_try_echo=$ac_try;;
18374 esac
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376   (eval "$ac_try") 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; }; then
18380   ac_cv_lib_gcc___divdi3=yes
18381 else
18382   echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18384
18385         ac_cv_lib_gcc___divdi3=no
18386 fi
18387
18388 rm -f core conftest.err conftest.$ac_objext \
18389       conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18391 fi
18392 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18393 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18394 if test $ac_cv_lib_gcc___divdi3 = yes; then
18395
18396 cat >>confdefs.h <<\_ACEOF
18397 #define HAVE___DIVDI3 1
18398 _ACEOF
18399
18400 fi
18401
18402   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18403 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18404 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18405   echo $ECHO_N "(cached) $ECHO_C" >&6
18406 else
18407   ac_check_lib_save_LIBS=$LIBS
18408 LIBS="-lgcc  $LIBS"
18409 cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h.  */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h.  */
18415
18416 /* Override any GCC internal prototype to avoid an error.
18417    Use char because int might match the return type of a GCC
18418    builtin and then its argument prototype would still apply.  */
18419 #ifdef __cplusplus
18420 extern "C"
18421 #endif
18422 char __fixdfdi ();
18423 int
18424 main ()
18425 {
18426 return __fixdfdi ();
18427   ;
18428   return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435   *) ac_try_echo=$ac_try;;
18436 esac
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438   (eval "$ac_link") 2>conftest.er1
18439   ac_status=$?
18440   grep -v '^ *+' conftest.er1 >conftest.err
18441   rm -f conftest.er1
18442   cat conftest.err >&5
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); } &&
18445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18446   { (case "(($ac_try" in
18447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448   *) ac_try_echo=$ac_try;;
18449 esac
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451   (eval "$ac_try") 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }; } &&
18455          { ac_try='test -s conftest$ac_exeext'
18456   { (case "(($ac_try" in
18457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458   *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461   (eval "$ac_try") 2>&5
18462   ac_status=$?
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); }; }; then
18465   ac_cv_lib_gcc___fixdfdi=yes
18466 else
18467   echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18469
18470         ac_cv_lib_gcc___fixdfdi=no
18471 fi
18472
18473 rm -f core conftest.err conftest.$ac_objext \
18474       conftest$ac_exeext conftest.$ac_ext
18475 LIBS=$ac_check_lib_save_LIBS
18476 fi
18477 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18478 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18479 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18480
18481 cat >>confdefs.h <<\_ACEOF
18482 #define HAVE___FIXDFDI 1
18483 _ACEOF
18484
18485 fi
18486
18487   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18488 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18489 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18490   echo $ECHO_N "(cached) $ECHO_C" >&6
18491 else
18492   ac_check_lib_save_LIBS=$LIBS
18493 LIBS="-lgcc  $LIBS"
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h.  */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h.  */
18500
18501 /* Override any GCC internal prototype to avoid an error.
18502    Use char because int might match the return type of a GCC
18503    builtin and then its argument prototype would still apply.  */
18504 #ifdef __cplusplus
18505 extern "C"
18506 #endif
18507 char __fixsfdi ();
18508 int
18509 main ()
18510 {
18511 return __fixsfdi ();
18512   ;
18513   return 0;
18514 }
18515 _ACEOF
18516 rm -f conftest.$ac_objext conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520   *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523   (eval "$ac_link") 2>conftest.er1
18524   ac_status=$?
18525   grep -v '^ *+' conftest.er1 >conftest.err
18526   rm -f conftest.er1
18527   cat conftest.err >&5
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); } &&
18530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18531   { (case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_try") 2>&5
18537   ac_status=$?
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); }; } &&
18540          { ac_try='test -s conftest$ac_exeext'
18541   { (case "(($ac_try" in
18542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543   *) ac_try_echo=$ac_try;;
18544 esac
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546   (eval "$ac_try") 2>&5
18547   ac_status=$?
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); }; }; then
18550   ac_cv_lib_gcc___fixsfdi=yes
18551 else
18552   echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18554
18555         ac_cv_lib_gcc___fixsfdi=no
18556 fi
18557
18558 rm -f core conftest.err conftest.$ac_objext \
18559       conftest$ac_exeext conftest.$ac_ext
18560 LIBS=$ac_check_lib_save_LIBS
18561 fi
18562 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18563 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18564 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18565
18566 cat >>confdefs.h <<\_ACEOF
18567 #define HAVE___FIXSFDI 1
18568 _ACEOF
18569
18570 fi
18571
18572   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18573 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18574 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18575   echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577   ac_check_lib_save_LIBS=$LIBS
18578 LIBS="-lgcc  $LIBS"
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585
18586 /* Override any GCC internal prototype to avoid an error.
18587    Use char because int might match the return type of a GCC
18588    builtin and then its argument prototype would still apply.  */
18589 #ifdef __cplusplus
18590 extern "C"
18591 #endif
18592 char __floatdidf ();
18593 int
18594 main ()
18595 {
18596 return __floatdidf ();
18597   ;
18598   return 0;
18599 }
18600 _ACEOF
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (ac_try="$ac_link"
18603 case "(($ac_try" in
18604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605   *) ac_try_echo=$ac_try;;
18606 esac
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608   (eval "$ac_link") 2>conftest.er1
18609   ac_status=$?
18610   grep -v '^ *+' conftest.er1 >conftest.err
18611   rm -f conftest.er1
18612   cat conftest.err >&5
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); } &&
18615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18616   { (case "(($ac_try" in
18617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618   *) ac_try_echo=$ac_try;;
18619 esac
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621   (eval "$ac_try") 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); }; } &&
18625          { ac_try='test -s conftest$ac_exeext'
18626   { (case "(($ac_try" in
18627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628   *) ac_try_echo=$ac_try;;
18629 esac
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631   (eval "$ac_try") 2>&5
18632   ac_status=$?
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); }; }; then
18635   ac_cv_lib_gcc___floatdidf=yes
18636 else
18637   echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18639
18640         ac_cv_lib_gcc___floatdidf=no
18641 fi
18642
18643 rm -f core conftest.err conftest.$ac_objext \
18644       conftest$ac_exeext conftest.$ac_ext
18645 LIBS=$ac_check_lib_save_LIBS
18646 fi
18647 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18648 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18649 if test $ac_cv_lib_gcc___floatdidf = yes; then
18650
18651 cat >>confdefs.h <<\_ACEOF
18652 #define HAVE___FLOATDIDF 1
18653 _ACEOF
18654
18655 fi
18656
18657   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18658 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18659 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662   ac_check_lib_save_LIBS=$LIBS
18663 LIBS="-lgcc  $LIBS"
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670
18671 /* Override any GCC internal prototype to avoid an error.
18672    Use char because int might match the return type of a GCC
18673    builtin and then its argument prototype would still apply.  */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 char __lshrdi3 ();
18678 int
18679 main ()
18680 {
18681 return __lshrdi3 ();
18682   ;
18683   return 0;
18684 }
18685 _ACEOF
18686 rm -f conftest.$ac_objext conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690   *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693   (eval "$ac_link") 2>conftest.er1
18694   ac_status=$?
18695   grep -v '^ *+' conftest.er1 >conftest.err
18696   rm -f conftest.er1
18697   cat conftest.err >&5
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); } &&
18700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18701   { (case "(($ac_try" in
18702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703   *) ac_try_echo=$ac_try;;
18704 esac
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706   (eval "$ac_try") 2>&5
18707   ac_status=$?
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); }; } &&
18710          { ac_try='test -s conftest$ac_exeext'
18711   { (case "(($ac_try" in
18712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713   *) ac_try_echo=$ac_try;;
18714 esac
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716   (eval "$ac_try") 2>&5
18717   ac_status=$?
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); }; }; then
18720   ac_cv_lib_gcc___lshrdi3=yes
18721 else
18722   echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18724
18725         ac_cv_lib_gcc___lshrdi3=no
18726 fi
18727
18728 rm -f core conftest.err conftest.$ac_objext \
18729       conftest$ac_exeext conftest.$ac_ext
18730 LIBS=$ac_check_lib_save_LIBS
18731 fi
18732 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18733 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18734 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18735
18736 cat >>confdefs.h <<\_ACEOF
18737 #define HAVE___LSHRDI3 1
18738 _ACEOF
18739
18740 fi
18741
18742   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18743 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18744 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18745   echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747   ac_check_lib_save_LIBS=$LIBS
18748 LIBS="-lgcc  $LIBS"
18749 cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h.  */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h.  */
18755
18756 /* Override any GCC internal prototype to avoid an error.
18757    Use char because int might match the return type of a GCC
18758    builtin and then its argument prototype would still apply.  */
18759 #ifdef __cplusplus
18760 extern "C"
18761 #endif
18762 char __moddi3 ();
18763 int
18764 main ()
18765 {
18766 return __moddi3 ();
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775   *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778   (eval "$ac_link") 2>conftest.er1
18779   ac_status=$?
18780   grep -v '^ *+' conftest.er1 >conftest.err
18781   rm -f conftest.er1
18782   cat conftest.err >&5
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); } &&
18785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18786   { (case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791   (eval "$ac_try") 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }; } &&
18795          { ac_try='test -s conftest$ac_exeext'
18796   { (case "(($ac_try" in
18797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798   *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801   (eval "$ac_try") 2>&5
18802   ac_status=$?
18803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); }; }; then
18805   ac_cv_lib_gcc___moddi3=yes
18806 else
18807   echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18809
18810         ac_cv_lib_gcc___moddi3=no
18811 fi
18812
18813 rm -f core conftest.err conftest.$ac_objext \
18814       conftest$ac_exeext conftest.$ac_ext
18815 LIBS=$ac_check_lib_save_LIBS
18816 fi
18817 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18818 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18819 if test $ac_cv_lib_gcc___moddi3 = yes; then
18820
18821 cat >>confdefs.h <<\_ACEOF
18822 #define HAVE___MODDI3 1
18823 _ACEOF
18824
18825 fi
18826
18827   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18828 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18829 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18830   echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832   ac_check_lib_save_LIBS=$LIBS
18833 LIBS="-lgcc  $LIBS"
18834 cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h.  */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h.  */
18840
18841 /* Override any GCC internal prototype to avoid an error.
18842    Use char because int might match the return type of a GCC
18843    builtin and then its argument prototype would still apply.  */
18844 #ifdef __cplusplus
18845 extern "C"
18846 #endif
18847 char __udivdi3 ();
18848 int
18849 main ()
18850 {
18851 return __udivdi3 ();
18852   ;
18853   return 0;
18854 }
18855 _ACEOF
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (ac_try="$ac_link"
18858 case "(($ac_try" in
18859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860   *) ac_try_echo=$ac_try;;
18861 esac
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863   (eval "$ac_link") 2>conftest.er1
18864   ac_status=$?
18865   grep -v '^ *+' conftest.er1 >conftest.err
18866   rm -f conftest.er1
18867   cat conftest.err >&5
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); } &&
18870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18871   { (case "(($ac_try" in
18872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873   *) ac_try_echo=$ac_try;;
18874 esac
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876   (eval "$ac_try") 2>&5
18877   ac_status=$?
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); }; } &&
18880          { ac_try='test -s conftest$ac_exeext'
18881   { (case "(($ac_try" in
18882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883   *) ac_try_echo=$ac_try;;
18884 esac
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886   (eval "$ac_try") 2>&5
18887   ac_status=$?
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); }; }; then
18890   ac_cv_lib_gcc___udivdi3=yes
18891 else
18892   echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18894
18895         ac_cv_lib_gcc___udivdi3=no
18896 fi
18897
18898 rm -f core conftest.err conftest.$ac_objext \
18899       conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_check_lib_save_LIBS
18901 fi
18902 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18903 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18904 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18905
18906 cat >>confdefs.h <<\_ACEOF
18907 #define HAVE___UDIVDI3 1
18908 _ACEOF
18909
18910 fi
18911
18912   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18913 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18914 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917   ac_check_lib_save_LIBS=$LIBS
18918 LIBS="-lgcc  $LIBS"
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h.  */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h.  */
18925
18926 /* Override any GCC internal prototype to avoid an error.
18927    Use char because int might match the return type of a GCC
18928    builtin and then its argument prototype would still apply.  */
18929 #ifdef __cplusplus
18930 extern "C"
18931 #endif
18932 char __umoddi3 ();
18933 int
18934 main ()
18935 {
18936 return __umoddi3 ();
18937   ;
18938   return 0;
18939 }
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945   *) ac_try_echo=$ac_try;;
18946 esac
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948   (eval "$ac_link") 2>conftest.er1
18949   ac_status=$?
18950   grep -v '^ *+' conftest.er1 >conftest.err
18951   rm -f conftest.er1
18952   cat conftest.err >&5
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); } &&
18955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18956   { (case "(($ac_try" in
18957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958   *) ac_try_echo=$ac_try;;
18959 esac
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961   (eval "$ac_try") 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; } &&
18965          { ac_try='test -s conftest$ac_exeext'
18966   { (case "(($ac_try" in
18967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968   *) ac_try_echo=$ac_try;;
18969 esac
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971   (eval "$ac_try") 2>&5
18972   ac_status=$?
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); }; }; then
18975   ac_cv_lib_gcc___umoddi3=yes
18976 else
18977   echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18979
18980         ac_cv_lib_gcc___umoddi3=no
18981 fi
18982
18983 rm -f core conftest.err conftest.$ac_objext \
18984       conftest$ac_exeext conftest.$ac_ext
18985 LIBS=$ac_check_lib_save_LIBS
18986 fi
18987 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18988 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18989 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18990
18991 cat >>confdefs.h <<\_ACEOF
18992 #define HAVE___UMODDI3 1
18993 _ACEOF
18994
18995 fi
18996
18997
18998   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18999 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19000 if test "${ac_cv_lib_gcc___main+set}" = set; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   ac_check_lib_save_LIBS=$LIBS
19004 LIBS="-lgcc  $LIBS"
19005 cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h.  */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h.  */
19011
19012 /* Override any GCC internal prototype to avoid an error.
19013    Use char because int might match the return type of a GCC
19014    builtin and then its argument prototype would still apply.  */
19015 #ifdef __cplusplus
19016 extern "C"
19017 #endif
19018 char __main ();
19019 int
19020 main ()
19021 {
19022 return __main ();
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (ac_try="$ac_link"
19029 case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034   (eval "$ac_link") 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } &&
19041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19042   { (case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_try") 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; } &&
19051          { ac_try='test -s conftest$ac_exeext'
19052   { (case "(($ac_try" in
19053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054   *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057   (eval "$ac_try") 2>&5
19058   ac_status=$?
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); }; }; then
19061   ac_cv_lib_gcc___main=yes
19062 else
19063   echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066         ac_cv_lib_gcc___main=no
19067 fi
19068
19069 rm -f core conftest.err conftest.$ac_objext \
19070       conftest$ac_exeext conftest.$ac_ext
19071 LIBS=$ac_check_lib_save_LIBS
19072 fi
19073 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19074 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19075 if test $ac_cv_lib_gcc___main = yes; then
19076
19077 cat >>confdefs.h <<\_ACEOF
19078 #define HAVE___MAIN 1
19079 _ACEOF
19080
19081 fi
19082
19083   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19084 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19085 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19086   echo $ECHO_N "(cached) $ECHO_C" >&6
19087 else
19088   ac_check_lib_save_LIBS=$LIBS
19089 LIBS="-lgcc  $LIBS"
19090 cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096
19097 /* Override any GCC internal prototype to avoid an error.
19098    Use char because int might match the return type of a GCC
19099    builtin and then its argument prototype would still apply.  */
19100 #ifdef __cplusplus
19101 extern "C"
19102 #endif
19103 char __cmpdi2 ();
19104 int
19105 main ()
19106 {
19107 return __cmpdi2 ();
19108   ;
19109   return 0;
19110 }
19111 _ACEOF
19112 rm -f conftest.$ac_objext conftest$ac_exeext
19113 if { (ac_try="$ac_link"
19114 case "(($ac_try" in
19115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116   *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119   (eval "$ac_link") 2>conftest.er1
19120   ac_status=$?
19121   grep -v '^ *+' conftest.er1 >conftest.err
19122   rm -f conftest.er1
19123   cat conftest.err >&5
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); } &&
19126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19127   { (case "(($ac_try" in
19128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129   *) ac_try_echo=$ac_try;;
19130 esac
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132   (eval "$ac_try") 2>&5
19133   ac_status=$?
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); }; } &&
19136          { ac_try='test -s conftest$ac_exeext'
19137   { (case "(($ac_try" in
19138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139   *) ac_try_echo=$ac_try;;
19140 esac
19141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142   (eval "$ac_try") 2>&5
19143   ac_status=$?
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); }; }; then
19146   ac_cv_lib_gcc___cmpdi2=yes
19147 else
19148   echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151         ac_cv_lib_gcc___cmpdi2=no
19152 fi
19153
19154 rm -f core conftest.err conftest.$ac_objext \
19155       conftest$ac_exeext conftest.$ac_ext
19156 LIBS=$ac_check_lib_save_LIBS
19157 fi
19158 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19159 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19160 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19161
19162 cat >>confdefs.h <<\_ACEOF
19163 #define HAVE___CMPDI2 1
19164 _ACEOF
19165
19166 fi
19167
19168 fi
19169
19170 if test "$llvm_cv_os_type" = "MingW" ; then
19171   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19172 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19173   cat >conftest.$ac_ext <<_ACEOF
19174 #include <windows.h>
19175 #include <imagehlp.h>
19176 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19177 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19178 _ACEOF
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186   (eval "$ac_compile") 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194   { (case "(($ac_try" in
19195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196   *) ac_try_echo=$ac_try;;
19197 esac
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199   (eval "$ac_try") 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; } &&
19203          { ac_try='test -s conftest.$ac_objext'
19204   { (case "(($ac_try" in
19205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206   *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209   (eval "$ac_try") 2>&5
19210   ac_status=$?
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); }; }; then
19213
19214   { echo "$as_me:$LINENO: result: yes" >&5
19215 echo "${ECHO_T}yes" >&6; }
19216   llvm_cv_win32_elmcb_pcstr="PCSTR"
19217
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222
19223   { echo "$as_me:$LINENO: result: no" >&5
19224 echo "${ECHO_T}no" >&6; }
19225   llvm_cv_win32_elmcb_pcstr="PSTR"
19226
19227 fi
19228
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230
19231 cat >>confdefs.h <<_ACEOF
19232 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19233 _ACEOF
19234
19235 fi
19236
19237
19238 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19239 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19240 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19241   echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243   ac_ext=cpp
19244 ac_cpp='$CXXCPP $CPPFLAGS'
19245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19248
19249    cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255 #include <math.h>
19256 int
19257 main ()
19258 {
19259 float f; isnan(f);
19260   ;
19261   return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest.$ac_objext
19265 if { (ac_try="$ac_compile"
19266 case "(($ac_try" in
19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268   *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271   (eval "$ac_compile") 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } &&
19278          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19279   { (case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_try") 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); }; } &&
19288          { ac_try='test -s conftest.$ac_objext'
19289   { (case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_try") 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_func_isnan_in_math_h=yes
19299 else
19300   echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303         ac_cv_func_isnan_in_math_h=no
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307   ac_ext=c
19308 ac_cpp='$CPP $CPPFLAGS'
19309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19312
19313 fi
19314 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19315 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19316
19317
19318 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19319
19320 cat >>confdefs.h <<\_ACEOF
19321 #define HAVE_ISNAN_IN_MATH_H 1
19322 _ACEOF
19323
19324 fi
19325
19326 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19327 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19328 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19329   echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331   ac_ext=cpp
19332 ac_cpp='$CXXCPP $CPPFLAGS'
19333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19336
19337    cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343 #include <cmath>
19344 int
19345 main ()
19346 {
19347 float f; isnan(f);
19348   ;
19349   return 0;
19350 }
19351 _ACEOF
19352 rm -f conftest.$ac_objext
19353 if { (ac_try="$ac_compile"
19354 case "(($ac_try" in
19355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356   *) ac_try_echo=$ac_try;;
19357 esac
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359   (eval "$ac_compile") 2>conftest.er1
19360   ac_status=$?
19361   grep -v '^ *+' conftest.er1 >conftest.err
19362   rm -f conftest.er1
19363   cat conftest.err >&5
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } &&
19366          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19367   { (case "(($ac_try" in
19368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369   *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372   (eval "$ac_try") 2>&5
19373   ac_status=$?
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); }; } &&
19376          { ac_try='test -s conftest.$ac_objext'
19377   { (case "(($ac_try" in
19378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379   *) ac_try_echo=$ac_try;;
19380 esac
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382   (eval "$ac_try") 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; }; then
19386   ac_cv_func_isnan_in_cmath=yes
19387 else
19388   echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391         ac_cv_func_isnan_in_cmath=no
19392 fi
19393
19394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19395   ac_ext=c
19396 ac_cpp='$CPP $CPPFLAGS'
19397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19400
19401 fi
19402 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19403 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19404
19405 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19406
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE_ISNAN_IN_CMATH 1
19409 _ACEOF
19410
19411 fi
19412
19413 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19414 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19415 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19416   echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418   ac_ext=cpp
19419 ac_cpp='$CXXCPP $CPPFLAGS'
19420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19423
19424    cat >conftest.$ac_ext <<_ACEOF
19425 /* confdefs.h.  */
19426 _ACEOF
19427 cat confdefs.h >>conftest.$ac_ext
19428 cat >>conftest.$ac_ext <<_ACEOF
19429 /* end confdefs.h.  */
19430 #include <cmath>
19431 int
19432 main ()
19433 {
19434 float f; std::isnan(f);
19435   ;
19436   return 0;
19437 }
19438 _ACEOF
19439 rm -f conftest.$ac_objext
19440 if { (ac_try="$ac_compile"
19441 case "(($ac_try" in
19442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443   *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446   (eval "$ac_compile") 2>conftest.er1
19447   ac_status=$?
19448   grep -v '^ *+' conftest.er1 >conftest.err
19449   rm -f conftest.er1
19450   cat conftest.err >&5
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } &&
19453          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19454   { (case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_try") 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; } &&
19463          { ac_try='test -s conftest.$ac_objext'
19464   { (case "(($ac_try" in
19465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466   *) ac_try_echo=$ac_try;;
19467 esac
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469   (eval "$ac_try") 2>&5
19470   ac_status=$?
19471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472   (exit $ac_status); }; }; then
19473   ac_cv_func_std_isnan_in_cmath=yes
19474 else
19475   echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19477
19478         ac_cv_func_std_isnan_in_cmath=no
19479 fi
19480
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482   ac_ext=c
19483 ac_cpp='$CPP $CPPFLAGS'
19484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19487
19488 fi
19489 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19490 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19491
19492 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19493
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE_STD_ISNAN_IN_CMATH 1
19496 _ACEOF
19497
19498 fi
19499
19500
19501 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19502 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19503 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19504   echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506   ac_ext=cpp
19507 ac_cpp='$CXXCPP $CPPFLAGS'
19508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19511
19512    cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518 #include <math.h>
19519 int
19520 main ()
19521 {
19522 float f; isinf(f);
19523   ;
19524   return 0;
19525 }
19526 _ACEOF
19527 rm -f conftest.$ac_objext
19528 if { (ac_try="$ac_compile"
19529 case "(($ac_try" in
19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531   *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534   (eval "$ac_compile") 2>conftest.er1
19535   ac_status=$?
19536   grep -v '^ *+' conftest.er1 >conftest.err
19537   rm -f conftest.er1
19538   cat conftest.err >&5
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } &&
19541          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19542   { (case "(($ac_try" in
19543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544   *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547   (eval "$ac_try") 2>&5
19548   ac_status=$?
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); }; } &&
19551          { ac_try='test -s conftest.$ac_objext'
19552   { (case "(($ac_try" in
19553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554   *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557   (eval "$ac_try") 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; }; then
19561   ac_cv_func_isinf_in_math_h=yes
19562 else
19563   echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566         ac_cv_func_isinf_in_math_h=no
19567 fi
19568
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570   ac_ext=c
19571 ac_cpp='$CPP $CPPFLAGS'
19572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19575
19576 fi
19577 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19578 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19579
19580 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19581
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_ISINF_IN_MATH_H 1
19584 _ACEOF
19585
19586 fi
19587
19588 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19589 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   ac_ext=cpp
19594 ac_cpp='$CXXCPP $CPPFLAGS'
19595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19598
19599    cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h.  */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h.  */
19605 #include <cmath>
19606 int
19607 main ()
19608 {
19609 float f; isinf(f);
19610   ;
19611   return 0;
19612 }
19613 _ACEOF
19614 rm -f conftest.$ac_objext
19615 if { (ac_try="$ac_compile"
19616 case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_compile") 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } &&
19628          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19629   { (case "(($ac_try" in
19630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631   *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634   (eval "$ac_try") 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; } &&
19638          { ac_try='test -s conftest.$ac_objext'
19639   { (case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644   (eval "$ac_try") 2>&5
19645   ac_status=$?
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); }; }; then
19648   ac_cv_func_isinf_in_cmath=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653         ac_cv_func_isinf_in_cmath=no
19654 fi
19655
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657   ac_ext=c
19658 ac_cpp='$CPP $CPPFLAGS'
19659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19662
19663 fi
19664 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19665 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19666
19667 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE_ISINF_IN_CMATH 1
19671 _ACEOF
19672
19673 fi
19674
19675 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19676 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19677 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19678   echo $ECHO_N "(cached) $ECHO_C" >&6
19679 else
19680   ac_ext=cpp
19681 ac_cpp='$CXXCPP $CPPFLAGS'
19682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19685
19686    cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 #include <cmath>
19693 int
19694 main ()
19695 {
19696 float f; std::isinf(f)}
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext
19702 if { (ac_try="$ac_compile"
19703 case "(($ac_try" in
19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705   *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708   (eval "$ac_compile") 2>conftest.er1
19709   ac_status=$?
19710   grep -v '^ *+' conftest.er1 >conftest.err
19711   rm -f conftest.er1
19712   cat conftest.err >&5
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); } &&
19715          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19716   { (case "(($ac_try" in
19717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718   *) ac_try_echo=$ac_try;;
19719 esac
19720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721   (eval "$ac_try") 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; } &&
19725          { ac_try='test -s conftest.$ac_objext'
19726   { (case "(($ac_try" in
19727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728   *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731   (eval "$ac_try") 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   ac_cv_func_std_isinf_in_cmath=yes
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740         ac_cv_func_std_isinf_in_cmath=no
19741 fi
19742
19743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19744   ac_ext=c
19745 ac_cpp='$CPP $CPPFLAGS'
19746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19749
19750 fi
19751 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19752 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19753
19754 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19755
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_STD_ISINF_IN_CMATH 1
19758 _ACEOF
19759
19760 fi
19761
19762 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19763 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19764 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19765   echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767   ac_ext=cpp
19768 ac_cpp='$CXXCPP $CPPFLAGS'
19769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19772
19773    cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779 #include <ieeefp.h>
19780 int
19781 main ()
19782 {
19783 float f; finite(f);
19784   ;
19785   return 0;
19786 }
19787 _ACEOF
19788 rm -f conftest.$ac_objext
19789 if { (ac_try="$ac_compile"
19790 case "(($ac_try" in
19791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792   *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795   (eval "$ac_compile") 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19803   { (case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808   (eval "$ac_try") 2>&5
19809   ac_status=$?
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); }; } &&
19812          { ac_try='test -s conftest.$ac_objext'
19813   { (case "(($ac_try" in
19814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815   *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818   (eval "$ac_try") 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; }; then
19822   ac_cv_func_finite_in_ieeefp_h=yes
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827         ac_cv_func_finite_in_ieeefp_h=no
19828 fi
19829
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831   ac_ext=c
19832 ac_cpp='$CPP $CPPFLAGS'
19833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19836
19837 fi
19838 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19839 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19840
19841 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19842
19843 cat >>confdefs.h <<\_ACEOF
19844 #define HAVE_FINITE_IN_IEEEFP_H 1
19845 _ACEOF
19846
19847 fi
19848
19849
19850
19851 if test "$llvm_cv_platform_type" = "Unix" ; then
19852
19853
19854 for ac_header in stdlib.h unistd.h
19855 do
19856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19858   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 fi
19863 ac_res=`eval echo '${'$as_ac_Header'}'`
19864                { echo "$as_me:$LINENO: result: $ac_res" >&5
19865 echo "${ECHO_T}$ac_res" >&6; }
19866 else
19867   # Is the header compilable?
19868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19870 cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876 $ac_includes_default
19877 #include <$ac_header>
19878 _ACEOF
19879 rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_compile") 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } &&
19893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19894   { (case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_try") 2>&5
19900   ac_status=$?
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); }; } &&
19903          { ac_try='test -s conftest.$ac_objext'
19904   { (case "(($ac_try" in
19905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906   *) ac_try_echo=$ac_try;;
19907 esac
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909   (eval "$ac_try") 2>&5
19910   ac_status=$?
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); }; }; then
19913   ac_header_compiler=yes
19914 else
19915   echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19917
19918         ac_header_compiler=no
19919 fi
19920
19921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19923 echo "${ECHO_T}$ac_header_compiler" >&6; }
19924
19925 # Is the header present?
19926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19928 cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934 #include <$ac_header>
19935 _ACEOF
19936 if { (ac_try="$ac_cpp conftest.$ac_ext"
19937 case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } >/dev/null; then
19949   if test -s conftest.err; then
19950     ac_cpp_err=$ac_c_preproc_warn_flag
19951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19952   else
19953     ac_cpp_err=
19954   fi
19955 else
19956   ac_cpp_err=yes
19957 fi
19958 if test -z "$ac_cpp_err"; then
19959   ac_header_preproc=yes
19960 else
19961   echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964   ac_header_preproc=no
19965 fi
19966
19967 rm -f conftest.err conftest.$ac_ext
19968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19969 echo "${ECHO_T}$ac_header_preproc" >&6; }
19970
19971 # So?  What about this header?
19972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19973   yes:no: )
19974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19978     ac_header_preproc=yes
19979     ;;
19980   no:yes:* )
19981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19993     ( cat <<\_ASBOX
19994 ## ------------------------------ ##
19995 ## Report this to bugs@yourdomain ##
19996 ## ------------------------------ ##
19997 _ASBOX
19998      ) | sed "s/^/$as_me: WARNING:     /" >&2
19999     ;;
20000 esac
20001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   eval "$as_ac_Header=\$ac_header_preproc"
20007 fi
20008 ac_res=`eval echo '${'$as_ac_Header'}'`
20009                { echo "$as_me:$LINENO: result: $ac_res" >&5
20010 echo "${ECHO_T}$ac_res" >&6; }
20011
20012 fi
20013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20014   cat >>confdefs.h <<_ACEOF
20015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20016 _ACEOF
20017
20018 fi
20019
20020 done
20021
20022
20023 for ac_func in getpagesize
20024 do
20025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20029   echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031   cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h.  */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h.  */
20037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20039 #define $ac_func innocuous_$ac_func
20040
20041 /* System header to define __stub macros and hopefully few prototypes,
20042     which can conflict with char $ac_func (); below.
20043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20044     <limits.h> exists even on freestanding compilers.  */
20045
20046 #ifdef __STDC__
20047 # include <limits.h>
20048 #else
20049 # include <assert.h>
20050 #endif
20051
20052 #undef $ac_func
20053
20054 /* Override any GCC internal prototype to avoid an error.
20055    Use char because int might match the return type of a GCC
20056    builtin and then its argument prototype would still apply.  */
20057 #ifdef __cplusplus
20058 extern "C"
20059 #endif
20060 char $ac_func ();
20061 /* The GNU C library defines this for functions which it implements
20062     to always fail with ENOSYS.  Some functions are actually named
20063     something starting with __ and the normal name is an alias.  */
20064 #if defined __stub_$ac_func || defined __stub___$ac_func
20065 choke me
20066 #endif
20067
20068 int
20069 main ()
20070 {
20071 return $ac_func ();
20072   ;
20073   return 0;
20074 }
20075 _ACEOF
20076 rm -f conftest.$ac_objext conftest$ac_exeext
20077 if { (ac_try="$ac_link"
20078 case "(($ac_try" in
20079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080   *) ac_try_echo=$ac_try;;
20081 esac
20082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083   (eval "$ac_link") 2>conftest.er1
20084   ac_status=$?
20085   grep -v '^ *+' conftest.er1 >conftest.err
20086   rm -f conftest.er1
20087   cat conftest.err >&5
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } &&
20090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20091   { (case "(($ac_try" in
20092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093   *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096   (eval "$ac_try") 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; } &&
20100          { ac_try='test -s conftest$ac_exeext'
20101   { (case "(($ac_try" in
20102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103   *) ac_try_echo=$ac_try;;
20104 esac
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106   (eval "$ac_try") 2>&5
20107   ac_status=$?
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); }; }; then
20110   eval "$as_ac_var=yes"
20111 else
20112   echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115         eval "$as_ac_var=no"
20116 fi
20117
20118 rm -f core conftest.err conftest.$ac_objext \
20119       conftest$ac_exeext conftest.$ac_ext
20120 fi
20121 ac_res=`eval echo '${'$as_ac_var'}'`
20122                { echo "$as_me:$LINENO: result: $ac_res" >&5
20123 echo "${ECHO_T}$ac_res" >&6; }
20124 if test `eval echo '${'$as_ac_var'}'` = yes; then
20125   cat >>confdefs.h <<_ACEOF
20126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20127 _ACEOF
20128
20129 fi
20130 done
20131
20132 { echo "$as_me:$LINENO: checking for working mmap" >&5
20133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20135   echo $ECHO_N "(cached) $ECHO_C" >&6
20136 else
20137   if test "$cross_compiling" = yes; then
20138   ac_cv_func_mmap_fixed_mapped=no
20139 else
20140   cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h.  */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h.  */
20146 $ac_includes_default
20147 /* malloc might have been renamed as rpl_malloc. */
20148 #undef malloc
20149
20150 /* Thanks to Mike Haertel and Jim Avera for this test.
20151    Here is a matrix of mmap possibilities:
20152         mmap private not fixed
20153         mmap private fixed at somewhere currently unmapped
20154         mmap private fixed at somewhere already mapped
20155         mmap shared not fixed
20156         mmap shared fixed at somewhere currently unmapped
20157         mmap shared fixed at somewhere already mapped
20158    For private mappings, we should verify that changes cannot be read()
20159    back from the file, nor mmap's back from the file at a different
20160    address.  (There have been systems where private was not correctly
20161    implemented like the infamous i386 svr4.0, and systems where the
20162    VM page cache was not coherent with the file system buffer cache
20163    like early versions of FreeBSD and possibly contemporary NetBSD.)
20164    For shared mappings, we should conversely verify that changes get
20165    propagated back to all the places they're supposed to be.
20166
20167    Grep wants private fixed already mapped.
20168    The main things grep needs to know about mmap are:
20169    * does it exist and is it safe to write into the mmap'd area
20170    * how to use it (BSD variants)  */
20171
20172 #include <fcntl.h>
20173 #include <sys/mman.h>
20174
20175 #if !STDC_HEADERS && !HAVE_STDLIB_H
20176 char *malloc ();
20177 #endif
20178
20179 /* This mess was copied from the GNU getpagesize.h.  */
20180 #if !HAVE_GETPAGESIZE
20181 /* Assume that all systems that can run configure have sys/param.h.  */
20182 # if !HAVE_SYS_PARAM_H
20183 #  define HAVE_SYS_PARAM_H 1
20184 # endif
20185
20186 # ifdef _SC_PAGESIZE
20187 #  define getpagesize() sysconf(_SC_PAGESIZE)
20188 # else /* no _SC_PAGESIZE */
20189 #  if HAVE_SYS_PARAM_H
20190 #   include <sys/param.h>
20191 #   ifdef EXEC_PAGESIZE
20192 #    define getpagesize() EXEC_PAGESIZE
20193 #   else /* no EXEC_PAGESIZE */
20194 #    ifdef NBPG
20195 #     define getpagesize() NBPG * CLSIZE
20196 #     ifndef CLSIZE
20197 #      define CLSIZE 1
20198 #     endif /* no CLSIZE */
20199 #    else /* no NBPG */
20200 #     ifdef NBPC
20201 #      define getpagesize() NBPC
20202 #     else /* no NBPC */
20203 #      ifdef PAGESIZE
20204 #       define getpagesize() PAGESIZE
20205 #      endif /* PAGESIZE */
20206 #     endif /* no NBPC */
20207 #    endif /* no NBPG */
20208 #   endif /* no EXEC_PAGESIZE */
20209 #  else /* no HAVE_SYS_PARAM_H */
20210 #   define getpagesize() 8192   /* punt totally */
20211 #  endif /* no HAVE_SYS_PARAM_H */
20212 # endif /* no _SC_PAGESIZE */
20213
20214 #endif /* no HAVE_GETPAGESIZE */
20215
20216 int
20217 main ()
20218 {
20219   char *data, *data2, *data3;
20220   int i, pagesize;
20221   int fd;
20222
20223   pagesize = getpagesize ();
20224
20225   /* First, make a file with some known garbage in it. */
20226   data = (char *) malloc (pagesize);
20227   if (!data)
20228     return 1;
20229   for (i = 0; i < pagesize; ++i)
20230     *(data + i) = rand ();
20231   umask (0);
20232   fd = creat ("conftest.mmap", 0600);
20233   if (fd < 0)
20234     return 1;
20235   if (write (fd, data, pagesize) != pagesize)
20236     return 1;
20237   close (fd);
20238
20239   /* Next, try to mmap the file at a fixed address which already has
20240      something else allocated at it.  If we can, also make sure that
20241      we see the same garbage.  */
20242   fd = open ("conftest.mmap", O_RDWR);
20243   if (fd < 0)
20244     return 1;
20245   data2 = (char *) malloc (2 * pagesize);
20246   if (!data2)
20247     return 1;
20248   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20249   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20250                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20251     return 1;
20252   for (i = 0; i < pagesize; ++i)
20253     if (*(data + i) != *(data2 + i))
20254       return 1;
20255
20256   /* Finally, make sure that changes to the mapped area do not
20257      percolate back to the file as seen by read().  (This is a bug on
20258      some variants of i386 svr4.0.)  */
20259   for (i = 0; i < pagesize; ++i)
20260     *(data2 + i) = *(data2 + i) + 1;
20261   data3 = (char *) malloc (pagesize);
20262   if (!data3)
20263     return 1;
20264   if (read (fd, data3, pagesize) != pagesize)
20265     return 1;
20266   for (i = 0; i < pagesize; ++i)
20267     if (*(data + i) != *(data3 + i))
20268       return 1;
20269   close (fd);
20270   return 0;
20271 }
20272 _ACEOF
20273 rm -f conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277   *) ac_try_echo=$ac_try;;
20278 esac
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280   (eval "$ac_link") 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20284   { (case "(($ac_try" in
20285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286   *) ac_try_echo=$ac_try;;
20287 esac
20288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289   (eval "$ac_try") 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   ac_cv_func_mmap_fixed_mapped=yes
20294 else
20295   echo "$as_me: program exited with status $ac_status" >&5
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ( exit $ac_status )
20300 ac_cv_func_mmap_fixed_mapped=no
20301 fi
20302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20303 fi
20304
20305
20306 fi
20307 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20308 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20309 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20310
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_MMAP 1
20313 _ACEOF
20314
20315 fi
20316 rm -f conftest.mmap
20317
20318   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20319 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20320 if test "${ac_cv_func_mmap_file+set}" = set; then
20321   echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323    ac_ext=c
20324 ac_cpp='$CPP $CPPFLAGS'
20325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20328
20329   if test "$cross_compiling" = yes; then
20330   ac_cv_func_mmap_file=no
20331 else
20332   cat >conftest.$ac_ext <<_ACEOF
20333
20334     /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339
20340 #include <sys/types.h>
20341 #include <sys/mman.h>
20342 #include <fcntl.h>
20343
20344 int
20345 main ()
20346 {
20347
20348   int fd;
20349   fd = creat ("foo",0777);
20350   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20351   unlink ("foo");
20352   return (fd != (int) MAP_FAILED);
20353   ;
20354   return 0;
20355 }
20356 _ACEOF
20357 rm -f conftest$ac_exeext
20358 if { (ac_try="$ac_link"
20359 case "(($ac_try" in
20360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361   *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364   (eval "$ac_link") 2>&5
20365   ac_status=$?
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20368   { (case "(($ac_try" in
20369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370   *) ac_try_echo=$ac_try;;
20371 esac
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373   (eval "$ac_try") 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; }; then
20377   ac_cv_func_mmap_file=yes
20378 else
20379   echo "$as_me: program exited with status $ac_status" >&5
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383 ( exit $ac_status )
20384 ac_cv_func_mmap_file=no
20385 fi
20386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20387 fi
20388
20389
20390   ac_ext=c
20391 ac_cpp='$CPP $CPPFLAGS'
20392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20395
20396
20397 fi
20398 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20399 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20400 if test "$ac_cv_func_mmap_file" = yes; then
20401
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE_MMAP_FILE
20404 _ACEOF
20405
20406    MMAP_FILE=yes
20407
20408 fi
20409
20410   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20411 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20412 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20413   echo $ECHO_N "(cached) $ECHO_C" >&6
20414 else
20415   if test "$llvm_cv_os_type" = "Interix" ; then
20416    ac_cv_need_dev_zero_for_mmap=yes
20417  else
20418    ac_cv_need_dev_zero_for_mmap=no
20419  fi
20420
20421 fi
20422 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20423 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20424 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20425
20426 cat >>confdefs.h <<\_ACEOF
20427 #define NEED_DEV_ZERO_FOR_MMAP 1
20428 _ACEOF
20429
20430 fi
20431
20432   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20433   then
20434     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20435 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20436   fi
20437   if test "$ac_cv_func_mmap_file" = "no"
20438   then
20439     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20440 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20441   fi
20442 fi
20443
20444 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20445 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20446 ac_ext=cpp
20447 ac_cpp='$CXXCPP $CPPFLAGS'
20448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20451
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h.  */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h.  */
20458 int main() {
20459         volatile unsigned long val = 1;
20460         __sync_synchronize();
20461         __sync_val_compare_and_swap(&val, 1, 0);
20462         __sync_add_and_fetch(&val, 1);
20463         __sync_sub_and_fetch(&val, 1);
20464         return 0;
20465       }
20466
20467 _ACEOF
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (ac_try="$ac_link"
20470 case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_link") 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } &&
20482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20483   { (case "(($ac_try" in
20484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485   *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488   (eval "$ac_try") 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; } &&
20492          { ac_try='test -s conftest$ac_exeext'
20493   { (case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498   (eval "$ac_try") 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; }; then
20502   ac_ext=c
20503 ac_cpp='$CPP $CPPFLAGS'
20504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20507
20508   { echo "$as_me:$LINENO: result: yes" >&5
20509 echo "${ECHO_T}yes" >&6; }
20510
20511 cat >>confdefs.h <<\_ACEOF
20512 #define LLVM_HAS_ATOMICS 1
20513 _ACEOF
20514
20515 else
20516   echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518
20519         { echo "$as_me:$LINENO: result: no" >&5
20520 echo "${ECHO_T}no" >&6; }
20521
20522 cat >>confdefs.h <<\_ACEOF
20523 #define LLVM_HAS_ATOMICS 0
20524 _ACEOF
20525
20526   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20527 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20528 fi
20529
20530 rm -f core conftest.err conftest.$ac_objext \
20531       conftest$ac_exeext conftest.$ac_ext
20532
20533
20534 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20535   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20536 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20537 if test "${llvm_cv_linux_mixed+set}" = set; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540    ac_ext=c
20541 ac_cpp='$CPP $CPPFLAGS'
20542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20545
20546   cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552 #ifndef __x86_64__
20553        error: Not x86-64 even if uname says so!
20554       #endif
20555
20556 int
20557 main ()
20558 {
20559
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_compile") 2>conftest.er1
20572   ac_status=$?
20573   grep -v '^ *+' conftest.er1 >conftest.err
20574   rm -f conftest.er1
20575   cat conftest.err >&5
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); } &&
20578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20579   { (case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_try") 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; } &&
20588          { ac_try='test -s conftest.$ac_objext'
20589   { (case "(($ac_try" in
20590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591   *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594   (eval "$ac_try") 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; }; then
20598   llvm_cv_linux_mixed=no
20599 else
20600   echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603         llvm_cv_linux_mixed=yes
20604 fi
20605
20606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607   ac_ext=c
20608 ac_cpp='$CPP $CPPFLAGS'
20609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20612
20613
20614 fi
20615 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20616 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20617
20618   if test "$llvm_cv_linux_mixed" = "yes"; then
20619     llvm_cv_target_arch="x86"
20620     ARCH="x86"
20621   fi
20622 fi
20623
20624
20625 for ac_func in __dso_handle
20626 do
20627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20631   echo $ECHO_N "(cached) $ECHO_C" >&6
20632 else
20633   cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20641 #define $ac_func innocuous_$ac_func
20642
20643 /* System header to define __stub macros and hopefully few prototypes,
20644     which can conflict with char $ac_func (); below.
20645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20646     <limits.h> exists even on freestanding compilers.  */
20647
20648 #ifdef __STDC__
20649 # include <limits.h>
20650 #else
20651 # include <assert.h>
20652 #endif
20653
20654 #undef $ac_func
20655
20656 /* Override any GCC internal prototype to avoid an error.
20657    Use char because int might match the return type of a GCC
20658    builtin and then its argument prototype would still apply.  */
20659 #ifdef __cplusplus
20660 extern "C"
20661 #endif
20662 char $ac_func ();
20663 /* The GNU C library defines this for functions which it implements
20664     to always fail with ENOSYS.  Some functions are actually named
20665     something starting with __ and the normal name is an alias.  */
20666 #if defined __stub_$ac_func || defined __stub___$ac_func
20667 choke me
20668 #endif
20669
20670 int
20671 main ()
20672 {
20673 return $ac_func ();
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682   *) ac_try_echo=$ac_try;;
20683 esac
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685   (eval "$ac_link") 2>conftest.er1
20686   ac_status=$?
20687   grep -v '^ *+' conftest.er1 >conftest.err
20688   rm -f conftest.er1
20689   cat conftest.err >&5
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); } &&
20692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20693   { (case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_try") 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; } &&
20702          { ac_try='test -s conftest$ac_exeext'
20703   { (case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_try") 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; }; then
20712   eval "$as_ac_var=yes"
20713 else
20714   echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20716
20717         eval "$as_ac_var=no"
20718 fi
20719
20720 rm -f core conftest.err conftest.$ac_objext \
20721       conftest$ac_exeext conftest.$ac_ext
20722 fi
20723 ac_res=`eval echo '${'$as_ac_var'}'`
20724                { echo "$as_me:$LINENO: result: $ac_res" >&5
20725 echo "${ECHO_T}$ac_res" >&6; }
20726 if test `eval echo '${'$as_ac_var'}'` = yes; then
20727   cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20729 _ACEOF
20730
20731 fi
20732 done
20733
20734
20735 SHLIBEXT=$libltdl_cv_shlibext
20736
20737
20738 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20739
20740
20741 # Translate the various configuration directories and other basic
20742 # information into substitutions that will end up in Makefile.config.in
20743 # that these configured values can be used by the makefiles
20744 if test "${prefix}" = "NONE" ; then
20745   prefix="/usr/local"
20746 fi
20747 eval LLVM_PREFIX="${prefix}";
20748 eval LLVM_BINDIR="${prefix}/bin";
20749 eval LLVM_LIBDIR="${prefix}/lib";
20750 eval LLVM_DATADIR="${prefix}/share/llvm";
20751 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20752 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20753 eval LLVM_INCLUDEDIR="${prefix}/include";
20754 eval LLVM_INFODIR="${prefix}/info";
20755 eval LLVM_MANDIR="${prefix}/man";
20756 LLVM_CONFIGTIME=`date`
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768 # Place the various directores into the config.h file as #defines so that we
20769 # can know about the installation paths within LLVM.
20770
20771 cat >>confdefs.h <<_ACEOF
20772 #define LLVM_PREFIX "$LLVM_PREFIX"
20773 _ACEOF
20774
20775
20776 cat >>confdefs.h <<_ACEOF
20777 #define LLVM_BINDIR "$LLVM_BINDIR"
20778 _ACEOF
20779
20780
20781 cat >>confdefs.h <<_ACEOF
20782 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20783 _ACEOF
20784
20785
20786 cat >>confdefs.h <<_ACEOF
20787 #define LLVM_DATADIR "$LLVM_DATADIR"
20788 _ACEOF
20789
20790
20791 cat >>confdefs.h <<_ACEOF
20792 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20793 _ACEOF
20794
20795
20796 cat >>confdefs.h <<_ACEOF
20797 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20798 _ACEOF
20799
20800
20801 cat >>confdefs.h <<_ACEOF
20802 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20803 _ACEOF
20804
20805
20806 cat >>confdefs.h <<_ACEOF
20807 #define LLVM_INFODIR "$LLVM_INFODIR"
20808 _ACEOF
20809
20810
20811 cat >>confdefs.h <<_ACEOF
20812 #define LLVM_MANDIR "$LLVM_MANDIR"
20813 _ACEOF
20814
20815
20816 cat >>confdefs.h <<_ACEOF
20817 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20818 _ACEOF
20819
20820
20821 cat >>confdefs.h <<_ACEOF
20822 #define LLVM_HOST_TRIPLE "$host"
20823 _ACEOF
20824
20825
20826 cat >>confdefs.h <<_ACEOF
20827 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20828 _ACEOF
20829
20830
20831 # Determine which bindings to build.
20832 if test "$BINDINGS_TO_BUILD" = auto ; then
20833   BINDINGS_TO_BUILD=""
20834   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20835     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20836   fi
20837 fi
20838 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20839
20840
20841 # This isn't really configurey, but it avoids having to repeat the list in
20842 # other files.
20843 ALL_BINDINGS=ocaml
20844
20845
20846 # Do any work necessary to ensure that bindings have what they need.
20847 binding_prereqs_failed=0
20848 for a_binding in $BINDINGS_TO_BUILD ; do
20849   case "$a_binding" in
20850   ocaml)
20851     if test "x$OCAMLC" = x ; then
20852       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20853 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20854       binding_prereqs_failed=1
20855     fi
20856     if test "x$OCAMLDEP" = x ; then
20857       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20858 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20859       binding_prereqs_failed=1
20860     fi
20861     if test "x$OCAMLOPT" = x ; then
20862       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20863 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20864           fi
20865     if test "x$with_ocaml_libdir" != xauto ; then
20866       OCAML_LIBDIR=$with_ocaml_libdir
20867
20868     else
20869       ocaml_stdlib="`"$OCAMLC" -where`"
20870       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20871       then
20872         # ocaml stdlib is beneath our prefix; use stdlib
20873         OCAML_LIBDIR=$ocaml_stdlib
20874
20875       else
20876         # ocaml stdlib is outside our prefix; use libdir/ocaml
20877         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20878
20879       fi
20880     fi
20881     ;;
20882   esac
20883 done
20884 if test "$binding_prereqs_failed" = 1 ; then
20885   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20886 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20887    { (exit 1); exit 1; }; }
20888 fi
20889
20890 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20891 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20892 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895    ac_ext=cpp
20896 ac_cpp='$CXXCPP $CPPFLAGS'
20897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20900
20901   oldcxxflags="$CXXFLAGS"
20902   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20903   cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909
20910 int
20911 main ()
20912 {
20913
20914   ;
20915   return 0;
20916 }
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_compile") 2>conftest.er1
20926   ac_status=$?
20927   grep -v '^ *+' conftest.er1 >conftest.err
20928   rm -f conftest.er1
20929   cat conftest.err >&5
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } &&
20932          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20933   { (case "(($ac_try" in
20934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935   *) ac_try_echo=$ac_try;;
20936 esac
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938   (eval "$ac_try") 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); }; } &&
20942          { ac_try='test -s conftest.$ac_objext'
20943   { (case "(($ac_try" in
20944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945   *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948   (eval "$ac_try") 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   llvm_cv_cxx_visibility_inlines_hidden=yes
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957         llvm_cv_cxx_visibility_inlines_hidden=no
20958 fi
20959
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961   CXXFLAGS="$oldcxxflags"
20962   ac_ext=c
20963 ac_cpp='$CPP $CPPFLAGS'
20964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967
20968
20969 fi
20970 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20971 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20972 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20973   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20974
20975 else
20976   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20977
20978 fi
20979
20980
20981 if test "$llvm_cv_link_use_r" = "yes" ; then
20982   RPATH="-Wl,-R"
20983 else
20984   RPATH="-Wl,-rpath"
20985 fi
20986
20987
20988 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20989   RDYNAMIC="-Wl,-export-dynamic"
20990 else
20991   RDYNAMIC=""
20992 fi
20993
20994
20995
20996
20997 ac_config_files="$ac_config_files Makefile.common"
20998
20999 ac_config_files="$ac_config_files Makefile.llvm.config"
21000
21001
21002 ac_config_commands="$ac_config_commands Makefile"
21003
21004
21005 ac_config_commands="$ac_config_commands lib/Makefile"
21006
21007
21008 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21009
21010
21011 ac_config_commands="$ac_config_commands tools/Makefile"
21012
21013
21014 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21015
21016
21017
21018 cat >confcache <<\_ACEOF
21019 # This file is a shell script that caches the results of configure
21020 # tests run on this system so they can be shared between configure
21021 # scripts and configure runs, see configure's option --config-cache.
21022 # It is not useful on other systems.  If it contains results you don't
21023 # want to keep, you may remove or edit it.
21024 #
21025 # config.status only pays attention to the cache file if you give it
21026 # the --recheck option to rerun configure.
21027 #
21028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21030 # following values.
21031
21032 _ACEOF
21033
21034 # The following way of writing the cache mishandles newlines in values,
21035 # but we know of no workaround that is simple, portable, and efficient.
21036 # So, we kill variables containing newlines.
21037 # Ultrix sh set writes to stderr and can't be redirected directly,
21038 # and sets the high bit in the cache file unless we assign to the vars.
21039 (
21040   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21041     eval ac_val=\$$ac_var
21042     case $ac_val in #(
21043     *${as_nl}*)
21044       case $ac_var in #(
21045       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21046 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21047       esac
21048       case $ac_var in #(
21049       _ | IFS | as_nl) ;; #(
21050       *) $as_unset $ac_var ;;
21051       esac ;;
21052     esac
21053   done
21054
21055   (set) 2>&1 |
21056     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21057     *${as_nl}ac_space=\ *)
21058       # `set' does not quote correctly, so add quotes (double-quote
21059       # substitution turns \\\\ into \\, and sed turns \\ into \).
21060       sed -n \
21061         "s/'/'\\\\''/g;
21062           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21063       ;; #(
21064     *)
21065       # `set' quotes correctly as required by POSIX, so do not add quotes.
21066       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21067       ;;
21068     esac |
21069     sort
21070 ) |
21071   sed '
21072      /^ac_cv_env_/b end
21073      t clear
21074      :clear
21075      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21076      t end
21077      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21078      :end' >>confcache
21079 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21080   if test -w "$cache_file"; then
21081     test "x$cache_file" != "x/dev/null" &&
21082       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21083 echo "$as_me: updating cache $cache_file" >&6;}
21084     cat confcache >$cache_file
21085   else
21086     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21087 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21088   fi
21089 fi
21090 rm -f confcache
21091
21092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21093 # Let make expand exec_prefix.
21094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21095
21096 # Transform confdefs.h into DEFS.
21097 # Protect against shell expansion while executing Makefile rules.
21098 # Protect against Makefile macro expansion.
21099 #
21100 # If the first sed substitution is executed (which looks for macros that
21101 # take arguments), then branch to the quote section.  Otherwise,
21102 # look for a macro that doesn't take arguments.
21103 ac_script='
21104 t clear
21105 :clear
21106 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21107 t quote
21108 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21109 t quote
21110 b any
21111 :quote
21112 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21113 s/\[/\\&/g
21114 s/\]/\\&/g
21115 s/\$/$$/g
21116 H
21117 :any
21118 ${
21119         g
21120         s/^\n//
21121         s/\n/ /g
21122         p
21123 }
21124 '
21125 DEFS=`sed -n "$ac_script" confdefs.h`
21126
21127
21128 ac_libobjs=
21129 ac_ltlibobjs=
21130 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21131   # 1. Remove the extension, and $U if already installed.
21132   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21133   ac_i=`echo "$ac_i" | sed "$ac_script"`
21134   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21135   #    will be set to the directory where LIBOBJS objects are built.
21136   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21137   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21138 done
21139 LIBOBJS=$ac_libobjs
21140
21141 LTLIBOBJS=$ac_ltlibobjs
21142
21143
21144 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21145   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21146 Usually this means the macro was only invoked conditionally." >&5
21147 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21148 Usually this means the macro was only invoked conditionally." >&2;}
21149    { (exit 1); exit 1; }; }
21150 fi
21151 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21152   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21153 Usually this means the macro was only invoked conditionally." >&5
21154 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21155 Usually this means the macro was only invoked conditionally." >&2;}
21156    { (exit 1); exit 1; }; }
21157 fi
21158
21159 : ${CONFIG_STATUS=./config.status}
21160 ac_clean_files_save=$ac_clean_files
21161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21162 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21163 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21164 cat >$CONFIG_STATUS <<_ACEOF
21165 #! $SHELL
21166 # Generated by $as_me.
21167 # Run this file to recreate the current configuration.
21168 # Compiler output produced by configure, useful for debugging
21169 # configure, is in config.log if it exists.
21170
21171 debug=false
21172 ac_cs_recheck=false
21173 ac_cs_silent=false
21174 SHELL=\${CONFIG_SHELL-$SHELL}
21175 _ACEOF
21176
21177 cat >>$CONFIG_STATUS <<\_ACEOF
21178 ## --------------------- ##
21179 ## M4sh Initialization.  ##
21180 ## --------------------- ##
21181
21182 # Be Bourne compatible
21183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21184   emulate sh
21185   NULLCMD=:
21186   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21187   # is contrary to our usage.  Disable this feature.
21188   alias -g '${1+"$@"}'='"$@"'
21189   setopt NO_GLOB_SUBST
21190 else
21191   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21192 fi
21193 BIN_SH=xpg4; export BIN_SH # for Tru64
21194 DUALCASE=1; export DUALCASE # for MKS sh
21195
21196
21197 # PATH needs CR
21198 # Avoid depending upon Character Ranges.
21199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21202 as_cr_digits='0123456789'
21203 as_cr_alnum=$as_cr_Letters$as_cr_digits
21204
21205 # The user is always right.
21206 if test "${PATH_SEPARATOR+set}" != set; then
21207   echo "#! /bin/sh" >conf$$.sh
21208   echo  "exit 0"   >>conf$$.sh
21209   chmod +x conf$$.sh
21210   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21211     PATH_SEPARATOR=';'
21212   else
21213     PATH_SEPARATOR=:
21214   fi
21215   rm -f conf$$.sh
21216 fi
21217
21218 # Support unset when possible.
21219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21220   as_unset=unset
21221 else
21222   as_unset=false
21223 fi
21224
21225
21226 # IFS
21227 # We need space, tab and new line, in precisely that order.  Quoting is
21228 # there to prevent editors from complaining about space-tab.
21229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21230 # splitting by setting IFS to empty value.)
21231 as_nl='
21232 '
21233 IFS=" ""        $as_nl"
21234
21235 # Find who we are.  Look in the path if we contain no directory separator.
21236 case $0 in
21237   *[\\/]* ) as_myself=$0 ;;
21238   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21239 for as_dir in $PATH
21240 do
21241   IFS=$as_save_IFS
21242   test -z "$as_dir" && as_dir=.
21243   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21244 done
21245 IFS=$as_save_IFS
21246
21247      ;;
21248 esac
21249 # We did not find ourselves, most probably we were run as `sh COMMAND'
21250 # in which case we are not to be found in the path.
21251 if test "x$as_myself" = x; then
21252   as_myself=$0
21253 fi
21254 if test ! -f "$as_myself"; then
21255   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21256   { (exit 1); exit 1; }
21257 fi
21258
21259 # Work around bugs in pre-3.0 UWIN ksh.
21260 for as_var in ENV MAIL MAILPATH
21261 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21262 done
21263 PS1='$ '
21264 PS2='> '
21265 PS4='+ '
21266
21267 # NLS nuisances.
21268 for as_var in \
21269   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21270   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21271   LC_TELEPHONE LC_TIME
21272 do
21273   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21274     eval $as_var=C; export $as_var
21275   else
21276     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21277   fi
21278 done
21279
21280 # Required to use basename.
21281 if expr a : '\(a\)' >/dev/null 2>&1 &&
21282    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21283   as_expr=expr
21284 else
21285   as_expr=false
21286 fi
21287
21288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21289   as_basename=basename
21290 else
21291   as_basename=false
21292 fi
21293
21294
21295 # Name of the executable.
21296 as_me=`$as_basename -- "$0" ||
21297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21298          X"$0" : 'X\(//\)$' \| \
21299          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21300 echo X/"$0" |
21301     sed '/^.*\/\([^/][^/]*\)\/*$/{
21302             s//\1/
21303             q
21304           }
21305           /^X\/\(\/\/\)$/{
21306             s//\1/
21307             q
21308           }
21309           /^X\/\(\/\).*/{
21310             s//\1/
21311             q
21312           }
21313           s/.*/./; q'`
21314
21315 # CDPATH.
21316 $as_unset CDPATH
21317
21318
21319
21320   as_lineno_1=$LINENO
21321   as_lineno_2=$LINENO
21322   test "x$as_lineno_1" != "x$as_lineno_2" &&
21323   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21324
21325   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21326   # uniformly replaced by the line number.  The first 'sed' inserts a
21327   # line-number line after each line using $LINENO; the second 'sed'
21328   # does the real work.  The second script uses 'N' to pair each
21329   # line-number line with the line containing $LINENO, and appends
21330   # trailing '-' during substitution so that $LINENO is not a special
21331   # case at line end.
21332   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21333   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21334   # E. McMahon (1931-1989) for sed's syntax.  :-)
21335   sed -n '
21336     p
21337     /[$]LINENO/=
21338   ' <$as_myself |
21339     sed '
21340       s/[$]LINENO.*/&-/
21341       t lineno
21342       b
21343       :lineno
21344       N
21345       :loop
21346       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21347       t loop
21348       s/-\n.*//
21349     ' >$as_me.lineno &&
21350   chmod +x "$as_me.lineno" ||
21351     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21352    { (exit 1); exit 1; }; }
21353
21354   # Don't try to exec as it changes $[0], causing all sort of problems
21355   # (the dirname of $[0] is not the place where we might find the
21356   # original and so on.  Autoconf is especially sensitive to this).
21357   . "./$as_me.lineno"
21358   # Exit status is that of the last command.
21359   exit
21360 }
21361
21362
21363 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21364   as_dirname=dirname
21365 else
21366   as_dirname=false
21367 fi
21368
21369 ECHO_C= ECHO_N= ECHO_T=
21370 case `echo -n x` in
21371 -n*)
21372   case `echo 'x\c'` in
21373   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21374   *)   ECHO_C='\c';;
21375   esac;;
21376 *)
21377   ECHO_N='-n';;
21378 esac
21379
21380 if expr a : '\(a\)' >/dev/null 2>&1 &&
21381    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21382   as_expr=expr
21383 else
21384   as_expr=false
21385 fi
21386
21387 rm -f conf$$ conf$$.exe conf$$.file
21388 if test -d conf$$.dir; then
21389   rm -f conf$$.dir/conf$$.file
21390 else
21391   rm -f conf$$.dir
21392   mkdir conf$$.dir
21393 fi
21394 echo >conf$$.file
21395 if ln -s conf$$.file conf$$ 2>/dev/null; then
21396   as_ln_s='ln -s'
21397   # ... but there are two gotchas:
21398   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21399   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21400   # In both cases, we have to default to `cp -p'.
21401   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21402     as_ln_s='cp -p'
21403 elif ln conf$$.file conf$$ 2>/dev/null; then
21404   as_ln_s=ln
21405 else
21406   as_ln_s='cp -p'
21407 fi
21408 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21409 rmdir conf$$.dir 2>/dev/null
21410
21411 if mkdir -p . 2>/dev/null; then
21412   as_mkdir_p=:
21413 else
21414   test -d ./-p && rmdir ./-p
21415   as_mkdir_p=false
21416 fi
21417
21418 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21419 # systems may use methods other than mode bits to determine executability.
21420 cat >conf$$.file <<_ASEOF
21421 #! /bin/sh
21422 exit 0
21423 _ASEOF
21424 chmod +x conf$$.file
21425 if test -x conf$$.file >/dev/null 2>&1; then
21426   as_executable_p="test -x"
21427 else
21428   as_executable_p=:
21429 fi
21430 rm -f conf$$.file
21431
21432 # Sed expression to map a string onto a valid CPP name.
21433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21434
21435 # Sed expression to map a string onto a valid variable name.
21436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21437
21438
21439 exec 6>&1
21440
21441 # Save the log message, to keep $[0] and so on meaningful, and to
21442 # report actual input values of CONFIG_FILES etc. instead of their
21443 # values after options handling.
21444 ac_log="
21445 This file was extended by [SAMPLE] $as_me [x.xx], which was
21446 generated by GNU Autoconf 2.60.  Invocation command line was
21447
21448   CONFIG_FILES    = $CONFIG_FILES
21449   CONFIG_HEADERS  = $CONFIG_HEADERS
21450   CONFIG_LINKS    = $CONFIG_LINKS
21451   CONFIG_COMMANDS = $CONFIG_COMMANDS
21452   $ $0 $@
21453
21454 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21455 "
21456
21457 _ACEOF
21458
21459 cat >>$CONFIG_STATUS <<_ACEOF
21460 # Files that config.status was made for.
21461 config_files="$ac_config_files"
21462 config_commands="$ac_config_commands"
21463
21464 _ACEOF
21465
21466 cat >>$CONFIG_STATUS <<\_ACEOF
21467 ac_cs_usage="\
21468 \`$as_me' instantiates files from templates according to the
21469 current configuration.
21470
21471 Usage: $0 [OPTIONS] [FILE]...
21472
21473   -h, --help       print this help, then exit
21474   -V, --version    print version number, then exit
21475   -q, --quiet      do not print progress messages
21476   -d, --debug      don't remove temporary files
21477       --recheck    update $as_me by reconfiguring in the same conditions
21478   --file=FILE[:TEMPLATE]
21479                    instantiate the configuration file FILE
21480
21481 Configuration files:
21482 $config_files
21483
21484 Configuration commands:
21485 $config_commands
21486
21487 Report bugs to <bug-autoconf@gnu.org>."
21488
21489 _ACEOF
21490 cat >>$CONFIG_STATUS <<_ACEOF
21491 ac_cs_version="\\
21492 [SAMPLE] config.status [x.xx]
21493 configured by $0, generated by GNU Autoconf 2.60,
21494   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21495
21496 Copyright (C) 2006 Free Software Foundation, Inc.
21497 This config.status script is free software; the Free Software Foundation
21498 gives unlimited permission to copy, distribute and modify it."
21499
21500 ac_pwd='$ac_pwd'
21501 srcdir='$srcdir'
21502 INSTALL='$INSTALL'
21503 _ACEOF
21504
21505 cat >>$CONFIG_STATUS <<\_ACEOF
21506 # If no file are specified by the user, then we need to provide default
21507 # value.  By we need to know if files were specified by the user.
21508 ac_need_defaults=:
21509 while test $# != 0
21510 do
21511   case $1 in
21512   --*=*)
21513     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21514     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21515     ac_shift=:
21516     ;;
21517   *)
21518     ac_option=$1
21519     ac_optarg=$2
21520     ac_shift=shift
21521     ;;
21522   esac
21523
21524   case $ac_option in
21525   # Handling of the options.
21526   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21527     ac_cs_recheck=: ;;
21528   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21529     echo "$ac_cs_version"; exit ;;
21530   --debug | --debu | --deb | --de | --d | -d )
21531     debug=: ;;
21532   --file | --fil | --fi | --f )
21533     $ac_shift
21534     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21535     ac_need_defaults=false;;
21536   --he | --h |  --help | --hel | -h )
21537     echo "$ac_cs_usage"; exit ;;
21538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21539   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21540     ac_cs_silent=: ;;
21541
21542   # This is an error.
21543   -*) { echo "$as_me: error: unrecognized option: $1
21544 Try \`$0 --help' for more information." >&2
21545    { (exit 1); exit 1; }; } ;;
21546
21547   *) ac_config_targets="$ac_config_targets $1"
21548      ac_need_defaults=false ;;
21549
21550   esac
21551   shift
21552 done
21553
21554 ac_configure_extra_args=
21555
21556 if $ac_cs_silent; then
21557   exec 6>/dev/null
21558   ac_configure_extra_args="$ac_configure_extra_args --silent"
21559 fi
21560
21561 _ACEOF
21562 cat >>$CONFIG_STATUS <<_ACEOF
21563 if \$ac_cs_recheck; then
21564   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21565   CONFIG_SHELL=$SHELL
21566   export CONFIG_SHELL
21567   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21568 fi
21569
21570 _ACEOF
21571 cat >>$CONFIG_STATUS <<\_ACEOF
21572 exec 5>>config.log
21573 {
21574   echo
21575   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21576 ## Running $as_me. ##
21577 _ASBOX
21578   echo "$ac_log"
21579 } >&5
21580
21581 _ACEOF
21582 cat >>$CONFIG_STATUS <<_ACEOF
21583 #
21584 # INIT-COMMANDS
21585 #
21586 llvm_src="${LLVM_SRC}"
21587
21588 _ACEOF
21589
21590 cat >>$CONFIG_STATUS <<\_ACEOF
21591
21592 # Handling of arguments.
21593 for ac_config_target in $ac_config_targets
21594 do
21595   case $ac_config_target in
21596     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21597     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21598     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21599     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21600     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21601     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21602     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21603     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21604
21605   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21606 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21607    { (exit 1); exit 1; }; };;
21608   esac
21609 done
21610
21611
21612 # If the user did not use the arguments to specify the items to instantiate,
21613 # then the envvar interface is used.  Set only those that are not.
21614 # We use the long form for the default assignment because of an extremely
21615 # bizarre bug on SunOS 4.1.3.
21616 if $ac_need_defaults; then
21617   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21618   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21619 fi
21620
21621 # Have a temporary directory for convenience.  Make it in the build tree
21622 # simply because there is no reason against having it here, and in addition,
21623 # creating and moving files from /tmp can sometimes cause problems.
21624 # Hook for its removal unless debugging.
21625 # Note that there is a small window in which the directory will not be cleaned:
21626 # after its creation but before its name has been assigned to `$tmp'.
21627 $debug ||
21628 {
21629   tmp=
21630   trap 'exit_status=$?
21631   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21632 ' 0
21633   trap '{ (exit 1); exit 1; }' 1 2 13 15
21634 }
21635 # Create a (secure) tmp directory for tmp files.
21636
21637 {
21638   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21639   test -n "$tmp" && test -d "$tmp"
21640 }  ||
21641 {
21642   tmp=./conf$$-$RANDOM
21643   (umask 077 && mkdir "$tmp")
21644 } ||
21645 {
21646    echo "$me: cannot create a temporary directory in ." >&2
21647    { (exit 1); exit 1; }
21648 }
21649
21650 #
21651 # Set up the sed scripts for CONFIG_FILES section.
21652 #
21653
21654 # No need to generate the scripts if there are no CONFIG_FILES.
21655 # This happens for instance when ./config.status config.h
21656 if test -n "$CONFIG_FILES"; then
21657
21658 _ACEOF
21659
21660
21661
21662 ac_delim='%!_!# '
21663 for ac_last_try in false false false false false :; do
21664   cat >conf$$subs.sed <<_ACEOF
21665 SHELL!$SHELL$ac_delim
21666 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21667 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21668 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21669 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21670 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21671 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21672 exec_prefix!$exec_prefix$ac_delim
21673 prefix!$prefix$ac_delim
21674 program_transform_name!$program_transform_name$ac_delim
21675 bindir!$bindir$ac_delim
21676 sbindir!$sbindir$ac_delim
21677 libexecdir!$libexecdir$ac_delim
21678 datarootdir!$datarootdir$ac_delim
21679 datadir!$datadir$ac_delim
21680 sysconfdir!$sysconfdir$ac_delim
21681 sharedstatedir!$sharedstatedir$ac_delim
21682 localstatedir!$localstatedir$ac_delim
21683 includedir!$includedir$ac_delim
21684 oldincludedir!$oldincludedir$ac_delim
21685 docdir!$docdir$ac_delim
21686 infodir!$infodir$ac_delim
21687 htmldir!$htmldir$ac_delim
21688 dvidir!$dvidir$ac_delim
21689 pdfdir!$pdfdir$ac_delim
21690 psdir!$psdir$ac_delim
21691 libdir!$libdir$ac_delim
21692 localedir!$localedir$ac_delim
21693 mandir!$mandir$ac_delim
21694 DEFS!$DEFS$ac_delim
21695 ECHO_C!$ECHO_C$ac_delim
21696 ECHO_N!$ECHO_N$ac_delim
21697 ECHO_T!$ECHO_T$ac_delim
21698 LIBS!$LIBS$ac_delim
21699 build_alias!$build_alias$ac_delim
21700 host_alias!$host_alias$ac_delim
21701 target_alias!$target_alias$ac_delim
21702 LLVM_SRC!$LLVM_SRC$ac_delim
21703 LLVM_OBJ!$LLVM_OBJ$ac_delim
21704 LLVM_VERSION!$LLVM_VERSION$ac_delim
21705 CC!$CC$ac_delim
21706 CFLAGS!$CFLAGS$ac_delim
21707 LDFLAGS!$LDFLAGS$ac_delim
21708 CPPFLAGS!$CPPFLAGS$ac_delim
21709 ac_ct_CC!$ac_ct_CC$ac_delim
21710 EXEEXT!$EXEEXT$ac_delim
21711 OBJEXT!$OBJEXT$ac_delim
21712 CXX!$CXX$ac_delim
21713 CXXFLAGS!$CXXFLAGS$ac_delim
21714 ac_ct_CXX!$ac_ct_CXX$ac_delim
21715 CPP!$CPP$ac_delim
21716 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21717 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21718 subdirs!$subdirs$ac_delim
21719 build!$build$ac_delim
21720 build_cpu!$build_cpu$ac_delim
21721 build_vendor!$build_vendor$ac_delim
21722 build_os!$build_os$ac_delim
21723 host!$host$ac_delim
21724 host_cpu!$host_cpu$ac_delim
21725 host_vendor!$host_vendor$ac_delim
21726 host_os!$host_os$ac_delim
21727 target!$target$ac_delim
21728 target_cpu!$target_cpu$ac_delim
21729 target_vendor!$target_vendor$ac_delim
21730 target_os!$target_os$ac_delim
21731 OS!$OS$ac_delim
21732 HOST_OS!$HOST_OS$ac_delim
21733 TARGET_OS!$TARGET_OS$ac_delim
21734 LINKALL!$LINKALL$ac_delim
21735 NOLINKALL!$NOLINKALL$ac_delim
21736 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21737 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21738 ARCH!$ARCH$ac_delim
21739 ENDIAN!$ENDIAN$ac_delim
21740 GREP!$GREP$ac_delim
21741 EGREP!$EGREP$ac_delim
21742 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21743 BUILD_CC!$BUILD_CC$ac_delim
21744 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21745 BUILD_CXX!$BUILD_CXX$ac_delim
21746 CVSBUILD!$CVSBUILD$ac_delim
21747 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21748 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21749 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21750 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21751 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21752 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21753 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21754 JIT!$JIT$ac_delim
21755 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21756 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21757 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21758 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21759 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21760 ENABLE_PIC!$ENABLE_PIC$ac_delim
21761 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21762 _ACEOF
21763
21764   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21765     break
21766   elif $ac_last_try; then
21767     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21768 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21769    { (exit 1); exit 1; }; }
21770   else
21771     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21772   fi
21773 done
21774
21775 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21776 if test -n "$ac_eof"; then
21777   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21778   ac_eof=`expr $ac_eof + 1`
21779 fi
21780
21781 cat >>$CONFIG_STATUS <<_ACEOF
21782 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21784 _ACEOF
21785 sed '
21786 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21787 s/^/s,@/; s/!/@,|#_!!_#|/
21788 :n
21789 t n
21790 s/'"$ac_delim"'$/,g/; t
21791 s/$/\\/; p
21792 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21793 ' >>$CONFIG_STATUS <conf$$subs.sed
21794 rm -f conf$$subs.sed
21795 cat >>$CONFIG_STATUS <<_ACEOF
21796 CEOF$ac_eof
21797 _ACEOF
21798
21799
21800 ac_delim='%!_!# '
21801 for ac_last_try in false false false false false :; do
21802   cat >conf$$subs.sed <<_ACEOF
21803 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21804 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21805 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21806 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21807 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21808 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21809 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21810 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21811 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21812 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21813 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21814 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21815 NM!$NM$ac_delim
21816 ifGNUmake!$ifGNUmake$ac_delim
21817 LN_S!$LN_S$ac_delim
21818 CMP!$CMP$ac_delim
21819 CP!$CP$ac_delim
21820 DATE!$DATE$ac_delim
21821 FIND!$FIND$ac_delim
21822 MKDIR!$MKDIR$ac_delim
21823 MV!$MV$ac_delim
21824 RANLIB!$RANLIB$ac_delim
21825 AR!$AR$ac_delim
21826 RM!$RM$ac_delim
21827 SED!$SED$ac_delim
21828 TAR!$TAR$ac_delim
21829 BINPWD!$BINPWD$ac_delim
21830 GRAPHVIZ!$GRAPHVIZ$ac_delim
21831 DOT!$DOT$ac_delim
21832 FDP!$FDP$ac_delim
21833 NEATO!$NEATO$ac_delim
21834 TWOPI!$TWOPI$ac_delim
21835 CIRCO!$CIRCO$ac_delim
21836 GV!$GV$ac_delim
21837 DOTTY!$DOTTY$ac_delim
21838 XDOT_PY!$XDOT_PY$ac_delim
21839 PERL!$PERL$ac_delim
21840 HAVE_PERL!$HAVE_PERL$ac_delim
21841 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21842 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21843 INSTALL_DATA!$INSTALL_DATA$ac_delim
21844 BZIP2!$BZIP2$ac_delim
21845 CAT!$CAT$ac_delim
21846 DOXYGEN!$DOXYGEN$ac_delim
21847 GROFF!$GROFF$ac_delim
21848 GZIPBIN!$GZIPBIN$ac_delim
21849 POD2HTML!$POD2HTML$ac_delim
21850 POD2MAN!$POD2MAN$ac_delim
21851 PDFROFF!$PDFROFF$ac_delim
21852 RUNTEST!$RUNTEST$ac_delim
21853 TCLSH!$TCLSH$ac_delim
21854 ZIP!$ZIP$ac_delim
21855 OCAMLC!$OCAMLC$ac_delim
21856 OCAMLOPT!$OCAMLOPT$ac_delim
21857 OCAMLDEP!$OCAMLDEP$ac_delim
21858 OCAMLDOC!$OCAMLDOC$ac_delim
21859 GAS!$GAS$ac_delim
21860 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21861 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21862 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21863 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21864 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21865 LIBADD_DL!$LIBADD_DL$ac_delim
21866 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21867 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21868 USE_UDIS86!$USE_UDIS86$ac_delim
21869 USE_OPROFILE!$USE_OPROFILE$ac_delim
21870 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21871 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21872 MMAP_FILE!$MMAP_FILE$ac_delim
21873 SHLIBEXT!$SHLIBEXT$ac_delim
21874 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21875 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21876 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21877 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21878 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21879 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21880 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21881 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21882 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21883 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21884 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21885 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21886 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21887 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21888 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21889 RPATH!$RPATH$ac_delim
21890 RDYNAMIC!$RDYNAMIC$ac_delim
21891 LIBOBJS!$LIBOBJS$ac_delim
21892 LTLIBOBJS!$LTLIBOBJS$ac_delim
21893 _ACEOF
21894
21895   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21896     break
21897   elif $ac_last_try; then
21898     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21899 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21900    { (exit 1); exit 1; }; }
21901   else
21902     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21903   fi
21904 done
21905
21906 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21907 if test -n "$ac_eof"; then
21908   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21909   ac_eof=`expr $ac_eof + 1`
21910 fi
21911
21912 cat >>$CONFIG_STATUS <<_ACEOF
21913 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21915 _ACEOF
21916 sed '
21917 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21918 s/^/s,@/; s/!/@,|#_!!_#|/
21919 :n
21920 t n
21921 s/'"$ac_delim"'$/,g/; t
21922 s/$/\\/; p
21923 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21924 ' >>$CONFIG_STATUS <conf$$subs.sed
21925 rm -f conf$$subs.sed
21926 cat >>$CONFIG_STATUS <<_ACEOF
21927 :end
21928 s/|#_!!_#|//g
21929 CEOF$ac_eof
21930 _ACEOF
21931
21932
21933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21935 # trailing colons and then remove the whole line if VPATH becomes empty
21936 # (actually we leave an empty line to preserve line numbers).
21937 if test "x$srcdir" = x.; then
21938   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21939 s/:*\$(srcdir):*/:/
21940 s/:*\${srcdir}:*/:/
21941 s/:*@srcdir@:*/:/
21942 s/^\([^=]*=[     ]*\):*/\1/
21943 s/:*$//
21944 s/^[^=]*=[       ]*$//
21945 }'
21946 fi
21947
21948 cat >>$CONFIG_STATUS <<\_ACEOF
21949 fi # test -n "$CONFIG_FILES"
21950
21951
21952 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21953 do
21954   case $ac_tag in
21955   :[FHLC]) ac_mode=$ac_tag; continue;;
21956   esac
21957   case $ac_mode$ac_tag in
21958   :[FHL]*:*);;
21959   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21960 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21961    { (exit 1); exit 1; }; };;
21962   :[FH]-) ac_tag=-:-;;
21963   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21964   esac
21965   ac_save_IFS=$IFS
21966   IFS=:
21967   set x $ac_tag
21968   IFS=$ac_save_IFS
21969   shift
21970   ac_file=$1
21971   shift
21972
21973   case $ac_mode in
21974   :L) ac_source=$1;;
21975   :[FH])
21976     ac_file_inputs=
21977     for ac_f
21978     do
21979       case $ac_f in
21980       -) ac_f="$tmp/stdin";;
21981       *) # Look for the file first in the build tree, then in the source tree
21982          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21983          # because $ac_f cannot contain `:'.
21984          test -f "$ac_f" ||
21985            case $ac_f in
21986            [\\/$]*) false;;
21987            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21988            esac ||
21989            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21990 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21991    { (exit 1); exit 1; }; };;
21992       esac
21993       ac_file_inputs="$ac_file_inputs $ac_f"
21994     done
21995
21996     # Let's still pretend it is `configure' which instantiates (i.e., don't
21997     # use $as_me), people would be surprised to read:
21998     #    /* config.h.  Generated by config.status.  */
21999     configure_input="Generated from "`IFS=:
22000           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22001     if test x"$ac_file" != x-; then
22002       configure_input="$ac_file.  $configure_input"
22003       { echo "$as_me:$LINENO: creating $ac_file" >&5
22004 echo "$as_me: creating $ac_file" >&6;}
22005     fi
22006
22007     case $ac_tag in
22008     *:-:* | *:-) cat >"$tmp/stdin";;
22009     esac
22010     ;;
22011   esac
22012
22013   ac_dir=`$as_dirname -- "$ac_file" ||
22014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22015          X"$ac_file" : 'X\(//\)[^/]' \| \
22016          X"$ac_file" : 'X\(//\)$' \| \
22017          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22018 echo X"$ac_file" |
22019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22020             s//\1/
22021             q
22022           }
22023           /^X\(\/\/\)[^/].*/{
22024             s//\1/
22025             q
22026           }
22027           /^X\(\/\/\)$/{
22028             s//\1/
22029             q
22030           }
22031           /^X\(\/\).*/{
22032             s//\1/
22033             q
22034           }
22035           s/.*/./; q'`
22036   { as_dir="$ac_dir"
22037   case $as_dir in #(
22038   -*) as_dir=./$as_dir;;
22039   esac
22040   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22041     as_dirs=
22042     while :; do
22043       case $as_dir in #(
22044       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22045       *) as_qdir=$as_dir;;
22046       esac
22047       as_dirs="'$as_qdir' $as_dirs"
22048       as_dir=`$as_dirname -- "$as_dir" ||
22049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22050          X"$as_dir" : 'X\(//\)[^/]' \| \
22051          X"$as_dir" : 'X\(//\)$' \| \
22052          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22053 echo X"$as_dir" |
22054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22055             s//\1/
22056             q
22057           }
22058           /^X\(\/\/\)[^/].*/{
22059             s//\1/
22060             q
22061           }
22062           /^X\(\/\/\)$/{
22063             s//\1/
22064             q
22065           }
22066           /^X\(\/\).*/{
22067             s//\1/
22068             q
22069           }
22070           s/.*/./; q'`
22071       test -d "$as_dir" && break
22072     done
22073     test -z "$as_dirs" || eval "mkdir $as_dirs"
22074   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22075 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22076    { (exit 1); exit 1; }; }; }
22077   ac_builddir=.
22078
22079 case "$ac_dir" in
22080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22081 *)
22082   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22083   # A ".." for each directory in $ac_dir_suffix.
22084   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22085   case $ac_top_builddir_sub in
22086   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22087   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22088   esac ;;
22089 esac
22090 ac_abs_top_builddir=$ac_pwd
22091 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22092 # for backward compatibility:
22093 ac_top_builddir=$ac_top_build_prefix
22094
22095 case $srcdir in
22096   .)  # We are building in place.
22097     ac_srcdir=.
22098     ac_top_srcdir=$ac_top_builddir_sub
22099     ac_abs_top_srcdir=$ac_pwd ;;
22100   [\\/]* | ?:[\\/]* )  # Absolute name.
22101     ac_srcdir=$srcdir$ac_dir_suffix;
22102     ac_top_srcdir=$srcdir
22103     ac_abs_top_srcdir=$srcdir ;;
22104   *) # Relative name.
22105     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22106     ac_top_srcdir=$ac_top_build_prefix$srcdir
22107     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22108 esac
22109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22110
22111
22112   case $ac_mode in
22113   :F)
22114   #
22115   # CONFIG_FILE
22116   #
22117
22118   case $INSTALL in
22119   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22120   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22121   esac
22122 _ACEOF
22123
22124 cat >>$CONFIG_STATUS <<\_ACEOF
22125 # If the template does not know about datarootdir, expand it.
22126 # FIXME: This hack should be removed a few years after 2.60.
22127 ac_datarootdir_hack=; ac_datarootdir_seen=
22128
22129 case `sed -n '/datarootdir/ {
22130   p
22131   q
22132 }
22133 /@datadir@/p
22134 /@docdir@/p
22135 /@infodir@/p
22136 /@localedir@/p
22137 /@mandir@/p
22138 ' $ac_file_inputs` in
22139 *datarootdir*) ac_datarootdir_seen=yes;;
22140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22141   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22142 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22143 _ACEOF
22144 cat >>$CONFIG_STATUS <<_ACEOF
22145   ac_datarootdir_hack='
22146   s&@datadir@&$datadir&g
22147   s&@docdir@&$docdir&g
22148   s&@infodir@&$infodir&g
22149   s&@localedir@&$localedir&g
22150   s&@mandir@&$mandir&g
22151     s&\\\${datarootdir}&$datarootdir&g' ;;
22152 esac
22153 _ACEOF
22154
22155 # Neutralize VPATH when `$srcdir' = `.'.
22156 # Shell code in configure.ac might set extrasub.
22157 # FIXME: do we really want to maintain this feature?
22158 cat >>$CONFIG_STATUS <<_ACEOF
22159   sed "$ac_vpsub
22160 $extrasub
22161 _ACEOF
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22163 :t
22164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22165 s&@configure_input@&$configure_input&;t t
22166 s&@top_builddir@&$ac_top_builddir_sub&;t t
22167 s&@srcdir@&$ac_srcdir&;t t
22168 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22169 s&@top_srcdir@&$ac_top_srcdir&;t t
22170 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22171 s&@builddir@&$ac_builddir&;t t
22172 s&@abs_builddir@&$ac_abs_builddir&;t t
22173 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22174 s&@INSTALL@&$ac_INSTALL&;t t
22175 $ac_datarootdir_hack
22176 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22177
22178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22179   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22180   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22181   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22182 which seems to be undefined.  Please make sure it is defined." >&5
22183 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22184 which seems to be undefined.  Please make sure it is defined." >&2;}
22185
22186   rm -f "$tmp/stdin"
22187   case $ac_file in
22188   -) cat "$tmp/out"; rm -f "$tmp/out";;
22189   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22190   esac
22191  ;;
22192
22193
22194   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22195 echo "$as_me: executing $ac_file commands" >&6;}
22196  ;;
22197   esac
22198
22199
22200   case $ac_file$ac_mode in
22201     "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22202    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22203     "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22204    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22205     "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22206    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22207     "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22208    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22209     "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22210    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22211
22212   esac
22213 done # for ac_tag
22214
22215
22216 { (exit 0); exit 0; }
22217 _ACEOF
22218 chmod +x $CONFIG_STATUS
22219 ac_clean_files=$ac_clean_files_save
22220
22221
22222 # configure is writing to config.log, and then calls config.status.
22223 # config.status does its own redirection, appending to config.log.
22224 # Unfortunately, on DOS this fails, as config.log is still kept open
22225 # by configure, so config.status won't be able to write to it; its
22226 # output is simply discarded.  So we exec the FD to /dev/null,
22227 # effectively closing config.log, so it can be properly (re)opened and
22228 # appended to by config.status.  When coming back to configure, we
22229 # need to make the FD available again.
22230 if test "$no_create" != yes; then
22231   ac_cs_success=:
22232   ac_config_status_args=
22233   test "$silent" = yes &&
22234     ac_config_status_args="$ac_config_status_args --quiet"
22235   exec 5>/dev/null
22236   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22237   exec 5>>config.log
22238   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22239   # would make configure fail if this is the last instruction.
22240   $ac_cs_success || { (exit 1); exit 1; }
22241 fi
22242
22243 #
22244 # CONFIG_SUBDIRS section.
22245 #
22246 if test "$no_recursion" != yes; then
22247
22248   # Remove --cache-file and --srcdir arguments so they do not pile up.
22249   ac_sub_configure_args=
22250   ac_prev=
22251   eval "set x $ac_configure_args"
22252   shift
22253   for ac_arg
22254   do
22255     if test -n "$ac_prev"; then
22256       ac_prev=
22257       continue
22258     fi
22259     case $ac_arg in
22260     -cache-file | --cache-file | --cache-fil | --cache-fi \
22261     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22262       ac_prev=cache_file ;;
22263     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22264     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22265     | --c=*)
22266       ;;
22267     --config-cache | -C)
22268       ;;
22269     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22270       ac_prev=srcdir ;;
22271     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22272       ;;
22273     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22274       ac_prev=prefix ;;
22275     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22276       ;;
22277     *)
22278       case $ac_arg in
22279       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22280       esac
22281       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22282     esac
22283   done
22284
22285   # Always prepend --prefix to ensure using the same prefix
22286   # in subdir configurations.
22287   ac_arg="--prefix=$prefix"
22288   case $ac_arg in
22289   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22290   esac
22291   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22292
22293   ac_popdir=`pwd`
22294   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22295
22296     # Do not complain, so a configure script can configure whichever
22297     # parts of a large source tree are present.
22298     test -d "$srcdir/$ac_dir" || continue
22299
22300     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22301     echo "$as_me:$LINENO: $ac_msg" >&5
22302     echo "$ac_msg" >&6
22303     { as_dir="$ac_dir"
22304   case $as_dir in #(
22305   -*) as_dir=./$as_dir;;
22306   esac
22307   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22308     as_dirs=
22309     while :; do
22310       case $as_dir in #(
22311       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22312       *) as_qdir=$as_dir;;
22313       esac
22314       as_dirs="'$as_qdir' $as_dirs"
22315       as_dir=`$as_dirname -- "$as_dir" ||
22316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317          X"$as_dir" : 'X\(//\)[^/]' \| \
22318          X"$as_dir" : 'X\(//\)$' \| \
22319          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22320 echo X"$as_dir" |
22321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22322             s//\1/
22323             q
22324           }
22325           /^X\(\/\/\)[^/].*/{
22326             s//\1/
22327             q
22328           }
22329           /^X\(\/\/\)$/{
22330             s//\1/
22331             q
22332           }
22333           /^X\(\/\).*/{
22334             s//\1/
22335             q
22336           }
22337           s/.*/./; q'`
22338       test -d "$as_dir" && break
22339     done
22340     test -z "$as_dirs" || eval "mkdir $as_dirs"
22341   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22342 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22343    { (exit 1); exit 1; }; }; }
22344     ac_builddir=.
22345
22346 case "$ac_dir" in
22347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22348 *)
22349   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22350   # A ".." for each directory in $ac_dir_suffix.
22351   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22352   case $ac_top_builddir_sub in
22353   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22354   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22355   esac ;;
22356 esac
22357 ac_abs_top_builddir=$ac_pwd
22358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22359 # for backward compatibility:
22360 ac_top_builddir=$ac_top_build_prefix
22361
22362 case $srcdir in
22363   .)  # We are building in place.
22364     ac_srcdir=.
22365     ac_top_srcdir=$ac_top_builddir_sub
22366     ac_abs_top_srcdir=$ac_pwd ;;
22367   [\\/]* | ?:[\\/]* )  # Absolute name.
22368     ac_srcdir=$srcdir$ac_dir_suffix;
22369     ac_top_srcdir=$srcdir
22370     ac_abs_top_srcdir=$srcdir ;;
22371   *) # Relative name.
22372     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22373     ac_top_srcdir=$ac_top_build_prefix$srcdir
22374     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22375 esac
22376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22377
22378
22379     cd "$ac_dir"
22380
22381     # Check for guested configure; otherwise get Cygnus style configure.
22382     if test -f "$ac_srcdir/configure.gnu"; then
22383       ac_sub_configure=$ac_srcdir/configure.gnu
22384     elif test -f "$ac_srcdir/configure"; then
22385       ac_sub_configure=$ac_srcdir/configure
22386     elif test -f "$ac_srcdir/configure.in"; then
22387       # This should be Cygnus configure.
22388       ac_sub_configure=$ac_aux_dir/configure
22389     else
22390       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22392       ac_sub_configure=
22393     fi
22394
22395     # The recursion is here.
22396     if test -n "$ac_sub_configure"; then
22397       # Make the cache file name correct relative to the subdirectory.
22398       case $cache_file in
22399       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22400       *) # Relative name.
22401         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22402       esac
22403
22404       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22405 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22406       # The eval makes quoting arguments work.
22407       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22408            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22409         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22410 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22411    { (exit 1); exit 1; }; }
22412     fi
22413
22414     cd "$ac_popdir"
22415   done
22416 fi
22417