Remove the C backend.
[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 OPTIMIZE_OPTION
708 EXTRA_OPTIONS
709 EXTRA_LD_OPTIONS
710 BINUTILS_INCDIR
711 NM
712 ifGNUmake
713 LN_S
714 CMP
715 CP
716 DATE
717 FIND
718 MKDIR
719 MV
720 RANLIB
721 AR
722 RM
723 SED
724 TAR
725 BINPWD
726 GRAPHVIZ
727 DOT
728 FDP
729 NEATO
730 TWOPI
731 CIRCO
732 GV
733 DOTTY
734 XDOT_PY
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
739 CAT
740 DOXYGEN
741 GROFF
742 GZIPBIN
743 POD2HTML
744 POD2MAN
745 PDFROFF
746 RUNTEST
747 TCLSH
748 ZIP
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
753 GAS
754 HAVE_LINK_VERSION_SCRIPT
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 NO_VARIADIC_MACROS
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 USE_UDIS86
764 USE_OPROFILE
765 HAVE_PTHREAD
766 HUGE_VAL_SANITY
767 MMAP_FILE
768 SHLIBEXT
769 SHLIBPATH_VAR
770 LLVM_PREFIX
771 LLVM_BINDIR
772 LLVM_LIBDIR
773 LLVM_DATADIR
774 LLVM_DOCSDIR
775 LLVM_ETCDIR
776 LLVM_INCLUDEDIR
777 LLVM_INFODIR
778 LLVM_MANDIR
779 LLVM_CONFIGTIME
780 BINDINGS_TO_BUILD
781 ALL_BINDINGS
782 OCAML_LIBDIR
783 ENABLE_VISIBILITY_INLINES_HIDDEN
784 RPATH
785 RDYNAMIC
786 LIBOBJS
787 LTLIBOBJS'
788 ac_subst_files=''
789       ac_precious_vars='build_alias
790 host_alias
791 target_alias
792 CC
793 CFLAGS
794 LDFLAGS
795 CPPFLAGS
796 CXX
797 CXXFLAGS
798 CCC
799 CPP'
800 ac_subdirs_all='tools/polly'
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852   # If the previous option needs an argument, assign it.
853   if test -n "$ac_prev"; then
854     eval $ac_prev=\$ac_option
855     ac_prev=
856     continue
857   fi
858
859   case $ac_option in
860   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861   *)    ac_optarg=yes ;;
862   esac
863
864   # Accept the important Cygnus configure options, so we can diagnose typos.
865
866   case $ac_dashdash$ac_option in
867   --)
868     ac_dashdash=yes ;;
869
870   -bindir | --bindir | --bindi | --bind | --bin | --bi)
871     ac_prev=bindir ;;
872   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873     bindir=$ac_optarg ;;
874
875   -build | --build | --buil | --bui | --bu)
876     ac_prev=build_alias ;;
877   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878     build_alias=$ac_optarg ;;
879
880   -cache-file | --cache-file | --cache-fil | --cache-fi \
881   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882     ac_prev=cache_file ;;
883   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885     cache_file=$ac_optarg ;;
886
887   --config-cache | -C)
888     cache_file=config.cache ;;
889
890   -datadir | --datadir | --datadi | --datad)
891     ac_prev=datadir ;;
892   -datadir=* | --datadir=* | --datadi=* | --datad=*)
893     datadir=$ac_optarg ;;
894
895   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896   | --dataroo | --dataro | --datar)
897     ac_prev=datarootdir ;;
898   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900     datarootdir=$ac_optarg ;;
901
902   -disable-* | --disable-*)
903     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904     # Reject names that are not valid shell variable names.
905     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
906       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907    { (exit 1); exit 1; }; }
908     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
909     eval enable_$ac_feature=no ;;
910
911   -docdir | --docdir | --docdi | --doc | --do)
912     ac_prev=docdir ;;
913   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914     docdir=$ac_optarg ;;
915
916   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917     ac_prev=dvidir ;;
918   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919     dvidir=$ac_optarg ;;
920
921   -enable-* | --enable-*)
922     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926    { (exit 1); exit 1; }; }
927     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928     eval enable_$ac_feature=\$ac_optarg ;;
929
930   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932   | --exec | --exe | --ex)
933     ac_prev=exec_prefix ;;
934   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936   | --exec=* | --exe=* | --ex=*)
937     exec_prefix=$ac_optarg ;;
938
939   -gas | --gas | --ga | --g)
940     # Obsolete; use --with-gas.
941     with_gas=yes ;;
942
943   -help | --help | --hel | --he | -h)
944     ac_init_help=long ;;
945   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946     ac_init_help=recursive ;;
947   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948     ac_init_help=short ;;
949
950   -host | --host | --hos | --ho)
951     ac_prev=host_alias ;;
952   -host=* | --host=* | --hos=* | --ho=*)
953     host_alias=$ac_optarg ;;
954
955   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956     ac_prev=htmldir ;;
957   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958   | --ht=*)
959     htmldir=$ac_optarg ;;
960
961   -includedir | --includedir | --includedi | --included | --include \
962   | --includ | --inclu | --incl | --inc)
963     ac_prev=includedir ;;
964   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965   | --includ=* | --inclu=* | --incl=* | --inc=*)
966     includedir=$ac_optarg ;;
967
968   -infodir | --infodir | --infodi | --infod | --info | --inf)
969     ac_prev=infodir ;;
970   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971     infodir=$ac_optarg ;;
972
973   -libdir | --libdir | --libdi | --libd)
974     ac_prev=libdir ;;
975   -libdir=* | --libdir=* | --libdi=* | --libd=*)
976     libdir=$ac_optarg ;;
977
978   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979   | --libexe | --libex | --libe)
980     ac_prev=libexecdir ;;
981   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982   | --libexe=* | --libex=* | --libe=*)
983     libexecdir=$ac_optarg ;;
984
985   -localedir | --localedir | --localedi | --localed | --locale)
986     ac_prev=localedir ;;
987   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988     localedir=$ac_optarg ;;
989
990   -localstatedir | --localstatedir | --localstatedi | --localstated \
991   | --localstate | --localstat | --localsta | --localst | --locals)
992     ac_prev=localstatedir ;;
993   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995     localstatedir=$ac_optarg ;;
996
997   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998     ac_prev=mandir ;;
999   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000     mandir=$ac_optarg ;;
1001
1002   -nfp | --nfp | --nf)
1003     # Obsolete; use --without-fp.
1004     with_fp=no ;;
1005
1006   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007   | --no-cr | --no-c | -n)
1008     no_create=yes ;;
1009
1010   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012     no_recursion=yes ;;
1013
1014   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016   | --oldin | --oldi | --old | --ol | --o)
1017     ac_prev=oldincludedir ;;
1018   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021     oldincludedir=$ac_optarg ;;
1022
1023   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024     ac_prev=prefix ;;
1025   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026     prefix=$ac_optarg ;;
1027
1028   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029   | --program-pre | --program-pr | --program-p)
1030     ac_prev=program_prefix ;;
1031   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033     program_prefix=$ac_optarg ;;
1034
1035   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036   | --program-suf | --program-su | --program-s)
1037     ac_prev=program_suffix ;;
1038   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040     program_suffix=$ac_optarg ;;
1041
1042   -program-transform-name | --program-transform-name \
1043   | --program-transform-nam | --program-transform-na \
1044   | --program-transform-n | --program-transform- \
1045   | --program-transform | --program-transfor \
1046   | --program-transfo | --program-transf \
1047   | --program-trans | --program-tran \
1048   | --progr-tra | --program-tr | --program-t)
1049     ac_prev=program_transform_name ;;
1050   -program-transform-name=* | --program-transform-name=* \
1051   | --program-transform-nam=* | --program-transform-na=* \
1052   | --program-transform-n=* | --program-transform-=* \
1053   | --program-transform=* | --program-transfor=* \
1054   | --program-transfo=* | --program-transf=* \
1055   | --program-trans=* | --program-tran=* \
1056   | --progr-tra=* | --program-tr=* | --program-t=*)
1057     program_transform_name=$ac_optarg ;;
1058
1059   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060     ac_prev=pdfdir ;;
1061   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062     pdfdir=$ac_optarg ;;
1063
1064   -psdir | --psdir | --psdi | --psd | --ps)
1065     ac_prev=psdir ;;
1066   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067     psdir=$ac_optarg ;;
1068
1069   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070   | -silent | --silent | --silen | --sile | --sil)
1071     silent=yes ;;
1072
1073   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074     ac_prev=sbindir ;;
1075   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076   | --sbi=* | --sb=*)
1077     sbindir=$ac_optarg ;;
1078
1079   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081   | --sharedst | --shareds | --shared | --share | --shar \
1082   | --sha | --sh)
1083     ac_prev=sharedstatedir ;;
1084   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087   | --sha=* | --sh=*)
1088     sharedstatedir=$ac_optarg ;;
1089
1090   -site | --site | --sit)
1091     ac_prev=site ;;
1092   -site=* | --site=* | --sit=*)
1093     site=$ac_optarg ;;
1094
1095   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096     ac_prev=srcdir ;;
1097   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098     srcdir=$ac_optarg ;;
1099
1100   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101   | --syscon | --sysco | --sysc | --sys | --sy)
1102     ac_prev=sysconfdir ;;
1103   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105     sysconfdir=$ac_optarg ;;
1106
1107   -target | --target | --targe | --targ | --tar | --ta | --t)
1108     ac_prev=target_alias ;;
1109   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110     target_alias=$ac_optarg ;;
1111
1112   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113     verbose=yes ;;
1114
1115   -version | --version | --versio | --versi | --vers | -V)
1116     ac_init_version=: ;;
1117
1118   -with-* | --with-*)
1119     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1122       { echo "$as_me: error: invalid package name: $ac_package" >&2
1123    { (exit 1); exit 1; }; }
1124     ac_package=`echo $ac_package| sed 's/-/_/g'`
1125     eval with_$ac_package=\$ac_optarg ;;
1126
1127   -without-* | --without-*)
1128     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1131       { echo "$as_me: error: invalid package name: $ac_package" >&2
1132    { (exit 1); exit 1; }; }
1133     ac_package=`echo $ac_package | sed 's/-/_/g'`
1134     eval with_$ac_package=no ;;
1135
1136   --x)
1137     # Obsolete; use --with-x.
1138     with_x=yes ;;
1139
1140   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141   | --x-incl | --x-inc | --x-in | --x-i)
1142     ac_prev=x_includes ;;
1143   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145     x_includes=$ac_optarg ;;
1146
1147   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149     ac_prev=x_libraries ;;
1150   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152     x_libraries=$ac_optarg ;;
1153
1154   -*) { echo "$as_me: error: unrecognized option: $ac_option
1155 Try \`$0 --help' for more information." >&2
1156    { (exit 1); exit 1; }; }
1157     ;;
1158
1159   *=*)
1160     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1164    { (exit 1); exit 1; }; }
1165     eval $ac_envvar=\$ac_optarg
1166     export $ac_envvar ;;
1167
1168   *)
1169     # FIXME: should be removed in autoconf 3.0.
1170     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174     ;;
1175
1176   esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181   { echo "$as_me: error: missing argument to $ac_option" >&2
1182    { (exit 1); exit 1; }; }
1183 fi
1184
1185 # Be sure to have absolute directory names.
1186 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187                 datadir sysconfdir sharedstatedir localstatedir includedir \
1188                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189                 libdir localedir mandir
1190 do
1191   eval ac_val=\$$ac_var
1192   case $ac_val in
1193     [\\/$]* | ?:[\\/]* )  continue;;
1194     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195   esac
1196   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1197    { (exit 1); exit 1; }; }
1198 done
1199
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1206
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209   if test "x$build_alias" = x; then
1210     cross_compiling=maybe
1211     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1212     If a cross compiler is detected then cross compile mode will be used." >&2
1213   elif test "x$build_alias" != "x$host_alias"; then
1214     cross_compiling=yes
1215   fi
1216 fi
1217
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221 test "$silent" = yes && exec 6>/dev/null
1222
1223
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227   { echo "$as_me: error: Working directory cannot be determined" >&2
1228    { (exit 1); exit 1; }; }
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230   { echo "$as_me: error: pwd does not report name of working directory" >&2
1231    { (exit 1); exit 1; }; }
1232
1233
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236   ac_srcdir_defaulted=yes
1237   # Try the directory containing this script, then the parent directory.
1238   ac_confdir=`$as_dirname -- "$0" ||
1239 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240          X"$0" : 'X\(//\)[^/]' \| \
1241          X"$0" : 'X\(//\)$' \| \
1242          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1243 echo X"$0" |
1244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\/\)[^/].*/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)$/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\).*/{
1257             s//\1/
1258             q
1259           }
1260           s/.*/./; q'`
1261   srcdir=$ac_confdir
1262   if test ! -r "$srcdir/$ac_unique_file"; then
1263     srcdir=..
1264   fi
1265 else
1266   ac_srcdir_defaulted=no
1267 fi
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1271    { (exit 1); exit 1; }; }
1272 fi
1273 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 ac_abs_confdir=`(
1275         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1276    { (exit 1); exit 1; }; }
1277         pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280   srcdir=.
1281 fi
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290   eval ac_env_${ac_var}_value=\$${ac_var}
1291   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1294
1295 #
1296 # Report the --help message.
1297 #
1298 if test "$ac_init_help" = "long"; then
1299   # Omit some internal or obsolete options to make the list less imposing.
1300   # This message is too long to be a string in the A/UX 3.1 sh.
1301   cat <<_ACEOF
1302 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1303
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE.  See below for descriptions of some of the useful variables.
1308
1309 Defaults for the options are specified in brackets.
1310
1311 Configuration:
1312   -h, --help              display this help and exit
1313       --help=short        display options specific to this package
1314       --help=recursive    display the short help of all the included packages
1315   -V, --version           display version information and exit
1316   -q, --quiet, --silent   do not print \`checking...' messages
1317       --cache-file=FILE   cache test results in FILE [disabled]
1318   -C, --config-cache      alias for \`--cache-file=config.cache'
1319   -n, --no-create         do not create output files
1320       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1321
1322 Installation directories:
1323   --prefix=PREFIX         install architecture-independent files in PREFIX
1324                           [$ac_default_prefix]
1325   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1326                           [PREFIX]
1327
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1332
1333 For better control, use the options below.
1334
1335 Fine tuning of the installation directories:
1336   --bindir=DIR           user executables [EPREFIX/bin]
1337   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1338   --libexecdir=DIR       program executables [EPREFIX/libexec]
1339   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1340   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1341   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1342   --libdir=DIR           object code libraries [EPREFIX/lib]
1343   --includedir=DIR       C header files [PREFIX/include]
1344   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1345   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1346   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1347   --infodir=DIR          info documentation [DATAROOTDIR/info]
1348   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1349   --mandir=DIR           man documentation [DATAROOTDIR/man]
1350   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1351   --htmldir=DIR          html documentation [DOCDIR]
1352   --dvidir=DIR           dvi documentation [DOCDIR]
1353   --pdfdir=DIR           pdf documentation [DOCDIR]
1354   --psdir=DIR            ps documentation [DOCDIR]
1355 _ACEOF
1356
1357   cat <<\_ACEOF
1358
1359 System types:
1360   --build=BUILD     configure for building on BUILD [guessed]
1361   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1362   --target=TARGET   configure for building compilers for TARGET [HOST]
1363 _ACEOF
1364 fi
1365
1366 if test -n "$ac_init_help"; then
1367   case $ac_init_help in
1368      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1369    esac
1370   cat <<\_ACEOF
1371
1372 Optional Features:
1373   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1374   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1375   --enable-polly          Use polly if available (default is YES)
1376   --enable-optimized      Compile with optimizations enabled (default is NO)
1377   --enable-profiling      Compile with profiling enabled (default is NO)
1378   --enable-assertions     Compile with assertion checks enabled (default is
1379                           YES)
1380   --enable-expensive-checks
1381                           Compile with expensive debug checks enabled (default
1382                           is NO)
1383   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1384                           NO)
1385   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1386                           optimization is on and YES if it's off)
1387   --enable-jit            Enable Just In Time Compiling (default is YES)
1388   --enable-docs           Build documents (default is YES)
1389   --enable-doxygen        Build doxygen documentation (default is NO)
1390   --enable-threads        Use threads if available (default is YES)
1391   --enable-pthreads       Use pthreads if available (default is YES)
1392   --enable-pic            Build LLVM with Position Independent Code (default
1393                           is YES)
1394   --enable-shared         Build a shared library and link tools against it
1395                           (default is NO)
1396   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1397                           Win32 DLL (default is YES)
1398   --enable-timestamps     Enable embedding timestamp information in build
1399                           (default is YES)
1400   --enable-targets        Build specific host targets: all or
1401                           target1,target2,... Valid targets are: host, x86,
1402                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1403                           xcore, msp430, ptx, cbe, and cpp (default=all)
1404   --enable-bindings       Build specific language bindings:
1405                           all,auto,none,{binding-name} (default=auto)
1406   --enable-libffi         Check for the presence of libffi (default is NO)
1407   --enable-ltdl-install   install libltdl
1408
1409 Optional Packages:
1410   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1411   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1412   --with-llvmsrc          Location of LLVM Source Code
1413   --with-llvmobj          Location of LLVM Object Code
1414   --with-optimize-option  Select the compiler options to use for optimized
1415                           builds
1416   --with-extra-options    Specify additional options to compile LLVM with
1417   --with-extra-ld-options Specify additional options to link LLVM with
1418   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1419                           is stdlib)
1420   --with-clang-resource-dir
1421                           Relative directory from the Clang binary for
1422                           resource files
1423   --with-c-include-dirs   Colon separated list of directories clang will
1424                           search for headers
1425   --with-gcc-toolchain    Directory where gcc is installed.
1426   --with-binutils-include Specify path to binutils/include/ containing
1427                           plugin-api.h file for gold plugin.
1428   --with-bug-report-url   Specify the URL where bug reports should be
1429                           submitted (default=http://llvm.org/bugs/)
1430   --with-tclinclude       directory where tcl headers are
1431   --with-udis86=<path>    Use udis86 external x86 disassembler library
1432   --with-oprofile=<prefix>
1433                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1434
1435 Some influential environment variables:
1436   CC          C compiler command
1437   CFLAGS      C compiler flags
1438   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1439               nonstandard directory <lib dir>
1440   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441               you have headers in a nonstandard directory <include dir>
1442   CXX         C++ compiler command
1443   CXXFLAGS    C++ compiler flags
1444   CPP         C preprocessor
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to <bugs@yourdomain>.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455   # If there are subdirs, report their specific --help.
1456   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457     test -d "$ac_dir" || continue
1458     ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1464   # A ".." for each directory in $ac_dir_suffix.
1465   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1466   case $ac_top_builddir_sub in
1467   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469   esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477   .)  # We are building in place.
1478     ac_srcdir=.
1479     ac_top_srcdir=$ac_top_builddir_sub
1480     ac_abs_top_srcdir=$ac_pwd ;;
1481   [\\/]* | ?:[\\/]* )  # Absolute name.
1482     ac_srcdir=$srcdir$ac_dir_suffix;
1483     ac_top_srcdir=$srcdir
1484     ac_abs_top_srcdir=$srcdir ;;
1485   *) # Relative name.
1486     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487     ac_top_srcdir=$ac_top_build_prefix$srcdir
1488     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492     cd "$ac_dir" || { ac_status=$?; continue; }
1493     # Check for guested configure.
1494     if test -f "$ac_srcdir/configure.gnu"; then
1495       echo &&
1496       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497     elif test -f "$ac_srcdir/configure"; then
1498       echo &&
1499       $SHELL "$ac_srcdir/configure" --help=recursive
1500     else
1501       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502     fi || ac_status=$?
1503     cd "$ac_pwd" || { ac_status=$?; break; }
1504   done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509   cat <<\_ACEOF
1510 [SAMPLE] configure [x.xx]
1511 generated by GNU Autoconf 2.60
1512
1513 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1514 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518   exit
1519 fi
1520 cat >config.log <<_ACEOF
1521 This file contains any messages produced by compilers while
1522 running configure, to aid debugging if configure makes a mistake.
1523
1524 It was created by [SAMPLE] $as_me [x.xx], which was
1525 generated by GNU Autoconf 2.60.  Invocation command line was
1526
1527   $ $0 $@
1528
1529 _ACEOF
1530 exec 5>>config.log
1531 {
1532 cat <<_ASUNAME
1533 ## --------- ##
1534 ## Platform. ##
1535 ## --------- ##
1536
1537 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1538 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1539 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1540 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1541 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1542
1543 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1544 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1545
1546 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1547 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1548 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1549 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1550 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1551 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1552 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1553
1554 _ASUNAME
1555
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559   IFS=$as_save_IFS
1560   test -z "$as_dir" && as_dir=.
1561   echo "PATH: $as_dir"
1562 done
1563 IFS=$as_save_IFS
1564
1565 } >&5
1566
1567 cat >&5 <<_ACEOF
1568
1569
1570 ## ----------- ##
1571 ## Core tests. ##
1572 ## ----------- ##
1573
1574 _ACEOF
1575
1576
1577 # Keep a trace of the command line.
1578 # Strip out --no-create and --no-recursion so they do not pile up.
1579 # Strip out --silent because we don't want to record it for future runs.
1580 # Also quote any args containing shell meta-characters.
1581 # Make two passes to allow for proper duplicate-argument suppression.
1582 ac_configure_args=
1583 ac_configure_args0=
1584 ac_configure_args1=
1585 ac_must_keep_next=false
1586 for ac_pass in 1 2
1587 do
1588   for ac_arg
1589   do
1590     case $ac_arg in
1591     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1592     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1593     | -silent | --silent | --silen | --sile | --sil)
1594       continue ;;
1595     *\'*)
1596       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1597     esac
1598     case $ac_pass in
1599     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1600     2)
1601       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1602       if test $ac_must_keep_next = true; then
1603         ac_must_keep_next=false # Got value, back to normal.
1604       else
1605         case $ac_arg in
1606           *=* | --config-cache | -C | -disable-* | --disable-* \
1607           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1608           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1609           | -with-* | --with-* | -without-* | --without-* | --x)
1610             case "$ac_configure_args0 " in
1611               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1612             esac
1613             ;;
1614           -* ) ac_must_keep_next=true ;;
1615         esac
1616       fi
1617       ac_configure_args="$ac_configure_args '$ac_arg'"
1618       ;;
1619     esac
1620   done
1621 done
1622 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1623 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1624
1625 # When interrupted or exit'd, cleanup temporary files, and complete
1626 # config.log.  We remove comments because anyway the quotes in there
1627 # would cause problems or look ugly.
1628 # WARNING: Use '\'' to represent an apostrophe within the trap.
1629 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1630 trap 'exit_status=$?
1631   # Save into config.log some information that might help in debugging.
1632   {
1633     echo
1634
1635     cat <<\_ASBOX
1636 ## ---------------- ##
1637 ## Cache variables. ##
1638 ## ---------------- ##
1639 _ASBOX
1640     echo
1641     # The following way of writing the cache mishandles newlines in values,
1642 (
1643   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1644     eval ac_val=\$$ac_var
1645     case $ac_val in #(
1646     *${as_nl}*)
1647       case $ac_var in #(
1648       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1649 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1650       esac
1651       case $ac_var in #(
1652       _ | IFS | as_nl) ;; #(
1653       *) $as_unset $ac_var ;;
1654       esac ;;
1655     esac
1656   done
1657   (set) 2>&1 |
1658     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1659     *${as_nl}ac_space=\ *)
1660       sed -n \
1661         "s/'\''/'\''\\\\'\'''\''/g;
1662           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1663       ;; #(
1664     *)
1665       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1666       ;;
1667     esac |
1668     sort
1669 )
1670     echo
1671
1672     cat <<\_ASBOX
1673 ## ----------------- ##
1674 ## Output variables. ##
1675 ## ----------------- ##
1676 _ASBOX
1677     echo
1678     for ac_var in $ac_subst_vars
1679     do
1680       eval ac_val=\$$ac_var
1681       case $ac_val in
1682       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1683       esac
1684       echo "$ac_var='\''$ac_val'\''"
1685     done | sort
1686     echo
1687
1688     if test -n "$ac_subst_files"; then
1689       cat <<\_ASBOX
1690 ## ------------------- ##
1691 ## File substitutions. ##
1692 ## ------------------- ##
1693 _ASBOX
1694       echo
1695       for ac_var in $ac_subst_files
1696       do
1697         eval ac_val=\$$ac_var
1698         case $ac_val in
1699         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1700         esac
1701         echo "$ac_var='\''$ac_val'\''"
1702       done | sort
1703       echo
1704     fi
1705
1706     if test -s confdefs.h; then
1707       cat <<\_ASBOX
1708 ## ----------- ##
1709 ## confdefs.h. ##
1710 ## ----------- ##
1711 _ASBOX
1712       echo
1713       cat confdefs.h
1714       echo
1715     fi
1716     test "$ac_signal" != 0 &&
1717       echo "$as_me: caught signal $ac_signal"
1718     echo "$as_me: exit $exit_status"
1719   } >&5
1720   rm -f core *.core core.conftest.* &&
1721     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1722     exit $exit_status
1723 ' 0
1724 for ac_signal in 1 2 13 15; do
1725   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1726 done
1727 ac_signal=0
1728
1729 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1730 rm -f -r conftest* confdefs.h
1731
1732 # Predefined preprocessor variables.
1733
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_NAME "$PACKAGE_NAME"
1736 _ACEOF
1737
1738
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1741 _ACEOF
1742
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_STRING "$PACKAGE_STRING"
1751 _ACEOF
1752
1753
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1756 _ACEOF
1757
1758
1759 # Let the site file select an alternate cache file if it wants to.
1760 # Prefer explicitly selected file to automatically selected ones.
1761 if test -n "$CONFIG_SITE"; then
1762   set x "$CONFIG_SITE"
1763 elif test "x$prefix" != xNONE; then
1764   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1765 else
1766   set x "$ac_default_prefix/share/config.site" \
1767         "$ac_default_prefix/etc/config.site"
1768 fi
1769 shift
1770 for ac_site_file
1771 do
1772   if test -r "$ac_site_file"; then
1773     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1774 echo "$as_me: loading site script $ac_site_file" >&6;}
1775     sed 's/^/| /' "$ac_site_file" >&5
1776     . "$ac_site_file"
1777   fi
1778 done
1779
1780 if test -r "$cache_file"; then
1781   # Some versions of bash will fail to source /dev/null (special
1782   # files actually), so we avoid doing that.
1783   if test -f "$cache_file"; then
1784     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1785 echo "$as_me: loading cache $cache_file" >&6;}
1786     case $cache_file in
1787       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1788       *)                      . "./$cache_file";;
1789     esac
1790   fi
1791 else
1792   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1793 echo "$as_me: creating cache $cache_file" >&6;}
1794   >$cache_file
1795 fi
1796
1797 # Check that the precious variables saved in the cache have kept the same
1798 # value.
1799 ac_cache_corrupted=false
1800 for ac_var in $ac_precious_vars; do
1801   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1802   eval ac_new_set=\$ac_env_${ac_var}_set
1803   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1804   eval ac_new_val=\$ac_env_${ac_var}_value
1805   case $ac_old_set,$ac_new_set in
1806     set,)
1807       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1808 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1809       ac_cache_corrupted=: ;;
1810     ,set)
1811       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1812 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1813       ac_cache_corrupted=: ;;
1814     ,);;
1815     *)
1816       if test "x$ac_old_val" != "x$ac_new_val"; then
1817         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1818 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1819         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1820 echo "$as_me:   former value:  $ac_old_val" >&2;}
1821         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1822 echo "$as_me:   current value: $ac_new_val" >&2;}
1823         ac_cache_corrupted=:
1824       fi;;
1825   esac
1826   # Pass precious variables to config.status.
1827   if test "$ac_new_set" = set; then
1828     case $ac_new_val in
1829     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1830     *) ac_arg=$ac_var=$ac_new_val ;;
1831     esac
1832     case " $ac_configure_args " in
1833       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1834       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1835     esac
1836   fi
1837 done
1838 if $ac_cache_corrupted; then
1839   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1840 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1841   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1842 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1843    { (exit 1); exit 1; }; }
1844 fi
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870 ac_ext=c
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875
1876
1877
1878 LLVM_SRC_ROOT="../.."
1879 LLVM_OBJ_ROOT="../.."
1880
1881 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1882 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1883
1884
1885 # Check whether --with-llvmsrc was given.
1886 if test "${with_llvmsrc+set}" = set; then
1887   withval=$with_llvmsrc; llvm_src="$withval"
1888 else
1889   llvm_src="$LLVM_ABS_SRC_ROOT"
1890 fi
1891
1892   LLVM_SRC=$llvm_src
1893
1894
1895 # Check whether --with-llvmobj was given.
1896 if test "${with_llvmobj+set}" = set; then
1897   withval=$with_llvmobj; llvm_obj="$withval"
1898 else
1899   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1900 fi
1901
1902   LLVM_OBJ=$llvm_obj
1903
1904   ac_config_commands="$ac_config_commands setup"
1905
1906
1907
1908 { echo "$as_me:$LINENO: checking llvm-config" >&5
1909 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1910 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1911 if ! test -f "$llvm_config_path" ; then
1912    llvm_config_path="no"
1913 fi
1914 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1915 echo "${ECHO_T}$llvm_config_path" >&6; }
1916
1917 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1918 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1919 if test "$llvm_config_path" != no ; then
1920   llvm_package_version=`$llvm_config_path --version`
1921 else
1922   llvm_package_version="unknown";
1923 fi
1924 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1925 echo "${ECHO_T}$llvm_package_version" >&6; }
1926 LLVM_VERSION=$llvm_package_version
1927
1928
1929
1930
1931 ac_aux_dir=
1932 for ac_dir in autoconf "$srcdir"/autoconf; do
1933   if test -f "$ac_dir/install-sh"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/install-sh -c"
1936     break
1937   elif test -f "$ac_dir/install.sh"; then
1938     ac_aux_dir=$ac_dir
1939     ac_install_sh="$ac_aux_dir/install.sh -c"
1940     break
1941   elif test -f "$ac_dir/shtool"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/shtool install -c"
1944     break
1945   fi
1946 done
1947 if test -z "$ac_aux_dir"; then
1948   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1960
1961
1962
1963
1964 ac_ext=c
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970   for ac_prog in clang llvm-gcc gcc
1971   do
1972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$CC"; then
1980   ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1989     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995 IFS=$as_save_IFS
1996
1997 fi
1998 fi
1999 CC=$ac_cv_prog_CC
2000 if test -n "$CC"; then
2001   { echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6; }
2003 else
2004   { echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6; }
2006 fi
2007
2008
2009     test -n "$CC" && break
2010   done
2011 fi
2012 if test -z "$CC"; then
2013   ac_ct_CC=$CC
2014   for ac_prog in clang llvm-gcc gcc
2015 do
2016   # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   if test -n "$ac_ct_CC"; then
2024   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029   IFS=$as_save_IFS
2030   test -z "$as_dir" && as_dir=.
2031   for ac_exec_ext in '' $ac_executable_extensions; do
2032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2033     ac_cv_prog_ac_ct_CC="$ac_prog"
2034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035     break 2
2036   fi
2037 done
2038 done
2039 IFS=$as_save_IFS
2040
2041 fi
2042 fi
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6; }
2047 else
2048   { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2050 fi
2051
2052
2053   test -n "$ac_ct_CC" && break
2054 done
2055
2056   if test "x$ac_ct_CC" = x; then
2057     CC=""
2058   else
2059     case $cross_compiling:$ac_tool_warned in
2060 yes:)
2061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2062 whose name does not start with the host triplet.  If you think this
2063 configuration is useful to you, please write to autoconf@gnu.org." >&5
2064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet.  If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2067 ac_tool_warned=yes ;;
2068 esac
2069     CC=$ac_ct_CC
2070   fi
2071 fi
2072
2073
2074 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: no acceptable C compiler found in \$PATH
2077 See \`config.log' for more details." >&2;}
2078    { (exit 1); exit 1; }; }
2079
2080 # Provide some information about the compiler.
2081 echo "$as_me:$LINENO: checking for C compiler version" >&5
2082 ac_compiler=`set X $ac_compile; echo $2`
2083 { (ac_try="$ac_compiler --version >&5"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089   (eval "$ac_compiler --version >&5") 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }
2093 { (ac_try="$ac_compiler -v >&5"
2094 case "(($ac_try" in
2095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096   *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099   (eval "$ac_compiler -v >&5") 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }
2103 { (ac_try="$ac_compiler -V >&5"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109   (eval "$ac_compiler -V >&5") 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113
2114 cat >conftest.$ac_ext <<_ACEOF
2115 /* confdefs.h.  */
2116 _ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h.  */
2120
2121 int
2122 main ()
2123 {
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 ac_clean_files_save=$ac_clean_files
2130 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2131 # Try to create an executable without -o first, disregard a.out.
2132 # It will help us diagnose broken compilers, and finding out an intuition
2133 # of exeext.
2134 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2135 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2136 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2137 #
2138 # List of possible output files, starting from the most likely.
2139 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2140 # only as a last resort.  b.out is created by i960 compilers.
2141 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2142 #
2143 # The IRIX 6 linker writes into existing files which may not be
2144 # executable, retaining their permissions.  Remove them first so a
2145 # subsequent execution test works.
2146 ac_rmfiles=
2147 for ac_file in $ac_files
2148 do
2149   case $ac_file in
2150     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2151     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2152   esac
2153 done
2154 rm -f $ac_rmfiles
2155
2156 if { (ac_try="$ac_link_default"
2157 case "(($ac_try" in
2158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159   *) ac_try_echo=$ac_try;;
2160 esac
2161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2162   (eval "$ac_link_default") 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; then
2166   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2167 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2168 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2169 # so that the user can short-circuit this test for compilers unknown to
2170 # Autoconf.
2171 for ac_file in $ac_files
2172 do
2173   test -f "$ac_file" || continue
2174   case $ac_file in
2175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2176         ;;
2177     [ab].out )
2178         # We found the default executable, but exeext='' is most
2179         # certainly right.
2180         break;;
2181     *.* )
2182         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2183         then :; else
2184            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185         fi
2186         # We set ac_cv_exeext here because the later test for it is not
2187         # safe: cross compilers may not add the suffix if given an `-o'
2188         # argument, so we may need to know it at that point already.
2189         # Even if this section looks crufty: it has the advantage of
2190         # actually working.
2191         break;;
2192     * )
2193         break;;
2194   esac
2195 done
2196 test "$ac_cv_exeext" = no && ac_cv_exeext=
2197
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&2;}
2206    { (exit 77); exit 77; }; }
2207 fi
2208
2209 ac_exeext=$ac_cv_exeext
2210 { echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6; }
2212
2213 # Check that the compiler produces executables we can run.  If not, either
2214 # the compiler is broken, or we cross compile.
2215 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2217 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218 # If not cross compiling, check that we can run a simple program.
2219 if test "$cross_compiling" != yes; then
2220   if { ac_try='./$ac_file'
2221   { (case "(($ac_try" in
2222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223   *) ac_try_echo=$ac_try;;
2224 esac
2225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2226   (eval "$ac_try") 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; }; then
2230     cross_compiling=no
2231   else
2232     if test "$cross_compiling" = maybe; then
2233         cross_compiling=yes
2234     else
2235         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&2;}
2241    { (exit 1); exit 1; }; }
2242     fi
2243   fi
2244 fi
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247
2248 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249 ac_clean_files=$ac_clean_files_save
2250 # Check that the compiler produces executables we can run.  If not, either
2251 # the compiler is broken, or we cross compile.
2252 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2254 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255 echo "${ECHO_T}$cross_compiling" >&6; }
2256
2257 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2259 if { (ac_try="$ac_link"
2260 case "(($ac_try" in
2261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262   *) ac_try_echo=$ac_try;;
2263 esac
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265   (eval "$ac_link") 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; then
2269   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2272 # `rm'.
2273 for ac_file in conftest.exe conftest conftest.*; do
2274   test -f "$ac_file" || continue
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2277     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278           break;;
2279     * ) break;;
2280   esac
2281 done
2282 else
2283   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287    { (exit 1); exit 1; }; }
2288 fi
2289
2290 rm -f conftest$ac_cv_exeext
2291 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2293
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2296 ac_exeext=$EXEEXT
2297 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2299 if test "${ac_cv_objext+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308
2309 int
2310 main ()
2311 {
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.o conftest.obj
2318 if { (ac_try="$ac_compile"
2319 case "(($ac_try" in
2320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321   *) ac_try_echo=$ac_try;;
2322 esac
2323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2324   (eval "$ac_compile") 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; then
2328   for ac_file in conftest.o conftest.obj conftest.*; do
2329   test -f "$ac_file" || continue;
2330   case $ac_file in
2331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2332     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2333        break;;
2334   esac
2335 done
2336 else
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&2;}
2344    { (exit 1); exit 1; }; }
2345 fi
2346
2347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348 fi
2349 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350 echo "${ECHO_T}$ac_cv_objext" >&6; }
2351 OBJEXT=$ac_cv_objext
2352 ac_objext=$OBJEXT
2353 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   cat >conftest.$ac_ext <<_ACEOF
2359 /* confdefs.h.  */
2360 _ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h.  */
2364
2365 int
2366 main ()
2367 {
2368 #ifndef __GNUC__
2369        choke me
2370 #endif
2371
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (ac_try="$ac_compile"
2378 case "(($ac_try" in
2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380   *) ac_try_echo=$ac_try;;
2381 esac
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383   (eval "$ac_compile") 2>conftest.er1
2384   ac_status=$?
2385   grep -v '^ *+' conftest.er1 >conftest.err
2386   rm -f conftest.er1
2387   cat conftest.err >&5
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); } &&
2390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391   { (case "(($ac_try" in
2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393   *) ac_try_echo=$ac_try;;
2394 esac
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396   (eval "$ac_try") 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; } &&
2400          { ac_try='test -s conftest.$ac_objext'
2401   { (case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406   (eval "$ac_try") 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; }; then
2410   ac_compiler_gnu=yes
2411 else
2412   echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415         ac_compiler_gnu=no
2416 fi
2417
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421 fi
2422 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_cc_g+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   ac_save_c_werror_flag=$ac_c_werror_flag
2433    ac_c_werror_flag=yes
2434    ac_cv_prog_cc_g=no
2435    CFLAGS="-g"
2436    cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442
2443 int
2444 main ()
2445 {
2446
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (ac_try="$ac_compile"
2453 case "(($ac_try" in
2454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455   *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458   (eval "$ac_compile") 2>conftest.er1
2459   ac_status=$?
2460   grep -v '^ *+' conftest.er1 >conftest.err
2461   rm -f conftest.er1
2462   cat conftest.err >&5
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); } &&
2465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2466   { (case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471   (eval "$ac_try") 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; } &&
2475          { ac_try='test -s conftest.$ac_objext'
2476   { (case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481   (eval "$ac_try") 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_cv_prog_cc_g=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490         CFLAGS=""
2491       cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h.  */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h.  */
2497
2498 int
2499 main ()
2500 {
2501
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 rm -f conftest.$ac_objext
2507 if { (ac_try="$ac_compile"
2508 case "(($ac_try" in
2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510   *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513   (eval "$ac_compile") 2>conftest.er1
2514   ac_status=$?
2515   grep -v '^ *+' conftest.er1 >conftest.err
2516   rm -f conftest.er1
2517   cat conftest.err >&5
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); } &&
2520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2521   { (case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526   (eval "$ac_try") 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536   (eval "$ac_try") 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   :
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545         ac_c_werror_flag=$ac_save_c_werror_flag
2546          CFLAGS="-g"
2547          cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h.  */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h.  */
2553
2554 int
2555 main ()
2556 {
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2564 case "(($ac_try" in
2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566   *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569   (eval "$ac_compile") 2>conftest.er1
2570   ac_status=$?
2571   grep -v '^ *+' conftest.er1 >conftest.err
2572   rm -f conftest.er1
2573   cat conftest.err >&5
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2577   { (case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582   (eval "$ac_try") 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; } &&
2586          { ac_try='test -s conftest.$ac_objext'
2587   { (case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_try") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; }; then
2596   ac_cv_prog_cc_g=yes
2597 else
2598   echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601
2602 fi
2603
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611    ac_c_werror_flag=$ac_save_c_werror_flag
2612 fi
2613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2615 if test "$ac_test_CFLAGS" = set; then
2616   CFLAGS=$ac_save_CFLAGS
2617 elif test $ac_cv_prog_cc_g = yes; then
2618   if test "$GCC" = yes; then
2619     CFLAGS="-g -O2"
2620   else
2621     CFLAGS="-g"
2622   fi
2623 else
2624   if test "$GCC" = yes; then
2625     CFLAGS="-O2"
2626   else
2627     CFLAGS=
2628   fi
2629 fi
2630 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2631 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_cc_c89+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   ac_cv_prog_cc_c89=no
2636 ac_save_CC=$CC
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2643 #include <stdarg.h>
2644 #include <stdio.h>
2645 #include <sys/types.h>
2646 #include <sys/stat.h>
2647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2648 struct buf { int x; };
2649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2650 static char *e (p, i)
2651      char **p;
2652      int i;
2653 {
2654   return p[i];
2655 }
2656 static char *f (char * (*g) (char **, int), char **p, ...)
2657 {
2658   char *s;
2659   va_list v;
2660   va_start (v,p);
2661   s = g (p, va_arg (v,int));
2662   va_end (v);
2663   return s;
2664 }
2665
2666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2667    function prototypes and stuff, but not '\xHH' hex character constants.
2668    These don't provoke an error unfortunately, instead are silently treated
2669    as 'x'.  The following induces an error, until -std is added to get
2670    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2671    array size at least.  It's necessary to write '\x00'==0 to get something
2672    that's true only with -std.  */
2673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2674
2675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2676    inside strings and character constants.  */
2677 #define FOO(x) 'x'
2678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2679
2680 int test (int i, double x);
2681 struct s1 {int (*f) (int a);};
2682 struct s2 {int (*f) (double a);};
2683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684 int argc;
2685 char **argv;
2686 int
2687 main ()
2688 {
2689 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2695         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2696 do
2697   CC="$ac_save_CC $ac_arg"
2698   rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2700 case "(($ac_try" in
2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702   *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705   (eval "$ac_compile") 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2713   { (case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_try") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_try") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; }; then
2732   ac_cv_prog_cc_c89=$ac_arg
2733 else
2734   echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737
2738 fi
2739
2740 rm -f core conftest.err conftest.$ac_objext
2741   test "x$ac_cv_prog_cc_c89" != "xno" && break
2742 done
2743 rm -f conftest.$ac_ext
2744 CC=$ac_save_CC
2745
2746 fi
2747 # AC_CACHE_VAL
2748 case "x$ac_cv_prog_cc_c89" in
2749   x)
2750     { echo "$as_me:$LINENO: result: none needed" >&5
2751 echo "${ECHO_T}none needed" >&6; } ;;
2752   xno)
2753     { echo "$as_me:$LINENO: result: unsupported" >&5
2754 echo "${ECHO_T}unsupported" >&6; } ;;
2755   *)
2756     CC="$CC $ac_cv_prog_cc_c89"
2757     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2758 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2759 esac
2760
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
2768 ac_ext=cpp
2769 ac_cpp='$CXXCPP $CPPFLAGS'
2770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2773 if test -z "$CXX"; then
2774   if test -n "$CCC"; then
2775     CXX=$CCC
2776   else
2777     if test -n "$ac_tool_prefix"; then
2778   for ac_prog in clang++ llvm-g++ g++
2779   do
2780     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_CXX+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   if test -n "$CXX"; then
2788   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795   for ac_exec_ext in '' $ac_executable_extensions; do
2796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2797     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 CXX=$ac_cv_prog_CXX
2808 if test -n "$CXX"; then
2809   { echo "$as_me:$LINENO: result: $CXX" >&5
2810 echo "${ECHO_T}$CXX" >&6; }
2811 else
2812   { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2814 fi
2815
2816
2817     test -n "$CXX" && break
2818   done
2819 fi
2820 if test -z "$CXX"; then
2821   ac_ct_CXX=$CXX
2822   for ac_prog in clang++ llvm-g++ g++
2823 do
2824   # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$ac_ct_CXX"; then
2832   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_ac_ct_CXX="$ac_prog"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2852 if test -n "$ac_ct_CXX"; then
2853   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2854 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2855 else
2856   { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2858 fi
2859
2860
2861   test -n "$ac_ct_CXX" && break
2862 done
2863
2864   if test "x$ac_ct_CXX" = x; then
2865     CXX="g++"
2866   else
2867     case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet.  If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&5
2872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet.  If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875 ac_tool_warned=yes ;;
2876 esac
2877     CXX=$ac_ct_CXX
2878   fi
2879 fi
2880
2881   fi
2882 fi
2883 # Provide some information about the compiler.
2884 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2885 ac_compiler=`set X $ac_compile; echo $2`
2886 { (ac_try="$ac_compiler --version >&5"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_compiler --version >&5") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }
2896 { (ac_try="$ac_compiler -v >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler -v >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906 { (ac_try="$ac_compiler -V >&5"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compiler -V >&5") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916
2917 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2918 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2919 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h.  */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h.  */
2928
2929 int
2930 main ()
2931 {
2932 #ifndef __GNUC__
2933        choke me
2934 #endif
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_compile") 2>conftest.er1
2948   ac_status=$?
2949   grep -v '^ *+' conftest.er1 >conftest.err
2950   rm -f conftest.er1
2951   cat conftest.err >&5
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } &&
2954          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2955   { (case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_try") 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; } &&
2964          { ac_try='test -s conftest.$ac_objext'
2965   { (case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_try") 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; }; then
2974   ac_compiler_gnu=yes
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979         ac_compiler_gnu=no
2980 fi
2981
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2984
2985 fi
2986 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2987 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2988 GXX=`test $ac_compiler_gnu = yes && echo yes`
2989 ac_test_CXXFLAGS=${CXXFLAGS+set}
2990 ac_save_CXXFLAGS=$CXXFLAGS
2991 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2992 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_cxx_g+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2997    ac_cxx_werror_flag=yes
2998    ac_cv_prog_cxx_g=no
2999    CXXFLAGS="-g"
3000    cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006
3007 int
3008 main ()
3009 {
3010
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3017 case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_compile") 2>conftest.er1
3023   ac_status=$?
3024   grep -v '^ *+' conftest.er1 >conftest.err
3025   rm -f conftest.er1
3026   cat conftest.err >&5
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); } &&
3029          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; } &&
3039          { ac_try='test -s conftest.$ac_objext'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   ac_cv_prog_cxx_g=yes
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054         CXXFLAGS=""
3055       cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061
3062 int
3063 main ()
3064 {
3065
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_compile") 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } &&
3084          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; } &&
3094          { ac_try='test -s conftest.$ac_objext'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   :
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3110          CXXFLAGS="-g"
3111          cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117
3118 int
3119 main ()
3120 {
3121
3122   ;
3123   return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_compile") 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } &&
3140          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3141   { (case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_try") 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; } &&
3150          { ac_try='test -s conftest.$ac_objext'
3151   { (case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_try") 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; }; then
3160   ac_cv_prog_cxx_g=yes
3161 else
3162   echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 fi
3170
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3176 fi
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3179 if test "$ac_test_CXXFLAGS" = set; then
3180   CXXFLAGS=$ac_save_CXXFLAGS
3181 elif test $ac_cv_prog_cxx_g = yes; then
3182   if test "$GXX" = yes; then
3183     CXXFLAGS="-g -O2"
3184   else
3185     CXXFLAGS="-g"
3186   fi
3187 else
3188   if test "$GXX" = yes; then
3189     CXXFLAGS="-O2"
3190   else
3191     CXXFLAGS=
3192   fi
3193 fi
3194 ac_ext=c
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3206 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3207 # On Suns, sometimes $CPP names a directory.
3208 if test -n "$CPP" && test -d "$CPP"; then
3209   CPP=
3210 fi
3211 if test -z "$CPP"; then
3212   if test "${ac_cv_prog_CPP+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215       # Double quotes because CPP needs to be expanded
3216     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217     do
3218       ac_preproc_ok=false
3219 for ac_c_preproc_warn_flag in '' yes
3220 do
3221   # Use a header file that comes with gcc, so configuring glibc
3222   # with a fresh cross-compiler works.
3223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224   # <limits.h> exists even on freestanding compilers.
3225   # On the NeXT, cc -E runs the code through the compiler's parser,
3226   # not just through cpp. "Syntax error" is here to catch this case.
3227   cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233 #ifdef __STDC__
3234 # include <limits.h>
3235 #else
3236 # include <assert.h>
3237 #endif
3238                      Syntax error
3239 _ACEOF
3240 if { (ac_try="$ac_cpp conftest.$ac_ext"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247   ac_status=$?
3248   grep -v '^ *+' conftest.er1 >conftest.err
3249   rm -f conftest.er1
3250   cat conftest.err >&5
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); } >/dev/null; then
3253   if test -s conftest.err; then
3254     ac_cpp_err=$ac_c_preproc_warn_flag
3255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256   else
3257     ac_cpp_err=
3258   fi
3259 else
3260   ac_cpp_err=yes
3261 fi
3262 if test -z "$ac_cpp_err"; then
3263   :
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268   # Broken: fails on valid input.
3269 continue
3270 fi
3271
3272 rm -f conftest.err conftest.$ac_ext
3273
3274   # OK, works on sane cases.  Now check whether nonexistent headers
3275   # can be detected and how.
3276   cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282 #include <ac_nonexistent.h>
3283 _ACEOF
3284 if { (ac_try="$ac_cpp conftest.$ac_ext"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } >/dev/null; then
3297   if test -s conftest.err; then
3298     ac_cpp_err=$ac_c_preproc_warn_flag
3299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300   else
3301     ac_cpp_err=
3302   fi
3303 else
3304   ac_cpp_err=yes
3305 fi
3306 if test -z "$ac_cpp_err"; then
3307   # Broken: success on invalid input.
3308 continue
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313   # Passes both tests.
3314 ac_preproc_ok=:
3315 break
3316 fi
3317
3318 rm -f conftest.err conftest.$ac_ext
3319
3320 done
3321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322 rm -f conftest.err conftest.$ac_ext
3323 if $ac_preproc_ok; then
3324   break
3325 fi
3326
3327     done
3328     ac_cv_prog_CPP=$CPP
3329
3330 fi
3331   CPP=$ac_cv_prog_CPP
3332 else
3333   ac_cv_prog_CPP=$CPP
3334 fi
3335 { echo "$as_me:$LINENO: result: $CPP" >&5
3336 echo "${ECHO_T}$CPP" >&6; }
3337 ac_preproc_ok=false
3338 for ac_c_preproc_warn_flag in '' yes
3339 do
3340   # Use a header file that comes with gcc, so configuring glibc
3341   # with a fresh cross-compiler works.
3342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343   # <limits.h> exists even on freestanding compilers.
3344   # On the NeXT, cc -E runs the code through the compiler's parser,
3345   # not just through cpp. "Syntax error" is here to catch this case.
3346   cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352 #ifdef __STDC__
3353 # include <limits.h>
3354 #else
3355 # include <assert.h>
3356 #endif
3357                      Syntax error
3358 _ACEOF
3359 if { (ac_try="$ac_cpp conftest.$ac_ext"
3360 case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3366   ac_status=$?
3367   grep -v '^ *+' conftest.er1 >conftest.err
3368   rm -f conftest.er1
3369   cat conftest.err >&5
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); } >/dev/null; then
3372   if test -s conftest.err; then
3373     ac_cpp_err=$ac_c_preproc_warn_flag
3374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375   else
3376     ac_cpp_err=
3377   fi
3378 else
3379   ac_cpp_err=yes
3380 fi
3381 if test -z "$ac_cpp_err"; then
3382   :
3383 else
3384   echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387   # Broken: fails on valid input.
3388 continue
3389 fi
3390
3391 rm -f conftest.err conftest.$ac_ext
3392
3393   # OK, works on sane cases.  Now check whether nonexistent headers
3394   # can be detected and how.
3395   cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401 #include <ac_nonexistent.h>
3402 _ACEOF
3403 if { (ac_try="$ac_cpp conftest.$ac_ext"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } >/dev/null; then
3416   if test -s conftest.err; then
3417     ac_cpp_err=$ac_c_preproc_warn_flag
3418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419   else
3420     ac_cpp_err=
3421   fi
3422 else
3423   ac_cpp_err=yes
3424 fi
3425 if test -z "$ac_cpp_err"; then
3426   # Broken: success on invalid input.
3427 continue
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432   # Passes both tests.
3433 ac_preproc_ok=:
3434 break
3435 fi
3436
3437 rm -f conftest.err conftest.$ac_ext
3438
3439 done
3440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441 rm -f conftest.err conftest.$ac_ext
3442 if $ac_preproc_ok; then
3443   :
3444 else
3445   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&5
3447 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&2;}
3449    { (exit 1); exit 1; }; }
3450 fi
3451
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
3458
3459
3460
3461 # Check whether --enable-polly was given.
3462 if test "${enable_polly+set}" = set; then
3463   enableval=$enable_polly;
3464 else
3465   enableval=default
3466 fi
3467
3468 case "$enableval" in
3469   yes) ENABLE_POLLY=1
3470  ;;
3471   no)  ENABLE_POLLY=0
3472  ;;
3473   default) ENABLE_POLLY=1
3474  ;;
3475   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3476 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3477    { (exit 1); exit 1; }; } ;;
3478 esac
3479
3480
3481 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3482   LLVM_HAS_POLLY=1
3483
3484   subdirs="$subdirs tools/polly"
3485
3486 fi
3487
3488
3489 # Make sure we can run config.sub.
3490 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3491   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3492 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3493    { (exit 1); exit 1; }; }
3494
3495 { echo "$as_me:$LINENO: checking build system type" >&5
3496 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3497 if test "${ac_cv_build+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   ac_build_alias=$build_alias
3501 test "x$ac_build_alias" = x &&
3502   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3503 test "x$ac_build_alias" = x &&
3504   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3505 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3506    { (exit 1); exit 1; }; }
3507 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3508   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3509 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3510    { (exit 1); exit 1; }; }
3511
3512 fi
3513 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3514 echo "${ECHO_T}$ac_cv_build" >&6; }
3515 case $ac_cv_build in
3516 *-*-*) ;;
3517 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3518 echo "$as_me: error: invalid value of canonical build" >&2;}
3519    { (exit 1); exit 1; }; };;
3520 esac
3521 build=$ac_cv_build
3522 ac_save_IFS=$IFS; IFS='-'
3523 set x $ac_cv_build
3524 shift
3525 build_cpu=$1
3526 build_vendor=$2
3527 shift; shift
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3530 build_os=$*
3531 IFS=$ac_save_IFS
3532 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3533
3534
3535 { echo "$as_me:$LINENO: checking host system type" >&5
3536 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3537 if test "${ac_cv_host+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   if test "x$host_alias" = x; then
3541   ac_cv_host=$ac_cv_build
3542 else
3543   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3544     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3545 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3546    { (exit 1); exit 1; }; }
3547 fi
3548
3549 fi
3550 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3551 echo "${ECHO_T}$ac_cv_host" >&6; }
3552 case $ac_cv_host in
3553 *-*-*) ;;
3554 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3555 echo "$as_me: error: invalid value of canonical host" >&2;}
3556    { (exit 1); exit 1; }; };;
3557 esac
3558 host=$ac_cv_host
3559 ac_save_IFS=$IFS; IFS='-'
3560 set x $ac_cv_host
3561 shift
3562 host_cpu=$1
3563 host_vendor=$2
3564 shift; shift
3565 # Remember, the first character of IFS is used to create $*,
3566 # except with old shells:
3567 host_os=$*
3568 IFS=$ac_save_IFS
3569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3570
3571
3572 { echo "$as_me:$LINENO: checking target system type" >&5
3573 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3574 if test "${ac_cv_target+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   if test "x$target_alias" = x; then
3578   ac_cv_target=$ac_cv_host
3579 else
3580   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3581     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3582 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3583    { (exit 1); exit 1; }; }
3584 fi
3585
3586 fi
3587 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3588 echo "${ECHO_T}$ac_cv_target" >&6; }
3589 case $ac_cv_target in
3590 *-*-*) ;;
3591 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3592 echo "$as_me: error: invalid value of canonical target" >&2;}
3593    { (exit 1); exit 1; }; };;
3594 esac
3595 target=$ac_cv_target
3596 ac_save_IFS=$IFS; IFS='-'
3597 set x $ac_cv_target
3598 shift
3599 target_cpu=$1
3600 target_vendor=$2
3601 shift; shift
3602 # Remember, the first character of IFS is used to create $*,
3603 # except with old shells:
3604 target_os=$*
3605 IFS=$ac_save_IFS
3606 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3607
3608
3609 # The aliases save the names the user supplied, while $host etc.
3610 # will get canonicalized.
3611 test -n "$target_alias" &&
3612   test "$program_prefix$program_suffix$program_transform_name" = \
3613     NONENONEs,x,x, &&
3614   program_prefix=${target_alias}-
3615
3616 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3617 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3618 if test "${llvm_cv_os_type+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $host in
3622   *-*-aix*)
3623     llvm_cv_link_all_option="-Wl,--whole-archive"
3624     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3625     llvm_cv_os_type="AIX"
3626     llvm_cv_platform_type="Unix" ;;
3627   *-*-irix*)
3628     llvm_cv_link_all_option="-Wl,--whole-archive"
3629     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3630     llvm_cv_os_type="IRIX"
3631     llvm_cv_platform_type="Unix" ;;
3632   *-*-cygwin*)
3633     llvm_cv_link_all_option="-Wl,--whole-archive"
3634     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635     llvm_cv_os_type="Cygwin"
3636     llvm_cv_platform_type="Unix" ;;
3637   *-*-darwin*)
3638     llvm_cv_link_all_option="-Wl,-all_load"
3639     llvm_cv_no_link_all_option="-Wl,-noall_load"
3640     llvm_cv_os_type="Darwin"
3641     llvm_cv_platform_type="Unix" ;;
3642   *-*-minix*)
3643     llvm_cv_link_all_option="-Wl,-all_load"
3644     llvm_cv_no_link_all_option="-Wl,-noall_load"
3645     llvm_cv_os_type="Minix"
3646     llvm_cv_platform_type="Unix" ;;
3647   *-*-freebsd*)
3648     llvm_cv_link_all_option="-Wl,--whole-archive"
3649     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3650     llvm_cv_os_type="FreeBSD"
3651     llvm_cv_platform_type="Unix" ;;
3652   *-*-openbsd*)
3653     llvm_cv_link_all_option="-Wl,--whole-archive"
3654     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3655     llvm_cv_os_type="OpenBSD"
3656     llvm_cv_platform_type="Unix" ;;
3657   *-*-netbsd*)
3658     llvm_cv_link_all_option="-Wl,--whole-archive"
3659     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660     llvm_cv_os_type="NetBSD"
3661     llvm_cv_platform_type="Unix" ;;
3662   *-*-dragonfly*)
3663     llvm_cv_link_all_option="-Wl,--whole-archive"
3664     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665     llvm_cv_os_type="DragonFly"
3666     llvm_cv_platform_type="Unix" ;;
3667   *-*-hpux*)
3668     llvm_cv_link_all_option="-Wl,--whole-archive"
3669     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670     llvm_cv_os_type="HP-UX"
3671     llvm_cv_platform_type="Unix" ;;
3672   *-*-interix*)
3673     llvm_cv_link_all_option="-Wl,--whole-archive"
3674     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675     llvm_cv_os_type="Interix"
3676     llvm_cv_platform_type="Unix" ;;
3677   *-*-linux*)
3678     llvm_cv_link_all_option="-Wl,--whole-archive"
3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680     llvm_cv_os_type="Linux"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-solaris*)
3683     llvm_cv_link_all_option="-Wl,-z,allextract"
3684     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3685     llvm_cv_os_type="SunOS"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-auroraux*)
3688     llvm_cv_link_all_option="-Wl,-z,allextract"
3689     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3690     llvm_cv_os_type="AuroraUX"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-win32*)
3693     llvm_cv_link_all_option="-Wl,--whole-archive"
3694     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695     llvm_cv_os_type="Win32"
3696     llvm_cv_platform_type="Win32" ;;
3697   *-*-mingw*)
3698     llvm_cv_link_all_option="-Wl,--whole-archive"
3699     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700     llvm_cv_os_type="MingW"
3701     llvm_cv_platform_type="Win32" ;;
3702   *-*-haiku*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="Haiku"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-unknown-eabi*)
3708     llvm_cv_link_all_option="-Wl,--whole-archive"
3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710     llvm_cv_os_type="Freestanding"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-unknown-elf*)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="Freestanding"
3716     llvm_cv_platform_type="Unix" ;;
3717   *)
3718     llvm_cv_link_all_option=""
3719     llvm_cv_no_link_all_option=""
3720     llvm_cv_os_type="Unknown"
3721     llvm_cv_platform_type="Unknown" ;;
3722 esac
3723 fi
3724 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3725 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3726
3727 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3728 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3729 if test "${llvm_cv_target_os_type+set}" = set; then
3730   echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732   case $target in
3733   *-*-aix*)
3734     llvm_cv_target_os_type="AIX" ;;
3735   *-*-irix*)
3736     llvm_cv_target_os_type="IRIX" ;;
3737   *-*-cygwin*)
3738     llvm_cv_target_os_type="Cygwin" ;;
3739   *-*-darwin*)
3740     llvm_cv_target_os_type="Darwin" ;;
3741   *-*-minix*)
3742     llvm_cv_target_os_type="Minix" ;;
3743   *-*-freebsd*)
3744     llvm_cv_target_os_type="FreeBSD" ;;
3745   *-*-openbsd*)
3746     llvm_cv_target_os_type="OpenBSD" ;;
3747   *-*-netbsd*)
3748     llvm_cv_target_os_type="NetBSD" ;;
3749   *-*-dragonfly*)
3750     llvm_cv_target_os_type="DragonFly" ;;
3751   *-*-hpux*)
3752     llvm_cv_target_os_type="HP-UX" ;;
3753   *-*-interix*)
3754     llvm_cv_target_os_type="Interix" ;;
3755   *-*-linux*)
3756     llvm_cv_target_os_type="Linux" ;;
3757   *-*-solaris*)
3758     llvm_cv_target_os_type="SunOS" ;;
3759   *-*-auroraux*)
3760     llvm_cv_target_os_type="AuroraUX" ;;
3761   *-*-win32*)
3762     llvm_cv_target_os_type="Win32" ;;
3763   *-*-mingw*)
3764     llvm_cv_target_os_type="MingW" ;;
3765   *-*-haiku*)
3766     llvm_cv_target_os_type="Haiku" ;;
3767   *-*-rtems*)
3768     llvm_cv_target_os_type="RTEMS" ;;
3769   *-*-nacl*)
3770     llvm_cv_target_os_type="NativeClient" ;;
3771   *-unknown-eabi*)
3772     llvm_cv_target_os_type="Freestanding" ;;
3773   *)
3774     llvm_cv_target_os_type="Unknown" ;;
3775 esac
3776 fi
3777 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3778 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3779
3780 if test "$llvm_cv_os_type" = "Unknown" ; then
3781   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3782 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3783    { (exit 1); exit 1; }; }
3784 fi
3785
3786 OS=$llvm_cv_os_type
3787
3788 HOST_OS=$llvm_cv_os_type
3789
3790 TARGET_OS=$llvm_cv_target_os_type
3791
3792
3793 LINKALL=$llvm_cv_link_all_option
3794
3795 NOLINKALL=$llvm_cv_no_link_all_option
3796
3797
3798 case $llvm_cv_platform_type in
3799   Unix)
3800
3801 cat >>confdefs.h <<\_ACEOF
3802 #define LLVM_ON_UNIX 1
3803 _ACEOF
3804
3805     LLVM_ON_UNIX=1
3806
3807     LLVM_ON_WIN32=0
3808
3809     ;;
3810   Win32)
3811
3812 cat >>confdefs.h <<\_ACEOF
3813 #define LLVM_ON_WIN32 1
3814 _ACEOF
3815
3816     LLVM_ON_UNIX=0
3817
3818     LLVM_ON_WIN32=1
3819
3820     ;;
3821 esac
3822
3823 { echo "$as_me:$LINENO: checking target architecture" >&5
3824 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3825 if test "${llvm_cv_target_arch+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   case $target in
3829   i?86-*)                 llvm_cv_target_arch="x86" ;;
3830   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3831   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3832   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3833   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3834   mips-*)                 llvm_cv_target_arch="Mips" ;;
3835   xcore-*)                llvm_cv_target_arch="XCore" ;;
3836   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3837   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3838   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3839   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3840   *)                      llvm_cv_target_arch="Unknown" ;;
3841 esac
3842 fi
3843 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3844 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3845
3846 if test "$llvm_cv_target_arch" = "Unknown" ; then
3847   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3848 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3849 fi
3850
3851 # Determine the LLVM native architecture for the target
3852 case "$llvm_cv_target_arch" in
3853     x86)     LLVM_NATIVE_ARCH="X86" ;;
3854     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3855     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3856 esac
3857
3858 ARCH=$llvm_cv_target_arch
3859
3860
3861
3862
3863 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3864 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3865 if test "${ac_cv_path_GREP+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   # Extract the first word of "grep ggrep" to use in msg output
3869 if test -z "$GREP"; then
3870 set dummy grep ggrep; ac_prog_name=$2
3871 if test "${ac_cv_path_GREP+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   ac_path_GREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881   for ac_prog in grep ggrep; do
3882   for ac_exec_ext in '' $ac_executable_extensions; do
3883     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3884     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3885     # Check for GNU ac_path_GREP and select it if it is found.
3886   # Check for GNU $ac_path_GREP
3887 case `"$ac_path_GREP" --version 2>&1` in
3888 *GNU*)
3889   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3890 *)
3891   ac_count=0
3892   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3893   while :
3894   do
3895     cat "conftest.in" "conftest.in" >"conftest.tmp"
3896     mv "conftest.tmp" "conftest.in"
3897     cp "conftest.in" "conftest.nl"
3898     echo 'GREP' >> "conftest.nl"
3899     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901     ac_count=`expr $ac_count + 1`
3902     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3903       # Best one so far, save it but keep looking for a better one
3904       ac_cv_path_GREP="$ac_path_GREP"
3905       ac_path_GREP_max=$ac_count
3906     fi
3907     # 10*(2^10) chars as input seems more than enough
3908     test $ac_count -gt 10 && break
3909   done
3910   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911 esac
3912
3913
3914     $ac_path_GREP_found && break 3
3915   done
3916 done
3917
3918 done
3919 IFS=$as_save_IFS
3920
3921
3922 fi
3923
3924 GREP="$ac_cv_path_GREP"
3925 if test -z "$GREP"; then
3926   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928    { (exit 1); exit 1; }; }
3929 fi
3930
3931 else
3932   ac_cv_path_GREP=$GREP
3933 fi
3934
3935
3936 fi
3937 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3938 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3939  GREP="$ac_cv_path_GREP"
3940
3941
3942 { echo "$as_me:$LINENO: checking for egrep" >&5
3943 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3944 if test "${ac_cv_path_EGREP+set}" = set; then
3945   echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3948    then ac_cv_path_EGREP="$GREP -E"
3949    else
3950      # Extract the first word of "egrep" to use in msg output
3951 if test -z "$EGREP"; then
3952 set dummy egrep; ac_prog_name=$2
3953 if test "${ac_cv_path_EGREP+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   ac_path_EGREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960 do
3961   IFS=$as_save_IFS
3962   test -z "$as_dir" && as_dir=.
3963   for ac_prog in egrep; do
3964   for ac_exec_ext in '' $ac_executable_extensions; do
3965     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3967     # Check for GNU ac_path_EGREP and select it if it is found.
3968   # Check for GNU $ac_path_EGREP
3969 case `"$ac_path_EGREP" --version 2>&1` in
3970 *GNU*)
3971   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972 *)
3973   ac_count=0
3974   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3975   while :
3976   do
3977     cat "conftest.in" "conftest.in" >"conftest.tmp"
3978     mv "conftest.tmp" "conftest.in"
3979     cp "conftest.in" "conftest.nl"
3980     echo 'EGREP' >> "conftest.nl"
3981     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983     ac_count=`expr $ac_count + 1`
3984     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985       # Best one so far, save it but keep looking for a better one
3986       ac_cv_path_EGREP="$ac_path_EGREP"
3987       ac_path_EGREP_max=$ac_count
3988     fi
3989     # 10*(2^10) chars as input seems more than enough
3990     test $ac_count -gt 10 && break
3991   done
3992   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993 esac
3994
3995
3996     $ac_path_EGREP_found && break 3
3997   done
3998 done
3999
4000 done
4001 IFS=$as_save_IFS
4002
4003
4004 fi
4005
4006 EGREP="$ac_cv_path_EGREP"
4007 if test -z "$EGREP"; then
4008   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4009 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4010    { (exit 1); exit 1; }; }
4011 fi
4012
4013 else
4014   ac_cv_path_EGREP=$EGREP
4015 fi
4016
4017
4018    fi
4019 fi
4020 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4021 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4022  EGREP="$ac_cv_path_EGREP"
4023
4024
4025 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4027 if test "${ac_cv_header_stdc+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 #include <stdlib.h>
4037 #include <stdarg.h>
4038 #include <string.h>
4039 #include <float.h>
4040
4041 int
4042 main ()
4043 {
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 rm -f conftest.$ac_objext
4050 if { (ac_try="$ac_compile"
4051 case "(($ac_try" in
4052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053   *) ac_try_echo=$ac_try;;
4054 esac
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056   (eval "$ac_compile") 2>conftest.er1
4057   ac_status=$?
4058   grep -v '^ *+' conftest.er1 >conftest.err
4059   rm -f conftest.er1
4060   cat conftest.err >&5
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); } &&
4063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064   { (case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069   (eval "$ac_try") 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; } &&
4073          { ac_try='test -s conftest.$ac_objext'
4074   { (case "(($ac_try" in
4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076   *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079   (eval "$ac_try") 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; }; then
4083   ac_cv_header_stdc=yes
4084 else
4085   echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088         ac_cv_header_stdc=no
4089 fi
4090
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092
4093 if test $ac_cv_header_stdc = yes; then
4094   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4095   cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h.  */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h.  */
4101 #include <string.h>
4102
4103 _ACEOF
4104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105   $EGREP "memchr" >/dev/null 2>&1; then
4106   :
4107 else
4108   ac_cv_header_stdc=no
4109 fi
4110 rm -f conftest*
4111
4112 fi
4113
4114 if test $ac_cv_header_stdc = yes; then
4115   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <stdlib.h>
4123
4124 _ACEOF
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126   $EGREP "free" >/dev/null 2>&1; then
4127   :
4128 else
4129   ac_cv_header_stdc=no
4130 fi
4131 rm -f conftest*
4132
4133 fi
4134
4135 if test $ac_cv_header_stdc = yes; then
4136   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4137   if test "$cross_compiling" = yes; then
4138   :
4139 else
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <ctype.h>
4147 #include <stdlib.h>
4148 #if ((' ' & 0x0FF) == 0x020)
4149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4151 #else
4152 # define ISLOWER(c) \
4153                    (('a' <= (c) && (c) <= 'i') \
4154                      || ('j' <= (c) && (c) <= 'r') \
4155                      || ('s' <= (c) && (c) <= 'z'))
4156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4157 #endif
4158
4159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4160 int
4161 main ()
4162 {
4163   int i;
4164   for (i = 0; i < 256; i++)
4165     if (XOR (islower (i), ISLOWER (i))
4166         || toupper (i) != TOUPPER (i))
4167       return 2;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest$ac_exeext
4172 if { (ac_try="$ac_link"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178   (eval "$ac_link") 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; }; then
4191   :
4192 else
4193   echo "$as_me: program exited with status $ac_status" >&5
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197 ( exit $ac_status )
4198 ac_cv_header_stdc=no
4199 fi
4200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4201 fi
4202
4203
4204 fi
4205 fi
4206 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4207 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4208 if test $ac_cv_header_stdc = yes; then
4209
4210 cat >>confdefs.h <<\_ACEOF
4211 #define STDC_HEADERS 1
4212 _ACEOF
4213
4214 fi
4215
4216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4227                   inttypes.h stdint.h unistd.h
4228 do
4229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h.  */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h.  */
4241 $ac_includes_default
4242
4243 #include <$ac_header>
4244 _ACEOF
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4247 case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252   (eval "$ac_compile") 2>conftest.er1
4253   ac_status=$?
4254   grep -v '^ *+' conftest.er1 >conftest.err
4255   rm -f conftest.er1
4256   cat conftest.err >&5
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); } &&
4259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260   { (case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_try") 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; } &&
4269          { ac_try='test -s conftest.$ac_objext'
4270   { (case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_try") 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; }; then
4279   eval "$as_ac_Header=yes"
4280 else
4281   echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284         eval "$as_ac_Header=no"
4285 fi
4286
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 fi
4289 ac_res=`eval echo '${'$as_ac_Header'}'`
4290                { echo "$as_me:$LINENO: result: $ac_res" >&5
4291 echo "${ECHO_T}$ac_res" >&6; }
4292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293   cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295 _ACEOF
4296
4297 fi
4298
4299 done
4300
4301
4302 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4303 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4304 if test "${ac_cv_c_bigendian+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   # See if sys/param.h defines the BYTE_ORDER macro.
4308 cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 #include <sys/types.h>
4315 #include <sys/param.h>
4316
4317 int
4318 main ()
4319 {
4320 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4321  bogus endian macros
4322 #endif
4323
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (ac_try="$ac_compile"
4330 case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335   (eval "$ac_compile") 2>conftest.er1
4336   ac_status=$?
4337   grep -v '^ *+' conftest.er1 >conftest.err
4338   rm -f conftest.er1
4339   cat conftest.err >&5
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); } &&
4342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4343   { (case "(($ac_try" in
4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345   *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348   (eval "$ac_try") 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }; } &&
4352          { ac_try='test -s conftest.$ac_objext'
4353   { (case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358   (eval "$ac_try") 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; }; then
4362   # It does; now see whether it defined to BIG_ENDIAN or not.
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h.  */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h.  */
4369 #include <sys/types.h>
4370 #include <sys/param.h>
4371
4372 int
4373 main ()
4374 {
4375 #if BYTE_ORDER != BIG_ENDIAN
4376  not big endian
4377 #endif
4378
4379   ;
4380   return 0;
4381 }
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4385 case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_compile") 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } &&
4397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; } &&
4407          { ac_try='test -s conftest.$ac_objext'
4408   { (case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; }; then
4417   ac_cv_c_bigendian=yes
4418 else
4419   echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422         ac_cv_c_bigendian=no
4423 fi
4424
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 else
4427   echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430         # It does not; compile a test program.
4431 if test "$cross_compiling" = yes; then
4432   # try to guess the endianness by grepping values into an object file
4433   ac_cv_c_bigendian=unknown
4434   cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h.  */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h.  */
4440 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4441 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4442 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4443 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4444 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4445 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4446 int
4447 main ()
4448 {
4449  _ascii (); _ebcdic ();
4450   ;
4451   return 0;
4452 }
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (ac_try="$ac_compile"
4456 case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461   (eval "$ac_compile") 2>conftest.er1
4462   ac_status=$?
4463   grep -v '^ *+' conftest.er1 >conftest.err
4464   rm -f conftest.er1
4465   cat conftest.err >&5
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); } &&
4468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4469   { (case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474   (eval "$ac_try") 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; } &&
4478          { ac_try='test -s conftest.$ac_objext'
4479   { (case "(($ac_try" in
4480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481   *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484   (eval "$ac_try") 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; }; then
4488   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4489   ac_cv_c_bigendian=yes
4490 fi
4491 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4492   if test "$ac_cv_c_bigendian" = unknown; then
4493     ac_cv_c_bigendian=no
4494   else
4495     # finding both strings is unlikely to happen, but who knows?
4496     ac_cv_c_bigendian=unknown
4497   fi
4498 fi
4499 else
4500   echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503
4504 fi
4505
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 else
4508   cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4514 $ac_includes_default
4515 int
4516 main ()
4517 {
4518
4519   /* Are we little or big endian?  From Harbison&Steele.  */
4520   union
4521   {
4522     long int l;
4523     char c[sizeof (long int)];
4524   } u;
4525   u.l = 1;
4526   return u.c[sizeof (long int) - 1] == 1;
4527
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 rm -f conftest$ac_exeext
4533 if { (ac_try="$ac_link"
4534 case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539   (eval "$ac_link") 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   ac_cv_c_bigendian=no
4553 else
4554   echo "$as_me: program exited with status $ac_status" >&5
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 ( exit $ac_status )
4559 ac_cv_c_bigendian=yes
4560 fi
4561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4562 fi
4563
4564
4565 fi
4566
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 fi
4569 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4570 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4571 case $ac_cv_c_bigendian in
4572   yes)
4573     ENDIAN=big
4574  ;;
4575   no)
4576     ENDIAN=little
4577  ;;
4578   *)
4579     { { echo "$as_me:$LINENO: error: unknown endianness
4580 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4581 echo "$as_me: error: unknown endianness
4582 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4583    { (exit 1); exit 1; }; } ;;
4584 esac
4585
4586
4587 if test "$cross_compiling" = yes; then
4588   LLVM_CROSS_COMPILING=1
4589
4590
4591 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4592 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4593 if test "${ac_cv_build_exeext+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4597   ac_cv_build_exeext=.exe
4598 else
4599   ac_build_prefix=${build_alias}-
4600
4601   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4602 set dummy ${ac_build_prefix}gcc; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4606   echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608   if test -n "$BUILD_CC"; then
4609   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 BUILD_CC=$ac_cv_prog_BUILD_CC
4629 if test -n "$BUILD_CC"; then
4630   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4631 echo "${ECHO_T}$BUILD_CC" >&6; }
4632 else
4633   { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4635 fi
4636
4637
4638   if test -z "$BUILD_CC"; then
4639      # Extract the first word of "gcc", so it can be a program name with args.
4640 set dummy gcc; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4644   echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646   if test -n "$BUILD_CC"; then
4647   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656     ac_cv_prog_BUILD_CC="gcc"
4657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 BUILD_CC=$ac_cv_prog_BUILD_CC
4667 if test -n "$BUILD_CC"; then
4668   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4669 echo "${ECHO_T}$BUILD_CC" >&6; }
4670 else
4671   { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4673 fi
4674
4675
4676      if test -z "$BUILD_CC"; then
4677        # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684   if test -n "$BUILD_CC"; then
4685   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4686 else
4687   ac_prog_rejected=no
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693   for ac_exec_ext in '' $ac_executable_extensions; do
4694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4695     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696        ac_prog_rejected=yes
4697        continue
4698      fi
4699     ac_cv_prog_BUILD_CC="cc"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705 IFS=$as_save_IFS
4706
4707 if test $ac_prog_rejected = yes; then
4708   # We found a bogon in the path, so make sure we never use it.
4709   set dummy $ac_cv_prog_BUILD_CC
4710   shift
4711   if test $# != 0; then
4712     # We chose a different compiler from the bogus one.
4713     # However, it has the same basename, so the bogon will be chosen
4714     # first if we set BUILD_CC to just the basename; use the full file name.
4715     shift
4716     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4717   fi
4718 fi
4719 fi
4720 fi
4721 BUILD_CC=$ac_cv_prog_BUILD_CC
4722 if test -n "$BUILD_CC"; then
4723   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724 echo "${ECHO_T}$BUILD_CC" >&6; }
4725 else
4726   { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731      fi
4732   fi
4733   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4734 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4735    { (exit 1); exit 1; }; }
4736   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4737   rm -f conftest*
4738   echo 'int main () { return 0; }' > conftest.$ac_ext
4739   ac_cv_build_exeext=
4740   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4741   (eval $ac_build_link) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; then
4745     for file in conftest.*; do
4746       case $file in
4747       *.c | *.o | *.obj | *.dSYM) ;;
4748       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4749       esac
4750     done
4751   else
4752     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4753 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4754    { (exit 1); exit 1; }; }
4755   fi
4756   rm -f conftest*
4757   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4758 fi
4759 fi
4760
4761 BUILD_EXEEXT=""
4762 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4763 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4764 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4765 ac_build_exeext=$BUILD_EXEEXT
4766
4767   ac_build_prefix=${build_alias}-
4768   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4769 set dummy ${ac_build_prefix}g++; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   if test -n "$BUILD_CXX"; then
4776   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783   for ac_exec_ext in '' $ac_executable_extensions; do
4784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4785     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790 done
4791 IFS=$as_save_IFS
4792
4793 fi
4794 fi
4795 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4796 if test -n "$BUILD_CXX"; then
4797   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4798 echo "${ECHO_T}$BUILD_CXX" >&6; }
4799 else
4800   { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4802 fi
4803
4804
4805   if test -z "$BUILD_CXX"; then
4806      # Extract the first word of "g++", so it can be a program name with args.
4807 set dummy g++; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   if test -n "$BUILD_CXX"; then
4814   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_prog_BUILD_CXX="g++"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4834 if test -n "$BUILD_CXX"; then
4835   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4836 echo "${ECHO_T}$BUILD_CXX" >&6; }
4837 else
4838   { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4840 fi
4841
4842
4843      if test -z "$BUILD_CXX"; then
4844        # Extract the first word of "c++", so it can be a program name with args.
4845 set dummy c++; ac_word=$2
4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851   if test -n "$BUILD_CXX"; then
4852   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4853 else
4854   ac_prog_rejected=no
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860   for ac_exec_ext in '' $ac_executable_extensions; do
4861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4862     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4863        ac_prog_rejected=yes
4864        continue
4865      fi
4866     ac_cv_prog_BUILD_CXX="c++"
4867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 if test $ac_prog_rejected = yes; then
4875   # We found a bogon in the path, so make sure we never use it.
4876   set dummy $ac_cv_prog_BUILD_CXX
4877   shift
4878   if test $# != 0; then
4879     # We chose a different compiler from the bogus one.
4880     # However, it has the same basename, so the bogon will be chosen
4881     # first if we set BUILD_CXX to just the basename; use the full file name.
4882     shift
4883     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4884   fi
4885 fi
4886 fi
4887 fi
4888 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889 if test -n "$BUILD_CXX"; then
4890   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891 echo "${ECHO_T}$BUILD_CXX" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898      fi
4899   fi
4900 else
4901   LLVM_CROSS_COMPILING=0
4902
4903 fi
4904
4905 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4906   cvsbuild="yes"
4907   optimize="no"
4908   CVSBUILD=CVSBUILD=1
4909
4910 else
4911   cvsbuild="no"
4912   optimize="yes"
4913 fi
4914
4915
4916 # Check whether --enable-optimized was given.
4917 if test "${enable_optimized+set}" = set; then
4918   enableval=$enable_optimized;
4919 else
4920   enableval=$optimize
4921 fi
4922
4923 if test ${enableval} = "no" ; then
4924   ENABLE_OPTIMIZED=
4925
4926 else
4927   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4928
4929 fi
4930
4931 # Check whether --enable-profiling was given.
4932 if test "${enable_profiling+set}" = set; then
4933   enableval=$enable_profiling;
4934 else
4935   enableval="no"
4936 fi
4937
4938 if test ${enableval} = "no" ; then
4939   ENABLE_PROFILING=
4940
4941 else
4942   ENABLE_PROFILING=ENABLE_PROFILING=1
4943
4944 fi
4945
4946 # Check whether --enable-assertions was given.
4947 if test "${enable_assertions+set}" = set; then
4948   enableval=$enable_assertions;
4949 else
4950   enableval="yes"
4951 fi
4952
4953 if test ${enableval} = "yes" ; then
4954   DISABLE_ASSERTIONS=
4955
4956 else
4957   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4958
4959 fi
4960
4961 # Check whether --enable-expensive-checks was given.
4962 if test "${enable_expensive_checks+set}" = set; then
4963   enableval=$enable_expensive_checks;
4964 else
4965   enableval="no"
4966 fi
4967
4968 if test ${enableval} = "yes" ; then
4969   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4970
4971   EXPENSIVE_CHECKS=yes
4972
4973 else
4974   ENABLE_EXPENSIVE_CHECKS=
4975
4976   EXPENSIVE_CHECKS=no
4977
4978 fi
4979
4980 # Check whether --enable-debug-runtime was given.
4981 if test "${enable_debug_runtime+set}" = set; then
4982   enableval=$enable_debug_runtime;
4983 else
4984   enableval=no
4985 fi
4986
4987 if test ${enableval} = "no" ; then
4988   DEBUG_RUNTIME=
4989
4990 else
4991   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4992
4993 fi
4994
4995 # Check whether --enable-debug-symbols was given.
4996 if test "${enable_debug_symbols+set}" = set; then
4997   enableval=$enable_debug_symbols;
4998 else
4999   enableval=no
5000 fi
5001
5002 if test ${enableval} = "no" ; then
5003   DEBUG_SYMBOLS=
5004
5005 else
5006   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5007
5008 fi
5009
5010 # Check whether --enable-jit was given.
5011 if test "${enable_jit+set}" = set; then
5012   enableval=$enable_jit;
5013 else
5014   enableval=default
5015 fi
5016
5017 if test ${enableval} = "no"
5018 then
5019   JIT=
5020
5021 else
5022   case "$llvm_cv_target_arch" in
5023     x86)         TARGET_HAS_JIT=1
5024  ;;
5025     Sparc)       TARGET_HAS_JIT=0
5026  ;;
5027     PowerPC)     TARGET_HAS_JIT=1
5028  ;;
5029     x86_64)      TARGET_HAS_JIT=1
5030  ;;
5031     ARM)         TARGET_HAS_JIT=1
5032  ;;
5033     Mips)        TARGET_HAS_JIT=1
5034  ;;
5035     XCore)       TARGET_HAS_JIT=0
5036  ;;
5037     MSP430)      TARGET_HAS_JIT=0
5038  ;;
5039     Hexagon)     TARGET_HAS_JIT=0
5040  ;;
5041     MBlaze)      TARGET_HAS_JIT=0
5042  ;;
5043     PTX)         TARGET_HAS_JIT=0
5044  ;;
5045     *)           TARGET_HAS_JIT=0
5046  ;;
5047   esac
5048 fi
5049
5050 # Check whether --enable-docs was given.
5051 if test "${enable_docs+set}" = set; then
5052   enableval=$enable_docs;
5053 else
5054   enableval=default
5055 fi
5056
5057 case "$enableval" in
5058   yes) ENABLE_DOCS=1
5059  ;;
5060   no)  ENABLE_DOCS=0
5061  ;;
5062   default) ENABLE_DOCS=1
5063  ;;
5064   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5065 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5066    { (exit 1); exit 1; }; } ;;
5067 esac
5068
5069 # Check whether --enable-doxygen was given.
5070 if test "${enable_doxygen+set}" = set; then
5071   enableval=$enable_doxygen;
5072 else
5073   enableval=default
5074 fi
5075
5076 case "$enableval" in
5077   yes) ENABLE_DOXYGEN=1
5078  ;;
5079   no)  ENABLE_DOXYGEN=0
5080  ;;
5081   default) ENABLE_DOXYGEN=0
5082  ;;
5083   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5084 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5085    { (exit 1); exit 1; }; } ;;
5086 esac
5087
5088 # Check whether --enable-threads was given.
5089 if test "${enable_threads+set}" = set; then
5090   enableval=$enable_threads;
5091 else
5092   enableval=default
5093 fi
5094
5095 case "$enableval" in
5096   yes) ENABLE_THREADS=1
5097  ;;
5098   no)  ENABLE_THREADS=0
5099  ;;
5100   default) ENABLE_THREADS=1
5101  ;;
5102   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5103 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5104    { (exit 1); exit 1; }; } ;;
5105 esac
5106
5107 cat >>confdefs.h <<_ACEOF
5108 #define ENABLE_THREADS $ENABLE_THREADS
5109 _ACEOF
5110
5111
5112 # Check whether --enable-pthreads was given.
5113 if test "${enable_pthreads+set}" = set; then
5114   enableval=$enable_pthreads;
5115 else
5116   enableval=default
5117 fi
5118
5119 case "$enableval" in
5120   yes) ENABLE_PTHREADS=1
5121  ;;
5122   no)  ENABLE_PTHREADS=0
5123  ;;
5124   default) ENABLE_PTHREADS=1
5125  ;;
5126   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5127 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5128    { (exit 1); exit 1; }; } ;;
5129 esac
5130
5131 # Check whether --enable-pic was given.
5132 if test "${enable_pic+set}" = set; then
5133   enableval=$enable_pic;
5134 else
5135   enableval=default
5136 fi
5137
5138 case "$enableval" in
5139   yes) ENABLE_PIC=1
5140  ;;
5141   no)  ENABLE_PIC=0
5142  ;;
5143   default) ENABLE_PIC=1
5144  ;;
5145   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5147    { (exit 1); exit 1; }; } ;;
5148 esac
5149
5150 cat >>confdefs.h <<_ACEOF
5151 #define ENABLE_PIC $ENABLE_PIC
5152 _ACEOF
5153
5154
5155 # Check whether --enable-shared was given.
5156 if test "${enable_shared+set}" = set; then
5157   enableval=$enable_shared;
5158 else
5159   enableval=default
5160 fi
5161
5162 case "$enableval" in
5163   yes) ENABLE_SHARED=1
5164  ;;
5165   no)  ENABLE_SHARED=0
5166  ;;
5167   default) ENABLE_SHARED=0
5168  ;;
5169   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5170 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5171    { (exit 1); exit 1; }; } ;;
5172 esac
5173
5174 # Check whether --enable-embed-stdcxx was given.
5175 if test "${enable_embed_stdcxx+set}" = set; then
5176   enableval=$enable_embed_stdcxx;
5177 else
5178   enableval=default
5179 fi
5180
5181 case "$enableval" in
5182   yes) ENABLE_EMBED_STDCXX=1
5183  ;;
5184   no)  ENABLE_EMBED_STDCXX=0
5185  ;;
5186   default) ENABLE_EMBED_STDCXX=1
5187  ;;
5188   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5189 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5190    { (exit 1); exit 1; }; } ;;
5191 esac
5192
5193 # Check whether --enable-timestamps was given.
5194 if test "${enable_timestamps+set}" = set; then
5195   enableval=$enable_timestamps;
5196 else
5197   enableval=default
5198 fi
5199
5200 case "$enableval" in
5201   yes) ENABLE_TIMESTAMPS=1
5202  ;;
5203   no)  ENABLE_TIMESTAMPS=0
5204  ;;
5205   default) ENABLE_TIMESTAMPS=1
5206  ;;
5207   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5209    { (exit 1); exit 1; }; } ;;
5210 esac
5211
5212 cat >>confdefs.h <<_ACEOF
5213 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5214 _ACEOF
5215
5216
5217 TARGETS_TO_BUILD=""
5218 # Check whether --enable-targets was given.
5219 if test "${enable_targets+set}" = set; then
5220   enableval=$enable_targets;
5221 else
5222   enableval=all
5223 fi
5224
5225 if test "$enableval" = host-only ; then
5226   enableval=host
5227 fi
5228 case "$enableval" in
5229   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX" ;;
5230   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5231       case "$a_target" in
5232         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5233         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5234         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5235         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5236         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5237         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5238         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5239         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5240         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5241         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5242         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5243         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5244         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5245         host) case "$llvm_cv_target_arch" in
5246             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5247             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5248             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5249             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5250             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5251             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5252             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5253             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5254             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5255             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5256             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5257             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5258             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5259 echo "$as_me: error: Can not set target to build" >&2;}
5260    { (exit 1); exit 1; }; } ;;
5261           esac ;;
5262         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5263 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265       esac
5266   done
5267   ;;
5268 esac
5269 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5270
5271
5272 # Determine whether we are building LLVM support for the native architecture.
5273 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5274 for a_target in $TARGETS_TO_BUILD; do
5275   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5276
5277 cat >>confdefs.h <<_ACEOF
5278 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5279 _ACEOF
5280
5281     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5282     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5283     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5284     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5285     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5286       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5287     fi
5288
5289 cat >>confdefs.h <<_ACEOF
5290 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5291 _ACEOF
5292
5293
5294 cat >>confdefs.h <<_ACEOF
5295 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5296 _ACEOF
5297
5298
5299 cat >>confdefs.h <<_ACEOF
5300 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5301 _ACEOF
5302
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5306 _ACEOF
5307
5308     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5312 _ACEOF
5313
5314     fi
5315   fi
5316 done
5317
5318 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5319 # target feature def files.
5320 LLVM_ENUM_TARGETS=""
5321 LLVM_ENUM_ASM_PRINTERS=""
5322 LLVM_ENUM_ASM_PARSERS=""
5323 LLVM_ENUM_DISASSEMBLERS=""
5324 for target_to_build in $TARGETS_TO_BUILD; do
5325   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5326   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5327     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5328   fi
5329   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5330     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5331   fi
5332   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5333     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5334   fi
5335 done
5336
5337
5338
5339
5340
5341
5342 # Check whether --with-optimize-option was given.
5343 if test "${with_optimize_option+set}" = set; then
5344   withval=$with_optimize_option;
5345 else
5346   withval=default
5347 fi
5348
5349 { echo "$as_me:$LINENO: checking optimization flags" >&5
5350 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5351 case "$withval" in
5352   default)
5353     case "$llvm_cv_os_type" in
5354     FreeBSD) optimize_option=-O2 ;;
5355     MingW) optimize_option=-O2 ;;
5356     *)     optimize_option=-O3 ;;
5357     esac ;;
5358   *) optimize_option="$withval" ;;
5359 esac
5360 OPTIMIZE_OPTION=$optimize_option
5361
5362 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5363 echo "${ECHO_T}$optimize_option" >&6; }
5364
5365
5366 # Check whether --with-extra-options was given.
5367 if test "${with_extra_options+set}" = set; then
5368   withval=$with_extra_options;
5369 else
5370   withval=default
5371 fi
5372
5373 case "$withval" in
5374   default) EXTRA_OPTIONS= ;;
5375   *) EXTRA_OPTIONS=$withval ;;
5376 esac
5377 EXTRA_OPTIONS=$EXTRA_OPTIONS
5378
5379
5380
5381 # Check whether --with-extra-ld-options was given.
5382 if test "${with_extra_ld_options+set}" = set; then
5383   withval=$with_extra_ld_options;
5384 else
5385   withval=default
5386 fi
5387
5388 case "$withval" in
5389   default) EXTRA_LD_OPTIONS= ;;
5390   *) EXTRA_LD_OPTIONS=$withval ;;
5391 esac
5392 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5393
5394
5395 # Check whether --enable-bindings was given.
5396 if test "${enable_bindings+set}" = set; then
5397   enableval=$enable_bindings;
5398 else
5399   enableval=default
5400 fi
5401
5402 BINDINGS_TO_BUILD=""
5403 case "$enableval" in
5404   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5405   all ) BINDINGS_TO_BUILD="ocaml" ;;
5406   none | no) BINDINGS_TO_BUILD="" ;;
5407   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5408       case "$a_binding" in
5409         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5410         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5411 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5412    { (exit 1); exit 1; }; } ;;
5413       esac
5414   done
5415   ;;
5416 esac
5417
5418
5419 # Check whether --with-ocaml-libdir was given.
5420 if test "${with_ocaml_libdir+set}" = set; then
5421   withval=$with_ocaml_libdir;
5422 else
5423   withval=auto
5424 fi
5425
5426 case "$withval" in
5427   auto) with_ocaml_libdir="$withval" ;;
5428   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5429   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5430 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5431    { (exit 1); exit 1; }; } ;;
5432 esac
5433
5434
5435 # Check whether --with-clang-resource-dir was given.
5436 if test "${with_clang_resource_dir+set}" = set; then
5437   withval=$with_clang_resource_dir;
5438 else
5439   withval=""
5440 fi
5441
5442
5443 cat >>confdefs.h <<_ACEOF
5444 #define CLANG_RESOURCE_DIR "$withval"
5445 _ACEOF
5446
5447
5448
5449 # Check whether --with-c-include-dirs was given.
5450 if test "${with_c_include_dirs+set}" = set; then
5451   withval=$with_c_include_dirs;
5452 else
5453   withval=""
5454 fi
5455
5456
5457 cat >>confdefs.h <<_ACEOF
5458 #define C_INCLUDE_DIRS "$withval"
5459 _ACEOF
5460
5461
5462 # Clang normally uses the system c++ headers and libraries. With this option,
5463 # clang will use the ones provided by a gcc installation instead. This option should
5464 # be passed the same value that was used with --prefix when configuring gcc.
5465
5466 # Check whether --with-gcc-toolchain was given.
5467 if test "${with_gcc_toolchain+set}" = set; then
5468   withval=$with_gcc_toolchain;
5469 else
5470   withval=""
5471 fi
5472
5473
5474 cat >>confdefs.h <<_ACEOF
5475 #define GCC_INSTALL_PREFIX "$withval"
5476 _ACEOF
5477
5478
5479
5480 # Check whether --with-binutils-include was given.
5481 if test "${with_binutils_include+set}" = set; then
5482   withval=$with_binutils_include;
5483 else
5484   withval=default
5485 fi
5486
5487 case "$withval" in
5488   default) WITH_BINUTILS_INCDIR=default ;;
5489   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5490   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5491 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5492    { (exit 1); exit 1; }; } ;;
5493 esac
5494 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5495   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5496
5497   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5498      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5499      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5500 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5501    { (exit 1); exit 1; }; };
5502   fi
5503 fi
5504
5505
5506 # Check whether --with-bug-report-url was given.
5507 if test "${with_bug_report_url+set}" = set; then
5508   withval=$with_bug_report_url;
5509 else
5510   withval="http://llvm.org/bugs/"
5511 fi
5512
5513
5514 cat >>confdefs.h <<_ACEOF
5515 #define BUG_REPORT_URL "$withval"
5516 _ACEOF
5517
5518
5519 # Check whether --enable-libffi was given.
5520 if test "${enable_libffi+set}" = set; then
5521   enableval=$enable_libffi; case "$enableval" in
5522     yes) llvm_cv_enable_libffi="yes" ;;
5523     no)  llvm_cv_enable_libffi="no"  ;;
5524     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5525 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5526    { (exit 1); exit 1; }; } ;;
5527   esac
5528 else
5529   llvm_cv_enable_libffi=no
5530 fi
5531
5532
5533
5534 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5535 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5536 if test "${lt_cv_path_NM+set}" = set; then
5537   echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539   if test -n "$NM"; then
5540   # Let the user override the test.
5541   lt_cv_path_NM="$NM"
5542 else
5543   lt_nm_to_check="${ac_tool_prefix}nm"
5544   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5545     lt_nm_to_check="$lt_nm_to_check nm"
5546   fi
5547   for lt_tmp_nm in $lt_nm_to_check; do
5548     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5549     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5550       IFS="$lt_save_ifs"
5551       test -z "$ac_dir" && ac_dir=.
5552       tmp_nm="$ac_dir/$lt_tmp_nm"
5553       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5554         # Check to see if the nm accepts a BSD-compat flag.
5555         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5556         #   nm: unknown option "B" ignored
5557         # Tru64's nm complains that /dev/null is an invalid object file
5558         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5559         */dev/null* | *'Invalid file or object type'*)
5560           lt_cv_path_NM="$tmp_nm -B"
5561           break
5562           ;;
5563         *)
5564           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5565           */dev/null*)
5566             lt_cv_path_NM="$tmp_nm -p"
5567             break
5568             ;;
5569           *)
5570             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5571             continue # so that we can try to find one that supports BSD flags
5572             ;;
5573           esac
5574           ;;
5575         esac
5576       fi
5577     done
5578     IFS="$lt_save_ifs"
5579   done
5580   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5581 fi
5582 fi
5583 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5584 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5585 NM="$lt_cv_path_NM"
5586
5587
5588
5589 { echo "$as_me:$LINENO: checking for GNU make" >&5
5590 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5591 if test "${llvm_cv_gnu_make_command+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   llvm_cv_gnu_make_command=''
5595  for a in "$MAKE" make gmake gnumake ; do
5596   if test -z "$a" ; then continue ; fi ;
5597   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5598   then
5599    llvm_cv_gnu_make_command=$a ;
5600    break;
5601   fi
5602  done
5603 fi
5604 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5605 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5606  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5607    ifGNUmake='' ;
5608  else
5609    ifGNUmake='#' ;
5610    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5611 echo "${ECHO_T}\"Not found\"" >&6; };
5612  fi
5613
5614
5615 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5617 LN_S=$as_ln_s
5618 if test "$LN_S" = "ln -s"; then
5619   { echo "$as_me:$LINENO: result: yes" >&5
5620 echo "${ECHO_T}yes" >&6; }
5621 else
5622   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5623 echo "${ECHO_T}no, using $LN_S" >&6; }
5624 fi
5625
5626 # Extract the first word of "cmp", so it can be a program name with args.
5627 set dummy cmp; ac_word=$2
5628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5630 if test "${ac_cv_path_CMP+set}" = set; then
5631   echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633   case $CMP in
5634   [\\/]* | ?:[\\/]*)
5635   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5636   ;;
5637   *)
5638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643   for ac_exec_ext in '' $ac_executable_extensions; do
5644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5645     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647     break 2
5648   fi
5649 done
5650 done
5651 IFS=$as_save_IFS
5652
5653   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5654   ;;
5655 esac
5656 fi
5657 CMP=$ac_cv_path_CMP
5658 if test -n "$CMP"; then
5659   { echo "$as_me:$LINENO: result: $CMP" >&5
5660 echo "${ECHO_T}$CMP" >&6; }
5661 else
5662   { echo "$as_me:$LINENO: result: no" >&5
5663 echo "${ECHO_T}no" >&6; }
5664 fi
5665
5666
5667 # Extract the first word of "cp", so it can be a program name with args.
5668 set dummy cp; ac_word=$2
5669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671 if test "${ac_cv_path_CP+set}" = set; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674   case $CP in
5675   [\\/]* | ?:[\\/]*)
5676   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5677   ;;
5678   *)
5679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682   IFS=$as_save_IFS
5683   test -z "$as_dir" && as_dir=.
5684   for ac_exec_ext in '' $ac_executable_extensions; do
5685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5686     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688     break 2
5689   fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5695   ;;
5696 esac
5697 fi
5698 CP=$ac_cv_path_CP
5699 if test -n "$CP"; then
5700   { echo "$as_me:$LINENO: result: $CP" >&5
5701 echo "${ECHO_T}$CP" >&6; }
5702 else
5703   { echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6; }
5705 fi
5706
5707
5708 # Extract the first word of "date", so it can be a program name with args.
5709 set dummy date; ac_word=$2
5710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712 if test "${ac_cv_path_DATE+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   case $DATE in
5716   [\\/]* | ?:[\\/]*)
5717   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5718   ;;
5719   *)
5720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5722 do
5723   IFS=$as_save_IFS
5724   test -z "$as_dir" && as_dir=.
5725   for ac_exec_ext in '' $ac_executable_extensions; do
5726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5727     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729     break 2
5730   fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5736   ;;
5737 esac
5738 fi
5739 DATE=$ac_cv_path_DATE
5740 if test -n "$DATE"; then
5741   { echo "$as_me:$LINENO: result: $DATE" >&5
5742 echo "${ECHO_T}$DATE" >&6; }
5743 else
5744   { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5746 fi
5747
5748
5749 # Extract the first word of "find", so it can be a program name with args.
5750 set dummy find; ac_word=$2
5751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5753 if test "${ac_cv_path_FIND+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   case $FIND in
5757   [\\/]* | ?:[\\/]*)
5758   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5759   ;;
5760   *)
5761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766   for ac_exec_ext in '' $ac_executable_extensions; do
5767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5768     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5777   ;;
5778 esac
5779 fi
5780 FIND=$ac_cv_path_FIND
5781 if test -n "$FIND"; then
5782   { echo "$as_me:$LINENO: result: $FIND" >&5
5783 echo "${ECHO_T}$FIND" >&6; }
5784 else
5785   { echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6; }
5787 fi
5788
5789
5790 # Extract the first word of "grep", so it can be a program name with args.
5791 set dummy grep; ac_word=$2
5792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794 if test "${ac_cv_path_GREP+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   case $GREP in
5798   [\\/]* | ?:[\\/]*)
5799   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5800   ;;
5801   *)
5802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5818   ;;
5819 esac
5820 fi
5821 GREP=$ac_cv_path_GREP
5822 if test -n "$GREP"; then
5823   { echo "$as_me:$LINENO: result: $GREP" >&5
5824 echo "${ECHO_T}$GREP" >&6; }
5825 else
5826   { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828 fi
5829
5830
5831 # Extract the first word of "mkdir", so it can be a program name with args.
5832 set dummy mkdir; ac_word=$2
5833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835 if test "${ac_cv_path_MKDIR+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   case $MKDIR in
5839   [\\/]* | ?:[\\/]*)
5840   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5841   ;;
5842   *)
5843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   for ac_exec_ext in '' $ac_executable_extensions; do
5849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5850     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5859   ;;
5860 esac
5861 fi
5862 MKDIR=$ac_cv_path_MKDIR
5863 if test -n "$MKDIR"; then
5864   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5865 echo "${ECHO_T}$MKDIR" >&6; }
5866 else
5867   { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5869 fi
5870
5871
5872 # Extract the first word of "mv", so it can be a program name with args.
5873 set dummy mv; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_path_MV+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   case $MV in
5880   [\\/]* | ?:[\\/]*)
5881   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5882   ;;
5883   *)
5884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5891     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5900   ;;
5901 esac
5902 fi
5903 MV=$ac_cv_path_MV
5904 if test -n "$MV"; then
5905   { echo "$as_me:$LINENO: result: $MV" >&5
5906 echo "${ECHO_T}$MV" >&6; }
5907 else
5908   { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5910 fi
5911
5912
5913 if test -n "$ac_tool_prefix"; then
5914   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_prog_RANLIB+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   if test -n "$RANLIB"; then
5922   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927   IFS=$as_save_IFS
5928   test -z "$as_dir" && as_dir=.
5929   for ac_exec_ext in '' $ac_executable_extensions; do
5930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5931     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 RANLIB=$ac_cv_prog_RANLIB
5942 if test -n "$RANLIB"; then
5943   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5944 echo "${ECHO_T}$RANLIB" >&6; }
5945 else
5946   { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5948 fi
5949
5950
5951 fi
5952 if test -z "$ac_cv_prog_RANLIB"; then
5953   ac_ct_RANLIB=$RANLIB
5954   # Extract the first word of "ranlib", so it can be a program name with args.
5955 set dummy ranlib; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   if test -n "$ac_ct_RANLIB"; then
5962   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969   for ac_exec_ext in '' $ac_executable_extensions; do
5970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5971     ac_cv_prog_ac_ct_RANLIB="ranlib"
5972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976 done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5982 if test -n "$ac_ct_RANLIB"; then
5983   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5984 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5985 else
5986   { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5988 fi
5989
5990   if test "x$ac_ct_RANLIB" = x; then
5991     RANLIB=":"
5992   else
5993     case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5996 whose name does not start with the host triplet.  If you think this
5997 configuration is useful to you, please write to autoconf@gnu.org." >&5
5998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5999 whose name does not start with the host triplet.  If you think this
6000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003     RANLIB=$ac_ct_RANLIB
6004   fi
6005 else
6006   RANLIB="$ac_cv_prog_RANLIB"
6007 fi
6008
6009 if test -n "$ac_tool_prefix"; then
6010   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ar; ac_word=$2
6012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6014 if test "${ac_cv_prog_AR+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   if test -n "$AR"; then
6018   ac_cv_prog_AR="$AR" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025   for ac_exec_ext in '' $ac_executable_extensions; do
6026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6027     ac_cv_prog_AR="${ac_tool_prefix}ar"
6028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029     break 2
6030   fi
6031 done
6032 done
6033 IFS=$as_save_IFS
6034
6035 fi
6036 fi
6037 AR=$ac_cv_prog_AR
6038 if test -n "$AR"; then
6039   { echo "$as_me:$LINENO: result: $AR" >&5
6040 echo "${ECHO_T}$AR" >&6; }
6041 else
6042   { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6044 fi
6045
6046
6047 fi
6048 if test -z "$ac_cv_prog_AR"; then
6049   ac_ct_AR=$AR
6050   # Extract the first word of "ar", so it can be a program name with args.
6051 set dummy ar; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   if test -n "$ac_ct_AR"; then
6058   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065   for ac_exec_ext in '' $ac_executable_extensions; do
6066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067     ac_cv_prog_ac_ct_AR="ar"
6068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6078 if test -n "$ac_ct_AR"; then
6079   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6080 echo "${ECHO_T}$ac_ct_AR" >&6; }
6081 else
6082   { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6084 fi
6085
6086   if test "x$ac_ct_AR" = x; then
6087     AR="false"
6088   else
6089     case $cross_compiling:$ac_tool_warned in
6090 yes:)
6091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6092 whose name does not start with the host triplet.  If you think this
6093 configuration is useful to you, please write to autoconf@gnu.org." >&5
6094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6095 whose name does not start with the host triplet.  If you think this
6096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099     AR=$ac_ct_AR
6100   fi
6101 else
6102   AR="$ac_cv_prog_AR"
6103 fi
6104
6105 # Extract the first word of "rm", so it can be a program name with args.
6106 set dummy rm; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_RM+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   case $RM in
6113   [\\/]* | ?:[\\/]*)
6114   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6115   ;;
6116   *)
6117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122   for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6133   ;;
6134 esac
6135 fi
6136 RM=$ac_cv_path_RM
6137 if test -n "$RM"; then
6138   { echo "$as_me:$LINENO: result: $RM" >&5
6139 echo "${ECHO_T}$RM" >&6; }
6140 else
6141   { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6143 fi
6144
6145
6146 # Extract the first word of "sed", so it can be a program name with args.
6147 set dummy sed; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_SED+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   case $SED in
6154   [\\/]* | ?:[\\/]*)
6155   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6156   ;;
6157   *)
6158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6174   ;;
6175 esac
6176 fi
6177 SED=$ac_cv_path_SED
6178 if test -n "$SED"; then
6179   { echo "$as_me:$LINENO: result: $SED" >&5
6180 echo "${ECHO_T}$SED" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185
6186
6187 # Extract the first word of "tar", so it can be a program name with args.
6188 set dummy tar; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_TAR+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   case $TAR in
6195   [\\/]* | ?:[\\/]*)
6196   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6197   ;;
6198   *)
6199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6215   ;;
6216 esac
6217 fi
6218 TAR=$ac_cv_path_TAR
6219 if test -n "$TAR"; then
6220   { echo "$as_me:$LINENO: result: $TAR" >&5
6221 echo "${ECHO_T}$TAR" >&6; }
6222 else
6223   { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6225 fi
6226
6227
6228 # Extract the first word of "pwd", so it can be a program name with args.
6229 set dummy pwd; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_BINPWD+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   case $BINPWD in
6236   [\\/]* | ?:[\\/]*)
6237   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6238   ;;
6239   *)
6240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6256   ;;
6257 esac
6258 fi
6259 BINPWD=$ac_cv_path_BINPWD
6260 if test -n "$BINPWD"; then
6261   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6262 echo "${ECHO_T}$BINPWD" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268
6269
6270 # Extract the first word of "Graphviz", so it can be a program name with args.
6271 set dummy Graphviz; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   case $GRAPHVIZ in
6278   [\\/]* | ?:[\\/]*)
6279   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6280   ;;
6281   *)
6282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6298   ;;
6299 esac
6300 fi
6301 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6302 if test -n "$GRAPHVIZ"; then
6303   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6304 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6305 else
6306   { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6308 fi
6309
6310
6311 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6312
6313 cat >>confdefs.h <<\_ACEOF
6314 #define HAVE_GRAPHVIZ 1
6315 _ACEOF
6316
6317     if test "$llvm_cv_os_type" = "MingW" ; then
6318     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6319   fi
6320
6321 cat >>confdefs.h <<_ACEOF
6322 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6323 _ACEOF
6324
6325 fi
6326 # Extract the first word of "dot", so it can be a program name with args.
6327 set dummy dot; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_DOT+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   case $DOT in
6334   [\\/]* | ?:[\\/]*)
6335   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6336   ;;
6337   *)
6338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343   for ac_exec_ext in '' $ac_executable_extensions; do
6344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6354   ;;
6355 esac
6356 fi
6357 DOT=$ac_cv_path_DOT
6358 if test -n "$DOT"; then
6359   { echo "$as_me:$LINENO: result: $DOT" >&5
6360 echo "${ECHO_T}$DOT" >&6; }
6361 else
6362   { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6364 fi
6365
6366
6367 if test "$DOT" != "echo dot" ; then
6368
6369 cat >>confdefs.h <<\_ACEOF
6370 #define HAVE_DOT 1
6371 _ACEOF
6372
6373     if test "$llvm_cv_os_type" = "MingW" ; then
6374     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6375   fi
6376
6377 cat >>confdefs.h <<_ACEOF
6378 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6379 _ACEOF
6380
6381 fi
6382 # Extract the first word of "fdp", so it can be a program name with args.
6383 set dummy fdp; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_path_FDP+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   case $FDP in
6390   [\\/]* | ?:[\\/]*)
6391   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6392   ;;
6393   *)
6394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399   for ac_exec_ext in '' $ac_executable_extensions; do
6400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6410   ;;
6411 esac
6412 fi
6413 FDP=$ac_cv_path_FDP
6414 if test -n "$FDP"; then
6415   { echo "$as_me:$LINENO: result: $FDP" >&5
6416 echo "${ECHO_T}$FDP" >&6; }
6417 else
6418   { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6420 fi
6421
6422
6423 if test "$FDP" != "echo fdp" ; then
6424
6425 cat >>confdefs.h <<\_ACEOF
6426 #define HAVE_FDP 1
6427 _ACEOF
6428
6429     if test "$llvm_cv_os_type" = "MingW" ; then
6430     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6431   fi
6432
6433 cat >>confdefs.h <<_ACEOF
6434 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6435 _ACEOF
6436
6437 fi
6438 # Extract the first word of "neato", so it can be a program name with args.
6439 set dummy neato; ac_word=$2
6440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6442 if test "${ac_cv_path_NEATO+set}" = set; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445   case $NEATO in
6446   [\\/]* | ?:[\\/]*)
6447   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6448   ;;
6449   *)
6450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455   for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6466   ;;
6467 esac
6468 fi
6469 NEATO=$ac_cv_path_NEATO
6470 if test -n "$NEATO"; then
6471   { echo "$as_me:$LINENO: result: $NEATO" >&5
6472 echo "${ECHO_T}$NEATO" >&6; }
6473 else
6474   { echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6; }
6476 fi
6477
6478
6479 if test "$NEATO" != "echo neato" ; then
6480
6481 cat >>confdefs.h <<\_ACEOF
6482 #define HAVE_NEATO 1
6483 _ACEOF
6484
6485     if test "$llvm_cv_os_type" = "MingW" ; then
6486     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6487   fi
6488
6489 cat >>confdefs.h <<_ACEOF
6490 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6491 _ACEOF
6492
6493 fi
6494 # Extract the first word of "twopi", so it can be a program name with args.
6495 set dummy twopi; ac_word=$2
6496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498 if test "${ac_cv_path_TWOPI+set}" = set; then
6499   echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501   case $TWOPI in
6502   [\\/]* | ?:[\\/]*)
6503   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6504   ;;
6505   *)
6506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509   IFS=$as_save_IFS
6510   test -z "$as_dir" && as_dir=.
6511   for ac_exec_ext in '' $ac_executable_extensions; do
6512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6513     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515     break 2
6516   fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6522   ;;
6523 esac
6524 fi
6525 TWOPI=$ac_cv_path_TWOPI
6526 if test -n "$TWOPI"; then
6527   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6528 echo "${ECHO_T}$TWOPI" >&6; }
6529 else
6530   { echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6; }
6532 fi
6533
6534
6535 if test "$TWOPI" != "echo twopi" ; then
6536
6537 cat >>confdefs.h <<\_ACEOF
6538 #define HAVE_TWOPI 1
6539 _ACEOF
6540
6541     if test "$llvm_cv_os_type" = "MingW" ; then
6542     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6543   fi
6544
6545 cat >>confdefs.h <<_ACEOF
6546 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6547 _ACEOF
6548
6549 fi
6550 # Extract the first word of "circo", so it can be a program name with args.
6551 set dummy circo; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_path_CIRCO+set}" = set; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   case $CIRCO in
6558   [\\/]* | ?:[\\/]*)
6559   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6560   ;;
6561   *)
6562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567   for ac_exec_ext in '' $ac_executable_extensions; do
6568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6569     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6578   ;;
6579 esac
6580 fi
6581 CIRCO=$ac_cv_path_CIRCO
6582 if test -n "$CIRCO"; then
6583   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6584 echo "${ECHO_T}$CIRCO" >&6; }
6585 else
6586   { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6588 fi
6589
6590
6591 if test "$CIRCO" != "echo circo" ; then
6592
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_CIRCO 1
6595 _ACEOF
6596
6597     if test "$llvm_cv_os_type" = "MingW" ; then
6598     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6599   fi
6600
6601 cat >>confdefs.h <<_ACEOF
6602 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6603 _ACEOF
6604
6605 fi
6606 for ac_prog in gv gsview32
6607 do
6608   # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_path_GV+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   case $GV in
6616   [\\/]* | ?:[\\/]*)
6617   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6618   ;;
6619   *)
6620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625   for ac_exec_ext in '' $ac_executable_extensions; do
6626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6627     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635   ;;
6636 esac
6637 fi
6638 GV=$ac_cv_path_GV
6639 if test -n "$GV"; then
6640   { echo "$as_me:$LINENO: result: $GV" >&5
6641 echo "${ECHO_T}$GV" >&6; }
6642 else
6643   { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6645 fi
6646
6647
6648   test -n "$GV" && break
6649 done
6650 test -n "$GV" || GV="echo gv"
6651
6652 if test "$GV" != "echo gv" ; then
6653
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_GV 1
6656 _ACEOF
6657
6658     if test "$llvm_cv_os_type" = "MingW" ; then
6659     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6660   fi
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define LLVM_PATH_GV "$GV${EXEEXT}"
6664 _ACEOF
6665
6666 fi
6667 # Extract the first word of "dotty", so it can be a program name with args.
6668 set dummy dotty; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_DOTTY+set}" = set; then
6672   echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674   case $DOTTY in
6675   [\\/]* | ?:[\\/]*)
6676   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6677   ;;
6678   *)
6679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684   for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6695   ;;
6696 esac
6697 fi
6698 DOTTY=$ac_cv_path_DOTTY
6699 if test -n "$DOTTY"; then
6700   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6701 echo "${ECHO_T}$DOTTY" >&6; }
6702 else
6703   { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6705 fi
6706
6707
6708 if test "$DOTTY" != "echo dotty" ; then
6709
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_DOTTY 1
6712 _ACEOF
6713
6714     if test "$llvm_cv_os_type" = "MingW" ; then
6715     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6716   fi
6717
6718 cat >>confdefs.h <<_ACEOF
6719 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6720 _ACEOF
6721
6722 fi
6723 # Extract the first word of "xdot.py", so it can be a program name with args.
6724 set dummy xdot.py; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   case $XDOT_PY in
6731   [\\/]* | ?:[\\/]*)
6732   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6733   ;;
6734   *)
6735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740   for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6751   ;;
6752 esac
6753 fi
6754 XDOT_PY=$ac_cv_path_XDOT_PY
6755 if test -n "$XDOT_PY"; then
6756   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6757 echo "${ECHO_T}$XDOT_PY" >&6; }
6758 else
6759   { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764 if test "$XDOT_PY" != "echo xdot.py" ; then
6765
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_XDOT_PY 1
6768 _ACEOF
6769
6770     if test "$llvm_cv_os_type" = "MingW" ; then
6771     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6772   fi
6773
6774 cat >>confdefs.h <<_ACEOF
6775 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6776 _ACEOF
6777
6778 fi
6779
6780 # Find a good install program.  We prefer a C program (faster),
6781 # so one script is as good as another.  But avoid the broken or
6782 # incompatible versions:
6783 # SysV /etc/install, /usr/sbin/install
6784 # SunOS /usr/etc/install
6785 # IRIX /sbin/install
6786 # AIX /bin/install
6787 # AmigaOS /C/install, which installs bootblocks on floppy discs
6788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6791 # OS/2's system install, which has a completely different semantic
6792 # ./install, which can be erroneously created by make from ./install.sh.
6793 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6794 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6795 if test -z "$INSTALL"; then
6796 if test "${ac_cv_path_install+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802   IFS=$as_save_IFS
6803   test -z "$as_dir" && as_dir=.
6804   # Account for people who put trailing slashes in PATH elements.
6805 case $as_dir/ in
6806   ./ | .// | /cC/* | \
6807   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6808   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6809   /usr/ucb/* ) ;;
6810   *)
6811     # OSF1 and SCO ODT 3.0 have their own names for install.
6812     # Don't use installbsd from OSF since it installs stuff as root
6813     # by default.
6814     for ac_prog in ginstall scoinst install; do
6815       for ac_exec_ext in '' $ac_executable_extensions; do
6816         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6817           if test $ac_prog = install &&
6818             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6819             # AIX install.  It has an incompatible calling convention.
6820             :
6821           elif test $ac_prog = install &&
6822             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6823             # program-specific install script used by HP pwplus--don't use.
6824             :
6825           else
6826             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6827             break 3
6828           fi
6829         fi
6830       done
6831     done
6832     ;;
6833 esac
6834 done
6835 IFS=$as_save_IFS
6836
6837
6838 fi
6839   if test "${ac_cv_path_install+set}" = set; then
6840     INSTALL=$ac_cv_path_install
6841   else
6842     # As a last resort, use the slow shell script.  Don't cache a
6843     # value for INSTALL within a source directory, because that will
6844     # break other packages using the cache if that directory is
6845     # removed, or if the value is a relative name.
6846     INSTALL=$ac_install_sh
6847   fi
6848 fi
6849 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6850 echo "${ECHO_T}$INSTALL" >&6; }
6851
6852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6853 # It thinks the first close brace ends the variable substitution.
6854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6855
6856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6857
6858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6859
6860 case "$INSTALL" in
6861  [\\/$]* | ?:[\\/]* ) ;;
6862  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6863 esac
6864
6865 # Extract the first word of "bzip2", so it can be a program name with args.
6866 set dummy bzip2; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_BZIP2+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   case $BZIP2 in
6873   [\\/]* | ?:[\\/]*)
6874   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6875   ;;
6876   *)
6877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882   for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892   ;;
6893 esac
6894 fi
6895 BZIP2=$ac_cv_path_BZIP2
6896 if test -n "$BZIP2"; then
6897   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6898 echo "${ECHO_T}$BZIP2" >&6; }
6899 else
6900   { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6902 fi
6903
6904
6905 # Extract the first word of "cat", so it can be a program name with args.
6906 set dummy cat; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_CAT+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   case $CAT in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6915   ;;
6916   *)
6917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932   ;;
6933 esac
6934 fi
6935 CAT=$ac_cv_path_CAT
6936 if test -n "$CAT"; then
6937   { echo "$as_me:$LINENO: result: $CAT" >&5
6938 echo "${ECHO_T}$CAT" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944
6945 # Extract the first word of "doxygen", so it can be a program name with args.
6946 set dummy doxygen; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   case $DOXYGEN in
6953   [\\/]* | ?:[\\/]*)
6954   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6955   ;;
6956   *)
6957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962   for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972   ;;
6973 esac
6974 fi
6975 DOXYGEN=$ac_cv_path_DOXYGEN
6976 if test -n "$DOXYGEN"; then
6977   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6978 echo "${ECHO_T}$DOXYGEN" >&6; }
6979 else
6980   { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6982 fi
6983
6984
6985 # Extract the first word of "groff", so it can be a program name with args.
6986 set dummy groff; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_path_GROFF+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   case $GROFF in
6993   [\\/]* | ?:[\\/]*)
6994   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6995   ;;
6996   *)
6997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000   IFS=$as_save_IFS
7001   test -z "$as_dir" && as_dir=.
7002   for ac_exec_ext in '' $ac_executable_extensions; do
7003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7004     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006     break 2
7007   fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012   ;;
7013 esac
7014 fi
7015 GROFF=$ac_cv_path_GROFF
7016 if test -n "$GROFF"; then
7017   { echo "$as_me:$LINENO: result: $GROFF" >&5
7018 echo "${ECHO_T}$GROFF" >&6; }
7019 else
7020   { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7022 fi
7023
7024
7025 # Extract the first word of "gzip", so it can be a program name with args.
7026 set dummy gzip; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   case $GZIPBIN in
7033   [\\/]* | ?:[\\/]*)
7034   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7035   ;;
7036   *)
7037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040   IFS=$as_save_IFS
7041   test -z "$as_dir" && as_dir=.
7042   for ac_exec_ext in '' $ac_executable_extensions; do
7043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046     break 2
7047   fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052   ;;
7053 esac
7054 fi
7055 GZIPBIN=$ac_cv_path_GZIPBIN
7056 if test -n "$GZIPBIN"; then
7057   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7058 echo "${ECHO_T}$GZIPBIN" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064
7065 # Extract the first word of "pod2html", so it can be a program name with args.
7066 set dummy pod2html; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_path_POD2HTML+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   case $POD2HTML in
7073   [\\/]* | ?:[\\/]*)
7074   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7075   ;;
7076   *)
7077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082   for ac_exec_ext in '' $ac_executable_extensions; do
7083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092   ;;
7093 esac
7094 fi
7095 POD2HTML=$ac_cv_path_POD2HTML
7096 if test -n "$POD2HTML"; then
7097   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7098 echo "${ECHO_T}$POD2HTML" >&6; }
7099 else
7100   { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7102 fi
7103
7104
7105 # Extract the first word of "pod2man", so it can be a program name with args.
7106 set dummy pod2man; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_POD2MAN+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $POD2MAN in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132   ;;
7133 esac
7134 fi
7135 POD2MAN=$ac_cv_path_POD2MAN
7136 if test -n "$POD2MAN"; then
7137   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7138 echo "${ECHO_T}$POD2MAN" >&6; }
7139 else
7140   { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7142 fi
7143
7144
7145 # Extract the first word of "pdfroff", so it can be a program name with args.
7146 set dummy pdfroff; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_PDFROFF+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   case $PDFROFF in
7153   [\\/]* | ?:[\\/]*)
7154   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7155   ;;
7156   *)
7157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162   for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169 done
7170 IFS=$as_save_IFS
7171
7172   ;;
7173 esac
7174 fi
7175 PDFROFF=$ac_cv_path_PDFROFF
7176 if test -n "$PDFROFF"; then
7177   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7178 echo "${ECHO_T}$PDFROFF" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184
7185 # Extract the first word of "runtest", so it can be a program name with args.
7186 set dummy runtest; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_path_RUNTEST+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   case $RUNTEST in
7193   [\\/]* | ?:[\\/]*)
7194   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7195   ;;
7196   *)
7197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202   for ac_exec_ext in '' $ac_executable_extensions; do
7203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209 done
7210 IFS=$as_save_IFS
7211
7212   ;;
7213 esac
7214 fi
7215 RUNTEST=$ac_cv_path_RUNTEST
7216 if test -n "$RUNTEST"; then
7217   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7218 echo "${ECHO_T}$RUNTEST" >&6; }
7219 else
7220   { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7222 fi
7223
7224
7225
7226 no_itcl=true
7227 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7228 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7229
7230 # Check whether --with-tclinclude was given.
7231 if test "${with_tclinclude+set}" = set; then
7232   withval=$with_tclinclude; with_tclinclude=${withval}
7233 else
7234   with_tclinclude=''
7235 fi
7236
7237 if test "${ac_cv_path_tclsh+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240
7241 if test x"${with_tclinclude}" != x ; then
7242   if test -f ${with_tclinclude}/tclsh ; then
7243     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7244   elif test -f ${with_tclinclude}/src/tclsh ; then
7245     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7246   else
7247     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7248 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7249    { (exit 1); exit 1; }; }
7250   fi
7251 fi
7252 fi
7253
7254
7255 if test x"${ac_cv_path_tclsh}" = x ; then
7256   { echo "$as_me:$LINENO: result: none" >&5
7257 echo "${ECHO_T}none" >&6; }
7258   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
7259 do
7260   # Extract the first word of "$ac_prog", so it can be a program name with args.
7261 set dummy $ac_prog; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_TCLSH+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   case $TCLSH in
7268   [\\/]* | ?:[\\/]*)
7269   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7270   ;;
7271   *)
7272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287   ;;
7288 esac
7289 fi
7290 TCLSH=$ac_cv_path_TCLSH
7291 if test -n "$TCLSH"; then
7292   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7293 echo "${ECHO_T}$TCLSH" >&6; }
7294 else
7295   { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7297 fi
7298
7299
7300   test -n "$TCLSH" && break
7301 done
7302
7303   if test x"${TCLSH}" = x ; then
7304     ac_cv_path_tclsh='';
7305   else
7306     ac_cv_path_tclsh="${TCLSH}";
7307   fi
7308 else
7309   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7310 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7311   TCLSH="${ac_cv_path_tclsh}"
7312
7313 fi
7314
7315 # Extract the first word of "zip", so it can be a program name with args.
7316 set dummy zip; ac_word=$2
7317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7319 if test "${ac_cv_path_ZIP+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   case $ZIP in
7323   [\\/]* | ?:[\\/]*)
7324   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7325   ;;
7326   *)
7327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332   for ac_exec_ext in '' $ac_executable_extensions; do
7333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7334     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339 done
7340 IFS=$as_save_IFS
7341
7342   ;;
7343 esac
7344 fi
7345 ZIP=$ac_cv_path_ZIP
7346 if test -n "$ZIP"; then
7347   { echo "$as_me:$LINENO: result: $ZIP" >&5
7348 echo "${ECHO_T}$ZIP" >&6; }
7349 else
7350   { echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6; }
7352 fi
7353
7354
7355 for ac_prog in ocamlc
7356 do
7357   # Extract the first word of "$ac_prog", so it can be a program name with args.
7358 set dummy $ac_prog; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_OCAMLC+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   case $OCAMLC in
7365   [\\/]* | ?:[\\/]*)
7366   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7367   ;;
7368   *)
7369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374   for ac_exec_ext in '' $ac_executable_extensions; do
7375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381 done
7382 IFS=$as_save_IFS
7383
7384   ;;
7385 esac
7386 fi
7387 OCAMLC=$ac_cv_path_OCAMLC
7388 if test -n "$OCAMLC"; then
7389   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7390 echo "${ECHO_T}$OCAMLC" >&6; }
7391 else
7392   { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7394 fi
7395
7396
7397   test -n "$OCAMLC" && break
7398 done
7399
7400 for ac_prog in ocamlopt
7401 do
7402   # Extract the first word of "$ac_prog", so it can be a program name with args.
7403 set dummy $ac_prog; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   case $OCAMLOPT in
7410   [\\/]* | ?:[\\/]*)
7411   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7412   ;;
7413   *)
7414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419   for ac_exec_ext in '' $ac_executable_extensions; do
7420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7421     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429   ;;
7430 esac
7431 fi
7432 OCAMLOPT=$ac_cv_path_OCAMLOPT
7433 if test -n "$OCAMLOPT"; then
7434   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7435 echo "${ECHO_T}$OCAMLOPT" >&6; }
7436 else
7437   { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7439 fi
7440
7441
7442   test -n "$OCAMLOPT" && break
7443 done
7444
7445 for ac_prog in ocamldep
7446 do
7447   # Extract the first word of "$ac_prog", so it can be a program name with args.
7448 set dummy $ac_prog; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   case $OCAMLDEP in
7455   [\\/]* | ?:[\\/]*)
7456   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7457   ;;
7458   *)
7459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474   ;;
7475 esac
7476 fi
7477 OCAMLDEP=$ac_cv_path_OCAMLDEP
7478 if test -n "$OCAMLDEP"; then
7479   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7480 echo "${ECHO_T}$OCAMLDEP" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486
7487   test -n "$OCAMLDEP" && break
7488 done
7489
7490 for ac_prog in ocamldoc
7491 do
7492   # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy $ac_prog; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   case $OCAMLDOC in
7500   [\\/]* | ?:[\\/]*)
7501   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7502   ;;
7503   *)
7504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509   for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519   ;;
7520 esac
7521 fi
7522 OCAMLDOC=$ac_cv_path_OCAMLDOC
7523 if test -n "$OCAMLDOC"; then
7524   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7525 echo "${ECHO_T}$OCAMLDOC" >&6; }
7526 else
7527   { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7529 fi
7530
7531
7532   test -n "$OCAMLDOC" && break
7533 done
7534
7535 for ac_prog in gas as
7536 do
7537   # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541 if test "${ac_cv_path_GAS+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   case $GAS in
7545   [\\/]* | ?:[\\/]*)
7546   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7547   ;;
7548   *)
7549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554   for ac_exec_ext in '' $ac_executable_extensions; do
7555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7556     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564   ;;
7565 esac
7566 fi
7567 GAS=$ac_cv_path_GAS
7568 if test -n "$GAS"; then
7569   { echo "$as_me:$LINENO: result: $GAS" >&5
7570 echo "${ECHO_T}$GAS" >&6; }
7571 else
7572   { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7574 fi
7575
7576
7577   test -n "$GAS" && break
7578 done
7579
7580
7581 { echo "$as_me:$LINENO: checking for linker version" >&5
7582 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7583 if test "${llvm_cv_link_version+set}" = set; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586
7587    version_string="$(ld -v 2>&1 | head -1)"
7588
7589    # Check for ld64.
7590    if (echo "$version_string" | grep -q "ld64"); then
7591      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7592    else
7593      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7594    fi
7595
7596 fi
7597 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7598 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7599
7600 cat >>confdefs.h <<_ACEOF
7601 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7602 _ACEOF
7603
7604
7605
7606 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7607 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7608 if test "${llvm_cv_link_use_r+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611    ac_ext=c
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617   oldcflags="$CFLAGS"
7618   CFLAGS="$CFLAGS -Wl,-R."
7619   cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h.  */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h.  */
7625
7626 int
7627 main ()
7628 {
7629
7630   ;
7631   return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7636 case "(($ac_try" in
7637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638   *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641   (eval "$ac_link") 2>conftest.er1
7642   ac_status=$?
7643   grep -v '^ *+' conftest.er1 >conftest.err
7644   rm -f conftest.er1
7645   cat conftest.err >&5
7646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } &&
7648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7649   { (case "(($ac_try" in
7650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651   *) ac_try_echo=$ac_try;;
7652 esac
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654   (eval "$ac_try") 2>&5
7655   ac_status=$?
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); }; } &&
7658          { ac_try='test -s conftest$ac_exeext'
7659   { (case "(($ac_try" in
7660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661   *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664   (eval "$ac_try") 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; }; then
7668   llvm_cv_link_use_r=yes
7669 else
7670   echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673         llvm_cv_link_use_r=no
7674 fi
7675
7676 rm -f core conftest.err conftest.$ac_objext \
7677       conftest$ac_exeext conftest.$ac_ext
7678   CFLAGS="$oldcflags"
7679   ac_ext=c
7680 ac_cpp='$CPP $CPPFLAGS'
7681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7684
7685
7686 fi
7687 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7688 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7689 if test "$llvm_cv_link_use_r" = yes ; then
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_LINK_R 1
7693 _ACEOF
7694
7695   fi
7696
7697
7698 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7699 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7700 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703    ac_ext=c
7704 ac_cpp='$CPP $CPPFLAGS'
7705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709   oldcflags="$CFLAGS"
7710   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7711   cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717
7718 int
7719 main ()
7720 {
7721
7722   ;
7723   return 0;
7724 }
7725 _ACEOF
7726 rm -f conftest.$ac_objext conftest$ac_exeext
7727 if { (ac_try="$ac_link"
7728 case "(($ac_try" in
7729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730   *) ac_try_echo=$ac_try;;
7731 esac
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733   (eval "$ac_link") 2>conftest.er1
7734   ac_status=$?
7735   grep -v '^ *+' conftest.er1 >conftest.err
7736   rm -f conftest.er1
7737   cat conftest.err >&5
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741   { (case "(($ac_try" in
7742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743   *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746   (eval "$ac_try") 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); }; } &&
7750          { ac_try='test -s conftest$ac_exeext'
7751   { (case "(($ac_try" in
7752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753   *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756   (eval "$ac_try") 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); }; }; then
7760   llvm_cv_link_use_export_dynamic=yes
7761 else
7762   echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7764
7765         llvm_cv_link_use_export_dynamic=no
7766 fi
7767
7768 rm -f core conftest.err conftest.$ac_objext \
7769       conftest$ac_exeext conftest.$ac_ext
7770   CFLAGS="$oldcflags"
7771   ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777
7778 fi
7779 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7780 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7781 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7782
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LINK_EXPORT_DYNAMIC 1
7785 _ACEOF
7786
7787   fi
7788
7789
7790 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7791 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7792 if test "${llvm_cv_link_use_version_script+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795    ac_ext=c
7796 ac_cpp='$CPP $CPPFLAGS'
7797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7800
7801   oldcflags="$CFLAGS"
7802
7803   # The following code is from the autoconf manual,
7804   # "11.13: Limitations of Usual Tools".
7805   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7806   # Use mktemp if possible; otherwise fall back on mkdir,
7807   # with $RANDOM to make collisions less likely.
7808   : ${TMPDIR=/tmp}
7809   {
7810     tmp=`
7811       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7812     ` &&
7813     test -n "$tmp" && test -d "$tmp"
7814   } || {
7815     tmp=$TMPDIR/foo$$-$RANDOM
7816     (umask 077 && mkdir "$tmp")
7817   } || exit $?
7818
7819   echo "{" > "$tmp/export.map"
7820   echo "  global: main;" >> "$tmp/export.map"
7821   echo "  local: *;" >> "$tmp/export.map"
7822   echo "};" >> "$tmp/export.map"
7823
7824   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7825   cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831
7832 int
7833 main ()
7834 {
7835
7836   ;
7837   return 0;
7838 }
7839 _ACEOF
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7842 case "(($ac_try" in
7843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844   *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847   (eval "$ac_link") 2>conftest.er1
7848   ac_status=$?
7849   grep -v '^ *+' conftest.er1 >conftest.err
7850   rm -f conftest.er1
7851   cat conftest.err >&5
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } &&
7854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7855   { (case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_try") 2>&5
7861   ac_status=$?
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); }; } &&
7864          { ac_try='test -s conftest$ac_exeext'
7865   { (case "(($ac_try" in
7866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867   *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870   (eval "$ac_try") 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; }; then
7874   llvm_cv_link_use_version_script=yes
7875 else
7876   echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879         llvm_cv_link_use_version_script=no
7880 fi
7881
7882 rm -f core conftest.err conftest.$ac_objext \
7883       conftest$ac_exeext conftest.$ac_ext
7884   rm "$tmp/export.map"
7885   rmdir "$tmp"
7886   CFLAGS="$oldcflags"
7887   ac_ext=c
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892
7893
7894 fi
7895 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7896 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7897 if test "$llvm_cv_link_use_version_script" = yes ; then
7898   HAVE_LINK_VERSION_SCRIPT=1
7899
7900   fi
7901
7902
7903
7904
7905 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7906 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7907 if test "${ac_cv_c_const+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910   cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916
7917 int
7918 main ()
7919 {
7920 /* FIXME: Include the comments suggested by Paul. */
7921 #ifndef __cplusplus
7922   /* Ultrix mips cc rejects this.  */
7923   typedef int charset[2];
7924   const charset x;
7925   /* SunOS 4.1.1 cc rejects this.  */
7926   char const *const *ccp;
7927   char **p;
7928   /* NEC SVR4.0.2 mips cc rejects this.  */
7929   struct point {int x, y;};
7930   static struct point const zero = {0,0};
7931   /* AIX XL C 1.02.0.0 rejects this.
7932      It does not let you subtract one const X* pointer from another in
7933      an arm of an if-expression whose if-part is not a constant
7934      expression */
7935   const char *g = "string";
7936   ccp = &g + (g ? g-g : 0);
7937   /* HPUX 7.0 cc rejects these. */
7938   ++ccp;
7939   p = (char**) ccp;
7940   ccp = (char const *const *) p;
7941   { /* SCO 3.2v4 cc rejects this.  */
7942     char *t;
7943     char const *s = 0 ? (char *) 0 : (char const *) 0;
7944
7945     *t++ = 0;
7946     if (s) return 0;
7947   }
7948   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7949     int x[] = {25, 17};
7950     const int *foo = &x[0];
7951     ++foo;
7952   }
7953   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7954     typedef const int *iptr;
7955     iptr p = 0;
7956     ++p;
7957   }
7958   { /* AIX XL C 1.02.0.0 rejects this saying
7959        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7960     struct s { int j; const int *ap[3]; };
7961     struct s *b; b->j = 5;
7962   }
7963   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7964     const int foo = 10;
7965     if (!foo) return 0;
7966   }
7967   return !x[0] && !zero.x;
7968 #endif
7969
7970   ;
7971   return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_compile") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } &&
7988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7989   { (case "(($ac_try" in
7990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991   *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994   (eval "$ac_try") 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; } &&
7998          { ac_try='test -s conftest.$ac_objext'
7999   { (case "(($ac_try" in
8000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001   *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004   (eval "$ac_try") 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }; }; then
8008   ac_cv_c_const=yes
8009 else
8010   echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013         ac_cv_c_const=no
8014 fi
8015
8016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017 fi
8018 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8019 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8020 if test $ac_cv_c_const = no; then
8021
8022 cat >>confdefs.h <<\_ACEOF
8023 #define const
8024 _ACEOF
8025
8026 fi
8027
8028
8029
8030
8031
8032
8033 ac_header_dirent=no
8034 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8035   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8036 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8037 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047 #include <sys/types.h>
8048 #include <$ac_hdr>
8049
8050 int
8051 main ()
8052 {
8053 if ((DIR *) 0)
8054 return 0;
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8061 case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_compile") 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } &&
8073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8074   { (case "(($ac_try" in
8075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076   *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079   (eval "$ac_try") 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; } &&
8083          { ac_try='test -s conftest.$ac_objext'
8084   { (case "(($ac_try" in
8085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086   *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089   (eval "$ac_try") 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; }; then
8093   eval "$as_ac_Header=yes"
8094 else
8095   echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098         eval "$as_ac_Header=no"
8099 fi
8100
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103 ac_res=`eval echo '${'$as_ac_Header'}'`
8104                { echo "$as_me:$LINENO: result: $ac_res" >&5
8105 echo "${ECHO_T}$ac_res" >&6; }
8106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8107   cat >>confdefs.h <<_ACEOF
8108 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8109 _ACEOF
8110
8111 ac_header_dirent=$ac_hdr; break
8112 fi
8113
8114 done
8115 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8116 if test $ac_header_dirent = dirent.h; then
8117   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8119 if test "${ac_cv_search_opendir+set}" = set; then
8120   echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122   ac_func_search_save_LIBS=$LIBS
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h.  */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h.  */
8129
8130 /* Override any GCC internal prototype to avoid an error.
8131    Use char because int might match the return type of a GCC
8132    builtin and then its argument prototype would still apply.  */
8133 #ifdef __cplusplus
8134 extern "C"
8135 #endif
8136 char opendir ();
8137 int
8138 main ()
8139 {
8140 return opendir ();
8141   ;
8142   return 0;
8143 }
8144 _ACEOF
8145 for ac_lib in '' dir; do
8146   if test -z "$ac_lib"; then
8147     ac_res="none required"
8148   else
8149     ac_res=-l$ac_lib
8150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8151   fi
8152   rm -f conftest.$ac_objext conftest$ac_exeext
8153 if { (ac_try="$ac_link"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_link") 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167   { (case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_try") 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest$ac_exeext'
8177   { (case "(($ac_try" in
8178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179   *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182   (eval "$ac_try") 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; }; then
8186   ac_cv_search_opendir=$ac_res
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191
8192 fi
8193
8194 rm -f core conftest.err conftest.$ac_objext \
8195       conftest$ac_exeext
8196   if test "${ac_cv_search_opendir+set}" = set; then
8197   break
8198 fi
8199 done
8200 if test "${ac_cv_search_opendir+set}" = set; then
8201   :
8202 else
8203   ac_cv_search_opendir=no
8204 fi
8205 rm conftest.$ac_ext
8206 LIBS=$ac_func_search_save_LIBS
8207 fi
8208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8210 ac_res=$ac_cv_search_opendir
8211 if test "$ac_res" != no; then
8212   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8213
8214 fi
8215
8216 else
8217   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8219 if test "${ac_cv_search_opendir+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   ac_func_search_save_LIBS=$LIBS
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229
8230 /* Override any GCC internal prototype to avoid an error.
8231    Use char because int might match the return type of a GCC
8232    builtin and then its argument prototype would still apply.  */
8233 #ifdef __cplusplus
8234 extern "C"
8235 #endif
8236 char opendir ();
8237 int
8238 main ()
8239 {
8240 return opendir ();
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 for ac_lib in '' x; do
8246   if test -z "$ac_lib"; then
8247     ac_res="none required"
8248   else
8249     ac_res=-l$ac_lib
8250     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8251   fi
8252   rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8254 case "(($ac_try" in
8255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256   *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259   (eval "$ac_link") 2>conftest.er1
8260   ac_status=$?
8261   grep -v '^ *+' conftest.er1 >conftest.err
8262   rm -f conftest.er1
8263   cat conftest.err >&5
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); } &&
8266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8267   { (case "(($ac_try" in
8268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269   *) ac_try_echo=$ac_try;;
8270 esac
8271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272   (eval "$ac_try") 2>&5
8273   ac_status=$?
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); }; } &&
8276          { ac_try='test -s conftest$ac_exeext'
8277   { (case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_try") 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); }; }; then
8286   ac_cv_search_opendir=$ac_res
8287 else
8288   echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291
8292 fi
8293
8294 rm -f core conftest.err conftest.$ac_objext \
8295       conftest$ac_exeext
8296   if test "${ac_cv_search_opendir+set}" = set; then
8297   break
8298 fi
8299 done
8300 if test "${ac_cv_search_opendir+set}" = set; then
8301   :
8302 else
8303   ac_cv_search_opendir=no
8304 fi
8305 rm conftest.$ac_ext
8306 LIBS=$ac_func_search_save_LIBS
8307 fi
8308 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8309 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8310 ac_res=$ac_cv_search_opendir
8311 if test "$ac_res" != no; then
8312   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313
8314 fi
8315
8316 fi
8317
8318
8319 for ac_header in dlfcn.h
8320 do
8321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 fi
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329                { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 else
8332   # Is the header compilable?
8333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341 $ac_includes_default
8342 #include <$ac_header>
8343 _ACEOF
8344 rm -f conftest.$ac_objext
8345 if { (ac_try="$ac_compile"
8346 case "(($ac_try" in
8347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348   *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351   (eval "$ac_compile") 2>conftest.er1
8352   ac_status=$?
8353   grep -v '^ *+' conftest.er1 >conftest.err
8354   rm -f conftest.er1
8355   cat conftest.err >&5
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } &&
8358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359   { (case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364   (eval "$ac_try") 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); }; } &&
8368          { ac_try='test -s conftest.$ac_objext'
8369   { (case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_try") 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_header_compiler=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383         ac_header_compiler=no
8384 fi
8385
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8388 echo "${ECHO_T}$ac_header_compiler" >&6; }
8389
8390 # Is the header present?
8391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8393 cat >conftest.$ac_ext <<_ACEOF
8394 /* confdefs.h.  */
8395 _ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h.  */
8399 #include <$ac_header>
8400 _ACEOF
8401 if { (ac_try="$ac_cpp conftest.$ac_ext"
8402 case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8408   ac_status=$?
8409   grep -v '^ *+' conftest.er1 >conftest.err
8410   rm -f conftest.er1
8411   cat conftest.err >&5
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } >/dev/null; then
8414   if test -s conftest.err; then
8415     ac_cpp_err=$ac_c_preproc_warn_flag
8416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8417   else
8418     ac_cpp_err=
8419   fi
8420 else
8421   ac_cpp_err=yes
8422 fi
8423 if test -z "$ac_cpp_err"; then
8424   ac_header_preproc=yes
8425 else
8426   echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8428
8429   ac_header_preproc=no
8430 fi
8431
8432 rm -f conftest.err conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434 echo "${ECHO_T}$ac_header_preproc" >&6; }
8435
8436 # So?  What about this header?
8437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438   yes:no: )
8439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8443     ac_header_preproc=yes
8444     ;;
8445   no:yes:* )
8446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8458     ( cat <<\_ASBOX
8459 ## ------------------------------ ##
8460 ## Report this to bugs@yourdomain ##
8461 ## ------------------------------ ##
8462 _ASBOX
8463      ) | sed "s/^/$as_me: WARNING:     /" >&2
8464     ;;
8465 esac
8466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   eval "$as_ac_Header=\$ac_header_preproc"
8472 fi
8473 ac_res=`eval echo '${'$as_ac_Header'}'`
8474                { echo "$as_me:$LINENO: result: $ac_res" >&5
8475 echo "${ECHO_T}$ac_res" >&6; }
8476
8477 fi
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479   cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 _ACEOF
8482
8483 fi
8484
8485 done
8486
8487 # Check whether --enable-ltdl-install was given.
8488 if test "${enable_ltdl_install+set}" = set; then
8489   enableval=$enable_ltdl_install;
8490 fi
8491
8492
8493
8494
8495 if test x"${enable_ltdl_install-no}" != xno; then
8496   INSTALL_LTDL_TRUE=
8497   INSTALL_LTDL_FALSE='#'
8498 else
8499   INSTALL_LTDL_TRUE='#'
8500   INSTALL_LTDL_FALSE=
8501 fi
8502
8503
8504
8505 if test x"${enable_ltdl_convenience-no}" != xno; then
8506   CONVENIENCE_LTDL_TRUE=
8507   CONVENIENCE_LTDL_FALSE='#'
8508 else
8509   CONVENIENCE_LTDL_TRUE='#'
8510   CONVENIENCE_LTDL_FALSE=
8511 fi
8512
8513
8514 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8515 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8516 library_names_spec=
8517 libname_spec='lib$name'
8518 soname_spec=
8519 shrext_cmds=".so"
8520 postinstall_cmds=
8521 postuninstall_cmds=
8522 finish_cmds=
8523 finish_eval=
8524 shlibpath_var=
8525 shlibpath_overrides_runpath=unknown
8526 version_type=none
8527 dynamic_linker="$host_os ld.so"
8528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8529 if test "$GCC" = yes; then
8530   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8531   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8532     # if the path contains ";" then we assume it to be the separator
8533     # otherwise default to the standard path separator (i.e. ":") - it is
8534     # assumed that no part of a normal pathname contains ";" but that should
8535     # okay in the real world where ";" in dirpaths is itself problematic.
8536     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8537   else
8538     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8539   fi
8540 else
8541   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8542 fi
8543 need_lib_prefix=unknown
8544 hardcode_into_libs=no
8545
8546 # when you set need_version to no, make sure it does not cause -set_version
8547 # flags to be left without arguments
8548 need_version=unknown
8549
8550 case $host_os in
8551 aix3*)
8552   version_type=linux
8553   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8554   shlibpath_var=LIBPATH
8555
8556   # AIX 3 has no versioning support, so we append a major version to the name.
8557   soname_spec='${libname}${release}${shared_ext}$major'
8558   ;;
8559
8560 aix4* | aix5*)
8561   version_type=linux
8562   need_lib_prefix=no
8563   need_version=no
8564   hardcode_into_libs=yes
8565   if test "$host_cpu" = ia64; then
8566     # AIX 5 supports IA64
8567     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8568     shlibpath_var=LD_LIBRARY_PATH
8569   else
8570     # With GCC up to 2.95.x, collect2 would create an import file
8571     # for dependence libraries.  The import file would start with
8572     # the line `#! .'.  This would cause the generated library to
8573     # depend on `.', always an invalid library.  This was fixed in
8574     # development snapshots of GCC prior to 3.0.
8575     case $host_os in
8576       aix4 | aix4.[01] | aix4.[01].*)
8577       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8578            echo ' yes '
8579            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8580         :
8581       else
8582         can_build_shared=no
8583       fi
8584       ;;
8585     esac
8586     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8587     # soname into executable. Probably we can add versioning support to
8588     # collect2, so additional links can be useful in future.
8589     if test "$aix_use_runtimelinking" = yes; then
8590       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8591       # instead of lib<name>.a to let people know that these are not
8592       # typical AIX shared libraries.
8593       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594     else
8595       # We preserve .a as extension for shared libraries through AIX4.2
8596       # and later when we are not doing run time linking.
8597       library_names_spec='${libname}${release}.a $libname.a'
8598       soname_spec='${libname}${release}${shared_ext}$major'
8599     fi
8600     shlibpath_var=LIBPATH
8601   fi
8602   ;;
8603
8604 amigaos*)
8605   library_names_spec='$libname.ixlibrary $libname.a'
8606   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8607   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'
8608   ;;
8609
8610 beos*)
8611   library_names_spec='${libname}${shared_ext}'
8612   dynamic_linker="$host_os ld.so"
8613   shlibpath_var=LIBRARY_PATH
8614   ;;
8615
8616 bsdi[45]*)
8617   version_type=linux
8618   need_version=no
8619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8620   soname_spec='${libname}${release}${shared_ext}$major'
8621   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8622   shlibpath_var=LD_LIBRARY_PATH
8623   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8624   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8625   # the default ld.so.conf also contains /usr/contrib/lib and
8626   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8627   # libtool to hard-code these into programs
8628   ;;
8629
8630 cygwin* | mingw* | pw32*)
8631   version_type=windows
8632   shrext_cmds=".dll"
8633   need_version=no
8634   need_lib_prefix=no
8635
8636   case $GCC,$host_os in
8637   yes,cygwin* | yes,mingw* | yes,pw32*)
8638     library_names_spec='$libname.dll.a'
8639     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8640     postinstall_cmds='base_file=`basename \${file}`~
8641       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8642       dldir=$destdir/`dirname \$dlpath`~
8643       test -d \$dldir || mkdir -p \$dldir~
8644       $install_prog $dir/$dlname \$dldir/$dlname~
8645       chmod a+x \$dldir/$dlname'
8646     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8647       dlpath=$dir/\$dldll~
8648        $rm \$dlpath'
8649     shlibpath_overrides_runpath=yes
8650
8651     case $host_os in
8652     cygwin*)
8653       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8654       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8655       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8656       ;;
8657     mingw*)
8658       # MinGW DLLs use traditional 'lib' prefix
8659       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8660       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8662         # It is most probably a Windows format PATH printed by
8663         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8664         # path with ; separators, and with drive letters. We can handle the
8665         # drive letters (cygwin fileutils understands them), so leave them,
8666         # especially as we might pass files found there to a mingw objdump,
8667         # which wouldn't understand a cygwinified path. Ahh.
8668         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8669       else
8670         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8671       fi
8672       ;;
8673     pw32*)
8674       # pw32 DLLs use 'pw' prefix rather than 'lib'
8675       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8676       ;;
8677     esac
8678     ;;
8679
8680   *)
8681     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8682     ;;
8683   esac
8684   dynamic_linker='Win32 ld.exe'
8685   # FIXME: first we should search . and the directory the executable is in
8686   shlibpath_var=PATH
8687   ;;
8688
8689 darwin* | rhapsody*)
8690   dynamic_linker="$host_os dyld"
8691   version_type=darwin
8692   need_lib_prefix=no
8693   need_version=no
8694   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8695   soname_spec='${libname}${release}${major}$shared_ext'
8696   shlibpath_overrides_runpath=yes
8697   shlibpath_var=DYLD_LIBRARY_PATH
8698   shrext_cmds='.dylib'
8699   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8700   if test "$GCC" = yes; then
8701     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"`
8702   else
8703     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8704   fi
8705   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8706   ;;
8707
8708 dgux*)
8709   version_type=linux
8710   need_lib_prefix=no
8711   need_version=no
8712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8713   soname_spec='${libname}${release}${shared_ext}$major'
8714   shlibpath_var=LD_LIBRARY_PATH
8715   ;;
8716
8717 freebsd1.*)
8718   dynamic_linker=no
8719   ;;
8720
8721 kfreebsd*-gnu)
8722   version_type=linux
8723   need_lib_prefix=no
8724   need_version=no
8725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8726   soname_spec='${libname}${release}${shared_ext}$major'
8727   shlibpath_var=LD_LIBRARY_PATH
8728   shlibpath_overrides_runpath=no
8729   hardcode_into_libs=yes
8730   dynamic_linker='GNU ld.so'
8731   ;;
8732
8733 freebsd* | dragonfly*)
8734   # DragonFly does not have aout.  When/if they implement a new
8735   # versioning mechanism, adjust this.
8736   if test -x /usr/bin/objformat; then
8737     objformat=`/usr/bin/objformat`
8738   else
8739     case $host_os in
8740     freebsd[123].*) objformat=aout ;;
8741     *) objformat=elf ;;
8742     esac
8743   fi
8744   version_type=freebsd-$objformat
8745   case $version_type in
8746     freebsd-elf*)
8747       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8748       need_version=no
8749       need_lib_prefix=no
8750       ;;
8751     freebsd-*)
8752       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8753       need_version=yes
8754       ;;
8755   esac
8756   shlibpath_var=LD_LIBRARY_PATH
8757   case $host_os in
8758   freebsd2.*)
8759     shlibpath_overrides_runpath=yes
8760     ;;
8761   freebsd3.[01]* | freebsdelf3.[01]*)
8762     shlibpath_overrides_runpath=yes
8763     hardcode_into_libs=yes
8764     ;;
8765   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8766   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8767     shlibpath_overrides_runpath=no
8768     hardcode_into_libs=yes
8769     ;;
8770   freebsd*) # from 4.6 on
8771     shlibpath_overrides_runpath=yes
8772     hardcode_into_libs=yes
8773     ;;
8774   esac
8775   ;;
8776
8777 gnu*)
8778   version_type=linux
8779   need_lib_prefix=no
8780   need_version=no
8781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8782   soname_spec='${libname}${release}${shared_ext}$major'
8783   shlibpath_var=LD_LIBRARY_PATH
8784   hardcode_into_libs=yes
8785   ;;
8786
8787 hpux9* | hpux10* | hpux11*)
8788   # Give a soname corresponding to the major version so that dld.sl refuses to
8789   # link against other versions.
8790   version_type=sunos
8791   need_lib_prefix=no
8792   need_version=no
8793   case $host_cpu in
8794   ia64*)
8795     shrext_cmds='.so'
8796     hardcode_into_libs=yes
8797     dynamic_linker="$host_os dld.so"
8798     shlibpath_var=LD_LIBRARY_PATH
8799     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801     soname_spec='${libname}${release}${shared_ext}$major'
8802     if test "X$HPUX_IA64_MODE" = X32; then
8803       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8804     else
8805       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8806     fi
8807     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8808     ;;
8809    hppa*64*)
8810      shrext_cmds='.sl'
8811      hardcode_into_libs=yes
8812      dynamic_linker="$host_os dld.sl"
8813      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8814      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8815      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816      soname_spec='${libname}${release}${shared_ext}$major'
8817      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8818      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8819      ;;
8820    *)
8821     shrext_cmds='.sl'
8822     dynamic_linker="$host_os dld.sl"
8823     shlibpath_var=SHLIB_PATH
8824     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826     soname_spec='${libname}${release}${shared_ext}$major'
8827     ;;
8828   esac
8829   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8830   postinstall_cmds='chmod 555 $lib'
8831   ;;
8832
8833 interix3*)
8834   version_type=linux
8835   need_lib_prefix=no
8836   need_version=no
8837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8838   soname_spec='${libname}${release}${shared_ext}$major'
8839   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8840   shlibpath_var=LD_LIBRARY_PATH
8841   shlibpath_overrides_runpath=no
8842   hardcode_into_libs=yes
8843   ;;
8844
8845 irix5* | irix6* | nonstopux*)
8846   case $host_os in
8847     nonstopux*) version_type=nonstopux ;;
8848     *)
8849         if test "$lt_cv_prog_gnu_ld" = yes; then
8850                 version_type=linux
8851         else
8852                 version_type=irix
8853         fi ;;
8854   esac
8855   need_lib_prefix=no
8856   need_version=no
8857   soname_spec='${libname}${release}${shared_ext}$major'
8858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8859   case $host_os in
8860   irix5* | nonstopux*)
8861     libsuff= shlibsuff=
8862     ;;
8863   *)
8864     case $LD in # libtool.m4 will add one of these switches to LD
8865     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8866       libsuff= shlibsuff= libmagic=32-bit;;
8867     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8868       libsuff=32 shlibsuff=N32 libmagic=N32;;
8869     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8870       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8871     *) libsuff= shlibsuff= libmagic=never-match;;
8872     esac
8873     ;;
8874   esac
8875   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8876   shlibpath_overrides_runpath=no
8877   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8878   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8879   hardcode_into_libs=yes
8880   ;;
8881
8882 # No shared lib support for Linux oldld, aout, or coff.
8883 linux*oldld* | linux*aout* | linux*coff*)
8884   dynamic_linker=no
8885   ;;
8886
8887 # This must be Linux ELF.
8888 linux*)
8889   version_type=linux
8890   need_lib_prefix=no
8891   need_version=no
8892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893   soname_spec='${libname}${release}${shared_ext}$major'
8894   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8895   shlibpath_var=LD_LIBRARY_PATH
8896   shlibpath_overrides_runpath=no
8897   # This implies no fast_install, which is unacceptable.
8898   # Some rework will be needed to allow for fast_install
8899   # before this can be enabled.
8900   hardcode_into_libs=yes
8901
8902   # Append ld.so.conf contents to the search path
8903   if test -f /etc/ld.so.conf; then
8904     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' ' '`
8905     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8906   fi
8907
8908   # We used to test for /lib/ld.so.1 and disable shared libraries on
8909   # powerpc, because MkLinux only supported shared libraries with the
8910   # GNU dynamic linker.  Since this was broken with cross compilers,
8911   # most powerpc-linux boxes support dynamic linking these days and
8912   # people can always --disable-shared, the test was removed, and we
8913   # assume the GNU/Linux dynamic linker is in use.
8914   dynamic_linker='GNU/Linux ld.so'
8915   ;;
8916
8917 knetbsd*-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   shlibpath_overrides_runpath=no
8925   hardcode_into_libs=yes
8926   dynamic_linker='GNU ld.so'
8927   ;;
8928
8929 netbsd*)
8930   version_type=sunos
8931   need_lib_prefix=no
8932   need_version=no
8933   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8935     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8936     dynamic_linker='NetBSD (a.out) ld.so'
8937   else
8938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8939     soname_spec='${libname}${release}${shared_ext}$major'
8940     dynamic_linker='NetBSD ld.elf_so'
8941   fi
8942   shlibpath_var=LD_LIBRARY_PATH
8943   shlibpath_overrides_runpath=yes
8944   hardcode_into_libs=yes
8945   ;;
8946
8947 newsos6)
8948   version_type=linux
8949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950   shlibpath_var=LD_LIBRARY_PATH
8951   shlibpath_overrides_runpath=yes
8952   ;;
8953
8954 nto-qnx*)
8955   version_type=linux
8956   need_lib_prefix=no
8957   need_version=no
8958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959   soname_spec='${libname}${release}${shared_ext}$major'
8960   shlibpath_var=LD_LIBRARY_PATH
8961   shlibpath_overrides_runpath=yes
8962   ;;
8963
8964 openbsd*)
8965   version_type=sunos
8966   sys_lib_dlsearch_path_spec="/usr/lib"
8967   need_lib_prefix=no
8968   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8969   case $host_os in
8970     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8971     *)                         need_version=no  ;;
8972   esac
8973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8975   shlibpath_var=LD_LIBRARY_PATH
8976   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8977     case $host_os in
8978       openbsd2.[89] | openbsd2.[89].*)
8979         shlibpath_overrides_runpath=no
8980         ;;
8981       *)
8982         shlibpath_overrides_runpath=yes
8983         ;;
8984       esac
8985   else
8986     shlibpath_overrides_runpath=yes
8987   fi
8988   ;;
8989
8990 os2*)
8991   libname_spec='$name'
8992   shrext_cmds=".dll"
8993   need_lib_prefix=no
8994   library_names_spec='$libname${shared_ext} $libname.a'
8995   dynamic_linker='OS/2 ld.exe'
8996   shlibpath_var=LIBPATH
8997   ;;
8998
8999 osf3* | osf4* | osf5*)
9000   version_type=osf
9001   need_lib_prefix=no
9002   need_version=no
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005   shlibpath_var=LD_LIBRARY_PATH
9006   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9007   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9008   ;;
9009
9010 solaris*)
9011   version_type=linux
9012   need_lib_prefix=no
9013   need_version=no
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   shlibpath_overrides_runpath=yes
9018   hardcode_into_libs=yes
9019   # ldd complains unless libraries are executable
9020   postinstall_cmds='chmod +x $lib'
9021   ;;
9022
9023 sunos4*)
9024   version_type=sunos
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   shlibpath_overrides_runpath=yes
9029   if test "$with_gnu_ld" = yes; then
9030     need_lib_prefix=no
9031   fi
9032   need_version=yes
9033   ;;
9034
9035 sysv4 | sysv4.3*)
9036   version_type=linux
9037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038   soname_spec='${libname}${release}${shared_ext}$major'
9039   shlibpath_var=LD_LIBRARY_PATH
9040   case $host_vendor in
9041     sni)
9042       shlibpath_overrides_runpath=no
9043       need_lib_prefix=no
9044       export_dynamic_flag_spec='${wl}-Blargedynsym'
9045       runpath_var=LD_RUN_PATH
9046       ;;
9047     siemens)
9048       need_lib_prefix=no
9049       ;;
9050     motorola)
9051       need_lib_prefix=no
9052       need_version=no
9053       shlibpath_overrides_runpath=no
9054       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9055       ;;
9056   esac
9057   ;;
9058
9059 sysv4*MP*)
9060   if test -d /usr/nec ;then
9061     version_type=linux
9062     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9063     soname_spec='$libname${shared_ext}.$major'
9064     shlibpath_var=LD_LIBRARY_PATH
9065   fi
9066   ;;
9067
9068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9069   version_type=freebsd-elf
9070   need_lib_prefix=no
9071   need_version=no
9072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9073   soname_spec='${libname}${release}${shared_ext}$major'
9074   shlibpath_var=LD_LIBRARY_PATH
9075   hardcode_into_libs=yes
9076   if test "$with_gnu_ld" = yes; then
9077     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9078     shlibpath_overrides_runpath=no
9079   else
9080     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9081     shlibpath_overrides_runpath=yes
9082     case $host_os in
9083       sco3.2v5*)
9084         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9085         ;;
9086     esac
9087   fi
9088   sys_lib_dlsearch_path_spec='/usr/lib'
9089   ;;
9090
9091 uts4*)
9092   version_type=linux
9093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094   soname_spec='${libname}${release}${shared_ext}$major'
9095   shlibpath_var=LD_LIBRARY_PATH
9096   ;;
9097
9098 *)
9099   dynamic_linker=no
9100   ;;
9101 esac
9102 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9103 echo "${ECHO_T}$dynamic_linker" >&6; }
9104 test "$dynamic_linker" = no && can_build_shared=no
9105
9106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9107 if test "$GCC" = yes; then
9108   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9109 fi
9110
9111
9112 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9113 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9114 if test "${libltdl_cv_shlibext+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117
9118 module=yes
9119 eval libltdl_cv_shlibext=$shrext_cmds
9120
9121 fi
9122 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9123 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9124 if test -n "$libltdl_cv_shlibext"; then
9125
9126 cat >>confdefs.h <<_ACEOF
9127 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9128 _ACEOF
9129
9130 fi
9131
9132
9133 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9134 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9135 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9136   echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138   libltdl_cv_shlibpath_var="$shlibpath_var"
9139 fi
9140 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9141 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9142 if test -n "$libltdl_cv_shlibpath_var"; then
9143
9144 cat >>confdefs.h <<_ACEOF
9145 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9146 _ACEOF
9147
9148 fi
9149
9150
9151 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9152 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9153 if test "${libltdl_cv_sys_search_path+set}" = set; then
9154   echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9157 fi
9158 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9159 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9160 if test -n "$libltdl_cv_sys_search_path"; then
9161   sys_search_path=
9162   for dir in $libltdl_cv_sys_search_path; do
9163     if test -z "$sys_search_path"; then
9164       sys_search_path="$dir"
9165     else
9166       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9167     fi
9168   done
9169
9170 cat >>confdefs.h <<_ACEOF
9171 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9172 _ACEOF
9173
9174 fi
9175
9176 { echo "$as_me:$LINENO: checking for objdir" >&5
9177 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9178 if test "${libltdl_cv_objdir+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   libltdl_cv_objdir="$objdir"
9182   if test -n "$objdir"; then
9183     :
9184   else
9185     rm -f .libs 2>/dev/null
9186     mkdir .libs 2>/dev/null
9187     if test -d .libs; then
9188       libltdl_cv_objdir=.libs
9189     else
9190       # MS-DOS does not allow filenames that begin with a dot.
9191       libltdl_cv_objdir=_libs
9192     fi
9193   rmdir .libs 2>/dev/null
9194   fi
9195
9196 fi
9197 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9198 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9202 _ACEOF
9203
9204
9205
9206
9207
9208
9209 # Check for command to grab the raw symbol name followed by C symbol from nm.
9210 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9211 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9212 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215
9216 # These are sane defaults that work on at least a few old systems.
9217 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9218
9219 # Character class describing NM global symbol codes.
9220 symcode='[BCDEGRST]'
9221
9222 # Regexp to match symbols that can be accessed directly from C.
9223 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9224
9225 # Transform an extracted symbol line into a proper C declaration
9226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9227
9228 # Transform an extracted symbol line into symbol name and symbol address
9229 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'"
9230
9231 # Define system-specific variables.
9232 case $host_os in
9233 aix*)
9234   symcode='[BCDT]'
9235   ;;
9236 cygwin* | mingw* | pw32*)
9237   symcode='[ABCDGISTW]'
9238   ;;
9239 hpux*) # Its linker distinguishes data from code symbols
9240   if test "$host_cpu" = ia64; then
9241     symcode='[ABCDEGRST]'
9242   fi
9243   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9244   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'"
9245   ;;
9246 linux*)
9247   if test "$host_cpu" = ia64; then
9248     symcode='[ABCDGIRSTW]'
9249     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9250     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'"
9251   fi
9252   ;;
9253 irix* | nonstopux*)
9254   symcode='[BCDEGRST]'
9255   ;;
9256 osf*)
9257   symcode='[BCDEGQRST]'
9258   ;;
9259 solaris*)
9260   symcode='[BDRT]'
9261   ;;
9262 sco3.2v5*)
9263   symcode='[DT]'
9264   ;;
9265 sysv4.2uw2*)
9266   symcode='[DT]'
9267   ;;
9268 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9269   symcode='[ABDT]'
9270   ;;
9271 sysv4)
9272   symcode='[DFNSTU]'
9273   ;;
9274 esac
9275
9276 # Handle CRLF in mingw tool chain
9277 opt_cr=
9278 case $build_os in
9279 mingw*)
9280   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9281   ;;
9282 esac
9283
9284 # If we're using GNU nm, then use its standard symbol codes.
9285 case `$NM -V 2>&1` in
9286 *GNU* | *'with BFD'*)
9287   symcode='[ABCDGIRSTW]' ;;
9288 esac
9289
9290 # Try without a prefix undercore, then with it.
9291 for ac_symprfx in "" "_"; do
9292
9293   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9294   symxfrm="\\1 $ac_symprfx\\2 \\2"
9295
9296   # Write the raw and C identifiers.
9297   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9298
9299   # Check to see that the pipe works correctly.
9300   pipe_works=no
9301
9302   rm -f conftest*
9303   cat > conftest.$ac_ext <<EOF
9304 #ifdef __cplusplus
9305 extern "C" {
9306 #endif
9307 char nm_test_var;
9308 void nm_test_func(){}
9309 #ifdef __cplusplus
9310 }
9311 #endif
9312 int main(){nm_test_var='a';nm_test_func();return(0);}
9313 EOF
9314
9315   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316   (eval $ac_compile) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); }; then
9320     # Now try to grab the symbols.
9321     nlist=conftest.nm
9322     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9323   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9324   ac_status=$?
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } && test -s "$nlist"; then
9327       # Try sorting and uniquifying the output.
9328       if sort "$nlist" | uniq > "$nlist"T; then
9329         mv -f "$nlist"T "$nlist"
9330       else
9331         rm -f "$nlist"T
9332       fi
9333
9334       # Make sure that we snagged all the symbols we need.
9335       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9336         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9337           cat <<EOF > conftest.$ac_ext
9338 #ifdef __cplusplus
9339 extern "C" {
9340 #endif
9341
9342 EOF
9343           # Now generate the symbol file.
9344           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9345
9346           cat <<EOF >> conftest.$ac_ext
9347 #if defined (__STDC__) && __STDC__
9348 # define lt_ptr_t void *
9349 #else
9350 # define lt_ptr_t char *
9351 # define const
9352 #endif
9353
9354 /* The mapping between symbol names and symbols. */
9355 const struct {
9356   const char *name;
9357   lt_ptr_t address;
9358 }
9359 lt_preloaded_symbols[] =
9360 {
9361 EOF
9362           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9363           cat <<\EOF >> conftest.$ac_ext
9364   {0, (lt_ptr_t) 0}
9365 };
9366
9367 #ifdef __cplusplus
9368 }
9369 #endif
9370 EOF
9371           # Now try linking the two files.
9372           mv conftest.$ac_objext conftstm.$ac_objext
9373           lt_save_LIBS="$LIBS"
9374           lt_save_CFLAGS="$CFLAGS"
9375           LIBS="conftstm.$ac_objext"
9376           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9377           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378   (eval $ac_link) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9382             pipe_works=yes
9383           fi
9384           LIBS="$lt_save_LIBS"
9385           CFLAGS="$lt_save_CFLAGS"
9386         else
9387           echo "cannot find nm_test_func in $nlist" >&5
9388         fi
9389       else
9390         echo "cannot find nm_test_var in $nlist" >&5
9391       fi
9392     else
9393       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9394     fi
9395   else
9396     echo "$progname: failed program was:" >&5
9397     cat conftest.$ac_ext >&5
9398   fi
9399   rm -f conftest* conftst*
9400
9401   # Do not use the global_symbol_pipe unless it works.
9402   if test "$pipe_works" = yes; then
9403     break
9404   else
9405     lt_cv_sys_global_symbol_pipe=
9406   fi
9407 done
9408
9409 fi
9410
9411 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9412   lt_cv_sys_global_symbol_to_cdecl=
9413 fi
9414 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9415   { echo "$as_me:$LINENO: result: failed" >&5
9416 echo "${ECHO_T}failed" >&6; }
9417 else
9418   { echo "$as_me:$LINENO: result: ok" >&5
9419 echo "${ECHO_T}ok" >&6; }
9420 fi
9421
9422
9423 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9424 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9425 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9429     libltdl_cv_preloaded_symbols=yes
9430   else
9431     libltdl_cv_preloaded_symbols=no
9432   fi
9433
9434 fi
9435 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9436 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9437 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_PRELOADED_SYMBOLS 1
9441 _ACEOF
9442
9443 fi
9444
9445 LIBADD_DL=
9446
9447 ac_ext=c
9448 ac_cpp='$CPP $CPPFLAGS'
9449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9452
9453
9454 { echo "$as_me:$LINENO: checking for shl_load" >&5
9455 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9456 if test "${ac_cv_func_shl_load+set}" = set; then
9457   echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459   cat >conftest.$ac_ext <<_ACEOF
9460 /* confdefs.h.  */
9461 _ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h.  */
9465 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9467 #define shl_load innocuous_shl_load
9468
9469 /* System header to define __stub macros and hopefully few prototypes,
9470     which can conflict with char shl_load (); below.
9471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9472     <limits.h> exists even on freestanding compilers.  */
9473
9474 #ifdef __STDC__
9475 # include <limits.h>
9476 #else
9477 # include <assert.h>
9478 #endif
9479
9480 #undef shl_load
9481
9482 /* Override any GCC internal prototype to avoid an error.
9483    Use char because int might match the return type of a GCC
9484    builtin and then its argument prototype would still apply.  */
9485 #ifdef __cplusplus
9486 extern "C"
9487 #endif
9488 char shl_load ();
9489 /* The GNU C library defines this for functions which it implements
9490     to always fail with ENOSYS.  Some functions are actually named
9491     something starting with __ and the normal name is an alias.  */
9492 #if defined __stub_shl_load || defined __stub___shl_load
9493 choke me
9494 #endif
9495
9496 int
9497 main ()
9498 {
9499 return shl_load ();
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } &&
9518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519   { (case "(($ac_try" in
9520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521   *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524   (eval "$ac_try") 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; } &&
9528          { ac_try='test -s conftest$ac_exeext'
9529   { (case "(($ac_try" in
9530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531   *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534   (eval "$ac_try") 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); }; }; then
9538   ac_cv_func_shl_load=yes
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543         ac_cv_func_shl_load=no
9544 fi
9545
9546 rm -f core conftest.err conftest.$ac_objext \
9547       conftest$ac_exeext conftest.$ac_ext
9548 fi
9549 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9550 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9551 if test $ac_cv_func_shl_load = yes; then
9552
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_SHL_LOAD 1
9555 _ACEOF
9556
9557 else
9558   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9561   echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563   ac_check_lib_save_LIBS=$LIBS
9564 LIBS="-ldld  $LIBS"
9565 cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h.  */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h.  */
9571
9572 /* Override any GCC internal prototype to avoid an error.
9573    Use char because int might match the return type of a GCC
9574    builtin and then its argument prototype would still apply.  */
9575 #ifdef __cplusplus
9576 extern "C"
9577 #endif
9578 char shl_load ();
9579 int
9580 main ()
9581 {
9582 return shl_load ();
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9589 case "(($ac_try" in
9590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591   *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594   (eval "$ac_link") 2>conftest.er1
9595   ac_status=$?
9596   grep -v '^ *+' conftest.er1 >conftest.err
9597   rm -f conftest.er1
9598   cat conftest.err >&5
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } &&
9601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9602   { (case "(($ac_try" in
9603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604   *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607   (eval "$ac_try") 2>&5
9608   ac_status=$?
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); }; } &&
9611          { ac_try='test -s conftest$ac_exeext'
9612   { (case "(($ac_try" in
9613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614   *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617   (eval "$ac_try") 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; }; then
9621   ac_cv_lib_dld_shl_load=yes
9622 else
9623   echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9625
9626         ac_cv_lib_dld_shl_load=no
9627 fi
9628
9629 rm -f core conftest.err conftest.$ac_objext \
9630       conftest$ac_exeext conftest.$ac_ext
9631 LIBS=$ac_check_lib_save_LIBS
9632 fi
9633 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9635 if test $ac_cv_lib_dld_shl_load = yes; then
9636
9637 cat >>confdefs.h <<\_ACEOF
9638 #define HAVE_SHL_LOAD 1
9639 _ACEOF
9640
9641         LIBADD_DL="$LIBADD_DL -ldld"
9642 else
9643   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   ac_check_lib_save_LIBS=$LIBS
9649 LIBS="-ldl  $LIBS"
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h.  */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h.  */
9656
9657 /* Override any GCC internal prototype to avoid an error.
9658    Use char because int might match the return type of a GCC
9659    builtin and then its argument prototype would still apply.  */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 char dlopen ();
9664 int
9665 main ()
9666 {
9667 return dlopen ();
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679   (eval "$ac_link") 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } &&
9686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9687   { (case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_try") 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (case "(($ac_try" in
9698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699   *) ac_try_echo=$ac_try;;
9700 esac
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702   (eval "$ac_try") 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; }; then
9706   ac_cv_lib_dl_dlopen=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711         ac_cv_lib_dl_dlopen=no
9712 fi
9713
9714 rm -f core conftest.err conftest.$ac_objext \
9715       conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9717 fi
9718 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9719 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9720 if test $ac_cv_lib_dl_dlopen = yes; then
9721
9722 cat >>confdefs.h <<\_ACEOF
9723 #define HAVE_LIBDL 1
9724 _ACEOF
9725
9726                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9727 else
9728   cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734 #if HAVE_DLFCN_H
9735 #  include <dlfcn.h>
9736 #endif
9737
9738 int
9739 main ()
9740 {
9741 dlopen(0, 0);
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9748 case "(($ac_try" in
9749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750   *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753   (eval "$ac_link") 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761   { (case "(($ac_try" in
9762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763   *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766   (eval "$ac_try") 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_try") 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; }; then
9780
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_LIBDL 1
9783 _ACEOF
9784  libltdl_cv_func_dlopen="yes"
9785 else
9786   echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9790 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-lsvld  $LIBS"
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 /* Override any GCC internal prototype to avoid an error.
9804    Use char because int might match the return type of a GCC
9805    builtin and then its argument prototype would still apply.  */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 char dlopen ();
9810 int
9811 main ()
9812 {
9813 return dlopen ();
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_link") 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833   { (case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_try") 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; } &&
9842          { ac_try='test -s conftest$ac_exeext'
9843   { (case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848   (eval "$ac_try") 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_cv_lib_svld_dlopen=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857         ac_cv_lib_svld_dlopen=no
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext \
9861       conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9863 fi
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9865 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9866 if test $ac_cv_lib_svld_dlopen = yes; then
9867
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_LIBDL 1
9870 _ACEOF
9871
9872                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9873 else
9874   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9875 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9876 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-ldld  $LIBS"
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 /* Override any GCC internal prototype to avoid an error.
9889    Use char because int might match the return type of a GCC
9890    builtin and then its argument prototype would still apply.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char dld_link ();
9895 int
9896 main ()
9897 {
9898 return dld_link ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910   (eval "$ac_link") 2>conftest.er1
9911   ac_status=$?
9912   grep -v '^ *+' conftest.er1 >conftest.err
9913   rm -f conftest.er1
9914   cat conftest.err >&5
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } &&
9917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918   { (case "(($ac_try" in
9919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920   *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923   (eval "$ac_try") 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_try") 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_lib_dld_dld_link=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         ac_cv_lib_dld_dld_link=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext \
9946       conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9948 fi
9949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9951 if test $ac_cv_lib_dld_dld_link = yes; then
9952
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_DLD 1
9955 _ACEOF
9956
9957                 LIBADD_DL="$LIBADD_DL -ldld"
9958 else
9959   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9960 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9961 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9972 #define _dyld_func_lookup innocuous__dyld_func_lookup
9973
9974 /* System header to define __stub macros and hopefully few prototypes,
9975     which can conflict with char _dyld_func_lookup (); below.
9976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977     <limits.h> exists even on freestanding compilers.  */
9978
9979 #ifdef __STDC__
9980 # include <limits.h>
9981 #else
9982 # include <assert.h>
9983 #endif
9984
9985 #undef _dyld_func_lookup
9986
9987 /* Override any GCC internal prototype to avoid an error.
9988    Use char because int might match the return type of a GCC
9989    builtin and then its argument prototype would still apply.  */
9990 #ifdef __cplusplus
9991 extern "C"
9992 #endif
9993 char _dyld_func_lookup ();
9994 /* The GNU C library defines this for functions which it implements
9995     to always fail with ENOSYS.  Some functions are actually named
9996     something starting with __ and the normal name is an alias.  */
9997 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9998 choke me
9999 #endif
10000
10001 int
10002 main ()
10003 {
10004 return _dyld_func_lookup ();
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013   *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016   (eval "$ac_link") 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024   { (case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029   (eval "$ac_try") 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; } &&
10033          { ac_try='test -s conftest$ac_exeext'
10034   { (case "(($ac_try" in
10035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036   *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039   (eval "$ac_try") 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; }; then
10043   ac_cv_func__dyld_func_lookup=yes
10044 else
10045   echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048         ac_cv_func__dyld_func_lookup=no
10049 fi
10050
10051 rm -f core conftest.err conftest.$ac_objext \
10052       conftest$ac_exeext conftest.$ac_ext
10053 fi
10054 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10055 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10056 if test $ac_cv_func__dyld_func_lookup = yes; then
10057
10058 cat >>confdefs.h <<\_ACEOF
10059 #define HAVE_DYLD 1
10060 _ACEOF
10061
10062 fi
10063
10064
10065 fi
10066
10067
10068 fi
10069
10070
10071 fi
10072
10073 rm -f core conftest.err conftest.$ac_objext \
10074       conftest$ac_exeext conftest.$ac_ext
10075
10076 fi
10077
10078
10079 fi
10080
10081
10082 fi
10083
10084
10085 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10086 then
10087   lt_save_LIBS="$LIBS"
10088   LIBS="$LIBS $LIBADD_DL"
10089
10090 for ac_func in dlerror
10091 do
10092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10106 #define $ac_func innocuous_$ac_func
10107
10108 /* System header to define __stub macros and hopefully few prototypes,
10109     which can conflict with char $ac_func (); below.
10110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111     <limits.h> exists even on freestanding compilers.  */
10112
10113 #ifdef __STDC__
10114 # include <limits.h>
10115 #else
10116 # include <assert.h>
10117 #endif
10118
10119 #undef $ac_func
10120
10121 /* Override any GCC internal prototype to avoid an error.
10122    Use char because int might match the return type of a GCC
10123    builtin and then its argument prototype would still apply.  */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char $ac_func ();
10128 /* The GNU C library defines this for functions which it implements
10129     to always fail with ENOSYS.  Some functions are actually named
10130     something starting with __ and the normal name is an alias.  */
10131 #if defined __stub_$ac_func || defined __stub___$ac_func
10132 choke me
10133 #endif
10134
10135 int
10136 main ()
10137 {
10138 return $ac_func ();
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147   *) ac_try_echo=$ac_try;;
10148 esac
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150   (eval "$ac_link") 2>conftest.er1
10151   ac_status=$?
10152   grep -v '^ *+' conftest.er1 >conftest.err
10153   rm -f conftest.er1
10154   cat conftest.err >&5
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158   { (case "(($ac_try" in
10159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160   *) ac_try_echo=$ac_try;;
10161 esac
10162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163   (eval "$ac_try") 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; } &&
10167          { ac_try='test -s conftest$ac_exeext'
10168   { (case "(($ac_try" in
10169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170   *) ac_try_echo=$ac_try;;
10171 esac
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173   (eval "$ac_try") 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }; }; then
10177   eval "$as_ac_var=yes"
10178 else
10179   echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182         eval "$as_ac_var=no"
10183 fi
10184
10185 rm -f core conftest.err conftest.$ac_objext \
10186       conftest$ac_exeext conftest.$ac_ext
10187 fi
10188 ac_res=`eval echo '${'$as_ac_var'}'`
10189                { echo "$as_me:$LINENO: result: $ac_res" >&5
10190 echo "${ECHO_T}$ac_res" >&6; }
10191 if test `eval echo '${'$as_ac_var'}'` = yes; then
10192   cat >>confdefs.h <<_ACEOF
10193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194 _ACEOF
10195
10196 fi
10197 done
10198
10199   LIBS="$lt_save_LIBS"
10200 fi
10201 ac_ext=c
10202 ac_cpp='$CPP $CPPFLAGS'
10203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10206
10207
10208
10209 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10210 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10211 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   ac_cv_sys_symbol_underscore=no
10215   cat > conftest.$ac_ext <<EOF
10216 void nm_test_func(){}
10217 int main(){nm_test_func;return 0;}
10218 EOF
10219   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220   (eval $ac_compile) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; then
10224     # Now try to grab the symbols.
10225     ac_nlist=conftest.nm
10226     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10227   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } && test -s "$ac_nlist"; then
10231       # See whether the symbols have a leading underscore.
10232       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10233         ac_cv_sys_symbol_underscore=yes
10234       else
10235         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10236           :
10237         else
10238           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10239         fi
10240       fi
10241     else
10242       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10243     fi
10244   else
10245     echo "configure: failed program was:" >&5
10246     cat conftest.c >&5
10247   fi
10248   rm -rf conftest*
10249
10250 fi
10251 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10252 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10253
10254
10255 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10256   if test x"$libltdl_cv_func_dlopen" = xyes ||
10257      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10258         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10259 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10260 if test "${libltdl_cv_need_uscore+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   libltdl_cv_need_uscore=unknown
10264           save_LIBS="$LIBS"
10265           LIBS="$LIBS $LIBADD_DL"
10266           if test "$cross_compiling" = yes; then :
10267   libltdl_cv_need_uscore=cross
10268 else
10269   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10270   lt_status=$lt_dlunknown
10271   cat > conftest.$ac_ext <<EOF
10272 #line 10272 "configure"
10273 #include "confdefs.h"
10274
10275 #if HAVE_DLFCN_H
10276 #include <dlfcn.h>
10277 #endif
10278
10279 #include <stdio.h>
10280
10281 #ifdef RTLD_GLOBAL
10282 #  define LT_DLGLOBAL           RTLD_GLOBAL
10283 #else
10284 #  ifdef DL_GLOBAL
10285 #    define LT_DLGLOBAL         DL_GLOBAL
10286 #  else
10287 #    define LT_DLGLOBAL         0
10288 #  endif
10289 #endif
10290
10291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10292    find out it does not work in some platform. */
10293 #ifndef LT_DLLAZY_OR_NOW
10294 #  ifdef RTLD_LAZY
10295 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10296 #  else
10297 #    ifdef DL_LAZY
10298 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10299 #    else
10300 #      ifdef RTLD_NOW
10301 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10302 #      else
10303 #        ifdef DL_NOW
10304 #          define LT_DLLAZY_OR_NOW      DL_NOW
10305 #        else
10306 #          define LT_DLLAZY_OR_NOW      0
10307 #        endif
10308 #      endif
10309 #    endif
10310 #  endif
10311 #endif
10312
10313 #ifdef __cplusplus
10314 extern "C" void exit (int);
10315 #endif
10316
10317 void fnord() { int i=42;}
10318 int main ()
10319 {
10320   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10321   int status = $lt_dlunknown;
10322
10323   if (self)
10324     {
10325       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10326       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10327       /* dlclose (self); */
10328     }
10329   else
10330     puts (dlerror ());
10331
10332     exit (status);
10333 }
10334 EOF
10335   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336   (eval $ac_link) 2>&5
10337   ac_status=$?
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10340     (./conftest; exit; ) >&5 2>/dev/null
10341     lt_status=$?
10342     case x$lt_status in
10343       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10344       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10345       x$lt_dlunknown|x*)  ;;
10346     esac
10347   else :
10348     # compilation failed
10349
10350   fi
10351 fi
10352 rm -fr conftest*
10353
10354           LIBS="$save_LIBS"
10355
10356 fi
10357 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10358 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10359   fi
10360 fi
10361
10362 if test x"$libltdl_cv_need_uscore" = xyes; then
10363
10364 cat >>confdefs.h <<\_ACEOF
10365 #define NEED_USCORE 1
10366 _ACEOF
10367
10368 fi
10369
10370
10371 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10372 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10373 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376   # PORTME does your system automatically load deplibs for dlopen?
10377   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10378   # For now, we just catch OSes we know something about -- in the
10379   # future, we'll try test this programmatically.
10380   libltdl_cv_sys_dlopen_deplibs=unknown
10381   case "$host_os" in
10382   aix3*|aix4.1.*|aix4.2.*)
10383     # Unknown whether this is true for these versions of AIX, but
10384     # we want this `case' here to explicitly catch those versions.
10385     libltdl_cv_sys_dlopen_deplibs=unknown
10386     ;;
10387   aix[45]*)
10388     libltdl_cv_sys_dlopen_deplibs=yes
10389     ;;
10390   darwin*)
10391     # Assuming the user has installed a libdl from somewhere, this is true
10392     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10393     libltdl_cv_sys_dlopen_deplibs=yes
10394     ;;
10395   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10396     # GNU and its variants, using gnu ld.so (Glibc)
10397     libltdl_cv_sys_dlopen_deplibs=yes
10398     ;;
10399   hpux10*|hpux11*)
10400     libltdl_cv_sys_dlopen_deplibs=yes
10401     ;;
10402   interix*)
10403     libltdl_cv_sys_dlopen_deplibs=yes
10404     ;;
10405   irix[12345]*|irix6.[01]*)
10406     # Catch all versions of IRIX before 6.2, and indicate that we don't
10407     # know how it worked for any of those versions.
10408     libltdl_cv_sys_dlopen_deplibs=unknown
10409     ;;
10410   irix*)
10411     # The case above catches anything before 6.2, and it's known that
10412     # at 6.2 and later dlopen does load deplibs.
10413     libltdl_cv_sys_dlopen_deplibs=yes
10414     ;;
10415   netbsd*)
10416     libltdl_cv_sys_dlopen_deplibs=yes
10417     ;;
10418   openbsd*)
10419     libltdl_cv_sys_dlopen_deplibs=yes
10420     ;;
10421   osf[1234]*)
10422     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10423     # it did *not* use an RPATH in a shared library to find objects the
10424     # library depends on, so we explicitly say `no'.
10425     libltdl_cv_sys_dlopen_deplibs=no
10426     ;;
10427   osf5.0|osf5.0a|osf5.1)
10428     # dlopen *does* load deplibs and with the right loader patch applied
10429     # it even uses RPATH in a shared library to search for shared objects
10430     # that the library depends on, but there's no easy way to know if that
10431     # patch is installed.  Since this is the case, all we can really
10432     # say is unknown -- it depends on the patch being installed.  If
10433     # it is, this changes to `yes'.  Without it, it would be `no'.
10434     libltdl_cv_sys_dlopen_deplibs=unknown
10435     ;;
10436   osf*)
10437     # the two cases above should catch all versions of osf <= 5.1.  Read
10438     # the comments above for what we know about them.
10439     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10440     # is used to find them so we can finally say `yes'.
10441     libltdl_cv_sys_dlopen_deplibs=yes
10442     ;;
10443   solaris*)
10444     libltdl_cv_sys_dlopen_deplibs=yes
10445     ;;
10446   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10447     libltdl_cv_sys_dlopen_deplibs=yes
10448     ;;
10449   esac
10450
10451 fi
10452 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10453 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10454 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10455
10456 cat >>confdefs.h <<\_ACEOF
10457 #define LTDL_DLOPEN_DEPLIBS 1
10458 _ACEOF
10459
10460 fi
10461
10462
10463 for ac_header in argz.h
10464 do
10465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10467   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470   echo $ECHO_N "(cached) $ECHO_C" >&6
10471 fi
10472 ac_res=`eval echo '${'$as_ac_Header'}'`
10473                { echo "$as_me:$LINENO: result: $ac_res" >&5
10474 echo "${ECHO_T}$ac_res" >&6; }
10475 else
10476   # Is the header compilable?
10477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h.  */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h.  */
10485 $ac_includes_default
10486 #include <$ac_header>
10487 _ACEOF
10488 rm -f conftest.$ac_objext
10489 if { (ac_try="$ac_compile"
10490 case "(($ac_try" in
10491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492   *) ac_try_echo=$ac_try;;
10493 esac
10494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495   (eval "$ac_compile") 2>conftest.er1
10496   ac_status=$?
10497   grep -v '^ *+' conftest.er1 >conftest.err
10498   rm -f conftest.er1
10499   cat conftest.err >&5
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); } &&
10502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10503   { (case "(($ac_try" in
10504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505   *) ac_try_echo=$ac_try;;
10506 esac
10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508   (eval "$ac_try") 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; } &&
10512          { ac_try='test -s conftest.$ac_objext'
10513   { (case "(($ac_try" in
10514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515   *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518   (eval "$ac_try") 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; }; then
10522   ac_header_compiler=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527         ac_header_compiler=no
10528 fi
10529
10530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10532 echo "${ECHO_T}$ac_header_compiler" >&6; }
10533
10534 # Is the header present?
10535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h.  */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h.  */
10543 #include <$ac_header>
10544 _ACEOF
10545 if { (ac_try="$ac_cpp conftest.$ac_ext"
10546 case "(($ac_try" in
10547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548   *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10552   ac_status=$?
10553   grep -v '^ *+' conftest.er1 >conftest.err
10554   rm -f conftest.er1
10555   cat conftest.err >&5
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); } >/dev/null; then
10558   if test -s conftest.err; then
10559     ac_cpp_err=$ac_c_preproc_warn_flag
10560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10561   else
10562     ac_cpp_err=
10563   fi
10564 else
10565   ac_cpp_err=yes
10566 fi
10567 if test -z "$ac_cpp_err"; then
10568   ac_header_preproc=yes
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573   ac_header_preproc=no
10574 fi
10575
10576 rm -f conftest.err conftest.$ac_ext
10577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578 echo "${ECHO_T}$ac_header_preproc" >&6; }
10579
10580 # So?  What about this header?
10581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582   yes:no: )
10583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587     ac_header_preproc=yes
10588     ;;
10589   no:yes:* )
10590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602     ( cat <<\_ASBOX
10603 ## ------------------------------ ##
10604 ## Report this to bugs@yourdomain ##
10605 ## ------------------------------ ##
10606 _ASBOX
10607      ) | sed "s/^/$as_me: WARNING:     /" >&2
10608     ;;
10609 esac
10610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615   eval "$as_ac_Header=\$ac_header_preproc"
10616 fi
10617 ac_res=`eval echo '${'$as_ac_Header'}'`
10618                { echo "$as_me:$LINENO: result: $ac_res" >&5
10619 echo "${ECHO_T}$ac_res" >&6; }
10620
10621 fi
10622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623   cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10625 _ACEOF
10626
10627 fi
10628
10629 done
10630
10631
10632 { echo "$as_me:$LINENO: checking for error_t" >&5
10633 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10634 if test "${ac_cv_type_error_t+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 #if HAVE_ARGZ_H
10644 #  include <argz.h>
10645 #endif
10646
10647 typedef error_t ac__type_new_;
10648 int
10649 main ()
10650 {
10651 if ((ac__type_new_ *) 0)
10652   return 0;
10653 if (sizeof (ac__type_new_))
10654   return 0;
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext
10660 if { (ac_try="$ac_compile"
10661 case "(($ac_try" in
10662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663   *) ac_try_echo=$ac_try;;
10664 esac
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666   (eval "$ac_compile") 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674   { (case "(($ac_try" in
10675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676   *) ac_try_echo=$ac_try;;
10677 esac
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679   (eval "$ac_try") 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; } &&
10683          { ac_try='test -s conftest.$ac_objext'
10684   { (case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_try") 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); }; }; then
10693   ac_cv_type_error_t=yes
10694 else
10695   echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698         ac_cv_type_error_t=no
10699 fi
10700
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 fi
10703 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10704 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10705 if test $ac_cv_type_error_t = yes; then
10706
10707 cat >>confdefs.h <<_ACEOF
10708 #define HAVE_ERROR_T 1
10709 _ACEOF
10710
10711
10712 else
10713
10714 cat >>confdefs.h <<\_ACEOF
10715 #define error_t int
10716 _ACEOF
10717
10718 fi
10719
10720
10721
10722
10723
10724
10725
10726 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10727 do
10728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10742 #define $ac_func innocuous_$ac_func
10743
10744 /* System header to define __stub macros and hopefully few prototypes,
10745     which can conflict with char $ac_func (); below.
10746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747     <limits.h> exists even on freestanding compilers.  */
10748
10749 #ifdef __STDC__
10750 # include <limits.h>
10751 #else
10752 # include <assert.h>
10753 #endif
10754
10755 #undef $ac_func
10756
10757 /* Override any GCC internal prototype to avoid an error.
10758    Use char because int might match the return type of a GCC
10759    builtin and then its argument prototype would still apply.  */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 char $ac_func ();
10764 /* The GNU C library defines this for functions which it implements
10765     to always fail with ENOSYS.  Some functions are actually named
10766     something starting with __ and the normal name is an alias.  */
10767 #if defined __stub_$ac_func || defined __stub___$ac_func
10768 choke me
10769 #endif
10770
10771 int
10772 main ()
10773 {
10774 return $ac_func ();
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_link") 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } &&
10793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794   { (case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799   (eval "$ac_try") 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; } &&
10803          { ac_try='test -s conftest$ac_exeext'
10804   { (case "(($ac_try" in
10805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806   *) ac_try_echo=$ac_try;;
10807 esac
10808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809   (eval "$ac_try") 2>&5
10810   ac_status=$?
10811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812   (exit $ac_status); }; }; then
10813   eval "$as_ac_var=yes"
10814 else
10815   echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10817
10818         eval "$as_ac_var=no"
10819 fi
10820
10821 rm -f core conftest.err conftest.$ac_objext \
10822       conftest$ac_exeext conftest.$ac_ext
10823 fi
10824 ac_res=`eval echo '${'$as_ac_var'}'`
10825                { echo "$as_me:$LINENO: result: $ac_res" >&5
10826 echo "${ECHO_T}$ac_res" >&6; }
10827 if test `eval echo '${'$as_ac_var'}'` = yes; then
10828   cat >>confdefs.h <<_ACEOF
10829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10830 _ACEOF
10831
10832 fi
10833 done
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10863                   stdio.h unistd.h
10864 do
10865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10867   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 fi
10872 ac_res=`eval echo '${'$as_ac_Header'}'`
10873                { echo "$as_me:$LINENO: result: $ac_res" >&5
10874 echo "${ECHO_T}$ac_res" >&6; }
10875 else
10876   # Is the header compilable?
10877 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 $ac_includes_default
10886 #include <$ac_header>
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_compile") 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } &&
10902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903   { (case "(($ac_try" in
10904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905   *) ac_try_echo=$ac_try;;
10906 esac
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908   (eval "$ac_try") 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; } &&
10912          { ac_try='test -s conftest.$ac_objext'
10913   { (case "(($ac_try" in
10914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915   *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918   (eval "$ac_try") 2>&5
10919   ac_status=$?
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); }; }; then
10922   ac_header_compiler=yes
10923 else
10924   echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927         ac_header_compiler=no
10928 fi
10929
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10932 echo "${ECHO_T}$ac_header_compiler" >&6; }
10933
10934 # Is the header present?
10935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h.  */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h.  */
10943 #include <$ac_header>
10944 _ACEOF
10945 if { (ac_try="$ac_cpp conftest.$ac_ext"
10946 case "(($ac_try" in
10947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948   *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10952   ac_status=$?
10953   grep -v '^ *+' conftest.er1 >conftest.err
10954   rm -f conftest.er1
10955   cat conftest.err >&5
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); } >/dev/null; then
10958   if test -s conftest.err; then
10959     ac_cpp_err=$ac_c_preproc_warn_flag
10960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10961   else
10962     ac_cpp_err=
10963   fi
10964 else
10965   ac_cpp_err=yes
10966 fi
10967 if test -z "$ac_cpp_err"; then
10968   ac_header_preproc=yes
10969 else
10970   echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10972
10973   ac_header_preproc=no
10974 fi
10975
10976 rm -f conftest.err conftest.$ac_ext
10977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10978 echo "${ECHO_T}$ac_header_preproc" >&6; }
10979
10980 # So?  What about this header?
10981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10982   yes:no: )
10983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10987     ac_header_preproc=yes
10988     ;;
10989   no:yes:* )
10990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11002     ( cat <<\_ASBOX
11003 ## ------------------------------ ##
11004 ## Report this to bugs@yourdomain ##
11005 ## ------------------------------ ##
11006 _ASBOX
11007      ) | sed "s/^/$as_me: WARNING:     /" >&2
11008     ;;
11009 esac
11010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013   echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015   eval "$as_ac_Header=\$ac_header_preproc"
11016 fi
11017 ac_res=`eval echo '${'$as_ac_Header'}'`
11018                { echo "$as_me:$LINENO: result: $ac_res" >&5
11019 echo "${ECHO_T}$ac_res" >&6; }
11020
11021 fi
11022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11023   cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11025 _ACEOF
11026
11027 fi
11028
11029 done
11030
11031
11032
11033
11034
11035 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11036 do
11037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042   echo $ECHO_N "(cached) $ECHO_C" >&6
11043 fi
11044 ac_res=`eval echo '${'$as_ac_Header'}'`
11045                { echo "$as_me:$LINENO: result: $ac_res" >&5
11046 echo "${ECHO_T}$ac_res" >&6; }
11047 else
11048   # Is the header compilable?
11049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057 $ac_includes_default
11058 #include <$ac_header>
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (ac_try="$ac_compile"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_compile") 2>conftest.er1
11068   ac_status=$?
11069   grep -v '^ *+' conftest.er1 >conftest.err
11070   rm -f conftest.er1
11071   cat conftest.err >&5
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } &&
11074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11075   { (case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080   (eval "$ac_try") 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; } &&
11084          { ac_try='test -s conftest.$ac_objext'
11085   { (case "(($ac_try" in
11086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087   *) ac_try_echo=$ac_try;;
11088 esac
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090   (eval "$ac_try") 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   ac_header_compiler=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099         ac_header_compiler=no
11100 fi
11101
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6; }
11105
11106 # Is the header present?
11107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h.  */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h.  */
11115 #include <$ac_header>
11116 _ACEOF
11117 if { (ac_try="$ac_cpp conftest.$ac_ext"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } >/dev/null; then
11130   if test -s conftest.err; then
11131     ac_cpp_err=$ac_c_preproc_warn_flag
11132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11133   else
11134     ac_cpp_err=
11135   fi
11136 else
11137   ac_cpp_err=yes
11138 fi
11139 if test -z "$ac_cpp_err"; then
11140   ac_header_preproc=yes
11141 else
11142   echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145   ac_header_preproc=no
11146 fi
11147
11148 rm -f conftest.err conftest.$ac_ext
11149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150 echo "${ECHO_T}$ac_header_preproc" >&6; }
11151
11152 # So?  What about this header?
11153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11154   yes:no: )
11155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11159     ac_header_preproc=yes
11160     ;;
11161   no:yes:* )
11162     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11164     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11165 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11166     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11168     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11169 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11174     ( cat <<\_ASBOX
11175 ## ------------------------------ ##
11176 ## Report this to bugs@yourdomain ##
11177 ## ------------------------------ ##
11178 _ASBOX
11179      ) | sed "s/^/$as_me: WARNING:     /" >&2
11180     ;;
11181 esac
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185   echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187   eval "$as_ac_Header=\$ac_header_preproc"
11188 fi
11189 ac_res=`eval echo '${'$as_ac_Header'}'`
11190                { echo "$as_me:$LINENO: result: $ac_res" >&5
11191 echo "${ECHO_T}$ac_res" >&6; }
11192
11193 fi
11194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195   cat >>confdefs.h <<_ACEOF
11196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197 _ACEOF
11198
11199 fi
11200
11201 done
11202
11203
11204
11205 for ac_header in string.h strings.h
11206 do
11207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212   echo $ECHO_N "(cached) $ECHO_C" >&6
11213 fi
11214 ac_res=`eval echo '${'$as_ac_Header'}'`
11215                { echo "$as_me:$LINENO: result: $ac_res" >&5
11216 echo "${ECHO_T}$ac_res" >&6; }
11217 else
11218   # Is the header compilable?
11219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 $ac_includes_default
11228 #include <$ac_header>
11229 _ACEOF
11230 rm -f conftest.$ac_objext
11231 if { (ac_try="$ac_compile"
11232 case "(($ac_try" in
11233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234   *) ac_try_echo=$ac_try;;
11235 esac
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237   (eval "$ac_compile") 2>conftest.er1
11238   ac_status=$?
11239   grep -v '^ *+' conftest.er1 >conftest.err
11240   rm -f conftest.er1
11241   cat conftest.err >&5
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); } &&
11244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245   { (case "(($ac_try" in
11246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247   *) ac_try_echo=$ac_try;;
11248 esac
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250   (eval "$ac_try") 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; } &&
11254          { ac_try='test -s conftest.$ac_objext'
11255   { (case "(($ac_try" in
11256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257   *) ac_try_echo=$ac_try;;
11258 esac
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260   (eval "$ac_try") 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; }; then
11264   ac_header_compiler=yes
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269         ac_header_compiler=no
11270 fi
11271
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11274 echo "${ECHO_T}$ac_header_compiler" >&6; }
11275
11276 # Is the header present?
11277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 #include <$ac_header>
11286 _ACEOF
11287 if { (ac_try="$ac_cpp conftest.$ac_ext"
11288 case "(($ac_try" in
11289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290   *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11294   ac_status=$?
11295   grep -v '^ *+' conftest.er1 >conftest.err
11296   rm -f conftest.er1
11297   cat conftest.err >&5
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); } >/dev/null; then
11300   if test -s conftest.err; then
11301     ac_cpp_err=$ac_c_preproc_warn_flag
11302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11303   else
11304     ac_cpp_err=
11305   fi
11306 else
11307   ac_cpp_err=yes
11308 fi
11309 if test -z "$ac_cpp_err"; then
11310   ac_header_preproc=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315   ac_header_preproc=no
11316 fi
11317
11318 rm -f conftest.err conftest.$ac_ext
11319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11320 echo "${ECHO_T}$ac_header_preproc" >&6; }
11321
11322 # So?  What about this header?
11323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324   yes:no: )
11325     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11329     ac_header_preproc=yes
11330     ;;
11331   no:yes:* )
11332     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11334     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11335 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11336     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11338     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11339 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11344     ( cat <<\_ASBOX
11345 ## ------------------------------ ##
11346 ## Report this to bugs@yourdomain ##
11347 ## ------------------------------ ##
11348 _ASBOX
11349      ) | sed "s/^/$as_me: WARNING:     /" >&2
11350     ;;
11351 esac
11352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355   echo $ECHO_N "(cached) $ECHO_C" >&6
11356 else
11357   eval "$as_ac_Header=\$ac_header_preproc"
11358 fi
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360                { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362
11363 fi
11364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365   cat >>confdefs.h <<_ACEOF
11366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11367 _ACEOF
11368  break
11369 fi
11370
11371 done
11372
11373
11374
11375
11376 for ac_func in strchr index
11377 do
11378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384   cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11392 #define $ac_func innocuous_$ac_func
11393
11394 /* System header to define __stub macros and hopefully few prototypes,
11395     which can conflict with char $ac_func (); below.
11396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397     <limits.h> exists even on freestanding compilers.  */
11398
11399 #ifdef __STDC__
11400 # include <limits.h>
11401 #else
11402 # include <assert.h>
11403 #endif
11404
11405 #undef $ac_func
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408    Use char because int might match the return type of a GCC
11409    builtin and then its argument prototype would still apply.  */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char $ac_func ();
11414 /* The GNU C library defines this for functions which it implements
11415     to always fail with ENOSYS.  Some functions are actually named
11416     something starting with __ and the normal name is an alias.  */
11417 #if defined __stub_$ac_func || defined __stub___$ac_func
11418 choke me
11419 #endif
11420
11421 int
11422 main ()
11423 {
11424 return $ac_func ();
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (ac_try="$ac_link"
11431 case "(($ac_try" in
11432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433   *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436   (eval "$ac_link") 2>conftest.er1
11437   ac_status=$?
11438   grep -v '^ *+' conftest.er1 >conftest.err
11439   rm -f conftest.er1
11440   cat conftest.err >&5
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); } &&
11443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11444   { (case "(($ac_try" in
11445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446   *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449   (eval "$ac_try") 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; } &&
11453          { ac_try='test -s conftest$ac_exeext'
11454   { (case "(($ac_try" in
11455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456   *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459   (eval "$ac_try") 2>&5
11460   ac_status=$?
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); }; }; then
11463   eval "$as_ac_var=yes"
11464 else
11465   echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11467
11468         eval "$as_ac_var=no"
11469 fi
11470
11471 rm -f core conftest.err conftest.$ac_objext \
11472       conftest$ac_exeext conftest.$ac_ext
11473 fi
11474 ac_res=`eval echo '${'$as_ac_var'}'`
11475                { echo "$as_me:$LINENO: result: $ac_res" >&5
11476 echo "${ECHO_T}$ac_res" >&6; }
11477 if test `eval echo '${'$as_ac_var'}'` = yes; then
11478   cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480 _ACEOF
11481  break
11482 fi
11483 done
11484
11485
11486
11487 for ac_func in strrchr rindex
11488 do
11489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495   cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11503 #define $ac_func innocuous_$ac_func
11504
11505 /* System header to define __stub macros and hopefully few prototypes,
11506     which can conflict with char $ac_func (); below.
11507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508     <limits.h> exists even on freestanding compilers.  */
11509
11510 #ifdef __STDC__
11511 # include <limits.h>
11512 #else
11513 # include <assert.h>
11514 #endif
11515
11516 #undef $ac_func
11517
11518 /* Override any GCC internal prototype to avoid an error.
11519    Use char because int might match the return type of a GCC
11520    builtin and then its argument prototype would still apply.  */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char $ac_func ();
11525 /* The GNU C library defines this for functions which it implements
11526     to always fail with ENOSYS.  Some functions are actually named
11527     something starting with __ and the normal name is an alias.  */
11528 #if defined __stub_$ac_func || defined __stub___$ac_func
11529 choke me
11530 #endif
11531
11532 int
11533 main ()
11534 {
11535 return $ac_func ();
11536   ;
11537   return 0;
11538 }
11539 _ACEOF
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (ac_try="$ac_link"
11542 case "(($ac_try" in
11543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544   *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547   (eval "$ac_link") 2>conftest.er1
11548   ac_status=$?
11549   grep -v '^ *+' conftest.er1 >conftest.err
11550   rm -f conftest.er1
11551   cat conftest.err >&5
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } &&
11554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11555   { (case "(($ac_try" in
11556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557   *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560   (eval "$ac_try") 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); }; } &&
11564          { ac_try='test -s conftest$ac_exeext'
11565   { (case "(($ac_try" in
11566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567   *) ac_try_echo=$ac_try;;
11568 esac
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570   (eval "$ac_try") 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; }; then
11574   eval "$as_ac_var=yes"
11575 else
11576   echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11578
11579         eval "$as_ac_var=no"
11580 fi
11581
11582 rm -f core conftest.err conftest.$ac_objext \
11583       conftest$ac_exeext conftest.$ac_ext
11584 fi
11585 ac_res=`eval echo '${'$as_ac_var'}'`
11586                { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11588 if test `eval echo '${'$as_ac_var'}'` = yes; then
11589   cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591 _ACEOF
11592  break
11593 fi
11594 done
11595
11596
11597
11598 for ac_func in memcpy bcopy
11599 do
11600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11604   echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606   cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11614 #define $ac_func innocuous_$ac_func
11615
11616 /* System header to define __stub macros and hopefully few prototypes,
11617     which can conflict with char $ac_func (); below.
11618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619     <limits.h> exists even on freestanding compilers.  */
11620
11621 #ifdef __STDC__
11622 # include <limits.h>
11623 #else
11624 # include <assert.h>
11625 #endif
11626
11627 #undef $ac_func
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char $ac_func ();
11636 /* The GNU C library defines this for functions which it implements
11637     to always fail with ENOSYS.  Some functions are actually named
11638     something starting with __ and the normal name is an alias.  */
11639 #if defined __stub_$ac_func || defined __stub___$ac_func
11640 choke me
11641 #endif
11642
11643 int
11644 main ()
11645 {
11646 return $ac_func ();
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (ac_try="$ac_link"
11653 case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_link") 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } &&
11665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666   { (case "(($ac_try" in
11667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668   *) ac_try_echo=$ac_try;;
11669 esac
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671   (eval "$ac_try") 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); }; } &&
11675          { ac_try='test -s conftest$ac_exeext'
11676   { (case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681   (eval "$ac_try") 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   eval "$as_ac_var=yes"
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690         eval "$as_ac_var=no"
11691 fi
11692
11693 rm -f core conftest.err conftest.$ac_objext \
11694       conftest$ac_exeext conftest.$ac_ext
11695 fi
11696 ac_res=`eval echo '${'$as_ac_var'}'`
11697                { echo "$as_me:$LINENO: result: $ac_res" >&5
11698 echo "${ECHO_T}$ac_res" >&6; }
11699 if test `eval echo '${'$as_ac_var'}'` = yes; then
11700   cat >>confdefs.h <<_ACEOF
11701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702 _ACEOF
11703  break
11704 fi
11705 done
11706
11707
11708
11709 for ac_func in memmove strcmp
11710 do
11711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11715   echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717   cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11725 #define $ac_func innocuous_$ac_func
11726
11727 /* System header to define __stub macros and hopefully few prototypes,
11728     which can conflict with char $ac_func (); below.
11729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730     <limits.h> exists even on freestanding compilers.  */
11731
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11737
11738 #undef $ac_func
11739
11740 /* Override any GCC internal prototype to avoid an error.
11741    Use char because int might match the return type of a GCC
11742    builtin and then its argument prototype would still apply.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char $ac_func ();
11747 /* The GNU C library defines this for functions which it implements
11748     to always fail with ENOSYS.  Some functions are actually named
11749     something starting with __ and the normal name is an alias.  */
11750 #if defined __stub_$ac_func || defined __stub___$ac_func
11751 choke me
11752 #endif
11753
11754 int
11755 main ()
11756 {
11757 return $ac_func ();
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766   *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769   (eval "$ac_link") 2>conftest.er1
11770   ac_status=$?
11771   grep -v '^ *+' conftest.er1 >conftest.err
11772   rm -f conftest.er1
11773   cat conftest.err >&5
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); } &&
11776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777   { (case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_try") 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; } &&
11786          { ac_try='test -s conftest$ac_exeext'
11787   { (case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_try") 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   eval "$as_ac_var=yes"
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801         eval "$as_ac_var=no"
11802 fi
11803
11804 rm -f core conftest.err conftest.$ac_objext \
11805       conftest$ac_exeext conftest.$ac_ext
11806 fi
11807 ac_res=`eval echo '${'$as_ac_var'}'`
11808                { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 if test `eval echo '${'$as_ac_var'}'` = yes; then
11811   cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813 _ACEOF
11814
11815 fi
11816 done
11817
11818
11819
11820
11821 for ac_func in closedir opendir readdir
11822 do
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11837 #define $ac_func innocuous_$ac_func
11838
11839 /* System header to define __stub macros and hopefully few prototypes,
11840     which can conflict with char $ac_func (); below.
11841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842     <limits.h> exists even on freestanding compilers.  */
11843
11844 #ifdef __STDC__
11845 # include <limits.h>
11846 #else
11847 # include <assert.h>
11848 #endif
11849
11850 #undef $ac_func
11851
11852 /* Override any GCC internal prototype to avoid an error.
11853    Use char because int might match the return type of a GCC
11854    builtin and then its argument prototype would still apply.  */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 char $ac_func ();
11859 /* The GNU C library defines this for functions which it implements
11860     to always fail with ENOSYS.  Some functions are actually named
11861     something starting with __ and the normal name is an alias.  */
11862 #if defined __stub_$ac_func || defined __stub___$ac_func
11863 choke me
11864 #endif
11865
11866 int
11867 main ()
11868 {
11869 return $ac_func ();
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_link") 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } &&
11888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889   { (case "(($ac_try" in
11890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891   *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894   (eval "$ac_try") 2>&5
11895   ac_status=$?
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); }; } &&
11898          { ac_try='test -s conftest$ac_exeext'
11899   { (case "(($ac_try" in
11900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901   *) ac_try_echo=$ac_try;;
11902 esac
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904   (eval "$ac_try") 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; }; then
11908   eval "$as_ac_var=yes"
11909 else
11910   echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913         eval "$as_ac_var=no"
11914 fi
11915
11916 rm -f core conftest.err conftest.$ac_objext \
11917       conftest$ac_exeext conftest.$ac_ext
11918 fi
11919 ac_res=`eval echo '${'$as_ac_var'}'`
11920                { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11922 if test `eval echo '${'$as_ac_var'}'` = yes; then
11923   cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11925 _ACEOF
11926
11927 fi
11928 done
11929
11930
11931
11932 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11933 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11934
11935 ICC=no
11936 IXX=no
11937 case $CC in
11938   icc*|icpc*)
11939     ICC=yes
11940     IXX=yes
11941     ;;
11942    *)
11943     ;;
11944 esac
11945
11946 if test "$GCC" != "yes" && test "$ICC" != "yes"
11947 then
11948   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11949 echo "$as_me: error: gcc|icc required but not found" >&2;}
11950    { (exit 1); exit 1; }; }
11951 fi
11952
11953 if test "$GXX" != "yes" && test "$IXX" != "yes"
11954 then
11955   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11956 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11957    { (exit 1); exit 1; }; }
11958 fi
11959
11960 if test "$GCC" = "yes"
11961 then
11962   cat >conftest.$ac_ext <<_ACEOF
11963 #if !defined(__GNUC__) || __GNUC__ < 3
11964 #error Unsupported GCC version
11965 #endif
11966
11967 _ACEOF
11968 rm -f conftest.$ac_objext
11969 if { (ac_try="$ac_compile"
11970 case "(($ac_try" in
11971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972   *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975   (eval "$ac_compile") 2>conftest.er1
11976   ac_status=$?
11977   grep -v '^ *+' conftest.er1 >conftest.err
11978   rm -f conftest.er1
11979   cat conftest.err >&5
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); } &&
11982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11983   { (case "(($ac_try" in
11984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11985   *) ac_try_echo=$ac_try;;
11986 esac
11987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11988   (eval "$ac_try") 2>&5
11989   ac_status=$?
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); }; } &&
11992          { ac_try='test -s conftest.$ac_objext'
11993   { (case "(($ac_try" in
11994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995   *) ac_try_echo=$ac_try;;
11996 esac
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998   (eval "$ac_try") 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; }; then
12002   :
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12008 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12009    { (exit 1); exit 1; }; }
12010 fi
12011
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 fi
12014
12015 if test -z "$llvm_cv_gnu_make_command"
12016 then
12017   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12018 echo "$as_me: error: GNU Make required but not found" >&2;}
12019    { (exit 1); exit 1; }; }
12020 fi
12021
12022 { echo "$as_me:$LINENO: result: ok" >&5
12023 echo "${ECHO_T}ok" >&6; }
12024
12025 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12026 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12027 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12028
12029 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12030
12031 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12032
12033 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12034 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12035
12036
12037
12038 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12039 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12040 if test "${ac_cv_lib_m_sin+set}" = set; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043   ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-lm  $LIBS"
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053    Use char because int might match the return type of a GCC
12054    builtin and then its argument prototype would still apply.  */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char sin ();
12059 int
12060 main ()
12061 {
12062 return sin ();
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074   (eval "$ac_link") 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } &&
12081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082   { (case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087   (eval "$ac_try") 2>&5
12088   ac_status=$?
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); }; } &&
12091          { ac_try='test -s conftest$ac_exeext'
12092   { (case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097   (eval "$ac_try") 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101   ac_cv_lib_m_sin=yes
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106         ac_cv_lib_m_sin=no
12107 fi
12108
12109 rm -f core conftest.err conftest.$ac_objext \
12110       conftest$ac_exeext conftest.$ac_ext
12111 LIBS=$ac_check_lib_save_LIBS
12112 fi
12113 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12114 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12115 if test $ac_cv_lib_m_sin = yes; then
12116   cat >>confdefs.h <<_ACEOF
12117 #define HAVE_LIBM 1
12118 _ACEOF
12119
12120   LIBS="-lm $LIBS"
12121
12122 fi
12123
12124 if test "$llvm_cv_os_type" = "MingW" ; then
12125
12126 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12127 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12128 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131   ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-limagehlp  $LIBS"
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h.  */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h.  */
12139
12140
12141 int
12142 main ()
12143 {
12144 return main ();
12145   ;
12146   return 0;
12147 }
12148 _ACEOF
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (ac_try="$ac_link"
12151 case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_link") 2>conftest.er1
12157   ac_status=$?
12158   grep -v '^ *+' conftest.er1 >conftest.err
12159   rm -f conftest.er1
12160   cat conftest.err >&5
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } &&
12163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164   { (case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169   (eval "$ac_try") 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; } &&
12173          { ac_try='test -s conftest$ac_exeext'
12174   { (case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_try") 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; }; then
12183   ac_cv_lib_imagehlp_main=yes
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         ac_cv_lib_imagehlp_main=no
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext \
12192       conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12194 fi
12195 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12196 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12197 if test $ac_cv_lib_imagehlp_main = yes; then
12198   cat >>confdefs.h <<_ACEOF
12199 #define HAVE_LIBIMAGEHLP 1
12200 _ACEOF
12201
12202   LIBS="-limagehlp $LIBS"
12203
12204 fi
12205
12206
12207 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12208 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12209 if test "${ac_cv_lib_psapi_main+set}" = set; then
12210   echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212   ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-lpsapi  $LIBS"
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h.  */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h.  */
12220
12221
12222 int
12223 main ()
12224 {
12225 return main ();
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (ac_try="$ac_link"
12232 case "(($ac_try" in
12233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234   *) ac_try_echo=$ac_try;;
12235 esac
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237   (eval "$ac_link") 2>conftest.er1
12238   ac_status=$?
12239   grep -v '^ *+' conftest.er1 >conftest.err
12240   rm -f conftest.er1
12241   cat conftest.err >&5
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); } &&
12244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12245   { (case "(($ac_try" in
12246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247   *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250   (eval "$ac_try") 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); }; } &&
12254          { ac_try='test -s conftest$ac_exeext'
12255   { (case "(($ac_try" in
12256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257   *) ac_try_echo=$ac_try;;
12258 esac
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260   (eval "$ac_try") 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   ac_cv_lib_psapi_main=yes
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269         ac_cv_lib_psapi_main=no
12270 fi
12271
12272 rm -f core conftest.err conftest.$ac_objext \
12273       conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12275 fi
12276 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12277 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12278 if test $ac_cv_lib_psapi_main = yes; then
12279   cat >>confdefs.h <<_ACEOF
12280 #define HAVE_LIBPSAPI 1
12281 _ACEOF
12282
12283   LIBS="-lpsapi $LIBS"
12284
12285 fi
12286
12287 fi
12288
12289 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12290 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12291 if test "${ac_cv_search_dlopen+set}" = set; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294   ac_func_search_save_LIBS=$LIBS
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301
12302 /* Override any GCC internal prototype to avoid an error.
12303    Use char because int might match the return type of a GCC
12304    builtin and then its argument prototype would still apply.  */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 char dlopen ();
12309 int
12310 main ()
12311 {
12312 return dlopen ();
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 for ac_lib in '' dl; do
12318   if test -z "$ac_lib"; then
12319     ac_res="none required"
12320   else
12321     ac_res=-l$ac_lib
12322     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12323   fi
12324   rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (ac_try="$ac_link"
12326 case "(($ac_try" in
12327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328   *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331   (eval "$ac_link") 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } &&
12338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339   { (case "(($ac_try" in
12340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341   *) ac_try_echo=$ac_try;;
12342 esac
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344   (eval "$ac_try") 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); }; } &&
12348          { ac_try='test -s conftest$ac_exeext'
12349   { (case "(($ac_try" in
12350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351   *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354   (eval "$ac_try") 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; }; then
12358   ac_cv_search_dlopen=$ac_res
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363
12364 fi
12365
12366 rm -f core conftest.err conftest.$ac_objext \
12367       conftest$ac_exeext
12368   if test "${ac_cv_search_dlopen+set}" = set; then
12369   break
12370 fi
12371 done
12372 if test "${ac_cv_search_dlopen+set}" = set; then
12373   :
12374 else
12375   ac_cv_search_dlopen=no
12376 fi
12377 rm conftest.$ac_ext
12378 LIBS=$ac_func_search_save_LIBS
12379 fi
12380 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12381 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12382 ac_res=$ac_cv_search_dlopen
12383 if test "$ac_res" != no; then
12384   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12385
12386 cat >>confdefs.h <<\_ACEOF
12387 #define HAVE_DLOPEN 1
12388 _ACEOF
12389
12390 else
12391   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12392 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12393 fi
12394
12395
12396 if test "$llvm_cv_enable_libffi" = "yes" ; then
12397   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12398 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12399 if test "${ac_cv_search_ffi_call+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   ac_func_search_save_LIBS=$LIBS
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411    Use char because int might match the return type of a GCC
12412    builtin and then its argument prototype would still apply.  */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char ffi_call ();
12417 int
12418 main ()
12419 {
12420 return ffi_call ();
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 for ac_lib in '' ffi; do
12426   if test -z "$ac_lib"; then
12427     ac_res="none required"
12428   else
12429     ac_res=-l$ac_lib
12430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12431   fi
12432   rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439   (eval "$ac_link") 2>conftest.er1
12440   ac_status=$?
12441   grep -v '^ *+' conftest.er1 >conftest.err
12442   rm -f conftest.er1
12443   cat conftest.err >&5
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } &&
12446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12447   { (case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452   (eval "$ac_try") 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); }; } &&
12456          { ac_try='test -s conftest$ac_exeext'
12457   { (case "(($ac_try" in
12458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459   *) ac_try_echo=$ac_try;;
12460 esac
12461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462   (eval "$ac_try") 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); }; }; then
12466   ac_cv_search_ffi_call=$ac_res
12467 else
12468   echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471
12472 fi
12473
12474 rm -f core conftest.err conftest.$ac_objext \
12475       conftest$ac_exeext
12476   if test "${ac_cv_search_ffi_call+set}" = set; then
12477   break
12478 fi
12479 done
12480 if test "${ac_cv_search_ffi_call+set}" = set; then
12481   :
12482 else
12483   ac_cv_search_ffi_call=no
12484 fi
12485 rm conftest.$ac_ext
12486 LIBS=$ac_func_search_save_LIBS
12487 fi
12488 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12489 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12490 ac_res=$ac_cv_search_ffi_call
12491 if test "$ac_res" != no; then
12492   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12493
12494 cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_FFI_CALL 1
12496 _ACEOF
12497
12498 else
12499   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12500 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12501    { (exit 1); exit 1; }; }
12502 fi
12503
12504 fi
12505
12506 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12507 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12508 if test "${ac_cv_search_mallinfo+set}" = set; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511   ac_func_search_save_LIBS=$LIBS
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h.  */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h.  */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520    Use char because int might match the return type of a GCC
12521    builtin and then its argument prototype would still apply.  */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char mallinfo ();
12526 int
12527 main ()
12528 {
12529 return mallinfo ();
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 for ac_lib in '' malloc; do
12535   if test -z "$ac_lib"; then
12536     ac_res="none required"
12537   else
12538     ac_res=-l$ac_lib
12539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12540   fi
12541   rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_link") 2>conftest.er1
12549   ac_status=$?
12550   grep -v '^ *+' conftest.er1 >conftest.err
12551   rm -f conftest.er1
12552   cat conftest.err >&5
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } &&
12555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12556   { (case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561   (eval "$ac_try") 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; } &&
12565          { ac_try='test -s conftest$ac_exeext'
12566   { (case "(($ac_try" in
12567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568   *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571   (eval "$ac_try") 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); }; }; then
12575   ac_cv_search_mallinfo=$ac_res
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580
12581 fi
12582
12583 rm -f core conftest.err conftest.$ac_objext \
12584       conftest$ac_exeext
12585   if test "${ac_cv_search_mallinfo+set}" = set; then
12586   break
12587 fi
12588 done
12589 if test "${ac_cv_search_mallinfo+set}" = set; then
12590   :
12591 else
12592   ac_cv_search_mallinfo=no
12593 fi
12594 rm conftest.$ac_ext
12595 LIBS=$ac_func_search_save_LIBS
12596 fi
12597 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12598 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12599 ac_res=$ac_cv_search_mallinfo
12600 if test "$ac_res" != no; then
12601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12602
12603 cat >>confdefs.h <<\_ACEOF
12604 #define HAVE_MALLINFO 1
12605 _ACEOF
12606
12607 fi
12608
12609
12610 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12611
12612 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12613 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12614 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12615   echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617   ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-lpthread  $LIBS"
12619 cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h.  */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h.  */
12625
12626 /* Override any GCC internal prototype to avoid an error.
12627    Use char because int might match the return type of a GCC
12628    builtin and then its argument prototype would still apply.  */
12629 #ifdef __cplusplus
12630 extern "C"
12631 #endif
12632 char pthread_mutex_init ();
12633 int
12634 main ()
12635 {
12636 return pthread_mutex_init ();
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (ac_try="$ac_link"
12643 case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_link") 2>conftest.er1
12649   ac_status=$?
12650   grep -v '^ *+' conftest.er1 >conftest.err
12651   rm -f conftest.er1
12652   cat conftest.err >&5
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); } &&
12655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656   { (case "(($ac_try" in
12657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658   *) ac_try_echo=$ac_try;;
12659 esac
12660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661   (eval "$ac_try") 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; } &&
12665          { ac_try='test -s conftest$ac_exeext'
12666   { (case "(($ac_try" in
12667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668   *) ac_try_echo=$ac_try;;
12669 esac
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671   (eval "$ac_try") 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; }; then
12675   ac_cv_lib_pthread_pthread_mutex_init=yes
12676 else
12677   echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680         ac_cv_lib_pthread_pthread_mutex_init=no
12681 fi
12682
12683 rm -f core conftest.err conftest.$ac_objext \
12684       conftest$ac_exeext conftest.$ac_ext
12685 LIBS=$ac_check_lib_save_LIBS
12686 fi
12687 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12688 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12689 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12690   cat >>confdefs.h <<_ACEOF
12691 #define HAVE_LIBPTHREAD 1
12692 _ACEOF
12693
12694   LIBS="-lpthread $LIBS"
12695
12696 fi
12697
12698   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12699 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12700 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12701   echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703   ac_func_search_save_LIBS=$LIBS
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h.  */
12706 _ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h.  */
12710
12711 /* Override any GCC internal prototype to avoid an error.
12712    Use char because int might match the return type of a GCC
12713    builtin and then its argument prototype would still apply.  */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 char pthread_mutex_lock ();
12718 int
12719 main ()
12720 {
12721 return pthread_mutex_lock ();
12722   ;
12723   return 0;
12724 }
12725 _ACEOF
12726 for ac_lib in '' pthread; do
12727   if test -z "$ac_lib"; then
12728     ac_res="none required"
12729   else
12730     ac_res=-l$ac_lib
12731     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12732   fi
12733   rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (ac_try="$ac_link"
12735 case "(($ac_try" in
12736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737   *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740   (eval "$ac_link") 2>conftest.er1
12741   ac_status=$?
12742   grep -v '^ *+' conftest.er1 >conftest.err
12743   rm -f conftest.er1
12744   cat conftest.err >&5
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } &&
12747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748   { (case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753   (eval "$ac_try") 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; } &&
12757          { ac_try='test -s conftest$ac_exeext'
12758   { (case "(($ac_try" in
12759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760   *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763   (eval "$ac_try") 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; }; then
12767   ac_cv_search_pthread_mutex_lock=$ac_res
12768 else
12769   echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12771
12772
12773 fi
12774
12775 rm -f core conftest.err conftest.$ac_objext \
12776       conftest$ac_exeext
12777   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12778   break
12779 fi
12780 done
12781 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12782   :
12783 else
12784   ac_cv_search_pthread_mutex_lock=no
12785 fi
12786 rm conftest.$ac_ext
12787 LIBS=$ac_func_search_save_LIBS
12788 fi
12789 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12790 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12791 ac_res=$ac_cv_search_pthread_mutex_lock
12792 if test "$ac_res" != no; then
12793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12794
12795 cat >>confdefs.h <<\_ACEOF
12796 #define HAVE_PTHREAD_MUTEX_LOCK 1
12797 _ACEOF
12798
12799 fi
12800
12801   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12802 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12803 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12804   echo $ECHO_N "(cached) $ECHO_C" >&6
12805 else
12806   ac_func_search_save_LIBS=$LIBS
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h.  */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h.  */
12813
12814 /* Override any GCC internal prototype to avoid an error.
12815    Use char because int might match the return type of a GCC
12816    builtin and then its argument prototype would still apply.  */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char pthread_rwlock_init ();
12821 int
12822 main ()
12823 {
12824 return pthread_rwlock_init ();
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 for ac_lib in '' pthread; do
12830   if test -z "$ac_lib"; then
12831     ac_res="none required"
12832   else
12833     ac_res=-l$ac_lib
12834     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12835   fi
12836   rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840   *) ac_try_echo=$ac_try;;
12841 esac
12842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843   (eval "$ac_link") 2>conftest.er1
12844   ac_status=$?
12845   grep -v '^ *+' conftest.er1 >conftest.err
12846   rm -f conftest.er1
12847   cat conftest.err >&5
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); } &&
12850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12851   { (case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856   (eval "$ac_try") 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; } &&
12860          { ac_try='test -s conftest$ac_exeext'
12861   { (case "(($ac_try" in
12862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863   *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866   (eval "$ac_try") 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); }; }; then
12870   ac_cv_search_pthread_rwlock_init=$ac_res
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875
12876 fi
12877
12878 rm -f core conftest.err conftest.$ac_objext \
12879       conftest$ac_exeext
12880   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12881   break
12882 fi
12883 done
12884 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12885   :
12886 else
12887   ac_cv_search_pthread_rwlock_init=no
12888 fi
12889 rm conftest.$ac_ext
12890 LIBS=$ac_func_search_save_LIBS
12891 fi
12892 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12893 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12894 ac_res=$ac_cv_search_pthread_rwlock_init
12895 if test "$ac_res" != no; then
12896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12897
12898 cat >>confdefs.h <<\_ACEOF
12899 #define HAVE_PTHREAD_RWLOCK_INIT 1
12900 _ACEOF
12901
12902 fi
12903
12904   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12905 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12906 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12907   echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909   ac_func_search_save_LIBS=$LIBS
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h.  */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h.  */
12916
12917 /* Override any GCC internal prototype to avoid an error.
12918    Use char because int might match the return type of a GCC
12919    builtin and then its argument prototype would still apply.  */
12920 #ifdef __cplusplus
12921 extern "C"
12922 #endif
12923 char pthread_getspecific ();
12924 int
12925 main ()
12926 {
12927 return pthread_getspecific ();
12928   ;
12929   return 0;
12930 }
12931 _ACEOF
12932 for ac_lib in '' pthread; do
12933   if test -z "$ac_lib"; then
12934     ac_res="none required"
12935   else
12936     ac_res=-l$ac_lib
12937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12938   fi
12939   rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (ac_try="$ac_link"
12941 case "(($ac_try" in
12942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943   *) ac_try_echo=$ac_try;;
12944 esac
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946   (eval "$ac_link") 2>conftest.er1
12947   ac_status=$?
12948   grep -v '^ *+' conftest.er1 >conftest.err
12949   rm -f conftest.er1
12950   cat conftest.err >&5
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); } &&
12953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12954   { (case "(($ac_try" in
12955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956   *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959   (eval "$ac_try") 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; } &&
12963          { ac_try='test -s conftest$ac_exeext'
12964   { (case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_try") 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; }; then
12973   ac_cv_search_pthread_getspecific=$ac_res
12974 else
12975   echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978
12979 fi
12980
12981 rm -f core conftest.err conftest.$ac_objext \
12982       conftest$ac_exeext
12983   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12984   break
12985 fi
12986 done
12987 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12988   :
12989 else
12990   ac_cv_search_pthread_getspecific=no
12991 fi
12992 rm conftest.$ac_ext
12993 LIBS=$ac_func_search_save_LIBS
12994 fi
12995 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12996 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12997 ac_res=$ac_cv_search_pthread_getspecific
12998 if test "$ac_res" != no; then
12999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13000
13001 cat >>confdefs.h <<\_ACEOF
13002 #define HAVE_PTHREAD_GETSPECIFIC 1
13003 _ACEOF
13004
13005 fi
13006
13007 fi
13008
13009
13010 # Check whether --with-udis86 was given.
13011 if test "${with_udis86+set}" = set; then
13012   withval=$with_udis86;
13013       USE_UDIS86=1
13014
13015       case "$withval" in
13016         /usr/lib|yes) ;;
13017         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13018       esac
13019
13020 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13021 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13022 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13023   echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025   ac_check_lib_save_LIBS=$LIBS
13026 LIBS="-ludis86  $LIBS"
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h.  */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h.  */
13033
13034 /* Override any GCC internal prototype to avoid an error.
13035    Use char because int might match the return type of a GCC
13036    builtin and then its argument prototype would still apply.  */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 char ud_init ();
13041 int
13042 main ()
13043 {
13044 return ud_init ();
13045   ;
13046   return 0;
13047 }
13048 _ACEOF
13049 rm -f conftest.$ac_objext conftest$ac_exeext
13050 if { (ac_try="$ac_link"
13051 case "(($ac_try" in
13052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053   *) ac_try_echo=$ac_try;;
13054 esac
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056   (eval "$ac_link") 2>conftest.er1
13057   ac_status=$?
13058   grep -v '^ *+' conftest.er1 >conftest.err
13059   rm -f conftest.er1
13060   cat conftest.err >&5
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); } &&
13063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13064   { (case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_try") 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; } &&
13073          { ac_try='test -s conftest$ac_exeext'
13074   { (case "(($ac_try" in
13075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076   *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079   (eval "$ac_try") 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; }; then
13083   ac_cv_lib_udis86_ud_init=yes
13084 else
13085   echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13087
13088         ac_cv_lib_udis86_ud_init=no
13089 fi
13090
13091 rm -f core conftest.err conftest.$ac_objext \
13092       conftest$ac_exeext conftest.$ac_ext
13093 LIBS=$ac_check_lib_save_LIBS
13094 fi
13095 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13096 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13097 if test $ac_cv_lib_udis86_ud_init = yes; then
13098   cat >>confdefs.h <<_ACEOF
13099 #define HAVE_LIBUDIS86 1
13100 _ACEOF
13101
13102   LIBS="-ludis86 $LIBS"
13103
13104 else
13105
13106         echo "Error! You need to have libudis86 around."
13107         exit -1
13108
13109 fi
13110
13111
13112 else
13113   USE_UDIS86=0
13114
13115 fi
13116
13117
13118 cat >>confdefs.h <<_ACEOF
13119 #define USE_UDIS86 $USE_UDIS86
13120 _ACEOF
13121
13122
13123
13124 # Check whether --with-oprofile was given.
13125 if test "${with_oprofile+set}" = set; then
13126   withval=$with_oprofile;
13127       USE_OPROFILE=1
13128
13129       case "$withval" in
13130         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13131         no) llvm_cv_oppath=
13132             USE_OPROFILE=0
13133  ;;
13134         *) llvm_cv_oppath="${withval}/lib/oprofile"
13135            CPPFLAGS="-I${withval}/include";;
13136       esac
13137       if test -n "$llvm_cv_oppath" ; then
13138         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13139                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13140 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13141 if test "${ac_cv_search_bfd_init+set}" = set; then
13142   echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144   ac_func_search_save_LIBS=$LIBS
13145 cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151
13152 /* Override any GCC internal prototype to avoid an error.
13153    Use char because int might match the return type of a GCC
13154    builtin and then its argument prototype would still apply.  */
13155 #ifdef __cplusplus
13156 extern "C"
13157 #endif
13158 char bfd_init ();
13159 int
13160 main ()
13161 {
13162 return bfd_init ();
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 for ac_lib in '' bfd; do
13168   if test -z "$ac_lib"; then
13169     ac_res="none required"
13170   else
13171     ac_res=-l$ac_lib
13172     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13173   fi
13174   rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181   (eval "$ac_link") 2>conftest.er1
13182   ac_status=$?
13183   grep -v '^ *+' conftest.er1 >conftest.err
13184   rm -f conftest.er1
13185   cat conftest.err >&5
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13195   ac_status=$?
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); }; } &&
13198          { ac_try='test -s conftest$ac_exeext'
13199   { (case "(($ac_try" in
13200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201   *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204   (eval "$ac_try") 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   ac_cv_search_bfd_init=$ac_res
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213
13214 fi
13215
13216 rm -f core conftest.err conftest.$ac_objext \
13217       conftest$ac_exeext
13218   if test "${ac_cv_search_bfd_init+set}" = set; then
13219   break
13220 fi
13221 done
13222 if test "${ac_cv_search_bfd_init+set}" = set; then
13223   :
13224 else
13225   ac_cv_search_bfd_init=no
13226 fi
13227 rm conftest.$ac_ext
13228 LIBS=$ac_func_search_save_LIBS
13229 fi
13230 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13231 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13232 ac_res=$ac_cv_search_bfd_init
13233 if test "$ac_res" != no; then
13234   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13235
13236 fi
13237
13238         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13239 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13240 if test "${ac_cv_search_op_open_agent+set}" = set; then
13241   echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243   ac_func_search_save_LIBS=$LIBS
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h.  */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h.  */
13250
13251 /* Override any GCC internal prototype to avoid an error.
13252    Use char because int might match the return type of a GCC
13253    builtin and then its argument prototype would still apply.  */
13254 #ifdef __cplusplus
13255 extern "C"
13256 #endif
13257 char op_open_agent ();
13258 int
13259 main ()
13260 {
13261 return op_open_agent ();
13262   ;
13263   return 0;
13264 }
13265 _ACEOF
13266 for ac_lib in '' opagent; do
13267   if test -z "$ac_lib"; then
13268     ac_res="none required"
13269   else
13270     ac_res=-l$ac_lib
13271     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13272   fi
13273   rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (ac_try="$ac_link"
13275 case "(($ac_try" in
13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277   *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280   (eval "$ac_link") 2>conftest.er1
13281   ac_status=$?
13282   grep -v '^ *+' conftest.er1 >conftest.err
13283   rm -f conftest.er1
13284   cat conftest.err >&5
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); } &&
13287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288   { (case "(($ac_try" in
13289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290   *) ac_try_echo=$ac_try;;
13291 esac
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293   (eval "$ac_try") 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); }; } &&
13297          { ac_try='test -s conftest$ac_exeext'
13298   { (case "(($ac_try" in
13299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300   *) ac_try_echo=$ac_try;;
13301 esac
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303   (eval "$ac_try") 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   ac_cv_search_op_open_agent=$ac_res
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312
13313 fi
13314
13315 rm -f core conftest.err conftest.$ac_objext \
13316       conftest$ac_exeext
13317   if test "${ac_cv_search_op_open_agent+set}" = set; then
13318   break
13319 fi
13320 done
13321 if test "${ac_cv_search_op_open_agent+set}" = set; then
13322   :
13323 else
13324   ac_cv_search_op_open_agent=no
13325 fi
13326 rm conftest.$ac_ext
13327 LIBS=$ac_func_search_save_LIBS
13328 fi
13329 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13330 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13331 ac_res=$ac_cv_search_op_open_agent
13332 if test "$ac_res" != no; then
13333   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13334
13335 else
13336
13337           echo "Error! You need to have libopagent around."
13338           exit -1
13339
13340 fi
13341
13342         if test "${ac_cv_header_opagent_h+set}" = set; then
13343   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13344 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13345 if test "${ac_cv_header_opagent_h+set}" = set; then
13346   echo $ECHO_N "(cached) $ECHO_C" >&6
13347 fi
13348 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13349 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13350 else
13351   # Is the header compilable?
13352 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13353 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13354 cat >conftest.$ac_ext <<_ACEOF
13355 /* confdefs.h.  */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h.  */
13360 $ac_includes_default
13361 #include <opagent.h>
13362 _ACEOF
13363 rm -f conftest.$ac_objext
13364 if { (ac_try="$ac_compile"
13365 case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_compile") 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } &&
13377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13378   { (case "(($ac_try" in
13379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380   *) ac_try_echo=$ac_try;;
13381 esac
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383   (eval "$ac_try") 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; } &&
13387          { ac_try='test -s conftest.$ac_objext'
13388   { (case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_try") 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; }; then
13397   ac_header_compiler=yes
13398 else
13399   echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402         ac_header_compiler=no
13403 fi
13404
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13407 echo "${ECHO_T}$ac_header_compiler" >&6; }
13408
13409 # Is the header present?
13410 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13411 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13412 cat >conftest.$ac_ext <<_ACEOF
13413 /* confdefs.h.  */
13414 _ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h.  */
13418 #include <opagent.h>
13419 _ACEOF
13420 if { (ac_try="$ac_cpp conftest.$ac_ext"
13421 case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } >/dev/null; then
13433   if test -s conftest.err; then
13434     ac_cpp_err=$ac_c_preproc_warn_flag
13435     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13436   else
13437     ac_cpp_err=
13438   fi
13439 else
13440   ac_cpp_err=yes
13441 fi
13442 if test -z "$ac_cpp_err"; then
13443   ac_header_preproc=yes
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448   ac_header_preproc=no
13449 fi
13450
13451 rm -f conftest.err conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13453 echo "${ECHO_T}$ac_header_preproc" >&6; }
13454
13455 # So?  What about this header?
13456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13457   yes:no: )
13458     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13459 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13460     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13461 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13462     ac_header_preproc=yes
13463     ;;
13464   no:yes:* )
13465     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13466 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13467     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13468 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13469     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13470 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13471     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13472 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13473     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13474 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13475     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13476 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13477     ( cat <<\_ASBOX
13478 ## ------------------------------ ##
13479 ## Report this to bugs@yourdomain ##
13480 ## ------------------------------ ##
13481 _ASBOX
13482      ) | sed "s/^/$as_me: WARNING:     /" >&2
13483     ;;
13484 esac
13485 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13486 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13487 if test "${ac_cv_header_opagent_h+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   ac_cv_header_opagent_h=$ac_header_preproc
13491 fi
13492 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13493 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13494
13495 fi
13496 if test $ac_cv_header_opagent_h = yes; then
13497   :
13498 else
13499
13500           echo "Error! You need to have opagent.h around."
13501           exit -1
13502
13503 fi
13504
13505
13506       fi
13507
13508 else
13509
13510       USE_OPROFILE=0
13511
13512
13513 fi
13514
13515
13516 cat >>confdefs.h <<_ACEOF
13517 #define USE_OPROFILE $USE_OPROFILE
13518 _ACEOF
13519
13520
13521
13522
13523
13524
13525
13526
13527 ac_header_dirent=no
13528 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13529   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13530 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13531 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h.  */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h.  */
13541 #include <sys/types.h>
13542 #include <$ac_hdr>
13543
13544 int
13545 main ()
13546 {
13547 if ((DIR *) 0)
13548 return 0;
13549   ;
13550   return 0;
13551 }
13552 _ACEOF
13553 rm -f conftest.$ac_objext
13554 if { (ac_try="$ac_compile"
13555 case "(($ac_try" in
13556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557   *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560   (eval "$ac_compile") 2>conftest.er1
13561   ac_status=$?
13562   grep -v '^ *+' conftest.er1 >conftest.err
13563   rm -f conftest.er1
13564   cat conftest.err >&5
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } &&
13567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13568   { (case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573   (eval "$ac_try") 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; } &&
13577          { ac_try='test -s conftest.$ac_objext'
13578   { (case "(($ac_try" in
13579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580   *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583   (eval "$ac_try") 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   eval "$as_ac_Header=yes"
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592         eval "$as_ac_Header=no"
13593 fi
13594
13595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596 fi
13597 ac_res=`eval echo '${'$as_ac_Header'}'`
13598                { echo "$as_me:$LINENO: result: $ac_res" >&5
13599 echo "${ECHO_T}$ac_res" >&6; }
13600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13601   cat >>confdefs.h <<_ACEOF
13602 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13603 _ACEOF
13604
13605 ac_header_dirent=$ac_hdr; break
13606 fi
13607
13608 done
13609 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13610 if test $ac_header_dirent = dirent.h; then
13611   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13612 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13613 if test "${ac_cv_search_opendir+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616   ac_func_search_save_LIBS=$LIBS
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625    Use char because int might match the return type of a GCC
13626    builtin and then its argument prototype would still apply.  */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char opendir ();
13631 int
13632 main ()
13633 {
13634 return opendir ();
13635   ;
13636   return 0;
13637 }
13638 _ACEOF
13639 for ac_lib in '' dir; do
13640   if test -z "$ac_lib"; then
13641     ac_res="none required"
13642   else
13643     ac_res=-l$ac_lib
13644     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13645   fi
13646   rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_link") 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } &&
13660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661   { (case "(($ac_try" in
13662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663   *) ac_try_echo=$ac_try;;
13664 esac
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666   (eval "$ac_try") 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; } &&
13670          { ac_try='test -s conftest$ac_exeext'
13671   { (case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676   (eval "$ac_try") 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   ac_cv_search_opendir=$ac_res
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685
13686 fi
13687
13688 rm -f core conftest.err conftest.$ac_objext \
13689       conftest$ac_exeext
13690   if test "${ac_cv_search_opendir+set}" = set; then
13691   break
13692 fi
13693 done
13694 if test "${ac_cv_search_opendir+set}" = set; then
13695   :
13696 else
13697   ac_cv_search_opendir=no
13698 fi
13699 rm conftest.$ac_ext
13700 LIBS=$ac_func_search_save_LIBS
13701 fi
13702 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13703 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13704 ac_res=$ac_cv_search_opendir
13705 if test "$ac_res" != no; then
13706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13707
13708 fi
13709
13710 else
13711   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13713 if test "${ac_cv_search_opendir+set}" = set; then
13714   echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716   ac_func_search_save_LIBS=$LIBS
13717 cat >conftest.$ac_ext <<_ACEOF
13718 /* confdefs.h.  */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h.  */
13723
13724 /* Override any GCC internal prototype to avoid an error.
13725    Use char because int might match the return type of a GCC
13726    builtin and then its argument prototype would still apply.  */
13727 #ifdef __cplusplus
13728 extern "C"
13729 #endif
13730 char opendir ();
13731 int
13732 main ()
13733 {
13734 return opendir ();
13735   ;
13736   return 0;
13737 }
13738 _ACEOF
13739 for ac_lib in '' x; do
13740   if test -z "$ac_lib"; then
13741     ac_res="none required"
13742   else
13743     ac_res=-l$ac_lib
13744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13745   fi
13746   rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (ac_try="$ac_link"
13748 case "(($ac_try" in
13749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750   *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753   (eval "$ac_link") 2>conftest.er1
13754   ac_status=$?
13755   grep -v '^ *+' conftest.er1 >conftest.err
13756   rm -f conftest.er1
13757   cat conftest.err >&5
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } &&
13760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761   { (case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766   (eval "$ac_try") 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); }; } &&
13770          { ac_try='test -s conftest$ac_exeext'
13771   { (case "(($ac_try" in
13772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773   *) ac_try_echo=$ac_try;;
13774 esac
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776   (eval "$ac_try") 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   ac_cv_search_opendir=$ac_res
13781 else
13782   echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785
13786 fi
13787
13788 rm -f core conftest.err conftest.$ac_objext \
13789       conftest$ac_exeext
13790   if test "${ac_cv_search_opendir+set}" = set; then
13791   break
13792 fi
13793 done
13794 if test "${ac_cv_search_opendir+set}" = set; then
13795   :
13796 else
13797   ac_cv_search_opendir=no
13798 fi
13799 rm conftest.$ac_ext
13800 LIBS=$ac_func_search_save_LIBS
13801 fi
13802 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13803 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13804 ac_res=$ac_cv_search_opendir
13805 if test "$ac_res" != no; then
13806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13807
13808 fi
13809
13810 fi
13811
13812 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13813 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13814 if test "${ac_cv_header_mmap_anon+set}" = set; then
13815   echo $ECHO_N "(cached) $ECHO_C" >&6
13816 else
13817    ac_ext=c
13818 ac_cpp='$CPP $CPPFLAGS'
13819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13822
13823   cat >conftest.$ac_ext <<_ACEOF
13824 /* confdefs.h.  */
13825 _ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h.  */
13829 #include <sys/mman.h>
13830 #include <unistd.h>
13831 #include <fcntl.h>
13832 int
13833 main ()
13834 {
13835 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13836   ;
13837   return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_compile") 2>conftest.er1
13848   ac_status=$?
13849   grep -v '^ *+' conftest.er1 >conftest.err
13850   rm -f conftest.er1
13851   cat conftest.err >&5
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } &&
13854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855   { (case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_try") 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; } &&
13864          { ac_try='test -s conftest.$ac_objext'
13865   { (case "(($ac_try" in
13866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867   *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870   (eval "$ac_try") 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_header_mmap_anon=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879         ac_cv_header_mmap_anon=no
13880 fi
13881
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883   ac_ext=c
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888
13889
13890 fi
13891 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13892 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13893 if test "$ac_cv_header_mmap_anon" = yes; then
13894
13895 cat >>confdefs.h <<\_ACEOF
13896 #define HAVE_MMAP_ANONYMOUS 1
13897 _ACEOF
13898
13899 fi
13900
13901 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13902 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13903 if test "${ac_cv_header_stat_broken+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912 #include <sys/types.h>
13913 #include <sys/stat.h>
13914
13915 #if defined S_ISBLK && defined S_IFDIR
13916 # if S_ISBLK (S_IFDIR)
13917 You lose.
13918 # endif
13919 #endif
13920
13921 #if defined S_ISBLK && defined S_IFCHR
13922 # if S_ISBLK (S_IFCHR)
13923 You lose.
13924 # endif
13925 #endif
13926
13927 #if defined S_ISLNK && defined S_IFREG
13928 # if S_ISLNK (S_IFREG)
13929 You lose.
13930 # endif
13931 #endif
13932
13933 #if defined S_ISSOCK && defined S_IFREG
13934 # if S_ISSOCK (S_IFREG)
13935 You lose.
13936 # endif
13937 #endif
13938
13939 _ACEOF
13940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13941   $EGREP "You lose" >/dev/null 2>&1; then
13942   ac_cv_header_stat_broken=yes
13943 else
13944   ac_cv_header_stat_broken=no
13945 fi
13946 rm -f conftest*
13947
13948 fi
13949 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13950 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13951 if test $ac_cv_header_stat_broken = yes; then
13952
13953 cat >>confdefs.h <<\_ACEOF
13954 #define STAT_MACROS_BROKEN 1
13955 _ACEOF
13956
13957 fi
13958
13959 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13960 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13961 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13962   echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964   cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h.  */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h.  */
13970 #include <sys/types.h>
13971 #include <sys/wait.h>
13972 #ifndef WEXITSTATUS
13973 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13974 #endif
13975 #ifndef WIFEXITED
13976 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13977 #endif
13978
13979 int
13980 main ()
13981 {
13982   int s;
13983   wait (&s);
13984   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13985   ;
13986   return 0;
13987 }
13988 _ACEOF
13989 rm -f conftest.$ac_objext
13990 if { (ac_try="$ac_compile"
13991 case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_compile") 2>conftest.er1
13997   ac_status=$?
13998   grep -v '^ *+' conftest.er1 >conftest.err
13999   rm -f conftest.er1
14000   cat conftest.err >&5
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } &&
14003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14004   { (case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009   (eval "$ac_try") 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; } &&
14013          { ac_try='test -s conftest.$ac_objext'
14014   { (case "(($ac_try" in
14015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016   *) ac_try_echo=$ac_try;;
14017 esac
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019   (eval "$ac_try") 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); }; }; then
14023   ac_cv_header_sys_wait_h=yes
14024 else
14025   echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14027
14028         ac_cv_header_sys_wait_h=no
14029 fi
14030
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 fi
14033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14034 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14035 if test $ac_cv_header_sys_wait_h = yes; then
14036
14037 cat >>confdefs.h <<\_ACEOF
14038 #define HAVE_SYS_WAIT_H 1
14039 _ACEOF
14040
14041 fi
14042
14043 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14044 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14045 if test "${ac_cv_header_time+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   cat >conftest.$ac_ext <<_ACEOF
14049 /* confdefs.h.  */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h.  */
14054 #include <sys/types.h>
14055 #include <sys/time.h>
14056 #include <time.h>
14057
14058 int
14059 main ()
14060 {
14061 if ((struct tm *) 0)
14062 return 0;
14063   ;
14064   return 0;
14065 }
14066 _ACEOF
14067 rm -f conftest.$ac_objext
14068 if { (ac_try="$ac_compile"
14069 case "(($ac_try" in
14070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071   *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074   (eval "$ac_compile") 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } &&
14081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14082   { (case "(($ac_try" in
14083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084   *) ac_try_echo=$ac_try;;
14085 esac
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087   (eval "$ac_try") 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; } &&
14091          { ac_try='test -s conftest.$ac_objext'
14092   { (case "(($ac_try" in
14093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094   *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097   (eval "$ac_try") 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); }; }; then
14101   ac_cv_header_time=yes
14102 else
14103   echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106         ac_cv_header_time=no
14107 fi
14108
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 fi
14111 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14112 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14113 if test $ac_cv_header_time = yes; then
14114
14115 cat >>confdefs.h <<\_ACEOF
14116 #define TIME_WITH_SYS_TIME 1
14117 _ACEOF
14118
14119 fi
14120
14121
14122
14123
14124
14125
14126
14127
14128 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14129 do
14130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14132   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 fi
14137 ac_res=`eval echo '${'$as_ac_Header'}'`
14138                { echo "$as_me:$LINENO: result: $ac_res" >&5
14139 echo "${ECHO_T}$ac_res" >&6; }
14140 else
14141   # Is the header compilable?
14142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h.  */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h.  */
14150 $ac_includes_default
14151 #include <$ac_header>
14152 _ACEOF
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157   *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160   (eval "$ac_compile") 2>conftest.er1
14161   ac_status=$?
14162   grep -v '^ *+' conftest.er1 >conftest.err
14163   rm -f conftest.er1
14164   cat conftest.err >&5
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } &&
14167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168   { (case "(($ac_try" in
14169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170   *) ac_try_echo=$ac_try;;
14171 esac
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173   (eval "$ac_try") 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest.$ac_objext'
14178   { (case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_try") 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; }; then
14187   ac_header_compiler=yes
14188 else
14189   echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192         ac_header_compiler=no
14193 fi
14194
14195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14197 echo "${ECHO_T}$ac_header_compiler" >&6; }
14198
14199 # Is the header present?
14200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h.  */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h.  */
14208 #include <$ac_header>
14209 _ACEOF
14210 if { (ac_try="$ac_cpp conftest.$ac_ext"
14211 case "(($ac_try" in
14212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213   *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14217   ac_status=$?
14218   grep -v '^ *+' conftest.er1 >conftest.err
14219   rm -f conftest.er1
14220   cat conftest.err >&5
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } >/dev/null; then
14223   if test -s conftest.err; then
14224     ac_cpp_err=$ac_c_preproc_warn_flag
14225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14226   else
14227     ac_cpp_err=
14228   fi
14229 else
14230   ac_cpp_err=yes
14231 fi
14232 if test -z "$ac_cpp_err"; then
14233   ac_header_preproc=yes
14234 else
14235   echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14237
14238   ac_header_preproc=no
14239 fi
14240
14241 rm -f conftest.err conftest.$ac_ext
14242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14243 echo "${ECHO_T}$ac_header_preproc" >&6; }
14244
14245 # So?  What about this header?
14246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14247   yes:no: )
14248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14252     ac_header_preproc=yes
14253     ;;
14254   no:yes:* )
14255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14267     ( cat <<\_ASBOX
14268 ## ------------------------------ ##
14269 ## Report this to bugs@yourdomain ##
14270 ## ------------------------------ ##
14271 _ASBOX
14272      ) | sed "s/^/$as_me: WARNING:     /" >&2
14273     ;;
14274 esac
14275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14278   echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280   eval "$as_ac_Header=\$ac_header_preproc"
14281 fi
14282 ac_res=`eval echo '${'$as_ac_Header'}'`
14283                { echo "$as_me:$LINENO: result: $ac_res" >&5
14284 echo "${ECHO_T}$ac_res" >&6; }
14285
14286 fi
14287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14288   cat >>confdefs.h <<_ACEOF
14289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14290 _ACEOF
14291
14292 fi
14293
14294 done
14295
14296
14297
14298
14299
14300
14301
14302 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14303 do
14304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14306   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 fi
14311 ac_res=`eval echo '${'$as_ac_Header'}'`
14312                { echo "$as_me:$LINENO: result: $ac_res" >&5
14313 echo "${ECHO_T}$ac_res" >&6; }
14314 else
14315   # Is the header compilable?
14316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324 $ac_includes_default
14325 #include <$ac_header>
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (ac_try="$ac_compile"
14329 case "(($ac_try" in
14330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331   *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334   (eval "$ac_compile") 2>conftest.er1
14335   ac_status=$?
14336   grep -v '^ *+' conftest.er1 >conftest.err
14337   rm -f conftest.er1
14338   cat conftest.err >&5
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } &&
14341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342   { (case "(($ac_try" in
14343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344   *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347   (eval "$ac_try") 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }; } &&
14351          { ac_try='test -s conftest.$ac_objext'
14352   { (case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_try") 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; }; then
14361   ac_header_compiler=yes
14362 else
14363   echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14365
14366         ac_header_compiler=no
14367 fi
14368
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14371 echo "${ECHO_T}$ac_header_compiler" >&6; }
14372
14373 # Is the header present?
14374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14376 cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h.  */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h.  */
14382 #include <$ac_header>
14383 _ACEOF
14384 if { (ac_try="$ac_cpp conftest.$ac_ext"
14385 case "(($ac_try" in
14386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387   *) ac_try_echo=$ac_try;;
14388 esac
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14391   ac_status=$?
14392   grep -v '^ *+' conftest.er1 >conftest.err
14393   rm -f conftest.er1
14394   cat conftest.err >&5
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); } >/dev/null; then
14397   if test -s conftest.err; then
14398     ac_cpp_err=$ac_c_preproc_warn_flag
14399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14400   else
14401     ac_cpp_err=
14402   fi
14403 else
14404   ac_cpp_err=yes
14405 fi
14406 if test -z "$ac_cpp_err"; then
14407   ac_header_preproc=yes
14408 else
14409   echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14411
14412   ac_header_preproc=no
14413 fi
14414
14415 rm -f conftest.err conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417 echo "${ECHO_T}$ac_header_preproc" >&6; }
14418
14419 # So?  What about this header?
14420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14421   yes:no: )
14422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14426     ac_header_preproc=yes
14427     ;;
14428   no:yes:* )
14429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14441     ( cat <<\_ASBOX
14442 ## ------------------------------ ##
14443 ## Report this to bugs@yourdomain ##
14444 ## ------------------------------ ##
14445 _ASBOX
14446      ) | sed "s/^/$as_me: WARNING:     /" >&2
14447     ;;
14448 esac
14449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   eval "$as_ac_Header=\$ac_header_preproc"
14455 fi
14456 ac_res=`eval echo '${'$as_ac_Header'}'`
14457                { echo "$as_me:$LINENO: result: $ac_res" >&5
14458 echo "${ECHO_T}$ac_res" >&6; }
14459
14460 fi
14461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14462   cat >>confdefs.h <<_ACEOF
14463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14464 _ACEOF
14465
14466 fi
14467
14468 done
14469
14470
14471
14472 for ac_header in utime.h windows.h
14473 do
14474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14476   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14479   echo $ECHO_N "(cached) $ECHO_C" >&6
14480 fi
14481 ac_res=`eval echo '${'$as_ac_Header'}'`
14482                { echo "$as_me:$LINENO: result: $ac_res" >&5
14483 echo "${ECHO_T}$ac_res" >&6; }
14484 else
14485   # Is the header compilable?
14486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h.  */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h.  */
14494 $ac_includes_default
14495 #include <$ac_header>
14496 _ACEOF
14497 rm -f conftest.$ac_objext
14498 if { (ac_try="$ac_compile"
14499 case "(($ac_try" in
14500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501   *) ac_try_echo=$ac_try;;
14502 esac
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504   (eval "$ac_compile") 2>conftest.er1
14505   ac_status=$?
14506   grep -v '^ *+' conftest.er1 >conftest.err
14507   rm -f conftest.er1
14508   cat conftest.err >&5
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } &&
14511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14512   { (case "(($ac_try" in
14513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514   *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517   (eval "$ac_try") 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; } &&
14521          { ac_try='test -s conftest.$ac_objext'
14522   { (case "(($ac_try" in
14523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524   *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527   (eval "$ac_try") 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; }; then
14531   ac_header_compiler=yes
14532 else
14533   echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536         ac_header_compiler=no
14537 fi
14538
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14541 echo "${ECHO_T}$ac_header_compiler" >&6; }
14542
14543 # Is the header present?
14544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14546 cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h.  */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h.  */
14552 #include <$ac_header>
14553 _ACEOF
14554 if { (ac_try="$ac_cpp conftest.$ac_ext"
14555 case "(($ac_try" in
14556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557   *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } >/dev/null; then
14567   if test -s conftest.err; then
14568     ac_cpp_err=$ac_c_preproc_warn_flag
14569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14570   else
14571     ac_cpp_err=
14572   fi
14573 else
14574   ac_cpp_err=yes
14575 fi
14576 if test -z "$ac_cpp_err"; then
14577   ac_header_preproc=yes
14578 else
14579   echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14581
14582   ac_header_preproc=no
14583 fi
14584
14585 rm -f conftest.err conftest.$ac_ext
14586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14587 echo "${ECHO_T}$ac_header_preproc" >&6; }
14588
14589 # So?  What about this header?
14590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14591   yes:no: )
14592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14596     ac_header_preproc=yes
14597     ;;
14598   no:yes:* )
14599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14611     ( cat <<\_ASBOX
14612 ## ------------------------------ ##
14613 ## Report this to bugs@yourdomain ##
14614 ## ------------------------------ ##
14615 _ASBOX
14616      ) | sed "s/^/$as_me: WARNING:     /" >&2
14617     ;;
14618 esac
14619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   eval "$as_ac_Header=\$ac_header_preproc"
14625 fi
14626 ac_res=`eval echo '${'$as_ac_Header'}'`
14627                { echo "$as_me:$LINENO: result: $ac_res" >&5
14628 echo "${ECHO_T}$ac_res" >&6; }
14629
14630 fi
14631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14632   cat >>confdefs.h <<_ACEOF
14633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14634 _ACEOF
14635
14636 fi
14637
14638 done
14639
14640
14641
14642
14643
14644
14645 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14646 do
14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652   echo $ECHO_N "(cached) $ECHO_C" >&6
14653 fi
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655                { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14657 else
14658   # Is the header compilable?
14659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14661 cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 $ac_includes_default
14668 #include <$ac_header>
14669 _ACEOF
14670 rm -f conftest.$ac_objext
14671 if { (ac_try="$ac_compile"
14672 case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677   (eval "$ac_compile") 2>conftest.er1
14678   ac_status=$?
14679   grep -v '^ *+' conftest.er1 >conftest.err
14680   rm -f conftest.er1
14681   cat conftest.err >&5
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); } &&
14684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14685   { (case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_try") 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; } &&
14694          { ac_try='test -s conftest.$ac_objext'
14695   { (case "(($ac_try" in
14696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697   *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700   (eval "$ac_try") 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   ac_header_compiler=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709         ac_header_compiler=no
14710 fi
14711
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14715
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 #include <$ac_header>
14726 _ACEOF
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } >/dev/null; then
14740   if test -s conftest.err; then
14741     ac_cpp_err=$ac_c_preproc_warn_flag
14742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14743   else
14744     ac_cpp_err=
14745   fi
14746 else
14747   ac_cpp_err=yes
14748 fi
14749 if test -z "$ac_cpp_err"; then
14750   ac_header_preproc=yes
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755   ac_header_preproc=no
14756 fi
14757
14758 rm -f conftest.err conftest.$ac_ext
14759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14760 echo "${ECHO_T}$ac_header_preproc" >&6; }
14761
14762 # So?  What about this header?
14763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14764   yes:no: )
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14769     ac_header_preproc=yes
14770     ;;
14771   no:yes:* )
14772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14784     ( cat <<\_ASBOX
14785 ## ------------------------------ ##
14786 ## Report this to bugs@yourdomain ##
14787 ## ------------------------------ ##
14788 _ASBOX
14789      ) | sed "s/^/$as_me: WARNING:     /" >&2
14790     ;;
14791 esac
14792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797   eval "$as_ac_Header=\$ac_header_preproc"
14798 fi
14799 ac_res=`eval echo '${'$as_ac_Header'}'`
14800                { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14802
14803 fi
14804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14805   cat >>confdefs.h <<_ACEOF
14806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14807 _ACEOF
14808
14809 fi
14810
14811 done
14812
14813
14814
14815
14816
14817 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14818 do
14819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14821   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 fi
14826 ac_res=`eval echo '${'$as_ac_Header'}'`
14827                { echo "$as_me:$LINENO: result: $ac_res" >&5
14828 echo "${ECHO_T}$ac_res" >&6; }
14829 else
14830   # Is the header compilable?
14831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14833 cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h.  */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h.  */
14839 $ac_includes_default
14840 #include <$ac_header>
14841 _ACEOF
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_compile") 2>conftest.er1
14850   ac_status=$?
14851   grep -v '^ *+' conftest.er1 >conftest.err
14852   rm -f conftest.er1
14853   cat conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } &&
14856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857   { (case "(($ac_try" in
14858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859   *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862   (eval "$ac_try") 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; } &&
14866          { ac_try='test -s conftest.$ac_objext'
14867   { (case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872   (eval "$ac_try") 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; }; then
14876   ac_header_compiler=yes
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881         ac_header_compiler=no
14882 fi
14883
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14886 echo "${ECHO_T}$ac_header_compiler" >&6; }
14887
14888 # Is the header present?
14889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14891 cat >conftest.$ac_ext <<_ACEOF
14892 /* confdefs.h.  */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h.  */
14897 #include <$ac_header>
14898 _ACEOF
14899 if { (ac_try="$ac_cpp conftest.$ac_ext"
14900 case "(($ac_try" in
14901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902   *) ac_try_echo=$ac_try;;
14903 esac
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14906   ac_status=$?
14907   grep -v '^ *+' conftest.er1 >conftest.err
14908   rm -f conftest.er1
14909   cat conftest.err >&5
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); } >/dev/null; then
14912   if test -s conftest.err; then
14913     ac_cpp_err=$ac_c_preproc_warn_flag
14914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14915   else
14916     ac_cpp_err=
14917   fi
14918 else
14919   ac_cpp_err=yes
14920 fi
14921 if test -z "$ac_cpp_err"; then
14922   ac_header_preproc=yes
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927   ac_header_preproc=no
14928 fi
14929
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14933
14934 # So?  What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14936   yes:no: )
14937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941     ac_header_preproc=yes
14942     ;;
14943   no:yes:* )
14944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14956     ( cat <<\_ASBOX
14957 ## ------------------------------ ##
14958 ## Report this to bugs@yourdomain ##
14959 ## ------------------------------ ##
14960 _ASBOX
14961      ) | sed "s/^/$as_me: WARNING:     /" >&2
14962     ;;
14963 esac
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967   echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969   eval "$as_ac_Header=\$ac_header_preproc"
14970 fi
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972                { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14974
14975 fi
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977   cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14979 _ACEOF
14980
14981 fi
14982
14983 done
14984
14985
14986 for ac_header in valgrind/valgrind.h
14987 do
14988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14993   echo $ECHO_N "(cached) $ECHO_C" >&6
14994 fi
14995 ac_res=`eval echo '${'$as_ac_Header'}'`
14996                { echo "$as_me:$LINENO: result: $ac_res" >&5
14997 echo "${ECHO_T}$ac_res" >&6; }
14998 else
14999   # Is the header compilable?
15000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h.  */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h.  */
15008 $ac_includes_default
15009 #include <$ac_header>
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (ac_try="$ac_compile"
15013 case "(($ac_try" in
15014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015   *) ac_try_echo=$ac_try;;
15016 esac
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018   (eval "$ac_compile") 2>conftest.er1
15019   ac_status=$?
15020   grep -v '^ *+' conftest.er1 >conftest.err
15021   rm -f conftest.er1
15022   cat conftest.err >&5
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } &&
15025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15026   { (case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031   (eval "$ac_try") 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }; } &&
15035          { ac_try='test -s conftest.$ac_objext'
15036   { (case "(($ac_try" in
15037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038   *) ac_try_echo=$ac_try;;
15039 esac
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041   (eval "$ac_try") 2>&5
15042   ac_status=$?
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); }; }; then
15045   ac_header_compiler=yes
15046 else
15047   echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050         ac_header_compiler=no
15051 fi
15052
15053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15055 echo "${ECHO_T}$ac_header_compiler" >&6; }
15056
15057 # Is the header present?
15058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h.  */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h.  */
15066 #include <$ac_header>
15067 _ACEOF
15068 if { (ac_try="$ac_cpp conftest.$ac_ext"
15069 case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15075   ac_status=$?
15076   grep -v '^ *+' conftest.er1 >conftest.err
15077   rm -f conftest.er1
15078   cat conftest.err >&5
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); } >/dev/null; then
15081   if test -s conftest.err; then
15082     ac_cpp_err=$ac_c_preproc_warn_flag
15083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15084   else
15085     ac_cpp_err=
15086   fi
15087 else
15088   ac_cpp_err=yes
15089 fi
15090 if test -z "$ac_cpp_err"; then
15091   ac_header_preproc=yes
15092 else
15093   echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15095
15096   ac_header_preproc=no
15097 fi
15098
15099 rm -f conftest.err conftest.$ac_ext
15100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15101 echo "${ECHO_T}$ac_header_preproc" >&6; }
15102
15103 # So?  What about this header?
15104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15105   yes:no: )
15106     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15110     ac_header_preproc=yes
15111     ;;
15112   no:yes:* )
15113     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15115     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15116 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15117     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15119     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15120 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15123     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15125     ( cat <<\_ASBOX
15126 ## ------------------------------ ##
15127 ## Report this to bugs@yourdomain ##
15128 ## ------------------------------ ##
15129 _ASBOX
15130      ) | sed "s/^/$as_me: WARNING:     /" >&2
15131     ;;
15132 esac
15133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15136   echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138   eval "$as_ac_Header=\$ac_header_preproc"
15139 fi
15140 ac_res=`eval echo '${'$as_ac_Header'}'`
15141                { echo "$as_me:$LINENO: result: $ac_res" >&5
15142 echo "${ECHO_T}$ac_res" >&6; }
15143
15144 fi
15145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15146   cat >>confdefs.h <<_ACEOF
15147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15148 _ACEOF
15149
15150 fi
15151
15152 done
15153
15154
15155 for ac_header in fenv.h
15156 do
15157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15159   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162   echo $ECHO_N "(cached) $ECHO_C" >&6
15163 fi
15164 ac_res=`eval echo '${'$as_ac_Header'}'`
15165                { echo "$as_me:$LINENO: result: $ac_res" >&5
15166 echo "${ECHO_T}$ac_res" >&6; }
15167 else
15168   # Is the header compilable?
15169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h.  */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h.  */
15177 $ac_includes_default
15178 #include <$ac_header>
15179 _ACEOF
15180 rm -f conftest.$ac_objext
15181 if { (ac_try="$ac_compile"
15182 case "(($ac_try" in
15183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184   *) ac_try_echo=$ac_try;;
15185 esac
15186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187   (eval "$ac_compile") 2>conftest.er1
15188   ac_status=$?
15189   grep -v '^ *+' conftest.er1 >conftest.err
15190   rm -f conftest.er1
15191   cat conftest.err >&5
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); } &&
15194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15195   { (case "(($ac_try" in
15196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197   *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200   (eval "$ac_try") 2>&5
15201   ac_status=$?
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); }; } &&
15204          { ac_try='test -s conftest.$ac_objext'
15205   { (case "(($ac_try" in
15206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207   *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210   (eval "$ac_try") 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; }; then
15214   ac_header_compiler=yes
15215 else
15216   echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219         ac_header_compiler=no
15220 fi
15221
15222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15224 echo "${ECHO_T}$ac_header_compiler" >&6; }
15225
15226 # Is the header present?
15227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15229 cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h.  */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h.  */
15235 #include <$ac_header>
15236 _ACEOF
15237 if { (ac_try="$ac_cpp conftest.$ac_ext"
15238 case "(($ac_try" in
15239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240   *) ac_try_echo=$ac_try;;
15241 esac
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15244   ac_status=$?
15245   grep -v '^ *+' conftest.er1 >conftest.err
15246   rm -f conftest.er1
15247   cat conftest.err >&5
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } >/dev/null; then
15250   if test -s conftest.err; then
15251     ac_cpp_err=$ac_c_preproc_warn_flag
15252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15253   else
15254     ac_cpp_err=
15255   fi
15256 else
15257   ac_cpp_err=yes
15258 fi
15259 if test -z "$ac_cpp_err"; then
15260   ac_header_preproc=yes
15261 else
15262   echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15264
15265   ac_header_preproc=no
15266 fi
15267
15268 rm -f conftest.err conftest.$ac_ext
15269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15270 echo "${ECHO_T}$ac_header_preproc" >&6; }
15271
15272 # So?  What about this header?
15273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15274   yes:no: )
15275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15279     ac_header_preproc=yes
15280     ;;
15281   no:yes:* )
15282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15294     ( cat <<\_ASBOX
15295 ## ------------------------------ ##
15296 ## Report this to bugs@yourdomain ##
15297 ## ------------------------------ ##
15298 _ASBOX
15299      ) | sed "s/^/$as_me: WARNING:     /" >&2
15300     ;;
15301 esac
15302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305   echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307   eval "$as_ac_Header=\$ac_header_preproc"
15308 fi
15309 ac_res=`eval echo '${'$as_ac_Header'}'`
15310                { echo "$as_me:$LINENO: result: $ac_res" >&5
15311 echo "${ECHO_T}$ac_res" >&6; }
15312
15313 fi
15314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15315   cat >>confdefs.h <<_ACEOF
15316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15317 _ACEOF
15318
15319 fi
15320
15321 done
15322
15323 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15324
15325 for ac_header in pthread.h
15326 do
15327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 fi
15334 ac_res=`eval echo '${'$as_ac_Header'}'`
15335                { echo "$as_me:$LINENO: result: $ac_res" >&5
15336 echo "${ECHO_T}$ac_res" >&6; }
15337 else
15338   # Is the header compilable?
15339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h.  */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h.  */
15347 $ac_includes_default
15348 #include <$ac_header>
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (ac_try="$ac_compile"
15352 case "(($ac_try" in
15353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354   *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357   (eval "$ac_compile") 2>conftest.er1
15358   ac_status=$?
15359   grep -v '^ *+' conftest.er1 >conftest.err
15360   rm -f conftest.er1
15361   cat conftest.err >&5
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } &&
15364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365   { (case "(($ac_try" in
15366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367   *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370   (eval "$ac_try") 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; } &&
15374          { ac_try='test -s conftest.$ac_objext'
15375   { (case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380   (eval "$ac_try") 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384   ac_header_compiler=yes
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389         ac_header_compiler=no
15390 fi
15391
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15394 echo "${ECHO_T}$ac_header_compiler" >&6; }
15395
15396 # Is the header present?
15397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h.  */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h.  */
15405 #include <$ac_header>
15406 _ACEOF
15407 if { (ac_try="$ac_cpp conftest.$ac_ext"
15408 case "(($ac_try" in
15409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410   *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15414   ac_status=$?
15415   grep -v '^ *+' conftest.er1 >conftest.err
15416   rm -f conftest.er1
15417   cat conftest.err >&5
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } >/dev/null; then
15420   if test -s conftest.err; then
15421     ac_cpp_err=$ac_c_preproc_warn_flag
15422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15423   else
15424     ac_cpp_err=
15425   fi
15426 else
15427   ac_cpp_err=yes
15428 fi
15429 if test -z "$ac_cpp_err"; then
15430   ac_header_preproc=yes
15431 else
15432   echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435   ac_header_preproc=no
15436 fi
15437
15438 rm -f conftest.err conftest.$ac_ext
15439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15440 echo "${ECHO_T}$ac_header_preproc" >&6; }
15441
15442 # So?  What about this header?
15443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15444   yes:no: )
15445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15449     ac_header_preproc=yes
15450     ;;
15451   no:yes:* )
15452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15464     ( cat <<\_ASBOX
15465 ## ------------------------------ ##
15466 ## Report this to bugs@yourdomain ##
15467 ## ------------------------------ ##
15468 _ASBOX
15469      ) | sed "s/^/$as_me: WARNING:     /" >&2
15470     ;;
15471 esac
15472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15475   echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477   eval "$as_ac_Header=\$ac_header_preproc"
15478 fi
15479 ac_res=`eval echo '${'$as_ac_Header'}'`
15480                { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15482
15483 fi
15484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15485   cat >>confdefs.h <<_ACEOF
15486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15487 _ACEOF
15488  HAVE_PTHREAD=1
15489
15490 else
15491   HAVE_PTHREAD=0
15492
15493 fi
15494
15495 done
15496
15497 else
15498   HAVE_PTHREAD=0
15499
15500 fi
15501
15502 if test "$llvm_cv_enable_libffi" = "yes" ; then
15503
15504
15505 for ac_header in ffi.h ffi/ffi.h
15506 do
15507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15513 fi
15514 ac_res=`eval echo '${'$as_ac_Header'}'`
15515                { echo "$as_me:$LINENO: result: $ac_res" >&5
15516 echo "${ECHO_T}$ac_res" >&6; }
15517 else
15518   # Is the header compilable?
15519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* confdefs.h.  */
15523 _ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h.  */
15527 $ac_includes_default
15528 #include <$ac_header>
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (ac_try="$ac_compile"
15532 case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537   (eval "$ac_compile") 2>conftest.er1
15538   ac_status=$?
15539   grep -v '^ *+' conftest.er1 >conftest.err
15540   rm -f conftest.er1
15541   cat conftest.err >&5
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } &&
15544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15545   { (case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_try") 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; } &&
15554          { ac_try='test -s conftest.$ac_objext'
15555   { (case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_try") 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }; }; then
15564   ac_header_compiler=yes
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15568
15569         ac_header_compiler=no
15570 fi
15571
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574 echo "${ECHO_T}$ac_header_compiler" >&6; }
15575
15576 # Is the header present?
15577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15580 /* confdefs.h.  */
15581 _ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h.  */
15585 #include <$ac_header>
15586 _ACEOF
15587 if { (ac_try="$ac_cpp conftest.$ac_ext"
15588 case "(($ac_try" in
15589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590   *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } >/dev/null; then
15600   if test -s conftest.err; then
15601     ac_cpp_err=$ac_c_preproc_warn_flag
15602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15603   else
15604     ac_cpp_err=
15605   fi
15606 else
15607   ac_cpp_err=yes
15608 fi
15609 if test -z "$ac_cpp_err"; then
15610   ac_header_preproc=yes
15611 else
15612   echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615   ac_header_preproc=no
15616 fi
15617
15618 rm -f conftest.err conftest.$ac_ext
15619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15620 echo "${ECHO_T}$ac_header_preproc" >&6; }
15621
15622 # So?  What about this header?
15623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15624   yes:no: )
15625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15629     ac_header_preproc=yes
15630     ;;
15631   no:yes:* )
15632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15644     ( cat <<\_ASBOX
15645 ## ------------------------------ ##
15646 ## Report this to bugs@yourdomain ##
15647 ## ------------------------------ ##
15648 _ASBOX
15649      ) | sed "s/^/$as_me: WARNING:     /" >&2
15650     ;;
15651 esac
15652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15655   echo $ECHO_N "(cached) $ECHO_C" >&6
15656 else
15657   eval "$as_ac_Header=\$ac_header_preproc"
15658 fi
15659 ac_res=`eval echo '${'$as_ac_Header'}'`
15660                { echo "$as_me:$LINENO: result: $ac_res" >&5
15661 echo "${ECHO_T}$ac_res" >&6; }
15662
15663 fi
15664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15665   cat >>confdefs.h <<_ACEOF
15666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15667 _ACEOF
15668
15669 fi
15670
15671 done
15672
15673 fi
15674
15675
15676 for ac_header in CrashReporterClient.h
15677 do
15678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15680   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15683   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 fi
15685 ac_res=`eval echo '${'$as_ac_Header'}'`
15686                { echo "$as_me:$LINENO: result: $ac_res" >&5
15687 echo "${ECHO_T}$ac_res" >&6; }
15688 else
15689   # Is the header compilable?
15690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 $ac_includes_default
15699 #include <$ac_header>
15700 _ACEOF
15701 rm -f conftest.$ac_objext
15702 if { (ac_try="$ac_compile"
15703 case "(($ac_try" in
15704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705   *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708   (eval "$ac_compile") 2>conftest.er1
15709   ac_status=$?
15710   grep -v '^ *+' conftest.er1 >conftest.err
15711   rm -f conftest.er1
15712   cat conftest.err >&5
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } &&
15715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15716   { (case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721   (eval "$ac_try") 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; } &&
15725          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; }; then
15735   ac_header_compiler=yes
15736 else
15737   echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740         ac_header_compiler=no
15741 fi
15742
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15745 echo "${ECHO_T}$ac_header_compiler" >&6; }
15746
15747 # Is the header present?
15748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756 #include <$ac_header>
15757 _ACEOF
15758 if { (ac_try="$ac_cpp conftest.$ac_ext"
15759 case "(($ac_try" in
15760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761   *) ac_try_echo=$ac_try;;
15762 esac
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15765   ac_status=$?
15766   grep -v '^ *+' conftest.er1 >conftest.err
15767   rm -f conftest.er1
15768   cat conftest.err >&5
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); } >/dev/null; then
15771   if test -s conftest.err; then
15772     ac_cpp_err=$ac_c_preproc_warn_flag
15773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15774   else
15775     ac_cpp_err=
15776   fi
15777 else
15778   ac_cpp_err=yes
15779 fi
15780 if test -z "$ac_cpp_err"; then
15781   ac_header_preproc=yes
15782 else
15783   echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15785
15786   ac_header_preproc=no
15787 fi
15788
15789 rm -f conftest.err conftest.$ac_ext
15790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15791 echo "${ECHO_T}$ac_header_preproc" >&6; }
15792
15793 # So?  What about this header?
15794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795   yes:no: )
15796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15800     ac_header_preproc=yes
15801     ;;
15802   no:yes:* )
15803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15815     ( cat <<\_ASBOX
15816 ## ------------------------------ ##
15817 ## Report this to bugs@yourdomain ##
15818 ## ------------------------------ ##
15819 _ASBOX
15820      ) | sed "s/^/$as_me: WARNING:     /" >&2
15821     ;;
15822 esac
15823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   eval "$as_ac_Header=\$ac_header_preproc"
15829 fi
15830 ac_res=`eval echo '${'$as_ac_Header'}'`
15831                { echo "$as_me:$LINENO: result: $ac_res" >&5
15832 echo "${ECHO_T}$ac_res" >&6; }
15833
15834 fi
15835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15836   cat >>confdefs.h <<_ACEOF
15837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15838 _ACEOF
15839
15840 fi
15841
15842 done
15843
15844
15845 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15846 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 extern const char *__crashreporter_info__;
15854       int main() {
15855         __crashreporter_info__ = "test";
15856         return 0;
15857       }
15858
15859 _ACEOF
15860 rm -f conftest.$ac_objext conftest$ac_exeext
15861 if { (ac_try="$ac_link"
15862 case "(($ac_try" in
15863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864   *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867   (eval "$ac_link") 2>conftest.er1
15868   ac_status=$?
15869   grep -v '^ *+' conftest.er1 >conftest.err
15870   rm -f conftest.er1
15871   cat conftest.err >&5
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } &&
15874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15875   { (case "(($ac_try" in
15876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877   *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880   (eval "$ac_try") 2>&5
15881   ac_status=$?
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); }; } &&
15884          { ac_try='test -s conftest$ac_exeext'
15885   { (case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_try") 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }; }; then
15894   { echo "$as_me:$LINENO: result: yes" >&5
15895 echo "${ECHO_T}yes" >&6; }
15896
15897 cat >>confdefs.h <<\_ACEOF
15898 #define HAVE_CRASHREPORTER_INFO 1
15899 _ACEOF
15900
15901 else
15902   echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15904
15905         { echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6; }
15907
15908 cat >>confdefs.h <<\_ACEOF
15909 #define HAVE_CRASHREPORTER_INFO 0
15910 _ACEOF
15911
15912 fi
15913
15914 rm -f core conftest.err conftest.$ac_objext \
15915       conftest$ac_exeext conftest.$ac_ext
15916
15917
15918
15919
15920   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15921 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15922 if test "${ac_cv_huge_val_sanity+set}" = set; then
15923   echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925
15926     ac_ext=cpp
15927 ac_cpp='$CXXCPP $CPPFLAGS'
15928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15931
15932     ac_save_CXXFLAGS=$CXXFLAGS
15933     CXXFLAGS=-pedantic
15934     if test "$cross_compiling" = yes; then
15935   ac_cv_huge_val_sanity=yes
15936 else
15937   cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943 #include <math.h>
15944 int
15945 main ()
15946 {
15947 double x = HUGE_VAL; return x != x;
15948   ;
15949   return 0;
15950 }
15951 _ACEOF
15952 rm -f conftest$ac_exeext
15953 if { (ac_try="$ac_link"
15954 case "(($ac_try" in
15955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956   *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959   (eval "$ac_link") 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963   { (case "(($ac_try" in
15964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965   *) ac_try_echo=$ac_try;;
15966 esac
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968   (eval "$ac_try") 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; }; then
15972   ac_cv_huge_val_sanity=yes
15973 else
15974   echo "$as_me: program exited with status $ac_status" >&5
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 ( exit $ac_status )
15979 ac_cv_huge_val_sanity=no
15980 fi
15981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15982 fi
15983
15984
15985     CXXFLAGS=$ac_save_CXXFLAGS
15986     ac_ext=c
15987 ac_cpp='$CPP $CPPFLAGS'
15988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15991
15992
15993 fi
15994 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
15995 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
15996   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
15997
15998
15999 { echo "$as_me:$LINENO: checking for pid_t" >&5
16000 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16001 if test "${ac_cv_type_pid_t+set}" = set; then
16002   echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004   cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h.  */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h.  */
16010 $ac_includes_default
16011 typedef pid_t ac__type_new_;
16012 int
16013 main ()
16014 {
16015 if ((ac__type_new_ *) 0)
16016   return 0;
16017 if (sizeof (ac__type_new_))
16018   return 0;
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (ac_try="$ac_compile"
16025 case "(($ac_try" in
16026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027   *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030   (eval "$ac_compile") 2>conftest.er1
16031   ac_status=$?
16032   grep -v '^ *+' conftest.er1 >conftest.err
16033   rm -f conftest.er1
16034   cat conftest.err >&5
16035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036   (exit $ac_status); } &&
16037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16038   { (case "(($ac_try" in
16039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040   *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043   (eval "$ac_try") 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; } &&
16047          { ac_try='test -s conftest.$ac_objext'
16048   { (case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_try") 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; }; then
16057   ac_cv_type_pid_t=yes
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062         ac_cv_type_pid_t=no
16063 fi
16064
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066 fi
16067 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16068 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16069 if test $ac_cv_type_pid_t = yes; then
16070   :
16071 else
16072
16073 cat >>confdefs.h <<_ACEOF
16074 #define pid_t int
16075 _ACEOF
16076
16077 fi
16078
16079 { echo "$as_me:$LINENO: checking for size_t" >&5
16080 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16081 if test "${ac_cv_type_size_t+set}" = set; then
16082   echo $ECHO_N "(cached) $ECHO_C" >&6
16083 else
16084   cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h.  */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h.  */
16090 $ac_includes_default
16091 typedef size_t ac__type_new_;
16092 int
16093 main ()
16094 {
16095 if ((ac__type_new_ *) 0)
16096   return 0;
16097 if (sizeof (ac__type_new_))
16098   return 0;
16099   ;
16100   return 0;
16101 }
16102 _ACEOF
16103 rm -f conftest.$ac_objext
16104 if { (ac_try="$ac_compile"
16105 case "(($ac_try" in
16106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107   *) ac_try_echo=$ac_try;;
16108 esac
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110   (eval "$ac_compile") 2>conftest.er1
16111   ac_status=$?
16112   grep -v '^ *+' conftest.er1 >conftest.err
16113   rm -f conftest.er1
16114   cat conftest.err >&5
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); } &&
16117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16118   { (case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_try") 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; } &&
16127          { ac_try='test -s conftest.$ac_objext'
16128   { (case "(($ac_try" in
16129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130   *) ac_try_echo=$ac_try;;
16131 esac
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133   (eval "$ac_try") 2>&5
16134   ac_status=$?
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); }; }; then
16137   ac_cv_type_size_t=yes
16138 else
16139   echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16141
16142         ac_cv_type_size_t=no
16143 fi
16144
16145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146 fi
16147 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16148 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16149 if test $ac_cv_type_size_t = yes; then
16150   :
16151 else
16152
16153 cat >>confdefs.h <<_ACEOF
16154 #define size_t unsigned int
16155 _ACEOF
16156
16157 fi
16158
16159
16160 cat >>confdefs.h <<_ACEOF
16161 #define RETSIGTYPE void
16162 _ACEOF
16163
16164 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16165 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16166 if test "${ac_cv_struct_tm+set}" = set; then
16167   echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169   cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h.  */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h.  */
16175 #include <sys/types.h>
16176 #include <time.h>
16177
16178 int
16179 main ()
16180 {
16181 struct tm *tp; tp->tm_sec;
16182   ;
16183   return 0;
16184 }
16185 _ACEOF
16186 rm -f conftest.$ac_objext
16187 if { (ac_try="$ac_compile"
16188 case "(($ac_try" in
16189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190   *) ac_try_echo=$ac_try;;
16191 esac
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193   (eval "$ac_compile") 2>conftest.er1
16194   ac_status=$?
16195   grep -v '^ *+' conftest.er1 >conftest.err
16196   rm -f conftest.er1
16197   cat conftest.err >&5
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); } &&
16200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16201   { (case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_try") 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }; } &&
16210          { ac_try='test -s conftest.$ac_objext'
16211   { (case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216   (eval "$ac_try") 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; }; then
16220   ac_cv_struct_tm=time.h
16221 else
16222   echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225         ac_cv_struct_tm=sys/time.h
16226 fi
16227
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 fi
16230 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16231 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16232 if test $ac_cv_struct_tm = sys/time.h; then
16233
16234 cat >>confdefs.h <<\_ACEOF
16235 #define TM_IN_SYS_TIME 1
16236 _ACEOF
16237
16238 fi
16239
16240 { echo "$as_me:$LINENO: checking for int64_t" >&5
16241 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16242 if test "${ac_cv_type_int64_t+set}" = set; then
16243   echo $ECHO_N "(cached) $ECHO_C" >&6
16244 else
16245   cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h.  */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h.  */
16251 $ac_includes_default
16252 typedef int64_t ac__type_new_;
16253 int
16254 main ()
16255 {
16256 if ((ac__type_new_ *) 0)
16257   return 0;
16258 if (sizeof (ac__type_new_))
16259   return 0;
16260   ;
16261   return 0;
16262 }
16263 _ACEOF
16264 rm -f conftest.$ac_objext
16265 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16272   ac_status=$?
16273   grep -v '^ *+' conftest.er1 >conftest.err
16274   rm -f conftest.er1
16275   cat conftest.err >&5
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } &&
16278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16279   { (case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284   (eval "$ac_try") 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; } &&
16288          { ac_try='test -s conftest.$ac_objext'
16289   { (case "(($ac_try" in
16290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291   *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294   (eval "$ac_try") 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); }; }; then
16298   ac_cv_type_int64_t=yes
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303         ac_cv_type_int64_t=no
16304 fi
16305
16306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307 fi
16308 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16309 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16310 if test $ac_cv_type_int64_t = yes; then
16311
16312 cat >>confdefs.h <<_ACEOF
16313 #define HAVE_INT64_T 1
16314 _ACEOF
16315
16316
16317 else
16318   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16319 echo "$as_me: error: Type int64_t required but not found" >&2;}
16320    { (exit 1); exit 1; }; }
16321 fi
16322
16323 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16324 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16325 if test "${ac_cv_type_uint64_t+set}" = set; then
16326   echo $ECHO_N "(cached) $ECHO_C" >&6
16327 else
16328   cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h.  */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h.  */
16334 $ac_includes_default
16335 typedef uint64_t ac__type_new_;
16336 int
16337 main ()
16338 {
16339 if ((ac__type_new_ *) 0)
16340   return 0;
16341 if (sizeof (ac__type_new_))
16342   return 0;
16343   ;
16344   return 0;
16345 }
16346 _ACEOF
16347 rm -f conftest.$ac_objext
16348 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16355   ac_status=$?
16356   grep -v '^ *+' conftest.er1 >conftest.err
16357   rm -f conftest.er1
16358   cat conftest.err >&5
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); } &&
16361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16362   { (case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367   (eval "$ac_try") 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); }; } &&
16371          { ac_try='test -s conftest.$ac_objext'
16372   { (case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377   (eval "$ac_try") 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; }; then
16381   ac_cv_type_uint64_t=yes
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386         ac_cv_type_uint64_t=no
16387 fi
16388
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 fi
16391 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16392 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16393 if test $ac_cv_type_uint64_t = yes; then
16394
16395 cat >>confdefs.h <<_ACEOF
16396 #define HAVE_UINT64_T 1
16397 _ACEOF
16398
16399
16400 else
16401   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16402 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16403 if test "${ac_cv_type_u_int64_t+set}" = set; then
16404   echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406   cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h.  */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h.  */
16412 $ac_includes_default
16413 typedef u_int64_t ac__type_new_;
16414 int
16415 main ()
16416 {
16417 if ((ac__type_new_ *) 0)
16418   return 0;
16419 if (sizeof (ac__type_new_))
16420   return 0;
16421   ;
16422   return 0;
16423 }
16424 _ACEOF
16425 rm -f conftest.$ac_objext
16426 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16433   ac_status=$?
16434   grep -v '^ *+' conftest.er1 >conftest.err
16435   rm -f conftest.er1
16436   cat conftest.err >&5
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); } &&
16439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16440   { (case "(($ac_try" in
16441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442   *) ac_try_echo=$ac_try;;
16443 esac
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445   (eval "$ac_try") 2>&5
16446   ac_status=$?
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); }; } &&
16449          { ac_try='test -s conftest.$ac_objext'
16450   { (case "(($ac_try" in
16451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452   *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455   (eval "$ac_try") 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; }; then
16459   ac_cv_type_u_int64_t=yes
16460 else
16461   echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464         ac_cv_type_u_int64_t=no
16465 fi
16466
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16468 fi
16469 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16470 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16471 if test $ac_cv_type_u_int64_t = yes; then
16472
16473 cat >>confdefs.h <<_ACEOF
16474 #define HAVE_U_INT64_T 1
16475 _ACEOF
16476
16477
16478 else
16479   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16480 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16481    { (exit 1); exit 1; }; }
16482 fi
16483
16484 fi
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16496 do
16497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503   cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16511 #define $ac_func innocuous_$ac_func
16512
16513 /* System header to define __stub macros and hopefully few prototypes,
16514     which can conflict with char $ac_func (); below.
16515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16516     <limits.h> exists even on freestanding compilers.  */
16517
16518 #ifdef __STDC__
16519 # include <limits.h>
16520 #else
16521 # include <assert.h>
16522 #endif
16523
16524 #undef $ac_func
16525
16526 /* Override any GCC internal prototype to avoid an error.
16527    Use char because int might match the return type of a GCC
16528    builtin and then its argument prototype would still apply.  */
16529 #ifdef __cplusplus
16530 extern "C"
16531 #endif
16532 char $ac_func ();
16533 /* The GNU C library defines this for functions which it implements
16534     to always fail with ENOSYS.  Some functions are actually named
16535     something starting with __ and the normal name is an alias.  */
16536 #if defined __stub_$ac_func || defined __stub___$ac_func
16537 choke me
16538 #endif
16539
16540 int
16541 main ()
16542 {
16543 return $ac_func ();
16544   ;
16545   return 0;
16546 }
16547 _ACEOF
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (ac_try="$ac_link"
16550 case "(($ac_try" in
16551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552   *) ac_try_echo=$ac_try;;
16553 esac
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555   (eval "$ac_link") 2>conftest.er1
16556   ac_status=$?
16557   grep -v '^ *+' conftest.er1 >conftest.err
16558   rm -f conftest.er1
16559   cat conftest.err >&5
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); } &&
16562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16563   { (case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568   (eval "$ac_try") 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; } &&
16572          { ac_try='test -s conftest$ac_exeext'
16573   { (case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578   (eval "$ac_try") 2>&5
16579   ac_status=$?
16580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581   (exit $ac_status); }; }; then
16582   eval "$as_ac_var=yes"
16583 else
16584   echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16586
16587         eval "$as_ac_var=no"
16588 fi
16589
16590 rm -f core conftest.err conftest.$ac_objext \
16591       conftest$ac_exeext conftest.$ac_ext
16592 fi
16593 ac_res=`eval echo '${'$as_ac_var'}'`
16594                { echo "$as_me:$LINENO: result: $ac_res" >&5
16595 echo "${ECHO_T}$ac_res" >&6; }
16596 if test `eval echo '${'$as_ac_var'}'` = yes; then
16597   cat >>confdefs.h <<_ACEOF
16598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16599 _ACEOF
16600
16601 fi
16602 done
16603
16604
16605
16606
16607
16608 for ac_func in powf fmodf strtof round
16609 do
16610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616   cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16624 #define $ac_func innocuous_$ac_func
16625
16626 /* System header to define __stub macros and hopefully few prototypes,
16627     which can conflict with char $ac_func (); below.
16628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16629     <limits.h> exists even on freestanding compilers.  */
16630
16631 #ifdef __STDC__
16632 # include <limits.h>
16633 #else
16634 # include <assert.h>
16635 #endif
16636
16637 #undef $ac_func
16638
16639 /* Override any GCC internal prototype to avoid an error.
16640    Use char because int might match the return type of a GCC
16641    builtin and then its argument prototype would still apply.  */
16642 #ifdef __cplusplus
16643 extern "C"
16644 #endif
16645 char $ac_func ();
16646 /* The GNU C library defines this for functions which it implements
16647     to always fail with ENOSYS.  Some functions are actually named
16648     something starting with __ and the normal name is an alias.  */
16649 #if defined __stub_$ac_func || defined __stub___$ac_func
16650 choke me
16651 #endif
16652
16653 int
16654 main ()
16655 {
16656 return $ac_func ();
16657   ;
16658   return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_link") 2>conftest.er1
16669   ac_status=$?
16670   grep -v '^ *+' conftest.er1 >conftest.err
16671   rm -f conftest.er1
16672   cat conftest.err >&5
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); } &&
16675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; } &&
16685          { ac_try='test -s conftest$ac_exeext'
16686   { (case "(($ac_try" in
16687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688   *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691   (eval "$ac_try") 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); }; }; then
16695   eval "$as_ac_var=yes"
16696 else
16697   echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700         eval "$as_ac_var=no"
16701 fi
16702
16703 rm -f core conftest.err conftest.$ac_objext \
16704       conftest$ac_exeext conftest.$ac_ext
16705 fi
16706 ac_res=`eval echo '${'$as_ac_var'}'`
16707                { echo "$as_me:$LINENO: result: $ac_res" >&5
16708 echo "${ECHO_T}$ac_res" >&6; }
16709 if test `eval echo '${'$as_ac_var'}'` = yes; then
16710   cat >>confdefs.h <<_ACEOF
16711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16712 _ACEOF
16713
16714 fi
16715 done
16716
16717
16718
16719
16720
16721
16722 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16723 do
16724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16728   echo $ECHO_N "(cached) $ECHO_C" >&6
16729 else
16730   cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h.  */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h.  */
16736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16738 #define $ac_func innocuous_$ac_func
16739
16740 /* System header to define __stub macros and hopefully few prototypes,
16741     which can conflict with char $ac_func (); below.
16742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16743     <limits.h> exists even on freestanding compilers.  */
16744
16745 #ifdef __STDC__
16746 # include <limits.h>
16747 #else
16748 # include <assert.h>
16749 #endif
16750
16751 #undef $ac_func
16752
16753 /* Override any GCC internal prototype to avoid an error.
16754    Use char because int might match the return type of a GCC
16755    builtin and then its argument prototype would still apply.  */
16756 #ifdef __cplusplus
16757 extern "C"
16758 #endif
16759 char $ac_func ();
16760 /* The GNU C library defines this for functions which it implements
16761     to always fail with ENOSYS.  Some functions are actually named
16762     something starting with __ and the normal name is an alias.  */
16763 #if defined __stub_$ac_func || defined __stub___$ac_func
16764 choke me
16765 #endif
16766
16767 int
16768 main ()
16769 {
16770 return $ac_func ();
16771   ;
16772   return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest.$ac_objext conftest$ac_exeext
16776 if { (ac_try="$ac_link"
16777 case "(($ac_try" in
16778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779   *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782   (eval "$ac_link") 2>conftest.er1
16783   ac_status=$?
16784   grep -v '^ *+' conftest.er1 >conftest.err
16785   rm -f conftest.er1
16786   cat conftest.err >&5
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); } &&
16789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16790   { (case "(($ac_try" in
16791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792   *) ac_try_echo=$ac_try;;
16793 esac
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795   (eval "$ac_try") 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); }; } &&
16799          { ac_try='test -s conftest$ac_exeext'
16800   { (case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_try") 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; }; then
16809   eval "$as_ac_var=yes"
16810 else
16811   echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16813
16814         eval "$as_ac_var=no"
16815 fi
16816
16817 rm -f core conftest.err conftest.$ac_objext \
16818       conftest$ac_exeext conftest.$ac_ext
16819 fi
16820 ac_res=`eval echo '${'$as_ac_var'}'`
16821                { echo "$as_me:$LINENO: result: $ac_res" >&5
16822 echo "${ECHO_T}$ac_res" >&6; }
16823 if test `eval echo '${'$as_ac_var'}'` = yes; then
16824   cat >>confdefs.h <<_ACEOF
16825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16826 _ACEOF
16827
16828 fi
16829 done
16830
16831
16832
16833
16834 for ac_func in isatty mkdtemp mkstemp
16835 do
16836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842   cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h.  */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h.  */
16848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16850 #define $ac_func innocuous_$ac_func
16851
16852 /* System header to define __stub macros and hopefully few prototypes,
16853     which can conflict with char $ac_func (); below.
16854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855     <limits.h> exists even on freestanding compilers.  */
16856
16857 #ifdef __STDC__
16858 # include <limits.h>
16859 #else
16860 # include <assert.h>
16861 #endif
16862
16863 #undef $ac_func
16864
16865 /* Override any GCC internal prototype to avoid an error.
16866    Use char because int might match the return type of a GCC
16867    builtin and then its argument prototype would still apply.  */
16868 #ifdef __cplusplus
16869 extern "C"
16870 #endif
16871 char $ac_func ();
16872 /* The GNU C library defines this for functions which it implements
16873     to always fail with ENOSYS.  Some functions are actually named
16874     something starting with __ and the normal name is an alias.  */
16875 #if defined __stub_$ac_func || defined __stub___$ac_func
16876 choke me
16877 #endif
16878
16879 int
16880 main ()
16881 {
16882 return $ac_func ();
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (ac_try="$ac_link"
16889 case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894   (eval "$ac_link") 2>conftest.er1
16895   ac_status=$?
16896   grep -v '^ *+' conftest.er1 >conftest.err
16897   rm -f conftest.er1
16898   cat conftest.err >&5
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); } &&
16901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902   { (case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_try") 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); }; } &&
16911          { ac_try='test -s conftest$ac_exeext'
16912   { (case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_try") 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; }; then
16921   eval "$as_ac_var=yes"
16922 else
16923   echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16925
16926         eval "$as_ac_var=no"
16927 fi
16928
16929 rm -f core conftest.err conftest.$ac_objext \
16930       conftest$ac_exeext conftest.$ac_ext
16931 fi
16932 ac_res=`eval echo '${'$as_ac_var'}'`
16933                { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16935 if test `eval echo '${'$as_ac_var'}'` = yes; then
16936   cat >>confdefs.h <<_ACEOF
16937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16938 _ACEOF
16939
16940 fi
16941 done
16942
16943
16944
16945
16946
16947
16948
16949 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16950 do
16951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16955   echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957   cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16965 #define $ac_func innocuous_$ac_func
16966
16967 /* System header to define __stub macros and hopefully few prototypes,
16968     which can conflict with char $ac_func (); below.
16969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970     <limits.h> exists even on freestanding compilers.  */
16971
16972 #ifdef __STDC__
16973 # include <limits.h>
16974 #else
16975 # include <assert.h>
16976 #endif
16977
16978 #undef $ac_func
16979
16980 /* Override any GCC internal prototype to avoid an error.
16981    Use char because int might match the return type of a GCC
16982    builtin and then its argument prototype would still apply.  */
16983 #ifdef __cplusplus
16984 extern "C"
16985 #endif
16986 char $ac_func ();
16987 /* The GNU C library defines this for functions which it implements
16988     to always fail with ENOSYS.  Some functions are actually named
16989     something starting with __ and the normal name is an alias.  */
16990 #if defined __stub_$ac_func || defined __stub___$ac_func
16991 choke me
16992 #endif
16993
16994 int
16995 main ()
16996 {
16997 return $ac_func ();
16998   ;
16999   return 0;
17000 }
17001 _ACEOF
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_link") 2>conftest.er1
17010   ac_status=$?
17011   grep -v '^ *+' conftest.er1 >conftest.err
17012   rm -f conftest.er1
17013   cat conftest.err >&5
17014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015   (exit $ac_status); } &&
17016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017   { (case "(($ac_try" in
17018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019   *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022   (eval "$ac_try") 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; } &&
17026          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; }; then
17036   eval "$as_ac_var=yes"
17037 else
17038   echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041         eval "$as_ac_var=no"
17042 fi
17043
17044 rm -f core conftest.err conftest.$ac_objext \
17045       conftest$ac_exeext conftest.$ac_ext
17046 fi
17047 ac_res=`eval echo '${'$as_ac_var'}'`
17048                { echo "$as_me:$LINENO: result: $ac_res" >&5
17049 echo "${ECHO_T}$ac_res" >&6; }
17050 if test `eval echo '${'$as_ac_var'}'` = yes; then
17051   cat >>confdefs.h <<_ACEOF
17052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17053 _ACEOF
17054
17055 fi
17056 done
17057
17058
17059
17060
17061 for ac_func in strerror strerror_r setenv
17062 do
17063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17067   echo $ECHO_N "(cached) $ECHO_C" >&6
17068 else
17069   cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h.  */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h.  */
17075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17077 #define $ac_func innocuous_$ac_func
17078
17079 /* System header to define __stub macros and hopefully few prototypes,
17080     which can conflict with char $ac_func (); below.
17081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082     <limits.h> exists even on freestanding compilers.  */
17083
17084 #ifdef __STDC__
17085 # include <limits.h>
17086 #else
17087 # include <assert.h>
17088 #endif
17089
17090 #undef $ac_func
17091
17092 /* Override any GCC internal prototype to avoid an error.
17093    Use char because int might match the return type of a GCC
17094    builtin and then its argument prototype would still apply.  */
17095 #ifdef __cplusplus
17096 extern "C"
17097 #endif
17098 char $ac_func ();
17099 /* The GNU C library defines this for functions which it implements
17100     to always fail with ENOSYS.  Some functions are actually named
17101     something starting with __ and the normal name is an alias.  */
17102 #if defined __stub_$ac_func || defined __stub___$ac_func
17103 choke me
17104 #endif
17105
17106 int
17107 main ()
17108 {
17109 return $ac_func ();
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 rm -f conftest.$ac_objext conftest$ac_exeext
17115 if { (ac_try="$ac_link"
17116 case "(($ac_try" in
17117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118   *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121   (eval "$ac_link") 2>conftest.er1
17122   ac_status=$?
17123   grep -v '^ *+' conftest.er1 >conftest.err
17124   rm -f conftest.er1
17125   cat conftest.err >&5
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } &&
17128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17129   { (case "(($ac_try" in
17130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131   *) ac_try_echo=$ac_try;;
17132 esac
17133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134   (eval "$ac_try") 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; } &&
17138          { ac_try='test -s conftest$ac_exeext'
17139   { (case "(($ac_try" in
17140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141   *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144   (eval "$ac_try") 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; }; then
17148   eval "$as_ac_var=yes"
17149 else
17150   echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153         eval "$as_ac_var=no"
17154 fi
17155
17156 rm -f core conftest.err conftest.$ac_objext \
17157       conftest$ac_exeext conftest.$ac_ext
17158 fi
17159 ac_res=`eval echo '${'$as_ac_var'}'`
17160                { echo "$as_me:$LINENO: result: $ac_res" >&5
17161 echo "${ECHO_T}$ac_res" >&6; }
17162 if test `eval echo '${'$as_ac_var'}'` = yes; then
17163   cat >>confdefs.h <<_ACEOF
17164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17165 _ACEOF
17166
17167 fi
17168 done
17169
17170
17171
17172
17173
17174 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17175 do
17176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182   cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17190 #define $ac_func innocuous_$ac_func
17191
17192 /* System header to define __stub macros and hopefully few prototypes,
17193     which can conflict with char $ac_func (); below.
17194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195     <limits.h> exists even on freestanding compilers.  */
17196
17197 #ifdef __STDC__
17198 # include <limits.h>
17199 #else
17200 # include <assert.h>
17201 #endif
17202
17203 #undef $ac_func
17204
17205 /* Override any GCC internal prototype to avoid an error.
17206    Use char because int might match the return type of a GCC
17207    builtin and then its argument prototype would still apply.  */
17208 #ifdef __cplusplus
17209 extern "C"
17210 #endif
17211 char $ac_func ();
17212 /* The GNU C library defines this for functions which it implements
17213     to always fail with ENOSYS.  Some functions are actually named
17214     something starting with __ and the normal name is an alias.  */
17215 #if defined __stub_$ac_func || defined __stub___$ac_func
17216 choke me
17217 #endif
17218
17219 int
17220 main ()
17221 {
17222 return $ac_func ();
17223   ;
17224   return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_link") 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } &&
17241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242   { (case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_try") 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; } &&
17251          { ac_try='test -s conftest$ac_exeext'
17252   { (case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_try") 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; }; then
17261   eval "$as_ac_var=yes"
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266         eval "$as_ac_var=no"
17267 fi
17268
17269 rm -f core conftest.err conftest.$ac_objext \
17270       conftest$ac_exeext conftest.$ac_ext
17271 fi
17272 ac_res=`eval echo '${'$as_ac_var'}'`
17273                { echo "$as_me:$LINENO: result: $ac_res" >&5
17274 echo "${ECHO_T}$ac_res" >&6; }
17275 if test `eval echo '${'$as_ac_var'}'` = yes; then
17276   cat >>confdefs.h <<_ACEOF
17277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17278 _ACEOF
17279
17280 fi
17281 done
17282
17283
17284
17285
17286
17287
17288 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17289 do
17290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296   cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h.  */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h.  */
17302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17304 #define $ac_func innocuous_$ac_func
17305
17306 /* System header to define __stub macros and hopefully few prototypes,
17307     which can conflict with char $ac_func (); below.
17308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309     <limits.h> exists even on freestanding compilers.  */
17310
17311 #ifdef __STDC__
17312 # include <limits.h>
17313 #else
17314 # include <assert.h>
17315 #endif
17316
17317 #undef $ac_func
17318
17319 /* Override any GCC internal prototype to avoid an error.
17320    Use char because int might match the return type of a GCC
17321    builtin and then its argument prototype would still apply.  */
17322 #ifdef __cplusplus
17323 extern "C"
17324 #endif
17325 char $ac_func ();
17326 /* The GNU C library defines this for functions which it implements
17327     to always fail with ENOSYS.  Some functions are actually named
17328     something starting with __ and the normal name is an alias.  */
17329 #if defined __stub_$ac_func || defined __stub___$ac_func
17330 choke me
17331 #endif
17332
17333 int
17334 main ()
17335 {
17336 return $ac_func ();
17337   ;
17338   return 0;
17339 }
17340 _ACEOF
17341 rm -f conftest.$ac_objext conftest$ac_exeext
17342 if { (ac_try="$ac_link"
17343 case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_link") 2>conftest.er1
17349   ac_status=$?
17350   grep -v '^ *+' conftest.er1 >conftest.err
17351   rm -f conftest.er1
17352   cat conftest.err >&5
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } &&
17355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356   { (case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361   (eval "$ac_try") 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; } &&
17365          { ac_try='test -s conftest$ac_exeext'
17366   { (case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_try") 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; }; then
17375   eval "$as_ac_var=yes"
17376 else
17377   echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380         eval "$as_ac_var=no"
17381 fi
17382
17383 rm -f core conftest.err conftest.$ac_objext \
17384       conftest$ac_exeext conftest.$ac_ext
17385 fi
17386 ac_res=`eval echo '${'$as_ac_var'}'`
17387                { echo "$as_me:$LINENO: result: $ac_res" >&5
17388 echo "${ECHO_T}$ac_res" >&6; }
17389 if test `eval echo '${'$as_ac_var'}'` = yes; then
17390   cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17392 _ACEOF
17393
17394 fi
17395 done
17396
17397 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17398 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17399 if test "${llvm_cv_c_printf_a+set}" = set; then
17400   echo $ECHO_N "(cached) $ECHO_C" >&6
17401 else
17402   ac_ext=c
17403 ac_cpp='$CPP $CPPFLAGS'
17404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17407
17408  if test "$cross_compiling" = yes; then
17409   llvmac_cv_c_printf_a=no
17410 else
17411   cat >conftest.$ac_ext <<_ACEOF
17412
17413   /* confdefs.h.  */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h.  */
17418
17419 #include <stdio.h>
17420 #include <stdlib.h>
17421
17422 int
17423 main ()
17424 {
17425
17426 volatile double A, B;
17427 char Buffer[100];
17428 A = 1;
17429 A /= 10.0;
17430 sprintf(Buffer, "%a", A);
17431 B = atof(Buffer);
17432 if (A != B)
17433   return (1);
17434 if (A != 0x1.999999999999ap-4)
17435   return (1);
17436 return (0);
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_link") 2>&5
17449   ac_status=$?
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17452   { (case "(($ac_try" in
17453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454   *) ac_try_echo=$ac_try;;
17455 esac
17456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457   (eval "$ac_try") 2>&5
17458   ac_status=$?
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); }; }; then
17461   llvm_cv_c_printf_a=yes
17462 else
17463   echo "$as_me: program exited with status $ac_status" >&5
17464 echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17466
17467 ( exit $ac_status )
17468 llvmac_cv_c_printf_a=no
17469 fi
17470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17471 fi
17472
17473
17474  ac_ext=c
17475 ac_cpp='$CPP $CPPFLAGS'
17476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17479
17480 fi
17481 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17482 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17483  if test "$llvm_cv_c_printf_a" = "yes"; then
17484
17485 cat >>confdefs.h <<\_ACEOF
17486 #define HAVE_PRINTF_A 1
17487 _ACEOF
17488
17489  fi
17490
17491
17492 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17493 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17494 if test "${ac_cv_func_rand48+set}" = set; then
17495   echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497   ac_ext=cpp
17498 ac_cpp='$CXXCPP $CPPFLAGS'
17499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17502
17503    cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509 #include <stdlib.h>
17510 int
17511 main ()
17512 {
17513 srand48(0);lrand48();drand48();
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext
17519 if { (ac_try="$ac_compile"
17520 case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_compile") 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17533   { (case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_try") 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest.$ac_objext'
17543   { (case "(($ac_try" in
17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545   *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548   (eval "$ac_try") 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   ac_cv_func_rand48=yes
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557         ac_cv_func_rand48=no
17558 fi
17559
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561   ac_ext=c
17562 ac_cpp='$CPP $CPPFLAGS'
17563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17566
17567 fi
17568 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17569 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17570
17571 if test "$ac_cv_func_rand48" = "yes" ; then
17572
17573 cat >>confdefs.h <<\_ACEOF
17574 #define HAVE_RAND48 1
17575 _ACEOF
17576
17577 fi
17578
17579
17580 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17581 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17582 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17583   echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585   cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 $ac_includes_default
17592 int
17593 main ()
17594 {
17595 #ifndef strerror_s
17596   char *p = (char *) strerror_s;
17597   return !p;
17598 #endif
17599
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext
17605 if { (ac_try="$ac_compile"
17606 case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611   (eval "$ac_compile") 2>conftest.er1
17612   ac_status=$?
17613   grep -v '^ *+' conftest.er1 >conftest.err
17614   rm -f conftest.er1
17615   cat conftest.err >&5
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); } &&
17618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619   { (case "(($ac_try" in
17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621   *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624   (eval "$ac_try") 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; } &&
17628          { ac_try='test -s conftest.$ac_objext'
17629   { (case "(($ac_try" in
17630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631   *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634   (eval "$ac_try") 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; }; then
17638   ac_cv_have_decl_strerror_s=yes
17639 else
17640   echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643         ac_cv_have_decl_strerror_s=no
17644 fi
17645
17646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17647 fi
17648 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17649 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17650 if test $ac_cv_have_decl_strerror_s = yes; then
17651
17652 cat >>confdefs.h <<_ACEOF
17653 #define HAVE_DECL_STRERROR_S 1
17654 _ACEOF
17655
17656
17657 else
17658   cat >>confdefs.h <<_ACEOF
17659 #define HAVE_DECL_STRERROR_S 0
17660 _ACEOF
17661
17662
17663 fi
17664
17665
17666
17667 if test "$llvm_cv_os_type" = "MingW" ; then
17668   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17669 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17670 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17671   echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673   ac_check_lib_save_LIBS=$LIBS
17674 LIBS="-lgcc  $LIBS"
17675 cat >conftest.$ac_ext <<_ACEOF
17676 /* confdefs.h.  */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h.  */
17681
17682 /* Override any GCC internal prototype to avoid an error.
17683    Use char because int might match the return type of a GCC
17684    builtin and then its argument prototype would still apply.  */
17685 #ifdef __cplusplus
17686 extern "C"
17687 #endif
17688 char _alloca ();
17689 int
17690 main ()
17691 {
17692 return _alloca ();
17693   ;
17694   return 0;
17695 }
17696 _ACEOF
17697 rm -f conftest.$ac_objext conftest$ac_exeext
17698 if { (ac_try="$ac_link"
17699 case "(($ac_try" in
17700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701   *) ac_try_echo=$ac_try;;
17702 esac
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704   (eval "$ac_link") 2>conftest.er1
17705   ac_status=$?
17706   grep -v '^ *+' conftest.er1 >conftest.err
17707   rm -f conftest.er1
17708   cat conftest.err >&5
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); } &&
17711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712   { (case "(($ac_try" in
17713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714   *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717   (eval "$ac_try") 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest$ac_exeext'
17722   { (case "(($ac_try" in
17723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724   *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727   (eval "$ac_try") 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; }; then
17731   ac_cv_lib_gcc__alloca=yes
17732 else
17733   echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17735
17736         ac_cv_lib_gcc__alloca=no
17737 fi
17738
17739 rm -f core conftest.err conftest.$ac_objext \
17740       conftest$ac_exeext conftest.$ac_ext
17741 LIBS=$ac_check_lib_save_LIBS
17742 fi
17743 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17744 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17745 if test $ac_cv_lib_gcc__alloca = yes; then
17746
17747 cat >>confdefs.h <<\_ACEOF
17748 #define HAVE__ALLOCA 1
17749 _ACEOF
17750
17751 fi
17752
17753   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17754 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17755 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   ac_check_lib_save_LIBS=$LIBS
17759 LIBS="-lgcc  $LIBS"
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766
17767 /* Override any GCC internal prototype to avoid an error.
17768    Use char because int might match the return type of a GCC
17769    builtin and then its argument prototype would still apply.  */
17770 #ifdef __cplusplus
17771 extern "C"
17772 #endif
17773 char __alloca ();
17774 int
17775 main ()
17776 {
17777 return __alloca ();
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786   *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789   (eval "$ac_link") 2>conftest.er1
17790   ac_status=$?
17791   grep -v '^ *+' conftest.er1 >conftest.err
17792   rm -f conftest.er1
17793   cat conftest.err >&5
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); } &&
17796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17797   { (case "(($ac_try" in
17798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799   *) ac_try_echo=$ac_try;;
17800 esac
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802   (eval "$ac_try") 2>&5
17803   ac_status=$?
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); }; } &&
17806          { ac_try='test -s conftest$ac_exeext'
17807   { (case "(($ac_try" in
17808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809   *) ac_try_echo=$ac_try;;
17810 esac
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812   (eval "$ac_try") 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; }; then
17816   ac_cv_lib_gcc___alloca=yes
17817 else
17818   echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17820
17821         ac_cv_lib_gcc___alloca=no
17822 fi
17823
17824 rm -f core conftest.err conftest.$ac_objext \
17825       conftest$ac_exeext conftest.$ac_ext
17826 LIBS=$ac_check_lib_save_LIBS
17827 fi
17828 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17829 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17830 if test $ac_cv_lib_gcc___alloca = yes; then
17831
17832 cat >>confdefs.h <<\_ACEOF
17833 #define HAVE___ALLOCA 1
17834 _ACEOF
17835
17836 fi
17837
17838   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17839 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17840 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843   ac_check_lib_save_LIBS=$LIBS
17844 LIBS="-lgcc  $LIBS"
17845 cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h.  */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h.  */
17851
17852 /* Override any GCC internal prototype to avoid an error.
17853    Use char because int might match the return type of a GCC
17854    builtin and then its argument prototype would still apply.  */
17855 #ifdef __cplusplus
17856 extern "C"
17857 #endif
17858 char __chkstk ();
17859 int
17860 main ()
17861 {
17862 return __chkstk ();
17863   ;
17864   return 0;
17865 }
17866 _ACEOF
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (ac_try="$ac_link"
17869 case "(($ac_try" in
17870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871   *) ac_try_echo=$ac_try;;
17872 esac
17873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874   (eval "$ac_link") 2>conftest.er1
17875   ac_status=$?
17876   grep -v '^ *+' conftest.er1 >conftest.err
17877   rm -f conftest.er1
17878   cat conftest.err >&5
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); } &&
17881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17882   { (case "(($ac_try" in
17883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884   *) ac_try_echo=$ac_try;;
17885 esac
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887   (eval "$ac_try") 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); }; } &&
17891          { ac_try='test -s conftest$ac_exeext'
17892   { (case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897   (eval "$ac_try") 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; }; then
17901   ac_cv_lib_gcc___chkstk=yes
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906         ac_cv_lib_gcc___chkstk=no
17907 fi
17908
17909 rm -f core conftest.err conftest.$ac_objext \
17910       conftest$ac_exeext conftest.$ac_ext
17911 LIBS=$ac_check_lib_save_LIBS
17912 fi
17913 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17914 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17915 if test $ac_cv_lib_gcc___chkstk = yes; then
17916
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE___CHKSTK 1
17919 _ACEOF
17920
17921 fi
17922
17923   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17924 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17925 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17926   echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928   ac_check_lib_save_LIBS=$LIBS
17929 LIBS="-lgcc  $LIBS"
17930 cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h.  */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h.  */
17936
17937 /* Override any GCC internal prototype to avoid an error.
17938    Use char because int might match the return type of a GCC
17939    builtin and then its argument prototype would still apply.  */
17940 #ifdef __cplusplus
17941 extern "C"
17942 #endif
17943 char ___chkstk ();
17944 int
17945 main ()
17946 {
17947 return ___chkstk ();
17948   ;
17949   return 0;
17950 }
17951 _ACEOF
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (ac_try="$ac_link"
17954 case "(($ac_try" in
17955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956   *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959   (eval "$ac_link") 2>conftest.er1
17960   ac_status=$?
17961   grep -v '^ *+' conftest.er1 >conftest.err
17962   rm -f conftest.er1
17963   cat conftest.err >&5
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); } &&
17966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17967   { (case "(($ac_try" in
17968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969   *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972   (eval "$ac_try") 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; } &&
17976          { ac_try='test -s conftest$ac_exeext'
17977   { (case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982   (eval "$ac_try") 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); }; }; then
17986   ac_cv_lib_gcc____chkstk=yes
17987 else
17988   echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17990
17991         ac_cv_lib_gcc____chkstk=no
17992 fi
17993
17994 rm -f core conftest.err conftest.$ac_objext \
17995       conftest$ac_exeext conftest.$ac_ext
17996 LIBS=$ac_check_lib_save_LIBS
17997 fi
17998 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
17999 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18000 if test $ac_cv_lib_gcc____chkstk = yes; then
18001
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE____CHKSTK 1
18004 _ACEOF
18005
18006 fi
18007
18008
18009   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18010 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18011 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   ac_check_lib_save_LIBS=$LIBS
18015 LIBS="-lgcc  $LIBS"
18016 cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022
18023 /* Override any GCC internal prototype to avoid an error.
18024    Use char because int might match the return type of a GCC
18025    builtin and then its argument prototype would still apply.  */
18026 #ifdef __cplusplus
18027 extern "C"
18028 #endif
18029 char __ashldi3 ();
18030 int
18031 main ()
18032 {
18033 return __ashldi3 ();
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (ac_try="$ac_link"
18040 case "(($ac_try" in
18041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042   *) ac_try_echo=$ac_try;;
18043 esac
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045   (eval "$ac_link") 2>conftest.er1
18046   ac_status=$?
18047   grep -v '^ *+' conftest.er1 >conftest.err
18048   rm -f conftest.er1
18049   cat conftest.err >&5
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); } &&
18052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053   { (case "(($ac_try" in
18054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055   *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058   (eval "$ac_try") 2>&5
18059   ac_status=$?
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); }; } &&
18062          { ac_try='test -s conftest$ac_exeext'
18063   { (case "(($ac_try" in
18064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065   *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068   (eval "$ac_try") 2>&5
18069   ac_status=$?
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); }; }; then
18072   ac_cv_lib_gcc___ashldi3=yes
18073 else
18074   echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077         ac_cv_lib_gcc___ashldi3=no
18078 fi
18079
18080 rm -f core conftest.err conftest.$ac_objext \
18081       conftest$ac_exeext conftest.$ac_ext
18082 LIBS=$ac_check_lib_save_LIBS
18083 fi
18084 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18085 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18086 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18087
18088 cat >>confdefs.h <<\_ACEOF
18089 #define HAVE___ASHLDI3 1
18090 _ACEOF
18091
18092 fi
18093
18094   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18095 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18096 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18097   echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099   ac_check_lib_save_LIBS=$LIBS
18100 LIBS="-lgcc  $LIBS"
18101 cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107
18108 /* Override any GCC internal prototype to avoid an error.
18109    Use char because int might match the return type of a GCC
18110    builtin and then its argument prototype would still apply.  */
18111 #ifdef __cplusplus
18112 extern "C"
18113 #endif
18114 char __ashrdi3 ();
18115 int
18116 main ()
18117 {
18118 return __ashrdi3 ();
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130   (eval "$ac_link") 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } &&
18137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18138   { (case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143   (eval "$ac_try") 2>&5
18144   ac_status=$?
18145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146   (exit $ac_status); }; } &&
18147          { ac_try='test -s conftest$ac_exeext'
18148   { (case "(($ac_try" in
18149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150   *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153   (eval "$ac_try") 2>&5
18154   ac_status=$?
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); }; }; then
18157   ac_cv_lib_gcc___ashrdi3=yes
18158 else
18159   echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18161
18162         ac_cv_lib_gcc___ashrdi3=no
18163 fi
18164
18165 rm -f core conftest.err conftest.$ac_objext \
18166       conftest$ac_exeext conftest.$ac_ext
18167 LIBS=$ac_check_lib_save_LIBS
18168 fi
18169 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18170 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18171 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18172
18173 cat >>confdefs.h <<\_ACEOF
18174 #define HAVE___ASHRDI3 1
18175 _ACEOF
18176
18177 fi
18178
18179   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18180 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18181 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184   ac_check_lib_save_LIBS=$LIBS
18185 LIBS="-lgcc  $LIBS"
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h.  */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h.  */
18192
18193 /* Override any GCC internal prototype to avoid an error.
18194    Use char because int might match the return type of a GCC
18195    builtin and then its argument prototype would still apply.  */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char __divdi3 ();
18200 int
18201 main ()
18202 {
18203 return __divdi3 ();
18204   ;
18205   return 0;
18206 }
18207 _ACEOF
18208 rm -f conftest.$ac_objext conftest$ac_exeext
18209 if { (ac_try="$ac_link"
18210 case "(($ac_try" in
18211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212   *) ac_try_echo=$ac_try;;
18213 esac
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215   (eval "$ac_link") 2>conftest.er1
18216   ac_status=$?
18217   grep -v '^ *+' conftest.er1 >conftest.err
18218   rm -f conftest.er1
18219   cat conftest.err >&5
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); } &&
18222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18223   { (case "(($ac_try" in
18224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225   *) ac_try_echo=$ac_try;;
18226 esac
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228   (eval "$ac_try") 2>&5
18229   ac_status=$?
18230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231   (exit $ac_status); }; } &&
18232          { ac_try='test -s conftest$ac_exeext'
18233   { (case "(($ac_try" in
18234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235   *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238   (eval "$ac_try") 2>&5
18239   ac_status=$?
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); }; }; then
18242   ac_cv_lib_gcc___divdi3=yes
18243 else
18244   echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18246
18247         ac_cv_lib_gcc___divdi3=no
18248 fi
18249
18250 rm -f core conftest.err conftest.$ac_objext \
18251       conftest$ac_exeext conftest.$ac_ext
18252 LIBS=$ac_check_lib_save_LIBS
18253 fi
18254 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18255 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18256 if test $ac_cv_lib_gcc___divdi3 = yes; then
18257
18258 cat >>confdefs.h <<\_ACEOF
18259 #define HAVE___DIVDI3 1
18260 _ACEOF
18261
18262 fi
18263
18264   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18265 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18266 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18267   echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269   ac_check_lib_save_LIBS=$LIBS
18270 LIBS="-lgcc  $LIBS"
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h.  */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h.  */
18277
18278 /* Override any GCC internal prototype to avoid an error.
18279    Use char because int might match the return type of a GCC
18280    builtin and then its argument prototype would still apply.  */
18281 #ifdef __cplusplus
18282 extern "C"
18283 #endif
18284 char __fixdfdi ();
18285 int
18286 main ()
18287 {
18288 return __fixdfdi ();
18289   ;
18290   return 0;
18291 }
18292 _ACEOF
18293 rm -f conftest.$ac_objext conftest$ac_exeext
18294 if { (ac_try="$ac_link"
18295 case "(($ac_try" in
18296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297   *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300   (eval "$ac_link") 2>conftest.er1
18301   ac_status=$?
18302   grep -v '^ *+' conftest.er1 >conftest.err
18303   rm -f conftest.er1
18304   cat conftest.err >&5
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); } &&
18307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18308   { (case "(($ac_try" in
18309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310   *) ac_try_echo=$ac_try;;
18311 esac
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313   (eval "$ac_try") 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; } &&
18317          { ac_try='test -s conftest$ac_exeext'
18318   { (case "(($ac_try" in
18319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320   *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323   (eval "$ac_try") 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; }; then
18327   ac_cv_lib_gcc___fixdfdi=yes
18328 else
18329   echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18331
18332         ac_cv_lib_gcc___fixdfdi=no
18333 fi
18334
18335 rm -f core conftest.err conftest.$ac_objext \
18336       conftest$ac_exeext conftest.$ac_ext
18337 LIBS=$ac_check_lib_save_LIBS
18338 fi
18339 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18340 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18341 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18342
18343 cat >>confdefs.h <<\_ACEOF
18344 #define HAVE___FIXDFDI 1
18345 _ACEOF
18346
18347 fi
18348
18349   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18350 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18351 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18352   echo $ECHO_N "(cached) $ECHO_C" >&6
18353 else
18354   ac_check_lib_save_LIBS=$LIBS
18355 LIBS="-lgcc  $LIBS"
18356 cat >conftest.$ac_ext <<_ACEOF
18357 /* confdefs.h.  */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h.  */
18362
18363 /* Override any GCC internal prototype to avoid an error.
18364    Use char because int might match the return type of a GCC
18365    builtin and then its argument prototype would still apply.  */
18366 #ifdef __cplusplus
18367 extern "C"
18368 #endif
18369 char __fixsfdi ();
18370 int
18371 main ()
18372 {
18373 return __fixsfdi ();
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (ac_try="$ac_link"
18380 case "(($ac_try" in
18381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382   *) ac_try_echo=$ac_try;;
18383 esac
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385   (eval "$ac_link") 2>conftest.er1
18386   ac_status=$?
18387   grep -v '^ *+' conftest.er1 >conftest.err
18388   rm -f conftest.er1
18389   cat conftest.err >&5
18390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); } &&
18392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18393   { (case "(($ac_try" in
18394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395   *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398   (eval "$ac_try") 2>&5
18399   ac_status=$?
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); }; } &&
18402          { ac_try='test -s conftest$ac_exeext'
18403   { (case "(($ac_try" in
18404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405   *) ac_try_echo=$ac_try;;
18406 esac
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408   (eval "$ac_try") 2>&5
18409   ac_status=$?
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); }; }; then
18412   ac_cv_lib_gcc___fixsfdi=yes
18413 else
18414   echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18416
18417         ac_cv_lib_gcc___fixsfdi=no
18418 fi
18419
18420 rm -f core conftest.err conftest.$ac_objext \
18421       conftest$ac_exeext conftest.$ac_ext
18422 LIBS=$ac_check_lib_save_LIBS
18423 fi
18424 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18425 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18426 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18427
18428 cat >>confdefs.h <<\_ACEOF
18429 #define HAVE___FIXSFDI 1
18430 _ACEOF
18431
18432 fi
18433
18434   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18435 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18436 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18437   echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439   ac_check_lib_save_LIBS=$LIBS
18440 LIBS="-lgcc  $LIBS"
18441 cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h.  */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h.  */
18447
18448 /* Override any GCC internal prototype to avoid an error.
18449    Use char because int might match the return type of a GCC
18450    builtin and then its argument prototype would still apply.  */
18451 #ifdef __cplusplus
18452 extern "C"
18453 #endif
18454 char __floatdidf ();
18455 int
18456 main ()
18457 {
18458 return __floatdidf ();
18459   ;
18460   return 0;
18461 }
18462 _ACEOF
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (ac_try="$ac_link"
18465 case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_link") 2>conftest.er1
18471   ac_status=$?
18472   grep -v '^ *+' conftest.er1 >conftest.err
18473   rm -f conftest.er1
18474   cat conftest.err >&5
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); } &&
18477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18478   { (case "(($ac_try" in
18479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480   *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483   (eval "$ac_try") 2>&5
18484   ac_status=$?
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); }; } &&
18487          { ac_try='test -s conftest$ac_exeext'
18488   { (case "(($ac_try" in
18489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490   *) ac_try_echo=$ac_try;;
18491 esac
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493   (eval "$ac_try") 2>&5
18494   ac_status=$?
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); }; }; then
18497   ac_cv_lib_gcc___floatdidf=yes
18498 else
18499   echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18501
18502         ac_cv_lib_gcc___floatdidf=no
18503 fi
18504
18505 rm -f core conftest.err conftest.$ac_objext \
18506       conftest$ac_exeext conftest.$ac_ext
18507 LIBS=$ac_check_lib_save_LIBS
18508 fi
18509 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18510 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18511 if test $ac_cv_lib_gcc___floatdidf = yes; then
18512
18513 cat >>confdefs.h <<\_ACEOF
18514 #define HAVE___FLOATDIDF 1
18515 _ACEOF
18516
18517 fi
18518
18519   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18520 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18521 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18522   echo $ECHO_N "(cached) $ECHO_C" >&6
18523 else
18524   ac_check_lib_save_LIBS=$LIBS
18525 LIBS="-lgcc  $LIBS"
18526 cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h.  */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h.  */
18532
18533 /* Override any GCC internal prototype to avoid an error.
18534    Use char because int might match the return type of a GCC
18535    builtin and then its argument prototype would still apply.  */
18536 #ifdef __cplusplus
18537 extern "C"
18538 #endif
18539 char __lshrdi3 ();
18540 int
18541 main ()
18542 {
18543 return __lshrdi3 ();
18544   ;
18545   return 0;
18546 }
18547 _ACEOF
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552   *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555   (eval "$ac_link") 2>conftest.er1
18556   ac_status=$?
18557   grep -v '^ *+' conftest.er1 >conftest.err
18558   rm -f conftest.er1
18559   cat conftest.err >&5
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } &&
18562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18563   { (case "(($ac_try" in
18564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565   *) ac_try_echo=$ac_try;;
18566 esac
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568   (eval "$ac_try") 2>&5
18569   ac_status=$?
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); }; } &&
18572          { ac_try='test -s conftest$ac_exeext'
18573   { (case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_try") 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; }; then
18582   ac_cv_lib_gcc___lshrdi3=yes
18583 else
18584   echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18586
18587         ac_cv_lib_gcc___lshrdi3=no
18588 fi
18589
18590 rm -f core conftest.err conftest.$ac_objext \
18591       conftest$ac_exeext conftest.$ac_ext
18592 LIBS=$ac_check_lib_save_LIBS
18593 fi
18594 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18595 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18596 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18597
18598 cat >>confdefs.h <<\_ACEOF
18599 #define HAVE___LSHRDI3 1
18600 _ACEOF
18601
18602 fi
18603
18604   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18605 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18606 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18607   echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609   ac_check_lib_save_LIBS=$LIBS
18610 LIBS="-lgcc  $LIBS"
18611 cat >conftest.$ac_ext <<_ACEOF
18612 /* confdefs.h.  */
18613 _ACEOF
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h.  */
18617
18618 /* Override any GCC internal prototype to avoid an error.
18619    Use char because int might match the return type of a GCC
18620    builtin and then its argument prototype would still apply.  */
18621 #ifdef __cplusplus
18622 extern "C"
18623 #endif
18624 char __moddi3 ();
18625 int
18626 main ()
18627 {
18628 return __moddi3 ();
18629   ;
18630   return 0;
18631 }
18632 _ACEOF
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_link") 2>conftest.er1
18641   ac_status=$?
18642   grep -v '^ *+' conftest.er1 >conftest.err
18643   rm -f conftest.er1
18644   cat conftest.err >&5
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); } &&
18647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648   { (case "(($ac_try" in
18649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650   *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653   (eval "$ac_try") 2>&5
18654   ac_status=$?
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); }; } &&
18657          { ac_try='test -s conftest$ac_exeext'
18658   { (case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663   (eval "$ac_try") 2>&5
18664   ac_status=$?
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); }; }; then
18667   ac_cv_lib_gcc___moddi3=yes
18668 else
18669   echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18671
18672         ac_cv_lib_gcc___moddi3=no
18673 fi
18674
18675 rm -f core conftest.err conftest.$ac_objext \
18676       conftest$ac_exeext conftest.$ac_ext
18677 LIBS=$ac_check_lib_save_LIBS
18678 fi
18679 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18680 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18681 if test $ac_cv_lib_gcc___moddi3 = yes; then
18682
18683 cat >>confdefs.h <<\_ACEOF
18684 #define HAVE___MODDI3 1
18685 _ACEOF
18686
18687 fi
18688
18689   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18690 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18691 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18692   echo $ECHO_N "(cached) $ECHO_C" >&6
18693 else
18694   ac_check_lib_save_LIBS=$LIBS
18695 LIBS="-lgcc  $LIBS"
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702
18703 /* Override any GCC internal prototype to avoid an error.
18704    Use char because int might match the return type of a GCC
18705    builtin and then its argument prototype would still apply.  */
18706 #ifdef __cplusplus
18707 extern "C"
18708 #endif
18709 char __udivdi3 ();
18710 int
18711 main ()
18712 {
18713 return __udivdi3 ();
18714   ;
18715   return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_link") 2>conftest.er1
18726   ac_status=$?
18727   grep -v '^ *+' conftest.er1 >conftest.err
18728   rm -f conftest.er1
18729   cat conftest.err >&5
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } &&
18732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18733   { (case "(($ac_try" in
18734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735   *) ac_try_echo=$ac_try;;
18736 esac
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738   (eval "$ac_try") 2>&5
18739   ac_status=$?
18740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741   (exit $ac_status); }; } &&
18742          { ac_try='test -s conftest$ac_exeext'
18743   { (case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748   (eval "$ac_try") 2>&5
18749   ac_status=$?
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); }; }; then
18752   ac_cv_lib_gcc___udivdi3=yes
18753 else
18754   echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18756
18757         ac_cv_lib_gcc___udivdi3=no
18758 fi
18759
18760 rm -f core conftest.err conftest.$ac_objext \
18761       conftest$ac_exeext conftest.$ac_ext
18762 LIBS=$ac_check_lib_save_LIBS
18763 fi
18764 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18765 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18766 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18767
18768 cat >>confdefs.h <<\_ACEOF
18769 #define HAVE___UDIVDI3 1
18770 _ACEOF
18771
18772 fi
18773
18774   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18775 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18776 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18777   echo $ECHO_N "(cached) $ECHO_C" >&6
18778 else
18779   ac_check_lib_save_LIBS=$LIBS
18780 LIBS="-lgcc  $LIBS"
18781 cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h.  */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h.  */
18787
18788 /* Override any GCC internal prototype to avoid an error.
18789    Use char because int might match the return type of a GCC
18790    builtin and then its argument prototype would still apply.  */
18791 #ifdef __cplusplus
18792 extern "C"
18793 #endif
18794 char __umoddi3 ();
18795 int
18796 main ()
18797 {
18798 return __umoddi3 ();
18799   ;
18800   return 0;
18801 }
18802 _ACEOF
18803 rm -f conftest.$ac_objext conftest$ac_exeext
18804 if { (ac_try="$ac_link"
18805 case "(($ac_try" in
18806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807   *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810   (eval "$ac_link") 2>conftest.er1
18811   ac_status=$?
18812   grep -v '^ *+' conftest.er1 >conftest.err
18813   rm -f conftest.er1
18814   cat conftest.err >&5
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); } &&
18817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18818   { (case "(($ac_try" in
18819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820   *) ac_try_echo=$ac_try;;
18821 esac
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823   (eval "$ac_try") 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; } &&
18827          { ac_try='test -s conftest$ac_exeext'
18828   { (case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_try") 2>&5
18834   ac_status=$?
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); }; }; then
18837   ac_cv_lib_gcc___umoddi3=yes
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842         ac_cv_lib_gcc___umoddi3=no
18843 fi
18844
18845 rm -f core conftest.err conftest.$ac_objext \
18846       conftest$ac_exeext conftest.$ac_ext
18847 LIBS=$ac_check_lib_save_LIBS
18848 fi
18849 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18850 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18851 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18852
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE___UMODDI3 1
18855 _ACEOF
18856
18857 fi
18858
18859
18860   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18861 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18862 if test "${ac_cv_lib_gcc___main+set}" = set; then
18863   echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865   ac_check_lib_save_LIBS=$LIBS
18866 LIBS="-lgcc  $LIBS"
18867 cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h.  */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h.  */
18873
18874 /* Override any GCC internal prototype to avoid an error.
18875    Use char because int might match the return type of a GCC
18876    builtin and then its argument prototype would still apply.  */
18877 #ifdef __cplusplus
18878 extern "C"
18879 #endif
18880 char __main ();
18881 int
18882 main ()
18883 {
18884 return __main ();
18885   ;
18886   return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893   *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896   (eval "$ac_link") 2>conftest.er1
18897   ac_status=$?
18898   grep -v '^ *+' conftest.er1 >conftest.err
18899   rm -f conftest.er1
18900   cat conftest.err >&5
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); } &&
18903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904   { (case "(($ac_try" in
18905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906   *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909   (eval "$ac_try") 2>&5
18910   ac_status=$?
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); }; } &&
18913          { ac_try='test -s conftest$ac_exeext'
18914   { (case "(($ac_try" in
18915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916   *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919   (eval "$ac_try") 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; }; then
18923   ac_cv_lib_gcc___main=yes
18924 else
18925   echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18927
18928         ac_cv_lib_gcc___main=no
18929 fi
18930
18931 rm -f core conftest.err conftest.$ac_objext \
18932       conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_check_lib_save_LIBS
18934 fi
18935 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18936 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18937 if test $ac_cv_lib_gcc___main = yes; then
18938
18939 cat >>confdefs.h <<\_ACEOF
18940 #define HAVE___MAIN 1
18941 _ACEOF
18942
18943 fi
18944
18945   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18946 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18947 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   ac_check_lib_save_LIBS=$LIBS
18951 LIBS="-lgcc  $LIBS"
18952 cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958
18959 /* Override any GCC internal prototype to avoid an error.
18960    Use char because int might match the return type of a GCC
18961    builtin and then its argument prototype would still apply.  */
18962 #ifdef __cplusplus
18963 extern "C"
18964 #endif
18965 char __cmpdi2 ();
18966 int
18967 main ()
18968 {
18969 return __cmpdi2 ();
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_link") 2>conftest.er1
18982   ac_status=$?
18983   grep -v '^ *+' conftest.er1 >conftest.err
18984   rm -f conftest.er1
18985   cat conftest.err >&5
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); } &&
18988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18989   { (case "(($ac_try" in
18990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991   *) ac_try_echo=$ac_try;;
18992 esac
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994   (eval "$ac_try") 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }; } &&
18998          { ac_try='test -s conftest$ac_exeext'
18999   { (case "(($ac_try" in
19000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001   *) ac_try_echo=$ac_try;;
19002 esac
19003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004   (eval "$ac_try") 2>&5
19005   ac_status=$?
19006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007   (exit $ac_status); }; }; then
19008   ac_cv_lib_gcc___cmpdi2=yes
19009 else
19010   echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19012
19013         ac_cv_lib_gcc___cmpdi2=no
19014 fi
19015
19016 rm -f core conftest.err conftest.$ac_objext \
19017       conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19019 fi
19020 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19021 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19022 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19023
19024 cat >>confdefs.h <<\_ACEOF
19025 #define HAVE___CMPDI2 1
19026 _ACEOF
19027
19028 fi
19029
19030 fi
19031
19032 if test "$llvm_cv_os_type" = "MingW" ; then
19033   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19034 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19035   cat >conftest.$ac_ext <<_ACEOF
19036 #include <windows.h>
19037 #include <imagehlp.h>
19038 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19039 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19040 _ACEOF
19041 rm -f conftest.$ac_objext
19042 if { (ac_try="$ac_compile"
19043 case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_compile") 2>conftest.er1
19049   ac_status=$?
19050   grep -v '^ *+' conftest.er1 >conftest.err
19051   rm -f conftest.er1
19052   cat conftest.err >&5
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } &&
19055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056   { (case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_try") 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; } &&
19065          { ac_try='test -s conftest.$ac_objext'
19066   { (case "(($ac_try" in
19067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068   *) ac_try_echo=$ac_try;;
19069 esac
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071   (eval "$ac_try") 2>&5
19072   ac_status=$?
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); }; }; then
19075
19076   { echo "$as_me:$LINENO: result: yes" >&5
19077 echo "${ECHO_T}yes" >&6; }
19078   llvm_cv_win32_elmcb_pcstr="PCSTR"
19079
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084
19085   { echo "$as_me:$LINENO: result: no" >&5
19086 echo "${ECHO_T}no" >&6; }
19087   llvm_cv_win32_elmcb_pcstr="PSTR"
19088
19089 fi
19090
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092
19093 cat >>confdefs.h <<_ACEOF
19094 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19095 _ACEOF
19096
19097 fi
19098
19099
19100 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19101 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19102 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19103   echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105   ac_ext=cpp
19106 ac_cpp='$CXXCPP $CPPFLAGS'
19107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19110
19111    cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h.  */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h.  */
19117 #include <math.h>
19118 int
19119 main ()
19120 {
19121 float f; isnan(f);
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext
19127 if { (ac_try="$ac_compile"
19128 case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_compile") 2>conftest.er1
19134   ac_status=$?
19135   grep -v '^ *+' conftest.er1 >conftest.err
19136   rm -f conftest.er1
19137   cat conftest.err >&5
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } &&
19140          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; } &&
19150          { ac_try='test -s conftest.$ac_objext'
19151   { (case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156   (eval "$ac_try") 2>&5
19157   ac_status=$?
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); }; }; then
19160   ac_cv_func_isnan_in_math_h=yes
19161 else
19162   echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19164
19165         ac_cv_func_isnan_in_math_h=no
19166 fi
19167
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169   ac_ext=c
19170 ac_cpp='$CPP $CPPFLAGS'
19171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19174
19175 fi
19176 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19177 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19178
19179
19180 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19181
19182 cat >>confdefs.h <<\_ACEOF
19183 #define HAVE_ISNAN_IN_MATH_H 1
19184 _ACEOF
19185
19186 fi
19187
19188 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19189 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19190 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19191   echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193   ac_ext=cpp
19194 ac_cpp='$CXXCPP $CPPFLAGS'
19195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19198
19199    cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205 #include <cmath>
19206 int
19207 main ()
19208 {
19209 float f; isnan(f);
19210   ;
19211   return 0;
19212 }
19213 _ACEOF
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221   (eval "$ac_compile") 2>conftest.er1
19222   ac_status=$?
19223   grep -v '^ *+' conftest.er1 >conftest.err
19224   rm -f conftest.er1
19225   cat conftest.err >&5
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); } &&
19228          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19229   { (case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_try") 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; } &&
19238          { ac_try='test -s conftest.$ac_objext'
19239   { (case "(($ac_try" in
19240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241   *) ac_try_echo=$ac_try;;
19242 esac
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244   (eval "$ac_try") 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; }; then
19248   ac_cv_func_isnan_in_cmath=yes
19249 else
19250   echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253         ac_cv_func_isnan_in_cmath=no
19254 fi
19255
19256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19257   ac_ext=c
19258 ac_cpp='$CPP $CPPFLAGS'
19259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19262
19263 fi
19264 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19265 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19266
19267 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19268
19269 cat >>confdefs.h <<\_ACEOF
19270 #define HAVE_ISNAN_IN_CMATH 1
19271 _ACEOF
19272
19273 fi
19274
19275 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19276 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19277 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19278   echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280   ac_ext=cpp
19281 ac_cpp='$CXXCPP $CPPFLAGS'
19282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19285
19286    cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292 #include <cmath>
19293 int
19294 main ()
19295 {
19296 float f; std::isnan(f);
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_compile") 2>conftest.er1
19309   ac_status=$?
19310   grep -v '^ *+' conftest.er1 >conftest.err
19311   rm -f conftest.er1
19312   cat conftest.err >&5
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } &&
19315          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19316   { (case "(($ac_try" in
19317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318   *) ac_try_echo=$ac_try;;
19319 esac
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321   (eval "$ac_try") 2>&5
19322   ac_status=$?
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); }; } &&
19325          { ac_try='test -s conftest.$ac_objext'
19326   { (case "(($ac_try" in
19327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328   *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331   (eval "$ac_try") 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); }; }; then
19335   ac_cv_func_std_isnan_in_cmath=yes
19336 else
19337   echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340         ac_cv_func_std_isnan_in_cmath=no
19341 fi
19342
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19344   ac_ext=c
19345 ac_cpp='$CPP $CPPFLAGS'
19346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19349
19350 fi
19351 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19352 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19353
19354 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19355
19356 cat >>confdefs.h <<\_ACEOF
19357 #define HAVE_STD_ISNAN_IN_CMATH 1
19358 _ACEOF
19359
19360 fi
19361
19362
19363 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19364 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19365 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19366   echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368   ac_ext=cpp
19369 ac_cpp='$CXXCPP $CPPFLAGS'
19370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19373
19374    cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h.  */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h.  */
19380 #include <math.h>
19381 int
19382 main ()
19383 {
19384 float f; isinf(f);
19385   ;
19386   return 0;
19387 }
19388 _ACEOF
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393   *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396   (eval "$ac_compile") 2>conftest.er1
19397   ac_status=$?
19398   grep -v '^ *+' conftest.er1 >conftest.err
19399   rm -f conftest.er1
19400   cat conftest.err >&5
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); } &&
19403          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19404   { (case "(($ac_try" in
19405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406   *) ac_try_echo=$ac_try;;
19407 esac
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409   (eval "$ac_try") 2>&5
19410   ac_status=$?
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); }; } &&
19413          { ac_try='test -s conftest.$ac_objext'
19414   { (case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_try") 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; }; then
19423   ac_cv_func_isinf_in_math_h=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428         ac_cv_func_isinf_in_math_h=no
19429 fi
19430
19431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19432   ac_ext=c
19433 ac_cpp='$CPP $CPPFLAGS'
19434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19437
19438 fi
19439 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19440 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19441
19442 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19443
19444 cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_ISINF_IN_MATH_H 1
19446 _ACEOF
19447
19448 fi
19449
19450 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19451 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19452 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19453   echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455   ac_ext=cpp
19456 ac_cpp='$CXXCPP $CPPFLAGS'
19457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19460
19461    cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467 #include <cmath>
19468 int
19469 main ()
19470 {
19471 float f; isinf(f);
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480   *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483   (eval "$ac_compile") 2>conftest.er1
19484   ac_status=$?
19485   grep -v '^ *+' conftest.er1 >conftest.err
19486   rm -f conftest.er1
19487   cat conftest.err >&5
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); } &&
19490          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19491   { (case "(($ac_try" in
19492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493   *) ac_try_echo=$ac_try;;
19494 esac
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496   (eval "$ac_try") 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; } &&
19500          { ac_try='test -s conftest.$ac_objext'
19501   { (case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_try") 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; }; then
19510   ac_cv_func_isinf_in_cmath=yes
19511 else
19512   echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19514
19515         ac_cv_func_isinf_in_cmath=no
19516 fi
19517
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519   ac_ext=c
19520 ac_cpp='$CPP $CPPFLAGS'
19521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19524
19525 fi
19526 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19527 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19528
19529 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19530
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_ISINF_IN_CMATH 1
19533 _ACEOF
19534
19535 fi
19536
19537 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19538 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19539 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19540   echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542   ac_ext=cpp
19543 ac_cpp='$CXXCPP $CPPFLAGS'
19544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19547
19548    cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 #include <cmath>
19555 int
19556 main ()
19557 {
19558 float f; std::isinf(f)}
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext
19564 if { (ac_try="$ac_compile"
19565 case "(($ac_try" in
19566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567   *) ac_try_echo=$ac_try;;
19568 esac
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570   (eval "$ac_compile") 2>conftest.er1
19571   ac_status=$?
19572   grep -v '^ *+' conftest.er1 >conftest.err
19573   rm -f conftest.er1
19574   cat conftest.err >&5
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); } &&
19577          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19578   { (case "(($ac_try" in
19579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580   *) ac_try_echo=$ac_try;;
19581 esac
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583   (eval "$ac_try") 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest.$ac_objext'
19588   { (case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_try") 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }; }; then
19597   ac_cv_func_std_isinf_in_cmath=yes
19598 else
19599   echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602         ac_cv_func_std_isinf_in_cmath=no
19603 fi
19604
19605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19606   ac_ext=c
19607 ac_cpp='$CPP $CPPFLAGS'
19608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19611
19612 fi
19613 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19614 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19615
19616 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19617
19618 cat >>confdefs.h <<\_ACEOF
19619 #define HAVE_STD_ISINF_IN_CMATH 1
19620 _ACEOF
19621
19622 fi
19623
19624 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19625 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19626 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19627   echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629   ac_ext=cpp
19630 ac_cpp='$CXXCPP $CPPFLAGS'
19631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19634
19635    cat >conftest.$ac_ext <<_ACEOF
19636 /* confdefs.h.  */
19637 _ACEOF
19638 cat confdefs.h >>conftest.$ac_ext
19639 cat >>conftest.$ac_ext <<_ACEOF
19640 /* end confdefs.h.  */
19641 #include <ieeefp.h>
19642 int
19643 main ()
19644 {
19645 float f; finite(f);
19646   ;
19647   return 0;
19648 }
19649 _ACEOF
19650 rm -f conftest.$ac_objext
19651 if { (ac_try="$ac_compile"
19652 case "(($ac_try" in
19653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654   *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657   (eval "$ac_compile") 2>conftest.er1
19658   ac_status=$?
19659   grep -v '^ *+' conftest.er1 >conftest.err
19660   rm -f conftest.er1
19661   cat conftest.err >&5
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); } &&
19664          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19665   { (case "(($ac_try" in
19666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667   *) ac_try_echo=$ac_try;;
19668 esac
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670   (eval "$ac_try") 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; } &&
19674          { ac_try='test -s conftest.$ac_objext'
19675   { (case "(($ac_try" in
19676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677   *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680   (eval "$ac_try") 2>&5
19681   ac_status=$?
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); }; }; then
19684   ac_cv_func_finite_in_ieeefp_h=yes
19685 else
19686   echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689         ac_cv_func_finite_in_ieeefp_h=no
19690 fi
19691
19692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693   ac_ext=c
19694 ac_cpp='$CPP $CPPFLAGS'
19695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19698
19699 fi
19700 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19701 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19702
19703 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19704
19705 cat >>confdefs.h <<\_ACEOF
19706 #define HAVE_FINITE_IN_IEEEFP_H 1
19707 _ACEOF
19708
19709 fi
19710
19711
19712
19713 if test "$llvm_cv_platform_type" = "Unix" ; then
19714
19715
19716 for ac_header in stdlib.h unistd.h
19717 do
19718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19720   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19723   echo $ECHO_N "(cached) $ECHO_C" >&6
19724 fi
19725 ac_res=`eval echo '${'$as_ac_Header'}'`
19726                { echo "$as_me:$LINENO: result: $ac_res" >&5
19727 echo "${ECHO_T}$ac_res" >&6; }
19728 else
19729   # Is the header compilable?
19730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h.  */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h.  */
19738 $ac_includes_default
19739 #include <$ac_header>
19740 _ACEOF
19741 rm -f conftest.$ac_objext
19742 if { (ac_try="$ac_compile"
19743 case "(($ac_try" in
19744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745   *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748   (eval "$ac_compile") 2>conftest.er1
19749   ac_status=$?
19750   grep -v '^ *+' conftest.er1 >conftest.err
19751   rm -f conftest.er1
19752   cat conftest.err >&5
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); } &&
19755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19756   { (case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761   (eval "$ac_try") 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; } &&
19765          { ac_try='test -s conftest.$ac_objext'
19766   { (case "(($ac_try" in
19767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768   *) ac_try_echo=$ac_try;;
19769 esac
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771   (eval "$ac_try") 2>&5
19772   ac_status=$?
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); }; }; then
19775   ac_header_compiler=yes
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780         ac_header_compiler=no
19781 fi
19782
19783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785 echo "${ECHO_T}$ac_header_compiler" >&6; }
19786
19787 # Is the header present?
19788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19790 cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h.  */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h.  */
19796 #include <$ac_header>
19797 _ACEOF
19798 if { (ac_try="$ac_cpp conftest.$ac_ext"
19799 case "(($ac_try" in
19800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801   *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19805   ac_status=$?
19806   grep -v '^ *+' conftest.er1 >conftest.err
19807   rm -f conftest.er1
19808   cat conftest.err >&5
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } >/dev/null; then
19811   if test -s conftest.err; then
19812     ac_cpp_err=$ac_c_preproc_warn_flag
19813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19814   else
19815     ac_cpp_err=
19816   fi
19817 else
19818   ac_cpp_err=yes
19819 fi
19820 if test -z "$ac_cpp_err"; then
19821   ac_header_preproc=yes
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826   ac_header_preproc=no
19827 fi
19828
19829 rm -f conftest.err conftest.$ac_ext
19830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19831 echo "${ECHO_T}$ac_header_preproc" >&6; }
19832
19833 # So?  What about this header?
19834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19835   yes:no: )
19836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19840     ac_header_preproc=yes
19841     ;;
19842   no:yes:* )
19843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19845     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19846 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19847     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19849     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19850 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19853     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19855     ( cat <<\_ASBOX
19856 ## ------------------------------ ##
19857 ## Report this to bugs@yourdomain ##
19858 ## ------------------------------ ##
19859 _ASBOX
19860      ) | sed "s/^/$as_me: WARNING:     /" >&2
19861     ;;
19862 esac
19863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19866   echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868   eval "$as_ac_Header=\$ac_header_preproc"
19869 fi
19870 ac_res=`eval echo '${'$as_ac_Header'}'`
19871                { echo "$as_me:$LINENO: result: $ac_res" >&5
19872 echo "${ECHO_T}$ac_res" >&6; }
19873
19874 fi
19875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19876   cat >>confdefs.h <<_ACEOF
19877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19878 _ACEOF
19879
19880 fi
19881
19882 done
19883
19884
19885 for ac_func in getpagesize
19886 do
19887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19891   echo $ECHO_N "(cached) $ECHO_C" >&6
19892 else
19893   cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h.  */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h.  */
19899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19901 #define $ac_func innocuous_$ac_func
19902
19903 /* System header to define __stub macros and hopefully few prototypes,
19904     which can conflict with char $ac_func (); below.
19905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19906     <limits.h> exists even on freestanding compilers.  */
19907
19908 #ifdef __STDC__
19909 # include <limits.h>
19910 #else
19911 # include <assert.h>
19912 #endif
19913
19914 #undef $ac_func
19915
19916 /* Override any GCC internal prototype to avoid an error.
19917    Use char because int might match the return type of a GCC
19918    builtin and then its argument prototype would still apply.  */
19919 #ifdef __cplusplus
19920 extern "C"
19921 #endif
19922 char $ac_func ();
19923 /* The GNU C library defines this for functions which it implements
19924     to always fail with ENOSYS.  Some functions are actually named
19925     something starting with __ and the normal name is an alias.  */
19926 #if defined __stub_$ac_func || defined __stub___$ac_func
19927 choke me
19928 #endif
19929
19930 int
19931 main ()
19932 {
19933 return $ac_func ();
19934   ;
19935   return 0;
19936 }
19937 _ACEOF
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (ac_try="$ac_link"
19940 case "(($ac_try" in
19941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942   *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945   (eval "$ac_link") 2>conftest.er1
19946   ac_status=$?
19947   grep -v '^ *+' conftest.er1 >conftest.err
19948   rm -f conftest.er1
19949   cat conftest.err >&5
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); } &&
19952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19953   { (case "(($ac_try" in
19954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955   *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958   (eval "$ac_try") 2>&5
19959   ac_status=$?
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); }; } &&
19962          { ac_try='test -s conftest$ac_exeext'
19963   { (case "(($ac_try" in
19964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965   *) ac_try_echo=$ac_try;;
19966 esac
19967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968   (eval "$ac_try") 2>&5
19969   ac_status=$?
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); }; }; then
19972   eval "$as_ac_var=yes"
19973 else
19974   echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977         eval "$as_ac_var=no"
19978 fi
19979
19980 rm -f core conftest.err conftest.$ac_objext \
19981       conftest$ac_exeext conftest.$ac_ext
19982 fi
19983 ac_res=`eval echo '${'$as_ac_var'}'`
19984                { echo "$as_me:$LINENO: result: $ac_res" >&5
19985 echo "${ECHO_T}$ac_res" >&6; }
19986 if test `eval echo '${'$as_ac_var'}'` = yes; then
19987   cat >>confdefs.h <<_ACEOF
19988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19989 _ACEOF
19990
19991 fi
19992 done
19993
19994 { echo "$as_me:$LINENO: checking for working mmap" >&5
19995 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19996 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999   if test "$cross_compiling" = yes; then
20000   ac_cv_func_mmap_fixed_mapped=no
20001 else
20002   cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 $ac_includes_default
20009 /* malloc might have been renamed as rpl_malloc. */
20010 #undef malloc
20011
20012 /* Thanks to Mike Haertel and Jim Avera for this test.
20013    Here is a matrix of mmap possibilities:
20014         mmap private not fixed
20015         mmap private fixed at somewhere currently unmapped
20016         mmap private fixed at somewhere already mapped
20017         mmap shared not fixed
20018         mmap shared fixed at somewhere currently unmapped
20019         mmap shared fixed at somewhere already mapped
20020    For private mappings, we should verify that changes cannot be read()
20021    back from the file, nor mmap's back from the file at a different
20022    address.  (There have been systems where private was not correctly
20023    implemented like the infamous i386 svr4.0, and systems where the
20024    VM page cache was not coherent with the file system buffer cache
20025    like early versions of FreeBSD and possibly contemporary NetBSD.)
20026    For shared mappings, we should conversely verify that changes get
20027    propagated back to all the places they're supposed to be.
20028
20029    Grep wants private fixed already mapped.
20030    The main things grep needs to know about mmap are:
20031    * does it exist and is it safe to write into the mmap'd area
20032    * how to use it (BSD variants)  */
20033
20034 #include <fcntl.h>
20035 #include <sys/mman.h>
20036
20037 #if !STDC_HEADERS && !HAVE_STDLIB_H
20038 char *malloc ();
20039 #endif
20040
20041 /* This mess was copied from the GNU getpagesize.h.  */
20042 #if !HAVE_GETPAGESIZE
20043 /* Assume that all systems that can run configure have sys/param.h.  */
20044 # if !HAVE_SYS_PARAM_H
20045 #  define HAVE_SYS_PARAM_H 1
20046 # endif
20047
20048 # ifdef _SC_PAGESIZE
20049 #  define getpagesize() sysconf(_SC_PAGESIZE)
20050 # else /* no _SC_PAGESIZE */
20051 #  if HAVE_SYS_PARAM_H
20052 #   include <sys/param.h>
20053 #   ifdef EXEC_PAGESIZE
20054 #    define getpagesize() EXEC_PAGESIZE
20055 #   else /* no EXEC_PAGESIZE */
20056 #    ifdef NBPG
20057 #     define getpagesize() NBPG * CLSIZE
20058 #     ifndef CLSIZE
20059 #      define CLSIZE 1
20060 #     endif /* no CLSIZE */
20061 #    else /* no NBPG */
20062 #     ifdef NBPC
20063 #      define getpagesize() NBPC
20064 #     else /* no NBPC */
20065 #      ifdef PAGESIZE
20066 #       define getpagesize() PAGESIZE
20067 #      endif /* PAGESIZE */
20068 #     endif /* no NBPC */
20069 #    endif /* no NBPG */
20070 #   endif /* no EXEC_PAGESIZE */
20071 #  else /* no HAVE_SYS_PARAM_H */
20072 #   define getpagesize() 8192   /* punt totally */
20073 #  endif /* no HAVE_SYS_PARAM_H */
20074 # endif /* no _SC_PAGESIZE */
20075
20076 #endif /* no HAVE_GETPAGESIZE */
20077
20078 int
20079 main ()
20080 {
20081   char *data, *data2, *data3;
20082   int i, pagesize;
20083   int fd;
20084
20085   pagesize = getpagesize ();
20086
20087   /* First, make a file with some known garbage in it. */
20088   data = (char *) malloc (pagesize);
20089   if (!data)
20090     return 1;
20091   for (i = 0; i < pagesize; ++i)
20092     *(data + i) = rand ();
20093   umask (0);
20094   fd = creat ("conftest.mmap", 0600);
20095   if (fd < 0)
20096     return 1;
20097   if (write (fd, data, pagesize) != pagesize)
20098     return 1;
20099   close (fd);
20100
20101   /* Next, try to mmap the file at a fixed address which already has
20102      something else allocated at it.  If we can, also make sure that
20103      we see the same garbage.  */
20104   fd = open ("conftest.mmap", O_RDWR);
20105   if (fd < 0)
20106     return 1;
20107   data2 = (char *) malloc (2 * pagesize);
20108   if (!data2)
20109     return 1;
20110   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20111   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20112                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20113     return 1;
20114   for (i = 0; i < pagesize; ++i)
20115     if (*(data + i) != *(data2 + i))
20116       return 1;
20117
20118   /* Finally, make sure that changes to the mapped area do not
20119      percolate back to the file as seen by read().  (This is a bug on
20120      some variants of i386 svr4.0.)  */
20121   for (i = 0; i < pagesize; ++i)
20122     *(data2 + i) = *(data2 + i) + 1;
20123   data3 = (char *) malloc (pagesize);
20124   if (!data3)
20125     return 1;
20126   if (read (fd, data3, pagesize) != pagesize)
20127     return 1;
20128   for (i = 0; i < pagesize; ++i)
20129     if (*(data + i) != *(data3 + i))
20130       return 1;
20131   close (fd);
20132   return 0;
20133 }
20134 _ACEOF
20135 rm -f conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139   *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142   (eval "$ac_link") 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146   { (case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_try") 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; }; then
20155   ac_cv_func_mmap_fixed_mapped=yes
20156 else
20157   echo "$as_me: program exited with status $ac_status" >&5
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161 ( exit $ac_status )
20162 ac_cv_func_mmap_fixed_mapped=no
20163 fi
20164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20165 fi
20166
20167
20168 fi
20169 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20170 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20171 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20172
20173 cat >>confdefs.h <<\_ACEOF
20174 #define HAVE_MMAP 1
20175 _ACEOF
20176
20177 fi
20178 rm -f conftest.mmap
20179
20180   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20181 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20182 if test "${ac_cv_func_mmap_file+set}" = set; then
20183   echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185    ac_ext=c
20186 ac_cpp='$CPP $CPPFLAGS'
20187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20190
20191   if test "$cross_compiling" = yes; then
20192   ac_cv_func_mmap_file=no
20193 else
20194   cat >conftest.$ac_ext <<_ACEOF
20195
20196     /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201
20202 #include <sys/types.h>
20203 #include <sys/mman.h>
20204 #include <fcntl.h>
20205
20206 int
20207 main ()
20208 {
20209
20210   int fd;
20211   fd = creat ("foo",0777);
20212   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20213   unlink ("foo");
20214   return (fd != (int) MAP_FAILED);
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 rm -f conftest$ac_exeext
20220 if { (ac_try="$ac_link"
20221 case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_link") 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230   { (case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_try") 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); }; }; then
20239   ac_cv_func_mmap_file=yes
20240 else
20241   echo "$as_me: program exited with status $ac_status" >&5
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 ( exit $ac_status )
20246 ac_cv_func_mmap_file=no
20247 fi
20248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20249 fi
20250
20251
20252   ac_ext=c
20253 ac_cpp='$CPP $CPPFLAGS'
20254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20257
20258
20259 fi
20260 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20261 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20262 if test "$ac_cv_func_mmap_file" = yes; then
20263
20264 cat >>confdefs.h <<\_ACEOF
20265 #define HAVE_MMAP_FILE
20266 _ACEOF
20267
20268    MMAP_FILE=yes
20269
20270 fi
20271
20272   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20273 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20274 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   if test "$llvm_cv_os_type" = "Interix" ; then
20278    ac_cv_need_dev_zero_for_mmap=yes
20279  else
20280    ac_cv_need_dev_zero_for_mmap=no
20281  fi
20282
20283 fi
20284 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20285 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20286 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20287
20288 cat >>confdefs.h <<\_ACEOF
20289 #define NEED_DEV_ZERO_FOR_MMAP 1
20290 _ACEOF
20291
20292 fi
20293
20294   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20295   then
20296     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20297 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20298   fi
20299   if test "$ac_cv_func_mmap_file" = "no"
20300   then
20301     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20302 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20303   fi
20304 fi
20305
20306 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20307 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20308 ac_ext=cpp
20309 ac_cpp='$CXXCPP $CPPFLAGS'
20310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20313
20314 cat >conftest.$ac_ext <<_ACEOF
20315 /* confdefs.h.  */
20316 _ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h.  */
20320 int main() {
20321         volatile unsigned long val = 1;
20322         __sync_synchronize();
20323         __sync_val_compare_and_swap(&val, 1, 0);
20324         __sync_add_and_fetch(&val, 1);
20325         __sync_sub_and_fetch(&val, 1);
20326         return 0;
20327       }
20328
20329 _ACEOF
20330 rm -f conftest.$ac_objext conftest$ac_exeext
20331 if { (ac_try="$ac_link"
20332 case "(($ac_try" in
20333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334   *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337   (eval "$ac_link") 2>conftest.er1
20338   ac_status=$?
20339   grep -v '^ *+' conftest.er1 >conftest.err
20340   rm -f conftest.er1
20341   cat conftest.err >&5
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); } &&
20344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20345   { (case "(($ac_try" in
20346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347   *) ac_try_echo=$ac_try;;
20348 esac
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350   (eval "$ac_try") 2>&5
20351   ac_status=$?
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); }; } &&
20354          { ac_try='test -s conftest$ac_exeext'
20355   { (case "(($ac_try" in
20356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357   *) ac_try_echo=$ac_try;;
20358 esac
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360   (eval "$ac_try") 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; }; then
20364   ac_ext=c
20365 ac_cpp='$CPP $CPPFLAGS'
20366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20369
20370   { echo "$as_me:$LINENO: result: yes" >&5
20371 echo "${ECHO_T}yes" >&6; }
20372
20373 cat >>confdefs.h <<\_ACEOF
20374 #define LLVM_HAS_ATOMICS 1
20375 _ACEOF
20376
20377 else
20378   echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381         { echo "$as_me:$LINENO: result: no" >&5
20382 echo "${ECHO_T}no" >&6; }
20383
20384 cat >>confdefs.h <<\_ACEOF
20385 #define LLVM_HAS_ATOMICS 0
20386 _ACEOF
20387
20388   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20389 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20390 fi
20391
20392 rm -f core conftest.err conftest.$ac_objext \
20393       conftest$ac_exeext conftest.$ac_ext
20394
20395
20396 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20397   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20398 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20399 if test "${llvm_cv_linux_mixed+set}" = set; then
20400   echo $ECHO_N "(cached) $ECHO_C" >&6
20401 else
20402    ac_ext=c
20403 ac_cpp='$CPP $CPPFLAGS'
20404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20407
20408   cat >conftest.$ac_ext <<_ACEOF
20409 /* confdefs.h.  */
20410 _ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h.  */
20414 #ifndef __x86_64__
20415        error: Not x86-64 even if uname says so!
20416       #endif
20417
20418 int
20419 main ()
20420 {
20421
20422   ;
20423   return 0;
20424 }
20425 _ACEOF
20426 rm -f conftest.$ac_objext
20427 if { (ac_try="$ac_compile"
20428 case "(($ac_try" in
20429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430   *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433   (eval "$ac_compile") 2>conftest.er1
20434   ac_status=$?
20435   grep -v '^ *+' conftest.er1 >conftest.err
20436   rm -f conftest.er1
20437   cat conftest.err >&5
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } &&
20440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20441   { (case "(($ac_try" in
20442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443   *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446   (eval "$ac_try") 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; } &&
20450          { ac_try='test -s conftest.$ac_objext'
20451   { (case "(($ac_try" in
20452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453   *) ac_try_echo=$ac_try;;
20454 esac
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456   (eval "$ac_try") 2>&5
20457   ac_status=$?
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); }; }; then
20460   llvm_cv_linux_mixed=no
20461 else
20462   echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465         llvm_cv_linux_mixed=yes
20466 fi
20467
20468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20469   ac_ext=c
20470 ac_cpp='$CPP $CPPFLAGS'
20471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20474
20475
20476 fi
20477 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20478 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20479
20480   if test "$llvm_cv_linux_mixed" = "yes"; then
20481     llvm_cv_target_arch="x86"
20482     ARCH="x86"
20483   fi
20484 fi
20485
20486
20487 for ac_func in __dso_handle
20488 do
20489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495   cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h.  */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h.  */
20501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20503 #define $ac_func innocuous_$ac_func
20504
20505 /* System header to define __stub macros and hopefully few prototypes,
20506     which can conflict with char $ac_func (); below.
20507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20508     <limits.h> exists even on freestanding compilers.  */
20509
20510 #ifdef __STDC__
20511 # include <limits.h>
20512 #else
20513 # include <assert.h>
20514 #endif
20515
20516 #undef $ac_func
20517
20518 /* Override any GCC internal prototype to avoid an error.
20519    Use char because int might match the return type of a GCC
20520    builtin and then its argument prototype would still apply.  */
20521 #ifdef __cplusplus
20522 extern "C"
20523 #endif
20524 char $ac_func ();
20525 /* The GNU C library defines this for functions which it implements
20526     to always fail with ENOSYS.  Some functions are actually named
20527     something starting with __ and the normal name is an alias.  */
20528 #if defined __stub_$ac_func || defined __stub___$ac_func
20529 choke me
20530 #endif
20531
20532 int
20533 main ()
20534 {
20535 return $ac_func ();
20536   ;
20537   return 0;
20538 }
20539 _ACEOF
20540 rm -f conftest.$ac_objext conftest$ac_exeext
20541 if { (ac_try="$ac_link"
20542 case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547   (eval "$ac_link") 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } &&
20554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20555   { (case "(($ac_try" in
20556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557   *) ac_try_echo=$ac_try;;
20558 esac
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560   (eval "$ac_try") 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; } &&
20564          { ac_try='test -s conftest$ac_exeext'
20565   { (case "(($ac_try" in
20566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567   *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570   (eval "$ac_try") 2>&5
20571   ac_status=$?
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); }; }; then
20574   eval "$as_ac_var=yes"
20575 else
20576   echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579         eval "$as_ac_var=no"
20580 fi
20581
20582 rm -f core conftest.err conftest.$ac_objext \
20583       conftest$ac_exeext conftest.$ac_ext
20584 fi
20585 ac_res=`eval echo '${'$as_ac_var'}'`
20586                { echo "$as_me:$LINENO: result: $ac_res" >&5
20587 echo "${ECHO_T}$ac_res" >&6; }
20588 if test `eval echo '${'$as_ac_var'}'` = yes; then
20589   cat >>confdefs.h <<_ACEOF
20590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20591 _ACEOF
20592
20593 fi
20594 done
20595
20596
20597 SHLIBEXT=$libltdl_cv_shlibext
20598
20599
20600 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20601
20602
20603 # Translate the various configuration directories and other basic
20604 # information into substitutions that will end up in Makefile.config.in
20605 # that these configured values can be used by the makefiles
20606 if test "${prefix}" = "NONE" ; then
20607   prefix="/usr/local"
20608 fi
20609 eval LLVM_PREFIX="${prefix}";
20610 eval LLVM_BINDIR="${prefix}/bin";
20611 eval LLVM_LIBDIR="${prefix}/lib";
20612 eval LLVM_DATADIR="${prefix}/share/llvm";
20613 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20614 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20615 eval LLVM_INCLUDEDIR="${prefix}/include";
20616 eval LLVM_INFODIR="${prefix}/info";
20617 eval LLVM_MANDIR="${prefix}/man";
20618 LLVM_CONFIGTIME=`date`
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630 # Place the various directores into the config.h file as #defines so that we
20631 # can know about the installation paths within LLVM.
20632
20633 cat >>confdefs.h <<_ACEOF
20634 #define LLVM_PREFIX "$LLVM_PREFIX"
20635 _ACEOF
20636
20637
20638 cat >>confdefs.h <<_ACEOF
20639 #define LLVM_BINDIR "$LLVM_BINDIR"
20640 _ACEOF
20641
20642
20643 cat >>confdefs.h <<_ACEOF
20644 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20645 _ACEOF
20646
20647
20648 cat >>confdefs.h <<_ACEOF
20649 #define LLVM_DATADIR "$LLVM_DATADIR"
20650 _ACEOF
20651
20652
20653 cat >>confdefs.h <<_ACEOF
20654 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20655 _ACEOF
20656
20657
20658 cat >>confdefs.h <<_ACEOF
20659 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20660 _ACEOF
20661
20662
20663 cat >>confdefs.h <<_ACEOF
20664 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20665 _ACEOF
20666
20667
20668 cat >>confdefs.h <<_ACEOF
20669 #define LLVM_INFODIR "$LLVM_INFODIR"
20670 _ACEOF
20671
20672
20673 cat >>confdefs.h <<_ACEOF
20674 #define LLVM_MANDIR "$LLVM_MANDIR"
20675 _ACEOF
20676
20677
20678 cat >>confdefs.h <<_ACEOF
20679 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20680 _ACEOF
20681
20682
20683 cat >>confdefs.h <<_ACEOF
20684 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20685 _ACEOF
20686
20687
20688 # Determine which bindings to build.
20689 if test "$BINDINGS_TO_BUILD" = auto ; then
20690   BINDINGS_TO_BUILD=""
20691   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20692     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20693   fi
20694 fi
20695 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20696
20697
20698 # This isn't really configurey, but it avoids having to repeat the list in
20699 # other files.
20700 ALL_BINDINGS=ocaml
20701
20702
20703 # Do any work necessary to ensure that bindings have what they need.
20704 binding_prereqs_failed=0
20705 for a_binding in $BINDINGS_TO_BUILD ; do
20706   case "$a_binding" in
20707   ocaml)
20708     if test "x$OCAMLC" = x ; then
20709       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20710 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20711       binding_prereqs_failed=1
20712     fi
20713     if test "x$OCAMLDEP" = x ; then
20714       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20715 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20716       binding_prereqs_failed=1
20717     fi
20718     if test "x$OCAMLOPT" = x ; then
20719       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20720 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20721           fi
20722     if test "x$with_ocaml_libdir" != xauto ; then
20723       OCAML_LIBDIR=$with_ocaml_libdir
20724
20725     else
20726       ocaml_stdlib="`"$OCAMLC" -where`"
20727       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20728       then
20729         # ocaml stdlib is beneath our prefix; use stdlib
20730         OCAML_LIBDIR=$ocaml_stdlib
20731
20732       else
20733         # ocaml stdlib is outside our prefix; use libdir/ocaml
20734         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20735
20736       fi
20737     fi
20738     ;;
20739   esac
20740 done
20741 if test "$binding_prereqs_failed" = 1 ; then
20742   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20743 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20744    { (exit 1); exit 1; }; }
20745 fi
20746
20747 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20748 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20749 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752    ac_ext=cpp
20753 ac_cpp='$CXXCPP $CPPFLAGS'
20754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20757
20758   oldcxxflags="$CXXFLAGS"
20759   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20760   cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h.  */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h.  */
20766
20767 int
20768 main ()
20769 {
20770
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_compile") 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } &&
20789          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20790   { (case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795   (eval "$ac_try") 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; } &&
20799          { ac_try='test -s conftest.$ac_objext'
20800   { (case "(($ac_try" in
20801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802   *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805   (eval "$ac_try") 2>&5
20806   ac_status=$?
20807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808   (exit $ac_status); }; }; then
20809   llvm_cv_cxx_visibility_inlines_hidden=yes
20810 else
20811   echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814         llvm_cv_cxx_visibility_inlines_hidden=no
20815 fi
20816
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818   CXXFLAGS="$oldcxxflags"
20819   ac_ext=c
20820 ac_cpp='$CPP $CPPFLAGS'
20821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824
20825
20826 fi
20827 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20828 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20829 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20830   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20831
20832 else
20833   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20834
20835 fi
20836
20837
20838 if test "$llvm_cv_link_use_r" = "yes" ; then
20839   RPATH="-Wl,-R"
20840 else
20841   RPATH="-Wl,-rpath"
20842 fi
20843
20844
20845 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20846   RDYNAMIC="-Wl,-export-dynamic"
20847 else
20848   RDYNAMIC=""
20849 fi
20850
20851
20852
20853
20854 ac_config_files="$ac_config_files Makefile.common"
20855
20856 ac_config_files="$ac_config_files Makefile.llvm.config"
20857
20858
20859 ac_config_commands="$ac_config_commands Makefile"
20860
20861
20862 ac_config_commands="$ac_config_commands lib/Makefile"
20863
20864
20865 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20866
20867
20868 ac_config_commands="$ac_config_commands tools/Makefile"
20869
20870
20871 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20872
20873
20874
20875 cat >confcache <<\_ACEOF
20876 # This file is a shell script that caches the results of configure
20877 # tests run on this system so they can be shared between configure
20878 # scripts and configure runs, see configure's option --config-cache.
20879 # It is not useful on other systems.  If it contains results you don't
20880 # want to keep, you may remove or edit it.
20881 #
20882 # config.status only pays attention to the cache file if you give it
20883 # the --recheck option to rerun configure.
20884 #
20885 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20886 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20887 # following values.
20888
20889 _ACEOF
20890
20891 # The following way of writing the cache mishandles newlines in values,
20892 # but we know of no workaround that is simple, portable, and efficient.
20893 # So, we kill variables containing newlines.
20894 # Ultrix sh set writes to stderr and can't be redirected directly,
20895 # and sets the high bit in the cache file unless we assign to the vars.
20896 (
20897   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20898     eval ac_val=\$$ac_var
20899     case $ac_val in #(
20900     *${as_nl}*)
20901       case $ac_var in #(
20902       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20903 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20904       esac
20905       case $ac_var in #(
20906       _ | IFS | as_nl) ;; #(
20907       *) $as_unset $ac_var ;;
20908       esac ;;
20909     esac
20910   done
20911
20912   (set) 2>&1 |
20913     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20914     *${as_nl}ac_space=\ *)
20915       # `set' does not quote correctly, so add quotes (double-quote
20916       # substitution turns \\\\ into \\, and sed turns \\ into \).
20917       sed -n \
20918         "s/'/'\\\\''/g;
20919           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20920       ;; #(
20921     *)
20922       # `set' quotes correctly as required by POSIX, so do not add quotes.
20923       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20924       ;;
20925     esac |
20926     sort
20927 ) |
20928   sed '
20929      /^ac_cv_env_/b end
20930      t clear
20931      :clear
20932      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20933      t end
20934      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20935      :end' >>confcache
20936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20937   if test -w "$cache_file"; then
20938     test "x$cache_file" != "x/dev/null" &&
20939       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20940 echo "$as_me: updating cache $cache_file" >&6;}
20941     cat confcache >$cache_file
20942   else
20943     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20944 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20945   fi
20946 fi
20947 rm -f confcache
20948
20949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20950 # Let make expand exec_prefix.
20951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20952
20953 # Transform confdefs.h into DEFS.
20954 # Protect against shell expansion while executing Makefile rules.
20955 # Protect against Makefile macro expansion.
20956 #
20957 # If the first sed substitution is executed (which looks for macros that
20958 # take arguments), then branch to the quote section.  Otherwise,
20959 # look for a macro that doesn't take arguments.
20960 ac_script='
20961 t clear
20962 :clear
20963 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
20964 t quote
20965 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
20966 t quote
20967 b any
20968 :quote
20969 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20970 s/\[/\\&/g
20971 s/\]/\\&/g
20972 s/\$/$$/g
20973 H
20974 :any
20975 ${
20976         g
20977         s/^\n//
20978         s/\n/ /g
20979         p
20980 }
20981 '
20982 DEFS=`sed -n "$ac_script" confdefs.h`
20983
20984
20985 ac_libobjs=
20986 ac_ltlibobjs=
20987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20988   # 1. Remove the extension, and $U if already installed.
20989   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20990   ac_i=`echo "$ac_i" | sed "$ac_script"`
20991   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20992   #    will be set to the directory where LIBOBJS objects are built.
20993   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20994   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20995 done
20996 LIBOBJS=$ac_libobjs
20997
20998 LTLIBOBJS=$ac_ltlibobjs
20999
21000
21001 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21002   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21003 Usually this means the macro was only invoked conditionally." >&5
21004 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21005 Usually this means the macro was only invoked conditionally." >&2;}
21006    { (exit 1); exit 1; }; }
21007 fi
21008 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21009   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21010 Usually this means the macro was only invoked conditionally." >&5
21011 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21012 Usually this means the macro was only invoked conditionally." >&2;}
21013    { (exit 1); exit 1; }; }
21014 fi
21015
21016 : ${CONFIG_STATUS=./config.status}
21017 ac_clean_files_save=$ac_clean_files
21018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21019 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21020 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21021 cat >$CONFIG_STATUS <<_ACEOF
21022 #! $SHELL
21023 # Generated by $as_me.
21024 # Run this file to recreate the current configuration.
21025 # Compiler output produced by configure, useful for debugging
21026 # configure, is in config.log if it exists.
21027
21028 debug=false
21029 ac_cs_recheck=false
21030 ac_cs_silent=false
21031 SHELL=\${CONFIG_SHELL-$SHELL}
21032 _ACEOF
21033
21034 cat >>$CONFIG_STATUS <<\_ACEOF
21035 ## --------------------- ##
21036 ## M4sh Initialization.  ##
21037 ## --------------------- ##
21038
21039 # Be Bourne compatible
21040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21041   emulate sh
21042   NULLCMD=:
21043   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21044   # is contrary to our usage.  Disable this feature.
21045   alias -g '${1+"$@"}'='"$@"'
21046   setopt NO_GLOB_SUBST
21047 else
21048   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21049 fi
21050 BIN_SH=xpg4; export BIN_SH # for Tru64
21051 DUALCASE=1; export DUALCASE # for MKS sh
21052
21053
21054 # PATH needs CR
21055 # Avoid depending upon Character Ranges.
21056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21059 as_cr_digits='0123456789'
21060 as_cr_alnum=$as_cr_Letters$as_cr_digits
21061
21062 # The user is always right.
21063 if test "${PATH_SEPARATOR+set}" != set; then
21064   echo "#! /bin/sh" >conf$$.sh
21065   echo  "exit 0"   >>conf$$.sh
21066   chmod +x conf$$.sh
21067   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21068     PATH_SEPARATOR=';'
21069   else
21070     PATH_SEPARATOR=:
21071   fi
21072   rm -f conf$$.sh
21073 fi
21074
21075 # Support unset when possible.
21076 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21077   as_unset=unset
21078 else
21079   as_unset=false
21080 fi
21081
21082
21083 # IFS
21084 # We need space, tab and new line, in precisely that order.  Quoting is
21085 # there to prevent editors from complaining about space-tab.
21086 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21087 # splitting by setting IFS to empty value.)
21088 as_nl='
21089 '
21090 IFS=" ""        $as_nl"
21091
21092 # Find who we are.  Look in the path if we contain no directory separator.
21093 case $0 in
21094   *[\\/]* ) as_myself=$0 ;;
21095   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21096 for as_dir in $PATH
21097 do
21098   IFS=$as_save_IFS
21099   test -z "$as_dir" && as_dir=.
21100   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21101 done
21102 IFS=$as_save_IFS
21103
21104      ;;
21105 esac
21106 # We did not find ourselves, most probably we were run as `sh COMMAND'
21107 # in which case we are not to be found in the path.
21108 if test "x$as_myself" = x; then
21109   as_myself=$0
21110 fi
21111 if test ! -f "$as_myself"; then
21112   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21113   { (exit 1); exit 1; }
21114 fi
21115
21116 # Work around bugs in pre-3.0 UWIN ksh.
21117 for as_var in ENV MAIL MAILPATH
21118 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21119 done
21120 PS1='$ '
21121 PS2='> '
21122 PS4='+ '
21123
21124 # NLS nuisances.
21125 for as_var in \
21126   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21127   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21128   LC_TELEPHONE LC_TIME
21129 do
21130   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21131     eval $as_var=C; export $as_var
21132   else
21133     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21134   fi
21135 done
21136
21137 # Required to use basename.
21138 if expr a : '\(a\)' >/dev/null 2>&1 &&
21139    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21140   as_expr=expr
21141 else
21142   as_expr=false
21143 fi
21144
21145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21146   as_basename=basename
21147 else
21148   as_basename=false
21149 fi
21150
21151
21152 # Name of the executable.
21153 as_me=`$as_basename -- "$0" ||
21154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21155          X"$0" : 'X\(//\)$' \| \
21156          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21157 echo X/"$0" |
21158     sed '/^.*\/\([^/][^/]*\)\/*$/{
21159             s//\1/
21160             q
21161           }
21162           /^X\/\(\/\/\)$/{
21163             s//\1/
21164             q
21165           }
21166           /^X\/\(\/\).*/{
21167             s//\1/
21168             q
21169           }
21170           s/.*/./; q'`
21171
21172 # CDPATH.
21173 $as_unset CDPATH
21174
21175
21176
21177   as_lineno_1=$LINENO
21178   as_lineno_2=$LINENO
21179   test "x$as_lineno_1" != "x$as_lineno_2" &&
21180   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21181
21182   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21183   # uniformly replaced by the line number.  The first 'sed' inserts a
21184   # line-number line after each line using $LINENO; the second 'sed'
21185   # does the real work.  The second script uses 'N' to pair each
21186   # line-number line with the line containing $LINENO, and appends
21187   # trailing '-' during substitution so that $LINENO is not a special
21188   # case at line end.
21189   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21190   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21191   # E. McMahon (1931-1989) for sed's syntax.  :-)
21192   sed -n '
21193     p
21194     /[$]LINENO/=
21195   ' <$as_myself |
21196     sed '
21197       s/[$]LINENO.*/&-/
21198       t lineno
21199       b
21200       :lineno
21201       N
21202       :loop
21203       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21204       t loop
21205       s/-\n.*//
21206     ' >$as_me.lineno &&
21207   chmod +x "$as_me.lineno" ||
21208     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21209    { (exit 1); exit 1; }; }
21210
21211   # Don't try to exec as it changes $[0], causing all sort of problems
21212   # (the dirname of $[0] is not the place where we might find the
21213   # original and so on.  Autoconf is especially sensitive to this).
21214   . "./$as_me.lineno"
21215   # Exit status is that of the last command.
21216   exit
21217 }
21218
21219
21220 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21221   as_dirname=dirname
21222 else
21223   as_dirname=false
21224 fi
21225
21226 ECHO_C= ECHO_N= ECHO_T=
21227 case `echo -n x` in
21228 -n*)
21229   case `echo 'x\c'` in
21230   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21231   *)   ECHO_C='\c';;
21232   esac;;
21233 *)
21234   ECHO_N='-n';;
21235 esac
21236
21237 if expr a : '\(a\)' >/dev/null 2>&1 &&
21238    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21239   as_expr=expr
21240 else
21241   as_expr=false
21242 fi
21243
21244 rm -f conf$$ conf$$.exe conf$$.file
21245 if test -d conf$$.dir; then
21246   rm -f conf$$.dir/conf$$.file
21247 else
21248   rm -f conf$$.dir
21249   mkdir conf$$.dir
21250 fi
21251 echo >conf$$.file
21252 if ln -s conf$$.file conf$$ 2>/dev/null; then
21253   as_ln_s='ln -s'
21254   # ... but there are two gotchas:
21255   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21256   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21257   # In both cases, we have to default to `cp -p'.
21258   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21259     as_ln_s='cp -p'
21260 elif ln conf$$.file conf$$ 2>/dev/null; then
21261   as_ln_s=ln
21262 else
21263   as_ln_s='cp -p'
21264 fi
21265 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21266 rmdir conf$$.dir 2>/dev/null
21267
21268 if mkdir -p . 2>/dev/null; then
21269   as_mkdir_p=:
21270 else
21271   test -d ./-p && rmdir ./-p
21272   as_mkdir_p=false
21273 fi
21274
21275 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21276 # systems may use methods other than mode bits to determine executability.
21277 cat >conf$$.file <<_ASEOF
21278 #! /bin/sh
21279 exit 0
21280 _ASEOF
21281 chmod +x conf$$.file
21282 if test -x conf$$.file >/dev/null 2>&1; then
21283   as_executable_p="test -x"
21284 else
21285   as_executable_p=:
21286 fi
21287 rm -f conf$$.file
21288
21289 # Sed expression to map a string onto a valid CPP name.
21290 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21291
21292 # Sed expression to map a string onto a valid variable name.
21293 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21294
21295
21296 exec 6>&1
21297
21298 # Save the log message, to keep $[0] and so on meaningful, and to
21299 # report actual input values of CONFIG_FILES etc. instead of their
21300 # values after options handling.
21301 ac_log="
21302 This file was extended by [SAMPLE] $as_me [x.xx], which was
21303 generated by GNU Autoconf 2.60.  Invocation command line was
21304
21305   CONFIG_FILES    = $CONFIG_FILES
21306   CONFIG_HEADERS  = $CONFIG_HEADERS
21307   CONFIG_LINKS    = $CONFIG_LINKS
21308   CONFIG_COMMANDS = $CONFIG_COMMANDS
21309   $ $0 $@
21310
21311 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21312 "
21313
21314 _ACEOF
21315
21316 cat >>$CONFIG_STATUS <<_ACEOF
21317 # Files that config.status was made for.
21318 config_files="$ac_config_files"
21319 config_commands="$ac_config_commands"
21320
21321 _ACEOF
21322
21323 cat >>$CONFIG_STATUS <<\_ACEOF
21324 ac_cs_usage="\
21325 \`$as_me' instantiates files from templates according to the
21326 current configuration.
21327
21328 Usage: $0 [OPTIONS] [FILE]...
21329
21330   -h, --help       print this help, then exit
21331   -V, --version    print version number, then exit
21332   -q, --quiet      do not print progress messages
21333   -d, --debug      don't remove temporary files
21334       --recheck    update $as_me by reconfiguring in the same conditions
21335   --file=FILE[:TEMPLATE]
21336                    instantiate the configuration file FILE
21337
21338 Configuration files:
21339 $config_files
21340
21341 Configuration commands:
21342 $config_commands
21343
21344 Report bugs to <bug-autoconf@gnu.org>."
21345
21346 _ACEOF
21347 cat >>$CONFIG_STATUS <<_ACEOF
21348 ac_cs_version="\\
21349 [SAMPLE] config.status [x.xx]
21350 configured by $0, generated by GNU Autoconf 2.60,
21351   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21352
21353 Copyright (C) 2006 Free Software Foundation, Inc.
21354 This config.status script is free software; the Free Software Foundation
21355 gives unlimited permission to copy, distribute and modify it."
21356
21357 ac_pwd='$ac_pwd'
21358 srcdir='$srcdir'
21359 INSTALL='$INSTALL'
21360 _ACEOF
21361
21362 cat >>$CONFIG_STATUS <<\_ACEOF
21363 # If no file are specified by the user, then we need to provide default
21364 # value.  By we need to know if files were specified by the user.
21365 ac_need_defaults=:
21366 while test $# != 0
21367 do
21368   case $1 in
21369   --*=*)
21370     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21371     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21372     ac_shift=:
21373     ;;
21374   *)
21375     ac_option=$1
21376     ac_optarg=$2
21377     ac_shift=shift
21378     ;;
21379   esac
21380
21381   case $ac_option in
21382   # Handling of the options.
21383   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21384     ac_cs_recheck=: ;;
21385   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21386     echo "$ac_cs_version"; exit ;;
21387   --debug | --debu | --deb | --de | --d | -d )
21388     debug=: ;;
21389   --file | --fil | --fi | --f )
21390     $ac_shift
21391     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21392     ac_need_defaults=false;;
21393   --he | --h |  --help | --hel | -h )
21394     echo "$ac_cs_usage"; exit ;;
21395   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21396   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21397     ac_cs_silent=: ;;
21398
21399   # This is an error.
21400   -*) { echo "$as_me: error: unrecognized option: $1
21401 Try \`$0 --help' for more information." >&2
21402    { (exit 1); exit 1; }; } ;;
21403
21404   *) ac_config_targets="$ac_config_targets $1"
21405      ac_need_defaults=false ;;
21406
21407   esac
21408   shift
21409 done
21410
21411 ac_configure_extra_args=
21412
21413 if $ac_cs_silent; then
21414   exec 6>/dev/null
21415   ac_configure_extra_args="$ac_configure_extra_args --silent"
21416 fi
21417
21418 _ACEOF
21419 cat >>$CONFIG_STATUS <<_ACEOF
21420 if \$ac_cs_recheck; then
21421   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21422   CONFIG_SHELL=$SHELL
21423   export CONFIG_SHELL
21424   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21425 fi
21426
21427 _ACEOF
21428 cat >>$CONFIG_STATUS <<\_ACEOF
21429 exec 5>>config.log
21430 {
21431   echo
21432   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21433 ## Running $as_me. ##
21434 _ASBOX
21435   echo "$ac_log"
21436 } >&5
21437
21438 _ACEOF
21439 cat >>$CONFIG_STATUS <<_ACEOF
21440 #
21441 # INIT-COMMANDS
21442 #
21443 llvm_src="${LLVM_SRC}"
21444
21445 _ACEOF
21446
21447 cat >>$CONFIG_STATUS <<\_ACEOF
21448
21449 # Handling of arguments.
21450 for ac_config_target in $ac_config_targets
21451 do
21452   case $ac_config_target in
21453     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21454     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21455     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21456     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21457     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21458     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21459     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21460     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21461
21462   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21463 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21464    { (exit 1); exit 1; }; };;
21465   esac
21466 done
21467
21468
21469 # If the user did not use the arguments to specify the items to instantiate,
21470 # then the envvar interface is used.  Set only those that are not.
21471 # We use the long form for the default assignment because of an extremely
21472 # bizarre bug on SunOS 4.1.3.
21473 if $ac_need_defaults; then
21474   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21475   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21476 fi
21477
21478 # Have a temporary directory for convenience.  Make it in the build tree
21479 # simply because there is no reason against having it here, and in addition,
21480 # creating and moving files from /tmp can sometimes cause problems.
21481 # Hook for its removal unless debugging.
21482 # Note that there is a small window in which the directory will not be cleaned:
21483 # after its creation but before its name has been assigned to `$tmp'.
21484 $debug ||
21485 {
21486   tmp=
21487   trap 'exit_status=$?
21488   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21489 ' 0
21490   trap '{ (exit 1); exit 1; }' 1 2 13 15
21491 }
21492 # Create a (secure) tmp directory for tmp files.
21493
21494 {
21495   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21496   test -n "$tmp" && test -d "$tmp"
21497 }  ||
21498 {
21499   tmp=./conf$$-$RANDOM
21500   (umask 077 && mkdir "$tmp")
21501 } ||
21502 {
21503    echo "$me: cannot create a temporary directory in ." >&2
21504    { (exit 1); exit 1; }
21505 }
21506
21507 #
21508 # Set up the sed scripts for CONFIG_FILES section.
21509 #
21510
21511 # No need to generate the scripts if there are no CONFIG_FILES.
21512 # This happens for instance when ./config.status config.h
21513 if test -n "$CONFIG_FILES"; then
21514
21515 _ACEOF
21516
21517
21518
21519 ac_delim='%!_!# '
21520 for ac_last_try in false false false false false :; do
21521   cat >conf$$subs.sed <<_ACEOF
21522 SHELL!$SHELL$ac_delim
21523 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21524 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21525 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21526 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21527 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21528 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21529 exec_prefix!$exec_prefix$ac_delim
21530 prefix!$prefix$ac_delim
21531 program_transform_name!$program_transform_name$ac_delim
21532 bindir!$bindir$ac_delim
21533 sbindir!$sbindir$ac_delim
21534 libexecdir!$libexecdir$ac_delim
21535 datarootdir!$datarootdir$ac_delim
21536 datadir!$datadir$ac_delim
21537 sysconfdir!$sysconfdir$ac_delim
21538 sharedstatedir!$sharedstatedir$ac_delim
21539 localstatedir!$localstatedir$ac_delim
21540 includedir!$includedir$ac_delim
21541 oldincludedir!$oldincludedir$ac_delim
21542 docdir!$docdir$ac_delim
21543 infodir!$infodir$ac_delim
21544 htmldir!$htmldir$ac_delim
21545 dvidir!$dvidir$ac_delim
21546 pdfdir!$pdfdir$ac_delim
21547 psdir!$psdir$ac_delim
21548 libdir!$libdir$ac_delim
21549 localedir!$localedir$ac_delim
21550 mandir!$mandir$ac_delim
21551 DEFS!$DEFS$ac_delim
21552 ECHO_C!$ECHO_C$ac_delim
21553 ECHO_N!$ECHO_N$ac_delim
21554 ECHO_T!$ECHO_T$ac_delim
21555 LIBS!$LIBS$ac_delim
21556 build_alias!$build_alias$ac_delim
21557 host_alias!$host_alias$ac_delim
21558 target_alias!$target_alias$ac_delim
21559 LLVM_SRC!$LLVM_SRC$ac_delim
21560 LLVM_OBJ!$LLVM_OBJ$ac_delim
21561 LLVM_VERSION!$LLVM_VERSION$ac_delim
21562 CC!$CC$ac_delim
21563 CFLAGS!$CFLAGS$ac_delim
21564 LDFLAGS!$LDFLAGS$ac_delim
21565 CPPFLAGS!$CPPFLAGS$ac_delim
21566 ac_ct_CC!$ac_ct_CC$ac_delim
21567 EXEEXT!$EXEEXT$ac_delim
21568 OBJEXT!$OBJEXT$ac_delim
21569 CXX!$CXX$ac_delim
21570 CXXFLAGS!$CXXFLAGS$ac_delim
21571 ac_ct_CXX!$ac_ct_CXX$ac_delim
21572 CPP!$CPP$ac_delim
21573 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21574 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21575 subdirs!$subdirs$ac_delim
21576 build!$build$ac_delim
21577 build_cpu!$build_cpu$ac_delim
21578 build_vendor!$build_vendor$ac_delim
21579 build_os!$build_os$ac_delim
21580 host!$host$ac_delim
21581 host_cpu!$host_cpu$ac_delim
21582 host_vendor!$host_vendor$ac_delim
21583 host_os!$host_os$ac_delim
21584 target!$target$ac_delim
21585 target_cpu!$target_cpu$ac_delim
21586 target_vendor!$target_vendor$ac_delim
21587 target_os!$target_os$ac_delim
21588 OS!$OS$ac_delim
21589 HOST_OS!$HOST_OS$ac_delim
21590 TARGET_OS!$TARGET_OS$ac_delim
21591 LINKALL!$LINKALL$ac_delim
21592 NOLINKALL!$NOLINKALL$ac_delim
21593 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21594 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21595 ARCH!$ARCH$ac_delim
21596 ENDIAN!$ENDIAN$ac_delim
21597 GREP!$GREP$ac_delim
21598 EGREP!$EGREP$ac_delim
21599 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21600 BUILD_CC!$BUILD_CC$ac_delim
21601 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21602 BUILD_CXX!$BUILD_CXX$ac_delim
21603 CVSBUILD!$CVSBUILD$ac_delim
21604 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21605 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21606 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21607 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21608 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21609 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21610 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21611 JIT!$JIT$ac_delim
21612 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21613 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21614 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21615 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21616 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21617 ENABLE_PIC!$ENABLE_PIC$ac_delim
21618 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21619 _ACEOF
21620
21621   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21622     break
21623   elif $ac_last_try; then
21624     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21625 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21626    { (exit 1); exit 1; }; }
21627   else
21628     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21629   fi
21630 done
21631
21632 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21633 if test -n "$ac_eof"; then
21634   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21635   ac_eof=`expr $ac_eof + 1`
21636 fi
21637
21638 cat >>$CONFIG_STATUS <<_ACEOF
21639 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21641 _ACEOF
21642 sed '
21643 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21644 s/^/s,@/; s/!/@,|#_!!_#|/
21645 :n
21646 t n
21647 s/'"$ac_delim"'$/,g/; t
21648 s/$/\\/; p
21649 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21650 ' >>$CONFIG_STATUS <conf$$subs.sed
21651 rm -f conf$$subs.sed
21652 cat >>$CONFIG_STATUS <<_ACEOF
21653 CEOF$ac_eof
21654 _ACEOF
21655
21656
21657 ac_delim='%!_!# '
21658 for ac_last_try in false false false false false :; do
21659   cat >conf$$subs.sed <<_ACEOF
21660 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21661 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21662 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21663 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21664 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21665 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21666 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21667 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21668 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21669 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21670 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21671 NM!$NM$ac_delim
21672 ifGNUmake!$ifGNUmake$ac_delim
21673 LN_S!$LN_S$ac_delim
21674 CMP!$CMP$ac_delim
21675 CP!$CP$ac_delim
21676 DATE!$DATE$ac_delim
21677 FIND!$FIND$ac_delim
21678 MKDIR!$MKDIR$ac_delim
21679 MV!$MV$ac_delim
21680 RANLIB!$RANLIB$ac_delim
21681 AR!$AR$ac_delim
21682 RM!$RM$ac_delim
21683 SED!$SED$ac_delim
21684 TAR!$TAR$ac_delim
21685 BINPWD!$BINPWD$ac_delim
21686 GRAPHVIZ!$GRAPHVIZ$ac_delim
21687 DOT!$DOT$ac_delim
21688 FDP!$FDP$ac_delim
21689 NEATO!$NEATO$ac_delim
21690 TWOPI!$TWOPI$ac_delim
21691 CIRCO!$CIRCO$ac_delim
21692 GV!$GV$ac_delim
21693 DOTTY!$DOTTY$ac_delim
21694 XDOT_PY!$XDOT_PY$ac_delim
21695 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21696 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21697 INSTALL_DATA!$INSTALL_DATA$ac_delim
21698 BZIP2!$BZIP2$ac_delim
21699 CAT!$CAT$ac_delim
21700 DOXYGEN!$DOXYGEN$ac_delim
21701 GROFF!$GROFF$ac_delim
21702 GZIPBIN!$GZIPBIN$ac_delim
21703 POD2HTML!$POD2HTML$ac_delim
21704 POD2MAN!$POD2MAN$ac_delim
21705 PDFROFF!$PDFROFF$ac_delim
21706 RUNTEST!$RUNTEST$ac_delim
21707 TCLSH!$TCLSH$ac_delim
21708 ZIP!$ZIP$ac_delim
21709 OCAMLC!$OCAMLC$ac_delim
21710 OCAMLOPT!$OCAMLOPT$ac_delim
21711 OCAMLDEP!$OCAMLDEP$ac_delim
21712 OCAMLDOC!$OCAMLDOC$ac_delim
21713 GAS!$GAS$ac_delim
21714 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21715 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21716 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21717 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21718 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21719 LIBADD_DL!$LIBADD_DL$ac_delim
21720 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21721 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21722 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21723 USE_UDIS86!$USE_UDIS86$ac_delim
21724 USE_OPROFILE!$USE_OPROFILE$ac_delim
21725 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21726 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21727 MMAP_FILE!$MMAP_FILE$ac_delim
21728 SHLIBEXT!$SHLIBEXT$ac_delim
21729 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21730 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21731 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21732 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21733 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21734 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21735 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21736 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21737 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21738 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21739 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21740 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21741 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21742 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21743 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21744 RPATH!$RPATH$ac_delim
21745 RDYNAMIC!$RDYNAMIC$ac_delim
21746 LIBOBJS!$LIBOBJS$ac_delim
21747 LTLIBOBJS!$LTLIBOBJS$ac_delim
21748 _ACEOF
21749
21750   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
21751     break
21752   elif $ac_last_try; then
21753     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21754 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21755    { (exit 1); exit 1; }; }
21756   else
21757     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21758   fi
21759 done
21760
21761 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21762 if test -n "$ac_eof"; then
21763   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21764   ac_eof=`expr $ac_eof + 1`
21765 fi
21766
21767 cat >>$CONFIG_STATUS <<_ACEOF
21768 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21770 _ACEOF
21771 sed '
21772 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21773 s/^/s,@/; s/!/@,|#_!!_#|/
21774 :n
21775 t n
21776 s/'"$ac_delim"'$/,g/; t
21777 s/$/\\/; p
21778 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21779 ' >>$CONFIG_STATUS <conf$$subs.sed
21780 rm -f conf$$subs.sed
21781 cat >>$CONFIG_STATUS <<_ACEOF
21782 :end
21783 s/|#_!!_#|//g
21784 CEOF$ac_eof
21785 _ACEOF
21786
21787
21788 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21789 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21790 # trailing colons and then remove the whole line if VPATH becomes empty
21791 # (actually we leave an empty line to preserve line numbers).
21792 if test "x$srcdir" = x.; then
21793   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21794 s/:*\$(srcdir):*/:/
21795 s/:*\${srcdir}:*/:/
21796 s/:*@srcdir@:*/:/
21797 s/^\([^=]*=[     ]*\):*/\1/
21798 s/:*$//
21799 s/^[^=]*=[       ]*$//
21800 }'
21801 fi
21802
21803 cat >>$CONFIG_STATUS <<\_ACEOF
21804 fi # test -n "$CONFIG_FILES"
21805
21806
21807 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21808 do
21809   case $ac_tag in
21810   :[FHLC]) ac_mode=$ac_tag; continue;;
21811   esac
21812   case $ac_mode$ac_tag in
21813   :[FHL]*:*);;
21814   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21815 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21816    { (exit 1); exit 1; }; };;
21817   :[FH]-) ac_tag=-:-;;
21818   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21819   esac
21820   ac_save_IFS=$IFS
21821   IFS=:
21822   set x $ac_tag
21823   IFS=$ac_save_IFS
21824   shift
21825   ac_file=$1
21826   shift
21827
21828   case $ac_mode in
21829   :L) ac_source=$1;;
21830   :[FH])
21831     ac_file_inputs=
21832     for ac_f
21833     do
21834       case $ac_f in
21835       -) ac_f="$tmp/stdin";;
21836       *) # Look for the file first in the build tree, then in the source tree
21837          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21838          # because $ac_f cannot contain `:'.
21839          test -f "$ac_f" ||
21840            case $ac_f in
21841            [\\/$]*) false;;
21842            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21843            esac ||
21844            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21845 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21846    { (exit 1); exit 1; }; };;
21847       esac
21848       ac_file_inputs="$ac_file_inputs $ac_f"
21849     done
21850
21851     # Let's still pretend it is `configure' which instantiates (i.e., don't
21852     # use $as_me), people would be surprised to read:
21853     #    /* config.h.  Generated by config.status.  */
21854     configure_input="Generated from "`IFS=:
21855           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21856     if test x"$ac_file" != x-; then
21857       configure_input="$ac_file.  $configure_input"
21858       { echo "$as_me:$LINENO: creating $ac_file" >&5
21859 echo "$as_me: creating $ac_file" >&6;}
21860     fi
21861
21862     case $ac_tag in
21863     *:-:* | *:-) cat >"$tmp/stdin";;
21864     esac
21865     ;;
21866   esac
21867
21868   ac_dir=`$as_dirname -- "$ac_file" ||
21869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21870          X"$ac_file" : 'X\(//\)[^/]' \| \
21871          X"$ac_file" : 'X\(//\)$' \| \
21872          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21873 echo X"$ac_file" |
21874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21875             s//\1/
21876             q
21877           }
21878           /^X\(\/\/\)[^/].*/{
21879             s//\1/
21880             q
21881           }
21882           /^X\(\/\/\)$/{
21883             s//\1/
21884             q
21885           }
21886           /^X\(\/\).*/{
21887             s//\1/
21888             q
21889           }
21890           s/.*/./; q'`
21891   { as_dir="$ac_dir"
21892   case $as_dir in #(
21893   -*) as_dir=./$as_dir;;
21894   esac
21895   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21896     as_dirs=
21897     while :; do
21898       case $as_dir in #(
21899       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21900       *) as_qdir=$as_dir;;
21901       esac
21902       as_dirs="'$as_qdir' $as_dirs"
21903       as_dir=`$as_dirname -- "$as_dir" ||
21904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21905          X"$as_dir" : 'X\(//\)[^/]' \| \
21906          X"$as_dir" : 'X\(//\)$' \| \
21907          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21908 echo X"$as_dir" |
21909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21910             s//\1/
21911             q
21912           }
21913           /^X\(\/\/\)[^/].*/{
21914             s//\1/
21915             q
21916           }
21917           /^X\(\/\/\)$/{
21918             s//\1/
21919             q
21920           }
21921           /^X\(\/\).*/{
21922             s//\1/
21923             q
21924           }
21925           s/.*/./; q'`
21926       test -d "$as_dir" && break
21927     done
21928     test -z "$as_dirs" || eval "mkdir $as_dirs"
21929   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21930 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21931    { (exit 1); exit 1; }; }; }
21932   ac_builddir=.
21933
21934 case "$ac_dir" in
21935 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21936 *)
21937   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21938   # A ".." for each directory in $ac_dir_suffix.
21939   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21940   case $ac_top_builddir_sub in
21941   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21942   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21943   esac ;;
21944 esac
21945 ac_abs_top_builddir=$ac_pwd
21946 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21947 # for backward compatibility:
21948 ac_top_builddir=$ac_top_build_prefix
21949
21950 case $srcdir in
21951   .)  # We are building in place.
21952     ac_srcdir=.
21953     ac_top_srcdir=$ac_top_builddir_sub
21954     ac_abs_top_srcdir=$ac_pwd ;;
21955   [\\/]* | ?:[\\/]* )  # Absolute name.
21956     ac_srcdir=$srcdir$ac_dir_suffix;
21957     ac_top_srcdir=$srcdir
21958     ac_abs_top_srcdir=$srcdir ;;
21959   *) # Relative name.
21960     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21961     ac_top_srcdir=$ac_top_build_prefix$srcdir
21962     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21963 esac
21964 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21965
21966
21967   case $ac_mode in
21968   :F)
21969   #
21970   # CONFIG_FILE
21971   #
21972
21973   case $INSTALL in
21974   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21975   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21976   esac
21977 _ACEOF
21978
21979 cat >>$CONFIG_STATUS <<\_ACEOF
21980 # If the template does not know about datarootdir, expand it.
21981 # FIXME: This hack should be removed a few years after 2.60.
21982 ac_datarootdir_hack=; ac_datarootdir_seen=
21983
21984 case `sed -n '/datarootdir/ {
21985   p
21986   q
21987 }
21988 /@datadir@/p
21989 /@docdir@/p
21990 /@infodir@/p
21991 /@localedir@/p
21992 /@mandir@/p
21993 ' $ac_file_inputs` in
21994 *datarootdir*) ac_datarootdir_seen=yes;;
21995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21996   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21997 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21998 _ACEOF
21999 cat >>$CONFIG_STATUS <<_ACEOF
22000   ac_datarootdir_hack='
22001   s&@datadir@&$datadir&g
22002   s&@docdir@&$docdir&g
22003   s&@infodir@&$infodir&g
22004   s&@localedir@&$localedir&g
22005   s&@mandir@&$mandir&g
22006     s&\\\${datarootdir}&$datarootdir&g' ;;
22007 esac
22008 _ACEOF
22009
22010 # Neutralize VPATH when `$srcdir' = `.'.
22011 # Shell code in configure.ac might set extrasub.
22012 # FIXME: do we really want to maintain this feature?
22013 cat >>$CONFIG_STATUS <<_ACEOF
22014   sed "$ac_vpsub
22015 $extrasub
22016 _ACEOF
22017 cat >>$CONFIG_STATUS <<\_ACEOF
22018 :t
22019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22020 s&@configure_input@&$configure_input&;t t
22021 s&@top_builddir@&$ac_top_builddir_sub&;t t
22022 s&@srcdir@&$ac_srcdir&;t t
22023 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22024 s&@top_srcdir@&$ac_top_srcdir&;t t
22025 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22026 s&@builddir@&$ac_builddir&;t t
22027 s&@abs_builddir@&$ac_abs_builddir&;t t
22028 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22029 s&@INSTALL@&$ac_INSTALL&;t t
22030 $ac_datarootdir_hack
22031 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22032
22033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22034   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22035   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22036   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22037 which seems to be undefined.  Please make sure it is defined." >&5
22038 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22039 which seems to be undefined.  Please make sure it is defined." >&2;}
22040
22041   rm -f "$tmp/stdin"
22042   case $ac_file in
22043   -) cat "$tmp/out"; rm -f "$tmp/out";;
22044   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22045   esac
22046  ;;
22047
22048
22049   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22050 echo "$as_me: executing $ac_file commands" >&6;}
22051  ;;
22052   esac
22053
22054
22055   case $ac_file$ac_mode in
22056     "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22057    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22058     "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22059    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22060     "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22061    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22062     "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22063    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22064     "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22065    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22066
22067   esac
22068 done # for ac_tag
22069
22070
22071 { (exit 0); exit 0; }
22072 _ACEOF
22073 chmod +x $CONFIG_STATUS
22074 ac_clean_files=$ac_clean_files_save
22075
22076
22077 # configure is writing to config.log, and then calls config.status.
22078 # config.status does its own redirection, appending to config.log.
22079 # Unfortunately, on DOS this fails, as config.log is still kept open
22080 # by configure, so config.status won't be able to write to it; its
22081 # output is simply discarded.  So we exec the FD to /dev/null,
22082 # effectively closing config.log, so it can be properly (re)opened and
22083 # appended to by config.status.  When coming back to configure, we
22084 # need to make the FD available again.
22085 if test "$no_create" != yes; then
22086   ac_cs_success=:
22087   ac_config_status_args=
22088   test "$silent" = yes &&
22089     ac_config_status_args="$ac_config_status_args --quiet"
22090   exec 5>/dev/null
22091   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22092   exec 5>>config.log
22093   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22094   # would make configure fail if this is the last instruction.
22095   $ac_cs_success || { (exit 1); exit 1; }
22096 fi
22097
22098 #
22099 # CONFIG_SUBDIRS section.
22100 #
22101 if test "$no_recursion" != yes; then
22102
22103   # Remove --cache-file and --srcdir arguments so they do not pile up.
22104   ac_sub_configure_args=
22105   ac_prev=
22106   eval "set x $ac_configure_args"
22107   shift
22108   for ac_arg
22109   do
22110     if test -n "$ac_prev"; then
22111       ac_prev=
22112       continue
22113     fi
22114     case $ac_arg in
22115     -cache-file | --cache-file | --cache-fil | --cache-fi \
22116     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22117       ac_prev=cache_file ;;
22118     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22119     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22120     | --c=*)
22121       ;;
22122     --config-cache | -C)
22123       ;;
22124     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22125       ac_prev=srcdir ;;
22126     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22127       ;;
22128     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22129       ac_prev=prefix ;;
22130     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22131       ;;
22132     *)
22133       case $ac_arg in
22134       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22135       esac
22136       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22137     esac
22138   done
22139
22140   # Always prepend --prefix to ensure using the same prefix
22141   # in subdir configurations.
22142   ac_arg="--prefix=$prefix"
22143   case $ac_arg in
22144   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22145   esac
22146   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22147
22148   ac_popdir=`pwd`
22149   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22150
22151     # Do not complain, so a configure script can configure whichever
22152     # parts of a large source tree are present.
22153     test -d "$srcdir/$ac_dir" || continue
22154
22155     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22156     echo "$as_me:$LINENO: $ac_msg" >&5
22157     echo "$ac_msg" >&6
22158     { as_dir="$ac_dir"
22159   case $as_dir in #(
22160   -*) as_dir=./$as_dir;;
22161   esac
22162   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22163     as_dirs=
22164     while :; do
22165       case $as_dir in #(
22166       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22167       *) as_qdir=$as_dir;;
22168       esac
22169       as_dirs="'$as_qdir' $as_dirs"
22170       as_dir=`$as_dirname -- "$as_dir" ||
22171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22172          X"$as_dir" : 'X\(//\)[^/]' \| \
22173          X"$as_dir" : 'X\(//\)$' \| \
22174          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22175 echo X"$as_dir" |
22176     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22177             s//\1/
22178             q
22179           }
22180           /^X\(\/\/\)[^/].*/{
22181             s//\1/
22182             q
22183           }
22184           /^X\(\/\/\)$/{
22185             s//\1/
22186             q
22187           }
22188           /^X\(\/\).*/{
22189             s//\1/
22190             q
22191           }
22192           s/.*/./; q'`
22193       test -d "$as_dir" && break
22194     done
22195     test -z "$as_dirs" || eval "mkdir $as_dirs"
22196   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22197 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22198    { (exit 1); exit 1; }; }; }
22199     ac_builddir=.
22200
22201 case "$ac_dir" in
22202 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22203 *)
22204   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22205   # A ".." for each directory in $ac_dir_suffix.
22206   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22207   case $ac_top_builddir_sub in
22208   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22209   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22210   esac ;;
22211 esac
22212 ac_abs_top_builddir=$ac_pwd
22213 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22214 # for backward compatibility:
22215 ac_top_builddir=$ac_top_build_prefix
22216
22217 case $srcdir in
22218   .)  # We are building in place.
22219     ac_srcdir=.
22220     ac_top_srcdir=$ac_top_builddir_sub
22221     ac_abs_top_srcdir=$ac_pwd ;;
22222   [\\/]* | ?:[\\/]* )  # Absolute name.
22223     ac_srcdir=$srcdir$ac_dir_suffix;
22224     ac_top_srcdir=$srcdir
22225     ac_abs_top_srcdir=$srcdir ;;
22226   *) # Relative name.
22227     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22228     ac_top_srcdir=$ac_top_build_prefix$srcdir
22229     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22230 esac
22231 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22232
22233
22234     cd "$ac_dir"
22235
22236     # Check for guested configure; otherwise get Cygnus style configure.
22237     if test -f "$ac_srcdir/configure.gnu"; then
22238       ac_sub_configure=$ac_srcdir/configure.gnu
22239     elif test -f "$ac_srcdir/configure"; then
22240       ac_sub_configure=$ac_srcdir/configure
22241     elif test -f "$ac_srcdir/configure.in"; then
22242       # This should be Cygnus configure.
22243       ac_sub_configure=$ac_aux_dir/configure
22244     else
22245       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22246 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22247       ac_sub_configure=
22248     fi
22249
22250     # The recursion is here.
22251     if test -n "$ac_sub_configure"; then
22252       # Make the cache file name correct relative to the subdirectory.
22253       case $cache_file in
22254       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22255       *) # Relative name.
22256         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22257       esac
22258
22259       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22260 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22261       # The eval makes quoting arguments work.
22262       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22263            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22264         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22265 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22266    { (exit 1); exit 1; }; }
22267     fi
22268
22269     cd "$ac_popdir"
22270   done
22271 fi
22272