ca654d027b2a97ee6c6e12a0d9812e19081891df
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 NM
713 ifGNUmake
714 LN_S
715 CMP
716 CP
717 DATE
718 FIND
719 MKDIR
720 MV
721 RANLIB
722 AR
723 RM
724 SED
725 TAR
726 BINPWD
727 GRAPHVIZ
728 DOT
729 FDP
730 NEATO
731 TWOPI
732 CIRCO
733 GV
734 DOTTY
735 XDOT_PY
736 PERL
737 HAVE_PERL
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='tools/polly'
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855   # If the previous option needs an argument, assign it.
856   if test -n "$ac_prev"; then
857     eval $ac_prev=\$ac_option
858     ac_prev=
859     continue
860   fi
861
862   case $ac_option in
863   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864   *)    ac_optarg=yes ;;
865   esac
866
867   # Accept the important Cygnus configure options, so we can diagnose typos.
868
869   case $ac_dashdash$ac_option in
870   --)
871     ac_dashdash=yes ;;
872
873   -bindir | --bindir | --bindi | --bind | --bin | --bi)
874     ac_prev=bindir ;;
875   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876     bindir=$ac_optarg ;;
877
878   -build | --build | --buil | --bui | --bu)
879     ac_prev=build_alias ;;
880   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881     build_alias=$ac_optarg ;;
882
883   -cache-file | --cache-file | --cache-fil | --cache-fi \
884   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885     ac_prev=cache_file ;;
886   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888     cache_file=$ac_optarg ;;
889
890   --config-cache | -C)
891     cache_file=config.cache ;;
892
893   -datadir | --datadir | --datadi | --datad)
894     ac_prev=datadir ;;
895   -datadir=* | --datadir=* | --datadi=* | --datad=*)
896     datadir=$ac_optarg ;;
897
898   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899   | --dataroo | --dataro | --datar)
900     ac_prev=datarootdir ;;
901   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903     datarootdir=$ac_optarg ;;
904
905   -disable-* | --disable-*)
906     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907     # Reject names that are not valid shell variable names.
908     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
909       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910    { (exit 1); exit 1; }; }
911     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
912     eval enable_$ac_feature=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929    { (exit 1); exit 1; }; }
930     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931     eval enable_$ac_feature=\$ac_optarg ;;
932
933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935   | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939   | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941
942   -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945
946   -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952
953   -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955   -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957
958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961   | --ht=*)
962     htmldir=$ac_optarg ;;
963
964   -includedir | --includedir | --includedi | --included | --include \
965   | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968   | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970
971   -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975
976   -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980
981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982   | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985   | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987
988   -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992
993   -localstatedir | --localstatedir | --localstatedi | --localstated \
994   | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999
1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004
1005   -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012
1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016
1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019   | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025
1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030
1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032   | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037
1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039   | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044
1045   -program-transform-name | --program-transform-name \
1046   | --program-transform-nam | --program-transform-na \
1047   | --program-transform-n | --program-transform- \
1048   | --program-transform | --program-transfor \
1049   | --program-transfo | --program-transf \
1050   | --program-trans | --program-tran \
1051   | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053   -program-transform-name=* | --program-transform-name=* \
1054   | --program-transform-nam=* | --program-transform-na=* \
1055   | --program-transform-n=* | --program-transform-=* \
1056   | --program-transform=* | --program-transfor=* \
1057   | --program-transfo=* | --program-transf=* \
1058   | --program-trans=* | --program-tran=* \
1059   | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061
1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066
1067   -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071
1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073   | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075
1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079   | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081
1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084   | --sharedst | --shareds | --shared | --share | --shar \
1085   | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090   | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092
1093   -site | --site | --sit)
1094     ac_prev=site ;;
1095   -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097
1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102
1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104   | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109
1110   -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114
1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117
1118   -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120
1121   -with-* | --with-*)
1122     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1125       { echo "$as_me: error: invalid package name: $ac_package" >&2
1126    { (exit 1); exit 1; }; }
1127     ac_package=`echo $ac_package| sed 's/-/_/g'`
1128     eval with_$ac_package=\$ac_optarg ;;
1129
1130   -without-* | --without-*)
1131     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134       { echo "$as_me: error: invalid package name: $ac_package" >&2
1135    { (exit 1); exit 1; }; }
1136     ac_package=`echo $ac_package | sed 's/-/_/g'`
1137     eval with_$ac_package=no ;;
1138
1139   --x)
1140     # Obsolete; use --with-x.
1141     with_x=yes ;;
1142
1143   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144   | --x-incl | --x-inc | --x-in | --x-i)
1145     ac_prev=x_includes ;;
1146   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148     x_includes=$ac_optarg ;;
1149
1150   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152     ac_prev=x_libraries ;;
1153   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155     x_libraries=$ac_optarg ;;
1156
1157   -*) { echo "$as_me: error: unrecognized option: $ac_option
1158 Try \`$0 --help' for more information." >&2
1159    { (exit 1); exit 1; }; }
1160     ;;
1161
1162   *=*)
1163     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167    { (exit 1); exit 1; }; }
1168     eval $ac_envvar=\$ac_optarg
1169     export $ac_envvar ;;
1170
1171   *)
1172     # FIXME: should be removed in autoconf 3.0.
1173     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177     ;;
1178
1179   esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184   { echo "$as_me: error: missing argument to $ac_option" >&2
1185    { (exit 1); exit 1; }; }
1186 fi
1187
1188 # Be sure to have absolute directory names.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   case $ac_val in
1196     [\\/$]* | ?:[\\/]* )  continue;;
1197     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198   esac
1199   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200    { (exit 1); exit 1; }; }
1201 done
1202
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1209
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212   if test "x$build_alias" = x; then
1213     cross_compiling=maybe
1214     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215     If a cross compiler is detected then cross compile mode will be used." >&2
1216   elif test "x$build_alias" != "x$host_alias"; then
1217     cross_compiling=yes
1218   fi
1219 fi
1220
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224 test "$silent" = yes && exec 6>/dev/null
1225
1226
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230   { echo "$as_me: error: Working directory cannot be determined" >&2
1231    { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233   { echo "$as_me: error: pwd does not report name of working directory" >&2
1234    { (exit 1); exit 1; }; }
1235
1236
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239   ac_srcdir_defaulted=yes
1240   # Try the directory containing this script, then the parent directory.
1241   ac_confdir=`$as_dirname -- "$0" ||
1242 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243          X"$0" : 'X\(//\)[^/]' \| \
1244          X"$0" : 'X\(//\)$' \| \
1245          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 echo X"$0" |
1247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248             s//\1/
1249             q
1250           }
1251           /^X\(\/\/\)[^/].*/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\).*/{
1260             s//\1/
1261             q
1262           }
1263           s/.*/./; q'`
1264   srcdir=$ac_confdir
1265   if test ! -r "$srcdir/$ac_unique_file"; then
1266     srcdir=..
1267   fi
1268 else
1269   ac_srcdir_defaulted=no
1270 fi
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1279    { (exit 1); exit 1; }; }
1280         pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283   srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_env_${ac_var}_value=\$${ac_var}
1294   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302   # Omit some internal or obsolete options to make the list less imposing.
1303   # This message is too long to be a string in the A/UX 3.1 sh.
1304   cat <<_ACEOF
1305 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315   -h, --help              display this help and exit
1316       --help=short        display options specific to this package
1317       --help=recursive    display the short help of all the included packages
1318   -V, --version           display version information and exit
1319   -q, --quiet, --silent   do not print \`checking...' messages
1320       --cache-file=FILE   cache test results in FILE [disabled]
1321   -C, --config-cache      alias for \`--cache-file=config.cache'
1322   -n, --no-create         do not create output files
1323       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326   --prefix=PREFIX         install architecture-independent files in PREFIX
1327                           [$ac_default_prefix]
1328   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329                           [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339   --bindir=DIR           user executables [EPREFIX/bin]
1340   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1341   --libexecdir=DIR       program executables [EPREFIX/libexec]
1342   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1343   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1344   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1345   --libdir=DIR           object code libraries [EPREFIX/lib]
1346   --includedir=DIR       C header files [PREFIX/include]
1347   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1348   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1349   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1350   --infodir=DIR          info documentation [DATAROOTDIR/info]
1351   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1352   --mandir=DIR           man documentation [DATAROOTDIR/man]
1353   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1354   --htmldir=DIR          html documentation [DOCDIR]
1355   --dvidir=DIR           dvi documentation [DOCDIR]
1356   --pdfdir=DIR           pdf documentation [DOCDIR]
1357   --psdir=DIR            ps documentation [DOCDIR]
1358 _ACEOF
1359
1360   cat <<\_ACEOF
1361
1362 System types:
1363   --build=BUILD     configure for building on BUILD [guessed]
1364   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365   --target=TARGET   configure for building compilers for TARGET [HOST]
1366 _ACEOF
1367 fi
1368
1369 if test -n "$ac_init_help"; then
1370   case $ac_init_help in
1371      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1372    esac
1373   cat <<\_ACEOF
1374
1375 Optional Features:
1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378   --enable-polly          Use polly if available (default is YES)
1379   --enable-optimized      Compile with optimizations enabled (default is NO)
1380   --enable-profiling      Compile with profiling enabled (default is NO)
1381   --enable-assertions     Compile with assertion checks enabled (default is
1382                           YES)
1383   --enable-expensive-checks
1384                           Compile with expensive debug checks enabled (default
1385                           is NO)
1386   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1387                           NO)
1388   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1389                           optimization is on and YES if it's off)
1390   --enable-jit            Enable Just In Time Compiling (default is YES)
1391   --enable-docs           Build documents (default is YES)
1392   --enable-doxygen        Build doxygen documentation (default is NO)
1393   --enable-threads        Use threads if available (default is YES)
1394   --enable-pthreads       Use pthreads if available (default is YES)
1395   --enable-pic            Build LLVM with Position Independent Code (default
1396                           is YES)
1397   --enable-shared         Build a shared library and link tools against it
1398                           (default is NO)
1399   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1400                           Win32 DLL (default is YES)
1401   --enable-timestamps     Enable embedding timestamp information in build
1402                           (default is YES)
1403   --enable-targets        Build specific host targets: all or
1404                           target1,target2,... Valid targets are: host, x86,
1405                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1406                           xcore, msp430, ptx, cbe, and cpp (default=all)
1407   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1408                           %a (default is YES)
1409   --enable-bindings       Build specific language bindings:
1410                           all,auto,none,{binding-name} (default=auto)
1411   --enable-libffi         Check for the presence of libffi (default is NO)
1412   --enable-ltdl-install   install libltdl
1413
1414 Optional Packages:
1415   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1416   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1417   --with-llvmsrc          Location of LLVM Source Code
1418   --with-llvmobj          Location of LLVM Object Code
1419   --with-optimize-option  Select the compiler options to use for optimized
1420                           builds
1421   --with-extra-options    Specify additional options to compile LLVM with
1422   --with-extra-ld-options Specify additional options to link LLVM with
1423   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1424                           is stdlib)
1425   --with-clang-resource-dir
1426                           Relative directory from the Clang binary for
1427                           resource files
1428   --with-c-include-dirs   Colon separated list of directories clang will
1429                           search for headers
1430   --with-gcc-toolchain    Directory where gcc is installed.
1431   --with-binutils-include Specify path to binutils/include/ containing
1432                           plugin-api.h file for gold plugin.
1433   --with-bug-report-url   Specify the URL where bug reports should be
1434                           submitted (default=http://llvm.org/bugs/)
1435   --with-tclinclude       directory where tcl headers are
1436   --with-udis86=<path>    Use udis86 external x86 disassembler library
1437   --with-oprofile=<prefix>
1438                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1439
1440 Some influential environment variables:
1441   CC          C compiler command
1442   CFLAGS      C compiler flags
1443   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444               nonstandard directory <lib dir>
1445   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1446               you have headers in a nonstandard directory <include dir>
1447   CXX         C++ compiler command
1448   CXXFLAGS    C++ compiler flags
1449   CPP         C preprocessor
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to <bugs@yourdomain>.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460   # If there are subdirs, report their specific --help.
1461   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462     test -d "$ac_dir" || continue
1463     ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1469   # A ".." for each directory in $ac_dir_suffix.
1470   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1471   case $ac_top_builddir_sub in
1472   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474   esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482   .)  # We are building in place.
1483     ac_srcdir=.
1484     ac_top_srcdir=$ac_top_builddir_sub
1485     ac_abs_top_srcdir=$ac_pwd ;;
1486   [\\/]* | ?:[\\/]* )  # Absolute name.
1487     ac_srcdir=$srcdir$ac_dir_suffix;
1488     ac_top_srcdir=$srcdir
1489     ac_abs_top_srcdir=$srcdir ;;
1490   *) # Relative name.
1491     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492     ac_top_srcdir=$ac_top_build_prefix$srcdir
1493     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497     cd "$ac_dir" || { ac_status=$?; continue; }
1498     # Check for guested configure.
1499     if test -f "$ac_srcdir/configure.gnu"; then
1500       echo &&
1501       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502     elif test -f "$ac_srcdir/configure"; then
1503       echo &&
1504       $SHELL "$ac_srcdir/configure" --help=recursive
1505     else
1506       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507     fi || ac_status=$?
1508     cd "$ac_pwd" || { ac_status=$?; break; }
1509   done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514   cat <<\_ACEOF
1515 [SAMPLE] configure [x.xx]
1516 generated by GNU Autoconf 2.60
1517
1518 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1519 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523   exit
1524 fi
1525 cat >config.log <<_ACEOF
1526 This file contains any messages produced by compilers while
1527 running configure, to aid debugging if configure makes a mistake.
1528
1529 It was created by [SAMPLE] $as_me [x.xx], which was
1530 generated by GNU Autoconf 2.60.  Invocation command line was
1531
1532   $ $0 $@
1533
1534 _ACEOF
1535 exec 5>>config.log
1536 {
1537 cat <<_ASUNAME
1538 ## --------- ##
1539 ## Platform. ##
1540 ## --------- ##
1541
1542 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1543 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1544 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1545 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1546 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1547
1548 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1549 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1550
1551 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1552 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1553 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1554 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1555 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1556 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1557 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1558
1559 _ASUNAME
1560
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   echo "PATH: $as_dir"
1567 done
1568 IFS=$as_save_IFS
1569
1570 } >&5
1571
1572 cat >&5 <<_ACEOF
1573
1574
1575 ## ----------- ##
1576 ## Core tests. ##
1577 ## ----------- ##
1578
1579 _ACEOF
1580
1581
1582 # Keep a trace of the command line.
1583 # Strip out --no-create and --no-recursion so they do not pile up.
1584 # Strip out --silent because we don't want to record it for future runs.
1585 # Also quote any args containing shell meta-characters.
1586 # Make two passes to allow for proper duplicate-argument suppression.
1587 ac_configure_args=
1588 ac_configure_args0=
1589 ac_configure_args1=
1590 ac_must_keep_next=false
1591 for ac_pass in 1 2
1592 do
1593   for ac_arg
1594   do
1595     case $ac_arg in
1596     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1597     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1598     | -silent | --silent | --silen | --sile | --sil)
1599       continue ;;
1600     *\'*)
1601       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1602     esac
1603     case $ac_pass in
1604     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1605     2)
1606       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1607       if test $ac_must_keep_next = true; then
1608         ac_must_keep_next=false # Got value, back to normal.
1609       else
1610         case $ac_arg in
1611           *=* | --config-cache | -C | -disable-* | --disable-* \
1612           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1613           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1614           | -with-* | --with-* | -without-* | --without-* | --x)
1615             case "$ac_configure_args0 " in
1616               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1617             esac
1618             ;;
1619           -* ) ac_must_keep_next=true ;;
1620         esac
1621       fi
1622       ac_configure_args="$ac_configure_args '$ac_arg'"
1623       ;;
1624     esac
1625   done
1626 done
1627 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1628 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1629
1630 # When interrupted or exit'd, cleanup temporary files, and complete
1631 # config.log.  We remove comments because anyway the quotes in there
1632 # would cause problems or look ugly.
1633 # WARNING: Use '\'' to represent an apostrophe within the trap.
1634 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1635 trap 'exit_status=$?
1636   # Save into config.log some information that might help in debugging.
1637   {
1638     echo
1639
1640     cat <<\_ASBOX
1641 ## ---------------- ##
1642 ## Cache variables. ##
1643 ## ---------------- ##
1644 _ASBOX
1645     echo
1646     # The following way of writing the cache mishandles newlines in values,
1647 (
1648   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1649     eval ac_val=\$$ac_var
1650     case $ac_val in #(
1651     *${as_nl}*)
1652       case $ac_var in #(
1653       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1654 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1655       esac
1656       case $ac_var in #(
1657       _ | IFS | as_nl) ;; #(
1658       *) $as_unset $ac_var ;;
1659       esac ;;
1660     esac
1661   done
1662   (set) 2>&1 |
1663     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1664     *${as_nl}ac_space=\ *)
1665       sed -n \
1666         "s/'\''/'\''\\\\'\'''\''/g;
1667           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1668       ;; #(
1669     *)
1670       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1671       ;;
1672     esac |
1673     sort
1674 )
1675     echo
1676
1677     cat <<\_ASBOX
1678 ## ----------------- ##
1679 ## Output variables. ##
1680 ## ----------------- ##
1681 _ASBOX
1682     echo
1683     for ac_var in $ac_subst_vars
1684     do
1685       eval ac_val=\$$ac_var
1686       case $ac_val in
1687       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688       esac
1689       echo "$ac_var='\''$ac_val'\''"
1690     done | sort
1691     echo
1692
1693     if test -n "$ac_subst_files"; then
1694       cat <<\_ASBOX
1695 ## ------------------- ##
1696 ## File substitutions. ##
1697 ## ------------------- ##
1698 _ASBOX
1699       echo
1700       for ac_var in $ac_subst_files
1701       do
1702         eval ac_val=\$$ac_var
1703         case $ac_val in
1704         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705         esac
1706         echo "$ac_var='\''$ac_val'\''"
1707       done | sort
1708       echo
1709     fi
1710
1711     if test -s confdefs.h; then
1712       cat <<\_ASBOX
1713 ## ----------- ##
1714 ## confdefs.h. ##
1715 ## ----------- ##
1716 _ASBOX
1717       echo
1718       cat confdefs.h
1719       echo
1720     fi
1721     test "$ac_signal" != 0 &&
1722       echo "$as_me: caught signal $ac_signal"
1723     echo "$as_me: exit $exit_status"
1724   } >&5
1725   rm -f core *.core core.conftest.* &&
1726     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1727     exit $exit_status
1728 ' 0
1729 for ac_signal in 1 2 13 15; do
1730   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1731 done
1732 ac_signal=0
1733
1734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1735 rm -f -r conftest* confdefs.h
1736
1737 # Predefined preprocessor variables.
1738
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_NAME "$PACKAGE_NAME"
1741 _ACEOF
1742
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1751 _ACEOF
1752
1753
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_STRING "$PACKAGE_STRING"
1756 _ACEOF
1757
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1761 _ACEOF
1762
1763
1764 # Let the site file select an alternate cache file if it wants to.
1765 # Prefer explicitly selected file to automatically selected ones.
1766 if test -n "$CONFIG_SITE"; then
1767   set x "$CONFIG_SITE"
1768 elif test "x$prefix" != xNONE; then
1769   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1770 else
1771   set x "$ac_default_prefix/share/config.site" \
1772         "$ac_default_prefix/etc/config.site"
1773 fi
1774 shift
1775 for ac_site_file
1776 do
1777   if test -r "$ac_site_file"; then
1778     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1779 echo "$as_me: loading site script $ac_site_file" >&6;}
1780     sed 's/^/| /' "$ac_site_file" >&5
1781     . "$ac_site_file"
1782   fi
1783 done
1784
1785 if test -r "$cache_file"; then
1786   # Some versions of bash will fail to source /dev/null (special
1787   # files actually), so we avoid doing that.
1788   if test -f "$cache_file"; then
1789     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1790 echo "$as_me: loading cache $cache_file" >&6;}
1791     case $cache_file in
1792       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1793       *)                      . "./$cache_file";;
1794     esac
1795   fi
1796 else
1797   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1798 echo "$as_me: creating cache $cache_file" >&6;}
1799   >$cache_file
1800 fi
1801
1802 # Check that the precious variables saved in the cache have kept the same
1803 # value.
1804 ac_cache_corrupted=false
1805 for ac_var in $ac_precious_vars; do
1806   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1807   eval ac_new_set=\$ac_env_${ac_var}_set
1808   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1809   eval ac_new_val=\$ac_env_${ac_var}_value
1810   case $ac_old_set,$ac_new_set in
1811     set,)
1812       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1813 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1814       ac_cache_corrupted=: ;;
1815     ,set)
1816       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1818       ac_cache_corrupted=: ;;
1819     ,);;
1820     *)
1821       if test "x$ac_old_val" != "x$ac_new_val"; then
1822         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1823 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1824         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1825 echo "$as_me:   former value:  $ac_old_val" >&2;}
1826         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1827 echo "$as_me:   current value: $ac_new_val" >&2;}
1828         ac_cache_corrupted=:
1829       fi;;
1830   esac
1831   # Pass precious variables to config.status.
1832   if test "$ac_new_set" = set; then
1833     case $ac_new_val in
1834     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835     *) ac_arg=$ac_var=$ac_new_val ;;
1836     esac
1837     case " $ac_configure_args " in
1838       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1839       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1840     esac
1841   fi
1842 done
1843 if $ac_cache_corrupted; then
1844   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848    { (exit 1); exit 1; }; }
1849 fi
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875 ac_ext=c
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880
1881
1882
1883 LLVM_SRC_ROOT="../.."
1884 LLVM_OBJ_ROOT="../.."
1885
1886 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1887 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1888
1889
1890 # Check whether --with-llvmsrc was given.
1891 if test "${with_llvmsrc+set}" = set; then
1892   withval=$with_llvmsrc; llvm_src="$withval"
1893 else
1894   llvm_src="$LLVM_ABS_SRC_ROOT"
1895 fi
1896
1897   LLVM_SRC=$llvm_src
1898
1899
1900 # Check whether --with-llvmobj was given.
1901 if test "${with_llvmobj+set}" = set; then
1902   withval=$with_llvmobj; llvm_obj="$withval"
1903 else
1904   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1905 fi
1906
1907   LLVM_OBJ=$llvm_obj
1908
1909   ac_config_commands="$ac_config_commands setup"
1910
1911
1912
1913 { echo "$as_me:$LINENO: checking llvm-config" >&5
1914 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1915 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1916 if ! test -f "$llvm_config_path" ; then
1917    llvm_config_path="no"
1918 fi
1919 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1920 echo "${ECHO_T}$llvm_config_path" >&6; }
1921
1922 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1923 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1924 if test "$llvm_config_path" != no ; then
1925   llvm_package_version=`$llvm_config_path --version`
1926 else
1927   llvm_package_version="unknown";
1928 fi
1929 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1930 echo "${ECHO_T}$llvm_package_version" >&6; }
1931 LLVM_VERSION=$llvm_package_version
1932
1933
1934
1935
1936 ac_aux_dir=
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938   if test -f "$ac_dir/install-sh"; then
1939     ac_aux_dir=$ac_dir
1940     ac_install_sh="$ac_aux_dir/install-sh -c"
1941     break
1942   elif test -f "$ac_dir/install.sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install.sh -c"
1945     break
1946   elif test -f "$ac_dir/shtool"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/shtool install -c"
1949     break
1950   fi
1951 done
1952 if test -z "$ac_aux_dir"; then
1953   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1965
1966
1967
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975   for ac_prog in clang llvm-gcc gcc
1976   do
1977     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$CC"; then
1985   ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996     break 2
1997   fi
1998 done
1999 done
2000 IFS=$as_save_IFS
2001
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006   { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2008 else
2009   { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2011 fi
2012
2013
2014     test -n "$CC" && break
2015   done
2016 fi
2017 if test -z "$CC"; then
2018   ac_ct_CC=$CC
2019   for ac_prog in clang llvm-gcc gcc
2020 do
2021   # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   if test -n "$ac_ct_CC"; then
2029   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034   IFS=$as_save_IFS
2035   test -z "$as_dir" && as_dir=.
2036   for ac_exec_ext in '' $ac_executable_extensions; do
2037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038     ac_cv_prog_ac_ct_CC="$ac_prog"
2039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040     break 2
2041   fi
2042 done
2043 done
2044 IFS=$as_save_IFS
2045
2046 fi
2047 fi
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2052 else
2053   { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2055 fi
2056
2057
2058   test -n "$ac_ct_CC" && break
2059 done
2060
2061   if test "x$ac_ct_CC" = x; then
2062     CC=""
2063   else
2064     case $cross_compiling:$ac_tool_warned in
2065 yes:)
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet.  If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet.  If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072 ac_tool_warned=yes ;;
2073 esac
2074     CC=$ac_ct_CC
2075   fi
2076 fi
2077
2078
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&2;}
2083    { (exit 1); exit 1; }; }
2084
2085 # Provide some information about the compiler.
2086 echo "$as_me:$LINENO: checking for C compiler version" >&5
2087 ac_compiler=`set X $ac_compile; echo $2`
2088 { (ac_try="$ac_compiler --version >&5"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094   (eval "$ac_compiler --version >&5") 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }
2098 { (ac_try="$ac_compiler -v >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler -v >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108 { (ac_try="$ac_compiler -V >&5"
2109 case "(($ac_try" in
2110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111   *) ac_try_echo=$ac_try;;
2112 esac
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114   (eval "$ac_compiler -V >&5") 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }
2118
2119 cat >conftest.$ac_ext <<_ACEOF
2120 /* confdefs.h.  */
2121 _ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h.  */
2125
2126 int
2127 main ()
2128 {
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2138 # of exeext.
2139 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142 #
2143 # List of possible output files, starting from the most likely.
2144 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145 # only as a last resort.  b.out is created by i960 compilers.
2146 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2147 #
2148 # The IRIX 6 linker writes into existing files which may not be
2149 # executable, retaining their permissions.  Remove them first so a
2150 # subsequent execution test works.
2151 ac_rmfiles=
2152 for ac_file in $ac_files
2153 do
2154   case $ac_file in
2155     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2157   esac
2158 done
2159 rm -f $ac_rmfiles
2160
2161 if { (ac_try="$ac_link_default"
2162 case "(($ac_try" in
2163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164   *) ac_try_echo=$ac_try;;
2165 esac
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167   (eval "$ac_link_default") 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; then
2171   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2174 # so that the user can short-circuit this test for compilers unknown to
2175 # Autoconf.
2176 for ac_file in $ac_files
2177 do
2178   test -f "$ac_file" || continue
2179   case $ac_file in
2180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2181         ;;
2182     [ab].out )
2183         # We found the default executable, but exeext='' is most
2184         # certainly right.
2185         break;;
2186     *.* )
2187         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2188         then :; else
2189            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190         fi
2191         # We set ac_cv_exeext here because the later test for it is not
2192         # safe: cross compilers may not add the suffix if given an `-o'
2193         # argument, so we may need to know it at that point already.
2194         # Even if this section looks crufty: it has the advantage of
2195         # actually working.
2196         break;;
2197     * )
2198         break;;
2199   esac
2200 done
2201 test "$ac_cv_exeext" = no && ac_cv_exeext=
2202
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211    { (exit 77); exit 77; }; }
2212 fi
2213
2214 ac_exeext=$ac_cv_exeext
2215 { echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6; }
2217
2218 # Check that the compiler produces executables we can run.  If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225   if { ac_try='./$ac_file'
2226   { (case "(($ac_try" in
2227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228   *) ac_try_echo=$ac_try;;
2229 esac
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231   (eval "$ac_try") 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235     cross_compiling=no
2236   else
2237     if test "$cross_compiling" = maybe; then
2238         cross_compiling=yes
2239     else
2240         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246    { (exit 1); exit 1; }; }
2247     fi
2248   fi
2249 fi
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2252
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check that the compiler produces executables we can run.  If not, either
2256 # the compiler is broken, or we cross compile.
2257 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6; }
2261
2262 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264 if { (ac_try="$ac_link"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_link") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2277 # `rm'.
2278 for ac_file in conftest.exe conftest conftest.*; do
2279   test -f "$ac_file" || continue
2280   case $ac_file in
2281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283           break;;
2284     * ) break;;
2285   esac
2286 done
2287 else
2288   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 rm -f conftest$ac_cv_exeext
2296 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2298
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304 if test "${ac_cv_objext+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313
2314 int
2315 main ()
2316 {
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (ac_try="$ac_compile"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329   (eval "$ac_compile") 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; then
2333   for ac_file in conftest.o conftest.obj conftest.*; do
2334   test -f "$ac_file" || continue;
2335   case $ac_file in
2336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338        break;;
2339   esac
2340 done
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349    { (exit 1); exit 1; }; }
2350 fi
2351
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353 fi
2354 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2357 ac_objext=$OBJEXT
2358 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369
2370 int
2371 main ()
2372 {
2373 #ifndef __GNUC__
2374        choke me
2375 #endif
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388   (eval "$ac_compile") 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396   { (case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_try") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   ac_compiler_gnu=yes
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420         ac_compiler_gnu=no
2421 fi
2422
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2425
2426 fi
2427 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   ac_save_c_werror_flag=$ac_c_werror_flag
2438    ac_c_werror_flag=yes
2439    ac_cv_prog_cc_g=no
2440    CFLAGS="-g"
2441    cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463   (eval "$ac_compile") 2>conftest.er1
2464   ac_status=$?
2465   grep -v '^ *+' conftest.er1 >conftest.err
2466   rm -f conftest.er1
2467   cat conftest.err >&5
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486   (eval "$ac_try") 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   ac_cv_prog_cc_g=yes
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495         CFLAGS=""
2496       cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502
2503 int
2504 main ()
2505 {
2506
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2513 case "(($ac_try" in
2514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515   *) ac_try_echo=$ac_try;;
2516 esac
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518   (eval "$ac_compile") 2>conftest.er1
2519   ac_status=$?
2520   grep -v '^ *+' conftest.er1 >conftest.err
2521   rm -f conftest.er1
2522   cat conftest.err >&5
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); } &&
2525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526   { (case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; } &&
2535          { ac_try='test -s conftest.$ac_objext'
2536   { (case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541   (eval "$ac_try") 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   :
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550         ac_c_werror_flag=$ac_save_c_werror_flag
2551          CFLAGS="-g"
2552          cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2569 case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574   (eval "$ac_compile") 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; } &&
2591          { ac_try='test -s conftest.$ac_objext'
2592   { (case "(($ac_try" in
2593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594   *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597   (eval "$ac_try") 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601   ac_cv_prog_cc_g=yes
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606
2607 fi
2608
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616    ac_c_werror_flag=$ac_save_c_werror_flag
2617 fi
2618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621   CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623   if test "$GCC" = yes; then
2624     CFLAGS="-g -O2"
2625   else
2626     CFLAGS="-g"
2627   fi
2628 else
2629   if test "$GCC" = yes; then
2630     CFLAGS="-O2"
2631   else
2632     CFLAGS=
2633   fi
2634 fi
2635 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   ac_cv_prog_cc_c89=no
2641 ac_save_CC=$CC
2642 cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648 #include <stdarg.h>
2649 #include <stdio.h>
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2656      char **p;
2657      int i;
2658 {
2659   return p[i];
2660 }
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2662 {
2663   char *s;
2664   va_list v;
2665   va_start (v,p);
2666   s = g (p, va_arg (v,int));
2667   va_end (v);
2668   return s;
2669 }
2670
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2672    function prototypes and stuff, but not '\xHH' hex character constants.
2673    These don't provoke an error unfortunately, instead are silently treated
2674    as 'x'.  The following induces an error, until -std is added to get
2675    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2676    array size at least.  It's necessary to write '\x00'==0 to get something
2677    that's true only with -std.  */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681    inside strings and character constants.  */
2682 #define FOO(x) 'x'
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 int argc;
2690 char **argv;
2691 int
2692 main ()
2693 {
2694 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701 do
2702   CC="$ac_save_CC $ac_arg"
2703   rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compile") 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_try") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737   ac_cv_prog_cc_c89=$ac_arg
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742
2743 fi
2744
2745 rm -f core conftest.err conftest.$ac_objext
2746   test "x$ac_cv_prog_cc_c89" != "xno" && break
2747 done
2748 rm -f conftest.$ac_ext
2749 CC=$ac_save_CC
2750
2751 fi
2752 # AC_CACHE_VAL
2753 case "x$ac_cv_prog_cc_c89" in
2754   x)
2755     { echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6; } ;;
2757   xno)
2758     { echo "$as_me:$LINENO: result: unsupported" >&5
2759 echo "${ECHO_T}unsupported" >&6; } ;;
2760   *)
2761     CC="$CC $ac_cv_prog_cc_c89"
2762     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2764 esac
2765
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773 ac_ext=cpp
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -z "$CXX"; then
2779   if test -n "$CCC"; then
2780     CXX=$CCC
2781   else
2782     if test -n "$ac_tool_prefix"; then
2783   for ac_prog in clang++ llvm-g++ g++
2784   do
2785     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CXX+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$CXX"; then
2793   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 CXX=$ac_cv_prog_CXX
2813 if test -n "$CXX"; then
2814   { echo "$as_me:$LINENO: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6; }
2816 else
2817   { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2819 fi
2820
2821
2822     test -n "$CXX" && break
2823   done
2824 fi
2825 if test -z "$CXX"; then
2826   ac_ct_CXX=$CXX
2827   for ac_prog in clang++ llvm-g++ g++
2828 do
2829   # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if test -n "$ac_ct_CXX"; then
2837   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844   for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_ac_ct_CXX="$ac_prog"
2847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857 if test -n "$ac_ct_CXX"; then
2858   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2860 else
2861   { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866   test -n "$ac_ct_CXX" && break
2867 done
2868
2869   if test "x$ac_ct_CXX" = x; then
2870     CXX="g++"
2871   else
2872     case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet.  If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet.  If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882     CXX=$ac_ct_CXX
2883   fi
2884 fi
2885
2886   fi
2887 fi
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compiler --version >&5") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler -v >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_compiler -V >&5") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }
2921
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933
2934 int
2935 main ()
2936 {
2937 #ifndef __GNUC__
2938        choke me
2939 #endif
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_compile") 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960   { (case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_try") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_try") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984         ac_compiler_gnu=no
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2989
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993 GXX=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CXXFLAGS=${CXXFLAGS+set}
2995 ac_save_CXXFLAGS=$CXXFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cxx_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002    ac_cxx_werror_flag=yes
3003    ac_cv_prog_cxx_g=no
3004    CXXFLAGS="-g"
3005    cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } &&
3034          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; }; then
3054   ac_cv_prog_cxx_g=yes
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059         CXXFLAGS=""
3060       cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } &&
3089          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   :
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3115          CXXFLAGS="-g"
3116          cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; } &&
3155          { ac_try='test -s conftest.$ac_objext'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   ac_cv_prog_cxx_g=yes
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181 fi
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184 if test "$ac_test_CXXFLAGS" = set; then
3185   CXXFLAGS=$ac_save_CXXFLAGS
3186 elif test $ac_cv_prog_cxx_g = yes; then
3187   if test "$GXX" = yes; then
3188     CXXFLAGS="-g -O2"
3189   else
3190     CXXFLAGS="-g"
3191   fi
3192 else
3193   if test "$GXX" = yes; then
3194     CXXFLAGS="-O2"
3195   else
3196     CXXFLAGS=
3197   fi
3198 fi
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212 # On Suns, sometimes $CPP names a directory.
3213 if test -n "$CPP" && test -d "$CPP"; then
3214   CPP=
3215 fi
3216 if test -z "$CPP"; then
3217   if test "${ac_cv_prog_CPP+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220       # Double quotes because CPP needs to be expanded
3221     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3222     do
3223       ac_preproc_ok=false
3224 for ac_c_preproc_warn_flag in '' yes
3225 do
3226   # Use a header file that comes with gcc, so configuring glibc
3227   # with a fresh cross-compiler works.
3228   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229   # <limits.h> exists even on freestanding compilers.
3230   # On the NeXT, cc -E runs the code through the compiler's parser,
3231   # not just through cpp. "Syntax error" is here to catch this case.
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #ifdef __STDC__
3239 # include <limits.h>
3240 #else
3241 # include <assert.h>
3242 #endif
3243                      Syntax error
3244 _ACEOF
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } >/dev/null; then
3258   if test -s conftest.err; then
3259     ac_cpp_err=$ac_c_preproc_warn_flag
3260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261   else
3262     ac_cpp_err=
3263   fi
3264 else
3265   ac_cpp_err=yes
3266 fi
3267 if test -z "$ac_cpp_err"; then
3268   :
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273   # Broken: fails on valid input.
3274 continue
3275 fi
3276
3277 rm -f conftest.err conftest.$ac_ext
3278
3279   # OK, works on sane cases.  Now check whether nonexistent headers
3280   # can be detected and how.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <ac_nonexistent.h>
3288 _ACEOF
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } >/dev/null; then
3302   if test -s conftest.err; then
3303     ac_cpp_err=$ac_c_preproc_warn_flag
3304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305   else
3306     ac_cpp_err=
3307   fi
3308 else
3309   ac_cpp_err=yes
3310 fi
3311 if test -z "$ac_cpp_err"; then
3312   # Broken: success on invalid input.
3313 continue
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318   # Passes both tests.
3319 ac_preproc_ok=:
3320 break
3321 fi
3322
3323 rm -f conftest.err conftest.$ac_ext
3324
3325 done
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3329   break
3330 fi
3331
3332     done
3333     ac_cv_prog_CPP=$CPP
3334
3335 fi
3336   CPP=$ac_cv_prog_CPP
3337 else
3338   ac_cv_prog_CPP=$CPP
3339 fi
3340 { echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6; }
3342 ac_preproc_ok=false
3343 for ac_c_preproc_warn_flag in '' yes
3344 do
3345   # Use a header file that comes with gcc, so configuring glibc
3346   # with a fresh cross-compiler works.
3347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348   # <limits.h> exists even on freestanding compilers.
3349   # On the NeXT, cc -E runs the code through the compiler's parser,
3350   # not just through cpp. "Syntax error" is here to catch this case.
3351   cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357 #ifdef __STDC__
3358 # include <limits.h>
3359 #else
3360 # include <assert.h>
3361 #endif
3362                      Syntax error
3363 _ACEOF
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } >/dev/null; then
3377   if test -s conftest.err; then
3378     ac_cpp_err=$ac_c_preproc_warn_flag
3379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380   else
3381     ac_cpp_err=
3382   fi
3383 else
3384   ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
3387   :
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392   # Broken: fails on valid input.
3393 continue
3394 fi
3395
3396 rm -f conftest.err conftest.$ac_ext
3397
3398   # OK, works on sane cases.  Now check whether nonexistent headers
3399   # can be detected and how.
3400   cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 #include <ac_nonexistent.h>
3407 _ACEOF
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } >/dev/null; then
3421   if test -s conftest.err; then
3422     ac_cpp_err=$ac_c_preproc_warn_flag
3423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424   else
3425     ac_cpp_err=
3426   fi
3427 else
3428   ac_cpp_err=yes
3429 fi
3430 if test -z "$ac_cpp_err"; then
3431   # Broken: success on invalid input.
3432 continue
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437   # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   :
3449 else
3450   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464
3465
3466 # Check whether --enable-polly was given.
3467 if test "${enable_polly+set}" = set; then
3468   enableval=$enable_polly;
3469 else
3470   enableval=default
3471 fi
3472
3473 case "$enableval" in
3474   yes) ENABLE_POLLY=1
3475  ;;
3476   no)  ENABLE_POLLY=0
3477  ;;
3478   default) ENABLE_POLLY=1
3479  ;;
3480   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3481 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3482    { (exit 1); exit 1; }; } ;;
3483 esac
3484
3485
3486 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3487   LLVM_HAS_POLLY=1
3488
3489   subdirs="$subdirs tools/polly"
3490
3491 fi
3492
3493
3494 # Make sure we can run config.sub.
3495 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3496   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3497 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3498    { (exit 1); exit 1; }; }
3499
3500 { echo "$as_me:$LINENO: checking build system type" >&5
3501 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3502 if test "${ac_cv_build+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   ac_build_alias=$build_alias
3506 test "x$ac_build_alias" = x &&
3507   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3508 test "x$ac_build_alias" = x &&
3509   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3511    { (exit 1); exit 1; }; }
3512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3513   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3514 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3515    { (exit 1); exit 1; }; }
3516
3517 fi
3518 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3519 echo "${ECHO_T}$ac_cv_build" >&6; }
3520 case $ac_cv_build in
3521 *-*-*) ;;
3522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3523 echo "$as_me: error: invalid value of canonical build" >&2;}
3524    { (exit 1); exit 1; }; };;
3525 esac
3526 build=$ac_cv_build
3527 ac_save_IFS=$IFS; IFS='-'
3528 set x $ac_cv_build
3529 shift
3530 build_cpu=$1
3531 build_vendor=$2
3532 shift; shift
3533 # Remember, the first character of IFS is used to create $*,
3534 # except with old shells:
3535 build_os=$*
3536 IFS=$ac_save_IFS
3537 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3538
3539
3540 { echo "$as_me:$LINENO: checking host system type" >&5
3541 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_host+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   if test "x$host_alias" = x; then
3546   ac_cv_host=$ac_cv_build
3547 else
3548   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3549     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3550 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3551    { (exit 1); exit 1; }; }
3552 fi
3553
3554 fi
3555 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3556 echo "${ECHO_T}$ac_cv_host" >&6; }
3557 case $ac_cv_host in
3558 *-*-*) ;;
3559 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3560 echo "$as_me: error: invalid value of canonical host" >&2;}
3561    { (exit 1); exit 1; }; };;
3562 esac
3563 host=$ac_cv_host
3564 ac_save_IFS=$IFS; IFS='-'
3565 set x $ac_cv_host
3566 shift
3567 host_cpu=$1
3568 host_vendor=$2
3569 shift; shift
3570 # Remember, the first character of IFS is used to create $*,
3571 # except with old shells:
3572 host_os=$*
3573 IFS=$ac_save_IFS
3574 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3575
3576
3577 { echo "$as_me:$LINENO: checking target system type" >&5
3578 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3579 if test "${ac_cv_target+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   if test "x$target_alias" = x; then
3583   ac_cv_target=$ac_cv_host
3584 else
3585   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3586     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3587 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3588    { (exit 1); exit 1; }; }
3589 fi
3590
3591 fi
3592 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3593 echo "${ECHO_T}$ac_cv_target" >&6; }
3594 case $ac_cv_target in
3595 *-*-*) ;;
3596 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3597 echo "$as_me: error: invalid value of canonical target" >&2;}
3598    { (exit 1); exit 1; }; };;
3599 esac
3600 target=$ac_cv_target
3601 ac_save_IFS=$IFS; IFS='-'
3602 set x $ac_cv_target
3603 shift
3604 target_cpu=$1
3605 target_vendor=$2
3606 shift; shift
3607 # Remember, the first character of IFS is used to create $*,
3608 # except with old shells:
3609 target_os=$*
3610 IFS=$ac_save_IFS
3611 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3612
3613
3614 # The aliases save the names the user supplied, while $host etc.
3615 # will get canonicalized.
3616 test -n "$target_alias" &&
3617   test "$program_prefix$program_suffix$program_transform_name" = \
3618     NONENONEs,x,x, &&
3619   program_prefix=${target_alias}-
3620
3621 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3622 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3623 if test "${llvm_cv_os_type+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   case $host in
3627   *-*-aix*)
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="AIX"
3631     llvm_cv_platform_type="Unix" ;;
3632   *-*-irix*)
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="IRIX"
3636     llvm_cv_platform_type="Unix" ;;
3637   *-*-cygwin*)
3638     llvm_cv_link_all_option="-Wl,--whole-archive"
3639     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640     llvm_cv_os_type="Cygwin"
3641     llvm_cv_platform_type="Unix" ;;
3642   *-*-darwin*)
3643     llvm_cv_link_all_option="-Wl,-all_load"
3644     llvm_cv_no_link_all_option="-Wl,-noall_load"
3645     llvm_cv_os_type="Darwin"
3646     llvm_cv_platform_type="Unix" ;;
3647   *-*-minix*)
3648     llvm_cv_link_all_option="-Wl,-all_load"
3649     llvm_cv_no_link_all_option="-Wl,-noall_load"
3650     llvm_cv_os_type="Minix"
3651     llvm_cv_platform_type="Unix" ;;
3652   *-*-freebsd*)
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="FreeBSD"
3656     llvm_cv_platform_type="Unix" ;;
3657   *-*-openbsd*)
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="OpenBSD"
3661     llvm_cv_platform_type="Unix" ;;
3662   *-*-netbsd*)
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="NetBSD"
3666     llvm_cv_platform_type="Unix" ;;
3667   *-*-dragonfly*)
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="DragonFly"
3671     llvm_cv_platform_type="Unix" ;;
3672   *-*-hpux*)
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="HP-UX"
3676     llvm_cv_platform_type="Unix" ;;
3677   *-*-interix*)
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="Interix"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-linux*)
3683     llvm_cv_link_all_option="-Wl,--whole-archive"
3684     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685     llvm_cv_os_type="Linux"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-solaris*)
3688     llvm_cv_link_all_option="-Wl,-z,allextract"
3689     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3690     llvm_cv_os_type="SunOS"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-auroraux*)
3693     llvm_cv_link_all_option="-Wl,-z,allextract"
3694     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3695     llvm_cv_os_type="AuroraUX"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-win32*)
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="Win32"
3701     llvm_cv_platform_type="Win32" ;;
3702   *-*-mingw*)
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="MingW"
3706     llvm_cv_platform_type="Win32" ;;
3707   *-*-haiku*)
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="Haiku"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-unknown-eabi*)
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   *-unknown-elf*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="Freestanding"
3721     llvm_cv_platform_type="Unix" ;;
3722   *)
3723     llvm_cv_link_all_option=""
3724     llvm_cv_no_link_all_option=""
3725     llvm_cv_os_type="Unknown"
3726     llvm_cv_platform_type="Unknown" ;;
3727 esac
3728 fi
3729 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3730 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3731
3732 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3733 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3734 if test "${llvm_cv_target_os_type+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   case $target in
3738   *-*-aix*)
3739     llvm_cv_target_os_type="AIX" ;;
3740   *-*-irix*)
3741     llvm_cv_target_os_type="IRIX" ;;
3742   *-*-cygwin*)
3743     llvm_cv_target_os_type="Cygwin" ;;
3744   *-*-darwin*)
3745     llvm_cv_target_os_type="Darwin" ;;
3746   *-*-minix*)
3747     llvm_cv_target_os_type="Minix" ;;
3748   *-*-freebsd*)
3749     llvm_cv_target_os_type="FreeBSD" ;;
3750   *-*-openbsd*)
3751     llvm_cv_target_os_type="OpenBSD" ;;
3752   *-*-netbsd*)
3753     llvm_cv_target_os_type="NetBSD" ;;
3754   *-*-dragonfly*)
3755     llvm_cv_target_os_type="DragonFly" ;;
3756   *-*-hpux*)
3757     llvm_cv_target_os_type="HP-UX" ;;
3758   *-*-interix*)
3759     llvm_cv_target_os_type="Interix" ;;
3760   *-*-linux*)
3761     llvm_cv_target_os_type="Linux" ;;
3762   *-*-solaris*)
3763     llvm_cv_target_os_type="SunOS" ;;
3764   *-*-auroraux*)
3765     llvm_cv_target_os_type="AuroraUX" ;;
3766   *-*-win32*)
3767     llvm_cv_target_os_type="Win32" ;;
3768   *-*-mingw*)
3769     llvm_cv_target_os_type="MingW" ;;
3770   *-*-haiku*)
3771     llvm_cv_target_os_type="Haiku" ;;
3772   *-*-rtems*)
3773     llvm_cv_target_os_type="RTEMS" ;;
3774   *-*-nacl*)
3775     llvm_cv_target_os_type="NativeClient" ;;
3776   *-unknown-eabi*)
3777     llvm_cv_target_os_type="Freestanding" ;;
3778   *)
3779     llvm_cv_target_os_type="Unknown" ;;
3780 esac
3781 fi
3782 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3783 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3784
3785 if test "$llvm_cv_os_type" = "Unknown" ; then
3786   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3787 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3788    { (exit 1); exit 1; }; }
3789 fi
3790
3791 OS=$llvm_cv_os_type
3792
3793 HOST_OS=$llvm_cv_os_type
3794
3795 TARGET_OS=$llvm_cv_target_os_type
3796
3797
3798 LINKALL=$llvm_cv_link_all_option
3799
3800 NOLINKALL=$llvm_cv_no_link_all_option
3801
3802
3803 case $llvm_cv_platform_type in
3804   Unix)
3805
3806 cat >>confdefs.h <<\_ACEOF
3807 #define LLVM_ON_UNIX 1
3808 _ACEOF
3809
3810     LLVM_ON_UNIX=1
3811
3812     LLVM_ON_WIN32=0
3813
3814     ;;
3815   Win32)
3816
3817 cat >>confdefs.h <<\_ACEOF
3818 #define LLVM_ON_WIN32 1
3819 _ACEOF
3820
3821     LLVM_ON_UNIX=0
3822
3823     LLVM_ON_WIN32=1
3824
3825     ;;
3826 esac
3827
3828 { echo "$as_me:$LINENO: checking target architecture" >&5
3829 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3830 if test "${llvm_cv_target_arch+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   case $target in
3834   i?86-*)                 llvm_cv_target_arch="x86" ;;
3835   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3836   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3837   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3838   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3839   mips-*)                 llvm_cv_target_arch="Mips" ;;
3840   xcore-*)                llvm_cv_target_arch="XCore" ;;
3841   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3842   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3843   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3844   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3845   *)                      llvm_cv_target_arch="Unknown" ;;
3846 esac
3847 fi
3848 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3849 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3850
3851 if test "$llvm_cv_target_arch" = "Unknown" ; then
3852   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3853 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3854 fi
3855
3856 # Determine the LLVM native architecture for the target
3857 case "$llvm_cv_target_arch" in
3858     x86)     LLVM_NATIVE_ARCH="X86" ;;
3859     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3860     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3861 esac
3862
3863 ARCH=$llvm_cv_target_arch
3864
3865
3866
3867
3868 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3869 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3870 if test "${ac_cv_path_GREP+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   # Extract the first word of "grep ggrep" to use in msg output
3874 if test -z "$GREP"; then
3875 set dummy grep ggrep; ac_prog_name=$2
3876 if test "${ac_cv_path_GREP+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   ac_path_GREP_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_prog in grep ggrep; do
3887   for ac_exec_ext in '' $ac_executable_extensions; do
3888     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3889     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3890     # Check for GNU ac_path_GREP and select it if it is found.
3891   # Check for GNU $ac_path_GREP
3892 case `"$ac_path_GREP" --version 2>&1` in
3893 *GNU*)
3894   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3895 *)
3896   ac_count=0
3897   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3898   while :
3899   do
3900     cat "conftest.in" "conftest.in" >"conftest.tmp"
3901     mv "conftest.tmp" "conftest.in"
3902     cp "conftest.in" "conftest.nl"
3903     echo 'GREP' >> "conftest.nl"
3904     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906     ac_count=`expr $ac_count + 1`
3907     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3908       # Best one so far, save it but keep looking for a better one
3909       ac_cv_path_GREP="$ac_path_GREP"
3910       ac_path_GREP_max=$ac_count
3911     fi
3912     # 10*(2^10) chars as input seems more than enough
3913     test $ac_count -gt 10 && break
3914   done
3915   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916 esac
3917
3918
3919     $ac_path_GREP_found && break 3
3920   done
3921 done
3922
3923 done
3924 IFS=$as_save_IFS
3925
3926
3927 fi
3928
3929 GREP="$ac_cv_path_GREP"
3930 if test -z "$GREP"; then
3931   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3933    { (exit 1); exit 1; }; }
3934 fi
3935
3936 else
3937   ac_cv_path_GREP=$GREP
3938 fi
3939
3940
3941 fi
3942 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3943 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3944  GREP="$ac_cv_path_GREP"
3945
3946
3947 { echo "$as_me:$LINENO: checking for egrep" >&5
3948 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3949 if test "${ac_cv_path_EGREP+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3953    then ac_cv_path_EGREP="$GREP -E"
3954    else
3955      # Extract the first word of "egrep" to use in msg output
3956 if test -z "$EGREP"; then
3957 set dummy egrep; ac_prog_name=$2
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   ac_path_EGREP_found=false
3962 # Loop through the user's path and test for each of PROGNAME-LIST
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3965 do
3966   IFS=$as_save_IFS
3967   test -z "$as_dir" && as_dir=.
3968   for ac_prog in egrep; do
3969   for ac_exec_ext in '' $ac_executable_extensions; do
3970     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3971     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3972     # Check for GNU ac_path_EGREP and select it if it is found.
3973   # Check for GNU $ac_path_EGREP
3974 case `"$ac_path_EGREP" --version 2>&1` in
3975 *GNU*)
3976   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3977 *)
3978   ac_count=0
3979   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3980   while :
3981   do
3982     cat "conftest.in" "conftest.in" >"conftest.tmp"
3983     mv "conftest.tmp" "conftest.in"
3984     cp "conftest.in" "conftest.nl"
3985     echo 'EGREP' >> "conftest.nl"
3986     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988     ac_count=`expr $ac_count + 1`
3989     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3990       # Best one so far, save it but keep looking for a better one
3991       ac_cv_path_EGREP="$ac_path_EGREP"
3992       ac_path_EGREP_max=$ac_count
3993     fi
3994     # 10*(2^10) chars as input seems more than enough
3995     test $ac_count -gt 10 && break
3996   done
3997   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3998 esac
3999
4000
4001     $ac_path_EGREP_found && break 3
4002   done
4003 done
4004
4005 done
4006 IFS=$as_save_IFS
4007
4008
4009 fi
4010
4011 EGREP="$ac_cv_path_EGREP"
4012 if test -z "$EGREP"; then
4013   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4014 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4015    { (exit 1); exit 1; }; }
4016 fi
4017
4018 else
4019   ac_cv_path_EGREP=$EGREP
4020 fi
4021
4022
4023    fi
4024 fi
4025 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4026 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4027  EGREP="$ac_cv_path_EGREP"
4028
4029
4030 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4032 if test "${ac_cv_header_stdc+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h.  */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h.  */
4041 #include <stdlib.h>
4042 #include <stdarg.h>
4043 #include <string.h>
4044 #include <float.h>
4045
4046 int
4047 main ()
4048 {
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4056 case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061   (eval "$ac_compile") 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } &&
4068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4069   { (case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074   (eval "$ac_try") 2>&5
4075   ac_status=$?
4076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077   (exit $ac_status); }; } &&
4078          { ac_try='test -s conftest.$ac_objext'
4079   { (case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_try") 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }; }; then
4088   ac_cv_header_stdc=yes
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093         ac_cv_header_stdc=no
4094 fi
4095
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097
4098 if test $ac_cv_header_stdc = yes; then
4099   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4100   cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h.  */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h.  */
4106 #include <string.h>
4107
4108 _ACEOF
4109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110   $EGREP "memchr" >/dev/null 2>&1; then
4111   :
4112 else
4113   ac_cv_header_stdc=no
4114 fi
4115 rm -f conftest*
4116
4117 fi
4118
4119 if test $ac_cv_header_stdc = yes; then
4120   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4121   cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 #include <stdlib.h>
4128
4129 _ACEOF
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131   $EGREP "free" >/dev/null 2>&1; then
4132   :
4133 else
4134   ac_cv_header_stdc=no
4135 fi
4136 rm -f conftest*
4137
4138 fi
4139
4140 if test $ac_cv_header_stdc = yes; then
4141   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4142   if test "$cross_compiling" = yes; then
4143   :
4144 else
4145   cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <ctype.h>
4152 #include <stdlib.h>
4153 #if ((' ' & 0x0FF) == 0x020)
4154 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4155 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4156 #else
4157 # define ISLOWER(c) \
4158                    (('a' <= (c) && (c) <= 'i') \
4159                      || ('j' <= (c) && (c) <= 'r') \
4160                      || ('s' <= (c) && (c) <= 'z'))
4161 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4162 #endif
4163
4164 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4165 int
4166 main ()
4167 {
4168   int i;
4169   for (i = 0; i < 256; i++)
4170     if (XOR (islower (i), ISLOWER (i))
4171         || toupper (i) != TOUPPER (i))
4172       return 2;
4173   return 0;
4174 }
4175 _ACEOF
4176 rm -f conftest$ac_exeext
4177 if { (ac_try="$ac_link"
4178 case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183   (eval "$ac_link") 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4187   { (case "(($ac_try" in
4188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189   *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192   (eval "$ac_try") 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; }; then
4196   :
4197 else
4198   echo "$as_me: program exited with status $ac_status" >&5
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 ( exit $ac_status )
4203 ac_cv_header_stdc=no
4204 fi
4205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206 fi
4207
4208
4209 fi
4210 fi
4211 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4212 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4213 if test $ac_cv_header_stdc = yes; then
4214
4215 cat >>confdefs.h <<\_ACEOF
4216 #define STDC_HEADERS 1
4217 _ACEOF
4218
4219 fi
4220
4221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4232                   inttypes.h stdint.h unistd.h
4233 do
4234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h.  */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h.  */
4246 $ac_includes_default
4247
4248 #include <$ac_header>
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (ac_try="$ac_compile"
4252 case "(($ac_try" in
4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254   *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257   (eval "$ac_compile") 2>conftest.er1
4258   ac_status=$?
4259   grep -v '^ *+' conftest.er1 >conftest.err
4260   rm -f conftest.er1
4261   cat conftest.err >&5
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); } &&
4264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265   { (case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_try") 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; } &&
4274          { ac_try='test -s conftest.$ac_objext'
4275   { (case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280   (eval "$ac_try") 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   eval "$as_ac_Header=yes"
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289         eval "$as_ac_Header=no"
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 fi
4294 ac_res=`eval echo '${'$as_ac_Header'}'`
4295                { echo "$as_me:$LINENO: result: $ac_res" >&5
4296 echo "${ECHO_T}$ac_res" >&6; }
4297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4298   cat >>confdefs.h <<_ACEOF
4299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4300 _ACEOF
4301
4302 fi
4303
4304 done
4305
4306
4307 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4308 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4309 if test "${ac_cv_c_bigendian+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   # See if sys/param.h defines the BYTE_ORDER macro.
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h.  */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h.  */
4319 #include <sys/types.h>
4320 #include <sys/param.h>
4321
4322 int
4323 main ()
4324 {
4325 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4326  bogus endian macros
4327 #endif
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340   (eval "$ac_compile") 2>conftest.er1
4341   ac_status=$?
4342   grep -v '^ *+' conftest.er1 >conftest.err
4343   rm -f conftest.er1
4344   cat conftest.err >&5
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); } &&
4347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4348   { (case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353   (eval "$ac_try") 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; } &&
4357          { ac_try='test -s conftest.$ac_objext'
4358   { (case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363   (eval "$ac_try") 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; }; then
4367   # It does; now see whether it defined to BIG_ENDIAN or not.
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374 #include <sys/types.h>
4375 #include <sys/param.h>
4376
4377 int
4378 main ()
4379 {
4380 #if BYTE_ORDER != BIG_ENDIAN
4381  not big endian
4382 #endif
4383
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (ac_try="$ac_compile"
4390 case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395   (eval "$ac_compile") 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } &&
4402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403   { (case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408   (eval "$ac_try") 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418   (eval "$ac_try") 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; }; then
4422   ac_cv_c_bigendian=yes
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427         ac_cv_c_bigendian=no
4428 fi
4429
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 else
4432   echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435         # It does not; compile a test program.
4436 if test "$cross_compiling" = yes; then
4437   # try to guess the endianness by grepping values into an object file
4438   ac_cv_c_bigendian=unknown
4439   cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h.  */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h.  */
4445 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4446 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4447 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4448 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4449 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4450 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4451 int
4452 main ()
4453 {
4454  _ascii (); _ebcdic ();
4455   ;
4456   return 0;
4457 }
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4461 case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466   (eval "$ac_compile") 2>conftest.er1
4467   ac_status=$?
4468   grep -v '^ *+' conftest.er1 >conftest.err
4469   rm -f conftest.er1
4470   cat conftest.err >&5
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); } &&
4473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474   { (case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_try") 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; } &&
4483          { ac_try='test -s conftest.$ac_objext'
4484   { (case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_try") 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; }; then
4493   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4494   ac_cv_c_bigendian=yes
4495 fi
4496 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4497   if test "$ac_cv_c_bigendian" = unknown; then
4498     ac_cv_c_bigendian=no
4499   else
4500     # finding both strings is unlikely to happen, but who knows?
4501     ac_cv_c_bigendian=unknown
4502   fi
4503 fi
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508
4509 fi
4510
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 else
4513   cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 $ac_includes_default
4520 int
4521 main ()
4522 {
4523
4524   /* Are we little or big endian?  From Harbison&Steele.  */
4525   union
4526   {
4527     long int l;
4528     char c[sizeof (long int)];
4529   } u;
4530   u.l = 1;
4531   return u.c[sizeof (long int) - 1] == 1;
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest$ac_exeext
4538 if { (ac_try="$ac_link"
4539 case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544   (eval "$ac_link") 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4548   { (case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553   (eval "$ac_try") 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; }; then
4557   ac_cv_c_bigendian=no
4558 else
4559   echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 ( exit $ac_status )
4564 ac_cv_c_bigendian=yes
4565 fi
4566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567 fi
4568
4569
4570 fi
4571
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 fi
4574 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4575 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4576 case $ac_cv_c_bigendian in
4577   yes)
4578     ENDIAN=big
4579  ;;
4580   no)
4581     ENDIAN=little
4582  ;;
4583   *)
4584     { { echo "$as_me:$LINENO: error: unknown endianness
4585 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4586 echo "$as_me: error: unknown endianness
4587 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4588    { (exit 1); exit 1; }; } ;;
4589 esac
4590
4591
4592 if test "$cross_compiling" = yes; then
4593   LLVM_CROSS_COMPILING=1
4594
4595
4596 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4597 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4598 if test "${ac_cv_build_exeext+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4602   ac_cv_build_exeext=.exe
4603 else
4604   ac_build_prefix=${build_alias}-
4605
4606   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4607 set dummy ${ac_build_prefix}gcc; ac_word=$2
4608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   if test -n "$BUILD_CC"; then
4614   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 BUILD_CC=$ac_cv_prog_BUILD_CC
4634 if test -n "$BUILD_CC"; then
4635   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4636 echo "${ECHO_T}$BUILD_CC" >&6; }
4637 else
4638   { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4640 fi
4641
4642
4643   if test -z "$BUILD_CC"; then
4644      # Extract the first word of "gcc", so it can be a program name with args.
4645 set dummy gcc; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   if test -n "$BUILD_CC"; then
4652   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659   for ac_exec_ext in '' $ac_executable_extensions; do
4660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4661     ac_cv_prog_BUILD_CC="gcc"
4662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 BUILD_CC=$ac_cv_prog_BUILD_CC
4672 if test -n "$BUILD_CC"; then
4673   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4674 echo "${ECHO_T}$BUILD_CC" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681      if test -z "$BUILD_CC"; then
4682        # Extract the first word of "cc", so it can be a program name with args.
4683 set dummy cc; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   if test -n "$BUILD_CC"; then
4690   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4691 else
4692   ac_prog_rejected=no
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698   for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4701        ac_prog_rejected=yes
4702        continue
4703      fi
4704     ac_cv_prog_BUILD_CC="cc"
4705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 if test $ac_prog_rejected = yes; then
4713   # We found a bogon in the path, so make sure we never use it.
4714   set dummy $ac_cv_prog_BUILD_CC
4715   shift
4716   if test $# != 0; then
4717     # We chose a different compiler from the bogus one.
4718     # However, it has the same basename, so the bogon will be chosen
4719     # first if we set BUILD_CC to just the basename; use the full file name.
4720     shift
4721     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4722   fi
4723 fi
4724 fi
4725 fi
4726 BUILD_CC=$ac_cv_prog_BUILD_CC
4727 if test -n "$BUILD_CC"; then
4728   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729 echo "${ECHO_T}$BUILD_CC" >&6; }
4730 else
4731   { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733 fi
4734
4735
4736      fi
4737   fi
4738   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4739 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4740    { (exit 1); exit 1; }; }
4741   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4742   rm -f conftest*
4743   echo 'int main () { return 0; }' > conftest.$ac_ext
4744   ac_cv_build_exeext=
4745   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4746   (eval $ac_build_link) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; then
4750     for file in conftest.*; do
4751       case $file in
4752       *.c | *.o | *.obj | *.dSYM) ;;
4753       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4754       esac
4755     done
4756   else
4757     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4758 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4759    { (exit 1); exit 1; }; }
4760   fi
4761   rm -f conftest*
4762   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4763 fi
4764 fi
4765
4766 BUILD_EXEEXT=""
4767 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4768 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4769 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4770 ac_build_exeext=$BUILD_EXEEXT
4771
4772   ac_build_prefix=${build_alias}-
4773   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4774 set dummy ${ac_build_prefix}g++; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   if test -n "$BUILD_CXX"; then
4781   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4801 if test -n "$BUILD_CXX"; then
4802   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4803 echo "${ECHO_T}$BUILD_CXX" >&6; }
4804 else
4805   { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4807 fi
4808
4809
4810   if test -z "$BUILD_CXX"; then
4811      # Extract the first word of "g++", so it can be a program name with args.
4812 set dummy g++; ac_word=$2
4813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4815 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   if test -n "$BUILD_CXX"; then
4819   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4828     ac_cv_prog_BUILD_CXX="g++"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4839 if test -n "$BUILD_CXX"; then
4840   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4841 echo "${ECHO_T}$BUILD_CXX" >&6; }
4842 else
4843   { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4845 fi
4846
4847
4848      if test -z "$BUILD_CXX"; then
4849        # Extract the first word of "c++", so it can be a program name with args.
4850 set dummy c++; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test -n "$BUILD_CXX"; then
4857   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4858 else
4859   ac_prog_rejected=no
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865   for ac_exec_ext in '' $ac_executable_extensions; do
4866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4867     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4868        ac_prog_rejected=yes
4869        continue
4870      fi
4871     ac_cv_prog_BUILD_CXX="c++"
4872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 if test $ac_prog_rejected = yes; then
4880   # We found a bogon in the path, so make sure we never use it.
4881   set dummy $ac_cv_prog_BUILD_CXX
4882   shift
4883   if test $# != 0; then
4884     # We chose a different compiler from the bogus one.
4885     # However, it has the same basename, so the bogon will be chosen
4886     # first if we set BUILD_CXX to just the basename; use the full file name.
4887     shift
4888     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4889   fi
4890 fi
4891 fi
4892 fi
4893 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894 if test -n "$BUILD_CXX"; then
4895   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896 echo "${ECHO_T}$BUILD_CXX" >&6; }
4897 else
4898   { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4900 fi
4901
4902
4903      fi
4904   fi
4905 else
4906   LLVM_CROSS_COMPILING=0
4907
4908 fi
4909
4910 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4911   cvsbuild="yes"
4912   optimize="no"
4913   CVSBUILD=CVSBUILD=1
4914
4915 else
4916   cvsbuild="no"
4917   optimize="yes"
4918 fi
4919
4920
4921 # Check whether --enable-optimized was given.
4922 if test "${enable_optimized+set}" = set; then
4923   enableval=$enable_optimized;
4924 else
4925   enableval=$optimize
4926 fi
4927
4928 if test ${enableval} = "no" ; then
4929   ENABLE_OPTIMIZED=
4930
4931 else
4932   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4933
4934 fi
4935
4936 # Check whether --enable-profiling was given.
4937 if test "${enable_profiling+set}" = set; then
4938   enableval=$enable_profiling;
4939 else
4940   enableval="no"
4941 fi
4942
4943 if test ${enableval} = "no" ; then
4944   ENABLE_PROFILING=
4945
4946 else
4947   ENABLE_PROFILING=ENABLE_PROFILING=1
4948
4949 fi
4950
4951 # Check whether --enable-assertions was given.
4952 if test "${enable_assertions+set}" = set; then
4953   enableval=$enable_assertions;
4954 else
4955   enableval="yes"
4956 fi
4957
4958 if test ${enableval} = "yes" ; then
4959   DISABLE_ASSERTIONS=
4960
4961 else
4962   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4963
4964 fi
4965
4966 # Check whether --enable-expensive-checks was given.
4967 if test "${enable_expensive_checks+set}" = set; then
4968   enableval=$enable_expensive_checks;
4969 else
4970   enableval="no"
4971 fi
4972
4973 if test ${enableval} = "yes" ; then
4974   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4975
4976   EXPENSIVE_CHECKS=yes
4977
4978 else
4979   ENABLE_EXPENSIVE_CHECKS=
4980
4981   EXPENSIVE_CHECKS=no
4982
4983 fi
4984
4985 # Check whether --enable-debug-runtime was given.
4986 if test "${enable_debug_runtime+set}" = set; then
4987   enableval=$enable_debug_runtime;
4988 else
4989   enableval=no
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   DEBUG_RUNTIME=
4994
4995 else
4996   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4997
4998 fi
4999
5000 # Check whether --enable-debug-symbols was given.
5001 if test "${enable_debug_symbols+set}" = set; then
5002   enableval=$enable_debug_symbols;
5003 else
5004   enableval=no
5005 fi
5006
5007 if test ${enableval} = "no" ; then
5008   DEBUG_SYMBOLS=
5009
5010 else
5011   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5012
5013 fi
5014
5015 # Check whether --enable-jit was given.
5016 if test "${enable_jit+set}" = set; then
5017   enableval=$enable_jit;
5018 else
5019   enableval=default
5020 fi
5021
5022 if test ${enableval} = "no"
5023 then
5024   JIT=
5025
5026 else
5027   case "$llvm_cv_target_arch" in
5028     x86)         TARGET_HAS_JIT=1
5029  ;;
5030     Sparc)       TARGET_HAS_JIT=0
5031  ;;
5032     PowerPC)     TARGET_HAS_JIT=1
5033  ;;
5034     x86_64)      TARGET_HAS_JIT=1
5035  ;;
5036     ARM)         TARGET_HAS_JIT=1
5037  ;;
5038     Mips)        TARGET_HAS_JIT=1
5039  ;;
5040     XCore)       TARGET_HAS_JIT=0
5041  ;;
5042     MSP430)      TARGET_HAS_JIT=0
5043  ;;
5044     Hexagon)     TARGET_HAS_JIT=0
5045  ;;
5046     MBlaze)      TARGET_HAS_JIT=0
5047  ;;
5048     PTX)         TARGET_HAS_JIT=0
5049  ;;
5050     *)           TARGET_HAS_JIT=0
5051  ;;
5052   esac
5053 fi
5054
5055 # Check whether --enable-docs was given.
5056 if test "${enable_docs+set}" = set; then
5057   enableval=$enable_docs;
5058 else
5059   enableval=default
5060 fi
5061
5062 case "$enableval" in
5063   yes) ENABLE_DOCS=1
5064  ;;
5065   no)  ENABLE_DOCS=0
5066  ;;
5067   default) ENABLE_DOCS=1
5068  ;;
5069   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5070 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5071    { (exit 1); exit 1; }; } ;;
5072 esac
5073
5074 # Check whether --enable-doxygen was given.
5075 if test "${enable_doxygen+set}" = set; then
5076   enableval=$enable_doxygen;
5077 else
5078   enableval=default
5079 fi
5080
5081 case "$enableval" in
5082   yes) ENABLE_DOXYGEN=1
5083  ;;
5084   no)  ENABLE_DOXYGEN=0
5085  ;;
5086   default) ENABLE_DOXYGEN=0
5087  ;;
5088   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5090    { (exit 1); exit 1; }; } ;;
5091 esac
5092
5093 # Check whether --enable-threads was given.
5094 if test "${enable_threads+set}" = set; then
5095   enableval=$enable_threads;
5096 else
5097   enableval=default
5098 fi
5099
5100 case "$enableval" in
5101   yes) ENABLE_THREADS=1
5102  ;;
5103   no)  ENABLE_THREADS=0
5104  ;;
5105   default) ENABLE_THREADS=1
5106  ;;
5107   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5109    { (exit 1); exit 1; }; } ;;
5110 esac
5111
5112 cat >>confdefs.h <<_ACEOF
5113 #define ENABLE_THREADS $ENABLE_THREADS
5114 _ACEOF
5115
5116
5117 # Check whether --enable-pthreads was given.
5118 if test "${enable_pthreads+set}" = set; then
5119   enableval=$enable_pthreads;
5120 else
5121   enableval=default
5122 fi
5123
5124 case "$enableval" in
5125   yes) ENABLE_PTHREADS=1
5126  ;;
5127   no)  ENABLE_PTHREADS=0
5128  ;;
5129   default) ENABLE_PTHREADS=1
5130  ;;
5131   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5132 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5133    { (exit 1); exit 1; }; } ;;
5134 esac
5135
5136 # Check whether --enable-pic was given.
5137 if test "${enable_pic+set}" = set; then
5138   enableval=$enable_pic;
5139 else
5140   enableval=default
5141 fi
5142
5143 case "$enableval" in
5144   yes) ENABLE_PIC=1
5145  ;;
5146   no)  ENABLE_PIC=0
5147  ;;
5148   default) ENABLE_PIC=1
5149  ;;
5150   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5151 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5152    { (exit 1); exit 1; }; } ;;
5153 esac
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define ENABLE_PIC $ENABLE_PIC
5157 _ACEOF
5158
5159
5160 # Check whether --enable-shared was given.
5161 if test "${enable_shared+set}" = set; then
5162   enableval=$enable_shared;
5163 else
5164   enableval=default
5165 fi
5166
5167 case "$enableval" in
5168   yes) ENABLE_SHARED=1
5169  ;;
5170   no)  ENABLE_SHARED=0
5171  ;;
5172   default) ENABLE_SHARED=0
5173  ;;
5174   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5176    { (exit 1); exit 1; }; } ;;
5177 esac
5178
5179 # Check whether --enable-embed-stdcxx was given.
5180 if test "${enable_embed_stdcxx+set}" = set; then
5181   enableval=$enable_embed_stdcxx;
5182 else
5183   enableval=default
5184 fi
5185
5186 case "$enableval" in
5187   yes) ENABLE_EMBED_STDCXX=1
5188  ;;
5189   no)  ENABLE_EMBED_STDCXX=0
5190  ;;
5191   default) ENABLE_EMBED_STDCXX=1
5192  ;;
5193   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5195    { (exit 1); exit 1; }; } ;;
5196 esac
5197
5198 # Check whether --enable-timestamps was given.
5199 if test "${enable_timestamps+set}" = set; then
5200   enableval=$enable_timestamps;
5201 else
5202   enableval=default
5203 fi
5204
5205 case "$enableval" in
5206   yes) ENABLE_TIMESTAMPS=1
5207  ;;
5208   no)  ENABLE_TIMESTAMPS=0
5209  ;;
5210   default) ENABLE_TIMESTAMPS=1
5211  ;;
5212   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5214    { (exit 1); exit 1; }; } ;;
5215 esac
5216
5217 cat >>confdefs.h <<_ACEOF
5218 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5219 _ACEOF
5220
5221
5222 TARGETS_TO_BUILD=""
5223 # Check whether --enable-targets was given.
5224 if test "${enable_targets+set}" = set; then
5225   enableval=$enable_targets;
5226 else
5227   enableval=all
5228 fi
5229
5230 if test "$enableval" = host-only ; then
5231   enableval=host
5232 fi
5233 case "$enableval" in
5234   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5235   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5236       case "$a_target" in
5237         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5238         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5239         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5240         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5241         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5242         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5243         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5244         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5245         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5246         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5247         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5248         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5249         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5250         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5251         host) case "$llvm_cv_target_arch" in
5252             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5253             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5254             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5255             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5256             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5257             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5258             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5259             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5260             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5261             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5262             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5263             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5264             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5265 echo "$as_me: error: Can not set target to build" >&2;}
5266    { (exit 1); exit 1; }; } ;;
5267           esac ;;
5268         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5269 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5270    { (exit 1); exit 1; }; } ;;
5271       esac
5272   done
5273   ;;
5274 esac
5275 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5276
5277
5278 # Determine whether we are building LLVM support for the native architecture.
5279 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5280 for a_target in $TARGETS_TO_BUILD; do
5281   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5282
5283 cat >>confdefs.h <<_ACEOF
5284 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5285 _ACEOF
5286
5287     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5288     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5289     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5290     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5291     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5292       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5293     fi
5294
5295 cat >>confdefs.h <<_ACEOF
5296 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5297 _ACEOF
5298
5299
5300 cat >>confdefs.h <<_ACEOF
5301 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5302 _ACEOF
5303
5304
5305 cat >>confdefs.h <<_ACEOF
5306 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5307 _ACEOF
5308
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5312 _ACEOF
5313
5314     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5318 _ACEOF
5319
5320     fi
5321   fi
5322 done
5323
5324 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5325 # target feature def files.
5326 LLVM_ENUM_TARGETS=""
5327 LLVM_ENUM_ASM_PRINTERS=""
5328 LLVM_ENUM_ASM_PARSERS=""
5329 LLVM_ENUM_DISASSEMBLERS=""
5330 for target_to_build in $TARGETS_TO_BUILD; do
5331   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5332   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5333     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5334   fi
5335   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5336     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5337   fi
5338   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5339     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5340   fi
5341 done
5342
5343
5344
5345
5346
5347 # Check whether --enable-cbe-printf-a was given.
5348 if test "${enable_cbe_printf_a+set}" = set; then
5349   enableval=$enable_cbe_printf_a;
5350 else
5351   enableval=default
5352 fi
5353
5354 case "$enableval" in
5355   yes) ENABLE_CBE_PRINTF_A=1
5356  ;;
5357   no)  ENABLE_CBE_PRINTF_A=0
5358  ;;
5359   default)  ENABLE_CBE_PRINTF_A=1
5360  ;;
5361   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5362 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5363    { (exit 1); exit 1; }; } ;;
5364 esac
5365
5366 cat >>confdefs.h <<_ACEOF
5367 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5368 _ACEOF
5369
5370
5371
5372 # Check whether --with-optimize-option was given.
5373 if test "${with_optimize_option+set}" = set; then
5374   withval=$with_optimize_option;
5375 else
5376   withval=default
5377 fi
5378
5379 { echo "$as_me:$LINENO: checking optimization flags" >&5
5380 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5381 case "$withval" in
5382   default)
5383     case "$llvm_cv_os_type" in
5384     FreeBSD) optimize_option=-O2 ;;
5385     MingW) optimize_option=-O2 ;;
5386     *)     optimize_option=-O3 ;;
5387     esac ;;
5388   *) optimize_option="$withval" ;;
5389 esac
5390 OPTIMIZE_OPTION=$optimize_option
5391
5392 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5393 echo "${ECHO_T}$optimize_option" >&6; }
5394
5395
5396 # Check whether --with-extra-options was given.
5397 if test "${with_extra_options+set}" = set; then
5398   withval=$with_extra_options;
5399 else
5400   withval=default
5401 fi
5402
5403 case "$withval" in
5404   default) EXTRA_OPTIONS= ;;
5405   *) EXTRA_OPTIONS=$withval ;;
5406 esac
5407 EXTRA_OPTIONS=$EXTRA_OPTIONS
5408
5409
5410
5411 # Check whether --with-extra-ld-options was given.
5412 if test "${with_extra_ld_options+set}" = set; then
5413   withval=$with_extra_ld_options;
5414 else
5415   withval=default
5416 fi
5417
5418 case "$withval" in
5419   default) EXTRA_LD_OPTIONS= ;;
5420   *) EXTRA_LD_OPTIONS=$withval ;;
5421 esac
5422 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5423
5424
5425 # Check whether --enable-bindings was given.
5426 if test "${enable_bindings+set}" = set; then
5427   enableval=$enable_bindings;
5428 else
5429   enableval=default
5430 fi
5431
5432 BINDINGS_TO_BUILD=""
5433 case "$enableval" in
5434   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5435   all ) BINDINGS_TO_BUILD="ocaml" ;;
5436   none | no) BINDINGS_TO_BUILD="" ;;
5437   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5438       case "$a_binding" in
5439         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5440         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5441 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5442    { (exit 1); exit 1; }; } ;;
5443       esac
5444   done
5445   ;;
5446 esac
5447
5448
5449 # Check whether --with-ocaml-libdir was given.
5450 if test "${with_ocaml_libdir+set}" = set; then
5451   withval=$with_ocaml_libdir;
5452 else
5453   withval=auto
5454 fi
5455
5456 case "$withval" in
5457   auto) with_ocaml_libdir="$withval" ;;
5458   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5459   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5460 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5461    { (exit 1); exit 1; }; } ;;
5462 esac
5463
5464
5465 # Check whether --with-clang-resource-dir was given.
5466 if test "${with_clang_resource_dir+set}" = set; then
5467   withval=$with_clang_resource_dir;
5468 else
5469   withval=""
5470 fi
5471
5472
5473 cat >>confdefs.h <<_ACEOF
5474 #define CLANG_RESOURCE_DIR "$withval"
5475 _ACEOF
5476
5477
5478
5479 # Check whether --with-c-include-dirs was given.
5480 if test "${with_c_include_dirs+set}" = set; then
5481   withval=$with_c_include_dirs;
5482 else
5483   withval=""
5484 fi
5485
5486
5487 cat >>confdefs.h <<_ACEOF
5488 #define C_INCLUDE_DIRS "$withval"
5489 _ACEOF
5490
5491
5492 # Clang normally uses the system c++ headers and libraries. With this option,
5493 # clang will use the ones provided by a gcc installation instead. This option should
5494 # be passed the same value that was used with --prefix when configuring gcc.
5495
5496 # Check whether --with-gcc-toolchain was given.
5497 if test "${with_gcc_toolchain+set}" = set; then
5498   withval=$with_gcc_toolchain;
5499 else
5500   withval=""
5501 fi
5502
5503
5504 cat >>confdefs.h <<_ACEOF
5505 #define GCC_INSTALL_PREFIX "$withval"
5506 _ACEOF
5507
5508
5509
5510 # Check whether --with-binutils-include was given.
5511 if test "${with_binutils_include+set}" = set; then
5512   withval=$with_binutils_include;
5513 else
5514   withval=default
5515 fi
5516
5517 case "$withval" in
5518   default) WITH_BINUTILS_INCDIR=default ;;
5519   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5520   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5521 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5522    { (exit 1); exit 1; }; } ;;
5523 esac
5524 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5525   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5526
5527   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5528      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5529      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5530 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5531    { (exit 1); exit 1; }; };
5532   fi
5533 fi
5534
5535
5536 # Check whether --with-bug-report-url was given.
5537 if test "${with_bug_report_url+set}" = set; then
5538   withval=$with_bug_report_url;
5539 else
5540   withval="http://llvm.org/bugs/"
5541 fi
5542
5543
5544 cat >>confdefs.h <<_ACEOF
5545 #define BUG_REPORT_URL "$withval"
5546 _ACEOF
5547
5548
5549 # Check whether --enable-libffi was given.
5550 if test "${enable_libffi+set}" = set; then
5551   enableval=$enable_libffi; case "$enableval" in
5552     yes) llvm_cv_enable_libffi="yes" ;;
5553     no)  llvm_cv_enable_libffi="no"  ;;
5554     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5556    { (exit 1); exit 1; }; } ;;
5557   esac
5558 else
5559   llvm_cv_enable_libffi=no
5560 fi
5561
5562
5563
5564 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5565 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5566 if test "${lt_cv_path_NM+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   if test -n "$NM"; then
5570   # Let the user override the test.
5571   lt_cv_path_NM="$NM"
5572 else
5573   lt_nm_to_check="${ac_tool_prefix}nm"
5574   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5575     lt_nm_to_check="$lt_nm_to_check nm"
5576   fi
5577   for lt_tmp_nm in $lt_nm_to_check; do
5578     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5579     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5580       IFS="$lt_save_ifs"
5581       test -z "$ac_dir" && ac_dir=.
5582       tmp_nm="$ac_dir/$lt_tmp_nm"
5583       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5584         # Check to see if the nm accepts a BSD-compat flag.
5585         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5586         #   nm: unknown option "B" ignored
5587         # Tru64's nm complains that /dev/null is an invalid object file
5588         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5589         */dev/null* | *'Invalid file or object type'*)
5590           lt_cv_path_NM="$tmp_nm -B"
5591           break
5592           ;;
5593         *)
5594           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5595           */dev/null*)
5596             lt_cv_path_NM="$tmp_nm -p"
5597             break
5598             ;;
5599           *)
5600             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5601             continue # so that we can try to find one that supports BSD flags
5602             ;;
5603           esac
5604           ;;
5605         esac
5606       fi
5607     done
5608     IFS="$lt_save_ifs"
5609   done
5610   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5611 fi
5612 fi
5613 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5614 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5615 NM="$lt_cv_path_NM"
5616
5617
5618
5619 { echo "$as_me:$LINENO: checking for GNU make" >&5
5620 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5621 if test "${llvm_cv_gnu_make_command+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   llvm_cv_gnu_make_command=''
5625  for a in "$MAKE" make gmake gnumake ; do
5626   if test -z "$a" ; then continue ; fi ;
5627   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5628   then
5629    llvm_cv_gnu_make_command=$a ;
5630    break;
5631   fi
5632  done
5633 fi
5634 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5635 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5636  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5637    ifGNUmake='' ;
5638  else
5639    ifGNUmake='#' ;
5640    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5641 echo "${ECHO_T}\"Not found\"" >&6; };
5642  fi
5643
5644
5645 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5646 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5647 LN_S=$as_ln_s
5648 if test "$LN_S" = "ln -s"; then
5649   { echo "$as_me:$LINENO: result: yes" >&5
5650 echo "${ECHO_T}yes" >&6; }
5651 else
5652   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5653 echo "${ECHO_T}no, using $LN_S" >&6; }
5654 fi
5655
5656 # Extract the first word of "cmp", so it can be a program name with args.
5657 set dummy cmp; ac_word=$2
5658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5660 if test "${ac_cv_path_CMP+set}" = set; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   case $CMP in
5664   [\\/]* | ?:[\\/]*)
5665   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5666   ;;
5667   *)
5668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673   for ac_exec_ext in '' $ac_executable_extensions; do
5674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5684   ;;
5685 esac
5686 fi
5687 CMP=$ac_cv_path_CMP
5688 if test -n "$CMP"; then
5689   { echo "$as_me:$LINENO: result: $CMP" >&5
5690 echo "${ECHO_T}$CMP" >&6; }
5691 else
5692   { echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6; }
5694 fi
5695
5696
5697 # Extract the first word of "cp", so it can be a program name with args.
5698 set dummy cp; ac_word=$2
5699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701 if test "${ac_cv_path_CP+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   case $CP in
5705   [\\/]* | ?:[\\/]*)
5706   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5707   ;;
5708   *)
5709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714   for ac_exec_ext in '' $ac_executable_extensions; do
5715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5716     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5725   ;;
5726 esac
5727 fi
5728 CP=$ac_cv_path_CP
5729 if test -n "$CP"; then
5730   { echo "$as_me:$LINENO: result: $CP" >&5
5731 echo "${ECHO_T}$CP" >&6; }
5732 else
5733   { echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6; }
5735 fi
5736
5737
5738 # Extract the first word of "date", so it can be a program name with args.
5739 set dummy date; ac_word=$2
5740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5742 if test "${ac_cv_path_DATE+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   case $DATE in
5746   [\\/]* | ?:[\\/]*)
5747   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5748   ;;
5749   *)
5750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5757     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5766   ;;
5767 esac
5768 fi
5769 DATE=$ac_cv_path_DATE
5770 if test -n "$DATE"; then
5771   { echo "$as_me:$LINENO: result: $DATE" >&5
5772 echo "${ECHO_T}$DATE" >&6; }
5773 else
5774   { echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6; }
5776 fi
5777
5778
5779 # Extract the first word of "find", so it can be a program name with args.
5780 set dummy find; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_path_FIND+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   case $FIND in
5787   [\\/]* | ?:[\\/]*)
5788   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5789   ;;
5790   *)
5791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5793 do
5794   IFS=$as_save_IFS
5795   test -z "$as_dir" && as_dir=.
5796   for ac_exec_ext in '' $ac_executable_extensions; do
5797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800     break 2
5801   fi
5802 done
5803 done
5804 IFS=$as_save_IFS
5805
5806   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5807   ;;
5808 esac
5809 fi
5810 FIND=$ac_cv_path_FIND
5811 if test -n "$FIND"; then
5812   { echo "$as_me:$LINENO: result: $FIND" >&5
5813 echo "${ECHO_T}$FIND" >&6; }
5814 else
5815   { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5817 fi
5818
5819
5820 # Extract the first word of "grep", so it can be a program name with args.
5821 set dummy grep; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_GREP+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   case $GREP in
5828   [\\/]* | ?:[\\/]*)
5829   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5830   ;;
5831   *)
5832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5848   ;;
5849 esac
5850 fi
5851 GREP=$ac_cv_path_GREP
5852 if test -n "$GREP"; then
5853   { echo "$as_me:$LINENO: result: $GREP" >&5
5854 echo "${ECHO_T}$GREP" >&6; }
5855 else
5856   { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5858 fi
5859
5860
5861 # Extract the first word of "mkdir", so it can be a program name with args.
5862 set dummy mkdir; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_MKDIR+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   case $MKDIR in
5869   [\\/]* | ?:[\\/]*)
5870   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5871   ;;
5872   *)
5873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5889   ;;
5890 esac
5891 fi
5892 MKDIR=$ac_cv_path_MKDIR
5893 if test -n "$MKDIR"; then
5894   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5895 echo "${ECHO_T}$MKDIR" >&6; }
5896 else
5897   { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5899 fi
5900
5901
5902 # Extract the first word of "mv", so it can be a program name with args.
5903 set dummy mv; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_MV+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   case $MV in
5910   [\\/]* | ?:[\\/]*)
5911   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5912   ;;
5913   *)
5914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5930   ;;
5931 esac
5932 fi
5933 MV=$ac_cv_path_MV
5934 if test -n "$MV"; then
5935   { echo "$as_me:$LINENO: result: $MV" >&5
5936 echo "${ECHO_T}$MV" >&6; }
5937 else
5938   { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5940 fi
5941
5942
5943 if test -n "$ac_tool_prefix"; then
5944   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948 if test "${ac_cv_prog_RANLIB+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   if test -n "$RANLIB"; then
5952   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5961     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 RANLIB=$ac_cv_prog_RANLIB
5972 if test -n "$RANLIB"; then
5973   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5974 echo "${ECHO_T}$RANLIB" >&6; }
5975 else
5976   { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5978 fi
5979
5980
5981 fi
5982 if test -z "$ac_cv_prog_RANLIB"; then
5983   ac_ct_RANLIB=$RANLIB
5984   # Extract the first word of "ranlib", so it can be a program name with args.
5985 set dummy ranlib; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   if test -n "$ac_ct_RANLIB"; then
5992   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_prog_ac_ct_RANLIB="ranlib"
6002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6012 if test -n "$ac_ct_RANLIB"; then
6013   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6014 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6015 else
6016   { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6018 fi
6019
6020   if test "x$ac_ct_RANLIB" = x; then
6021     RANLIB=":"
6022   else
6023     case $cross_compiling:$ac_tool_warned in
6024 yes:)
6025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026 whose name does not start with the host triplet.  If you think this
6027 configuration is useful to you, please write to autoconf@gnu.org." >&5
6028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029 whose name does not start with the host triplet.  If you think this
6030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031 ac_tool_warned=yes ;;
6032 esac
6033     RANLIB=$ac_ct_RANLIB
6034   fi
6035 else
6036   RANLIB="$ac_cv_prog_RANLIB"
6037 fi
6038
6039 if test -n "$ac_tool_prefix"; then
6040   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6041 set dummy ${ac_tool_prefix}ar; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_AR+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   if test -n "$AR"; then
6048   ac_cv_prog_AR="$AR" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055   for ac_exec_ext in '' $ac_executable_extensions; do
6056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6057     ac_cv_prog_AR="${ac_tool_prefix}ar"
6058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062 done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 AR=$ac_cv_prog_AR
6068 if test -n "$AR"; then
6069   { echo "$as_me:$LINENO: result: $AR" >&5
6070 echo "${ECHO_T}$AR" >&6; }
6071 else
6072   { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6074 fi
6075
6076
6077 fi
6078 if test -z "$ac_cv_prog_AR"; then
6079   ac_ct_AR=$AR
6080   # Extract the first word of "ar", so it can be a program name with args.
6081 set dummy ar; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   if test -n "$ac_ct_AR"; then
6088   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095   for ac_exec_ext in '' $ac_executable_extensions; do
6096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097     ac_cv_prog_ac_ct_AR="ar"
6098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6108 if test -n "$ac_ct_AR"; then
6109   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6110 echo "${ECHO_T}$ac_ct_AR" >&6; }
6111 else
6112   { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6114 fi
6115
6116   if test "x$ac_ct_AR" = x; then
6117     AR="false"
6118   else
6119     case $cross_compiling:$ac_tool_warned in
6120 yes:)
6121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6122 whose name does not start with the host triplet.  If you think this
6123 configuration is useful to you, please write to autoconf@gnu.org." >&5
6124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6125 whose name does not start with the host triplet.  If you think this
6126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6127 ac_tool_warned=yes ;;
6128 esac
6129     AR=$ac_ct_AR
6130   fi
6131 else
6132   AR="$ac_cv_prog_AR"
6133 fi
6134
6135 # Extract the first word of "rm", so it can be a program name with args.
6136 set dummy rm; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_path_RM+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   case $RM in
6143   [\\/]* | ?:[\\/]*)
6144   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6145   ;;
6146   *)
6147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6163   ;;
6164 esac
6165 fi
6166 RM=$ac_cv_path_RM
6167 if test -n "$RM"; then
6168   { echo "$as_me:$LINENO: result: $RM" >&5
6169 echo "${ECHO_T}$RM" >&6; }
6170 else
6171   { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6173 fi
6174
6175
6176 # Extract the first word of "sed", so it can be a program name with args.
6177 set dummy sed; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_path_SED+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   case $SED in
6184   [\\/]* | ?:[\\/]*)
6185   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6186   ;;
6187   *)
6188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193   for ac_exec_ext in '' $ac_executable_extensions; do
6194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197     break 2
6198   fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6204   ;;
6205 esac
6206 fi
6207 SED=$ac_cv_path_SED
6208 if test -n "$SED"; then
6209   { echo "$as_me:$LINENO: result: $SED" >&5
6210 echo "${ECHO_T}$SED" >&6; }
6211 else
6212   { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 fi
6215
6216
6217 # Extract the first word of "tar", so it can be a program name with args.
6218 set dummy tar; ac_word=$2
6219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6221 if test "${ac_cv_path_TAR+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224   case $TAR in
6225   [\\/]* | ?:[\\/]*)
6226   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6227   ;;
6228   *)
6229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234   for ac_exec_ext in '' $ac_executable_extensions; do
6235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6236     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238     break 2
6239   fi
6240 done
6241 done
6242 IFS=$as_save_IFS
6243
6244   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6245   ;;
6246 esac
6247 fi
6248 TAR=$ac_cv_path_TAR
6249 if test -n "$TAR"; then
6250   { echo "$as_me:$LINENO: result: $TAR" >&5
6251 echo "${ECHO_T}$TAR" >&6; }
6252 else
6253   { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6255 fi
6256
6257
6258 # Extract the first word of "pwd", so it can be a program name with args.
6259 set dummy pwd; ac_word=$2
6260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262 if test "${ac_cv_path_BINPWD+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   case $BINPWD in
6266   [\\/]* | ?:[\\/]*)
6267   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6268   ;;
6269   *)
6270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275   for ac_exec_ext in '' $ac_executable_extensions; do
6276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6277     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6286   ;;
6287 esac
6288 fi
6289 BINPWD=$ac_cv_path_BINPWD
6290 if test -n "$BINPWD"; then
6291   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6292 echo "${ECHO_T}$BINPWD" >&6; }
6293 else
6294   { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6296 fi
6297
6298
6299
6300 # Extract the first word of "Graphviz", so it can be a program name with args.
6301 set dummy Graphviz; ac_word=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6305   echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307   case $GRAPHVIZ in
6308   [\\/]* | ?:[\\/]*)
6309   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6310   ;;
6311   *)
6312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317   for ac_exec_ext in '' $ac_executable_extensions; do
6318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6319     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6328   ;;
6329 esac
6330 fi
6331 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6332 if test -n "$GRAPHVIZ"; then
6333   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6334 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6335 else
6336   { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6338 fi
6339
6340
6341 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6342
6343 cat >>confdefs.h <<\_ACEOF
6344 #define HAVE_GRAPHVIZ 1
6345 _ACEOF
6346
6347     if test "$llvm_cv_os_type" = "MingW" ; then
6348     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6349   fi
6350
6351 cat >>confdefs.h <<_ACEOF
6352 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6353 _ACEOF
6354
6355 fi
6356 # Extract the first word of "dot", so it can be a program name with args.
6357 set dummy dot; ac_word=$2
6358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360 if test "${ac_cv_path_DOT+set}" = set; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363   case $DOT in
6364   [\\/]* | ?:[\\/]*)
6365   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6366   ;;
6367   *)
6368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   test -z "$as_dir" && as_dir=.
6373   for ac_exec_ext in '' $ac_executable_extensions; do
6374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6384   ;;
6385 esac
6386 fi
6387 DOT=$ac_cv_path_DOT
6388 if test -n "$DOT"; then
6389   { echo "$as_me:$LINENO: result: $DOT" >&5
6390 echo "${ECHO_T}$DOT" >&6; }
6391 else
6392   { echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6; }
6394 fi
6395
6396
6397 if test "$DOT" != "echo dot" ; then
6398
6399 cat >>confdefs.h <<\_ACEOF
6400 #define HAVE_DOT 1
6401 _ACEOF
6402
6403     if test "$llvm_cv_os_type" = "MingW" ; then
6404     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6405   fi
6406
6407 cat >>confdefs.h <<_ACEOF
6408 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6409 _ACEOF
6410
6411 fi
6412 # Extract the first word of "fdp", so it can be a program name with args.
6413 set dummy fdp; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_path_FDP+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   case $FDP in
6420   [\\/]* | ?:[\\/]*)
6421   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6422   ;;
6423   *)
6424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429   for ac_exec_ext in '' $ac_executable_extensions; do
6430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6431     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433     break 2
6434   fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6440   ;;
6441 esac
6442 fi
6443 FDP=$ac_cv_path_FDP
6444 if test -n "$FDP"; then
6445   { echo "$as_me:$LINENO: result: $FDP" >&5
6446 echo "${ECHO_T}$FDP" >&6; }
6447 else
6448   { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6450 fi
6451
6452
6453 if test "$FDP" != "echo fdp" ; then
6454
6455 cat >>confdefs.h <<\_ACEOF
6456 #define HAVE_FDP 1
6457 _ACEOF
6458
6459     if test "$llvm_cv_os_type" = "MingW" ; then
6460     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6461   fi
6462
6463 cat >>confdefs.h <<_ACEOF
6464 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6465 _ACEOF
6466
6467 fi
6468 # Extract the first word of "neato", so it can be a program name with args.
6469 set dummy neato; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_path_NEATO+set}" = set; then
6473   echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475   case $NEATO in
6476   [\\/]* | ?:[\\/]*)
6477   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6478   ;;
6479   *)
6480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485   for ac_exec_ext in '' $ac_executable_extensions; do
6486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6487     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6496   ;;
6497 esac
6498 fi
6499 NEATO=$ac_cv_path_NEATO
6500 if test -n "$NEATO"; then
6501   { echo "$as_me:$LINENO: result: $NEATO" >&5
6502 echo "${ECHO_T}$NEATO" >&6; }
6503 else
6504   { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6506 fi
6507
6508
6509 if test "$NEATO" != "echo neato" ; then
6510
6511 cat >>confdefs.h <<\_ACEOF
6512 #define HAVE_NEATO 1
6513 _ACEOF
6514
6515     if test "$llvm_cv_os_type" = "MingW" ; then
6516     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6517   fi
6518
6519 cat >>confdefs.h <<_ACEOF
6520 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6521 _ACEOF
6522
6523 fi
6524 # Extract the first word of "twopi", so it can be a program name with args.
6525 set dummy twopi; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_path_TWOPI+set}" = set; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   case $TWOPI in
6532   [\\/]* | ?:[\\/]*)
6533   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6534   ;;
6535   *)
6536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541   for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6552   ;;
6553 esac
6554 fi
6555 TWOPI=$ac_cv_path_TWOPI
6556 if test -n "$TWOPI"; then
6557   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6558 echo "${ECHO_T}$TWOPI" >&6; }
6559 else
6560   { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6562 fi
6563
6564
6565 if test "$TWOPI" != "echo twopi" ; then
6566
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_TWOPI 1
6569 _ACEOF
6570
6571     if test "$llvm_cv_os_type" = "MingW" ; then
6572     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573   fi
6574
6575 cat >>confdefs.h <<_ACEOF
6576 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6577 _ACEOF
6578
6579 fi
6580 # Extract the first word of "circo", so it can be a program name with args.
6581 set dummy circo; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_CIRCO+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   case $CIRCO in
6588   [\\/]* | ?:[\\/]*)
6589   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6590   ;;
6591   *)
6592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595   IFS=$as_save_IFS
6596   test -z "$as_dir" && as_dir=.
6597   for ac_exec_ext in '' $ac_executable_extensions; do
6598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601     break 2
6602   fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6608   ;;
6609 esac
6610 fi
6611 CIRCO=$ac_cv_path_CIRCO
6612 if test -n "$CIRCO"; then
6613   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6614 echo "${ECHO_T}$CIRCO" >&6; }
6615 else
6616   { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6618 fi
6619
6620
6621 if test "$CIRCO" != "echo circo" ; then
6622
6623 cat >>confdefs.h <<\_ACEOF
6624 #define HAVE_CIRCO 1
6625 _ACEOF
6626
6627     if test "$llvm_cv_os_type" = "MingW" ; then
6628     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629   fi
6630
6631 cat >>confdefs.h <<_ACEOF
6632 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6633 _ACEOF
6634
6635 fi
6636 for ac_prog in gv gsview32
6637 do
6638   # Extract the first word of "$ac_prog", so it can be a program name with args.
6639 set dummy $ac_prog; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_path_GV+set}" = set; then
6643   echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645   case $GV in
6646   [\\/]* | ?:[\\/]*)
6647   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6648   ;;
6649   *)
6650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665   ;;
6666 esac
6667 fi
6668 GV=$ac_cv_path_GV
6669 if test -n "$GV"; then
6670   { echo "$as_me:$LINENO: result: $GV" >&5
6671 echo "${ECHO_T}$GV" >&6; }
6672 else
6673   { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6675 fi
6676
6677
6678   test -n "$GV" && break
6679 done
6680 test -n "$GV" || GV="echo gv"
6681
6682 if test "$GV" != "echo gv" ; then
6683
6684 cat >>confdefs.h <<\_ACEOF
6685 #define HAVE_GV 1
6686 _ACEOF
6687
6688     if test "$llvm_cv_os_type" = "MingW" ; then
6689     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6690   fi
6691
6692 cat >>confdefs.h <<_ACEOF
6693 #define LLVM_PATH_GV "$GV${EXEEXT}"
6694 _ACEOF
6695
6696 fi
6697 # Extract the first word of "dotty", so it can be a program name with args.
6698 set dummy dotty; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_DOTTY+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   case $DOTTY in
6705   [\\/]* | ?:[\\/]*)
6706   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6707   ;;
6708   *)
6709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714   for ac_exec_ext in '' $ac_executable_extensions; do
6715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6725   ;;
6726 esac
6727 fi
6728 DOTTY=$ac_cv_path_DOTTY
6729 if test -n "$DOTTY"; then
6730   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6731 echo "${ECHO_T}$DOTTY" >&6; }
6732 else
6733   { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 fi
6736
6737
6738 if test "$DOTTY" != "echo dotty" ; then
6739
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_DOTTY 1
6742 _ACEOF
6743
6744     if test "$llvm_cv_os_type" = "MingW" ; then
6745     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6746   fi
6747
6748 cat >>confdefs.h <<_ACEOF
6749 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6750 _ACEOF
6751
6752 fi
6753 # Extract the first word of "xdot.py", so it can be a program name with args.
6754 set dummy xdot.py; ac_word=$2
6755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6758   echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760   case $XDOT_PY in
6761   [\\/]* | ?:[\\/]*)
6762   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6763   ;;
6764   *)
6765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770   for ac_exec_ext in '' $ac_executable_extensions; do
6771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6772     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6781   ;;
6782 esac
6783 fi
6784 XDOT_PY=$ac_cv_path_XDOT_PY
6785 if test -n "$XDOT_PY"; then
6786   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6787 echo "${ECHO_T}$XDOT_PY" >&6; }
6788 else
6789   { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6791 fi
6792
6793
6794 if test "$XDOT_PY" != "echo xdot.py" ; then
6795
6796 cat >>confdefs.h <<\_ACEOF
6797 #define HAVE_XDOT_PY 1
6798 _ACEOF
6799
6800     if test "$llvm_cv_os_type" = "MingW" ; then
6801     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6802   fi
6803
6804 cat >>confdefs.h <<_ACEOF
6805 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6806 _ACEOF
6807
6808 fi
6809
6810
6811 # Extract the first word of "perl", so it can be a program name with args.
6812 set dummy perl; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_path_PERL+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   case $PERL in
6819   [\\/]* | ?:[\\/]*)
6820   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6821   ;;
6822   *)
6823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828   for ac_exec_ext in '' $ac_executable_extensions; do
6829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6830     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6839   ;;
6840 esac
6841 fi
6842 PERL=$ac_cv_path_PERL
6843 if test -n "$PERL"; then
6844   { echo "$as_me:$LINENO: result: $PERL" >&5
6845 echo "${ECHO_T}$PERL" >&6; }
6846 else
6847   { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6849 fi
6850
6851
6852 if test "$PERL" != "none"; then
6853   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6854 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6855   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6856     { echo "$as_me:$LINENO: result: yes" >&5
6857 echo "${ECHO_T}yes" >&6; }
6858   else
6859     PERL=none
6860     { echo "$as_me:$LINENO: result: not found" >&5
6861 echo "${ECHO_T}not found" >&6; }
6862   fi
6863 fi
6864
6865
6866 if test x"$PERL" = xnone; then
6867    HAVE_PERL=0
6868
6869    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6870 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6871    { (exit 1); exit 1; }; }
6872 else
6873    HAVE_PERL=1
6874
6875 fi
6876
6877 # Find a good install program.  We prefer a C program (faster),
6878 # so one script is as good as another.  But avoid the broken or
6879 # incompatible versions:
6880 # SysV /etc/install, /usr/sbin/install
6881 # SunOS /usr/etc/install
6882 # IRIX /sbin/install
6883 # AIX /bin/install
6884 # AmigaOS /C/install, which installs bootblocks on floppy discs
6885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6888 # OS/2's system install, which has a completely different semantic
6889 # ./install, which can be erroneously created by make from ./install.sh.
6890 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6892 if test -z "$INSTALL"; then
6893 if test "${ac_cv_path_install+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901   # Account for people who put trailing slashes in PATH elements.
6902 case $as_dir/ in
6903   ./ | .// | /cC/* | \
6904   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6905   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6906   /usr/ucb/* ) ;;
6907   *)
6908     # OSF1 and SCO ODT 3.0 have their own names for install.
6909     # Don't use installbsd from OSF since it installs stuff as root
6910     # by default.
6911     for ac_prog in ginstall scoinst install; do
6912       for ac_exec_ext in '' $ac_executable_extensions; do
6913         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6914           if test $ac_prog = install &&
6915             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6916             # AIX install.  It has an incompatible calling convention.
6917             :
6918           elif test $ac_prog = install &&
6919             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6920             # program-specific install script used by HP pwplus--don't use.
6921             :
6922           else
6923             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6924             break 3
6925           fi
6926         fi
6927       done
6928     done
6929     ;;
6930 esac
6931 done
6932 IFS=$as_save_IFS
6933
6934
6935 fi
6936   if test "${ac_cv_path_install+set}" = set; then
6937     INSTALL=$ac_cv_path_install
6938   else
6939     # As a last resort, use the slow shell script.  Don't cache a
6940     # value for INSTALL within a source directory, because that will
6941     # break other packages using the cache if that directory is
6942     # removed, or if the value is a relative name.
6943     INSTALL=$ac_install_sh
6944   fi
6945 fi
6946 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6947 echo "${ECHO_T}$INSTALL" >&6; }
6948
6949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6950 # It thinks the first close brace ends the variable substitution.
6951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6952
6953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6954
6955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6956
6957 case "$INSTALL" in
6958  [\\/$]* | ?:[\\/]* ) ;;
6959  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6960 esac
6961
6962 # Extract the first word of "bzip2", so it can be a program name with args.
6963 set dummy bzip2; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_BZIP2+set}" = set; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   case $BZIP2 in
6970   [\\/]* | ?:[\\/]*)
6971   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6972   ;;
6973   *)
6974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979   for ac_exec_ext in '' $ac_executable_extensions; do
6980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983     break 2
6984   fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989   ;;
6990 esac
6991 fi
6992 BZIP2=$ac_cv_path_BZIP2
6993 if test -n "$BZIP2"; then
6994   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6995 echo "${ECHO_T}$BZIP2" >&6; }
6996 else
6997   { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
6999 fi
7000
7001
7002 # Extract the first word of "cat", so it can be a program name with args.
7003 set dummy cat; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_path_CAT+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   case $CAT in
7010   [\\/]* | ?:[\\/]*)
7011   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7012   ;;
7013   *)
7014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019   for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029   ;;
7030 esac
7031 fi
7032 CAT=$ac_cv_path_CAT
7033 if test -n "$CAT"; then
7034   { echo "$as_me:$LINENO: result: $CAT" >&5
7035 echo "${ECHO_T}$CAT" >&6; }
7036 else
7037   { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7039 fi
7040
7041
7042 # Extract the first word of "doxygen", so it can be a program name with args.
7043 set dummy doxygen; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049   case $DOXYGEN in
7050   [\\/]* | ?:[\\/]*)
7051   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7052   ;;
7053   *)
7054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059   for ac_exec_ext in '' $ac_executable_extensions; do
7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063     break 2
7064   fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069   ;;
7070 esac
7071 fi
7072 DOXYGEN=$ac_cv_path_DOXYGEN
7073 if test -n "$DOXYGEN"; then
7074   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7075 echo "${ECHO_T}$DOXYGEN" >&6; }
7076 else
7077   { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7079 fi
7080
7081
7082 # Extract the first word of "groff", so it can be a program name with args.
7083 set dummy groff; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_GROFF+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   case $GROFF in
7090   [\\/]* | ?:[\\/]*)
7091   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7092   ;;
7093   *)
7094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099   for ac_exec_ext in '' $ac_executable_extensions; do
7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109   ;;
7110 esac
7111 fi
7112 GROFF=$ac_cv_path_GROFF
7113 if test -n "$GROFF"; then
7114   { echo "$as_me:$LINENO: result: $GROFF" >&5
7115 echo "${ECHO_T}$GROFF" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121
7122 # Extract the first word of "gzip", so it can be a program name with args.
7123 set dummy gzip; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   case $GZIPBIN in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149   ;;
7150 esac
7151 fi
7152 GZIPBIN=$ac_cv_path_GZIPBIN
7153 if test -n "$GZIPBIN"; then
7154   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7155 echo "${ECHO_T}$GZIPBIN" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 # Extract the first word of "pod2html", so it can be a program name with args.
7163 set dummy pod2html; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_POD2HTML+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $POD2HTML in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   ;;
7190 esac
7191 fi
7192 POD2HTML=$ac_cv_path_POD2HTML
7193 if test -n "$POD2HTML"; then
7194   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7195 echo "${ECHO_T}$POD2HTML" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202 # Extract the first word of "pod2man", so it can be a program name with args.
7203 set dummy pod2man; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_POD2MAN+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $POD2MAN in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 POD2MAN=$ac_cv_path_POD2MAN
7233 if test -n "$POD2MAN"; then
7234   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7235 echo "${ECHO_T}$POD2MAN" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242 # Extract the first word of "pdfroff", so it can be a program name with args.
7243 set dummy pdfroff; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_PDFROFF+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   case $PDFROFF in
7250   [\\/]* | ?:[\\/]*)
7251   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7252   ;;
7253   *)
7254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269   ;;
7270 esac
7271 fi
7272 PDFROFF=$ac_cv_path_PDFROFF
7273 if test -n "$PDFROFF"; then
7274   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7275 echo "${ECHO_T}$PDFROFF" >&6; }
7276 else
7277   { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7279 fi
7280
7281
7282 # Extract the first word of "runtest", so it can be a program name with args.
7283 set dummy runtest; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_RUNTEST+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   case $RUNTEST in
7290   [\\/]* | ?:[\\/]*)
7291   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7292   ;;
7293   *)
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309   ;;
7310 esac
7311 fi
7312 RUNTEST=$ac_cv_path_RUNTEST
7313 if test -n "$RUNTEST"; then
7314   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7315 echo "${ECHO_T}$RUNTEST" >&6; }
7316 else
7317   { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7319 fi
7320
7321
7322
7323 no_itcl=true
7324 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7325 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7326
7327 # Check whether --with-tclinclude was given.
7328 if test "${with_tclinclude+set}" = set; then
7329   withval=$with_tclinclude; with_tclinclude=${withval}
7330 else
7331   with_tclinclude=''
7332 fi
7333
7334 if test "${ac_cv_path_tclsh+set}" = set; then
7335   echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337
7338 if test x"${with_tclinclude}" != x ; then
7339   if test -f ${with_tclinclude}/tclsh ; then
7340     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7341   elif test -f ${with_tclinclude}/src/tclsh ; then
7342     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7343   else
7344     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7345 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7346    { (exit 1); exit 1; }; }
7347   fi
7348 fi
7349 fi
7350
7351
7352 if test x"${ac_cv_path_tclsh}" = x ; then
7353   { echo "$as_me:$LINENO: result: none" >&5
7354 echo "${ECHO_T}none" >&6; }
7355   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
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_TCLSH+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   case $TCLSH in
7365   [\\/]* | ?:[\\/]*)
7366   ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$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 TCLSH=$ac_cv_path_TCLSH
7388 if test -n "$TCLSH"; then
7389   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7390 echo "${ECHO_T}$TCLSH" >&6; }
7391 else
7392   { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7394 fi
7395
7396
7397   test -n "$TCLSH" && break
7398 done
7399
7400   if test x"${TCLSH}" = x ; then
7401     ac_cv_path_tclsh='';
7402   else
7403     ac_cv_path_tclsh="${TCLSH}";
7404   fi
7405 else
7406   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7407 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7408   TCLSH="${ac_cv_path_tclsh}"
7409
7410 fi
7411
7412 # Extract the first word of "zip", so it can be a program name with args.
7413 set dummy zip; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_ZIP+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   case $ZIP in
7420   [\\/]* | ?:[\\/]*)
7421   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7422   ;;
7423   *)
7424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427   IFS=$as_save_IFS
7428   test -z "$as_dir" && as_dir=.
7429   for ac_exec_ext in '' $ac_executable_extensions; do
7430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7433     break 2
7434   fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439   ;;
7440 esac
7441 fi
7442 ZIP=$ac_cv_path_ZIP
7443 if test -n "$ZIP"; then
7444   { echo "$as_me:$LINENO: result: $ZIP" >&5
7445 echo "${ECHO_T}$ZIP" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7450
7451
7452 for ac_prog in ocamlc
7453 do
7454   # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_OCAMLC+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   case $OCAMLC in
7462   [\\/]* | ?:[\\/]*)
7463   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7464   ;;
7465   *)
7466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481   ;;
7482 esac
7483 fi
7484 OCAMLC=$ac_cv_path_OCAMLC
7485 if test -n "$OCAMLC"; then
7486   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7487 echo "${ECHO_T}$OCAMLC" >&6; }
7488 else
7489   { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7491 fi
7492
7493
7494   test -n "$OCAMLC" && break
7495 done
7496
7497 for ac_prog in ocamlopt
7498 do
7499   # Extract the first word of "$ac_prog", so it can be a program name with args.
7500 set dummy $ac_prog; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   case $OCAMLOPT in
7507   [\\/]* | ?:[\\/]*)
7508   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7509   ;;
7510   *)
7511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526   ;;
7527 esac
7528 fi
7529 OCAMLOPT=$ac_cv_path_OCAMLOPT
7530 if test -n "$OCAMLOPT"; then
7531   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7532 echo "${ECHO_T}$OCAMLOPT" >&6; }
7533 else
7534   { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7536 fi
7537
7538
7539   test -n "$OCAMLOPT" && break
7540 done
7541
7542 for ac_prog in ocamldep
7543 do
7544   # Extract the first word of "$ac_prog", so it can be a program name with args.
7545 set dummy $ac_prog; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   case $OCAMLDEP in
7552   [\\/]* | ?:[\\/]*)
7553   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7554   ;;
7555   *)
7556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571   ;;
7572 esac
7573 fi
7574 OCAMLDEP=$ac_cv_path_OCAMLDEP
7575 if test -n "$OCAMLDEP"; then
7576   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7577 echo "${ECHO_T}$OCAMLDEP" >&6; }
7578 else
7579   { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7581 fi
7582
7583
7584   test -n "$OCAMLDEP" && break
7585 done
7586
7587 for ac_prog in ocamldoc
7588 do
7589   # Extract the first word of "$ac_prog", so it can be a program name with args.
7590 set dummy $ac_prog; ac_word=$2
7591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596   case $OCAMLDOC in
7597   [\\/]* | ?:[\\/]*)
7598   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7599   ;;
7600   *)
7601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606   for ac_exec_ext in '' $ac_executable_extensions; do
7607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7608     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616   ;;
7617 esac
7618 fi
7619 OCAMLDOC=$ac_cv_path_OCAMLDOC
7620 if test -n "$OCAMLDOC"; then
7621   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7622 echo "${ECHO_T}$OCAMLDOC" >&6; }
7623 else
7624   { echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6; }
7626 fi
7627
7628
7629   test -n "$OCAMLDOC" && break
7630 done
7631
7632 for ac_prog in gas as
7633 do
7634   # Extract the first word of "$ac_prog", so it can be a program name with args.
7635 set dummy $ac_prog; ac_word=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_path_GAS+set}" = set; then
7639   echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641   case $GAS in
7642   [\\/]* | ?:[\\/]*)
7643   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7644   ;;
7645   *)
7646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651   for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661   ;;
7662 esac
7663 fi
7664 GAS=$ac_cv_path_GAS
7665 if test -n "$GAS"; then
7666   { echo "$as_me:$LINENO: result: $GAS" >&5
7667 echo "${ECHO_T}$GAS" >&6; }
7668 else
7669   { echo "$as_me:$LINENO: result: no" >&5
7670 echo "${ECHO_T}no" >&6; }
7671 fi
7672
7673
7674   test -n "$GAS" && break
7675 done
7676
7677
7678 { echo "$as_me:$LINENO: checking for linker version" >&5
7679 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7680 if test "${llvm_cv_link_version+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683
7684    version_string="$(ld -v 2>&1 | head -1)"
7685
7686    # Check for ld64.
7687    if (echo "$version_string" | grep -q "ld64"); then
7688      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7689    else
7690      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7691    fi
7692
7693 fi
7694 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7695 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7696
7697 cat >>confdefs.h <<_ACEOF
7698 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7699 _ACEOF
7700
7701
7702
7703 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7704 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7705 if test "${llvm_cv_link_use_r+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708    ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714   oldcflags="$CFLAGS"
7715   CFLAGS="$CFLAGS -Wl,-R."
7716   cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h.  */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h.  */
7722
7723 int
7724 main ()
7725 {
7726
7727   ;
7728   return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7733 case "(($ac_try" in
7734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735   *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738   (eval "$ac_link") 2>conftest.er1
7739   ac_status=$?
7740   grep -v '^ *+' conftest.er1 >conftest.err
7741   rm -f conftest.er1
7742   cat conftest.err >&5
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); } &&
7745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7746   { (case "(($ac_try" in
7747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748   *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751   (eval "$ac_try") 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); }; } &&
7755          { ac_try='test -s conftest$ac_exeext'
7756   { (case "(($ac_try" in
7757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758   *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761   (eval "$ac_try") 2>&5
7762   ac_status=$?
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); }; }; then
7765   llvm_cv_link_use_r=yes
7766 else
7767   echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7769
7770         llvm_cv_link_use_r=no
7771 fi
7772
7773 rm -f core conftest.err conftest.$ac_objext \
7774       conftest$ac_exeext conftest.$ac_ext
7775   CFLAGS="$oldcflags"
7776   ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783 fi
7784 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7785 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7786 if test "$llvm_cv_link_use_r" = yes ; then
7787
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_LINK_R 1
7790 _ACEOF
7791
7792   fi
7793
7794
7795 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7796 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7797 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800    ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806   oldcflags="$CFLAGS"
7807   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7808   cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h.  */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h.  */
7814
7815 int
7816 main ()
7817 {
7818
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (ac_try="$ac_link"
7825 case "(($ac_try" in
7826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827   *) ac_try_echo=$ac_try;;
7828 esac
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830   (eval "$ac_link") 2>conftest.er1
7831   ac_status=$?
7832   grep -v '^ *+' conftest.er1 >conftest.err
7833   rm -f conftest.er1
7834   cat conftest.err >&5
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } &&
7837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7838   { (case "(($ac_try" in
7839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840   *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843   (eval "$ac_try") 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); }; } &&
7847          { ac_try='test -s conftest$ac_exeext'
7848   { (case "(($ac_try" in
7849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850   *) ac_try_echo=$ac_try;;
7851 esac
7852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853   (eval "$ac_try") 2>&5
7854   ac_status=$?
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); }; }; then
7857   llvm_cv_link_use_export_dynamic=yes
7858 else
7859   echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7861
7862         llvm_cv_link_use_export_dynamic=no
7863 fi
7864
7865 rm -f core conftest.err conftest.$ac_objext \
7866       conftest$ac_exeext conftest.$ac_ext
7867   CFLAGS="$oldcflags"
7868   ac_ext=c
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7873
7874
7875 fi
7876 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7877 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7878 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7879
7880 cat >>confdefs.h <<\_ACEOF
7881 #define HAVE_LINK_EXPORT_DYNAMIC 1
7882 _ACEOF
7883
7884   fi
7885
7886
7887 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7888 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7889 if test "${llvm_cv_link_use_version_script+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892    ac_ext=c
7893 ac_cpp='$CPP $CPPFLAGS'
7894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7897
7898   oldcflags="$CFLAGS"
7899
7900   # The following code is from the autoconf manual,
7901   # "11.13: Limitations of Usual Tools".
7902   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7903   # Use mktemp if possible; otherwise fall back on mkdir,
7904   # with $RANDOM to make collisions less likely.
7905   : ${TMPDIR=/tmp}
7906   {
7907     tmp=`
7908       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7909     ` &&
7910     test -n "$tmp" && test -d "$tmp"
7911   } || {
7912     tmp=$TMPDIR/foo$$-$RANDOM
7913     (umask 077 && mkdir "$tmp")
7914   } || exit $?
7915
7916   echo "{" > "$tmp/export.map"
7917   echo "  global: main;" >> "$tmp/export.map"
7918   echo "  local: *;" >> "$tmp/export.map"
7919   echo "};" >> "$tmp/export.map"
7920
7921   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7922   cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h.  */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h.  */
7928
7929 int
7930 main ()
7931 {
7932
7933   ;
7934   return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (ac_try="$ac_link"
7939 case "(($ac_try" in
7940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941   *) ac_try_echo=$ac_try;;
7942 esac
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944   (eval "$ac_link") 2>conftest.er1
7945   ac_status=$?
7946   grep -v '^ *+' conftest.er1 >conftest.err
7947   rm -f conftest.er1
7948   cat conftest.err >&5
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); } &&
7951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7952   { (case "(($ac_try" in
7953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954   *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957   (eval "$ac_try") 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); }; } &&
7961          { ac_try='test -s conftest$ac_exeext'
7962   { (case "(($ac_try" in
7963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964   *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967   (eval "$ac_try") 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); }; }; then
7971   llvm_cv_link_use_version_script=yes
7972 else
7973   echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7975
7976         llvm_cv_link_use_version_script=no
7977 fi
7978
7979 rm -f core conftest.err conftest.$ac_objext \
7980       conftest$ac_exeext conftest.$ac_ext
7981   rm "$tmp/export.map"
7982   rmdir "$tmp"
7983   CFLAGS="$oldcflags"
7984   ac_ext=c
7985 ac_cpp='$CPP $CPPFLAGS'
7986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989
7990
7991 fi
7992 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7993 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7994 if test "$llvm_cv_link_use_version_script" = yes ; then
7995   HAVE_LINK_VERSION_SCRIPT=1
7996
7997   fi
7998
7999
8000
8001
8002 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8003 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8004 if test "${ac_cv_c_const+set}" = set; then
8005   echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007   cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h.  */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h.  */
8013
8014 int
8015 main ()
8016 {
8017 /* FIXME: Include the comments suggested by Paul. */
8018 #ifndef __cplusplus
8019   /* Ultrix mips cc rejects this.  */
8020   typedef int charset[2];
8021   const charset x;
8022   /* SunOS 4.1.1 cc rejects this.  */
8023   char const *const *ccp;
8024   char **p;
8025   /* NEC SVR4.0.2 mips cc rejects this.  */
8026   struct point {int x, y;};
8027   static struct point const zero = {0,0};
8028   /* AIX XL C 1.02.0.0 rejects this.
8029      It does not let you subtract one const X* pointer from another in
8030      an arm of an if-expression whose if-part is not a constant
8031      expression */
8032   const char *g = "string";
8033   ccp = &g + (g ? g-g : 0);
8034   /* HPUX 7.0 cc rejects these. */
8035   ++ccp;
8036   p = (char**) ccp;
8037   ccp = (char const *const *) p;
8038   { /* SCO 3.2v4 cc rejects this.  */
8039     char *t;
8040     char const *s = 0 ? (char *) 0 : (char const *) 0;
8041
8042     *t++ = 0;
8043     if (s) return 0;
8044   }
8045   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8046     int x[] = {25, 17};
8047     const int *foo = &x[0];
8048     ++foo;
8049   }
8050   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8051     typedef const int *iptr;
8052     iptr p = 0;
8053     ++p;
8054   }
8055   { /* AIX XL C 1.02.0.0 rejects this saying
8056        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8057     struct s { int j; const int *ap[3]; };
8058     struct s *b; b->j = 5;
8059   }
8060   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8061     const int foo = 10;
8062     if (!foo) return 0;
8063   }
8064   return !x[0] && !zero.x;
8065 #endif
8066
8067   ;
8068   return 0;
8069 }
8070 _ACEOF
8071 rm -f conftest.$ac_objext
8072 if { (ac_try="$ac_compile"
8073 case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_compile") 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } &&
8085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086   { (case "(($ac_try" in
8087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088   *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091   (eval "$ac_try") 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); }; } &&
8095          { ac_try='test -s conftest.$ac_objext'
8096   { (case "(($ac_try" in
8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098   *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101   (eval "$ac_try") 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; }; then
8105   ac_cv_c_const=yes
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110         ac_cv_c_const=no
8111 fi
8112
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 fi
8115 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8116 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8117 if test $ac_cv_c_const = no; then
8118
8119 cat >>confdefs.h <<\_ACEOF
8120 #define const
8121 _ACEOF
8122
8123 fi
8124
8125
8126
8127
8128
8129
8130 ac_header_dirent=no
8131 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8132   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8133 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8134 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144 #include <sys/types.h>
8145 #include <$ac_hdr>
8146
8147 int
8148 main ()
8149 {
8150 if ((DIR *) 0)
8151 return 0;
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8158 case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_compile") 2>conftest.er1
8164   ac_status=$?
8165   grep -v '^ *+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } &&
8170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171   { (case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176   (eval "$ac_try") 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); }; } &&
8180          { ac_try='test -s conftest.$ac_objext'
8181   { (case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_try") 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   eval "$as_ac_Header=yes"
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195         eval "$as_ac_Header=no"
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 ac_res=`eval echo '${'$as_ac_Header'}'`
8201                { echo "$as_me:$LINENO: result: $ac_res" >&5
8202 echo "${ECHO_T}$ac_res" >&6; }
8203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204   cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8206 _ACEOF
8207
8208 ac_header_dirent=$ac_hdr; break
8209 fi
8210
8211 done
8212 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8213 if test $ac_header_dirent = dirent.h; then
8214   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8215 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8216 if test "${ac_cv_search_opendir+set}" = set; then
8217   echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219   ac_func_search_save_LIBS=$LIBS
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226
8227 /* Override any GCC internal prototype to avoid an error.
8228    Use char because int might match the return type of a GCC
8229    builtin and then its argument prototype would still apply.  */
8230 #ifdef __cplusplus
8231 extern "C"
8232 #endif
8233 char opendir ();
8234 int
8235 main ()
8236 {
8237 return opendir ();
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 for ac_lib in '' dir; do
8243   if test -z "$ac_lib"; then
8244     ac_res="none required"
8245   else
8246     ac_res=-l$ac_lib
8247     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8248   fi
8249   rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8251 case "(($ac_try" in
8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253   *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256   (eval "$ac_link") 2>conftest.er1
8257   ac_status=$?
8258   grep -v '^ *+' conftest.er1 >conftest.err
8259   rm -f conftest.er1
8260   cat conftest.err >&5
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } &&
8263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264   { (case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_try") 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); }; } &&
8273          { ac_try='test -s conftest$ac_exeext'
8274   { (case "(($ac_try" in
8275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276   *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279   (eval "$ac_try") 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); }; }; then
8283   ac_cv_search_opendir=$ac_res
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288
8289 fi
8290
8291 rm -f core conftest.err conftest.$ac_objext \
8292       conftest$ac_exeext
8293   if test "${ac_cv_search_opendir+set}" = set; then
8294   break
8295 fi
8296 done
8297 if test "${ac_cv_search_opendir+set}" = set; then
8298   :
8299 else
8300   ac_cv_search_opendir=no
8301 fi
8302 rm conftest.$ac_ext
8303 LIBS=$ac_func_search_save_LIBS
8304 fi
8305 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8306 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8307 ac_res=$ac_cv_search_opendir
8308 if test "$ac_res" != no; then
8309   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8310
8311 fi
8312
8313 else
8314   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316 if test "${ac_cv_search_opendir+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319   ac_func_search_save_LIBS=$LIBS
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326
8327 /* Override any GCC internal prototype to avoid an error.
8328    Use char because int might match the return type of a GCC
8329    builtin and then its argument prototype would still apply.  */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 char opendir ();
8334 int
8335 main ()
8336 {
8337 return opendir ();
8338   ;
8339   return 0;
8340 }
8341 _ACEOF
8342 for ac_lib in '' x; do
8343   if test -z "$ac_lib"; then
8344     ac_res="none required"
8345   else
8346     ac_res=-l$ac_lib
8347     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8348   fi
8349   rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8351 case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_link") 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364   { (case "(($ac_try" in
8365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366   *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369   (eval "$ac_try") 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); }; } &&
8373          { ac_try='test -s conftest$ac_exeext'
8374   { (case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379   (eval "$ac_try") 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; }; then
8383   ac_cv_search_opendir=$ac_res
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388
8389 fi
8390
8391 rm -f core conftest.err conftest.$ac_objext \
8392       conftest$ac_exeext
8393   if test "${ac_cv_search_opendir+set}" = set; then
8394   break
8395 fi
8396 done
8397 if test "${ac_cv_search_opendir+set}" = set; then
8398   :
8399 else
8400   ac_cv_search_opendir=no
8401 fi
8402 rm conftest.$ac_ext
8403 LIBS=$ac_func_search_save_LIBS
8404 fi
8405 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8407 ac_res=$ac_cv_search_opendir
8408 if test "$ac_res" != no; then
8409   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8410
8411 fi
8412
8413 fi
8414
8415
8416 for ac_header in dlfcn.h
8417 do
8418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8420   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 fi
8425 ac_res=`eval echo '${'$as_ac_Header'}'`
8426                { echo "$as_me:$LINENO: result: $ac_res" >&5
8427 echo "${ECHO_T}$ac_res" >&6; }
8428 else
8429   # Is the header compilable?
8430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h.  */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h.  */
8438 $ac_includes_default
8439 #include <$ac_header>
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8443 case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_compile") 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } &&
8455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456   { (case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_try") 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; } &&
8465          { ac_try='test -s conftest.$ac_objext'
8466   { (case "(($ac_try" in
8467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468   *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471   (eval "$ac_try") 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   ac_header_compiler=yes
8476 else
8477   echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480         ac_header_compiler=no
8481 fi
8482
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8485 echo "${ECHO_T}$ac_header_compiler" >&6; }
8486
8487 # Is the header present?
8488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h.  */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h.  */
8496 #include <$ac_header>
8497 _ACEOF
8498 if { (ac_try="$ac_cpp conftest.$ac_ext"
8499 case "(($ac_try" in
8500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501   *) ac_try_echo=$ac_try;;
8502 esac
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8505   ac_status=$?
8506   grep -v '^ *+' conftest.er1 >conftest.err
8507   rm -f conftest.er1
8508   cat conftest.err >&5
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } >/dev/null; then
8511   if test -s conftest.err; then
8512     ac_cpp_err=$ac_c_preproc_warn_flag
8513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8514   else
8515     ac_cpp_err=
8516   fi
8517 else
8518   ac_cpp_err=yes
8519 fi
8520 if test -z "$ac_cpp_err"; then
8521   ac_header_preproc=yes
8522 else
8523   echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526   ac_header_preproc=no
8527 fi
8528
8529 rm -f conftest.err conftest.$ac_ext
8530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8531 echo "${ECHO_T}$ac_header_preproc" >&6; }
8532
8533 # So?  What about this header?
8534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8535   yes:no: )
8536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8540     ac_header_preproc=yes
8541     ;;
8542   no:yes:* )
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8545     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8546 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8547     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8549     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8550 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8553     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8555     ( cat <<\_ASBOX
8556 ## ------------------------------ ##
8557 ## Report this to bugs@yourdomain ##
8558 ## ------------------------------ ##
8559 _ASBOX
8560      ) | sed "s/^/$as_me: WARNING:     /" >&2
8561     ;;
8562 esac
8563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568   eval "$as_ac_Header=\$ac_header_preproc"
8569 fi
8570 ac_res=`eval echo '${'$as_ac_Header'}'`
8571                { echo "$as_me:$LINENO: result: $ac_res" >&5
8572 echo "${ECHO_T}$ac_res" >&6; }
8573
8574 fi
8575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576   cat >>confdefs.h <<_ACEOF
8577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578 _ACEOF
8579
8580 fi
8581
8582 done
8583
8584 # Check whether --enable-ltdl-install was given.
8585 if test "${enable_ltdl_install+set}" = set; then
8586   enableval=$enable_ltdl_install;
8587 fi
8588
8589
8590
8591
8592 if test x"${enable_ltdl_install-no}" != xno; then
8593   INSTALL_LTDL_TRUE=
8594   INSTALL_LTDL_FALSE='#'
8595 else
8596   INSTALL_LTDL_TRUE='#'
8597   INSTALL_LTDL_FALSE=
8598 fi
8599
8600
8601
8602 if test x"${enable_ltdl_convenience-no}" != xno; then
8603   CONVENIENCE_LTDL_TRUE=
8604   CONVENIENCE_LTDL_FALSE='#'
8605 else
8606   CONVENIENCE_LTDL_TRUE='#'
8607   CONVENIENCE_LTDL_FALSE=
8608 fi
8609
8610
8611 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8613 library_names_spec=
8614 libname_spec='lib$name'
8615 soname_spec=
8616 shrext_cmds=".so"
8617 postinstall_cmds=
8618 postuninstall_cmds=
8619 finish_cmds=
8620 finish_eval=
8621 shlibpath_var=
8622 shlibpath_overrides_runpath=unknown
8623 version_type=none
8624 dynamic_linker="$host_os ld.so"
8625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626 if test "$GCC" = yes; then
8627   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629     # if the path contains ";" then we assume it to be the separator
8630     # otherwise default to the standard path separator (i.e. ":") - it is
8631     # assumed that no part of a normal pathname contains ";" but that should
8632     # okay in the real world where ";" in dirpaths is itself problematic.
8633     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634   else
8635     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8636   fi
8637 else
8638   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8639 fi
8640 need_lib_prefix=unknown
8641 hardcode_into_libs=no
8642
8643 # when you set need_version to no, make sure it does not cause -set_version
8644 # flags to be left without arguments
8645 need_version=unknown
8646
8647 case $host_os in
8648 aix3*)
8649   version_type=linux
8650   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651   shlibpath_var=LIBPATH
8652
8653   # AIX 3 has no versioning support, so we append a major version to the name.
8654   soname_spec='${libname}${release}${shared_ext}$major'
8655   ;;
8656
8657 aix4* | aix5*)
8658   version_type=linux
8659   need_lib_prefix=no
8660   need_version=no
8661   hardcode_into_libs=yes
8662   if test "$host_cpu" = ia64; then
8663     # AIX 5 supports IA64
8664     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665     shlibpath_var=LD_LIBRARY_PATH
8666   else
8667     # With GCC up to 2.95.x, collect2 would create an import file
8668     # for dependence libraries.  The import file would start with
8669     # the line `#! .'.  This would cause the generated library to
8670     # depend on `.', always an invalid library.  This was fixed in
8671     # development snapshots of GCC prior to 3.0.
8672     case $host_os in
8673       aix4 | aix4.[01] | aix4.[01].*)
8674       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675            echo ' yes '
8676            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8677         :
8678       else
8679         can_build_shared=no
8680       fi
8681       ;;
8682     esac
8683     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684     # soname into executable. Probably we can add versioning support to
8685     # collect2, so additional links can be useful in future.
8686     if test "$aix_use_runtimelinking" = yes; then
8687       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688       # instead of lib<name>.a to let people know that these are not
8689       # typical AIX shared libraries.
8690       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691     else
8692       # We preserve .a as extension for shared libraries through AIX4.2
8693       # and later when we are not doing run time linking.
8694       library_names_spec='${libname}${release}.a $libname.a'
8695       soname_spec='${libname}${release}${shared_ext}$major'
8696     fi
8697     shlibpath_var=LIBPATH
8698   fi
8699   ;;
8700
8701 amigaos*)
8702   library_names_spec='$libname.ixlibrary $libname.a'
8703   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704   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'
8705   ;;
8706
8707 beos*)
8708   library_names_spec='${libname}${shared_ext}'
8709   dynamic_linker="$host_os ld.so"
8710   shlibpath_var=LIBRARY_PATH
8711   ;;
8712
8713 bsdi[45]*)
8714   version_type=linux
8715   need_version=no
8716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717   soname_spec='${libname}${release}${shared_ext}$major'
8718   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719   shlibpath_var=LD_LIBRARY_PATH
8720   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722   # the default ld.so.conf also contains /usr/contrib/lib and
8723   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724   # libtool to hard-code these into programs
8725   ;;
8726
8727 cygwin* | mingw* | pw32*)
8728   version_type=windows
8729   shrext_cmds=".dll"
8730   need_version=no
8731   need_lib_prefix=no
8732
8733   case $GCC,$host_os in
8734   yes,cygwin* | yes,mingw* | yes,pw32*)
8735     library_names_spec='$libname.dll.a'
8736     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737     postinstall_cmds='base_file=`basename \${file}`~
8738       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739       dldir=$destdir/`dirname \$dlpath`~
8740       test -d \$dldir || mkdir -p \$dldir~
8741       $install_prog $dir/$dlname \$dldir/$dlname~
8742       chmod a+x \$dldir/$dlname'
8743     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744       dlpath=$dir/\$dldll~
8745        $rm \$dlpath'
8746     shlibpath_overrides_runpath=yes
8747
8748     case $host_os in
8749     cygwin*)
8750       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8753       ;;
8754     mingw*)
8755       # MinGW DLLs use traditional 'lib' prefix
8756       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759         # It is most probably a Windows format PATH printed by
8760         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761         # path with ; separators, and with drive letters. We can handle the
8762         # drive letters (cygwin fileutils understands them), so leave them,
8763         # especially as we might pass files found there to a mingw objdump,
8764         # which wouldn't understand a cygwinified path. Ahh.
8765         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766       else
8767         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8768       fi
8769       ;;
8770     pw32*)
8771       # pw32 DLLs use 'pw' prefix rather than 'lib'
8772       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773       ;;
8774     esac
8775     ;;
8776
8777   *)
8778     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8779     ;;
8780   esac
8781   dynamic_linker='Win32 ld.exe'
8782   # FIXME: first we should search . and the directory the executable is in
8783   shlibpath_var=PATH
8784   ;;
8785
8786 darwin* | rhapsody*)
8787   dynamic_linker="$host_os dyld"
8788   version_type=darwin
8789   need_lib_prefix=no
8790   need_version=no
8791   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792   soname_spec='${libname}${release}${major}$shared_ext'
8793   shlibpath_overrides_runpath=yes
8794   shlibpath_var=DYLD_LIBRARY_PATH
8795   shrext_cmds='.dylib'
8796   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797   if test "$GCC" = yes; then
8798     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"`
8799   else
8800     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8801   fi
8802   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8803   ;;
8804
8805 dgux*)
8806   version_type=linux
8807   need_lib_prefix=no
8808   need_version=no
8809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810   soname_spec='${libname}${release}${shared_ext}$major'
8811   shlibpath_var=LD_LIBRARY_PATH
8812   ;;
8813
8814 freebsd1.*)
8815   dynamic_linker=no
8816   ;;
8817
8818 kfreebsd*-gnu)
8819   version_type=linux
8820   need_lib_prefix=no
8821   need_version=no
8822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8823   soname_spec='${libname}${release}${shared_ext}$major'
8824   shlibpath_var=LD_LIBRARY_PATH
8825   shlibpath_overrides_runpath=no
8826   hardcode_into_libs=yes
8827   dynamic_linker='GNU ld.so'
8828   ;;
8829
8830 freebsd* | dragonfly*)
8831   # DragonFly does not have aout.  When/if they implement a new
8832   # versioning mechanism, adjust this.
8833   if test -x /usr/bin/objformat; then
8834     objformat=`/usr/bin/objformat`
8835   else
8836     case $host_os in
8837     freebsd[123].*) objformat=aout ;;
8838     *) objformat=elf ;;
8839     esac
8840   fi
8841   version_type=freebsd-$objformat
8842   case $version_type in
8843     freebsd-elf*)
8844       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8845       need_version=no
8846       need_lib_prefix=no
8847       ;;
8848     freebsd-*)
8849       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8850       need_version=yes
8851       ;;
8852   esac
8853   shlibpath_var=LD_LIBRARY_PATH
8854   case $host_os in
8855   freebsd2.*)
8856     shlibpath_overrides_runpath=yes
8857     ;;
8858   freebsd3.[01]* | freebsdelf3.[01]*)
8859     shlibpath_overrides_runpath=yes
8860     hardcode_into_libs=yes
8861     ;;
8862   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8863   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8864     shlibpath_overrides_runpath=no
8865     hardcode_into_libs=yes
8866     ;;
8867   freebsd*) # from 4.6 on
8868     shlibpath_overrides_runpath=yes
8869     hardcode_into_libs=yes
8870     ;;
8871   esac
8872   ;;
8873
8874 gnu*)
8875   version_type=linux
8876   need_lib_prefix=no
8877   need_version=no
8878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8879   soname_spec='${libname}${release}${shared_ext}$major'
8880   shlibpath_var=LD_LIBRARY_PATH
8881   hardcode_into_libs=yes
8882   ;;
8883
8884 hpux9* | hpux10* | hpux11*)
8885   # Give a soname corresponding to the major version so that dld.sl refuses to
8886   # link against other versions.
8887   version_type=sunos
8888   need_lib_prefix=no
8889   need_version=no
8890   case $host_cpu in
8891   ia64*)
8892     shrext_cmds='.so'
8893     hardcode_into_libs=yes
8894     dynamic_linker="$host_os dld.so"
8895     shlibpath_var=LD_LIBRARY_PATH
8896     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898     soname_spec='${libname}${release}${shared_ext}$major'
8899     if test "X$HPUX_IA64_MODE" = X32; then
8900       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8901     else
8902       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8903     fi
8904     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8905     ;;
8906    hppa*64*)
8907      shrext_cmds='.sl'
8908      hardcode_into_libs=yes
8909      dynamic_linker="$host_os dld.sl"
8910      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8911      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8912      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913      soname_spec='${libname}${release}${shared_ext}$major'
8914      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8915      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8916      ;;
8917    *)
8918     shrext_cmds='.sl'
8919     dynamic_linker="$host_os dld.sl"
8920     shlibpath_var=SHLIB_PATH
8921     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923     soname_spec='${libname}${release}${shared_ext}$major'
8924     ;;
8925   esac
8926   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8927   postinstall_cmds='chmod 555 $lib'
8928   ;;
8929
8930 interix3*)
8931   version_type=linux
8932   need_lib_prefix=no
8933   need_version=no
8934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8935   soname_spec='${libname}${release}${shared_ext}$major'
8936   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8937   shlibpath_var=LD_LIBRARY_PATH
8938   shlibpath_overrides_runpath=no
8939   hardcode_into_libs=yes
8940   ;;
8941
8942 irix5* | irix6* | nonstopux*)
8943   case $host_os in
8944     nonstopux*) version_type=nonstopux ;;
8945     *)
8946         if test "$lt_cv_prog_gnu_ld" = yes; then
8947                 version_type=linux
8948         else
8949                 version_type=irix
8950         fi ;;
8951   esac
8952   need_lib_prefix=no
8953   need_version=no
8954   soname_spec='${libname}${release}${shared_ext}$major'
8955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8956   case $host_os in
8957   irix5* | nonstopux*)
8958     libsuff= shlibsuff=
8959     ;;
8960   *)
8961     case $LD in # libtool.m4 will add one of these switches to LD
8962     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8963       libsuff= shlibsuff= libmagic=32-bit;;
8964     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8965       libsuff=32 shlibsuff=N32 libmagic=N32;;
8966     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8967       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8968     *) libsuff= shlibsuff= libmagic=never-match;;
8969     esac
8970     ;;
8971   esac
8972   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8973   shlibpath_overrides_runpath=no
8974   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8975   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8976   hardcode_into_libs=yes
8977   ;;
8978
8979 # No shared lib support for Linux oldld, aout, or coff.
8980 linux*oldld* | linux*aout* | linux*coff*)
8981   dynamic_linker=no
8982   ;;
8983
8984 # This must be Linux ELF.
8985 linux*)
8986   version_type=linux
8987   need_lib_prefix=no
8988   need_version=no
8989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990   soname_spec='${libname}${release}${shared_ext}$major'
8991   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8992   shlibpath_var=LD_LIBRARY_PATH
8993   shlibpath_overrides_runpath=no
8994   # This implies no fast_install, which is unacceptable.
8995   # Some rework will be needed to allow for fast_install
8996   # before this can be enabled.
8997   hardcode_into_libs=yes
8998
8999   # Append ld.so.conf contents to the search path
9000   if test -f /etc/ld.so.conf; then
9001     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' ' '`
9002     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9003   fi
9004
9005   # We used to test for /lib/ld.so.1 and disable shared libraries on
9006   # powerpc, because MkLinux only supported shared libraries with the
9007   # GNU dynamic linker.  Since this was broken with cross compilers,
9008   # most powerpc-linux boxes support dynamic linking these days and
9009   # people can always --disable-shared, the test was removed, and we
9010   # assume the GNU/Linux dynamic linker is in use.
9011   dynamic_linker='GNU/Linux ld.so'
9012   ;;
9013
9014 knetbsd*-gnu)
9015   version_type=linux
9016   need_lib_prefix=no
9017   need_version=no
9018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019   soname_spec='${libname}${release}${shared_ext}$major'
9020   shlibpath_var=LD_LIBRARY_PATH
9021   shlibpath_overrides_runpath=no
9022   hardcode_into_libs=yes
9023   dynamic_linker='GNU ld.so'
9024   ;;
9025
9026 netbsd*)
9027   version_type=sunos
9028   need_lib_prefix=no
9029   need_version=no
9030   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033     dynamic_linker='NetBSD (a.out) ld.so'
9034   else
9035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036     soname_spec='${libname}${release}${shared_ext}$major'
9037     dynamic_linker='NetBSD ld.elf_so'
9038   fi
9039   shlibpath_var=LD_LIBRARY_PATH
9040   shlibpath_overrides_runpath=yes
9041   hardcode_into_libs=yes
9042   ;;
9043
9044 newsos6)
9045   version_type=linux
9046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047   shlibpath_var=LD_LIBRARY_PATH
9048   shlibpath_overrides_runpath=yes
9049   ;;
9050
9051 nto-qnx*)
9052   version_type=linux
9053   need_lib_prefix=no
9054   need_version=no
9055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056   soname_spec='${libname}${release}${shared_ext}$major'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   shlibpath_overrides_runpath=yes
9059   ;;
9060
9061 openbsd*)
9062   version_type=sunos
9063   sys_lib_dlsearch_path_spec="/usr/lib"
9064   need_lib_prefix=no
9065   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9066   case $host_os in
9067     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9068     *)                         need_version=no  ;;
9069   esac
9070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072   shlibpath_var=LD_LIBRARY_PATH
9073   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074     case $host_os in
9075       openbsd2.[89] | openbsd2.[89].*)
9076         shlibpath_overrides_runpath=no
9077         ;;
9078       *)
9079         shlibpath_overrides_runpath=yes
9080         ;;
9081       esac
9082   else
9083     shlibpath_overrides_runpath=yes
9084   fi
9085   ;;
9086
9087 os2*)
9088   libname_spec='$name'
9089   shrext_cmds=".dll"
9090   need_lib_prefix=no
9091   library_names_spec='$libname${shared_ext} $libname.a'
9092   dynamic_linker='OS/2 ld.exe'
9093   shlibpath_var=LIBPATH
9094   ;;
9095
9096 osf3* | osf4* | osf5*)
9097   version_type=osf
9098   need_lib_prefix=no
9099   need_version=no
9100   soname_spec='${libname}${release}${shared_ext}$major'
9101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102   shlibpath_var=LD_LIBRARY_PATH
9103   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9104   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9105   ;;
9106
9107 solaris*)
9108   version_type=linux
9109   need_lib_prefix=no
9110   need_version=no
9111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112   soname_spec='${libname}${release}${shared_ext}$major'
9113   shlibpath_var=LD_LIBRARY_PATH
9114   shlibpath_overrides_runpath=yes
9115   hardcode_into_libs=yes
9116   # ldd complains unless libraries are executable
9117   postinstall_cmds='chmod +x $lib'
9118   ;;
9119
9120 sunos4*)
9121   version_type=sunos
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9124   shlibpath_var=LD_LIBRARY_PATH
9125   shlibpath_overrides_runpath=yes
9126   if test "$with_gnu_ld" = yes; then
9127     need_lib_prefix=no
9128   fi
9129   need_version=yes
9130   ;;
9131
9132 sysv4 | sysv4.3*)
9133   version_type=linux
9134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135   soname_spec='${libname}${release}${shared_ext}$major'
9136   shlibpath_var=LD_LIBRARY_PATH
9137   case $host_vendor in
9138     sni)
9139       shlibpath_overrides_runpath=no
9140       need_lib_prefix=no
9141       export_dynamic_flag_spec='${wl}-Blargedynsym'
9142       runpath_var=LD_RUN_PATH
9143       ;;
9144     siemens)
9145       need_lib_prefix=no
9146       ;;
9147     motorola)
9148       need_lib_prefix=no
9149       need_version=no
9150       shlibpath_overrides_runpath=no
9151       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9152       ;;
9153   esac
9154   ;;
9155
9156 sysv4*MP*)
9157   if test -d /usr/nec ;then
9158     version_type=linux
9159     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9160     soname_spec='$libname${shared_ext}.$major'
9161     shlibpath_var=LD_LIBRARY_PATH
9162   fi
9163   ;;
9164
9165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9166   version_type=freebsd-elf
9167   need_lib_prefix=no
9168   need_version=no
9169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9170   soname_spec='${libname}${release}${shared_ext}$major'
9171   shlibpath_var=LD_LIBRARY_PATH
9172   hardcode_into_libs=yes
9173   if test "$with_gnu_ld" = yes; then
9174     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9175     shlibpath_overrides_runpath=no
9176   else
9177     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9178     shlibpath_overrides_runpath=yes
9179     case $host_os in
9180       sco3.2v5*)
9181         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9182         ;;
9183     esac
9184   fi
9185   sys_lib_dlsearch_path_spec='/usr/lib'
9186   ;;
9187
9188 uts4*)
9189   version_type=linux
9190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191   soname_spec='${libname}${release}${shared_ext}$major'
9192   shlibpath_var=LD_LIBRARY_PATH
9193   ;;
9194
9195 *)
9196   dynamic_linker=no
9197   ;;
9198 esac
9199 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9200 echo "${ECHO_T}$dynamic_linker" >&6; }
9201 test "$dynamic_linker" = no && can_build_shared=no
9202
9203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9204 if test "$GCC" = yes; then
9205   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9206 fi
9207
9208
9209 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9210 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9211 if test "${libltdl_cv_shlibext+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214
9215 module=yes
9216 eval libltdl_cv_shlibext=$shrext_cmds
9217
9218 fi
9219 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9220 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9221 if test -n "$libltdl_cv_shlibext"; then
9222
9223 cat >>confdefs.h <<_ACEOF
9224 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9225 _ACEOF
9226
9227 fi
9228
9229
9230 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9231 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9232 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235   libltdl_cv_shlibpath_var="$shlibpath_var"
9236 fi
9237 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9238 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9239 if test -n "$libltdl_cv_shlibpath_var"; then
9240
9241 cat >>confdefs.h <<_ACEOF
9242 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9243 _ACEOF
9244
9245 fi
9246
9247
9248 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9249 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9250 if test "${libltdl_cv_sys_search_path+set}" = set; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9254 fi
9255 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9256 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9257 if test -n "$libltdl_cv_sys_search_path"; then
9258   sys_search_path=
9259   for dir in $libltdl_cv_sys_search_path; do
9260     if test -z "$sys_search_path"; then
9261       sys_search_path="$dir"
9262     else
9263       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9264     fi
9265   done
9266
9267 cat >>confdefs.h <<_ACEOF
9268 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9269 _ACEOF
9270
9271 fi
9272
9273 { echo "$as_me:$LINENO: checking for objdir" >&5
9274 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9275 if test "${libltdl_cv_objdir+set}" = set; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   libltdl_cv_objdir="$objdir"
9279   if test -n "$objdir"; then
9280     :
9281   else
9282     rm -f .libs 2>/dev/null
9283     mkdir .libs 2>/dev/null
9284     if test -d .libs; then
9285       libltdl_cv_objdir=.libs
9286     else
9287       # MS-DOS does not allow filenames that begin with a dot.
9288       libltdl_cv_objdir=_libs
9289     fi
9290   rmdir .libs 2>/dev/null
9291   fi
9292
9293 fi
9294 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9295 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9296
9297 cat >>confdefs.h <<_ACEOF
9298 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9299 _ACEOF
9300
9301
9302
9303
9304
9305
9306 # Check for command to grab the raw symbol name followed by C symbol from nm.
9307 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9308 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9309 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312
9313 # These are sane defaults that work on at least a few old systems.
9314 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9315
9316 # Character class describing NM global symbol codes.
9317 symcode='[BCDEGRST]'
9318
9319 # Regexp to match symbols that can be accessed directly from C.
9320 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9321
9322 # Transform an extracted symbol line into a proper C declaration
9323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9324
9325 # Transform an extracted symbol line into symbol name and symbol address
9326 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'"
9327
9328 # Define system-specific variables.
9329 case $host_os in
9330 aix*)
9331   symcode='[BCDT]'
9332   ;;
9333 cygwin* | mingw* | pw32*)
9334   symcode='[ABCDGISTW]'
9335   ;;
9336 hpux*) # Its linker distinguishes data from code symbols
9337   if test "$host_cpu" = ia64; then
9338     symcode='[ABCDEGRST]'
9339   fi
9340   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9341   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'"
9342   ;;
9343 linux*)
9344   if test "$host_cpu" = ia64; then
9345     symcode='[ABCDGIRSTW]'
9346     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9347     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'"
9348   fi
9349   ;;
9350 irix* | nonstopux*)
9351   symcode='[BCDEGRST]'
9352   ;;
9353 osf*)
9354   symcode='[BCDEGQRST]'
9355   ;;
9356 solaris*)
9357   symcode='[BDRT]'
9358   ;;
9359 sco3.2v5*)
9360   symcode='[DT]'
9361   ;;
9362 sysv4.2uw2*)
9363   symcode='[DT]'
9364   ;;
9365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9366   symcode='[ABDT]'
9367   ;;
9368 sysv4)
9369   symcode='[DFNSTU]'
9370   ;;
9371 esac
9372
9373 # Handle CRLF in mingw tool chain
9374 opt_cr=
9375 case $build_os in
9376 mingw*)
9377   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9378   ;;
9379 esac
9380
9381 # If we're using GNU nm, then use its standard symbol codes.
9382 case `$NM -V 2>&1` in
9383 *GNU* | *'with BFD'*)
9384   symcode='[ABCDGIRSTW]' ;;
9385 esac
9386
9387 # Try without a prefix undercore, then with it.
9388 for ac_symprfx in "" "_"; do
9389
9390   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9391   symxfrm="\\1 $ac_symprfx\\2 \\2"
9392
9393   # Write the raw and C identifiers.
9394   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9395
9396   # Check to see that the pipe works correctly.
9397   pipe_works=no
9398
9399   rm -f conftest*
9400   cat > conftest.$ac_ext <<EOF
9401 #ifdef __cplusplus
9402 extern "C" {
9403 #endif
9404 char nm_test_var;
9405 void nm_test_func(){}
9406 #ifdef __cplusplus
9407 }
9408 #endif
9409 int main(){nm_test_var='a';nm_test_func();return(0);}
9410 EOF
9411
9412   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413   (eval $ac_compile) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; then
9417     # Now try to grab the symbols.
9418     nlist=conftest.nm
9419     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9420   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9421   ac_status=$?
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); } && test -s "$nlist"; then
9424       # Try sorting and uniquifying the output.
9425       if sort "$nlist" | uniq > "$nlist"T; then
9426         mv -f "$nlist"T "$nlist"
9427       else
9428         rm -f "$nlist"T
9429       fi
9430
9431       # Make sure that we snagged all the symbols we need.
9432       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9433         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9434           cat <<EOF > conftest.$ac_ext
9435 #ifdef __cplusplus
9436 extern "C" {
9437 #endif
9438
9439 EOF
9440           # Now generate the symbol file.
9441           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9442
9443           cat <<EOF >> conftest.$ac_ext
9444 #if defined (__STDC__) && __STDC__
9445 # define lt_ptr_t void *
9446 #else
9447 # define lt_ptr_t char *
9448 # define const
9449 #endif
9450
9451 /* The mapping between symbol names and symbols. */
9452 const struct {
9453   const char *name;
9454   lt_ptr_t address;
9455 }
9456 lt_preloaded_symbols[] =
9457 {
9458 EOF
9459           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9460           cat <<\EOF >> conftest.$ac_ext
9461   {0, (lt_ptr_t) 0}
9462 };
9463
9464 #ifdef __cplusplus
9465 }
9466 #endif
9467 EOF
9468           # Now try linking the two files.
9469           mv conftest.$ac_objext conftstm.$ac_objext
9470           lt_save_LIBS="$LIBS"
9471           lt_save_CFLAGS="$CFLAGS"
9472           LIBS="conftstm.$ac_objext"
9473           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9474           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475   (eval $ac_link) 2>&5
9476   ac_status=$?
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9479             pipe_works=yes
9480           fi
9481           LIBS="$lt_save_LIBS"
9482           CFLAGS="$lt_save_CFLAGS"
9483         else
9484           echo "cannot find nm_test_func in $nlist" >&5
9485         fi
9486       else
9487         echo "cannot find nm_test_var in $nlist" >&5
9488       fi
9489     else
9490       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9491     fi
9492   else
9493     echo "$progname: failed program was:" >&5
9494     cat conftest.$ac_ext >&5
9495   fi
9496   rm -f conftest* conftst*
9497
9498   # Do not use the global_symbol_pipe unless it works.
9499   if test "$pipe_works" = yes; then
9500     break
9501   else
9502     lt_cv_sys_global_symbol_pipe=
9503   fi
9504 done
9505
9506 fi
9507
9508 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9509   lt_cv_sys_global_symbol_to_cdecl=
9510 fi
9511 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9512   { echo "$as_me:$LINENO: result: failed" >&5
9513 echo "${ECHO_T}failed" >&6; }
9514 else
9515   { echo "$as_me:$LINENO: result: ok" >&5
9516 echo "${ECHO_T}ok" >&6; }
9517 fi
9518
9519
9520 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9521 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9522 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9523   echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9526     libltdl_cv_preloaded_symbols=yes
9527   else
9528     libltdl_cv_preloaded_symbols=no
9529   fi
9530
9531 fi
9532 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9533 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9534 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_PRELOADED_SYMBOLS 1
9538 _ACEOF
9539
9540 fi
9541
9542 LIBADD_DL=
9543
9544 ac_ext=c
9545 ac_cpp='$CPP $CPPFLAGS'
9546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9549
9550
9551 { echo "$as_me:$LINENO: checking for shl_load" >&5
9552 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9553 if test "${ac_cv_func_shl_load+set}" = set; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556   cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9564 #define shl_load innocuous_shl_load
9565
9566 /* System header to define __stub macros and hopefully few prototypes,
9567     which can conflict with char shl_load (); below.
9568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569     <limits.h> exists even on freestanding compilers.  */
9570
9571 #ifdef __STDC__
9572 # include <limits.h>
9573 #else
9574 # include <assert.h>
9575 #endif
9576
9577 #undef shl_load
9578
9579 /* Override any GCC internal prototype to avoid an error.
9580    Use char because int might match the return type of a GCC
9581    builtin and then its argument prototype would still apply.  */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char shl_load ();
9586 /* The GNU C library defines this for functions which it implements
9587     to always fail with ENOSYS.  Some functions are actually named
9588     something starting with __ and the normal name is an alias.  */
9589 #if defined __stub_shl_load || defined __stub___shl_load
9590 choke me
9591 #endif
9592
9593 int
9594 main ()
9595 {
9596 return shl_load ();
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608   (eval "$ac_link") 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } &&
9615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616   { (case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621   (eval "$ac_try") 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; } &&
9625          { ac_try='test -s conftest$ac_exeext'
9626   { (case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631   (eval "$ac_try") 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; }; then
9635   ac_cv_func_shl_load=yes
9636 else
9637   echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640         ac_cv_func_shl_load=no
9641 fi
9642
9643 rm -f core conftest.err conftest.$ac_objext \
9644       conftest$ac_exeext conftest.$ac_ext
9645 fi
9646 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9647 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9648 if test $ac_cv_func_shl_load = yes; then
9649
9650 cat >>confdefs.h <<\_ACEOF
9651 #define HAVE_SHL_LOAD 1
9652 _ACEOF
9653
9654 else
9655   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9656 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9657 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660   ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-ldld  $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668
9669 /* Override any GCC internal prototype to avoid an error.
9670    Use char because int might match the return type of a GCC
9671    builtin and then its argument prototype would still apply.  */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char shl_load ();
9676 int
9677 main ()
9678 {
9679 return shl_load ();
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_link") 2>conftest.er1
9692   ac_status=$?
9693   grep -v '^ *+' conftest.er1 >conftest.err
9694   rm -f conftest.er1
9695   cat conftest.err >&5
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } &&
9698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699   { (case "(($ac_try" in
9700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701   *) ac_try_echo=$ac_try;;
9702 esac
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704   (eval "$ac_try") 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (case "(($ac_try" in
9710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711   *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714   (eval "$ac_try") 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718   ac_cv_lib_dld_shl_load=yes
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723         ac_cv_lib_dld_shl_load=no
9724 fi
9725
9726 rm -f core conftest.err conftest.$ac_objext \
9727       conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9729 fi
9730 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9731 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9732 if test $ac_cv_lib_dld_shl_load = yes; then
9733
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_SHL_LOAD 1
9736 _ACEOF
9737
9738         LIBADD_DL="$LIBADD_DL -ldld"
9739 else
9740   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   ac_check_lib_save_LIBS=$LIBS
9746 LIBS="-ldl  $LIBS"
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753
9754 /* Override any GCC internal prototype to avoid an error.
9755    Use char because int might match the return type of a GCC
9756    builtin and then its argument prototype would still apply.  */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char dlopen ();
9761 int
9762 main ()
9763 {
9764 return dlopen ();
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9777   ac_status=$?
9778   grep -v '^ *+' conftest.er1 >conftest.err
9779   rm -f conftest.er1
9780   cat conftest.err >&5
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } &&
9783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784   { (case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_try") 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; } &&
9793          { ac_try='test -s conftest$ac_exeext'
9794   { (case "(($ac_try" in
9795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796   *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799   (eval "$ac_try") 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; }; then
9803   ac_cv_lib_dl_dlopen=yes
9804 else
9805   echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808         ac_cv_lib_dl_dlopen=no
9809 fi
9810
9811 rm -f core conftest.err conftest.$ac_objext \
9812       conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9814 fi
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9816 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9817 if test $ac_cv_lib_dl_dlopen = yes; then
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_LIBDL 1
9821 _ACEOF
9822
9823                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9824 else
9825   cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831 #if HAVE_DLFCN_H
9832 #  include <dlfcn.h>
9833 #endif
9834
9835 int
9836 main ()
9837 {
9838 dlopen(0, 0);
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_link") 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9858   { (case "(($ac_try" in
9859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860   *) ac_try_echo=$ac_try;;
9861 esac
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863   (eval "$ac_try") 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; } &&
9867          { ac_try='test -s conftest$ac_exeext'
9868   { (case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_try") 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; }; then
9877
9878 cat >>confdefs.h <<\_ACEOF
9879 #define HAVE_LIBDL 1
9880 _ACEOF
9881  libltdl_cv_func_dlopen="yes"
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9887 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9888 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   ac_check_lib_save_LIBS=$LIBS
9892 LIBS="-lsvld  $LIBS"
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h.  */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h.  */
9899
9900 /* Override any GCC internal prototype to avoid an error.
9901    Use char because int might match the return type of a GCC
9902    builtin and then its argument prototype would still apply.  */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char dlopen ();
9907 int
9908 main ()
9909 {
9910 return dlopen ();
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_link") 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } &&
9929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930   { (case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935   (eval "$ac_try") 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; } &&
9939          { ac_try='test -s conftest$ac_exeext'
9940   { (case "(($ac_try" in
9941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942   *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945   (eval "$ac_try") 2>&5
9946   ac_status=$?
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); }; }; then
9949   ac_cv_lib_svld_dlopen=yes
9950 else
9951   echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954         ac_cv_lib_svld_dlopen=no
9955 fi
9956
9957 rm -f core conftest.err conftest.$ac_objext \
9958       conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9960 fi
9961 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9962 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9963 if test $ac_cv_lib_svld_dlopen = yes; then
9964
9965 cat >>confdefs.h <<\_ACEOF
9966 #define HAVE_LIBDL 1
9967 _ACEOF
9968
9969                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9970 else
9971   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9972 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9973 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   ac_check_lib_save_LIBS=$LIBS
9977 LIBS="-ldld  $LIBS"
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984
9985 /* Override any GCC internal prototype to avoid an error.
9986    Use char because int might match the return type of a GCC
9987    builtin and then its argument prototype would still apply.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 char dld_link ();
9992 int
9993 main ()
9994 {
9995 return dld_link ();
9996   ;
9997   return 0;
9998 }
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_link") 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } &&
10014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015   { (case "(($ac_try" in
10016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017   *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020   (eval "$ac_try") 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); }; } &&
10024          { ac_try='test -s conftest$ac_exeext'
10025   { (case "(($ac_try" in
10026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027   *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030   (eval "$ac_try") 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; }; then
10034   ac_cv_lib_dld_dld_link=yes
10035 else
10036   echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039         ac_cv_lib_dld_dld_link=no
10040 fi
10041
10042 rm -f core conftest.err conftest.$ac_objext \
10043       conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10045 fi
10046 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10048 if test $ac_cv_lib_dld_dld_link = yes; then
10049
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_DLD 1
10052 _ACEOF
10053
10054                 LIBADD_DL="$LIBADD_DL -ldld"
10055 else
10056   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10057 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10058 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10059   echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061   cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h.  */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h.  */
10067 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10069 #define _dyld_func_lookup innocuous__dyld_func_lookup
10070
10071 /* System header to define __stub macros and hopefully few prototypes,
10072     which can conflict with char _dyld_func_lookup (); below.
10073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074     <limits.h> exists even on freestanding compilers.  */
10075
10076 #ifdef __STDC__
10077 # include <limits.h>
10078 #else
10079 # include <assert.h>
10080 #endif
10081
10082 #undef _dyld_func_lookup
10083
10084 /* Override any GCC internal prototype to avoid an error.
10085    Use char because int might match the return type of a GCC
10086    builtin and then its argument prototype would still apply.  */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 char _dyld_func_lookup ();
10091 /* The GNU C library defines this for functions which it implements
10092     to always fail with ENOSYS.  Some functions are actually named
10093     something starting with __ and the normal name is an alias.  */
10094 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10095 choke me
10096 #endif
10097
10098 int
10099 main ()
10100 {
10101 return _dyld_func_lookup ();
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110   *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113   (eval "$ac_link") 2>conftest.er1
10114   ac_status=$?
10115   grep -v '^ *+' conftest.er1 >conftest.err
10116   rm -f conftest.er1
10117   cat conftest.err >&5
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } &&
10120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121   { (case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_try") 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; } &&
10130          { ac_try='test -s conftest$ac_exeext'
10131   { (case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_try") 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; }; then
10140   ac_cv_func__dyld_func_lookup=yes
10141 else
10142   echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145         ac_cv_func__dyld_func_lookup=no
10146 fi
10147
10148 rm -f core conftest.err conftest.$ac_objext \
10149       conftest$ac_exeext conftest.$ac_ext
10150 fi
10151 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10152 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10153 if test $ac_cv_func__dyld_func_lookup = yes; then
10154
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_DYLD 1
10157 _ACEOF
10158
10159 fi
10160
10161
10162 fi
10163
10164
10165 fi
10166
10167
10168 fi
10169
10170 rm -f core conftest.err conftest.$ac_objext \
10171       conftest$ac_exeext conftest.$ac_ext
10172
10173 fi
10174
10175
10176 fi
10177
10178
10179 fi
10180
10181
10182 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10183 then
10184   lt_save_LIBS="$LIBS"
10185   LIBS="$LIBS $LIBADD_DL"
10186
10187 for ac_func in dlerror
10188 do
10189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10203 #define $ac_func innocuous_$ac_func
10204
10205 /* System header to define __stub macros and hopefully few prototypes,
10206     which can conflict with char $ac_func (); below.
10207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208     <limits.h> exists even on freestanding compilers.  */
10209
10210 #ifdef __STDC__
10211 # include <limits.h>
10212 #else
10213 # include <assert.h>
10214 #endif
10215
10216 #undef $ac_func
10217
10218 /* Override any GCC internal prototype to avoid an error.
10219    Use char because int might match the return type of a GCC
10220    builtin and then its argument prototype would still apply.  */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 char $ac_func ();
10225 /* The GNU C library defines this for functions which it implements
10226     to always fail with ENOSYS.  Some functions are actually named
10227     something starting with __ and the normal name is an alias.  */
10228 #if defined __stub_$ac_func || defined __stub___$ac_func
10229 choke me
10230 #endif
10231
10232 int
10233 main ()
10234 {
10235 return $ac_func ();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247   (eval "$ac_link") 2>conftest.er1
10248   ac_status=$?
10249   grep -v '^ *+' conftest.er1 >conftest.err
10250   rm -f conftest.er1
10251   cat conftest.err >&5
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; } &&
10264          { ac_try='test -s conftest$ac_exeext'
10265   { (case "(($ac_try" in
10266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267   *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270   (eval "$ac_try") 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); }; }; then
10274   eval "$as_ac_var=yes"
10275 else
10276   echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10278
10279         eval "$as_ac_var=no"
10280 fi
10281
10282 rm -f core conftest.err conftest.$ac_objext \
10283       conftest$ac_exeext conftest.$ac_ext
10284 fi
10285 ac_res=`eval echo '${'$as_ac_var'}'`
10286                { echo "$as_me:$LINENO: result: $ac_res" >&5
10287 echo "${ECHO_T}$ac_res" >&6; }
10288 if test `eval echo '${'$as_ac_var'}'` = yes; then
10289   cat >>confdefs.h <<_ACEOF
10290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10291 _ACEOF
10292
10293 fi
10294 done
10295
10296   LIBS="$lt_save_LIBS"
10297 fi
10298 ac_ext=c
10299 ac_cpp='$CPP $CPPFLAGS'
10300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10303
10304
10305
10306 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10307 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10308 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   ac_cv_sys_symbol_underscore=no
10312   cat > conftest.$ac_ext <<EOF
10313 void nm_test_func(){}
10314 int main(){nm_test_func;return 0;}
10315 EOF
10316   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317   (eval $ac_compile) 2>&5
10318   ac_status=$?
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); }; then
10321     # Now try to grab the symbols.
10322     ac_nlist=conftest.nm
10323     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10324   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); } && test -s "$ac_nlist"; then
10328       # See whether the symbols have a leading underscore.
10329       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10330         ac_cv_sys_symbol_underscore=yes
10331       else
10332         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10333           :
10334         else
10335           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10336         fi
10337       fi
10338     else
10339       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10340     fi
10341   else
10342     echo "configure: failed program was:" >&5
10343     cat conftest.c >&5
10344   fi
10345   rm -rf conftest*
10346
10347 fi
10348 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10349 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10350
10351
10352 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10353   if test x"$libltdl_cv_func_dlopen" = xyes ||
10354      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10355         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10356 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10357 if test "${libltdl_cv_need_uscore+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   libltdl_cv_need_uscore=unknown
10361           save_LIBS="$LIBS"
10362           LIBS="$LIBS $LIBADD_DL"
10363           if test "$cross_compiling" = yes; then :
10364   libltdl_cv_need_uscore=cross
10365 else
10366   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367   lt_status=$lt_dlunknown
10368   cat > conftest.$ac_ext <<EOF
10369 #line 10369 "configure"
10370 #include "confdefs.h"
10371
10372 #if HAVE_DLFCN_H
10373 #include <dlfcn.h>
10374 #endif
10375
10376 #include <stdio.h>
10377
10378 #ifdef RTLD_GLOBAL
10379 #  define LT_DLGLOBAL           RTLD_GLOBAL
10380 #else
10381 #  ifdef DL_GLOBAL
10382 #    define LT_DLGLOBAL         DL_GLOBAL
10383 #  else
10384 #    define LT_DLGLOBAL         0
10385 #  endif
10386 #endif
10387
10388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389    find out it does not work in some platform. */
10390 #ifndef LT_DLLAZY_OR_NOW
10391 #  ifdef RTLD_LAZY
10392 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10393 #  else
10394 #    ifdef DL_LAZY
10395 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10396 #    else
10397 #      ifdef RTLD_NOW
10398 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10399 #      else
10400 #        ifdef DL_NOW
10401 #          define LT_DLLAZY_OR_NOW      DL_NOW
10402 #        else
10403 #          define LT_DLLAZY_OR_NOW      0
10404 #        endif
10405 #      endif
10406 #    endif
10407 #  endif
10408 #endif
10409
10410 #ifdef __cplusplus
10411 extern "C" void exit (int);
10412 #endif
10413
10414 void fnord() { int i=42;}
10415 int main ()
10416 {
10417   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418   int status = $lt_dlunknown;
10419
10420   if (self)
10421     {
10422       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10423       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424       /* dlclose (self); */
10425     }
10426   else
10427     puts (dlerror ());
10428
10429     exit (status);
10430 }
10431 EOF
10432   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433   (eval $ac_link) 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10437     (./conftest; exit; ) >&5 2>/dev/null
10438     lt_status=$?
10439     case x$lt_status in
10440       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10441       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10442       x$lt_dlunknown|x*)  ;;
10443     esac
10444   else :
10445     # compilation failed
10446
10447   fi
10448 fi
10449 rm -fr conftest*
10450
10451           LIBS="$save_LIBS"
10452
10453 fi
10454 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10455 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10456   fi
10457 fi
10458
10459 if test x"$libltdl_cv_need_uscore" = xyes; then
10460
10461 cat >>confdefs.h <<\_ACEOF
10462 #define NEED_USCORE 1
10463 _ACEOF
10464
10465 fi
10466
10467
10468 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10469 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10470 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10471   echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473   # PORTME does your system automatically load deplibs for dlopen?
10474   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10475   # For now, we just catch OSes we know something about -- in the
10476   # future, we'll try test this programmatically.
10477   libltdl_cv_sys_dlopen_deplibs=unknown
10478   case "$host_os" in
10479   aix3*|aix4.1.*|aix4.2.*)
10480     # Unknown whether this is true for these versions of AIX, but
10481     # we want this `case' here to explicitly catch those versions.
10482     libltdl_cv_sys_dlopen_deplibs=unknown
10483     ;;
10484   aix[45]*)
10485     libltdl_cv_sys_dlopen_deplibs=yes
10486     ;;
10487   darwin*)
10488     # Assuming the user has installed a libdl from somewhere, this is true
10489     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10490     libltdl_cv_sys_dlopen_deplibs=yes
10491     ;;
10492   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10493     # GNU and its variants, using gnu ld.so (Glibc)
10494     libltdl_cv_sys_dlopen_deplibs=yes
10495     ;;
10496   hpux10*|hpux11*)
10497     libltdl_cv_sys_dlopen_deplibs=yes
10498     ;;
10499   interix*)
10500     libltdl_cv_sys_dlopen_deplibs=yes
10501     ;;
10502   irix[12345]*|irix6.[01]*)
10503     # Catch all versions of IRIX before 6.2, and indicate that we don't
10504     # know how it worked for any of those versions.
10505     libltdl_cv_sys_dlopen_deplibs=unknown
10506     ;;
10507   irix*)
10508     # The case above catches anything before 6.2, and it's known that
10509     # at 6.2 and later dlopen does load deplibs.
10510     libltdl_cv_sys_dlopen_deplibs=yes
10511     ;;
10512   netbsd*)
10513     libltdl_cv_sys_dlopen_deplibs=yes
10514     ;;
10515   openbsd*)
10516     libltdl_cv_sys_dlopen_deplibs=yes
10517     ;;
10518   osf[1234]*)
10519     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10520     # it did *not* use an RPATH in a shared library to find objects the
10521     # library depends on, so we explicitly say `no'.
10522     libltdl_cv_sys_dlopen_deplibs=no
10523     ;;
10524   osf5.0|osf5.0a|osf5.1)
10525     # dlopen *does* load deplibs and with the right loader patch applied
10526     # it even uses RPATH in a shared library to search for shared objects
10527     # that the library depends on, but there's no easy way to know if that
10528     # patch is installed.  Since this is the case, all we can really
10529     # say is unknown -- it depends on the patch being installed.  If
10530     # it is, this changes to `yes'.  Without it, it would be `no'.
10531     libltdl_cv_sys_dlopen_deplibs=unknown
10532     ;;
10533   osf*)
10534     # the two cases above should catch all versions of osf <= 5.1.  Read
10535     # the comments above for what we know about them.
10536     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10537     # is used to find them so we can finally say `yes'.
10538     libltdl_cv_sys_dlopen_deplibs=yes
10539     ;;
10540   solaris*)
10541     libltdl_cv_sys_dlopen_deplibs=yes
10542     ;;
10543   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10544     libltdl_cv_sys_dlopen_deplibs=yes
10545     ;;
10546   esac
10547
10548 fi
10549 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10550 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10551 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10552
10553 cat >>confdefs.h <<\_ACEOF
10554 #define LTDL_DLOPEN_DEPLIBS 1
10555 _ACEOF
10556
10557 fi
10558
10559
10560 for ac_header in argz.h
10561 do
10562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 fi
10569 ac_res=`eval echo '${'$as_ac_Header'}'`
10570                { echo "$as_me:$LINENO: result: $ac_res" >&5
10571 echo "${ECHO_T}$ac_res" >&6; }
10572 else
10573   # Is the header compilable?
10574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 $ac_includes_default
10583 #include <$ac_header>
10584 _ACEOF
10585 rm -f conftest.$ac_objext
10586 if { (ac_try="$ac_compile"
10587 case "(($ac_try" in
10588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589   *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592   (eval "$ac_compile") 2>conftest.er1
10593   ac_status=$?
10594   grep -v '^ *+' conftest.er1 >conftest.err
10595   rm -f conftest.er1
10596   cat conftest.err >&5
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); } &&
10599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600   { (case "(($ac_try" in
10601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602   *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605   (eval "$ac_try") 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest.$ac_objext'
10610   { (case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615   (eval "$ac_try") 2>&5
10616   ac_status=$?
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); }; }; then
10619   ac_header_compiler=yes
10620 else
10621   echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624         ac_header_compiler=no
10625 fi
10626
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629 echo "${ECHO_T}$ac_header_compiler" >&6; }
10630
10631 # Is the header present?
10632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h.  */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h.  */
10640 #include <$ac_header>
10641 _ACEOF
10642 if { (ac_try="$ac_cpp conftest.$ac_ext"
10643 case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649   ac_status=$?
10650   grep -v '^ *+' conftest.er1 >conftest.err
10651   rm -f conftest.er1
10652   cat conftest.err >&5
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } >/dev/null; then
10655   if test -s conftest.err; then
10656     ac_cpp_err=$ac_c_preproc_warn_flag
10657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658   else
10659     ac_cpp_err=
10660   fi
10661 else
10662   ac_cpp_err=yes
10663 fi
10664 if test -z "$ac_cpp_err"; then
10665   ac_header_preproc=yes
10666 else
10667   echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670   ac_header_preproc=no
10671 fi
10672
10673 rm -f conftest.err conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 echo "${ECHO_T}$ac_header_preproc" >&6; }
10676
10677 # So?  What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679   yes:no: )
10680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684     ac_header_preproc=yes
10685     ;;
10686   no:yes:* )
10687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10699     ( cat <<\_ASBOX
10700 ## ------------------------------ ##
10701 ## Report this to bugs@yourdomain ##
10702 ## ------------------------------ ##
10703 _ASBOX
10704      ) | sed "s/^/$as_me: WARNING:     /" >&2
10705     ;;
10706 esac
10707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   eval "$as_ac_Header=\$ac_header_preproc"
10713 fi
10714 ac_res=`eval echo '${'$as_ac_Header'}'`
10715                { echo "$as_me:$LINENO: result: $ac_res" >&5
10716 echo "${ECHO_T}$ac_res" >&6; }
10717
10718 fi
10719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10720   cat >>confdefs.h <<_ACEOF
10721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722 _ACEOF
10723
10724 fi
10725
10726 done
10727
10728
10729 { echo "$as_me:$LINENO: checking for error_t" >&5
10730 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10731 if test "${ac_cv_type_error_t+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 #if HAVE_ARGZ_H
10741 #  include <argz.h>
10742 #endif
10743
10744 typedef error_t ac__type_new_;
10745 int
10746 main ()
10747 {
10748 if ((ac__type_new_ *) 0)
10749   return 0;
10750 if (sizeof (ac__type_new_))
10751   return 0;
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (ac_try="$ac_compile"
10758 case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763   (eval "$ac_compile") 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } &&
10770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771   { (case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776   (eval "$ac_try") 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; } &&
10780          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); }; }; then
10790   ac_cv_type_error_t=yes
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795         ac_cv_type_error_t=no
10796 fi
10797
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 fi
10800 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10801 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10802 if test $ac_cv_type_error_t = yes; then
10803
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_ERROR_T 1
10806 _ACEOF
10807
10808
10809 else
10810
10811 cat >>confdefs.h <<\_ACEOF
10812 #define error_t int
10813 _ACEOF
10814
10815 fi
10816
10817
10818
10819
10820
10821
10822
10823 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10824 do
10825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10839 #define $ac_func innocuous_$ac_func
10840
10841 /* System header to define __stub macros and hopefully few prototypes,
10842     which can conflict with char $ac_func (); below.
10843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844     <limits.h> exists even on freestanding compilers.  */
10845
10846 #ifdef __STDC__
10847 # include <limits.h>
10848 #else
10849 # include <assert.h>
10850 #endif
10851
10852 #undef $ac_func
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855    Use char because int might match the return type of a GCC
10856    builtin and then its argument prototype would still apply.  */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char $ac_func ();
10861 /* The GNU C library defines this for functions which it implements
10862     to always fail with ENOSYS.  Some functions are actually named
10863     something starting with __ and the normal name is an alias.  */
10864 #if defined __stub_$ac_func || defined __stub___$ac_func
10865 choke me
10866 #endif
10867
10868 int
10869 main ()
10870 {
10871 return $ac_func ();
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_link") 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } &&
10890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891   { (case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896   (eval "$ac_try") 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); }; } &&
10900          { ac_try='test -s conftest$ac_exeext'
10901   { (case "(($ac_try" in
10902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903   *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906   (eval "$ac_try") 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); }; }; then
10910   eval "$as_ac_var=yes"
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915         eval "$as_ac_var=no"
10916 fi
10917
10918 rm -f core conftest.err conftest.$ac_objext \
10919       conftest$ac_exeext conftest.$ac_ext
10920 fi
10921 ac_res=`eval echo '${'$as_ac_var'}'`
10922                { echo "$as_me:$LINENO: result: $ac_res" >&5
10923 echo "${ECHO_T}$ac_res" >&6; }
10924 if test `eval echo '${'$as_ac_var'}'` = yes; then
10925   cat >>confdefs.h <<_ACEOF
10926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927 _ACEOF
10928
10929 fi
10930 done
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10960                   stdio.h unistd.h
10961 do
10962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10964   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967   echo $ECHO_N "(cached) $ECHO_C" >&6
10968 fi
10969 ac_res=`eval echo '${'$as_ac_Header'}'`
10970                { echo "$as_me:$LINENO: result: $ac_res" >&5
10971 echo "${ECHO_T}$ac_res" >&6; }
10972 else
10973   # Is the header compilable?
10974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 $ac_includes_default
10983 #include <$ac_header>
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_compile") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000   { (case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005   (eval "$ac_try") 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; } &&
11009          { ac_try='test -s conftest.$ac_objext'
11010   { (case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_try") 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; }; then
11019   ac_header_compiler=yes
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024         ac_header_compiler=no
11025 fi
11026
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029 echo "${ECHO_T}$ac_header_compiler" >&6; }
11030
11031 # Is the header present?
11032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040 #include <$ac_header>
11041 _ACEOF
11042 if { (ac_try="$ac_cpp conftest.$ac_ext"
11043 case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11049   ac_status=$?
11050   grep -v '^ *+' conftest.er1 >conftest.err
11051   rm -f conftest.er1
11052   cat conftest.err >&5
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } >/dev/null; then
11055   if test -s conftest.err; then
11056     ac_cpp_err=$ac_c_preproc_warn_flag
11057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11058   else
11059     ac_cpp_err=
11060   fi
11061 else
11062   ac_cpp_err=yes
11063 fi
11064 if test -z "$ac_cpp_err"; then
11065   ac_header_preproc=yes
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070   ac_header_preproc=no
11071 fi
11072
11073 rm -f conftest.err conftest.$ac_ext
11074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075 echo "${ECHO_T}$ac_header_preproc" >&6; }
11076
11077 # So?  What about this header?
11078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079   yes:no: )
11080     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11084     ac_header_preproc=yes
11085     ;;
11086   no:yes:* )
11087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11089     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11090 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11091     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11093     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11094 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099     ( cat <<\_ASBOX
11100 ## ------------------------------ ##
11101 ## Report this to bugs@yourdomain ##
11102 ## ------------------------------ ##
11103 _ASBOX
11104      ) | sed "s/^/$as_me: WARNING:     /" >&2
11105     ;;
11106 esac
11107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110   echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112   eval "$as_ac_Header=\$ac_header_preproc"
11113 fi
11114 ac_res=`eval echo '${'$as_ac_Header'}'`
11115                { echo "$as_me:$LINENO: result: $ac_res" >&5
11116 echo "${ECHO_T}$ac_res" >&6; }
11117
11118 fi
11119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120   cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122 _ACEOF
11123
11124 fi
11125
11126 done
11127
11128
11129
11130
11131
11132 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11133 do
11134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 fi
11141 ac_res=`eval echo '${'$as_ac_Header'}'`
11142                { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 echo "${ECHO_T}$ac_res" >&6; }
11144 else
11145   # Is the header compilable?
11146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h.  */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h.  */
11154 $ac_includes_default
11155 #include <$ac_header>
11156 _ACEOF
11157 rm -f conftest.$ac_objext
11158 if { (ac_try="$ac_compile"
11159 case "(($ac_try" in
11160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161   *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164   (eval "$ac_compile") 2>conftest.er1
11165   ac_status=$?
11166   grep -v '^ *+' conftest.er1 >conftest.err
11167   rm -f conftest.er1
11168   cat conftest.err >&5
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } &&
11171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172   { (case "(($ac_try" in
11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174   *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177   (eval "$ac_try") 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; } &&
11181          { ac_try='test -s conftest.$ac_objext'
11182   { (case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_try") 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; }; then
11191   ac_header_compiler=yes
11192 else
11193   echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11195
11196         ac_header_compiler=no
11197 fi
11198
11199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201 echo "${ECHO_T}$ac_header_compiler" >&6; }
11202
11203 # Is the header present?
11204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 #include <$ac_header>
11213 _ACEOF
11214 if { (ac_try="$ac_cpp conftest.$ac_ext"
11215 case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } >/dev/null; then
11227   if test -s conftest.err; then
11228     ac_cpp_err=$ac_c_preproc_warn_flag
11229     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11230   else
11231     ac_cpp_err=
11232   fi
11233 else
11234   ac_cpp_err=yes
11235 fi
11236 if test -z "$ac_cpp_err"; then
11237   ac_header_preproc=yes
11238 else
11239   echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242   ac_header_preproc=no
11243 fi
11244
11245 rm -f conftest.err conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247 echo "${ECHO_T}$ac_header_preproc" >&6; }
11248
11249 # So?  What about this header?
11250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251   yes:no: )
11252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256     ac_header_preproc=yes
11257     ;;
11258   no:yes:* )
11259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271     ( cat <<\_ASBOX
11272 ## ------------------------------ ##
11273 ## Report this to bugs@yourdomain ##
11274 ## ------------------------------ ##
11275 _ASBOX
11276      ) | sed "s/^/$as_me: WARNING:     /" >&2
11277     ;;
11278 esac
11279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282   echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284   eval "$as_ac_Header=\$ac_header_preproc"
11285 fi
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287                { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11289
11290 fi
11291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292   cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294 _ACEOF
11295
11296 fi
11297
11298 done
11299
11300
11301
11302 for ac_header in string.h strings.h
11303 do
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 fi
11311 ac_res=`eval echo '${'$as_ac_Header'}'`
11312                { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11314 else
11315   # Is the header compilable?
11316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324 $ac_includes_default
11325 #include <$ac_header>
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_compile") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } &&
11341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; } &&
11351          { ac_try='test -s conftest.$ac_objext'
11352   { (case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357   (eval "$ac_try") 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; }; then
11361   ac_header_compiler=yes
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366         ac_header_compiler=no
11367 fi
11368
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371 echo "${ECHO_T}$ac_header_compiler" >&6; }
11372
11373 # Is the header present?
11374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382 #include <$ac_header>
11383 _ACEOF
11384 if { (ac_try="$ac_cpp conftest.$ac_ext"
11385 case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } >/dev/null; then
11397   if test -s conftest.err; then
11398     ac_cpp_err=$ac_c_preproc_warn_flag
11399     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400   else
11401     ac_cpp_err=
11402   fi
11403 else
11404   ac_cpp_err=yes
11405 fi
11406 if test -z "$ac_cpp_err"; then
11407   ac_header_preproc=yes
11408 else
11409   echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412   ac_header_preproc=no
11413 fi
11414
11415 rm -f conftest.err conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11418
11419 # So?  What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421   yes:no: )
11422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426     ac_header_preproc=yes
11427     ;;
11428   no:yes:* )
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441     ( cat <<\_ASBOX
11442 ## ------------------------------ ##
11443 ## Report this to bugs@yourdomain ##
11444 ## ------------------------------ ##
11445 _ASBOX
11446      ) | sed "s/^/$as_me: WARNING:     /" >&2
11447     ;;
11448 esac
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452   echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454   eval "$as_ac_Header=\$ac_header_preproc"
11455 fi
11456 ac_res=`eval echo '${'$as_ac_Header'}'`
11457                { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11459
11460 fi
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462   cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464 _ACEOF
11465  break
11466 fi
11467
11468 done
11469
11470
11471
11472
11473 for ac_func in strchr index
11474 do
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481   cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h.  */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h.  */
11487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11489 #define $ac_func innocuous_$ac_func
11490
11491 /* System header to define __stub macros and hopefully few prototypes,
11492     which can conflict with char $ac_func (); below.
11493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494     <limits.h> exists even on freestanding compilers.  */
11495
11496 #ifdef __STDC__
11497 # include <limits.h>
11498 #else
11499 # include <assert.h>
11500 #endif
11501
11502 #undef $ac_func
11503
11504 /* Override any GCC internal prototype to avoid an error.
11505    Use char because int might match the return type of a GCC
11506    builtin and then its argument prototype would still apply.  */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char $ac_func ();
11511 /* The GNU C library defines this for functions which it implements
11512     to always fail with ENOSYS.  Some functions are actually named
11513     something starting with __ and the normal name is an alias.  */
11514 #if defined __stub_$ac_func || defined __stub___$ac_func
11515 choke me
11516 #endif
11517
11518 int
11519 main ()
11520 {
11521 return $ac_func ();
11522   ;
11523   return 0;
11524 }
11525 _ACEOF
11526 rm -f conftest.$ac_objext conftest$ac_exeext
11527 if { (ac_try="$ac_link"
11528 case "(($ac_try" in
11529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530   *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533   (eval "$ac_link") 2>conftest.er1
11534   ac_status=$?
11535   grep -v '^ *+' conftest.er1 >conftest.err
11536   rm -f conftest.er1
11537   cat conftest.err >&5
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); } &&
11540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541   { (case "(($ac_try" in
11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543   *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546   (eval "$ac_try") 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); }; } &&
11550          { ac_try='test -s conftest$ac_exeext'
11551   { (case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_try") 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   eval "$as_ac_var=yes"
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565         eval "$as_ac_var=no"
11566 fi
11567
11568 rm -f core conftest.err conftest.$ac_objext \
11569       conftest$ac_exeext conftest.$ac_ext
11570 fi
11571 ac_res=`eval echo '${'$as_ac_var'}'`
11572                { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575   cat >>confdefs.h <<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11577 _ACEOF
11578  break
11579 fi
11580 done
11581
11582
11583
11584 for ac_func in strrchr rindex
11585 do
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11600 #define $ac_func innocuous_$ac_func
11601
11602 /* System header to define __stub macros and hopefully few prototypes,
11603     which can conflict with char $ac_func (); below.
11604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605     <limits.h> exists even on freestanding compilers.  */
11606
11607 #ifdef __STDC__
11608 # include <limits.h>
11609 #else
11610 # include <assert.h>
11611 #endif
11612
11613 #undef $ac_func
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616    Use char because int might match the return type of a GCC
11617    builtin and then its argument prototype would still apply.  */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char $ac_func ();
11622 /* The GNU C library defines this for functions which it implements
11623     to always fail with ENOSYS.  Some functions are actually named
11624     something starting with __ and the normal name is an alias.  */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11626 choke me
11627 #endif
11628
11629 int
11630 main ()
11631 {
11632 return $ac_func ();
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644   (eval "$ac_link") 2>conftest.er1
11645   ac_status=$?
11646   grep -v '^ *+' conftest.er1 >conftest.err
11647   rm -f conftest.er1
11648   cat conftest.err >&5
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); } &&
11651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652   { (case "(($ac_try" in
11653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654   *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657   (eval "$ac_try") 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; } &&
11661          { ac_try='test -s conftest$ac_exeext'
11662   { (case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667   (eval "$ac_try") 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); }; }; then
11671   eval "$as_ac_var=yes"
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676         eval "$as_ac_var=no"
11677 fi
11678
11679 rm -f core conftest.err conftest.$ac_objext \
11680       conftest$ac_exeext conftest.$ac_ext
11681 fi
11682 ac_res=`eval echo '${'$as_ac_var'}'`
11683                { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 if test `eval echo '${'$as_ac_var'}'` = yes; then
11686   cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688 _ACEOF
11689  break
11690 fi
11691 done
11692
11693
11694
11695 for ac_func in memcpy bcopy
11696 do
11697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703   cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h.  */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h.  */
11709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11711 #define $ac_func innocuous_$ac_func
11712
11713 /* System header to define __stub macros and hopefully few prototypes,
11714     which can conflict with char $ac_func (); below.
11715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716     <limits.h> exists even on freestanding compilers.  */
11717
11718 #ifdef __STDC__
11719 # include <limits.h>
11720 #else
11721 # include <assert.h>
11722 #endif
11723
11724 #undef $ac_func
11725
11726 /* Override any GCC internal prototype to avoid an error.
11727    Use char because int might match the return type of a GCC
11728    builtin and then its argument prototype would still apply.  */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char $ac_func ();
11733 /* The GNU C library defines this for functions which it implements
11734     to always fail with ENOSYS.  Some functions are actually named
11735     something starting with __ and the normal name is an alias.  */
11736 #if defined __stub_$ac_func || defined __stub___$ac_func
11737 choke me
11738 #endif
11739
11740 int
11741 main ()
11742 {
11743 return $ac_func ();
11744   ;
11745   return 0;
11746 }
11747 _ACEOF
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (ac_try="$ac_link"
11750 case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755   (eval "$ac_link") 2>conftest.er1
11756   ac_status=$?
11757   grep -v '^ *+' conftest.er1 >conftest.err
11758   rm -f conftest.er1
11759   cat conftest.err >&5
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763   { (case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768   (eval "$ac_try") 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); }; } &&
11772          { ac_try='test -s conftest$ac_exeext'
11773   { (case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778   (eval "$ac_try") 2>&5
11779   ac_status=$?
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); }; }; then
11782   eval "$as_ac_var=yes"
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787         eval "$as_ac_var=no"
11788 fi
11789
11790 rm -f core conftest.err conftest.$ac_objext \
11791       conftest$ac_exeext conftest.$ac_ext
11792 fi
11793 ac_res=`eval echo '${'$as_ac_var'}'`
11794                { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797   cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 _ACEOF
11800  break
11801 fi
11802 done
11803
11804
11805
11806 for ac_func in memmove strcmp
11807 do
11808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11822 #define $ac_func innocuous_$ac_func
11823
11824 /* System header to define __stub macros and hopefully few prototypes,
11825     which can conflict with char $ac_func (); below.
11826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827     <limits.h> exists even on freestanding compilers.  */
11828
11829 #ifdef __STDC__
11830 # include <limits.h>
11831 #else
11832 # include <assert.h>
11833 #endif
11834
11835 #undef $ac_func
11836
11837 /* Override any GCC internal prototype to avoid an error.
11838    Use char because int might match the return type of a GCC
11839    builtin and then its argument prototype would still apply.  */
11840 #ifdef __cplusplus
11841 extern "C"
11842 #endif
11843 char $ac_func ();
11844 /* The GNU C library defines this for functions which it implements
11845     to always fail with ENOSYS.  Some functions are actually named
11846     something starting with __ and the normal name is an alias.  */
11847 #if defined __stub_$ac_func || defined __stub___$ac_func
11848 choke me
11849 #endif
11850
11851 int
11852 main ()
11853 {
11854 return $ac_func ();
11855   ;
11856   return 0;
11857 }
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (ac_try="$ac_link"
11861 case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_link") 2>conftest.er1
11867   ac_status=$?
11868   grep -v '^ *+' conftest.er1 >conftest.err
11869   rm -f conftest.er1
11870   cat conftest.err >&5
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } &&
11873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11874   { (case "(($ac_try" in
11875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876   *) ac_try_echo=$ac_try;;
11877 esac
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879   (eval "$ac_try") 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; } &&
11883          { ac_try='test -s conftest$ac_exeext'
11884   { (case "(($ac_try" in
11885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886   *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889   (eval "$ac_try") 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; }; then
11893   eval "$as_ac_var=yes"
11894 else
11895   echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11897
11898         eval "$as_ac_var=no"
11899 fi
11900
11901 rm -f core conftest.err conftest.$ac_objext \
11902       conftest$ac_exeext conftest.$ac_ext
11903 fi
11904 ac_res=`eval echo '${'$as_ac_var'}'`
11905                { echo "$as_me:$LINENO: result: $ac_res" >&5
11906 echo "${ECHO_T}$ac_res" >&6; }
11907 if test `eval echo '${'$as_ac_var'}'` = yes; then
11908   cat >>confdefs.h <<_ACEOF
11909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11910 _ACEOF
11911
11912 fi
11913 done
11914
11915
11916
11917
11918 for ac_func in closedir opendir readdir
11919 do
11920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11924   echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926   cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11934 #define $ac_func innocuous_$ac_func
11935
11936 /* System header to define __stub macros and hopefully few prototypes,
11937     which can conflict with char $ac_func (); below.
11938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11939     <limits.h> exists even on freestanding compilers.  */
11940
11941 #ifdef __STDC__
11942 # include <limits.h>
11943 #else
11944 # include <assert.h>
11945 #endif
11946
11947 #undef $ac_func
11948
11949 /* Override any GCC internal prototype to avoid an error.
11950    Use char because int might match the return type of a GCC
11951    builtin and then its argument prototype would still apply.  */
11952 #ifdef __cplusplus
11953 extern "C"
11954 #endif
11955 char $ac_func ();
11956 /* The GNU C library defines this for functions which it implements
11957     to always fail with ENOSYS.  Some functions are actually named
11958     something starting with __ and the normal name is an alias.  */
11959 #if defined __stub_$ac_func || defined __stub___$ac_func
11960 choke me
11961 #endif
11962
11963 int
11964 main ()
11965 {
11966 return $ac_func ();
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (ac_try="$ac_link"
11973 case "(($ac_try" in
11974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975   *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978   (eval "$ac_link") 2>conftest.er1
11979   ac_status=$?
11980   grep -v '^ *+' conftest.er1 >conftest.err
11981   rm -f conftest.er1
11982   cat conftest.err >&5
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); } &&
11985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986   { (case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_try") 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; } &&
11995          { ac_try='test -s conftest$ac_exeext'
11996   { (case "(($ac_try" in
11997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998   *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001   (eval "$ac_try") 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); }; }; then
12005   eval "$as_ac_var=yes"
12006 else
12007   echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010         eval "$as_ac_var=no"
12011 fi
12012
12013 rm -f core conftest.err conftest.$ac_objext \
12014       conftest$ac_exeext conftest.$ac_ext
12015 fi
12016 ac_res=`eval echo '${'$as_ac_var'}'`
12017                { echo "$as_me:$LINENO: result: $ac_res" >&5
12018 echo "${ECHO_T}$ac_res" >&6; }
12019 if test `eval echo '${'$as_ac_var'}'` = yes; then
12020   cat >>confdefs.h <<_ACEOF
12021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12022 _ACEOF
12023
12024 fi
12025 done
12026
12027
12028
12029 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12030 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12031
12032 ICC=no
12033 IXX=no
12034 case $CC in
12035   icc*|icpc*)
12036     ICC=yes
12037     IXX=yes
12038     ;;
12039    *)
12040     ;;
12041 esac
12042
12043 if test "$GCC" != "yes" && test "$ICC" != "yes"
12044 then
12045   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12046 echo "$as_me: error: gcc|icc required but not found" >&2;}
12047    { (exit 1); exit 1; }; }
12048 fi
12049
12050 if test "$GXX" != "yes" && test "$IXX" != "yes"
12051 then
12052   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12053 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12054    { (exit 1); exit 1; }; }
12055 fi
12056
12057 if test "$GCC" = "yes"
12058 then
12059   cat >conftest.$ac_ext <<_ACEOF
12060 #if !defined(__GNUC__) || __GNUC__ < 3
12061 #error Unsupported GCC version
12062 #endif
12063
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (ac_try="$ac_compile"
12067 case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_compile") 2>conftest.er1
12073   ac_status=$?
12074   grep -v '^ *+' conftest.er1 >conftest.err
12075   rm -f conftest.er1
12076   cat conftest.err >&5
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); } &&
12079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080   { (case "(($ac_try" in
12081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082   *) ac_try_echo=$ac_try;;
12083 esac
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085   (eval "$ac_try") 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; } &&
12089          { ac_try='test -s conftest.$ac_objext'
12090   { (case "(($ac_try" in
12091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092   *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095   (eval "$ac_try") 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; }; then
12099   :
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12105 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12106    { (exit 1); exit 1; }; }
12107 fi
12108
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 fi
12111
12112 if test -z "$llvm_cv_gnu_make_command"
12113 then
12114   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12115 echo "$as_me: error: GNU Make required but not found" >&2;}
12116    { (exit 1); exit 1; }; }
12117 fi
12118
12119 { echo "$as_me:$LINENO: result: ok" >&5
12120 echo "${ECHO_T}ok" >&6; }
12121
12122 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12123 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12124 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12125
12126 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12127
12128 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12129
12130 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12131 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12132
12133
12134
12135 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12136 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12137 if test "${ac_cv_lib_m_sin+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-lm  $LIBS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148
12149 /* Override any GCC internal prototype to avoid an error.
12150    Use char because int might match the return type of a GCC
12151    builtin and then its argument prototype would still apply.  */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char sin ();
12156 int
12157 main ()
12158 {
12159 return sin ();
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_link") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } &&
12178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12179   { (case "(($ac_try" in
12180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181   *) ac_try_echo=$ac_try;;
12182 esac
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184   (eval "$ac_try") 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; } &&
12188          { ac_try='test -s conftest$ac_exeext'
12189   { (case "(($ac_try" in
12190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191   *) ac_try_echo=$ac_try;;
12192 esac
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194   (eval "$ac_try") 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; }; then
12198   ac_cv_lib_m_sin=yes
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203         ac_cv_lib_m_sin=no
12204 fi
12205
12206 rm -f core conftest.err conftest.$ac_objext \
12207       conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12209 fi
12210 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12211 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12212 if test $ac_cv_lib_m_sin = yes; then
12213   cat >>confdefs.h <<_ACEOF
12214 #define HAVE_LIBM 1
12215 _ACEOF
12216
12217   LIBS="-lm $LIBS"
12218
12219 fi
12220
12221 if test "$llvm_cv_os_type" = "MingW" ; then
12222
12223 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12224 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12225 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   ac_check_lib_save_LIBS=$LIBS
12229 LIBS="-limagehlp  $LIBS"
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236
12237
12238 int
12239 main ()
12240 {
12241 return main ();
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 rm -f conftest.$ac_objext conftest$ac_exeext
12247 if { (ac_try="$ac_link"
12248 case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253   (eval "$ac_link") 2>conftest.er1
12254   ac_status=$?
12255   grep -v '^ *+' conftest.er1 >conftest.err
12256   rm -f conftest.er1
12257   cat conftest.err >&5
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); } &&
12260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12261   { (case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_try") 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; } &&
12270          { ac_try='test -s conftest$ac_exeext'
12271   { (case "(($ac_try" in
12272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273   *) ac_try_echo=$ac_try;;
12274 esac
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276   (eval "$ac_try") 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280   ac_cv_lib_imagehlp_main=yes
12281 else
12282   echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12284
12285         ac_cv_lib_imagehlp_main=no
12286 fi
12287
12288 rm -f core conftest.err conftest.$ac_objext \
12289       conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12291 fi
12292 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12293 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12294 if test $ac_cv_lib_imagehlp_main = yes; then
12295   cat >>confdefs.h <<_ACEOF
12296 #define HAVE_LIBIMAGEHLP 1
12297 _ACEOF
12298
12299   LIBS="-limagehlp $LIBS"
12300
12301 fi
12302
12303
12304 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12305 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12306 if test "${ac_cv_lib_psapi_main+set}" = set; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-lpsapi  $LIBS"
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317
12318
12319 int
12320 main ()
12321 {
12322 return main ();
12323   ;
12324   return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (ac_try="$ac_link"
12329 case "(($ac_try" in
12330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331   *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334   (eval "$ac_link") 2>conftest.er1
12335   ac_status=$?
12336   grep -v '^ *+' conftest.er1 >conftest.err
12337   rm -f conftest.er1
12338   cat conftest.err >&5
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); } &&
12341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12342   { (case "(($ac_try" in
12343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344   *) ac_try_echo=$ac_try;;
12345 esac
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347   (eval "$ac_try") 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; } &&
12351          { ac_try='test -s conftest$ac_exeext'
12352   { (case "(($ac_try" in
12353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354   *) ac_try_echo=$ac_try;;
12355 esac
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357   (eval "$ac_try") 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); }; }; then
12361   ac_cv_lib_psapi_main=yes
12362 else
12363   echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12365
12366         ac_cv_lib_psapi_main=no
12367 fi
12368
12369 rm -f core conftest.err conftest.$ac_objext \
12370       conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12372 fi
12373 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12374 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12375 if test $ac_cv_lib_psapi_main = yes; then
12376   cat >>confdefs.h <<_ACEOF
12377 #define HAVE_LIBPSAPI 1
12378 _ACEOF
12379
12380   LIBS="-lpsapi $LIBS"
12381
12382 fi
12383
12384 fi
12385
12386 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12387 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12388 if test "${ac_cv_search_dlopen+set}" = set; then
12389   echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391   ac_func_search_save_LIBS=$LIBS
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398
12399 /* Override any GCC internal prototype to avoid an error.
12400    Use char because int might match the return type of a GCC
12401    builtin and then its argument prototype would still apply.  */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char dlopen ();
12406 int
12407 main ()
12408 {
12409 return dlopen ();
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 for ac_lib in '' dl; do
12415   if test -z "$ac_lib"; then
12416     ac_res="none required"
12417   else
12418     ac_res=-l$ac_lib
12419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12420   fi
12421   rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } &&
12435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436   { (case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_try") 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; } &&
12445          { ac_try='test -s conftest$ac_exeext'
12446   { (case "(($ac_try" in
12447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448   *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451   (eval "$ac_try") 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_cv_search_dlopen=$ac_res
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460
12461 fi
12462
12463 rm -f core conftest.err conftest.$ac_objext \
12464       conftest$ac_exeext
12465   if test "${ac_cv_search_dlopen+set}" = set; then
12466   break
12467 fi
12468 done
12469 if test "${ac_cv_search_dlopen+set}" = set; then
12470   :
12471 else
12472   ac_cv_search_dlopen=no
12473 fi
12474 rm conftest.$ac_ext
12475 LIBS=$ac_func_search_save_LIBS
12476 fi
12477 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12478 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12479 ac_res=$ac_cv_search_dlopen
12480 if test "$ac_res" != no; then
12481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12482
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_DLOPEN 1
12485 _ACEOF
12486
12487 else
12488   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12489 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12490 fi
12491
12492
12493 if test "$llvm_cv_enable_libffi" = "yes" ; then
12494   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12495 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12496 if test "${ac_cv_search_ffi_call+set}" = set; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499   ac_func_search_save_LIBS=$LIBS
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h.  */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h.  */
12506
12507 /* Override any GCC internal prototype to avoid an error.
12508    Use char because int might match the return type of a GCC
12509    builtin and then its argument prototype would still apply.  */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 char ffi_call ();
12514 int
12515 main ()
12516 {
12517 return ffi_call ();
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 for ac_lib in '' ffi; do
12523   if test -z "$ac_lib"; then
12524     ac_res="none required"
12525   else
12526     ac_res=-l$ac_lib
12527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12528   fi
12529   rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
12531 case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_link") 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } &&
12543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544   { (case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_try") 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; } &&
12553          { ac_try='test -s conftest$ac_exeext'
12554   { (case "(($ac_try" in
12555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556   *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559   (eval "$ac_try") 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   ac_cv_search_ffi_call=$ac_res
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext \
12572       conftest$ac_exeext
12573   if test "${ac_cv_search_ffi_call+set}" = set; then
12574   break
12575 fi
12576 done
12577 if test "${ac_cv_search_ffi_call+set}" = set; then
12578   :
12579 else
12580   ac_cv_search_ffi_call=no
12581 fi
12582 rm conftest.$ac_ext
12583 LIBS=$ac_func_search_save_LIBS
12584 fi
12585 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12586 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12587 ac_res=$ac_cv_search_ffi_call
12588 if test "$ac_res" != no; then
12589   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12590
12591 cat >>confdefs.h <<\_ACEOF
12592 #define HAVE_FFI_CALL 1
12593 _ACEOF
12594
12595 else
12596   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12597 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12598    { (exit 1); exit 1; }; }
12599 fi
12600
12601 fi
12602
12603 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12604 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12605 if test "${ac_cv_search_mallinfo+set}" = set; then
12606   echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608   ac_func_search_save_LIBS=$LIBS
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615
12616 /* Override any GCC internal prototype to avoid an error.
12617    Use char because int might match the return type of a GCC
12618    builtin and then its argument prototype would still apply.  */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 char mallinfo ();
12623 int
12624 main ()
12625 {
12626 return mallinfo ();
12627   ;
12628   return 0;
12629 }
12630 _ACEOF
12631 for ac_lib in '' malloc; do
12632   if test -z "$ac_lib"; then
12633     ac_res="none required"
12634   else
12635     ac_res=-l$ac_lib
12636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12637   fi
12638   rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_link") 2>conftest.er1
12646   ac_status=$?
12647   grep -v '^ *+' conftest.er1 >conftest.err
12648   rm -f conftest.er1
12649   cat conftest.err >&5
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } &&
12652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653   { (case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_try") 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; } &&
12662          { ac_try='test -s conftest$ac_exeext'
12663   { (case "(($ac_try" in
12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665   *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668   (eval "$ac_try") 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ac_cv_search_mallinfo=$ac_res
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677
12678 fi
12679
12680 rm -f core conftest.err conftest.$ac_objext \
12681       conftest$ac_exeext
12682   if test "${ac_cv_search_mallinfo+set}" = set; then
12683   break
12684 fi
12685 done
12686 if test "${ac_cv_search_mallinfo+set}" = set; then
12687   :
12688 else
12689   ac_cv_search_mallinfo=no
12690 fi
12691 rm conftest.$ac_ext
12692 LIBS=$ac_func_search_save_LIBS
12693 fi
12694 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12695 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12696 ac_res=$ac_cv_search_mallinfo
12697 if test "$ac_res" != no; then
12698   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12699
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_MALLINFO 1
12702 _ACEOF
12703
12704 fi
12705
12706
12707 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12708
12709 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12710 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12711 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12712   echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714   ac_check_lib_save_LIBS=$LIBS
12715 LIBS="-lpthread  $LIBS"
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h.  */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h.  */
12722
12723 /* Override any GCC internal prototype to avoid an error.
12724    Use char because int might match the return type of a GCC
12725    builtin and then its argument prototype would still apply.  */
12726 #ifdef __cplusplus
12727 extern "C"
12728 #endif
12729 char pthread_mutex_init ();
12730 int
12731 main ()
12732 {
12733 return pthread_mutex_init ();
12734   ;
12735   return 0;
12736 }
12737 _ACEOF
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_link") 2>conftest.er1
12746   ac_status=$?
12747   grep -v '^ *+' conftest.er1 >conftest.err
12748   rm -f conftest.er1
12749   cat conftest.err >&5
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } &&
12752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753   { (case "(($ac_try" in
12754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755   *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758   (eval "$ac_try") 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; } &&
12762          { ac_try='test -s conftest$ac_exeext'
12763   { (case "(($ac_try" in
12764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765   *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768   (eval "$ac_try") 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772   ac_cv_lib_pthread_pthread_mutex_init=yes
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777         ac_cv_lib_pthread_pthread_mutex_init=no
12778 fi
12779
12780 rm -f core conftest.err conftest.$ac_objext \
12781       conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12785 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12786 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12787   cat >>confdefs.h <<_ACEOF
12788 #define HAVE_LIBPTHREAD 1
12789 _ACEOF
12790
12791   LIBS="-lpthread $LIBS"
12792
12793 fi
12794
12795   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12796 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12798   echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800   ac_func_search_save_LIBS=$LIBS
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807
12808 /* Override any GCC internal prototype to avoid an error.
12809    Use char because int might match the return type of a GCC
12810    builtin and then its argument prototype would still apply.  */
12811 #ifdef __cplusplus
12812 extern "C"
12813 #endif
12814 char pthread_mutex_lock ();
12815 int
12816 main ()
12817 {
12818 return pthread_mutex_lock ();
12819   ;
12820   return 0;
12821 }
12822 _ACEOF
12823 for ac_lib in '' pthread; do
12824   if test -z "$ac_lib"; then
12825     ac_res="none required"
12826   else
12827     ac_res=-l$ac_lib
12828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12829   fi
12830   rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834   *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837   (eval "$ac_link") 2>conftest.er1
12838   ac_status=$?
12839   grep -v '^ *+' conftest.er1 >conftest.err
12840   rm -f conftest.er1
12841   cat conftest.err >&5
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); } &&
12844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845   { (case "(($ac_try" in
12846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847   *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850   (eval "$ac_try") 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; } &&
12854          { ac_try='test -s conftest$ac_exeext'
12855   { (case "(($ac_try" in
12856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857   *) ac_try_echo=$ac_try;;
12858 esac
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860   (eval "$ac_try") 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; }; then
12864   ac_cv_search_pthread_mutex_lock=$ac_res
12865 else
12866   echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869
12870 fi
12871
12872 rm -f core conftest.err conftest.$ac_objext \
12873       conftest$ac_exeext
12874   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12875   break
12876 fi
12877 done
12878 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12879   :
12880 else
12881   ac_cv_search_pthread_mutex_lock=no
12882 fi
12883 rm conftest.$ac_ext
12884 LIBS=$ac_func_search_save_LIBS
12885 fi
12886 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12887 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12888 ac_res=$ac_cv_search_pthread_mutex_lock
12889 if test "$ac_res" != no; then
12890   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12891
12892 cat >>confdefs.h <<\_ACEOF
12893 #define HAVE_PTHREAD_MUTEX_LOCK 1
12894 _ACEOF
12895
12896 fi
12897
12898   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12899 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12900 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12901   echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903   ac_func_search_save_LIBS=$LIBS
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h.  */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h.  */
12910
12911 /* Override any GCC internal prototype to avoid an error.
12912    Use char because int might match the return type of a GCC
12913    builtin and then its argument prototype would still apply.  */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char pthread_rwlock_init ();
12918 int
12919 main ()
12920 {
12921 return pthread_rwlock_init ();
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 for ac_lib in '' pthread; do
12927   if test -z "$ac_lib"; then
12928     ac_res="none required"
12929   else
12930     ac_res=-l$ac_lib
12931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12932   fi
12933   rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (ac_try="$ac_link"
12935 case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_link") 2>conftest.er1
12941   ac_status=$?
12942   grep -v '^ *+' conftest.er1 >conftest.err
12943   rm -f conftest.er1
12944   cat conftest.err >&5
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } &&
12947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12948   { (case "(($ac_try" in
12949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950   *) ac_try_echo=$ac_try;;
12951 esac
12952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953   (eval "$ac_try") 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; } &&
12957          { ac_try='test -s conftest$ac_exeext'
12958   { (case "(($ac_try" in
12959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960   *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963   (eval "$ac_try") 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; }; then
12967   ac_cv_search_pthread_rwlock_init=$ac_res
12968 else
12969   echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972
12973 fi
12974
12975 rm -f core conftest.err conftest.$ac_objext \
12976       conftest$ac_exeext
12977   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12978   break
12979 fi
12980 done
12981 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12982   :
12983 else
12984   ac_cv_search_pthread_rwlock_init=no
12985 fi
12986 rm conftest.$ac_ext
12987 LIBS=$ac_func_search_save_LIBS
12988 fi
12989 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12990 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12991 ac_res=$ac_cv_search_pthread_rwlock_init
12992 if test "$ac_res" != no; then
12993   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12994
12995 cat >>confdefs.h <<\_ACEOF
12996 #define HAVE_PTHREAD_RWLOCK_INIT 1
12997 _ACEOF
12998
12999 fi
13000
13001   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13002 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13003 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13004   echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006   ac_func_search_save_LIBS=$LIBS
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013
13014 /* Override any GCC internal prototype to avoid an error.
13015    Use char because int might match the return type of a GCC
13016    builtin and then its argument prototype would still apply.  */
13017 #ifdef __cplusplus
13018 extern "C"
13019 #endif
13020 char pthread_getspecific ();
13021 int
13022 main ()
13023 {
13024 return pthread_getspecific ();
13025   ;
13026   return 0;
13027 }
13028 _ACEOF
13029 for ac_lib in '' pthread; do
13030   if test -z "$ac_lib"; then
13031     ac_res="none required"
13032   else
13033     ac_res=-l$ac_lib
13034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13035   fi
13036   rm -f conftest.$ac_objext conftest$ac_exeext
13037 if { (ac_try="$ac_link"
13038 case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_link") 2>conftest.er1
13044   ac_status=$?
13045   grep -v '^ *+' conftest.er1 >conftest.err
13046   rm -f conftest.er1
13047   cat conftest.err >&5
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } &&
13050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; } &&
13060          { ac_try='test -s conftest$ac_exeext'
13061   { (case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_try") 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; }; then
13070   ac_cv_search_pthread_getspecific=$ac_res
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075
13076 fi
13077
13078 rm -f core conftest.err conftest.$ac_objext \
13079       conftest$ac_exeext
13080   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13081   break
13082 fi
13083 done
13084 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13085   :
13086 else
13087   ac_cv_search_pthread_getspecific=no
13088 fi
13089 rm conftest.$ac_ext
13090 LIBS=$ac_func_search_save_LIBS
13091 fi
13092 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13093 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13094 ac_res=$ac_cv_search_pthread_getspecific
13095 if test "$ac_res" != no; then
13096   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13097
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_PTHREAD_GETSPECIFIC 1
13100 _ACEOF
13101
13102 fi
13103
13104 fi
13105
13106
13107 # Check whether --with-udis86 was given.
13108 if test "${with_udis86+set}" = set; then
13109   withval=$with_udis86;
13110       USE_UDIS86=1
13111
13112       case "$withval" in
13113         /usr/lib|yes) ;;
13114         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13115       esac
13116
13117 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13118 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13119 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-ludis86  $LIBS"
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h.  */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h.  */
13130
13131 /* Override any GCC internal prototype to avoid an error.
13132    Use char because int might match the return type of a GCC
13133    builtin and then its argument prototype would still apply.  */
13134 #ifdef __cplusplus
13135 extern "C"
13136 #endif
13137 char ud_init ();
13138 int
13139 main ()
13140 {
13141 return ud_init ();
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (ac_try="$ac_link"
13148 case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_link") 2>conftest.er1
13154   ac_status=$?
13155   grep -v '^ *+' conftest.er1 >conftest.err
13156   rm -f conftest.er1
13157   cat conftest.err >&5
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); } &&
13160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13161   { (case "(($ac_try" in
13162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163   *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166   (eval "$ac_try") 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }; } &&
13170          { ac_try='test -s conftest$ac_exeext'
13171   { (case "(($ac_try" in
13172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173   *) ac_try_echo=$ac_try;;
13174 esac
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176   (eval "$ac_try") 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; }; then
13180   ac_cv_lib_udis86_ud_init=yes
13181 else
13182   echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13184
13185         ac_cv_lib_udis86_ud_init=no
13186 fi
13187
13188 rm -f core conftest.err conftest.$ac_objext \
13189       conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS
13191 fi
13192 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13193 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13194 if test $ac_cv_lib_udis86_ud_init = yes; then
13195   cat >>confdefs.h <<_ACEOF
13196 #define HAVE_LIBUDIS86 1
13197 _ACEOF
13198
13199   LIBS="-ludis86 $LIBS"
13200
13201 else
13202
13203         echo "Error! You need to have libudis86 around."
13204         exit -1
13205
13206 fi
13207
13208
13209 else
13210   USE_UDIS86=0
13211
13212 fi
13213
13214
13215 cat >>confdefs.h <<_ACEOF
13216 #define USE_UDIS86 $USE_UDIS86
13217 _ACEOF
13218
13219
13220
13221 # Check whether --with-oprofile was given.
13222 if test "${with_oprofile+set}" = set; then
13223   withval=$with_oprofile;
13224       USE_OPROFILE=1
13225
13226       case "$withval" in
13227         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13228         no) llvm_cv_oppath=
13229             USE_OPROFILE=0
13230  ;;
13231         *) llvm_cv_oppath="${withval}/lib/oprofile"
13232            CPPFLAGS="-I${withval}/include";;
13233       esac
13234       if test -n "$llvm_cv_oppath" ; then
13235         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13236                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13237 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13238 if test "${ac_cv_search_bfd_init+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   ac_func_search_save_LIBS=$LIBS
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248
13249 /* Override any GCC internal prototype to avoid an error.
13250    Use char because int might match the return type of a GCC
13251    builtin and then its argument prototype would still apply.  */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 char bfd_init ();
13256 int
13257 main ()
13258 {
13259 return bfd_init ();
13260   ;
13261   return 0;
13262 }
13263 _ACEOF
13264 for ac_lib in '' bfd; do
13265   if test -z "$ac_lib"; then
13266     ac_res="none required"
13267   else
13268     ac_res=-l$ac_lib
13269     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13270   fi
13271   rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (ac_try="$ac_link"
13273 case "(($ac_try" in
13274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275   *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278   (eval "$ac_link") 2>conftest.er1
13279   ac_status=$?
13280   grep -v '^ *+' conftest.er1 >conftest.err
13281   rm -f conftest.er1
13282   cat conftest.err >&5
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); } &&
13285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13286   { (case "(($ac_try" in
13287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288   *) ac_try_echo=$ac_try;;
13289 esac
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291   (eval "$ac_try") 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; } &&
13295          { ac_try='test -s conftest$ac_exeext'
13296   { (case "(($ac_try" in
13297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298   *) ac_try_echo=$ac_try;;
13299 esac
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301   (eval "$ac_try") 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); }; }; then
13305   ac_cv_search_bfd_init=$ac_res
13306 else
13307   echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13309
13310
13311 fi
13312
13313 rm -f core conftest.err conftest.$ac_objext \
13314       conftest$ac_exeext
13315   if test "${ac_cv_search_bfd_init+set}" = set; then
13316   break
13317 fi
13318 done
13319 if test "${ac_cv_search_bfd_init+set}" = set; then
13320   :
13321 else
13322   ac_cv_search_bfd_init=no
13323 fi
13324 rm conftest.$ac_ext
13325 LIBS=$ac_func_search_save_LIBS
13326 fi
13327 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13328 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13329 ac_res=$ac_cv_search_bfd_init
13330 if test "$ac_res" != no; then
13331   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13332
13333 fi
13334
13335         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13336 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13337 if test "${ac_cv_search_op_open_agent+set}" = set; then
13338   echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340   ac_func_search_save_LIBS=$LIBS
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347
13348 /* Override any GCC internal prototype to avoid an error.
13349    Use char because int might match the return type of a GCC
13350    builtin and then its argument prototype would still apply.  */
13351 #ifdef __cplusplus
13352 extern "C"
13353 #endif
13354 char op_open_agent ();
13355 int
13356 main ()
13357 {
13358 return op_open_agent ();
13359   ;
13360   return 0;
13361 }
13362 _ACEOF
13363 for ac_lib in '' opagent; do
13364   if test -z "$ac_lib"; then
13365     ac_res="none required"
13366   else
13367     ac_res=-l$ac_lib
13368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13369   fi
13370   rm -f conftest.$ac_objext conftest$ac_exeext
13371 if { (ac_try="$ac_link"
13372 case "(($ac_try" in
13373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374   *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377   (eval "$ac_link") 2>conftest.er1
13378   ac_status=$?
13379   grep -v '^ *+' conftest.er1 >conftest.err
13380   rm -f conftest.er1
13381   cat conftest.err >&5
13382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383   (exit $ac_status); } &&
13384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385   { (case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_try") 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); }; } &&
13394          { ac_try='test -s conftest$ac_exeext'
13395   { (case "(($ac_try" in
13396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397   *) ac_try_echo=$ac_try;;
13398 esac
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400   (eval "$ac_try") 2>&5
13401   ac_status=$?
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); }; }; then
13404   ac_cv_search_op_open_agent=$ac_res
13405 else
13406   echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409
13410 fi
13411
13412 rm -f core conftest.err conftest.$ac_objext \
13413       conftest$ac_exeext
13414   if test "${ac_cv_search_op_open_agent+set}" = set; then
13415   break
13416 fi
13417 done
13418 if test "${ac_cv_search_op_open_agent+set}" = set; then
13419   :
13420 else
13421   ac_cv_search_op_open_agent=no
13422 fi
13423 rm conftest.$ac_ext
13424 LIBS=$ac_func_search_save_LIBS
13425 fi
13426 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13427 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13428 ac_res=$ac_cv_search_op_open_agent
13429 if test "$ac_res" != no; then
13430   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13431
13432 else
13433
13434           echo "Error! You need to have libopagent around."
13435           exit -1
13436
13437 fi
13438
13439         if test "${ac_cv_header_opagent_h+set}" = set; then
13440   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13441 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13442 if test "${ac_cv_header_opagent_h+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 fi
13445 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13446 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13447 else
13448   # Is the header compilable?
13449 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13450 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13451 cat >conftest.$ac_ext <<_ACEOF
13452 /* confdefs.h.  */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h.  */
13457 $ac_includes_default
13458 #include <opagent.h>
13459 _ACEOF
13460 rm -f conftest.$ac_objext
13461 if { (ac_try="$ac_compile"
13462 case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_compile") 2>conftest.er1
13468   ac_status=$?
13469   grep -v '^ *+' conftest.er1 >conftest.err
13470   rm -f conftest.er1
13471   cat conftest.err >&5
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } &&
13474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13475   { (case "(($ac_try" in
13476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477   *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480   (eval "$ac_try") 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); }; } &&
13484          { ac_try='test -s conftest.$ac_objext'
13485   { (case "(($ac_try" in
13486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487   *) ac_try_echo=$ac_try;;
13488 esac
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490   (eval "$ac_try") 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); }; }; then
13494   ac_header_compiler=yes
13495 else
13496   echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499         ac_header_compiler=no
13500 fi
13501
13502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13504 echo "${ECHO_T}$ac_header_compiler" >&6; }
13505
13506 # Is the header present?
13507 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13508 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13509 cat >conftest.$ac_ext <<_ACEOF
13510 /* confdefs.h.  */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h.  */
13515 #include <opagent.h>
13516 _ACEOF
13517 if { (ac_try="$ac_cpp conftest.$ac_ext"
13518 case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13524   ac_status=$?
13525   grep -v '^ *+' conftest.er1 >conftest.err
13526   rm -f conftest.er1
13527   cat conftest.err >&5
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } >/dev/null; then
13530   if test -s conftest.err; then
13531     ac_cpp_err=$ac_c_preproc_warn_flag
13532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13533   else
13534     ac_cpp_err=
13535   fi
13536 else
13537   ac_cpp_err=yes
13538 fi
13539 if test -z "$ac_cpp_err"; then
13540   ac_header_preproc=yes
13541 else
13542   echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545   ac_header_preproc=no
13546 fi
13547
13548 rm -f conftest.err conftest.$ac_ext
13549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13550 echo "${ECHO_T}$ac_header_preproc" >&6; }
13551
13552 # So?  What about this header?
13553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13554   yes:no: )
13555     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13556 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13557     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13558 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13559     ac_header_preproc=yes
13560     ;;
13561   no:yes:* )
13562     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13563 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13564     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13565 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13566     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13567 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13568     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13569 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13570     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13571 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13572     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13573 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13574     ( cat <<\_ASBOX
13575 ## ------------------------------ ##
13576 ## Report this to bugs@yourdomain ##
13577 ## ------------------------------ ##
13578 _ASBOX
13579      ) | sed "s/^/$as_me: WARNING:     /" >&2
13580     ;;
13581 esac
13582 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13583 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13584 if test "${ac_cv_header_opagent_h+set}" = set; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587   ac_cv_header_opagent_h=$ac_header_preproc
13588 fi
13589 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13590 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13591
13592 fi
13593 if test $ac_cv_header_opagent_h = yes; then
13594   :
13595 else
13596
13597           echo "Error! You need to have opagent.h around."
13598           exit -1
13599
13600 fi
13601
13602
13603       fi
13604
13605 else
13606
13607       USE_OPROFILE=0
13608
13609
13610 fi
13611
13612
13613 cat >>confdefs.h <<_ACEOF
13614 #define USE_OPROFILE $USE_OPROFILE
13615 _ACEOF
13616
13617
13618
13619
13620
13621
13622
13623
13624 ac_header_dirent=no
13625 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13626   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13627 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13628 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13630   echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632   cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h.  */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h.  */
13638 #include <sys/types.h>
13639 #include <$ac_hdr>
13640
13641 int
13642 main ()
13643 {
13644 if ((DIR *) 0)
13645 return 0;
13646   ;
13647   return 0;
13648 }
13649 _ACEOF
13650 rm -f conftest.$ac_objext
13651 if { (ac_try="$ac_compile"
13652 case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657   (eval "$ac_compile") 2>conftest.er1
13658   ac_status=$?
13659   grep -v '^ *+' conftest.er1 >conftest.err
13660   rm -f conftest.er1
13661   cat conftest.err >&5
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } &&
13664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13665   { (case "(($ac_try" in
13666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667   *) ac_try_echo=$ac_try;;
13668 esac
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670   (eval "$ac_try") 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); }; } &&
13674          { ac_try='test -s conftest.$ac_objext'
13675   { (case "(($ac_try" in
13676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677   *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680   (eval "$ac_try") 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); }; }; then
13684   eval "$as_ac_Header=yes"
13685 else
13686   echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689         eval "$as_ac_Header=no"
13690 fi
13691
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 fi
13694 ac_res=`eval echo '${'$as_ac_Header'}'`
13695                { echo "$as_me:$LINENO: result: $ac_res" >&5
13696 echo "${ECHO_T}$ac_res" >&6; }
13697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13698   cat >>confdefs.h <<_ACEOF
13699 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13700 _ACEOF
13701
13702 ac_header_dirent=$ac_hdr; break
13703 fi
13704
13705 done
13706 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13707 if test $ac_header_dirent = dirent.h; then
13708   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13710 if test "${ac_cv_search_opendir+set}" = set; then
13711   echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713   ac_func_search_save_LIBS=$LIBS
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h.  */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h.  */
13720
13721 /* Override any GCC internal prototype to avoid an error.
13722    Use char because int might match the return type of a GCC
13723    builtin and then its argument prototype would still apply.  */
13724 #ifdef __cplusplus
13725 extern "C"
13726 #endif
13727 char opendir ();
13728 int
13729 main ()
13730 {
13731 return opendir ();
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 for ac_lib in '' dir; do
13737   if test -z "$ac_lib"; then
13738     ac_res="none required"
13739   else
13740     ac_res=-l$ac_lib
13741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13742   fi
13743   rm -f conftest.$ac_objext conftest$ac_exeext
13744 if { (ac_try="$ac_link"
13745 case "(($ac_try" in
13746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747   *) ac_try_echo=$ac_try;;
13748 esac
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750   (eval "$ac_link") 2>conftest.er1
13751   ac_status=$?
13752   grep -v '^ *+' conftest.er1 >conftest.err
13753   rm -f conftest.er1
13754   cat conftest.err >&5
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); } &&
13757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13758   { (case "(($ac_try" in
13759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760   *) ac_try_echo=$ac_try;;
13761 esac
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763   (eval "$ac_try") 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; } &&
13767          { ac_try='test -s conftest$ac_exeext'
13768   { (case "(($ac_try" in
13769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770   *) ac_try_echo=$ac_try;;
13771 esac
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773   (eval "$ac_try") 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; }; then
13777   ac_cv_search_opendir=$ac_res
13778 else
13779   echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13781
13782
13783 fi
13784
13785 rm -f core conftest.err conftest.$ac_objext \
13786       conftest$ac_exeext
13787   if test "${ac_cv_search_opendir+set}" = set; then
13788   break
13789 fi
13790 done
13791 if test "${ac_cv_search_opendir+set}" = set; then
13792   :
13793 else
13794   ac_cv_search_opendir=no
13795 fi
13796 rm conftest.$ac_ext
13797 LIBS=$ac_func_search_save_LIBS
13798 fi
13799 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13800 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13801 ac_res=$ac_cv_search_opendir
13802 if test "$ac_res" != no; then
13803   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13804
13805 fi
13806
13807 else
13808   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13810 if test "${ac_cv_search_opendir+set}" = set; then
13811   echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813   ac_func_search_save_LIBS=$LIBS
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h.  */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h.  */
13820
13821 /* Override any GCC internal prototype to avoid an error.
13822    Use char because int might match the return type of a GCC
13823    builtin and then its argument prototype would still apply.  */
13824 #ifdef __cplusplus
13825 extern "C"
13826 #endif
13827 char opendir ();
13828 int
13829 main ()
13830 {
13831 return opendir ();
13832   ;
13833   return 0;
13834 }
13835 _ACEOF
13836 for ac_lib in '' x; do
13837   if test -z "$ac_lib"; then
13838     ac_res="none required"
13839   else
13840     ac_res=-l$ac_lib
13841     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13842   fi
13843   rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (ac_try="$ac_link"
13845 case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_link") 2>conftest.er1
13851   ac_status=$?
13852   grep -v '^ *+' conftest.er1 >conftest.err
13853   rm -f conftest.er1
13854   cat conftest.err >&5
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); } &&
13857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13858   { (case "(($ac_try" in
13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860   *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863   (eval "$ac_try") 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; } &&
13867          { ac_try='test -s conftest$ac_exeext'
13868   { (case "(($ac_try" in
13869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870   *) ac_try_echo=$ac_try;;
13871 esac
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873   (eval "$ac_try") 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; }; then
13877   ac_cv_search_opendir=$ac_res
13878 else
13879   echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882
13883 fi
13884
13885 rm -f core conftest.err conftest.$ac_objext \
13886       conftest$ac_exeext
13887   if test "${ac_cv_search_opendir+set}" = set; then
13888   break
13889 fi
13890 done
13891 if test "${ac_cv_search_opendir+set}" = set; then
13892   :
13893 else
13894   ac_cv_search_opendir=no
13895 fi
13896 rm conftest.$ac_ext
13897 LIBS=$ac_func_search_save_LIBS
13898 fi
13899 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13900 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13901 ac_res=$ac_cv_search_opendir
13902 if test "$ac_res" != no; then
13903   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13904
13905 fi
13906
13907 fi
13908
13909 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13910 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13911 if test "${ac_cv_header_mmap_anon+set}" = set; then
13912   echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914    ac_ext=c
13915 ac_cpp='$CPP $CPPFLAGS'
13916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13919
13920   cat >conftest.$ac_ext <<_ACEOF
13921 /* confdefs.h.  */
13922 _ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h.  */
13926 #include <sys/mman.h>
13927 #include <unistd.h>
13928 #include <fcntl.h>
13929 int
13930 main ()
13931 {
13932 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (ac_try="$ac_compile"
13939 case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944   (eval "$ac_compile") 2>conftest.er1
13945   ac_status=$?
13946   grep -v '^ *+' conftest.er1 >conftest.err
13947   rm -f conftest.er1
13948   cat conftest.err >&5
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } &&
13951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13952   { (case "(($ac_try" in
13953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954   *) ac_try_echo=$ac_try;;
13955 esac
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957   (eval "$ac_try") 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); }; } &&
13961          { ac_try='test -s conftest.$ac_objext'
13962   { (case "(($ac_try" in
13963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964   *) ac_try_echo=$ac_try;;
13965 esac
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967   (eval "$ac_try") 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   ac_cv_header_mmap_anon=yes
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976         ac_cv_header_mmap_anon=no
13977 fi
13978
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980   ac_ext=c
13981 ac_cpp='$CPP $CPPFLAGS'
13982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13985
13986
13987 fi
13988 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13989 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13990 if test "$ac_cv_header_mmap_anon" = yes; then
13991
13992 cat >>confdefs.h <<\_ACEOF
13993 #define HAVE_MMAP_ANONYMOUS 1
13994 _ACEOF
13995
13996 fi
13997
13998 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13999 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_stat_broken+set}" = set; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003   cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h.  */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h.  */
14009 #include <sys/types.h>
14010 #include <sys/stat.h>
14011
14012 #if defined S_ISBLK && defined S_IFDIR
14013 # if S_ISBLK (S_IFDIR)
14014 You lose.
14015 # endif
14016 #endif
14017
14018 #if defined S_ISBLK && defined S_IFCHR
14019 # if S_ISBLK (S_IFCHR)
14020 You lose.
14021 # endif
14022 #endif
14023
14024 #if defined S_ISLNK && defined S_IFREG
14025 # if S_ISLNK (S_IFREG)
14026 You lose.
14027 # endif
14028 #endif
14029
14030 #if defined S_ISSOCK && defined S_IFREG
14031 # if S_ISSOCK (S_IFREG)
14032 You lose.
14033 # endif
14034 #endif
14035
14036 _ACEOF
14037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14038   $EGREP "You lose" >/dev/null 2>&1; then
14039   ac_cv_header_stat_broken=yes
14040 else
14041   ac_cv_header_stat_broken=no
14042 fi
14043 rm -f conftest*
14044
14045 fi
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14047 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14048 if test $ac_cv_header_stat_broken = yes; then
14049
14050 cat >>confdefs.h <<\_ACEOF
14051 #define STAT_MACROS_BROKEN 1
14052 _ACEOF
14053
14054 fi
14055
14056 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14057 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14058 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h.  */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h.  */
14067 #include <sys/types.h>
14068 #include <sys/wait.h>
14069 #ifndef WEXITSTATUS
14070 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14071 #endif
14072 #ifndef WIFEXITED
14073 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14074 #endif
14075
14076 int
14077 main ()
14078 {
14079   int s;
14080   wait (&s);
14081   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 rm -f conftest.$ac_objext
14087 if { (ac_try="$ac_compile"
14088 case "(($ac_try" in
14089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090   *) ac_try_echo=$ac_try;;
14091 esac
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093   (eval "$ac_compile") 2>conftest.er1
14094   ac_status=$?
14095   grep -v '^ *+' conftest.er1 >conftest.err
14096   rm -f conftest.er1
14097   cat conftest.err >&5
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); } &&
14100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14101   { (case "(($ac_try" in
14102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103   *) ac_try_echo=$ac_try;;
14104 esac
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106   (eval "$ac_try") 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; } &&
14110          { ac_try='test -s conftest.$ac_objext'
14111   { (case "(($ac_try" in
14112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113   *) ac_try_echo=$ac_try;;
14114 esac
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116   (eval "$ac_try") 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; }; then
14120   ac_cv_header_sys_wait_h=yes
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125         ac_cv_header_sys_wait_h=no
14126 fi
14127
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 fi
14130 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14131 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14132 if test $ac_cv_header_sys_wait_h = yes; then
14133
14134 cat >>confdefs.h <<\_ACEOF
14135 #define HAVE_SYS_WAIT_H 1
14136 _ACEOF
14137
14138 fi
14139
14140 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14141 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14142 if test "${ac_cv_header_time+set}" = set; then
14143   echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145   cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151 #include <sys/types.h>
14152 #include <sys/time.h>
14153 #include <time.h>
14154
14155 int
14156 main ()
14157 {
14158 if ((struct tm *) 0)
14159 return 0;
14160   ;
14161   return 0;
14162 }
14163 _ACEOF
14164 rm -f conftest.$ac_objext
14165 if { (ac_try="$ac_compile"
14166 case "(($ac_try" in
14167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168   *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171   (eval "$ac_compile") 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } &&
14178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14179   { (case "(($ac_try" in
14180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181   *) ac_try_echo=$ac_try;;
14182 esac
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184   (eval "$ac_try") 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; } &&
14188          { ac_try='test -s conftest.$ac_objext'
14189   { (case "(($ac_try" in
14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191   *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194   (eval "$ac_try") 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; }; then
14198   ac_cv_header_time=yes
14199 else
14200   echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203         ac_cv_header_time=no
14204 fi
14205
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 fi
14208 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14209 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14210 if test $ac_cv_header_time = yes; then
14211
14212 cat >>confdefs.h <<\_ACEOF
14213 #define TIME_WITH_SYS_TIME 1
14214 _ACEOF
14215
14216 fi
14217
14218
14219
14220
14221
14222
14223
14224
14225 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14226 do
14227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14232   echo $ECHO_N "(cached) $ECHO_C" >&6
14233 fi
14234 ac_res=`eval echo '${'$as_ac_Header'}'`
14235                { echo "$as_me:$LINENO: result: $ac_res" >&5
14236 echo "${ECHO_T}$ac_res" >&6; }
14237 else
14238   # Is the header compilable?
14239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14241 cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h.  */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h.  */
14247 $ac_includes_default
14248 #include <$ac_header>
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (ac_try="$ac_compile"
14252 case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_compile") 2>conftest.er1
14258   ac_status=$?
14259   grep -v '^ *+' conftest.er1 >conftest.err
14260   rm -f conftest.er1
14261   cat conftest.err >&5
14262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263   (exit $ac_status); } &&
14264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14265   { (case "(($ac_try" in
14266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267   *) ac_try_echo=$ac_try;;
14268 esac
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270   (eval "$ac_try") 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }; } &&
14274          { ac_try='test -s conftest.$ac_objext'
14275   { (case "(($ac_try" in
14276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277   *) ac_try_echo=$ac_try;;
14278 esac
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280   (eval "$ac_try") 2>&5
14281   ac_status=$?
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); }; }; then
14284   ac_header_compiler=yes
14285 else
14286   echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289         ac_header_compiler=no
14290 fi
14291
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14294 echo "${ECHO_T}$ac_header_compiler" >&6; }
14295
14296 # Is the header present?
14297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14299 cat >conftest.$ac_ext <<_ACEOF
14300 /* confdefs.h.  */
14301 _ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h.  */
14305 #include <$ac_header>
14306 _ACEOF
14307 if { (ac_try="$ac_cpp conftest.$ac_ext"
14308 case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } >/dev/null; then
14320   if test -s conftest.err; then
14321     ac_cpp_err=$ac_c_preproc_warn_flag
14322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14323   else
14324     ac_cpp_err=
14325   fi
14326 else
14327   ac_cpp_err=yes
14328 fi
14329 if test -z "$ac_cpp_err"; then
14330   ac_header_preproc=yes
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335   ac_header_preproc=no
14336 fi
14337
14338 rm -f conftest.err conftest.$ac_ext
14339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14340 echo "${ECHO_T}$ac_header_preproc" >&6; }
14341
14342 # So?  What about this header?
14343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14344   yes:no: )
14345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14349     ac_header_preproc=yes
14350     ;;
14351   no:yes:* )
14352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14364     ( cat <<\_ASBOX
14365 ## ------------------------------ ##
14366 ## Report this to bugs@yourdomain ##
14367 ## ------------------------------ ##
14368 _ASBOX
14369      ) | sed "s/^/$as_me: WARNING:     /" >&2
14370     ;;
14371 esac
14372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377   eval "$as_ac_Header=\$ac_header_preproc"
14378 fi
14379 ac_res=`eval echo '${'$as_ac_Header'}'`
14380                { echo "$as_me:$LINENO: result: $ac_res" >&5
14381 echo "${ECHO_T}$ac_res" >&6; }
14382
14383 fi
14384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14385   cat >>confdefs.h <<_ACEOF
14386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14387 _ACEOF
14388
14389 fi
14390
14391 done
14392
14393
14394
14395
14396
14397
14398
14399 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14400 do
14401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14406   echo $ECHO_N "(cached) $ECHO_C" >&6
14407 fi
14408 ac_res=`eval echo '${'$as_ac_Header'}'`
14409                { echo "$as_me:$LINENO: result: $ac_res" >&5
14410 echo "${ECHO_T}$ac_res" >&6; }
14411 else
14412   # Is the header compilable?
14413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h.  */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h.  */
14421 $ac_includes_default
14422 #include <$ac_header>
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (ac_try="$ac_compile"
14426 case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_compile") 2>conftest.er1
14432   ac_status=$?
14433   grep -v '^ *+' conftest.er1 >conftest.err
14434   rm -f conftest.er1
14435   cat conftest.err >&5
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } &&
14438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14439   { (case "(($ac_try" in
14440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441   *) ac_try_echo=$ac_try;;
14442 esac
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444   (eval "$ac_try") 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; } &&
14448          { ac_try='test -s conftest.$ac_objext'
14449   { (case "(($ac_try" in
14450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451   *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454   (eval "$ac_try") 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; }; then
14458   ac_header_compiler=yes
14459 else
14460   echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463         ac_header_compiler=no
14464 fi
14465
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14468 echo "${ECHO_T}$ac_header_compiler" >&6; }
14469
14470 # Is the header present?
14471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h.  */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h.  */
14479 #include <$ac_header>
14480 _ACEOF
14481 if { (ac_try="$ac_cpp conftest.$ac_ext"
14482 case "(($ac_try" in
14483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484   *) ac_try_echo=$ac_try;;
14485 esac
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488   ac_status=$?
14489   grep -v '^ *+' conftest.er1 >conftest.err
14490   rm -f conftest.er1
14491   cat conftest.err >&5
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); } >/dev/null; then
14494   if test -s conftest.err; then
14495     ac_cpp_err=$ac_c_preproc_warn_flag
14496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14497   else
14498     ac_cpp_err=
14499   fi
14500 else
14501   ac_cpp_err=yes
14502 fi
14503 if test -z "$ac_cpp_err"; then
14504   ac_header_preproc=yes
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509   ac_header_preproc=no
14510 fi
14511
14512 rm -f conftest.err conftest.$ac_ext
14513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14514 echo "${ECHO_T}$ac_header_preproc" >&6; }
14515
14516 # So?  What about this header?
14517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14518   yes:no: )
14519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14523     ac_header_preproc=yes
14524     ;;
14525   no:yes:* )
14526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14538     ( cat <<\_ASBOX
14539 ## ------------------------------ ##
14540 ## Report this to bugs@yourdomain ##
14541 ## ------------------------------ ##
14542 _ASBOX
14543      ) | sed "s/^/$as_me: WARNING:     /" >&2
14544     ;;
14545 esac
14546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14549   echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551   eval "$as_ac_Header=\$ac_header_preproc"
14552 fi
14553 ac_res=`eval echo '${'$as_ac_Header'}'`
14554                { echo "$as_me:$LINENO: result: $ac_res" >&5
14555 echo "${ECHO_T}$ac_res" >&6; }
14556
14557 fi
14558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559   cat >>confdefs.h <<_ACEOF
14560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14561 _ACEOF
14562
14563 fi
14564
14565 done
14566
14567
14568
14569 for ac_header in utime.h windows.h
14570 do
14571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576   echo $ECHO_N "(cached) $ECHO_C" >&6
14577 fi
14578 ac_res=`eval echo '${'$as_ac_Header'}'`
14579                { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14581 else
14582   # Is the header compilable?
14583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h.  */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h.  */
14591 $ac_includes_default
14592 #include <$ac_header>
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_compile") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609   { (case "(($ac_try" in
14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611   *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614   (eval "$ac_try") 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; } &&
14618          { ac_try='test -s conftest.$ac_objext'
14619   { (case "(($ac_try" in
14620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621   *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624   (eval "$ac_try") 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; }; then
14628   ac_header_compiler=yes
14629 else
14630   echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633         ac_header_compiler=no
14634 fi
14635
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14638 echo "${ECHO_T}$ac_header_compiler" >&6; }
14639
14640 # Is the header present?
14641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14643 cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649 #include <$ac_header>
14650 _ACEOF
14651 if { (ac_try="$ac_cpp conftest.$ac_ext"
14652 case "(($ac_try" in
14653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654   *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658   ac_status=$?
14659   grep -v '^ *+' conftest.er1 >conftest.err
14660   rm -f conftest.er1
14661   cat conftest.err >&5
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } >/dev/null; then
14664   if test -s conftest.err; then
14665     ac_cpp_err=$ac_c_preproc_warn_flag
14666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14667   else
14668     ac_cpp_err=
14669   fi
14670 else
14671   ac_cpp_err=yes
14672 fi
14673 if test -z "$ac_cpp_err"; then
14674   ac_header_preproc=yes
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679   ac_header_preproc=no
14680 fi
14681
14682 rm -f conftest.err conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684 echo "${ECHO_T}$ac_header_preproc" >&6; }
14685
14686 # So?  What about this header?
14687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14688   yes:no: )
14689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14693     ac_header_preproc=yes
14694     ;;
14695   no:yes:* )
14696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14708     ( cat <<\_ASBOX
14709 ## ------------------------------ ##
14710 ## Report this to bugs@yourdomain ##
14711 ## ------------------------------ ##
14712 _ASBOX
14713      ) | sed "s/^/$as_me: WARNING:     /" >&2
14714     ;;
14715 esac
14716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14719   echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721   eval "$as_ac_Header=\$ac_header_preproc"
14722 fi
14723 ac_res=`eval echo '${'$as_ac_Header'}'`
14724                { echo "$as_me:$LINENO: result: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14726
14727 fi
14728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14729   cat >>confdefs.h <<_ACEOF
14730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14731 _ACEOF
14732
14733 fi
14734
14735 done
14736
14737
14738
14739
14740
14741
14742 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14743 do
14744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749   echo $ECHO_N "(cached) $ECHO_C" >&6
14750 fi
14751 ac_res=`eval echo '${'$as_ac_Header'}'`
14752                { echo "$as_me:$LINENO: result: $ac_res" >&5
14753 echo "${ECHO_T}$ac_res" >&6; }
14754 else
14755   # Is the header compilable?
14756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764 $ac_includes_default
14765 #include <$ac_header>
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (ac_try="$ac_compile"
14769 case "(($ac_try" in
14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771   *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774   (eval "$ac_compile") 2>conftest.er1
14775   ac_status=$?
14776   grep -v '^ *+' conftest.er1 >conftest.err
14777   rm -f conftest.er1
14778   cat conftest.err >&5
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); } &&
14781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14782   { (case "(($ac_try" in
14783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784   *) ac_try_echo=$ac_try;;
14785 esac
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787   (eval "$ac_try") 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; } &&
14791          { ac_try='test -s conftest.$ac_objext'
14792   { (case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797   (eval "$ac_try") 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; }; then
14801   ac_header_compiler=yes
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806         ac_header_compiler=no
14807 fi
14808
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14811 echo "${ECHO_T}$ac_header_compiler" >&6; }
14812
14813 # Is the header present?
14814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h.  */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h.  */
14822 #include <$ac_header>
14823 _ACEOF
14824 if { (ac_try="$ac_cpp conftest.$ac_ext"
14825 case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } >/dev/null; then
14837   if test -s conftest.err; then
14838     ac_cpp_err=$ac_c_preproc_warn_flag
14839     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14840   else
14841     ac_cpp_err=
14842   fi
14843 else
14844   ac_cpp_err=yes
14845 fi
14846 if test -z "$ac_cpp_err"; then
14847   ac_header_preproc=yes
14848 else
14849   echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852   ac_header_preproc=no
14853 fi
14854
14855 rm -f conftest.err conftest.$ac_ext
14856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14857 echo "${ECHO_T}$ac_header_preproc" >&6; }
14858
14859 # So?  What about this header?
14860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14861   yes:no: )
14862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14866     ac_header_preproc=yes
14867     ;;
14868   no:yes:* )
14869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14881     ( cat <<\_ASBOX
14882 ## ------------------------------ ##
14883 ## Report this to bugs@yourdomain ##
14884 ## ------------------------------ ##
14885 _ASBOX
14886      ) | sed "s/^/$as_me: WARNING:     /" >&2
14887     ;;
14888 esac
14889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894   eval "$as_ac_Header=\$ac_header_preproc"
14895 fi
14896 ac_res=`eval echo '${'$as_ac_Header'}'`
14897                { echo "$as_me:$LINENO: result: $ac_res" >&5
14898 echo "${ECHO_T}$ac_res" >&6; }
14899
14900 fi
14901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14902   cat >>confdefs.h <<_ACEOF
14903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14904 _ACEOF
14905
14906 fi
14907
14908 done
14909
14910
14911
14912
14913
14914 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14915 do
14916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14918   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 fi
14923 ac_res=`eval echo '${'$as_ac_Header'}'`
14924                { echo "$as_me:$LINENO: result: $ac_res" >&5
14925 echo "${ECHO_T}$ac_res" >&6; }
14926 else
14927   # Is the header compilable?
14928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h.  */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h.  */
14936 $ac_includes_default
14937 #include <$ac_header>
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (ac_try="$ac_compile"
14941 case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_compile") 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } &&
14953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14954   { (case "(($ac_try" in
14955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956   *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959   (eval "$ac_try") 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; } &&
14963          { ac_try='test -s conftest.$ac_objext'
14964   { (case "(($ac_try" in
14965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966   *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969   (eval "$ac_try") 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; }; then
14973   ac_header_compiler=yes
14974 else
14975   echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14977
14978         ac_header_compiler=no
14979 fi
14980
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14983 echo "${ECHO_T}$ac_header_compiler" >&6; }
14984
14985 # Is the header present?
14986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h.  */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h.  */
14994 #include <$ac_header>
14995 _ACEOF
14996 if { (ac_try="$ac_cpp conftest.$ac_ext"
14997 case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15003   ac_status=$?
15004   grep -v '^ *+' conftest.er1 >conftest.err
15005   rm -f conftest.er1
15006   cat conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } >/dev/null; then
15009   if test -s conftest.err; then
15010     ac_cpp_err=$ac_c_preproc_warn_flag
15011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15012   else
15013     ac_cpp_err=
15014   fi
15015 else
15016   ac_cpp_err=yes
15017 fi
15018 if test -z "$ac_cpp_err"; then
15019   ac_header_preproc=yes
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024   ac_header_preproc=no
15025 fi
15026
15027 rm -f conftest.err conftest.$ac_ext
15028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15029 echo "${ECHO_T}$ac_header_preproc" >&6; }
15030
15031 # So?  What about this header?
15032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15033   yes:no: )
15034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15038     ac_header_preproc=yes
15039     ;;
15040   no:yes:* )
15041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15053     ( cat <<\_ASBOX
15054 ## ------------------------------ ##
15055 ## Report this to bugs@yourdomain ##
15056 ## ------------------------------ ##
15057 _ASBOX
15058      ) | sed "s/^/$as_me: WARNING:     /" >&2
15059     ;;
15060 esac
15061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066   eval "$as_ac_Header=\$ac_header_preproc"
15067 fi
15068 ac_res=`eval echo '${'$as_ac_Header'}'`
15069                { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15071
15072 fi
15073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15074   cat >>confdefs.h <<_ACEOF
15075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15076 _ACEOF
15077
15078 fi
15079
15080 done
15081
15082
15083 for ac_header in valgrind/valgrind.h
15084 do
15085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15090   echo $ECHO_N "(cached) $ECHO_C" >&6
15091 fi
15092 ac_res=`eval echo '${'$as_ac_Header'}'`
15093                { echo "$as_me:$LINENO: result: $ac_res" >&5
15094 echo "${ECHO_T}$ac_res" >&6; }
15095 else
15096   # Is the header compilable?
15097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15099 cat >conftest.$ac_ext <<_ACEOF
15100 /* confdefs.h.  */
15101 _ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h.  */
15105 $ac_includes_default
15106 #include <$ac_header>
15107 _ACEOF
15108 rm -f conftest.$ac_objext
15109 if { (ac_try="$ac_compile"
15110 case "(($ac_try" in
15111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112   *) ac_try_echo=$ac_try;;
15113 esac
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115   (eval "$ac_compile") 2>conftest.er1
15116   ac_status=$?
15117   grep -v '^ *+' conftest.er1 >conftest.err
15118   rm -f conftest.er1
15119   cat conftest.err >&5
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); } &&
15122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15123   { (case "(($ac_try" in
15124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125   *) ac_try_echo=$ac_try;;
15126 esac
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128   (eval "$ac_try") 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); }; } &&
15132          { ac_try='test -s conftest.$ac_objext'
15133   { (case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138   (eval "$ac_try") 2>&5
15139   ac_status=$?
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   (exit $ac_status); }; }; then
15142   ac_header_compiler=yes
15143 else
15144   echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15146
15147         ac_header_compiler=no
15148 fi
15149
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15152 echo "${ECHO_T}$ac_header_compiler" >&6; }
15153
15154 # Is the header present?
15155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15157 cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h.  */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h.  */
15163 #include <$ac_header>
15164 _ACEOF
15165 if { (ac_try="$ac_cpp conftest.$ac_ext"
15166 case "(($ac_try" in
15167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168   *) ac_try_echo=$ac_try;;
15169 esac
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15172   ac_status=$?
15173   grep -v '^ *+' conftest.er1 >conftest.err
15174   rm -f conftest.er1
15175   cat conftest.err >&5
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } >/dev/null; then
15178   if test -s conftest.err; then
15179     ac_cpp_err=$ac_c_preproc_warn_flag
15180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15181   else
15182     ac_cpp_err=
15183   fi
15184 else
15185   ac_cpp_err=yes
15186 fi
15187 if test -z "$ac_cpp_err"; then
15188   ac_header_preproc=yes
15189 else
15190   echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193   ac_header_preproc=no
15194 fi
15195
15196 rm -f conftest.err conftest.$ac_ext
15197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15198 echo "${ECHO_T}$ac_header_preproc" >&6; }
15199
15200 # So?  What about this header?
15201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15202   yes:no: )
15203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15207     ac_header_preproc=yes
15208     ;;
15209   no:yes:* )
15210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15222     ( cat <<\_ASBOX
15223 ## ------------------------------ ##
15224 ## Report this to bugs@yourdomain ##
15225 ## ------------------------------ ##
15226 _ASBOX
15227      ) | sed "s/^/$as_me: WARNING:     /" >&2
15228     ;;
15229 esac
15230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   eval "$as_ac_Header=\$ac_header_preproc"
15236 fi
15237 ac_res=`eval echo '${'$as_ac_Header'}'`
15238                { echo "$as_me:$LINENO: result: $ac_res" >&5
15239 echo "${ECHO_T}$ac_res" >&6; }
15240
15241 fi
15242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15243   cat >>confdefs.h <<_ACEOF
15244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15245 _ACEOF
15246
15247 fi
15248
15249 done
15250
15251
15252 for ac_header in fenv.h
15253 do
15254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15259   echo $ECHO_N "(cached) $ECHO_C" >&6
15260 fi
15261 ac_res=`eval echo '${'$as_ac_Header'}'`
15262                { echo "$as_me:$LINENO: result: $ac_res" >&5
15263 echo "${ECHO_T}$ac_res" >&6; }
15264 else
15265   # Is the header compilable?
15266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15268 cat >conftest.$ac_ext <<_ACEOF
15269 /* confdefs.h.  */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h.  */
15274 $ac_includes_default
15275 #include <$ac_header>
15276 _ACEOF
15277 rm -f conftest.$ac_objext
15278 if { (ac_try="$ac_compile"
15279 case "(($ac_try" in
15280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281   *) ac_try_echo=$ac_try;;
15282 esac
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284   (eval "$ac_compile") 2>conftest.er1
15285   ac_status=$?
15286   grep -v '^ *+' conftest.er1 >conftest.err
15287   rm -f conftest.er1
15288   cat conftest.err >&5
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); } &&
15291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15292   { (case "(($ac_try" in
15293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294   *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297   (eval "$ac_try") 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); }; } &&
15301          { ac_try='test -s conftest.$ac_objext'
15302   { (case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_try") 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; }; then
15311   ac_header_compiler=yes
15312 else
15313   echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15315
15316         ac_header_compiler=no
15317 fi
15318
15319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15321 echo "${ECHO_T}$ac_header_compiler" >&6; }
15322
15323 # Is the header present?
15324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15326 cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h.  */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h.  */
15332 #include <$ac_header>
15333 _ACEOF
15334 if { (ac_try="$ac_cpp conftest.$ac_ext"
15335 case "(($ac_try" in
15336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337   *) ac_try_echo=$ac_try;;
15338 esac
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15341   ac_status=$?
15342   grep -v '^ *+' conftest.er1 >conftest.err
15343   rm -f conftest.er1
15344   cat conftest.err >&5
15345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346   (exit $ac_status); } >/dev/null; then
15347   if test -s conftest.err; then
15348     ac_cpp_err=$ac_c_preproc_warn_flag
15349     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15350   else
15351     ac_cpp_err=
15352   fi
15353 else
15354   ac_cpp_err=yes
15355 fi
15356 if test -z "$ac_cpp_err"; then
15357   ac_header_preproc=yes
15358 else
15359   echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15361
15362   ac_header_preproc=no
15363 fi
15364
15365 rm -f conftest.err conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15367 echo "${ECHO_T}$ac_header_preproc" >&6; }
15368
15369 # So?  What about this header?
15370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15371   yes:no: )
15372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15376     ac_header_preproc=yes
15377     ;;
15378   no:yes:* )
15379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15391     ( cat <<\_ASBOX
15392 ## ------------------------------ ##
15393 ## Report this to bugs@yourdomain ##
15394 ## ------------------------------ ##
15395 _ASBOX
15396      ) | sed "s/^/$as_me: WARNING:     /" >&2
15397     ;;
15398 esac
15399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15402   echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404   eval "$as_ac_Header=\$ac_header_preproc"
15405 fi
15406 ac_res=`eval echo '${'$as_ac_Header'}'`
15407                { echo "$as_me:$LINENO: result: $ac_res" >&5
15408 echo "${ECHO_T}$ac_res" >&6; }
15409
15410 fi
15411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15412   cat >>confdefs.h <<_ACEOF
15413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15414 _ACEOF
15415
15416 fi
15417
15418 done
15419
15420 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15421
15422 for ac_header in pthread.h
15423 do
15424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429   echo $ECHO_N "(cached) $ECHO_C" >&6
15430 fi
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432                { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15434 else
15435   # Is the header compilable?
15436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h.  */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h.  */
15444 $ac_includes_default
15445 #include <$ac_header>
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454   (eval "$ac_compile") 2>conftest.er1
15455   ac_status=$?
15456   grep -v '^ *+' conftest.er1 >conftest.err
15457   rm -f conftest.er1
15458   cat conftest.err >&5
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); } &&
15461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15462   { (case "(($ac_try" in
15463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464   *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467   (eval "$ac_try") 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; } &&
15471          { ac_try='test -s conftest.$ac_objext'
15472   { (case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_try") 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }; }; then
15481   ac_header_compiler=yes
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486         ac_header_compiler=no
15487 fi
15488
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15491 echo "${ECHO_T}$ac_header_compiler" >&6; }
15492
15493 # Is the header present?
15494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h.  */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h.  */
15502 #include <$ac_header>
15503 _ACEOF
15504 if { (ac_try="$ac_cpp conftest.$ac_ext"
15505 case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15511   ac_status=$?
15512   grep -v '^ *+' conftest.er1 >conftest.err
15513   rm -f conftest.er1
15514   cat conftest.err >&5
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); } >/dev/null; then
15517   if test -s conftest.err; then
15518     ac_cpp_err=$ac_c_preproc_warn_flag
15519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15520   else
15521     ac_cpp_err=
15522   fi
15523 else
15524   ac_cpp_err=yes
15525 fi
15526 if test -z "$ac_cpp_err"; then
15527   ac_header_preproc=yes
15528 else
15529   echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532   ac_header_preproc=no
15533 fi
15534
15535 rm -f conftest.err conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15537 echo "${ECHO_T}$ac_header_preproc" >&6; }
15538
15539 # So?  What about this header?
15540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15541   yes:no: )
15542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15546     ac_header_preproc=yes
15547     ;;
15548   no:yes:* )
15549     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15551     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15552 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15553     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15555     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15556 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15559     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15561     ( cat <<\_ASBOX
15562 ## ------------------------------ ##
15563 ## Report this to bugs@yourdomain ##
15564 ## ------------------------------ ##
15565 _ASBOX
15566      ) | sed "s/^/$as_me: WARNING:     /" >&2
15567     ;;
15568 esac
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   eval "$as_ac_Header=\$ac_header_preproc"
15575 fi
15576 ac_res=`eval echo '${'$as_ac_Header'}'`
15577                { echo "$as_me:$LINENO: result: $ac_res" >&5
15578 echo "${ECHO_T}$ac_res" >&6; }
15579
15580 fi
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582   cat >>confdefs.h <<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584 _ACEOF
15585  HAVE_PTHREAD=1
15586
15587 else
15588   HAVE_PTHREAD=0
15589
15590 fi
15591
15592 done
15593
15594 else
15595   HAVE_PTHREAD=0
15596
15597 fi
15598
15599 if test "$llvm_cv_enable_libffi" = "yes" ; then
15600
15601
15602 for ac_header in ffi.h ffi/ffi.h
15603 do
15604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15606   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15609   echo $ECHO_N "(cached) $ECHO_C" >&6
15610 fi
15611 ac_res=`eval echo '${'$as_ac_Header'}'`
15612                { echo "$as_me:$LINENO: result: $ac_res" >&5
15613 echo "${ECHO_T}$ac_res" >&6; }
15614 else
15615   # Is the header compilable?
15616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624 $ac_includes_default
15625 #include <$ac_header>
15626 _ACEOF
15627 rm -f conftest.$ac_objext
15628 if { (ac_try="$ac_compile"
15629 case "(($ac_try" in
15630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631   *) ac_try_echo=$ac_try;;
15632 esac
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634   (eval "$ac_compile") 2>conftest.er1
15635   ac_status=$?
15636   grep -v '^ *+' conftest.er1 >conftest.err
15637   rm -f conftest.er1
15638   cat conftest.err >&5
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); } &&
15641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15642   { (case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647   (eval "$ac_try") 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); }; } &&
15651          { ac_try='test -s conftest.$ac_objext'
15652   { (case "(($ac_try" in
15653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654   *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657   (eval "$ac_try") 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; }; then
15661   ac_header_compiler=yes
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666         ac_header_compiler=no
15667 fi
15668
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15671 echo "${ECHO_T}$ac_header_compiler" >&6; }
15672
15673 # Is the header present?
15674 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15676 cat >conftest.$ac_ext <<_ACEOF
15677 /* confdefs.h.  */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h.  */
15682 #include <$ac_header>
15683 _ACEOF
15684 if { (ac_try="$ac_cpp conftest.$ac_ext"
15685 case "(($ac_try" in
15686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687   *) ac_try_echo=$ac_try;;
15688 esac
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15691   ac_status=$?
15692   grep -v '^ *+' conftest.er1 >conftest.err
15693   rm -f conftest.er1
15694   cat conftest.err >&5
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); } >/dev/null; then
15697   if test -s conftest.err; then
15698     ac_cpp_err=$ac_c_preproc_warn_flag
15699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15700   else
15701     ac_cpp_err=
15702   fi
15703 else
15704   ac_cpp_err=yes
15705 fi
15706 if test -z "$ac_cpp_err"; then
15707   ac_header_preproc=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712   ac_header_preproc=no
15713 fi
15714
15715 rm -f conftest.err conftest.$ac_ext
15716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15717 echo "${ECHO_T}$ac_header_preproc" >&6; }
15718
15719 # So?  What about this header?
15720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15721   yes:no: )
15722     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15726     ac_header_preproc=yes
15727     ;;
15728   no:yes:* )
15729     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15732 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15735     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15736 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15739     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15741     ( cat <<\_ASBOX
15742 ## ------------------------------ ##
15743 ## Report this to bugs@yourdomain ##
15744 ## ------------------------------ ##
15745 _ASBOX
15746      ) | sed "s/^/$as_me: WARNING:     /" >&2
15747     ;;
15748 esac
15749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15752   echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754   eval "$as_ac_Header=\$ac_header_preproc"
15755 fi
15756 ac_res=`eval echo '${'$as_ac_Header'}'`
15757                { echo "$as_me:$LINENO: result: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15759
15760 fi
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762   cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15764 _ACEOF
15765
15766 fi
15767
15768 done
15769
15770 fi
15771
15772
15773 for ac_header in CrashReporterClient.h
15774 do
15775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780   echo $ECHO_N "(cached) $ECHO_C" >&6
15781 fi
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783                { echo "$as_me:$LINENO: result: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15785 else
15786   # Is the header compilable?
15787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795 $ac_includes_default
15796 #include <$ac_header>
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802   *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805   (eval "$ac_compile") 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } &&
15812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15813   { (case "(($ac_try" in
15814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815   *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818   (eval "$ac_try") 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; } &&
15822          { ac_try='test -s conftest.$ac_objext'
15823   { (case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_try") 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); }; }; then
15832   ac_header_compiler=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837         ac_header_compiler=no
15838 fi
15839
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15842 echo "${ECHO_T}$ac_header_compiler" >&6; }
15843
15844 # Is the header present?
15845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15846 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
15854 _ACEOF
15855 if { (ac_try="$ac_cpp conftest.$ac_ext"
15856 case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15862   ac_status=$?
15863   grep -v '^ *+' conftest.er1 >conftest.err
15864   rm -f conftest.er1
15865   cat conftest.err >&5
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } >/dev/null; then
15868   if test -s conftest.err; then
15869     ac_cpp_err=$ac_c_preproc_warn_flag
15870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15871   else
15872     ac_cpp_err=
15873   fi
15874 else
15875   ac_cpp_err=yes
15876 fi
15877 if test -z "$ac_cpp_err"; then
15878   ac_header_preproc=yes
15879 else
15880   echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883   ac_header_preproc=no
15884 fi
15885
15886 rm -f conftest.err conftest.$ac_ext
15887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15888 echo "${ECHO_T}$ac_header_preproc" >&6; }
15889
15890 # So?  What about this header?
15891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15892   yes:no: )
15893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15897     ac_header_preproc=yes
15898     ;;
15899   no:yes:* )
15900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15912     ( cat <<\_ASBOX
15913 ## ------------------------------ ##
15914 ## Report this to bugs@yourdomain ##
15915 ## ------------------------------ ##
15916 _ASBOX
15917      ) | sed "s/^/$as_me: WARNING:     /" >&2
15918     ;;
15919 esac
15920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923   echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925   eval "$as_ac_Header=\$ac_header_preproc"
15926 fi
15927 ac_res=`eval echo '${'$as_ac_Header'}'`
15928                { echo "$as_me:$LINENO: result: $ac_res" >&5
15929 echo "${ECHO_T}$ac_res" >&6; }
15930
15931 fi
15932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15933   cat >>confdefs.h <<_ACEOF
15934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15935 _ACEOF
15936
15937 fi
15938
15939 done
15940
15941
15942 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15943 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15944 cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h.  */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h.  */
15950 extern const char *__crashreporter_info__;
15951       int main() {
15952         __crashreporter_info__ = "test";
15953         return 0;
15954       }
15955
15956 _ACEOF
15957 rm -f conftest.$ac_objext conftest$ac_exeext
15958 if { (ac_try="$ac_link"
15959 case "(($ac_try" in
15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961   *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964   (eval "$ac_link") 2>conftest.er1
15965   ac_status=$?
15966   grep -v '^ *+' conftest.er1 >conftest.err
15967   rm -f conftest.er1
15968   cat conftest.err >&5
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); } &&
15971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15972   { (case "(($ac_try" in
15973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974   *) ac_try_echo=$ac_try;;
15975 esac
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977   (eval "$ac_try") 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; } &&
15981          { ac_try='test -s conftest$ac_exeext'
15982   { (case "(($ac_try" in
15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984   *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987   (eval "$ac_try") 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); }; }; then
15991   { echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6; }
15993
15994 cat >>confdefs.h <<\_ACEOF
15995 #define HAVE_CRASHREPORTER_INFO 1
15996 _ACEOF
15997
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002         { echo "$as_me:$LINENO: result: no" >&5
16003 echo "${ECHO_T}no" >&6; }
16004
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_CRASHREPORTER_INFO 0
16007 _ACEOF
16008
16009 fi
16010
16011 rm -f core conftest.err conftest.$ac_objext \
16012       conftest$ac_exeext conftest.$ac_ext
16013
16014
16015
16016
16017   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16018 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16019 if test "${ac_cv_huge_val_sanity+set}" = set; then
16020   echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022
16023     ac_ext=cpp
16024 ac_cpp='$CXXCPP $CPPFLAGS'
16025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16028
16029     ac_save_CXXFLAGS=$CXXFLAGS
16030     CXXFLAGS=-pedantic
16031     if test "$cross_compiling" = yes; then
16032   ac_cv_huge_val_sanity=yes
16033 else
16034   cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h.  */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h.  */
16040 #include <math.h>
16041 int
16042 main ()
16043 {
16044 double x = HUGE_VAL; return x != x;
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056   (eval "$ac_link") 2>&5
16057   ac_status=$?
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16060   { (case "(($ac_try" in
16061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062   *) ac_try_echo=$ac_try;;
16063 esac
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065   (eval "$ac_try") 2>&5
16066   ac_status=$?
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); }; }; then
16069   ac_cv_huge_val_sanity=yes
16070 else
16071   echo "$as_me: program exited with status $ac_status" >&5
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 ( exit $ac_status )
16076 ac_cv_huge_val_sanity=no
16077 fi
16078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16079 fi
16080
16081
16082     CXXFLAGS=$ac_save_CXXFLAGS
16083     ac_ext=c
16084 ac_cpp='$CPP $CPPFLAGS'
16085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16088
16089
16090 fi
16091 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16092 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16093   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16094
16095
16096 { echo "$as_me:$LINENO: checking for pid_t" >&5
16097 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16098 if test "${ac_cv_type_pid_t+set}" = set; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101   cat >conftest.$ac_ext <<_ACEOF
16102 /* confdefs.h.  */
16103 _ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h.  */
16107 $ac_includes_default
16108 typedef pid_t ac__type_new_;
16109 int
16110 main ()
16111 {
16112 if ((ac__type_new_ *) 0)
16113   return 0;
16114 if (sizeof (ac__type_new_))
16115   return 0;
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_compile") 2>conftest.er1
16128   ac_status=$?
16129   grep -v '^ *+' conftest.er1 >conftest.err
16130   rm -f conftest.er1
16131   cat conftest.err >&5
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } &&
16134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16135   { (case "(($ac_try" in
16136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137   *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140   (eval "$ac_try") 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); }; } &&
16144          { ac_try='test -s conftest.$ac_objext'
16145   { (case "(($ac_try" in
16146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147   *) ac_try_echo=$ac_try;;
16148 esac
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150   (eval "$ac_try") 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; }; then
16154   ac_cv_type_pid_t=yes
16155 else
16156   echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159         ac_cv_type_pid_t=no
16160 fi
16161
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 fi
16164 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16165 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16166 if test $ac_cv_type_pid_t = yes; then
16167   :
16168 else
16169
16170 cat >>confdefs.h <<_ACEOF
16171 #define pid_t int
16172 _ACEOF
16173
16174 fi
16175
16176 { echo "$as_me:$LINENO: checking for size_t" >&5
16177 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16178 if test "${ac_cv_type_size_t+set}" = set; then
16179   echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181   cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187 $ac_includes_default
16188 typedef size_t ac__type_new_;
16189 int
16190 main ()
16191 {
16192 if ((ac__type_new_ *) 0)
16193   return 0;
16194 if (sizeof (ac__type_new_))
16195   return 0;
16196   ;
16197   return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (ac_try="$ac_compile"
16202 case "(($ac_try" in
16203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204   *) ac_try_echo=$ac_try;;
16205 esac
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207   (eval "$ac_compile") 2>conftest.er1
16208   ac_status=$?
16209   grep -v '^ *+' conftest.er1 >conftest.err
16210   rm -f conftest.er1
16211   cat conftest.err >&5
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); } &&
16214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16215   { (case "(($ac_try" in
16216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217   *) ac_try_echo=$ac_try;;
16218 esac
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220   (eval "$ac_try") 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; } &&
16224          { ac_try='test -s conftest.$ac_objext'
16225   { (case "(($ac_try" in
16226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227   *) ac_try_echo=$ac_try;;
16228 esac
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230   (eval "$ac_try") 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; }; then
16234   ac_cv_type_size_t=yes
16235 else
16236   echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239         ac_cv_type_size_t=no
16240 fi
16241
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 fi
16244 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16245 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16246 if test $ac_cv_type_size_t = yes; then
16247   :
16248 else
16249
16250 cat >>confdefs.h <<_ACEOF
16251 #define size_t unsigned int
16252 _ACEOF
16253
16254 fi
16255
16256
16257 cat >>confdefs.h <<_ACEOF
16258 #define RETSIGTYPE void
16259 _ACEOF
16260
16261 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16262 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16263 if test "${ac_cv_struct_tm+set}" = set; then
16264   echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266   cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272 #include <sys/types.h>
16273 #include <time.h>
16274
16275 int
16276 main ()
16277 {
16278 struct tm *tp; tp->tm_sec;
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 rm -f conftest.$ac_objext
16284 if { (ac_try="$ac_compile"
16285 case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290   (eval "$ac_compile") 2>conftest.er1
16291   ac_status=$?
16292   grep -v '^ *+' conftest.er1 >conftest.err
16293   rm -f conftest.er1
16294   cat conftest.err >&5
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); } &&
16297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16298   { (case "(($ac_try" in
16299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300   *) ac_try_echo=$ac_try;;
16301 esac
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303   (eval "$ac_try") 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); }; } &&
16307          { ac_try='test -s conftest.$ac_objext'
16308   { (case "(($ac_try" in
16309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310   *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313   (eval "$ac_try") 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }; }; then
16317   ac_cv_struct_tm=time.h
16318 else
16319   echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322         ac_cv_struct_tm=sys/time.h
16323 fi
16324
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16326 fi
16327 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16328 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16329 if test $ac_cv_struct_tm = sys/time.h; then
16330
16331 cat >>confdefs.h <<\_ACEOF
16332 #define TM_IN_SYS_TIME 1
16333 _ACEOF
16334
16335 fi
16336
16337 { echo "$as_me:$LINENO: checking for int64_t" >&5
16338 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16339 if test "${ac_cv_type_int64_t+set}" = set; then
16340   echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342   cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h.  */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h.  */
16348 $ac_includes_default
16349 typedef int64_t ac__type_new_;
16350 int
16351 main ()
16352 {
16353 if ((ac__type_new_ *) 0)
16354   return 0;
16355 if (sizeof (ac__type_new_))
16356   return 0;
16357   ;
16358   return 0;
16359 }
16360 _ACEOF
16361 rm -f conftest.$ac_objext
16362 if { (ac_try="$ac_compile"
16363 case "(($ac_try" in
16364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365   *) ac_try_echo=$ac_try;;
16366 esac
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368   (eval "$ac_compile") 2>conftest.er1
16369   ac_status=$?
16370   grep -v '^ *+' conftest.er1 >conftest.err
16371   rm -f conftest.er1
16372   cat conftest.err >&5
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); } &&
16375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16376   { (case "(($ac_try" in
16377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378   *) ac_try_echo=$ac_try;;
16379 esac
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381   (eval "$ac_try") 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; } &&
16385          { ac_try='test -s conftest.$ac_objext'
16386   { (case "(($ac_try" in
16387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388   *) ac_try_echo=$ac_try;;
16389 esac
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391   (eval "$ac_try") 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; }; then
16395   ac_cv_type_int64_t=yes
16396 else
16397   echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16399
16400         ac_cv_type_int64_t=no
16401 fi
16402
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 fi
16405 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16406 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16407 if test $ac_cv_type_int64_t = yes; then
16408
16409 cat >>confdefs.h <<_ACEOF
16410 #define HAVE_INT64_T 1
16411 _ACEOF
16412
16413
16414 else
16415   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16416 echo "$as_me: error: Type int64_t required but not found" >&2;}
16417    { (exit 1); exit 1; }; }
16418 fi
16419
16420 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16421 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16422 if test "${ac_cv_type_uint64_t+set}" = set; then
16423   echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425   cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431 $ac_includes_default
16432 typedef uint64_t ac__type_new_;
16433 int
16434 main ()
16435 {
16436 if ((ac__type_new_ *) 0)
16437   return 0;
16438 if (sizeof (ac__type_new_))
16439   return 0;
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_compile") 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } &&
16458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16459   { (case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_try") 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); }; } &&
16468          { ac_try='test -s conftest.$ac_objext'
16469   { (case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_try") 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; }; then
16478   ac_cv_type_uint64_t=yes
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483         ac_cv_type_uint64_t=no
16484 fi
16485
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 fi
16488 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16489 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16490 if test $ac_cv_type_uint64_t = yes; then
16491
16492 cat >>confdefs.h <<_ACEOF
16493 #define HAVE_UINT64_T 1
16494 _ACEOF
16495
16496
16497 else
16498   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16499 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16500 if test "${ac_cv_type_u_int64_t+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 $ac_includes_default
16510 typedef u_int64_t ac__type_new_;
16511 int
16512 main ()
16513 {
16514 if ((ac__type_new_ *) 0)
16515   return 0;
16516 if (sizeof (ac__type_new_))
16517   return 0;
16518   ;
16519   return 0;
16520 }
16521 _ACEOF
16522 rm -f conftest.$ac_objext
16523 if { (ac_try="$ac_compile"
16524 case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_compile") 2>conftest.er1
16530   ac_status=$?
16531   grep -v '^ *+' conftest.er1 >conftest.err
16532   rm -f conftest.er1
16533   cat conftest.err >&5
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); } &&
16536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16537   { (case "(($ac_try" in
16538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539   *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542   (eval "$ac_try") 2>&5
16543   ac_status=$?
16544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); }; } &&
16546          { ac_try='test -s conftest.$ac_objext'
16547   { (case "(($ac_try" in
16548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549   *) ac_try_echo=$ac_try;;
16550 esac
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552   (eval "$ac_try") 2>&5
16553   ac_status=$?
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); }; }; then
16556   ac_cv_type_u_int64_t=yes
16557 else
16558   echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16560
16561         ac_cv_type_u_int64_t=no
16562 fi
16563
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565 fi
16566 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16567 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16568 if test $ac_cv_type_u_int64_t = yes; then
16569
16570 cat >>confdefs.h <<_ACEOF
16571 #define HAVE_U_INT64_T 1
16572 _ACEOF
16573
16574
16575 else
16576   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16577 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16578    { (exit 1); exit 1; }; }
16579 fi
16580
16581 fi
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16593 do
16594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h.  */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h.  */
16606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16608 #define $ac_func innocuous_$ac_func
16609
16610 /* System header to define __stub macros and hopefully few prototypes,
16611     which can conflict with char $ac_func (); below.
16612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16613     <limits.h> exists even on freestanding compilers.  */
16614
16615 #ifdef __STDC__
16616 # include <limits.h>
16617 #else
16618 # include <assert.h>
16619 #endif
16620
16621 #undef $ac_func
16622
16623 /* Override any GCC internal prototype to avoid an error.
16624    Use char because int might match the return type of a GCC
16625    builtin and then its argument prototype would still apply.  */
16626 #ifdef __cplusplus
16627 extern "C"
16628 #endif
16629 char $ac_func ();
16630 /* The GNU C library defines this for functions which it implements
16631     to always fail with ENOSYS.  Some functions are actually named
16632     something starting with __ and the normal name is an alias.  */
16633 #if defined __stub_$ac_func || defined __stub___$ac_func
16634 choke me
16635 #endif
16636
16637 int
16638 main ()
16639 {
16640 return $ac_func ();
16641   ;
16642   return 0;
16643 }
16644 _ACEOF
16645 rm -f conftest.$ac_objext conftest$ac_exeext
16646 if { (ac_try="$ac_link"
16647 case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_link") 2>conftest.er1
16653   ac_status=$?
16654   grep -v '^ *+' conftest.er1 >conftest.err
16655   rm -f conftest.er1
16656   cat conftest.err >&5
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } &&
16659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660   { (case "(($ac_try" in
16661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662   *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665   (eval "$ac_try") 2>&5
16666   ac_status=$?
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); }; } &&
16669          { ac_try='test -s conftest$ac_exeext'
16670   { (case "(($ac_try" in
16671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672   *) ac_try_echo=$ac_try;;
16673 esac
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675   (eval "$ac_try") 2>&5
16676   ac_status=$?
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); }; }; then
16679   eval "$as_ac_var=yes"
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684         eval "$as_ac_var=no"
16685 fi
16686
16687 rm -f core conftest.err conftest.$ac_objext \
16688       conftest$ac_exeext conftest.$ac_ext
16689 fi
16690 ac_res=`eval echo '${'$as_ac_var'}'`
16691                { echo "$as_me:$LINENO: result: $ac_res" >&5
16692 echo "${ECHO_T}$ac_res" >&6; }
16693 if test `eval echo '${'$as_ac_var'}'` = yes; then
16694   cat >>confdefs.h <<_ACEOF
16695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16696 _ACEOF
16697
16698 fi
16699 done
16700
16701
16702
16703
16704
16705 for ac_func in powf fmodf strtof round
16706 do
16707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16711   echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713   cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h.  */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h.  */
16719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16721 #define $ac_func innocuous_$ac_func
16722
16723 /* System header to define __stub macros and hopefully few prototypes,
16724     which can conflict with char $ac_func (); below.
16725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726     <limits.h> exists even on freestanding compilers.  */
16727
16728 #ifdef __STDC__
16729 # include <limits.h>
16730 #else
16731 # include <assert.h>
16732 #endif
16733
16734 #undef $ac_func
16735
16736 /* Override any GCC internal prototype to avoid an error.
16737    Use char because int might match the return type of a GCC
16738    builtin and then its argument prototype would still apply.  */
16739 #ifdef __cplusplus
16740 extern "C"
16741 #endif
16742 char $ac_func ();
16743 /* The GNU C library defines this for functions which it implements
16744     to always fail with ENOSYS.  Some functions are actually named
16745     something starting with __ and the normal name is an alias.  */
16746 #if defined __stub_$ac_func || defined __stub___$ac_func
16747 choke me
16748 #endif
16749
16750 int
16751 main ()
16752 {
16753 return $ac_func ();
16754   ;
16755   return 0;
16756 }
16757 _ACEOF
16758 rm -f conftest.$ac_objext conftest$ac_exeext
16759 if { (ac_try="$ac_link"
16760 case "(($ac_try" in
16761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762   *) ac_try_echo=$ac_try;;
16763 esac
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765   (eval "$ac_link") 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773   { (case "(($ac_try" in
16774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775   *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778   (eval "$ac_try") 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; } &&
16782          { ac_try='test -s conftest$ac_exeext'
16783   { (case "(($ac_try" in
16784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785   *) ac_try_echo=$ac_try;;
16786 esac
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788   (eval "$ac_try") 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792   eval "$as_ac_var=yes"
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797         eval "$as_ac_var=no"
16798 fi
16799
16800 rm -f core conftest.err conftest.$ac_objext \
16801       conftest$ac_exeext conftest.$ac_ext
16802 fi
16803 ac_res=`eval echo '${'$as_ac_var'}'`
16804                { echo "$as_me:$LINENO: result: $ac_res" >&5
16805 echo "${ECHO_T}$ac_res" >&6; }
16806 if test `eval echo '${'$as_ac_var'}'` = yes; then
16807   cat >>confdefs.h <<_ACEOF
16808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16809 _ACEOF
16810
16811 fi
16812 done
16813
16814
16815
16816
16817
16818
16819 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16820 do
16821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16835 #define $ac_func innocuous_$ac_func
16836
16837 /* System header to define __stub macros and hopefully few prototypes,
16838     which can conflict with char $ac_func (); below.
16839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16840     <limits.h> exists even on freestanding compilers.  */
16841
16842 #ifdef __STDC__
16843 # include <limits.h>
16844 #else
16845 # include <assert.h>
16846 #endif
16847
16848 #undef $ac_func
16849
16850 /* Override any GCC internal prototype to avoid an error.
16851    Use char because int might match the return type of a GCC
16852    builtin and then its argument prototype would still apply.  */
16853 #ifdef __cplusplus
16854 extern "C"
16855 #endif
16856 char $ac_func ();
16857 /* The GNU C library defines this for functions which it implements
16858     to always fail with ENOSYS.  Some functions are actually named
16859     something starting with __ and the normal name is an alias.  */
16860 #if defined __stub_$ac_func || defined __stub___$ac_func
16861 choke me
16862 #endif
16863
16864 int
16865 main ()
16866 {
16867 return $ac_func ();
16868   ;
16869   return 0;
16870 }
16871 _ACEOF
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879   (eval "$ac_link") 2>conftest.er1
16880   ac_status=$?
16881   grep -v '^ *+' conftest.er1 >conftest.err
16882   rm -f conftest.er1
16883   cat conftest.err >&5
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } &&
16886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887   { (case "(($ac_try" in
16888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889   *) ac_try_echo=$ac_try;;
16890 esac
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892   (eval "$ac_try") 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; } &&
16896          { ac_try='test -s conftest$ac_exeext'
16897   { (case "(($ac_try" in
16898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899   *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902   (eval "$ac_try") 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; }; then
16906   eval "$as_ac_var=yes"
16907 else
16908   echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911         eval "$as_ac_var=no"
16912 fi
16913
16914 rm -f core conftest.err conftest.$ac_objext \
16915       conftest$ac_exeext conftest.$ac_ext
16916 fi
16917 ac_res=`eval echo '${'$as_ac_var'}'`
16918                { echo "$as_me:$LINENO: result: $ac_res" >&5
16919 echo "${ECHO_T}$ac_res" >&6; }
16920 if test `eval echo '${'$as_ac_var'}'` = yes; then
16921   cat >>confdefs.h <<_ACEOF
16922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16923 _ACEOF
16924
16925 fi
16926 done
16927
16928
16929
16930
16931 for ac_func in isatty mkdtemp mkstemp
16932 do
16933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16937   echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939   cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16947 #define $ac_func innocuous_$ac_func
16948
16949 /* System header to define __stub macros and hopefully few prototypes,
16950     which can conflict with char $ac_func (); below.
16951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16952     <limits.h> exists even on freestanding compilers.  */
16953
16954 #ifdef __STDC__
16955 # include <limits.h>
16956 #else
16957 # include <assert.h>
16958 #endif
16959
16960 #undef $ac_func
16961
16962 /* Override any GCC internal prototype to avoid an error.
16963    Use char because int might match the return type of a GCC
16964    builtin and then its argument prototype would still apply.  */
16965 #ifdef __cplusplus
16966 extern "C"
16967 #endif
16968 char $ac_func ();
16969 /* The GNU C library defines this for functions which it implements
16970     to always fail with ENOSYS.  Some functions are actually named
16971     something starting with __ and the normal name is an alias.  */
16972 #if defined __stub_$ac_func || defined __stub___$ac_func
16973 choke me
16974 #endif
16975
16976 int
16977 main ()
16978 {
16979 return $ac_func ();
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (ac_try="$ac_link"
16986 case "(($ac_try" in
16987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988   *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991   (eval "$ac_link") 2>conftest.er1
16992   ac_status=$?
16993   grep -v '^ *+' conftest.er1 >conftest.err
16994   rm -f conftest.er1
16995   cat conftest.err >&5
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } &&
16998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16999   { (case "(($ac_try" in
17000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001   *) ac_try_echo=$ac_try;;
17002 esac
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004   (eval "$ac_try") 2>&5
17005   ac_status=$?
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); }; } &&
17008          { ac_try='test -s conftest$ac_exeext'
17009   { (case "(($ac_try" in
17010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011   *) ac_try_echo=$ac_try;;
17012 esac
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014   (eval "$ac_try") 2>&5
17015   ac_status=$?
17016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); }; }; then
17018   eval "$as_ac_var=yes"
17019 else
17020   echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023         eval "$as_ac_var=no"
17024 fi
17025
17026 rm -f core conftest.err conftest.$ac_objext \
17027       conftest$ac_exeext conftest.$ac_ext
17028 fi
17029 ac_res=`eval echo '${'$as_ac_var'}'`
17030                { echo "$as_me:$LINENO: result: $ac_res" >&5
17031 echo "${ECHO_T}$ac_res" >&6; }
17032 if test `eval echo '${'$as_ac_var'}'` = yes; then
17033   cat >>confdefs.h <<_ACEOF
17034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17035 _ACEOF
17036
17037 fi
17038 done
17039
17040
17041
17042
17043
17044
17045
17046 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17047 do
17048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h.  */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h.  */
17060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17062 #define $ac_func innocuous_$ac_func
17063
17064 /* System header to define __stub macros and hopefully few prototypes,
17065     which can conflict with char $ac_func (); below.
17066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17067     <limits.h> exists even on freestanding compilers.  */
17068
17069 #ifdef __STDC__
17070 # include <limits.h>
17071 #else
17072 # include <assert.h>
17073 #endif
17074
17075 #undef $ac_func
17076
17077 /* Override any GCC internal prototype to avoid an error.
17078    Use char because int might match the return type of a GCC
17079    builtin and then its argument prototype would still apply.  */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 char $ac_func ();
17084 /* The GNU C library defines this for functions which it implements
17085     to always fail with ENOSYS.  Some functions are actually named
17086     something starting with __ and the normal name is an alias.  */
17087 #if defined __stub_$ac_func || defined __stub___$ac_func
17088 choke me
17089 #endif
17090
17091 int
17092 main ()
17093 {
17094 return $ac_func ();
17095   ;
17096   return 0;
17097 }
17098 _ACEOF
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (ac_try="$ac_link"
17101 case "(($ac_try" in
17102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103   *) ac_try_echo=$ac_try;;
17104 esac
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106   (eval "$ac_link") 2>conftest.er1
17107   ac_status=$?
17108   grep -v '^ *+' conftest.er1 >conftest.err
17109   rm -f conftest.er1
17110   cat conftest.err >&5
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); } &&
17113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17114   { (case "(($ac_try" in
17115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116   *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119   (eval "$ac_try") 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); }; } &&
17123          { ac_try='test -s conftest$ac_exeext'
17124   { (case "(($ac_try" in
17125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126   *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129   (eval "$ac_try") 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   eval "$as_ac_var=yes"
17134 else
17135   echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138         eval "$as_ac_var=no"
17139 fi
17140
17141 rm -f core conftest.err conftest.$ac_objext \
17142       conftest$ac_exeext conftest.$ac_ext
17143 fi
17144 ac_res=`eval echo '${'$as_ac_var'}'`
17145                { echo "$as_me:$LINENO: result: $ac_res" >&5
17146 echo "${ECHO_T}$ac_res" >&6; }
17147 if test `eval echo '${'$as_ac_var'}'` = yes; then
17148   cat >>confdefs.h <<_ACEOF
17149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17150 _ACEOF
17151
17152 fi
17153 done
17154
17155
17156
17157
17158 for ac_func in strerror strerror_r setenv
17159 do
17160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166   cat >conftest.$ac_ext <<_ACEOF
17167 /* confdefs.h.  */
17168 _ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h.  */
17172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17174 #define $ac_func innocuous_$ac_func
17175
17176 /* System header to define __stub macros and hopefully few prototypes,
17177     which can conflict with char $ac_func (); below.
17178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17179     <limits.h> exists even on freestanding compilers.  */
17180
17181 #ifdef __STDC__
17182 # include <limits.h>
17183 #else
17184 # include <assert.h>
17185 #endif
17186
17187 #undef $ac_func
17188
17189 /* Override any GCC internal prototype to avoid an error.
17190    Use char because int might match the return type of a GCC
17191    builtin and then its argument prototype would still apply.  */
17192 #ifdef __cplusplus
17193 extern "C"
17194 #endif
17195 char $ac_func ();
17196 /* The GNU C library defines this for functions which it implements
17197     to always fail with ENOSYS.  Some functions are actually named
17198     something starting with __ and the normal name is an alias.  */
17199 #if defined __stub_$ac_func || defined __stub___$ac_func
17200 choke me
17201 #endif
17202
17203 int
17204 main ()
17205 {
17206 return $ac_func ();
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215   *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218   (eval "$ac_link") 2>conftest.er1
17219   ac_status=$?
17220   grep -v '^ *+' conftest.er1 >conftest.err
17221   rm -f conftest.er1
17222   cat conftest.err >&5
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); } &&
17225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226   { (case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_try") 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest$ac_exeext'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   eval "$as_ac_var=yes"
17246 else
17247   echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250         eval "$as_ac_var=no"
17251 fi
17252
17253 rm -f core conftest.err conftest.$ac_objext \
17254       conftest$ac_exeext conftest.$ac_ext
17255 fi
17256 ac_res=`eval echo '${'$as_ac_var'}'`
17257                { echo "$as_me:$LINENO: result: $ac_res" >&5
17258 echo "${ECHO_T}$ac_res" >&6; }
17259 if test `eval echo '${'$as_ac_var'}'` = yes; then
17260   cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17262 _ACEOF
17263
17264 fi
17265 done
17266
17267
17268
17269
17270
17271 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17272 do
17273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279   cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h.  */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h.  */
17285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17287 #define $ac_func innocuous_$ac_func
17288
17289 /* System header to define __stub macros and hopefully few prototypes,
17290     which can conflict with char $ac_func (); below.
17291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292     <limits.h> exists even on freestanding compilers.  */
17293
17294 #ifdef __STDC__
17295 # include <limits.h>
17296 #else
17297 # include <assert.h>
17298 #endif
17299
17300 #undef $ac_func
17301
17302 /* Override any GCC internal prototype to avoid an error.
17303    Use char because int might match the return type of a GCC
17304    builtin and then its argument prototype would still apply.  */
17305 #ifdef __cplusplus
17306 extern "C"
17307 #endif
17308 char $ac_func ();
17309 /* The GNU C library defines this for functions which it implements
17310     to always fail with ENOSYS.  Some functions are actually named
17311     something starting with __ and the normal name is an alias.  */
17312 #if defined __stub_$ac_func || defined __stub___$ac_func
17313 choke me
17314 #endif
17315
17316 int
17317 main ()
17318 {
17319 return $ac_func ();
17320   ;
17321   return 0;
17322 }
17323 _ACEOF
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (ac_try="$ac_link"
17326 case "(($ac_try" in
17327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328   *) ac_try_echo=$ac_try;;
17329 esac
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331   (eval "$ac_link") 2>conftest.er1
17332   ac_status=$?
17333   grep -v '^ *+' conftest.er1 >conftest.err
17334   rm -f conftest.er1
17335   cat conftest.err >&5
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } &&
17338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17339   { (case "(($ac_try" in
17340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341   *) ac_try_echo=$ac_try;;
17342 esac
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344   (eval "$ac_try") 2>&5
17345   ac_status=$?
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); }; } &&
17348          { ac_try='test -s conftest$ac_exeext'
17349   { (case "(($ac_try" in
17350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351   *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354   (eval "$ac_try") 2>&5
17355   ac_status=$?
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); }; }; then
17358   eval "$as_ac_var=yes"
17359 else
17360   echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17362
17363         eval "$as_ac_var=no"
17364 fi
17365
17366 rm -f core conftest.err conftest.$ac_objext \
17367       conftest$ac_exeext conftest.$ac_ext
17368 fi
17369 ac_res=`eval echo '${'$as_ac_var'}'`
17370                { echo "$as_me:$LINENO: result: $ac_res" >&5
17371 echo "${ECHO_T}$ac_res" >&6; }
17372 if test `eval echo '${'$as_ac_var'}'` = yes; then
17373   cat >>confdefs.h <<_ACEOF
17374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17375 _ACEOF
17376
17377 fi
17378 done
17379
17380
17381
17382
17383
17384
17385 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17386 do
17387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17391   echo $ECHO_N "(cached) $ECHO_C" >&6
17392 else
17393   cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h.  */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h.  */
17399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17401 #define $ac_func innocuous_$ac_func
17402
17403 /* System header to define __stub macros and hopefully few prototypes,
17404     which can conflict with char $ac_func (); below.
17405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17406     <limits.h> exists even on freestanding compilers.  */
17407
17408 #ifdef __STDC__
17409 # include <limits.h>
17410 #else
17411 # include <assert.h>
17412 #endif
17413
17414 #undef $ac_func
17415
17416 /* Override any GCC internal prototype to avoid an error.
17417    Use char because int might match the return type of a GCC
17418    builtin and then its argument prototype would still apply.  */
17419 #ifdef __cplusplus
17420 extern "C"
17421 #endif
17422 char $ac_func ();
17423 /* The GNU C library defines this for functions which it implements
17424     to always fail with ENOSYS.  Some functions are actually named
17425     something starting with __ and the normal name is an alias.  */
17426 #if defined __stub_$ac_func || defined __stub___$ac_func
17427 choke me
17428 #endif
17429
17430 int
17431 main ()
17432 {
17433 return $ac_func ();
17434   ;
17435   return 0;
17436 }
17437 _ACEOF
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (ac_try="$ac_link"
17440 case "(($ac_try" in
17441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442   *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445   (eval "$ac_link") 2>conftest.er1
17446   ac_status=$?
17447   grep -v '^ *+' conftest.er1 >conftest.err
17448   rm -f conftest.er1
17449   cat conftest.err >&5
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); } &&
17452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17453   { (case "(($ac_try" in
17454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455   *) ac_try_echo=$ac_try;;
17456 esac
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458   (eval "$ac_try") 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); }; } &&
17462          { ac_try='test -s conftest$ac_exeext'
17463   { (case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_try") 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); }; }; then
17472   eval "$as_ac_var=yes"
17473 else
17474   echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477         eval "$as_ac_var=no"
17478 fi
17479
17480 rm -f core conftest.err conftest.$ac_objext \
17481       conftest$ac_exeext conftest.$ac_ext
17482 fi
17483 ac_res=`eval echo '${'$as_ac_var'}'`
17484                { echo "$as_me:$LINENO: result: $ac_res" >&5
17485 echo "${ECHO_T}$ac_res" >&6; }
17486 if test `eval echo '${'$as_ac_var'}'` = yes; then
17487   cat >>confdefs.h <<_ACEOF
17488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17489 _ACEOF
17490
17491 fi
17492 done
17493
17494 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17495 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17496 if test "${llvm_cv_c_printf_a+set}" = set; then
17497   echo $ECHO_N "(cached) $ECHO_C" >&6
17498 else
17499   ac_ext=c
17500 ac_cpp='$CPP $CPPFLAGS'
17501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17504
17505  if test "$cross_compiling" = yes; then
17506   llvmac_cv_c_printf_a=no
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509
17510   /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515
17516 #include <stdio.h>
17517 #include <stdlib.h>
17518
17519 int
17520 main ()
17521 {
17522
17523 volatile double A, B;
17524 char Buffer[100];
17525 A = 1;
17526 A /= 10.0;
17527 sprintf(Buffer, "%a", A);
17528 B = atof(Buffer);
17529 if (A != B)
17530   return (1);
17531 if (A != 0x1.999999999999ap-4)
17532   return (1);
17533 return (0);
17534   ;
17535   return 0;
17536 }
17537 _ACEOF
17538 rm -f conftest$ac_exeext
17539 if { (ac_try="$ac_link"
17540 case "(($ac_try" in
17541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542   *) ac_try_echo=$ac_try;;
17543 esac
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545   (eval "$ac_link") 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17549   { (case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554   (eval "$ac_try") 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; }; then
17558   llvm_cv_c_printf_a=yes
17559 else
17560   echo "$as_me: program exited with status $ac_status" >&5
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 ( exit $ac_status )
17565 llvmac_cv_c_printf_a=no
17566 fi
17567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17568 fi
17569
17570
17571  ac_ext=c
17572 ac_cpp='$CPP $CPPFLAGS'
17573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17576
17577 fi
17578 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17579 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17580  if test "$llvm_cv_c_printf_a" = "yes"; then
17581
17582 cat >>confdefs.h <<\_ACEOF
17583 #define HAVE_PRINTF_A 1
17584 _ACEOF
17585
17586  fi
17587
17588
17589 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17590 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17591 if test "${ac_cv_func_rand48+set}" = set; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594   ac_ext=cpp
17595 ac_cpp='$CXXCPP $CPPFLAGS'
17596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17599
17600    cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h.  */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h.  */
17606 #include <stdlib.h>
17607 int
17608 main ()
17609 {
17610 srand48(0);lrand48();drand48();
17611   ;
17612   return 0;
17613 }
17614 _ACEOF
17615 rm -f conftest.$ac_objext
17616 if { (ac_try="$ac_compile"
17617 case "(($ac_try" in
17618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619   *) ac_try_echo=$ac_try;;
17620 esac
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622   (eval "$ac_compile") 2>conftest.er1
17623   ac_status=$?
17624   grep -v '^ *+' conftest.er1 >conftest.err
17625   rm -f conftest.er1
17626   cat conftest.err >&5
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); } &&
17629          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17630   { (case "(($ac_try" in
17631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632   *) ac_try_echo=$ac_try;;
17633 esac
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635   (eval "$ac_try") 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; } &&
17639          { ac_try='test -s conftest.$ac_objext'
17640   { (case "(($ac_try" in
17641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642   *) ac_try_echo=$ac_try;;
17643 esac
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645   (eval "$ac_try") 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; }; then
17649   ac_cv_func_rand48=yes
17650 else
17651   echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17653
17654         ac_cv_func_rand48=no
17655 fi
17656
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658   ac_ext=c
17659 ac_cpp='$CPP $CPPFLAGS'
17660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663
17664 fi
17665 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17666 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17667
17668 if test "$ac_cv_func_rand48" = "yes" ; then
17669
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_RAND48 1
17672 _ACEOF
17673
17674 fi
17675
17676
17677 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17678 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17679 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 $ac_includes_default
17689 int
17690 main ()
17691 {
17692 #ifndef strerror_s
17693   char *p = (char *) strerror_s;
17694   return !p;
17695 #endif
17696
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_compile") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716   { (case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_try") 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; } &&
17725          { ac_try='test -s conftest.$ac_objext'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; }; then
17735   ac_cv_have_decl_strerror_s=yes
17736 else
17737   echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740         ac_cv_have_decl_strerror_s=no
17741 fi
17742
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744 fi
17745 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17746 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17747 if test $ac_cv_have_decl_strerror_s = yes; then
17748
17749 cat >>confdefs.h <<_ACEOF
17750 #define HAVE_DECL_STRERROR_S 1
17751 _ACEOF
17752
17753
17754 else
17755   cat >>confdefs.h <<_ACEOF
17756 #define HAVE_DECL_STRERROR_S 0
17757 _ACEOF
17758
17759
17760 fi
17761
17762
17763
17764 if test "$llvm_cv_os_type" = "MingW" ; then
17765   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17766 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17767 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17768   echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770   ac_check_lib_save_LIBS=$LIBS
17771 LIBS="-lgcc  $LIBS"
17772 cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h.  */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h.  */
17778
17779 /* Override any GCC internal prototype to avoid an error.
17780    Use char because int might match the return type of a GCC
17781    builtin and then its argument prototype would still apply.  */
17782 #ifdef __cplusplus
17783 extern "C"
17784 #endif
17785 char _alloca ();
17786 int
17787 main ()
17788 {
17789 return _alloca ();
17790   ;
17791   return 0;
17792 }
17793 _ACEOF
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (ac_try="$ac_link"
17796 case "(($ac_try" in
17797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798   *) ac_try_echo=$ac_try;;
17799 esac
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801   (eval "$ac_link") 2>conftest.er1
17802   ac_status=$?
17803   grep -v '^ *+' conftest.er1 >conftest.err
17804   rm -f conftest.er1
17805   cat conftest.err >&5
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); } &&
17808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809   { (case "(($ac_try" in
17810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811   *) ac_try_echo=$ac_try;;
17812 esac
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814   (eval "$ac_try") 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; } &&
17818          { ac_try='test -s conftest$ac_exeext'
17819   { (case "(($ac_try" in
17820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821   *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824   (eval "$ac_try") 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; }; then
17828   ac_cv_lib_gcc__alloca=yes
17829 else
17830   echo "$as_me: failed program was:" >&5
17831 sed 's/^/| /' conftest.$ac_ext >&5
17832
17833         ac_cv_lib_gcc__alloca=no
17834 fi
17835
17836 rm -f core conftest.err conftest.$ac_objext \
17837       conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17839 fi
17840 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17841 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17842 if test $ac_cv_lib_gcc__alloca = yes; then
17843
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE__ALLOCA 1
17846 _ACEOF
17847
17848 fi
17849
17850   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17851 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17852 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17853   echo $ECHO_N "(cached) $ECHO_C" >&6
17854 else
17855   ac_check_lib_save_LIBS=$LIBS
17856 LIBS="-lgcc  $LIBS"
17857 cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863
17864 /* Override any GCC internal prototype to avoid an error.
17865    Use char because int might match the return type of a GCC
17866    builtin and then its argument prototype would still apply.  */
17867 #ifdef __cplusplus
17868 extern "C"
17869 #endif
17870 char __alloca ();
17871 int
17872 main ()
17873 {
17874 return __alloca ();
17875   ;
17876   return 0;
17877 }
17878 _ACEOF
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (ac_try="$ac_link"
17881 case "(($ac_try" in
17882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883   *) ac_try_echo=$ac_try;;
17884 esac
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886   (eval "$ac_link") 2>conftest.er1
17887   ac_status=$?
17888   grep -v '^ *+' conftest.er1 >conftest.err
17889   rm -f conftest.er1
17890   cat conftest.err >&5
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); } &&
17893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17894   { (case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_try") 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; } &&
17903          { ac_try='test -s conftest$ac_exeext'
17904   { (case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_try") 2>&5
17910   ac_status=$?
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); }; }; then
17913   ac_cv_lib_gcc___alloca=yes
17914 else
17915   echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17917
17918         ac_cv_lib_gcc___alloca=no
17919 fi
17920
17921 rm -f core conftest.err conftest.$ac_objext \
17922       conftest$ac_exeext conftest.$ac_ext
17923 LIBS=$ac_check_lib_save_LIBS
17924 fi
17925 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17926 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17927 if test $ac_cv_lib_gcc___alloca = yes; then
17928
17929 cat >>confdefs.h <<\_ACEOF
17930 #define HAVE___ALLOCA 1
17931 _ACEOF
17932
17933 fi
17934
17935   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17936 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17937 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17938   echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940   ac_check_lib_save_LIBS=$LIBS
17941 LIBS="-lgcc  $LIBS"
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h.  */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h.  */
17948
17949 /* Override any GCC internal prototype to avoid an error.
17950    Use char because int might match the return type of a GCC
17951    builtin and then its argument prototype would still apply.  */
17952 #ifdef __cplusplus
17953 extern "C"
17954 #endif
17955 char __chkstk ();
17956 int
17957 main ()
17958 {
17959 return __chkstk ();
17960   ;
17961   return 0;
17962 }
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968   *) ac_try_echo=$ac_try;;
17969 esac
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971   (eval "$ac_link") 2>conftest.er1
17972   ac_status=$?
17973   grep -v '^ *+' conftest.er1 >conftest.err
17974   rm -f conftest.er1
17975   cat conftest.err >&5
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); } &&
17978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17979   { (case "(($ac_try" in
17980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981   *) ac_try_echo=$ac_try;;
17982 esac
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984   (eval "$ac_try") 2>&5
17985   ac_status=$?
17986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987   (exit $ac_status); }; } &&
17988          { ac_try='test -s conftest$ac_exeext'
17989   { (case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_try") 2>&5
17995   ac_status=$?
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); }; }; then
17998   ac_cv_lib_gcc___chkstk=yes
17999 else
18000   echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.$ac_ext >&5
18002
18003         ac_cv_lib_gcc___chkstk=no
18004 fi
18005
18006 rm -f core conftest.err conftest.$ac_objext \
18007       conftest$ac_exeext conftest.$ac_ext
18008 LIBS=$ac_check_lib_save_LIBS
18009 fi
18010 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18011 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18012 if test $ac_cv_lib_gcc___chkstk = yes; then
18013
18014 cat >>confdefs.h <<\_ACEOF
18015 #define HAVE___CHKSTK 1
18016 _ACEOF
18017
18018 fi
18019
18020   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18021 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18022 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18023   echo $ECHO_N "(cached) $ECHO_C" >&6
18024 else
18025   ac_check_lib_save_LIBS=$LIBS
18026 LIBS="-lgcc  $LIBS"
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033
18034 /* Override any GCC internal prototype to avoid an error.
18035    Use char because int might match the return type of a GCC
18036    builtin and then its argument prototype would still apply.  */
18037 #ifdef __cplusplus
18038 extern "C"
18039 #endif
18040 char ___chkstk ();
18041 int
18042 main ()
18043 {
18044 return ___chkstk ();
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_link") 2>conftest.er1
18057   ac_status=$?
18058   grep -v '^ *+' conftest.er1 >conftest.err
18059   rm -f conftest.er1
18060   cat conftest.err >&5
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } &&
18063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18064   { (case "(($ac_try" in
18065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066   *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069   (eval "$ac_try") 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); }; } &&
18073          { ac_try='test -s conftest$ac_exeext'
18074   { (case "(($ac_try" in
18075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076   *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079   (eval "$ac_try") 2>&5
18080   ac_status=$?
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); }; }; then
18083   ac_cv_lib_gcc____chkstk=yes
18084 else
18085   echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088         ac_cv_lib_gcc____chkstk=no
18089 fi
18090
18091 rm -f core conftest.err conftest.$ac_objext \
18092       conftest$ac_exeext conftest.$ac_ext
18093 LIBS=$ac_check_lib_save_LIBS
18094 fi
18095 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18096 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18097 if test $ac_cv_lib_gcc____chkstk = yes; then
18098
18099 cat >>confdefs.h <<\_ACEOF
18100 #define HAVE____CHKSTK 1
18101 _ACEOF
18102
18103 fi
18104
18105
18106   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18107 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18108 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18109   echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111   ac_check_lib_save_LIBS=$LIBS
18112 LIBS="-lgcc  $LIBS"
18113 cat >conftest.$ac_ext <<_ACEOF
18114 /* confdefs.h.  */
18115 _ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h.  */
18119
18120 /* Override any GCC internal prototype to avoid an error.
18121    Use char because int might match the return type of a GCC
18122    builtin and then its argument prototype would still apply.  */
18123 #ifdef __cplusplus
18124 extern "C"
18125 #endif
18126 char __ashldi3 ();
18127 int
18128 main ()
18129 {
18130 return __ashldi3 ();
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142   (eval "$ac_link") 2>conftest.er1
18143   ac_status=$?
18144   grep -v '^ *+' conftest.er1 >conftest.err
18145   rm -f conftest.er1
18146   cat conftest.err >&5
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); } &&
18149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18150   { (case "(($ac_try" in
18151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152   *) ac_try_echo=$ac_try;;
18153 esac
18154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155   (eval "$ac_try") 2>&5
18156   ac_status=$?
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); }; } &&
18159          { ac_try='test -s conftest$ac_exeext'
18160   { (case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165   (eval "$ac_try") 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; }; then
18169   ac_cv_lib_gcc___ashldi3=yes
18170 else
18171   echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18173
18174         ac_cv_lib_gcc___ashldi3=no
18175 fi
18176
18177 rm -f core conftest.err conftest.$ac_objext \
18178       conftest$ac_exeext conftest.$ac_ext
18179 LIBS=$ac_check_lib_save_LIBS
18180 fi
18181 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18182 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18183 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18184
18185 cat >>confdefs.h <<\_ACEOF
18186 #define HAVE___ASHLDI3 1
18187 _ACEOF
18188
18189 fi
18190
18191   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18192 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18193 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18194   echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18196   ac_check_lib_save_LIBS=$LIBS
18197 LIBS="-lgcc  $LIBS"
18198 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h.  */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h.  */
18204
18205 /* Override any GCC internal prototype to avoid an error.
18206    Use char because int might match the return type of a GCC
18207    builtin and then its argument prototype would still apply.  */
18208 #ifdef __cplusplus
18209 extern "C"
18210 #endif
18211 char __ashrdi3 ();
18212 int
18213 main ()
18214 {
18215 return __ashrdi3 ();
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (ac_try="$ac_link"
18222 case "(($ac_try" in
18223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224   *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227   (eval "$ac_link") 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18235   { (case "(($ac_try" in
18236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237   *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240   (eval "$ac_try") 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; } &&
18244          { ac_try='test -s conftest$ac_exeext'
18245   { (case "(($ac_try" in
18246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247   *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250   (eval "$ac_try") 2>&5
18251   ac_status=$?
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); }; }; then
18254   ac_cv_lib_gcc___ashrdi3=yes
18255 else
18256   echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18258
18259         ac_cv_lib_gcc___ashrdi3=no
18260 fi
18261
18262 rm -f core conftest.err conftest.$ac_objext \
18263       conftest$ac_exeext conftest.$ac_ext
18264 LIBS=$ac_check_lib_save_LIBS
18265 fi
18266 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18267 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18268 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18269
18270 cat >>confdefs.h <<\_ACEOF
18271 #define HAVE___ASHRDI3 1
18272 _ACEOF
18273
18274 fi
18275
18276   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18277 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18278 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18279   echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281   ac_check_lib_save_LIBS=$LIBS
18282 LIBS="-lgcc  $LIBS"
18283 cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289
18290 /* Override any GCC internal prototype to avoid an error.
18291    Use char because int might match the return type of a GCC
18292    builtin and then its argument prototype would still apply.  */
18293 #ifdef __cplusplus
18294 extern "C"
18295 #endif
18296 char __divdi3 ();
18297 int
18298 main ()
18299 {
18300 return __divdi3 ();
18301   ;
18302   return 0;
18303 }
18304 _ACEOF
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (ac_try="$ac_link"
18307 case "(($ac_try" in
18308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309   *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312   (eval "$ac_link") 2>conftest.er1
18313   ac_status=$?
18314   grep -v '^ *+' conftest.er1 >conftest.err
18315   rm -f conftest.er1
18316   cat conftest.err >&5
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); } &&
18319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18320   { (case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325   (eval "$ac_try") 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }; } &&
18329          { ac_try='test -s conftest$ac_exeext'
18330   { (case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_try") 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; }; then
18339   ac_cv_lib_gcc___divdi3=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344         ac_cv_lib_gcc___divdi3=no
18345 fi
18346
18347 rm -f core conftest.err conftest.$ac_objext \
18348       conftest$ac_exeext conftest.$ac_ext
18349 LIBS=$ac_check_lib_save_LIBS
18350 fi
18351 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18352 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18353 if test $ac_cv_lib_gcc___divdi3 = yes; then
18354
18355 cat >>confdefs.h <<\_ACEOF
18356 #define HAVE___DIVDI3 1
18357 _ACEOF
18358
18359 fi
18360
18361   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18362 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18363 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18364   echo $ECHO_N "(cached) $ECHO_C" >&6
18365 else
18366   ac_check_lib_save_LIBS=$LIBS
18367 LIBS="-lgcc  $LIBS"
18368 cat >conftest.$ac_ext <<_ACEOF
18369 /* confdefs.h.  */
18370 _ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h.  */
18374
18375 /* Override any GCC internal prototype to avoid an error.
18376    Use char because int might match the return type of a GCC
18377    builtin and then its argument prototype would still apply.  */
18378 #ifdef __cplusplus
18379 extern "C"
18380 #endif
18381 char __fixdfdi ();
18382 int
18383 main ()
18384 {
18385 return __fixdfdi ();
18386   ;
18387   return 0;
18388 }
18389 _ACEOF
18390 rm -f conftest.$ac_objext conftest$ac_exeext
18391 if { (ac_try="$ac_link"
18392 case "(($ac_try" in
18393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394   *) ac_try_echo=$ac_try;;
18395 esac
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397   (eval "$ac_link") 2>conftest.er1
18398   ac_status=$?
18399   grep -v '^ *+' conftest.er1 >conftest.err
18400   rm -f conftest.er1
18401   cat conftest.err >&5
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); } &&
18404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18405   { (case "(($ac_try" in
18406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407   *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410   (eval "$ac_try") 2>&5
18411   ac_status=$?
18412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413   (exit $ac_status); }; } &&
18414          { ac_try='test -s conftest$ac_exeext'
18415   { (case "(($ac_try" in
18416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417   *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420   (eval "$ac_try") 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; }; then
18424   ac_cv_lib_gcc___fixdfdi=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429         ac_cv_lib_gcc___fixdfdi=no
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext \
18433       conftest$ac_exeext conftest.$ac_ext
18434 LIBS=$ac_check_lib_save_LIBS
18435 fi
18436 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18437 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18438 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18439
18440 cat >>confdefs.h <<\_ACEOF
18441 #define HAVE___FIXDFDI 1
18442 _ACEOF
18443
18444 fi
18445
18446   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18447 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18448 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18449   echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451   ac_check_lib_save_LIBS=$LIBS
18452 LIBS="-lgcc  $LIBS"
18453 cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h.  */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h.  */
18459
18460 /* Override any GCC internal prototype to avoid an error.
18461    Use char because int might match the return type of a GCC
18462    builtin and then its argument prototype would still apply.  */
18463 #ifdef __cplusplus
18464 extern "C"
18465 #endif
18466 char __fixsfdi ();
18467 int
18468 main ()
18469 {
18470 return __fixsfdi ();
18471   ;
18472   return 0;
18473 }
18474 _ACEOF
18475 rm -f conftest.$ac_objext conftest$ac_exeext
18476 if { (ac_try="$ac_link"
18477 case "(($ac_try" in
18478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479   *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482   (eval "$ac_link") 2>conftest.er1
18483   ac_status=$?
18484   grep -v '^ *+' conftest.er1 >conftest.err
18485   rm -f conftest.er1
18486   cat conftest.err >&5
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } &&
18489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18490   { (case "(($ac_try" in
18491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492   *) ac_try_echo=$ac_try;;
18493 esac
18494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495   (eval "$ac_try") 2>&5
18496   ac_status=$?
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); }; } &&
18499          { ac_try='test -s conftest$ac_exeext'
18500   { (case "(($ac_try" in
18501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502   *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505   (eval "$ac_try") 2>&5
18506   ac_status=$?
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); }; }; then
18509   ac_cv_lib_gcc___fixsfdi=yes
18510 else
18511   echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18513
18514         ac_cv_lib_gcc___fixsfdi=no
18515 fi
18516
18517 rm -f core conftest.err conftest.$ac_objext \
18518       conftest$ac_exeext conftest.$ac_ext
18519 LIBS=$ac_check_lib_save_LIBS
18520 fi
18521 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18522 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18523 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18524
18525 cat >>confdefs.h <<\_ACEOF
18526 #define HAVE___FIXSFDI 1
18527 _ACEOF
18528
18529 fi
18530
18531   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18532 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18533 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18534   echo $ECHO_N "(cached) $ECHO_C" >&6
18535 else
18536   ac_check_lib_save_LIBS=$LIBS
18537 LIBS="-lgcc  $LIBS"
18538 cat >conftest.$ac_ext <<_ACEOF
18539 /* confdefs.h.  */
18540 _ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h.  */
18544
18545 /* Override any GCC internal prototype to avoid an error.
18546    Use char because int might match the return type of a GCC
18547    builtin and then its argument prototype would still apply.  */
18548 #ifdef __cplusplus
18549 extern "C"
18550 #endif
18551 char __floatdidf ();
18552 int
18553 main ()
18554 {
18555 return __floatdidf ();
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (ac_try="$ac_link"
18562 case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_link") 2>conftest.er1
18568   ac_status=$?
18569   grep -v '^ *+' conftest.er1 >conftest.err
18570   rm -f conftest.er1
18571   cat conftest.err >&5
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); } &&
18574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18575   { (case "(($ac_try" in
18576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577   *) ac_try_echo=$ac_try;;
18578 esac
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580   (eval "$ac_try") 2>&5
18581   ac_status=$?
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); }; } &&
18584          { ac_try='test -s conftest$ac_exeext'
18585   { (case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_try") 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; }; then
18594   ac_cv_lib_gcc___floatdidf=yes
18595 else
18596   echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18598
18599         ac_cv_lib_gcc___floatdidf=no
18600 fi
18601
18602 rm -f core conftest.err conftest.$ac_objext \
18603       conftest$ac_exeext conftest.$ac_ext
18604 LIBS=$ac_check_lib_save_LIBS
18605 fi
18606 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18607 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18608 if test $ac_cv_lib_gcc___floatdidf = yes; then
18609
18610 cat >>confdefs.h <<\_ACEOF
18611 #define HAVE___FLOATDIDF 1
18612 _ACEOF
18613
18614 fi
18615
18616   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18617 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18618 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18619   echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18621   ac_check_lib_save_LIBS=$LIBS
18622 LIBS="-lgcc  $LIBS"
18623 cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h.  */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h.  */
18629
18630 /* Override any GCC internal prototype to avoid an error.
18631    Use char because int might match the return type of a GCC
18632    builtin and then its argument prototype would still apply.  */
18633 #ifdef __cplusplus
18634 extern "C"
18635 #endif
18636 char __lshrdi3 ();
18637 int
18638 main ()
18639 {
18640 return __lshrdi3 ();
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest.$ac_objext conftest$ac_exeext
18646 if { (ac_try="$ac_link"
18647 case "(($ac_try" in
18648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649   *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652   (eval "$ac_link") 2>conftest.er1
18653   ac_status=$?
18654   grep -v '^ *+' conftest.er1 >conftest.err
18655   rm -f conftest.er1
18656   cat conftest.err >&5
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); } &&
18659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18660   { (case "(($ac_try" in
18661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662   *) ac_try_echo=$ac_try;;
18663 esac
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665   (eval "$ac_try") 2>&5
18666   ac_status=$?
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); }; } &&
18669          { ac_try='test -s conftest$ac_exeext'
18670   { (case "(($ac_try" in
18671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672   *) ac_try_echo=$ac_try;;
18673 esac
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675   (eval "$ac_try") 2>&5
18676   ac_status=$?
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); }; }; then
18679   ac_cv_lib_gcc___lshrdi3=yes
18680 else
18681   echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18683
18684         ac_cv_lib_gcc___lshrdi3=no
18685 fi
18686
18687 rm -f core conftest.err conftest.$ac_objext \
18688       conftest$ac_exeext conftest.$ac_ext
18689 LIBS=$ac_check_lib_save_LIBS
18690 fi
18691 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18692 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18693 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE___LSHRDI3 1
18697 _ACEOF
18698
18699 fi
18700
18701   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18702 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18703 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18704   echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706   ac_check_lib_save_LIBS=$LIBS
18707 LIBS="-lgcc  $LIBS"
18708 cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h.  */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h.  */
18714
18715 /* Override any GCC internal prototype to avoid an error.
18716    Use char because int might match the return type of a GCC
18717    builtin and then its argument prototype would still apply.  */
18718 #ifdef __cplusplus
18719 extern "C"
18720 #endif
18721 char __moddi3 ();
18722 int
18723 main ()
18724 {
18725 return __moddi3 ();
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_link") 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } &&
18744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18745   { (case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_try") 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; } &&
18754          { ac_try='test -s conftest$ac_exeext'
18755   { (case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_try") 2>&5
18761   ac_status=$?
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); }; }; then
18764   ac_cv_lib_gcc___moddi3=yes
18765 else
18766   echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769         ac_cv_lib_gcc___moddi3=no
18770 fi
18771
18772 rm -f core conftest.err conftest.$ac_objext \
18773       conftest$ac_exeext conftest.$ac_ext
18774 LIBS=$ac_check_lib_save_LIBS
18775 fi
18776 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18777 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18778 if test $ac_cv_lib_gcc___moddi3 = yes; then
18779
18780 cat >>confdefs.h <<\_ACEOF
18781 #define HAVE___MODDI3 1
18782 _ACEOF
18783
18784 fi
18785
18786   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18787 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18788 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18789   echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791   ac_check_lib_save_LIBS=$LIBS
18792 LIBS="-lgcc  $LIBS"
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h.  */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h.  */
18799
18800 /* Override any GCC internal prototype to avoid an error.
18801    Use char because int might match the return type of a GCC
18802    builtin and then its argument prototype would still apply.  */
18803 #ifdef __cplusplus
18804 extern "C"
18805 #endif
18806 char __udivdi3 ();
18807 int
18808 main ()
18809 {
18810 return __udivdi3 ();
18811   ;
18812   return 0;
18813 }
18814 _ACEOF
18815 rm -f conftest.$ac_objext conftest$ac_exeext
18816 if { (ac_try="$ac_link"
18817 case "(($ac_try" in
18818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819   *) ac_try_echo=$ac_try;;
18820 esac
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822   (eval "$ac_link") 2>conftest.er1
18823   ac_status=$?
18824   grep -v '^ *+' conftest.er1 >conftest.err
18825   rm -f conftest.er1
18826   cat conftest.err >&5
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); } &&
18829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18830   { (case "(($ac_try" in
18831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832   *) ac_try_echo=$ac_try;;
18833 esac
18834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835   (eval "$ac_try") 2>&5
18836   ac_status=$?
18837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); }; } &&
18839          { ac_try='test -s conftest$ac_exeext'
18840   { (case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845   (eval "$ac_try") 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); }; }; then
18849   ac_cv_lib_gcc___udivdi3=yes
18850 else
18851   echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854         ac_cv_lib_gcc___udivdi3=no
18855 fi
18856
18857 rm -f core conftest.err conftest.$ac_objext \
18858       conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18860 fi
18861 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18862 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18863 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18864
18865 cat >>confdefs.h <<\_ACEOF
18866 #define HAVE___UDIVDI3 1
18867 _ACEOF
18868
18869 fi
18870
18871   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18872 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18873 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18874   echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876   ac_check_lib_save_LIBS=$LIBS
18877 LIBS="-lgcc  $LIBS"
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h.  */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h.  */
18884
18885 /* Override any GCC internal prototype to avoid an error.
18886    Use char because int might match the return type of a GCC
18887    builtin and then its argument prototype would still apply.  */
18888 #ifdef __cplusplus
18889 extern "C"
18890 #endif
18891 char __umoddi3 ();
18892 int
18893 main ()
18894 {
18895 return __umoddi3 ();
18896   ;
18897   return 0;
18898 }
18899 _ACEOF
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907   (eval "$ac_link") 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } &&
18914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18915   { (case "(($ac_try" in
18916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917   *) ac_try_echo=$ac_try;;
18918 esac
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920   (eval "$ac_try") 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; } &&
18924          { ac_try='test -s conftest$ac_exeext'
18925   { (case "(($ac_try" in
18926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927   *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930   (eval "$ac_try") 2>&5
18931   ac_status=$?
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); }; }; then
18934   ac_cv_lib_gcc___umoddi3=yes
18935 else
18936   echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18938
18939         ac_cv_lib_gcc___umoddi3=no
18940 fi
18941
18942 rm -f core conftest.err conftest.$ac_objext \
18943       conftest$ac_exeext conftest.$ac_ext
18944 LIBS=$ac_check_lib_save_LIBS
18945 fi
18946 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18947 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18948 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18949
18950 cat >>confdefs.h <<\_ACEOF
18951 #define HAVE___UMODDI3 1
18952 _ACEOF
18953
18954 fi
18955
18956
18957   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18958 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18959 if test "${ac_cv_lib_gcc___main+set}" = set; then
18960   echo $ECHO_N "(cached) $ECHO_C" >&6
18961 else
18962   ac_check_lib_save_LIBS=$LIBS
18963 LIBS="-lgcc  $LIBS"
18964 cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h.  */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h.  */
18970
18971 /* Override any GCC internal prototype to avoid an error.
18972    Use char because int might match the return type of a GCC
18973    builtin and then its argument prototype would still apply.  */
18974 #ifdef __cplusplus
18975 extern "C"
18976 #endif
18977 char __main ();
18978 int
18979 main ()
18980 {
18981 return __main ();
18982   ;
18983   return 0;
18984 }
18985 _ACEOF
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990   *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993   (eval "$ac_link") 2>conftest.er1
18994   ac_status=$?
18995   grep -v '^ *+' conftest.er1 >conftest.err
18996   rm -f conftest.er1
18997   cat conftest.err >&5
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); } &&
19000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19001   { (case "(($ac_try" in
19002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003   *) ac_try_echo=$ac_try;;
19004 esac
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006   (eval "$ac_try") 2>&5
19007   ac_status=$?
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); }; } &&
19010          { ac_try='test -s conftest$ac_exeext'
19011   { (case "(($ac_try" in
19012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013   *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016   (eval "$ac_try") 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; }; then
19020   ac_cv_lib_gcc___main=yes
19021 else
19022   echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025         ac_cv_lib_gcc___main=no
19026 fi
19027
19028 rm -f core conftest.err conftest.$ac_objext \
19029       conftest$ac_exeext conftest.$ac_ext
19030 LIBS=$ac_check_lib_save_LIBS
19031 fi
19032 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19033 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19034 if test $ac_cv_lib_gcc___main = yes; then
19035
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE___MAIN 1
19038 _ACEOF
19039
19040 fi
19041
19042   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19043 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19044 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19045   echo $ECHO_N "(cached) $ECHO_C" >&6
19046 else
19047   ac_check_lib_save_LIBS=$LIBS
19048 LIBS="-lgcc  $LIBS"
19049 cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h.  */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h.  */
19055
19056 /* Override any GCC internal prototype to avoid an error.
19057    Use char because int might match the return type of a GCC
19058    builtin and then its argument prototype would still apply.  */
19059 #ifdef __cplusplus
19060 extern "C"
19061 #endif
19062 char __cmpdi2 ();
19063 int
19064 main ()
19065 {
19066 return __cmpdi2 ();
19067   ;
19068   return 0;
19069 }
19070 _ACEOF
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (ac_try="$ac_link"
19073 case "(($ac_try" in
19074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075   *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078   (eval "$ac_link") 2>conftest.er1
19079   ac_status=$?
19080   grep -v '^ *+' conftest.er1 >conftest.err
19081   rm -f conftest.er1
19082   cat conftest.err >&5
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); } &&
19085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19086   { (case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_try") 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; } &&
19095          { ac_try='test -s conftest$ac_exeext'
19096   { (case "(($ac_try" in
19097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098   *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101   (eval "$ac_try") 2>&5
19102   ac_status=$?
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); }; }; then
19105   ac_cv_lib_gcc___cmpdi2=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110         ac_cv_lib_gcc___cmpdi2=no
19111 fi
19112
19113 rm -f core conftest.err conftest.$ac_objext \
19114       conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19116 fi
19117 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19118 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19119 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19120
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE___CMPDI2 1
19123 _ACEOF
19124
19125 fi
19126
19127 fi
19128
19129 if test "$llvm_cv_os_type" = "MingW" ; then
19130   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19131 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19132   cat >conftest.$ac_ext <<_ACEOF
19133 #include <windows.h>
19134 #include <imagehlp.h>
19135 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19136 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19137 _ACEOF
19138 rm -f conftest.$ac_objext
19139 if { (ac_try="$ac_compile"
19140 case "(($ac_try" in
19141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142   *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145   (eval "$ac_compile") 2>conftest.er1
19146   ac_status=$?
19147   grep -v '^ *+' conftest.er1 >conftest.err
19148   rm -f conftest.er1
19149   cat conftest.err >&5
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); } &&
19152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19153   { (case "(($ac_try" in
19154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155   *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158   (eval "$ac_try") 2>&5
19159   ac_status=$?
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); }; } &&
19162          { ac_try='test -s conftest.$ac_objext'
19163   { (case "(($ac_try" in
19164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165   *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168   (eval "$ac_try") 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172
19173   { echo "$as_me:$LINENO: result: yes" >&5
19174 echo "${ECHO_T}yes" >&6; }
19175   llvm_cv_win32_elmcb_pcstr="PCSTR"
19176
19177 else
19178   echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181
19182   { echo "$as_me:$LINENO: result: no" >&5
19183 echo "${ECHO_T}no" >&6; }
19184   llvm_cv_win32_elmcb_pcstr="PSTR"
19185
19186 fi
19187
19188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19189
19190 cat >>confdefs.h <<_ACEOF
19191 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19192 _ACEOF
19193
19194 fi
19195
19196
19197 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19198 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19199 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19200   echo $ECHO_N "(cached) $ECHO_C" >&6
19201 else
19202   ac_ext=cpp
19203 ac_cpp='$CXXCPP $CPPFLAGS'
19204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19207
19208    cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h.  */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h.  */
19214 #include <math.h>
19215 int
19216 main ()
19217 {
19218 float f; isnan(f);
19219   ;
19220   return 0;
19221 }
19222 _ACEOF
19223 rm -f conftest.$ac_objext
19224 if { (ac_try="$ac_compile"
19225 case "(($ac_try" in
19226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227   *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230   (eval "$ac_compile") 2>conftest.er1
19231   ac_status=$?
19232   grep -v '^ *+' conftest.er1 >conftest.err
19233   rm -f conftest.er1
19234   cat conftest.err >&5
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } &&
19237          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19238   { (case "(($ac_try" in
19239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240   *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243   (eval "$ac_try") 2>&5
19244   ac_status=$?
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); }; } &&
19247          { ac_try='test -s conftest.$ac_objext'
19248   { (case "(($ac_try" in
19249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250   *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253   (eval "$ac_try") 2>&5
19254   ac_status=$?
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); }; }; then
19257   ac_cv_func_isnan_in_math_h=yes
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262         ac_cv_func_isnan_in_math_h=no
19263 fi
19264
19265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19266   ac_ext=c
19267 ac_cpp='$CPP $CPPFLAGS'
19268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19271
19272 fi
19273 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19274 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19275
19276
19277 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19278
19279 cat >>confdefs.h <<\_ACEOF
19280 #define HAVE_ISNAN_IN_MATH_H 1
19281 _ACEOF
19282
19283 fi
19284
19285 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19286 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19287 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19288   echo $ECHO_N "(cached) $ECHO_C" >&6
19289 else
19290   ac_ext=cpp
19291 ac_cpp='$CXXCPP $CPPFLAGS'
19292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19295
19296    cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h.  */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h.  */
19302 #include <cmath>
19303 int
19304 main ()
19305 {
19306 float f; isnan(f);
19307   ;
19308   return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext
19312 if { (ac_try="$ac_compile"
19313 case "(($ac_try" in
19314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315   *) ac_try_echo=$ac_try;;
19316 esac
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318   (eval "$ac_compile") 2>conftest.er1
19319   ac_status=$?
19320   grep -v '^ *+' conftest.er1 >conftest.err
19321   rm -f conftest.er1
19322   cat conftest.err >&5
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); } &&
19325          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
19335          { ac_try='test -s conftest.$ac_objext'
19336   { (case "(($ac_try" in
19337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338   *) ac_try_echo=$ac_try;;
19339 esac
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341   (eval "$ac_try") 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }; }; then
19345   ac_cv_func_isnan_in_cmath=yes
19346 else
19347   echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350         ac_cv_func_isnan_in_cmath=no
19351 fi
19352
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354   ac_ext=c
19355 ac_cpp='$CPP $CPPFLAGS'
19356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19359
19360 fi
19361 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19362 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19363
19364 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19365
19366 cat >>confdefs.h <<\_ACEOF
19367 #define HAVE_ISNAN_IN_CMATH 1
19368 _ACEOF
19369
19370 fi
19371
19372 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19373 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19374 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   ac_ext=cpp
19378 ac_cpp='$CXXCPP $CPPFLAGS'
19379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
19383    cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h.  */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h.  */
19389 #include <cmath>
19390 int
19391 main ()
19392 {
19393 float f; std::isnan(f);
19394   ;
19395   return 0;
19396 }
19397 _ACEOF
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_compile") 2>conftest.er1
19406   ac_status=$?
19407   grep -v '^ *+' conftest.er1 >conftest.err
19408   rm -f conftest.er1
19409   cat conftest.err >&5
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); } &&
19412          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413   { (case "(($ac_try" in
19414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415   *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418   (eval "$ac_try") 2>&5
19419   ac_status=$?
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); }; } &&
19422          { ac_try='test -s conftest.$ac_objext'
19423   { (case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428   (eval "$ac_try") 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_func_std_isnan_in_cmath=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437         ac_cv_func_std_isnan_in_cmath=no
19438 fi
19439
19440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441   ac_ext=c
19442 ac_cpp='$CPP $CPPFLAGS'
19443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446
19447 fi
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19449 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19450
19451 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19452
19453 cat >>confdefs.h <<\_ACEOF
19454 #define HAVE_STD_ISNAN_IN_CMATH 1
19455 _ACEOF
19456
19457 fi
19458
19459
19460 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19461 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19462 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19463   echo $ECHO_N "(cached) $ECHO_C" >&6
19464 else
19465   ac_ext=cpp
19466 ac_cpp='$CXXCPP $CPPFLAGS'
19467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19470
19471    cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h.  */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h.  */
19477 #include <math.h>
19478 int
19479 main ()
19480 {
19481 float f; isinf(f);
19482   ;
19483   return 0;
19484 }
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (ac_try="$ac_compile"
19488 case "(($ac_try" in
19489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490   *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493   (eval "$ac_compile") 2>conftest.er1
19494   ac_status=$?
19495   grep -v '^ *+' conftest.er1 >conftest.err
19496   rm -f conftest.er1
19497   cat conftest.err >&5
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); } &&
19500          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
19510          { ac_try='test -s conftest.$ac_objext'
19511   { (case "(($ac_try" in
19512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513   *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516   (eval "$ac_try") 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); }; }; then
19520   ac_cv_func_isinf_in_math_h=yes
19521 else
19522   echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19524
19525         ac_cv_func_isinf_in_math_h=no
19526 fi
19527
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529   ac_ext=c
19530 ac_cpp='$CPP $CPPFLAGS'
19531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534
19535 fi
19536 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19537 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19538
19539 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19540
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_ISINF_IN_MATH_H 1
19543 _ACEOF
19544
19545 fi
19546
19547 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19548 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19549 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552   ac_ext=cpp
19553 ac_cpp='$CXXCPP $CPPFLAGS'
19554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19557
19558    cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h.  */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h.  */
19564 #include <cmath>
19565 int
19566 main ()
19567 {
19568 float f; isinf(f);
19569   ;
19570   return 0;
19571 }
19572 _ACEOF
19573 rm -f conftest.$ac_objext
19574 if { (ac_try="$ac_compile"
19575 case "(($ac_try" in
19576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577   *) ac_try_echo=$ac_try;;
19578 esac
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580   (eval "$ac_compile") 2>conftest.er1
19581   ac_status=$?
19582   grep -v '^ *+' conftest.er1 >conftest.err
19583   rm -f conftest.er1
19584   cat conftest.err >&5
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); } &&
19587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
19597          { ac_try='test -s conftest.$ac_objext'
19598   { (case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603   (eval "$ac_try") 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; }; then
19607   ac_cv_func_isinf_in_cmath=yes
19608 else
19609   echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19611
19612         ac_cv_func_isinf_in_cmath=no
19613 fi
19614
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19616   ac_ext=c
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622 fi
19623 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19624 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19625
19626 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19627
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_ISINF_IN_CMATH 1
19630 _ACEOF
19631
19632 fi
19633
19634 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19635 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19636 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19637   echo $ECHO_N "(cached) $ECHO_C" >&6
19638 else
19639   ac_ext=cpp
19640 ac_cpp='$CXXCPP $CPPFLAGS'
19641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19644
19645    cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651 #include <cmath>
19652 int
19653 main ()
19654 {
19655 float f; std::isinf(f)}
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_compile") 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } &&
19674          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
19684          { ac_try='test -s conftest.$ac_objext'
19685   { (case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_try") 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; }; then
19694   ac_cv_func_std_isinf_in_cmath=yes
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699         ac_cv_func_std_isinf_in_cmath=no
19700 fi
19701
19702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703   ac_ext=c
19704 ac_cpp='$CPP $CPPFLAGS'
19705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19708
19709 fi
19710 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19711 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19712
19713 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19714
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE_STD_ISINF_IN_CMATH 1
19717 _ACEOF
19718
19719 fi
19720
19721 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19722 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19723 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 else
19726   ac_ext=cpp
19727 ac_cpp='$CXXCPP $CPPFLAGS'
19728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19731
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 #include <ieeefp.h>
19739 int
19740 main ()
19741 {
19742 float f; finite(f);
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext
19748 if { (ac_try="$ac_compile"
19749 case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754   (eval "$ac_compile") 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } &&
19761          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19762   { (case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767   (eval "$ac_try") 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); }; } &&
19771          { ac_try='test -s conftest.$ac_objext'
19772   { (case "(($ac_try" in
19773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774   *) ac_try_echo=$ac_try;;
19775 esac
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777   (eval "$ac_try") 2>&5
19778   ac_status=$?
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); }; }; then
19781   ac_cv_func_finite_in_ieeefp_h=yes
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786         ac_cv_func_finite_in_ieeefp_h=no
19787 fi
19788
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790   ac_ext=c
19791 ac_cpp='$CPP $CPPFLAGS'
19792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19795
19796 fi
19797 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19798 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19799
19800 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_FINITE_IN_IEEEFP_H 1
19804 _ACEOF
19805
19806 fi
19807
19808
19809
19810 if test "$llvm_cv_platform_type" = "Unix" ; then
19811
19812
19813 for ac_header in stdlib.h unistd.h
19814 do
19815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19817   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 fi
19822 ac_res=`eval echo '${'$as_ac_Header'}'`
19823                { echo "$as_me:$LINENO: result: $ac_res" >&5
19824 echo "${ECHO_T}$ac_res" >&6; }
19825 else
19826   # Is the header compilable?
19827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h.  */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h.  */
19835 $ac_includes_default
19836 #include <$ac_header>
19837 _ACEOF
19838 rm -f conftest.$ac_objext
19839 if { (ac_try="$ac_compile"
19840 case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845   (eval "$ac_compile") 2>conftest.er1
19846   ac_status=$?
19847   grep -v '^ *+' conftest.er1 >conftest.err
19848   rm -f conftest.er1
19849   cat conftest.err >&5
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } &&
19852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19853   { (case "(($ac_try" in
19854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855   *) ac_try_echo=$ac_try;;
19856 esac
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858   (eval "$ac_try") 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; } &&
19862          { ac_try='test -s conftest.$ac_objext'
19863   { (case "(($ac_try" in
19864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865   *) ac_try_echo=$ac_try;;
19866 esac
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868   (eval "$ac_try") 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); }; }; then
19872   ac_header_compiler=yes
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877         ac_header_compiler=no
19878 fi
19879
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19882 echo "${ECHO_T}$ac_header_compiler" >&6; }
19883
19884 # Is the header present?
19885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h.  */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h.  */
19893 #include <$ac_header>
19894 _ACEOF
19895 if { (ac_try="$ac_cpp conftest.$ac_ext"
19896 case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19902   ac_status=$?
19903   grep -v '^ *+' conftest.er1 >conftest.err
19904   rm -f conftest.er1
19905   cat conftest.err >&5
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } >/dev/null; then
19908   if test -s conftest.err; then
19909     ac_cpp_err=$ac_c_preproc_warn_flag
19910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19911   else
19912     ac_cpp_err=
19913   fi
19914 else
19915   ac_cpp_err=yes
19916 fi
19917 if test -z "$ac_cpp_err"; then
19918   ac_header_preproc=yes
19919 else
19920   echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923   ac_header_preproc=no
19924 fi
19925
19926 rm -f conftest.err conftest.$ac_ext
19927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19928 echo "${ECHO_T}$ac_header_preproc" >&6; }
19929
19930 # So?  What about this header?
19931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19932   yes:no: )
19933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19937     ac_header_preproc=yes
19938     ;;
19939   no:yes:* )
19940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19952     ( cat <<\_ASBOX
19953 ## ------------------------------ ##
19954 ## Report this to bugs@yourdomain ##
19955 ## ------------------------------ ##
19956 _ASBOX
19957      ) | sed "s/^/$as_me: WARNING:     /" >&2
19958     ;;
19959 esac
19960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   eval "$as_ac_Header=\$ac_header_preproc"
19966 fi
19967 ac_res=`eval echo '${'$as_ac_Header'}'`
19968                { echo "$as_me:$LINENO: result: $ac_res" >&5
19969 echo "${ECHO_T}$ac_res" >&6; }
19970
19971 fi
19972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19973   cat >>confdefs.h <<_ACEOF
19974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19975 _ACEOF
19976
19977 fi
19978
19979 done
19980
19981
19982 for ac_func in getpagesize
19983 do
19984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19988   echo $ECHO_N "(cached) $ECHO_C" >&6
19989 else
19990   cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h.  */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h.  */
19996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19998 #define $ac_func innocuous_$ac_func
19999
20000 /* System header to define __stub macros and hopefully few prototypes,
20001     which can conflict with char $ac_func (); below.
20002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20003     <limits.h> exists even on freestanding compilers.  */
20004
20005 #ifdef __STDC__
20006 # include <limits.h>
20007 #else
20008 # include <assert.h>
20009 #endif
20010
20011 #undef $ac_func
20012
20013 /* Override any GCC internal prototype to avoid an error.
20014    Use char because int might match the return type of a GCC
20015    builtin and then its argument prototype would still apply.  */
20016 #ifdef __cplusplus
20017 extern "C"
20018 #endif
20019 char $ac_func ();
20020 /* The GNU C library defines this for functions which it implements
20021     to always fail with ENOSYS.  Some functions are actually named
20022     something starting with __ and the normal name is an alias.  */
20023 #if defined __stub_$ac_func || defined __stub___$ac_func
20024 choke me
20025 #endif
20026
20027 int
20028 main ()
20029 {
20030 return $ac_func ();
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_link") 2>conftest.er1
20043   ac_status=$?
20044   grep -v '^ *+' conftest.er1 >conftest.err
20045   rm -f conftest.er1
20046   cat conftest.err >&5
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } &&
20049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20050   { (case "(($ac_try" in
20051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052   *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055   (eval "$ac_try") 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; } &&
20059          { ac_try='test -s conftest$ac_exeext'
20060   { (case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_try") 2>&5
20066   ac_status=$?
20067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068   (exit $ac_status); }; }; then
20069   eval "$as_ac_var=yes"
20070 else
20071   echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074         eval "$as_ac_var=no"
20075 fi
20076
20077 rm -f core conftest.err conftest.$ac_objext \
20078       conftest$ac_exeext conftest.$ac_ext
20079 fi
20080 ac_res=`eval echo '${'$as_ac_var'}'`
20081                { echo "$as_me:$LINENO: result: $ac_res" >&5
20082 echo "${ECHO_T}$ac_res" >&6; }
20083 if test `eval echo '${'$as_ac_var'}'` = yes; then
20084   cat >>confdefs.h <<_ACEOF
20085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20086 _ACEOF
20087
20088 fi
20089 done
20090
20091 { echo "$as_me:$LINENO: checking for working mmap" >&5
20092 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20093 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20094   echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096   if test "$cross_compiling" = yes; then
20097   ac_cv_func_mmap_fixed_mapped=no
20098 else
20099   cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 $ac_includes_default
20106 /* malloc might have been renamed as rpl_malloc. */
20107 #undef malloc
20108
20109 /* Thanks to Mike Haertel and Jim Avera for this test.
20110    Here is a matrix of mmap possibilities:
20111         mmap private not fixed
20112         mmap private fixed at somewhere currently unmapped
20113         mmap private fixed at somewhere already mapped
20114         mmap shared not fixed
20115         mmap shared fixed at somewhere currently unmapped
20116         mmap shared fixed at somewhere already mapped
20117    For private mappings, we should verify that changes cannot be read()
20118    back from the file, nor mmap's back from the file at a different
20119    address.  (There have been systems where private was not correctly
20120    implemented like the infamous i386 svr4.0, and systems where the
20121    VM page cache was not coherent with the file system buffer cache
20122    like early versions of FreeBSD and possibly contemporary NetBSD.)
20123    For shared mappings, we should conversely verify that changes get
20124    propagated back to all the places they're supposed to be.
20125
20126    Grep wants private fixed already mapped.
20127    The main things grep needs to know about mmap are:
20128    * does it exist and is it safe to write into the mmap'd area
20129    * how to use it (BSD variants)  */
20130
20131 #include <fcntl.h>
20132 #include <sys/mman.h>
20133
20134 #if !STDC_HEADERS && !HAVE_STDLIB_H
20135 char *malloc ();
20136 #endif
20137
20138 /* This mess was copied from the GNU getpagesize.h.  */
20139 #if !HAVE_GETPAGESIZE
20140 /* Assume that all systems that can run configure have sys/param.h.  */
20141 # if !HAVE_SYS_PARAM_H
20142 #  define HAVE_SYS_PARAM_H 1
20143 # endif
20144
20145 # ifdef _SC_PAGESIZE
20146 #  define getpagesize() sysconf(_SC_PAGESIZE)
20147 # else /* no _SC_PAGESIZE */
20148 #  if HAVE_SYS_PARAM_H
20149 #   include <sys/param.h>
20150 #   ifdef EXEC_PAGESIZE
20151 #    define getpagesize() EXEC_PAGESIZE
20152 #   else /* no EXEC_PAGESIZE */
20153 #    ifdef NBPG
20154 #     define getpagesize() NBPG * CLSIZE
20155 #     ifndef CLSIZE
20156 #      define CLSIZE 1
20157 #     endif /* no CLSIZE */
20158 #    else /* no NBPG */
20159 #     ifdef NBPC
20160 #      define getpagesize() NBPC
20161 #     else /* no NBPC */
20162 #      ifdef PAGESIZE
20163 #       define getpagesize() PAGESIZE
20164 #      endif /* PAGESIZE */
20165 #     endif /* no NBPC */
20166 #    endif /* no NBPG */
20167 #   endif /* no EXEC_PAGESIZE */
20168 #  else /* no HAVE_SYS_PARAM_H */
20169 #   define getpagesize() 8192   /* punt totally */
20170 #  endif /* no HAVE_SYS_PARAM_H */
20171 # endif /* no _SC_PAGESIZE */
20172
20173 #endif /* no HAVE_GETPAGESIZE */
20174
20175 int
20176 main ()
20177 {
20178   char *data, *data2, *data3;
20179   int i, pagesize;
20180   int fd;
20181
20182   pagesize = getpagesize ();
20183
20184   /* First, make a file with some known garbage in it. */
20185   data = (char *) malloc (pagesize);
20186   if (!data)
20187     return 1;
20188   for (i = 0; i < pagesize; ++i)
20189     *(data + i) = rand ();
20190   umask (0);
20191   fd = creat ("conftest.mmap", 0600);
20192   if (fd < 0)
20193     return 1;
20194   if (write (fd, data, pagesize) != pagesize)
20195     return 1;
20196   close (fd);
20197
20198   /* Next, try to mmap the file at a fixed address which already has
20199      something else allocated at it.  If we can, also make sure that
20200      we see the same garbage.  */
20201   fd = open ("conftest.mmap", O_RDWR);
20202   if (fd < 0)
20203     return 1;
20204   data2 = (char *) malloc (2 * pagesize);
20205   if (!data2)
20206     return 1;
20207   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20208   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20209                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20210     return 1;
20211   for (i = 0; i < pagesize; ++i)
20212     if (*(data + i) != *(data2 + i))
20213       return 1;
20214
20215   /* Finally, make sure that changes to the mapped area do not
20216      percolate back to the file as seen by read().  (This is a bug on
20217      some variants of i386 svr4.0.)  */
20218   for (i = 0; i < pagesize; ++i)
20219     *(data2 + i) = *(data2 + i) + 1;
20220   data3 = (char *) malloc (pagesize);
20221   if (!data3)
20222     return 1;
20223   if (read (fd, data3, pagesize) != pagesize)
20224     return 1;
20225   for (i = 0; i < pagesize; ++i)
20226     if (*(data + i) != *(data3 + i))
20227       return 1;
20228   close (fd);
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest$ac_exeext
20233 if { (ac_try="$ac_link"
20234 case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_link") 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20243   { (case "(($ac_try" in
20244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245   *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248   (eval "$ac_try") 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; }; then
20252   ac_cv_func_mmap_fixed_mapped=yes
20253 else
20254   echo "$as_me: program exited with status $ac_status" >&5
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 ( exit $ac_status )
20259 ac_cv_func_mmap_fixed_mapped=no
20260 fi
20261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20262 fi
20263
20264
20265 fi
20266 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20267 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20268 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20269
20270 cat >>confdefs.h <<\_ACEOF
20271 #define HAVE_MMAP 1
20272 _ACEOF
20273
20274 fi
20275 rm -f conftest.mmap
20276
20277   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20278 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20279 if test "${ac_cv_func_mmap_file+set}" = set; then
20280   echo $ECHO_N "(cached) $ECHO_C" >&6
20281 else
20282    ac_ext=c
20283 ac_cpp='$CPP $CPPFLAGS'
20284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20287
20288   if test "$cross_compiling" = yes; then
20289   ac_cv_func_mmap_file=no
20290 else
20291   cat >conftest.$ac_ext <<_ACEOF
20292
20293     /* confdefs.h.  */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h.  */
20298
20299 #include <sys/types.h>
20300 #include <sys/mman.h>
20301 #include <fcntl.h>
20302
20303 int
20304 main ()
20305 {
20306
20307   int fd;
20308   fd = creat ("foo",0777);
20309   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20310   unlink ("foo");
20311   return (fd != (int) MAP_FAILED);
20312   ;
20313   return 0;
20314 }
20315 _ACEOF
20316 rm -f conftest$ac_exeext
20317 if { (ac_try="$ac_link"
20318 case "(($ac_try" in
20319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320   *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323   (eval "$ac_link") 2>&5
20324   ac_status=$?
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20327   { (case "(($ac_try" in
20328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329   *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332   (eval "$ac_try") 2>&5
20333   ac_status=$?
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); }; }; then
20336   ac_cv_func_mmap_file=yes
20337 else
20338   echo "$as_me: program exited with status $ac_status" >&5
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 ( exit $ac_status )
20343 ac_cv_func_mmap_file=no
20344 fi
20345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20346 fi
20347
20348
20349   ac_ext=c
20350 ac_cpp='$CPP $CPPFLAGS'
20351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20354
20355
20356 fi
20357 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20358 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20359 if test "$ac_cv_func_mmap_file" = yes; then
20360
20361 cat >>confdefs.h <<\_ACEOF
20362 #define HAVE_MMAP_FILE
20363 _ACEOF
20364
20365    MMAP_FILE=yes
20366
20367 fi
20368
20369   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20370 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20371 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20372   echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374   if test "$llvm_cv_os_type" = "Interix" ; then
20375    ac_cv_need_dev_zero_for_mmap=yes
20376  else
20377    ac_cv_need_dev_zero_for_mmap=no
20378  fi
20379
20380 fi
20381 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20382 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20383 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20384
20385 cat >>confdefs.h <<\_ACEOF
20386 #define NEED_DEV_ZERO_FOR_MMAP 1
20387 _ACEOF
20388
20389 fi
20390
20391   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20392   then
20393     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20394 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20395   fi
20396   if test "$ac_cv_func_mmap_file" = "no"
20397   then
20398     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20399 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20400   fi
20401 fi
20402
20403 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20404 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20405 ac_ext=cpp
20406 ac_cpp='$CXXCPP $CPPFLAGS'
20407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20410
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 int main() {
20418         volatile unsigned long val = 1;
20419         __sync_synchronize();
20420         __sync_val_compare_and_swap(&val, 1, 0);
20421         __sync_add_and_fetch(&val, 1);
20422         __sync_sub_and_fetch(&val, 1);
20423         return 0;
20424       }
20425
20426 _ACEOF
20427 rm -f conftest.$ac_objext conftest$ac_exeext
20428 if { (ac_try="$ac_link"
20429 case "(($ac_try" in
20430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431   *) ac_try_echo=$ac_try;;
20432 esac
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434   (eval "$ac_link") 2>conftest.er1
20435   ac_status=$?
20436   grep -v '^ *+' conftest.er1 >conftest.err
20437   rm -f conftest.er1
20438   cat conftest.err >&5
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } &&
20441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442   { (case "(($ac_try" in
20443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444   *) ac_try_echo=$ac_try;;
20445 esac
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447   (eval "$ac_try") 2>&5
20448   ac_status=$?
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); }; } &&
20451          { ac_try='test -s conftest$ac_exeext'
20452   { (case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_try") 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   ac_ext=c
20462 ac_cpp='$CPP $CPPFLAGS'
20463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20466
20467   { echo "$as_me:$LINENO: result: yes" >&5
20468 echo "${ECHO_T}yes" >&6; }
20469
20470 cat >>confdefs.h <<\_ACEOF
20471 #define LLVM_HAS_ATOMICS 1
20472 _ACEOF
20473
20474 else
20475   echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478         { echo "$as_me:$LINENO: result: no" >&5
20479 echo "${ECHO_T}no" >&6; }
20480
20481 cat >>confdefs.h <<\_ACEOF
20482 #define LLVM_HAS_ATOMICS 0
20483 _ACEOF
20484
20485   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20486 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20487 fi
20488
20489 rm -f core conftest.err conftest.$ac_objext \
20490       conftest$ac_exeext conftest.$ac_ext
20491
20492
20493 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20494   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20495 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20496 if test "${llvm_cv_linux_mixed+set}" = set; then
20497   echo $ECHO_N "(cached) $ECHO_C" >&6
20498 else
20499    ac_ext=c
20500 ac_cpp='$CPP $CPPFLAGS'
20501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20504
20505   cat >conftest.$ac_ext <<_ACEOF
20506 /* confdefs.h.  */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h.  */
20511 #ifndef __x86_64__
20512        error: Not x86-64 even if uname says so!
20513       #endif
20514
20515 int
20516 main ()
20517 {
20518
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 rm -f conftest.$ac_objext
20524 if { (ac_try="$ac_compile"
20525 case "(($ac_try" in
20526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527   *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530   (eval "$ac_compile") 2>conftest.er1
20531   ac_status=$?
20532   grep -v '^ *+' conftest.er1 >conftest.err
20533   rm -f conftest.er1
20534   cat conftest.err >&5
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } &&
20537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538   { (case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_try") 2>&5
20544   ac_status=$?
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); }; } &&
20547          { ac_try='test -s conftest.$ac_objext'
20548   { (case "(($ac_try" in
20549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550   *) ac_try_echo=$ac_try;;
20551 esac
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553   (eval "$ac_try") 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; }; then
20557   llvm_cv_linux_mixed=no
20558 else
20559   echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20561
20562         llvm_cv_linux_mixed=yes
20563 fi
20564
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566   ac_ext=c
20567 ac_cpp='$CPP $CPPFLAGS'
20568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20571
20572
20573 fi
20574 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20575 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20576
20577   if test "$llvm_cv_linux_mixed" = "yes"; then
20578     llvm_cv_target_arch="x86"
20579     ARCH="x86"
20580   fi
20581 fi
20582
20583
20584 for ac_func in __dso_handle
20585 do
20586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592   cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20600 #define $ac_func innocuous_$ac_func
20601
20602 /* System header to define __stub macros and hopefully few prototypes,
20603     which can conflict with char $ac_func (); below.
20604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20605     <limits.h> exists even on freestanding compilers.  */
20606
20607 #ifdef __STDC__
20608 # include <limits.h>
20609 #else
20610 # include <assert.h>
20611 #endif
20612
20613 #undef $ac_func
20614
20615 /* Override any GCC internal prototype to avoid an error.
20616    Use char because int might match the return type of a GCC
20617    builtin and then its argument prototype would still apply.  */
20618 #ifdef __cplusplus
20619 extern "C"
20620 #endif
20621 char $ac_func ();
20622 /* The GNU C library defines this for functions which it implements
20623     to always fail with ENOSYS.  Some functions are actually named
20624     something starting with __ and the normal name is an alias.  */
20625 #if defined __stub_$ac_func || defined __stub___$ac_func
20626 choke me
20627 #endif
20628
20629 int
20630 main ()
20631 {
20632 return $ac_func ();
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641   *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644   (eval "$ac_link") 2>conftest.er1
20645   ac_status=$?
20646   grep -v '^ *+' conftest.er1 >conftest.err
20647   rm -f conftest.er1
20648   cat conftest.err >&5
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } &&
20651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20652   { (case "(($ac_try" in
20653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654   *) ac_try_echo=$ac_try;;
20655 esac
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657   (eval "$ac_try") 2>&5
20658   ac_status=$?
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); }; } &&
20661          { ac_try='test -s conftest$ac_exeext'
20662   { (case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667   (eval "$ac_try") 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); }; }; then
20671   eval "$as_ac_var=yes"
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676         eval "$as_ac_var=no"
20677 fi
20678
20679 rm -f core conftest.err conftest.$ac_objext \
20680       conftest$ac_exeext conftest.$ac_ext
20681 fi
20682 ac_res=`eval echo '${'$as_ac_var'}'`
20683                { echo "$as_me:$LINENO: result: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20685 if test `eval echo '${'$as_ac_var'}'` = yes; then
20686   cat >>confdefs.h <<_ACEOF
20687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20688 _ACEOF
20689
20690 fi
20691 done
20692
20693
20694 SHLIBEXT=$libltdl_cv_shlibext
20695
20696
20697 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20698
20699
20700 # Translate the various configuration directories and other basic
20701 # information into substitutions that will end up in Makefile.config.in
20702 # that these configured values can be used by the makefiles
20703 if test "${prefix}" = "NONE" ; then
20704   prefix="/usr/local"
20705 fi
20706 eval LLVM_PREFIX="${prefix}";
20707 eval LLVM_BINDIR="${prefix}/bin";
20708 eval LLVM_LIBDIR="${prefix}/lib";
20709 eval LLVM_DATADIR="${prefix}/share/llvm";
20710 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20711 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20712 eval LLVM_INCLUDEDIR="${prefix}/include";
20713 eval LLVM_INFODIR="${prefix}/info";
20714 eval LLVM_MANDIR="${prefix}/man";
20715 LLVM_CONFIGTIME=`date`
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727 # Place the various directores into the config.h file as #defines so that we
20728 # can know about the installation paths within LLVM.
20729
20730 cat >>confdefs.h <<_ACEOF
20731 #define LLVM_PREFIX "$LLVM_PREFIX"
20732 _ACEOF
20733
20734
20735 cat >>confdefs.h <<_ACEOF
20736 #define LLVM_BINDIR "$LLVM_BINDIR"
20737 _ACEOF
20738
20739
20740 cat >>confdefs.h <<_ACEOF
20741 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20742 _ACEOF
20743
20744
20745 cat >>confdefs.h <<_ACEOF
20746 #define LLVM_DATADIR "$LLVM_DATADIR"
20747 _ACEOF
20748
20749
20750 cat >>confdefs.h <<_ACEOF
20751 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20752 _ACEOF
20753
20754
20755 cat >>confdefs.h <<_ACEOF
20756 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20757 _ACEOF
20758
20759
20760 cat >>confdefs.h <<_ACEOF
20761 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20762 _ACEOF
20763
20764
20765 cat >>confdefs.h <<_ACEOF
20766 #define LLVM_INFODIR "$LLVM_INFODIR"
20767 _ACEOF
20768
20769
20770 cat >>confdefs.h <<_ACEOF
20771 #define LLVM_MANDIR "$LLVM_MANDIR"
20772 _ACEOF
20773
20774
20775 cat >>confdefs.h <<_ACEOF
20776 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20777 _ACEOF
20778
20779
20780 cat >>confdefs.h <<_ACEOF
20781 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20782 _ACEOF
20783
20784
20785 # Determine which bindings to build.
20786 if test "$BINDINGS_TO_BUILD" = auto ; then
20787   BINDINGS_TO_BUILD=""
20788   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20789     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20790   fi
20791 fi
20792 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20793
20794
20795 # This isn't really configurey, but it avoids having to repeat the list in
20796 # other files.
20797 ALL_BINDINGS=ocaml
20798
20799
20800 # Do any work necessary to ensure that bindings have what they need.
20801 binding_prereqs_failed=0
20802 for a_binding in $BINDINGS_TO_BUILD ; do
20803   case "$a_binding" in
20804   ocaml)
20805     if test "x$OCAMLC" = x ; then
20806       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20807 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20808       binding_prereqs_failed=1
20809     fi
20810     if test "x$OCAMLDEP" = x ; then
20811       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20812 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20813       binding_prereqs_failed=1
20814     fi
20815     if test "x$OCAMLOPT" = x ; then
20816       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20817 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20818           fi
20819     if test "x$with_ocaml_libdir" != xauto ; then
20820       OCAML_LIBDIR=$with_ocaml_libdir
20821
20822     else
20823       ocaml_stdlib="`"$OCAMLC" -where`"
20824       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20825       then
20826         # ocaml stdlib is beneath our prefix; use stdlib
20827         OCAML_LIBDIR=$ocaml_stdlib
20828
20829       else
20830         # ocaml stdlib is outside our prefix; use libdir/ocaml
20831         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20832
20833       fi
20834     fi
20835     ;;
20836   esac
20837 done
20838 if test "$binding_prereqs_failed" = 1 ; then
20839   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20840 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20841    { (exit 1); exit 1; }; }
20842 fi
20843
20844 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20845 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20846 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849    ac_ext=cpp
20850 ac_cpp='$CXXCPP $CPPFLAGS'
20851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20854
20855   oldcxxflags="$CXXFLAGS"
20856   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20857   cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863
20864 int
20865 main ()
20866 {
20867
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_compile") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20887   { (case "(($ac_try" in
20888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889   *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892   (eval "$ac_try") 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); }; } &&
20896          { ac_try='test -s conftest.$ac_objext'
20897   { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   llvm_cv_cxx_visibility_inlines_hidden=yes
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911         llvm_cv_cxx_visibility_inlines_hidden=no
20912 fi
20913
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915   CXXFLAGS="$oldcxxflags"
20916   ac_ext=c
20917 ac_cpp='$CPP $CPPFLAGS'
20918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20921
20922
20923 fi
20924 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20925 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20926 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20927   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20928
20929 else
20930   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20931
20932 fi
20933
20934
20935 if test "$llvm_cv_link_use_r" = "yes" ; then
20936   RPATH="-Wl,-R"
20937 else
20938   RPATH="-Wl,-rpath"
20939 fi
20940
20941
20942 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20943   RDYNAMIC="-Wl,-export-dynamic"
20944 else
20945   RDYNAMIC=""
20946 fi
20947
20948
20949
20950
20951 ac_config_files="$ac_config_files Makefile.common"
20952
20953 ac_config_files="$ac_config_files Makefile.llvm.config"
20954
20955
20956 ac_config_commands="$ac_config_commands Makefile"
20957
20958
20959 ac_config_commands="$ac_config_commands lib/Makefile"
20960
20961
20962 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20963
20964
20965 ac_config_commands="$ac_config_commands tools/Makefile"
20966
20967
20968 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20969
20970
20971
20972 cat >confcache <<\_ACEOF
20973 # This file is a shell script that caches the results of configure
20974 # tests run on this system so they can be shared between configure
20975 # scripts and configure runs, see configure's option --config-cache.
20976 # It is not useful on other systems.  If it contains results you don't
20977 # want to keep, you may remove or edit it.
20978 #
20979 # config.status only pays attention to the cache file if you give it
20980 # the --recheck option to rerun configure.
20981 #
20982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20984 # following values.
20985
20986 _ACEOF
20987
20988 # The following way of writing the cache mishandles newlines in values,
20989 # but we know of no workaround that is simple, portable, and efficient.
20990 # So, we kill variables containing newlines.
20991 # Ultrix sh set writes to stderr and can't be redirected directly,
20992 # and sets the high bit in the cache file unless we assign to the vars.
20993 (
20994   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20995     eval ac_val=\$$ac_var
20996     case $ac_val in #(
20997     *${as_nl}*)
20998       case $ac_var in #(
20999       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21000 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21001       esac
21002       case $ac_var in #(
21003       _ | IFS | as_nl) ;; #(
21004       *) $as_unset $ac_var ;;
21005       esac ;;
21006     esac
21007   done
21008
21009   (set) 2>&1 |
21010     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21011     *${as_nl}ac_space=\ *)
21012       # `set' does not quote correctly, so add quotes (double-quote
21013       # substitution turns \\\\ into \\, and sed turns \\ into \).
21014       sed -n \
21015         "s/'/'\\\\''/g;
21016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21017       ;; #(
21018     *)
21019       # `set' quotes correctly as required by POSIX, so do not add quotes.
21020       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21021       ;;
21022     esac |
21023     sort
21024 ) |
21025   sed '
21026      /^ac_cv_env_/b end
21027      t clear
21028      :clear
21029      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21030      t end
21031      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21032      :end' >>confcache
21033 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21034   if test -w "$cache_file"; then
21035     test "x$cache_file" != "x/dev/null" &&
21036       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21037 echo "$as_me: updating cache $cache_file" >&6;}
21038     cat confcache >$cache_file
21039   else
21040     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21041 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21042   fi
21043 fi
21044 rm -f confcache
21045
21046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21047 # Let make expand exec_prefix.
21048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21049
21050 # Transform confdefs.h into DEFS.
21051 # Protect against shell expansion while executing Makefile rules.
21052 # Protect against Makefile macro expansion.
21053 #
21054 # If the first sed substitution is executed (which looks for macros that
21055 # take arguments), then branch to the quote section.  Otherwise,
21056 # look for a macro that doesn't take arguments.
21057 ac_script='
21058 t clear
21059 :clear
21060 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21061 t quote
21062 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21063 t quote
21064 b any
21065 :quote
21066 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21067 s/\[/\\&/g
21068 s/\]/\\&/g
21069 s/\$/$$/g
21070 H
21071 :any
21072 ${
21073         g
21074         s/^\n//
21075         s/\n/ /g
21076         p
21077 }
21078 '
21079 DEFS=`sed -n "$ac_script" confdefs.h`
21080
21081
21082 ac_libobjs=
21083 ac_ltlibobjs=
21084 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21085   # 1. Remove the extension, and $U if already installed.
21086   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21087   ac_i=`echo "$ac_i" | sed "$ac_script"`
21088   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21089   #    will be set to the directory where LIBOBJS objects are built.
21090   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21091   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21092 done
21093 LIBOBJS=$ac_libobjs
21094
21095 LTLIBOBJS=$ac_ltlibobjs
21096
21097
21098 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21099   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21100 Usually this means the macro was only invoked conditionally." >&5
21101 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21102 Usually this means the macro was only invoked conditionally." >&2;}
21103    { (exit 1); exit 1; }; }
21104 fi
21105 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21106   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21107 Usually this means the macro was only invoked conditionally." >&5
21108 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21109 Usually this means the macro was only invoked conditionally." >&2;}
21110    { (exit 1); exit 1; }; }
21111 fi
21112
21113 : ${CONFIG_STATUS=./config.status}
21114 ac_clean_files_save=$ac_clean_files
21115 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21116 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21117 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21118 cat >$CONFIG_STATUS <<_ACEOF
21119 #! $SHELL
21120 # Generated by $as_me.
21121 # Run this file to recreate the current configuration.
21122 # Compiler output produced by configure, useful for debugging
21123 # configure, is in config.log if it exists.
21124
21125 debug=false
21126 ac_cs_recheck=false
21127 ac_cs_silent=false
21128 SHELL=\${CONFIG_SHELL-$SHELL}
21129 _ACEOF
21130
21131 cat >>$CONFIG_STATUS <<\_ACEOF
21132 ## --------------------- ##
21133 ## M4sh Initialization.  ##
21134 ## --------------------- ##
21135
21136 # Be Bourne compatible
21137 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21138   emulate sh
21139   NULLCMD=:
21140   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21141   # is contrary to our usage.  Disable this feature.
21142   alias -g '${1+"$@"}'='"$@"'
21143   setopt NO_GLOB_SUBST
21144 else
21145   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21146 fi
21147 BIN_SH=xpg4; export BIN_SH # for Tru64
21148 DUALCASE=1; export DUALCASE # for MKS sh
21149
21150
21151 # PATH needs CR
21152 # Avoid depending upon Character Ranges.
21153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21156 as_cr_digits='0123456789'
21157 as_cr_alnum=$as_cr_Letters$as_cr_digits
21158
21159 # The user is always right.
21160 if test "${PATH_SEPARATOR+set}" != set; then
21161   echo "#! /bin/sh" >conf$$.sh
21162   echo  "exit 0"   >>conf$$.sh
21163   chmod +x conf$$.sh
21164   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21165     PATH_SEPARATOR=';'
21166   else
21167     PATH_SEPARATOR=:
21168   fi
21169   rm -f conf$$.sh
21170 fi
21171
21172 # Support unset when possible.
21173 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21174   as_unset=unset
21175 else
21176   as_unset=false
21177 fi
21178
21179
21180 # IFS
21181 # We need space, tab and new line, in precisely that order.  Quoting is
21182 # there to prevent editors from complaining about space-tab.
21183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21184 # splitting by setting IFS to empty value.)
21185 as_nl='
21186 '
21187 IFS=" ""        $as_nl"
21188
21189 # Find who we are.  Look in the path if we contain no directory separator.
21190 case $0 in
21191   *[\\/]* ) as_myself=$0 ;;
21192   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21193 for as_dir in $PATH
21194 do
21195   IFS=$as_save_IFS
21196   test -z "$as_dir" && as_dir=.
21197   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21198 done
21199 IFS=$as_save_IFS
21200
21201      ;;
21202 esac
21203 # We did not find ourselves, most probably we were run as `sh COMMAND'
21204 # in which case we are not to be found in the path.
21205 if test "x$as_myself" = x; then
21206   as_myself=$0
21207 fi
21208 if test ! -f "$as_myself"; then
21209   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21210   { (exit 1); exit 1; }
21211 fi
21212
21213 # Work around bugs in pre-3.0 UWIN ksh.
21214 for as_var in ENV MAIL MAILPATH
21215 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21216 done
21217 PS1='$ '
21218 PS2='> '
21219 PS4='+ '
21220
21221 # NLS nuisances.
21222 for as_var in \
21223   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21224   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21225   LC_TELEPHONE LC_TIME
21226 do
21227   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21228     eval $as_var=C; export $as_var
21229   else
21230     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21231   fi
21232 done
21233
21234 # Required to use basename.
21235 if expr a : '\(a\)' >/dev/null 2>&1 &&
21236    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21237   as_expr=expr
21238 else
21239   as_expr=false
21240 fi
21241
21242 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21243   as_basename=basename
21244 else
21245   as_basename=false
21246 fi
21247
21248
21249 # Name of the executable.
21250 as_me=`$as_basename -- "$0" ||
21251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21252          X"$0" : 'X\(//\)$' \| \
21253          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21254 echo X/"$0" |
21255     sed '/^.*\/\([^/][^/]*\)\/*$/{
21256             s//\1/
21257             q
21258           }
21259           /^X\/\(\/\/\)$/{
21260             s//\1/
21261             q
21262           }
21263           /^X\/\(\/\).*/{
21264             s//\1/
21265             q
21266           }
21267           s/.*/./; q'`
21268
21269 # CDPATH.
21270 $as_unset CDPATH
21271
21272
21273
21274   as_lineno_1=$LINENO
21275   as_lineno_2=$LINENO
21276   test "x$as_lineno_1" != "x$as_lineno_2" &&
21277   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21278
21279   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21280   # uniformly replaced by the line number.  The first 'sed' inserts a
21281   # line-number line after each line using $LINENO; the second 'sed'
21282   # does the real work.  The second script uses 'N' to pair each
21283   # line-number line with the line containing $LINENO, and appends
21284   # trailing '-' during substitution so that $LINENO is not a special
21285   # case at line end.
21286   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21287   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21288   # E. McMahon (1931-1989) for sed's syntax.  :-)
21289   sed -n '
21290     p
21291     /[$]LINENO/=
21292   ' <$as_myself |
21293     sed '
21294       s/[$]LINENO.*/&-/
21295       t lineno
21296       b
21297       :lineno
21298       N
21299       :loop
21300       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21301       t loop
21302       s/-\n.*//
21303     ' >$as_me.lineno &&
21304   chmod +x "$as_me.lineno" ||
21305     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21306    { (exit 1); exit 1; }; }
21307
21308   # Don't try to exec as it changes $[0], causing all sort of problems
21309   # (the dirname of $[0] is not the place where we might find the
21310   # original and so on.  Autoconf is especially sensitive to this).
21311   . "./$as_me.lineno"
21312   # Exit status is that of the last command.
21313   exit
21314 }
21315
21316
21317 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21318   as_dirname=dirname
21319 else
21320   as_dirname=false
21321 fi
21322
21323 ECHO_C= ECHO_N= ECHO_T=
21324 case `echo -n x` in
21325 -n*)
21326   case `echo 'x\c'` in
21327   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21328   *)   ECHO_C='\c';;
21329   esac;;
21330 *)
21331   ECHO_N='-n';;
21332 esac
21333
21334 if expr a : '\(a\)' >/dev/null 2>&1 &&
21335    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21336   as_expr=expr
21337 else
21338   as_expr=false
21339 fi
21340
21341 rm -f conf$$ conf$$.exe conf$$.file
21342 if test -d conf$$.dir; then
21343   rm -f conf$$.dir/conf$$.file
21344 else
21345   rm -f conf$$.dir
21346   mkdir conf$$.dir
21347 fi
21348 echo >conf$$.file
21349 if ln -s conf$$.file conf$$ 2>/dev/null; then
21350   as_ln_s='ln -s'
21351   # ... but there are two gotchas:
21352   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21353   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21354   # In both cases, we have to default to `cp -p'.
21355   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21356     as_ln_s='cp -p'
21357 elif ln conf$$.file conf$$ 2>/dev/null; then
21358   as_ln_s=ln
21359 else
21360   as_ln_s='cp -p'
21361 fi
21362 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21363 rmdir conf$$.dir 2>/dev/null
21364
21365 if mkdir -p . 2>/dev/null; then
21366   as_mkdir_p=:
21367 else
21368   test -d ./-p && rmdir ./-p
21369   as_mkdir_p=false
21370 fi
21371
21372 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21373 # systems may use methods other than mode bits to determine executability.
21374 cat >conf$$.file <<_ASEOF
21375 #! /bin/sh
21376 exit 0
21377 _ASEOF
21378 chmod +x conf$$.file
21379 if test -x conf$$.file >/dev/null 2>&1; then
21380   as_executable_p="test -x"
21381 else
21382   as_executable_p=:
21383 fi
21384 rm -f conf$$.file
21385
21386 # Sed expression to map a string onto a valid CPP name.
21387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21388
21389 # Sed expression to map a string onto a valid variable name.
21390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21391
21392
21393 exec 6>&1
21394
21395 # Save the log message, to keep $[0] and so on meaningful, and to
21396 # report actual input values of CONFIG_FILES etc. instead of their
21397 # values after options handling.
21398 ac_log="
21399 This file was extended by [SAMPLE] $as_me [x.xx], which was
21400 generated by GNU Autoconf 2.60.  Invocation command line was
21401
21402   CONFIG_FILES    = $CONFIG_FILES
21403   CONFIG_HEADERS  = $CONFIG_HEADERS
21404   CONFIG_LINKS    = $CONFIG_LINKS
21405   CONFIG_COMMANDS = $CONFIG_COMMANDS
21406   $ $0 $@
21407
21408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21409 "
21410
21411 _ACEOF
21412
21413 cat >>$CONFIG_STATUS <<_ACEOF
21414 # Files that config.status was made for.
21415 config_files="$ac_config_files"
21416 config_commands="$ac_config_commands"
21417
21418 _ACEOF
21419
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21421 ac_cs_usage="\
21422 \`$as_me' instantiates files from templates according to the
21423 current configuration.
21424
21425 Usage: $0 [OPTIONS] [FILE]...
21426
21427   -h, --help       print this help, then exit
21428   -V, --version    print version number, then exit
21429   -q, --quiet      do not print progress messages
21430   -d, --debug      don't remove temporary files
21431       --recheck    update $as_me by reconfiguring in the same conditions
21432   --file=FILE[:TEMPLATE]
21433                    instantiate the configuration file FILE
21434
21435 Configuration files:
21436 $config_files
21437
21438 Configuration commands:
21439 $config_commands
21440
21441 Report bugs to <bug-autoconf@gnu.org>."
21442
21443 _ACEOF
21444 cat >>$CONFIG_STATUS <<_ACEOF
21445 ac_cs_version="\\
21446 [SAMPLE] config.status [x.xx]
21447 configured by $0, generated by GNU Autoconf 2.60,
21448   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21449
21450 Copyright (C) 2006 Free Software Foundation, Inc.
21451 This config.status script is free software; the Free Software Foundation
21452 gives unlimited permission to copy, distribute and modify it."
21453
21454 ac_pwd='$ac_pwd'
21455 srcdir='$srcdir'
21456 INSTALL='$INSTALL'
21457 _ACEOF
21458
21459 cat >>$CONFIG_STATUS <<\_ACEOF
21460 # If no file are specified by the user, then we need to provide default
21461 # value.  By we need to know if files were specified by the user.
21462 ac_need_defaults=:
21463 while test $# != 0
21464 do
21465   case $1 in
21466   --*=*)
21467     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21468     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21469     ac_shift=:
21470     ;;
21471   *)
21472     ac_option=$1
21473     ac_optarg=$2
21474     ac_shift=shift
21475     ;;
21476   esac
21477
21478   case $ac_option in
21479   # Handling of the options.
21480   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21481     ac_cs_recheck=: ;;
21482   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21483     echo "$ac_cs_version"; exit ;;
21484   --debug | --debu | --deb | --de | --d | -d )
21485     debug=: ;;
21486   --file | --fil | --fi | --f )
21487     $ac_shift
21488     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21489     ac_need_defaults=false;;
21490   --he | --h |  --help | --hel | -h )
21491     echo "$ac_cs_usage"; exit ;;
21492   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21493   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21494     ac_cs_silent=: ;;
21495
21496   # This is an error.
21497   -*) { echo "$as_me: error: unrecognized option: $1
21498 Try \`$0 --help' for more information." >&2
21499    { (exit 1); exit 1; }; } ;;
21500
21501   *) ac_config_targets="$ac_config_targets $1"
21502      ac_need_defaults=false ;;
21503
21504   esac
21505   shift
21506 done
21507
21508 ac_configure_extra_args=
21509
21510 if $ac_cs_silent; then
21511   exec 6>/dev/null
21512   ac_configure_extra_args="$ac_configure_extra_args --silent"
21513 fi
21514
21515 _ACEOF
21516 cat >>$CONFIG_STATUS <<_ACEOF
21517 if \$ac_cs_recheck; then
21518   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21519   CONFIG_SHELL=$SHELL
21520   export CONFIG_SHELL
21521   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21522 fi
21523
21524 _ACEOF
21525 cat >>$CONFIG_STATUS <<\_ACEOF
21526 exec 5>>config.log
21527 {
21528   echo
21529   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21530 ## Running $as_me. ##
21531 _ASBOX
21532   echo "$ac_log"
21533 } >&5
21534
21535 _ACEOF
21536 cat >>$CONFIG_STATUS <<_ACEOF
21537 #
21538 # INIT-COMMANDS
21539 #
21540 llvm_src="${LLVM_SRC}"
21541
21542 _ACEOF
21543
21544 cat >>$CONFIG_STATUS <<\_ACEOF
21545
21546 # Handling of arguments.
21547 for ac_config_target in $ac_config_targets
21548 do
21549   case $ac_config_target in
21550     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21551     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21552     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21553     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21554     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21555     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21556     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21557     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21558
21559   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21560 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21561    { (exit 1); exit 1; }; };;
21562   esac
21563 done
21564
21565
21566 # If the user did not use the arguments to specify the items to instantiate,
21567 # then the envvar interface is used.  Set only those that are not.
21568 # We use the long form for the default assignment because of an extremely
21569 # bizarre bug on SunOS 4.1.3.
21570 if $ac_need_defaults; then
21571   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21572   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21573 fi
21574
21575 # Have a temporary directory for convenience.  Make it in the build tree
21576 # simply because there is no reason against having it here, and in addition,
21577 # creating and moving files from /tmp can sometimes cause problems.
21578 # Hook for its removal unless debugging.
21579 # Note that there is a small window in which the directory will not be cleaned:
21580 # after its creation but before its name has been assigned to `$tmp'.
21581 $debug ||
21582 {
21583   tmp=
21584   trap 'exit_status=$?
21585   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21586 ' 0
21587   trap '{ (exit 1); exit 1; }' 1 2 13 15
21588 }
21589 # Create a (secure) tmp directory for tmp files.
21590
21591 {
21592   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21593   test -n "$tmp" && test -d "$tmp"
21594 }  ||
21595 {
21596   tmp=./conf$$-$RANDOM
21597   (umask 077 && mkdir "$tmp")
21598 } ||
21599 {
21600    echo "$me: cannot create a temporary directory in ." >&2
21601    { (exit 1); exit 1; }
21602 }
21603
21604 #
21605 # Set up the sed scripts for CONFIG_FILES section.
21606 #
21607
21608 # No need to generate the scripts if there are no CONFIG_FILES.
21609 # This happens for instance when ./config.status config.h
21610 if test -n "$CONFIG_FILES"; then
21611
21612 _ACEOF
21613
21614
21615
21616 ac_delim='%!_!# '
21617 for ac_last_try in false false false false false :; do
21618   cat >conf$$subs.sed <<_ACEOF
21619 SHELL!$SHELL$ac_delim
21620 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21621 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21622 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21623 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21624 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21625 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21626 exec_prefix!$exec_prefix$ac_delim
21627 prefix!$prefix$ac_delim
21628 program_transform_name!$program_transform_name$ac_delim
21629 bindir!$bindir$ac_delim
21630 sbindir!$sbindir$ac_delim
21631 libexecdir!$libexecdir$ac_delim
21632 datarootdir!$datarootdir$ac_delim
21633 datadir!$datadir$ac_delim
21634 sysconfdir!$sysconfdir$ac_delim
21635 sharedstatedir!$sharedstatedir$ac_delim
21636 localstatedir!$localstatedir$ac_delim
21637 includedir!$includedir$ac_delim
21638 oldincludedir!$oldincludedir$ac_delim
21639 docdir!$docdir$ac_delim
21640 infodir!$infodir$ac_delim
21641 htmldir!$htmldir$ac_delim
21642 dvidir!$dvidir$ac_delim
21643 pdfdir!$pdfdir$ac_delim
21644 psdir!$psdir$ac_delim
21645 libdir!$libdir$ac_delim
21646 localedir!$localedir$ac_delim
21647 mandir!$mandir$ac_delim
21648 DEFS!$DEFS$ac_delim
21649 ECHO_C!$ECHO_C$ac_delim
21650 ECHO_N!$ECHO_N$ac_delim
21651 ECHO_T!$ECHO_T$ac_delim
21652 LIBS!$LIBS$ac_delim
21653 build_alias!$build_alias$ac_delim
21654 host_alias!$host_alias$ac_delim
21655 target_alias!$target_alias$ac_delim
21656 LLVM_SRC!$LLVM_SRC$ac_delim
21657 LLVM_OBJ!$LLVM_OBJ$ac_delim
21658 LLVM_VERSION!$LLVM_VERSION$ac_delim
21659 CC!$CC$ac_delim
21660 CFLAGS!$CFLAGS$ac_delim
21661 LDFLAGS!$LDFLAGS$ac_delim
21662 CPPFLAGS!$CPPFLAGS$ac_delim
21663 ac_ct_CC!$ac_ct_CC$ac_delim
21664 EXEEXT!$EXEEXT$ac_delim
21665 OBJEXT!$OBJEXT$ac_delim
21666 CXX!$CXX$ac_delim
21667 CXXFLAGS!$CXXFLAGS$ac_delim
21668 ac_ct_CXX!$ac_ct_CXX$ac_delim
21669 CPP!$CPP$ac_delim
21670 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21671 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21672 subdirs!$subdirs$ac_delim
21673 build!$build$ac_delim
21674 build_cpu!$build_cpu$ac_delim
21675 build_vendor!$build_vendor$ac_delim
21676 build_os!$build_os$ac_delim
21677 host!$host$ac_delim
21678 host_cpu!$host_cpu$ac_delim
21679 host_vendor!$host_vendor$ac_delim
21680 host_os!$host_os$ac_delim
21681 target!$target$ac_delim
21682 target_cpu!$target_cpu$ac_delim
21683 target_vendor!$target_vendor$ac_delim
21684 target_os!$target_os$ac_delim
21685 OS!$OS$ac_delim
21686 HOST_OS!$HOST_OS$ac_delim
21687 TARGET_OS!$TARGET_OS$ac_delim
21688 LINKALL!$LINKALL$ac_delim
21689 NOLINKALL!$NOLINKALL$ac_delim
21690 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21691 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21692 ARCH!$ARCH$ac_delim
21693 ENDIAN!$ENDIAN$ac_delim
21694 GREP!$GREP$ac_delim
21695 EGREP!$EGREP$ac_delim
21696 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21697 BUILD_CC!$BUILD_CC$ac_delim
21698 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21699 BUILD_CXX!$BUILD_CXX$ac_delim
21700 CVSBUILD!$CVSBUILD$ac_delim
21701 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21702 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21703 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21704 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21705 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21706 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21707 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21708 JIT!$JIT$ac_delim
21709 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21710 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21711 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21712 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21713 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21714 ENABLE_PIC!$ENABLE_PIC$ac_delim
21715 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21716 _ACEOF
21717
21718   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21719     break
21720   elif $ac_last_try; then
21721     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21722 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21723    { (exit 1); exit 1; }; }
21724   else
21725     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21726   fi
21727 done
21728
21729 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21730 if test -n "$ac_eof"; then
21731   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21732   ac_eof=`expr $ac_eof + 1`
21733 fi
21734
21735 cat >>$CONFIG_STATUS <<_ACEOF
21736 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21738 _ACEOF
21739 sed '
21740 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21741 s/^/s,@/; s/!/@,|#_!!_#|/
21742 :n
21743 t n
21744 s/'"$ac_delim"'$/,g/; t
21745 s/$/\\/; p
21746 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21747 ' >>$CONFIG_STATUS <conf$$subs.sed
21748 rm -f conf$$subs.sed
21749 cat >>$CONFIG_STATUS <<_ACEOF
21750 CEOF$ac_eof
21751 _ACEOF
21752
21753
21754 ac_delim='%!_!# '
21755 for ac_last_try in false false false false false :; do
21756   cat >conf$$subs.sed <<_ACEOF
21757 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21758 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21759 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21760 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21761 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21762 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21763 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21764 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21765 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21766 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21767 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21768 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21769 NM!$NM$ac_delim
21770 ifGNUmake!$ifGNUmake$ac_delim
21771 LN_S!$LN_S$ac_delim
21772 CMP!$CMP$ac_delim
21773 CP!$CP$ac_delim
21774 DATE!$DATE$ac_delim
21775 FIND!$FIND$ac_delim
21776 MKDIR!$MKDIR$ac_delim
21777 MV!$MV$ac_delim
21778 RANLIB!$RANLIB$ac_delim
21779 AR!$AR$ac_delim
21780 RM!$RM$ac_delim
21781 SED!$SED$ac_delim
21782 TAR!$TAR$ac_delim
21783 BINPWD!$BINPWD$ac_delim
21784 GRAPHVIZ!$GRAPHVIZ$ac_delim
21785 DOT!$DOT$ac_delim
21786 FDP!$FDP$ac_delim
21787 NEATO!$NEATO$ac_delim
21788 TWOPI!$TWOPI$ac_delim
21789 CIRCO!$CIRCO$ac_delim
21790 GV!$GV$ac_delim
21791 DOTTY!$DOTTY$ac_delim
21792 XDOT_PY!$XDOT_PY$ac_delim
21793 PERL!$PERL$ac_delim
21794 HAVE_PERL!$HAVE_PERL$ac_delim
21795 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21796 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21797 INSTALL_DATA!$INSTALL_DATA$ac_delim
21798 BZIP2!$BZIP2$ac_delim
21799 CAT!$CAT$ac_delim
21800 DOXYGEN!$DOXYGEN$ac_delim
21801 GROFF!$GROFF$ac_delim
21802 GZIPBIN!$GZIPBIN$ac_delim
21803 POD2HTML!$POD2HTML$ac_delim
21804 POD2MAN!$POD2MAN$ac_delim
21805 PDFROFF!$PDFROFF$ac_delim
21806 RUNTEST!$RUNTEST$ac_delim
21807 TCLSH!$TCLSH$ac_delim
21808 ZIP!$ZIP$ac_delim
21809 OCAMLC!$OCAMLC$ac_delim
21810 OCAMLOPT!$OCAMLOPT$ac_delim
21811 OCAMLDEP!$OCAMLDEP$ac_delim
21812 OCAMLDOC!$OCAMLDOC$ac_delim
21813 GAS!$GAS$ac_delim
21814 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21815 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21816 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21817 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21818 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21819 LIBADD_DL!$LIBADD_DL$ac_delim
21820 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21821 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21822 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21823 USE_UDIS86!$USE_UDIS86$ac_delim
21824 USE_OPROFILE!$USE_OPROFILE$ac_delim
21825 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21826 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21827 MMAP_FILE!$MMAP_FILE$ac_delim
21828 SHLIBEXT!$SHLIBEXT$ac_delim
21829 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21830 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21831 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21832 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21833 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21834 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21835 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21836 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21837 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21838 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21839 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21840 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21841 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21842 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21843 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21844 RPATH!$RPATH$ac_delim
21845 RDYNAMIC!$RDYNAMIC$ac_delim
21846 LIBOBJS!$LIBOBJS$ac_delim
21847 LTLIBOBJS!$LTLIBOBJS$ac_delim
21848 _ACEOF
21849
21850   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21851     break
21852   elif $ac_last_try; then
21853     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21854 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21855    { (exit 1); exit 1; }; }
21856   else
21857     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21858   fi
21859 done
21860
21861 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21862 if test -n "$ac_eof"; then
21863   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21864   ac_eof=`expr $ac_eof + 1`
21865 fi
21866
21867 cat >>$CONFIG_STATUS <<_ACEOF
21868 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21870 _ACEOF
21871 sed '
21872 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21873 s/^/s,@/; s/!/@,|#_!!_#|/
21874 :n
21875 t n
21876 s/'"$ac_delim"'$/,g/; t
21877 s/$/\\/; p
21878 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21879 ' >>$CONFIG_STATUS <conf$$subs.sed
21880 rm -f conf$$subs.sed
21881 cat >>$CONFIG_STATUS <<_ACEOF
21882 :end
21883 s/|#_!!_#|//g
21884 CEOF$ac_eof
21885 _ACEOF
21886
21887
21888 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21889 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21890 # trailing colons and then remove the whole line if VPATH becomes empty
21891 # (actually we leave an empty line to preserve line numbers).
21892 if test "x$srcdir" = x.; then
21893   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21894 s/:*\$(srcdir):*/:/
21895 s/:*\${srcdir}:*/:/
21896 s/:*@srcdir@:*/:/
21897 s/^\([^=]*=[     ]*\):*/\1/
21898 s/:*$//
21899 s/^[^=]*=[       ]*$//
21900 }'
21901 fi
21902
21903 cat >>$CONFIG_STATUS <<\_ACEOF
21904 fi # test -n "$CONFIG_FILES"
21905
21906
21907 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21908 do
21909   case $ac_tag in
21910   :[FHLC]) ac_mode=$ac_tag; continue;;
21911   esac
21912   case $ac_mode$ac_tag in
21913   :[FHL]*:*);;
21914   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21915 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21916    { (exit 1); exit 1; }; };;
21917   :[FH]-) ac_tag=-:-;;
21918   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21919   esac
21920   ac_save_IFS=$IFS
21921   IFS=:
21922   set x $ac_tag
21923   IFS=$ac_save_IFS
21924   shift
21925   ac_file=$1
21926   shift
21927
21928   case $ac_mode in
21929   :L) ac_source=$1;;
21930   :[FH])
21931     ac_file_inputs=
21932     for ac_f
21933     do
21934       case $ac_f in
21935       -) ac_f="$tmp/stdin";;
21936       *) # Look for the file first in the build tree, then in the source tree
21937          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21938          # because $ac_f cannot contain `:'.
21939          test -f "$ac_f" ||
21940            case $ac_f in
21941            [\\/$]*) false;;
21942            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21943            esac ||
21944            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21945 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21946    { (exit 1); exit 1; }; };;
21947       esac
21948       ac_file_inputs="$ac_file_inputs $ac_f"
21949     done
21950
21951     # Let's still pretend it is `configure' which instantiates (i.e., don't
21952     # use $as_me), people would be surprised to read:
21953     #    /* config.h.  Generated by config.status.  */
21954     configure_input="Generated from "`IFS=:
21955           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21956     if test x"$ac_file" != x-; then
21957       configure_input="$ac_file.  $configure_input"
21958       { echo "$as_me:$LINENO: creating $ac_file" >&5
21959 echo "$as_me: creating $ac_file" >&6;}
21960     fi
21961
21962     case $ac_tag in
21963     *:-:* | *:-) cat >"$tmp/stdin";;
21964     esac
21965     ;;
21966   esac
21967
21968   ac_dir=`$as_dirname -- "$ac_file" ||
21969 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21970          X"$ac_file" : 'X\(//\)[^/]' \| \
21971          X"$ac_file" : 'X\(//\)$' \| \
21972          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21973 echo X"$ac_file" |
21974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21975             s//\1/
21976             q
21977           }
21978           /^X\(\/\/\)[^/].*/{
21979             s//\1/
21980             q
21981           }
21982           /^X\(\/\/\)$/{
21983             s//\1/
21984             q
21985           }
21986           /^X\(\/\).*/{
21987             s//\1/
21988             q
21989           }
21990           s/.*/./; q'`
21991   { as_dir="$ac_dir"
21992   case $as_dir in #(
21993   -*) as_dir=./$as_dir;;
21994   esac
21995   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21996     as_dirs=
21997     while :; do
21998       case $as_dir in #(
21999       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22000       *) as_qdir=$as_dir;;
22001       esac
22002       as_dirs="'$as_qdir' $as_dirs"
22003       as_dir=`$as_dirname -- "$as_dir" ||
22004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22005          X"$as_dir" : 'X\(//\)[^/]' \| \
22006          X"$as_dir" : 'X\(//\)$' \| \
22007          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22008 echo X"$as_dir" |
22009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22010             s//\1/
22011             q
22012           }
22013           /^X\(\/\/\)[^/].*/{
22014             s//\1/
22015             q
22016           }
22017           /^X\(\/\/\)$/{
22018             s//\1/
22019             q
22020           }
22021           /^X\(\/\).*/{
22022             s//\1/
22023             q
22024           }
22025           s/.*/./; q'`
22026       test -d "$as_dir" && break
22027     done
22028     test -z "$as_dirs" || eval "mkdir $as_dirs"
22029   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22030 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22031    { (exit 1); exit 1; }; }; }
22032   ac_builddir=.
22033
22034 case "$ac_dir" in
22035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22036 *)
22037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22038   # A ".." for each directory in $ac_dir_suffix.
22039   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22040   case $ac_top_builddir_sub in
22041   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22042   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22043   esac ;;
22044 esac
22045 ac_abs_top_builddir=$ac_pwd
22046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22047 # for backward compatibility:
22048 ac_top_builddir=$ac_top_build_prefix
22049
22050 case $srcdir in
22051   .)  # We are building in place.
22052     ac_srcdir=.
22053     ac_top_srcdir=$ac_top_builddir_sub
22054     ac_abs_top_srcdir=$ac_pwd ;;
22055   [\\/]* | ?:[\\/]* )  # Absolute name.
22056     ac_srcdir=$srcdir$ac_dir_suffix;
22057     ac_top_srcdir=$srcdir
22058     ac_abs_top_srcdir=$srcdir ;;
22059   *) # Relative name.
22060     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22061     ac_top_srcdir=$ac_top_build_prefix$srcdir
22062     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22063 esac
22064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22065
22066
22067   case $ac_mode in
22068   :F)
22069   #
22070   # CONFIG_FILE
22071   #
22072
22073   case $INSTALL in
22074   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22075   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22076   esac
22077 _ACEOF
22078
22079 cat >>$CONFIG_STATUS <<\_ACEOF
22080 # If the template does not know about datarootdir, expand it.
22081 # FIXME: This hack should be removed a few years after 2.60.
22082 ac_datarootdir_hack=; ac_datarootdir_seen=
22083
22084 case `sed -n '/datarootdir/ {
22085   p
22086   q
22087 }
22088 /@datadir@/p
22089 /@docdir@/p
22090 /@infodir@/p
22091 /@localedir@/p
22092 /@mandir@/p
22093 ' $ac_file_inputs` in
22094 *datarootdir*) ac_datarootdir_seen=yes;;
22095 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22096   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22097 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22098 _ACEOF
22099 cat >>$CONFIG_STATUS <<_ACEOF
22100   ac_datarootdir_hack='
22101   s&@datadir@&$datadir&g
22102   s&@docdir@&$docdir&g
22103   s&@infodir@&$infodir&g
22104   s&@localedir@&$localedir&g
22105   s&@mandir@&$mandir&g
22106     s&\\\${datarootdir}&$datarootdir&g' ;;
22107 esac
22108 _ACEOF
22109
22110 # Neutralize VPATH when `$srcdir' = `.'.
22111 # Shell code in configure.ac might set extrasub.
22112 # FIXME: do we really want to maintain this feature?
22113 cat >>$CONFIG_STATUS <<_ACEOF
22114   sed "$ac_vpsub
22115 $extrasub
22116 _ACEOF
22117 cat >>$CONFIG_STATUS <<\_ACEOF
22118 :t
22119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22120 s&@configure_input@&$configure_input&;t t
22121 s&@top_builddir@&$ac_top_builddir_sub&;t t
22122 s&@srcdir@&$ac_srcdir&;t t
22123 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22124 s&@top_srcdir@&$ac_top_srcdir&;t t
22125 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22126 s&@builddir@&$ac_builddir&;t t
22127 s&@abs_builddir@&$ac_abs_builddir&;t t
22128 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22129 s&@INSTALL@&$ac_INSTALL&;t t
22130 $ac_datarootdir_hack
22131 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22132
22133 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22134   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22135   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22136   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22137 which seems to be undefined.  Please make sure it is defined." >&5
22138 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22139 which seems to be undefined.  Please make sure it is defined." >&2;}
22140
22141   rm -f "$tmp/stdin"
22142   case $ac_file in
22143   -) cat "$tmp/out"; rm -f "$tmp/out";;
22144   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22145   esac
22146  ;;
22147
22148
22149   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22150 echo "$as_me: executing $ac_file commands" >&6;}
22151  ;;
22152   esac
22153
22154
22155   case $ac_file$ac_mode in
22156     "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22157    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22158     "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22159    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22160     "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22161    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22162     "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22163    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22164     "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22165    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22166
22167   esac
22168 done # for ac_tag
22169
22170
22171 { (exit 0); exit 0; }
22172 _ACEOF
22173 chmod +x $CONFIG_STATUS
22174 ac_clean_files=$ac_clean_files_save
22175
22176
22177 # configure is writing to config.log, and then calls config.status.
22178 # config.status does its own redirection, appending to config.log.
22179 # Unfortunately, on DOS this fails, as config.log is still kept open
22180 # by configure, so config.status won't be able to write to it; its
22181 # output is simply discarded.  So we exec the FD to /dev/null,
22182 # effectively closing config.log, so it can be properly (re)opened and
22183 # appended to by config.status.  When coming back to configure, we
22184 # need to make the FD available again.
22185 if test "$no_create" != yes; then
22186   ac_cs_success=:
22187   ac_config_status_args=
22188   test "$silent" = yes &&
22189     ac_config_status_args="$ac_config_status_args --quiet"
22190   exec 5>/dev/null
22191   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22192   exec 5>>config.log
22193   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22194   # would make configure fail if this is the last instruction.
22195   $ac_cs_success || { (exit 1); exit 1; }
22196 fi
22197
22198 #
22199 # CONFIG_SUBDIRS section.
22200 #
22201 if test "$no_recursion" != yes; then
22202
22203   # Remove --cache-file and --srcdir arguments so they do not pile up.
22204   ac_sub_configure_args=
22205   ac_prev=
22206   eval "set x $ac_configure_args"
22207   shift
22208   for ac_arg
22209   do
22210     if test -n "$ac_prev"; then
22211       ac_prev=
22212       continue
22213     fi
22214     case $ac_arg in
22215     -cache-file | --cache-file | --cache-fil | --cache-fi \
22216     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22217       ac_prev=cache_file ;;
22218     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22219     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22220     | --c=*)
22221       ;;
22222     --config-cache | -C)
22223       ;;
22224     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22225       ac_prev=srcdir ;;
22226     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22227       ;;
22228     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22229       ac_prev=prefix ;;
22230     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22231       ;;
22232     *)
22233       case $ac_arg in
22234       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22235       esac
22236       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22237     esac
22238   done
22239
22240   # Always prepend --prefix to ensure using the same prefix
22241   # in subdir configurations.
22242   ac_arg="--prefix=$prefix"
22243   case $ac_arg in
22244   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22245   esac
22246   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22247
22248   ac_popdir=`pwd`
22249   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22250
22251     # Do not complain, so a configure script can configure whichever
22252     # parts of a large source tree are present.
22253     test -d "$srcdir/$ac_dir" || continue
22254
22255     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22256     echo "$as_me:$LINENO: $ac_msg" >&5
22257     echo "$ac_msg" >&6
22258     { as_dir="$ac_dir"
22259   case $as_dir in #(
22260   -*) as_dir=./$as_dir;;
22261   esac
22262   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22263     as_dirs=
22264     while :; do
22265       case $as_dir in #(
22266       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22267       *) as_qdir=$as_dir;;
22268       esac
22269       as_dirs="'$as_qdir' $as_dirs"
22270       as_dir=`$as_dirname -- "$as_dir" ||
22271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22272          X"$as_dir" : 'X\(//\)[^/]' \| \
22273          X"$as_dir" : 'X\(//\)$' \| \
22274          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22275 echo X"$as_dir" |
22276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22277             s//\1/
22278             q
22279           }
22280           /^X\(\/\/\)[^/].*/{
22281             s//\1/
22282             q
22283           }
22284           /^X\(\/\/\)$/{
22285             s//\1/
22286             q
22287           }
22288           /^X\(\/\).*/{
22289             s//\1/
22290             q
22291           }
22292           s/.*/./; q'`
22293       test -d "$as_dir" && break
22294     done
22295     test -z "$as_dirs" || eval "mkdir $as_dirs"
22296   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22297 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22298    { (exit 1); exit 1; }; }; }
22299     ac_builddir=.
22300
22301 case "$ac_dir" in
22302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22303 *)
22304   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22305   # A ".." for each directory in $ac_dir_suffix.
22306   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22307   case $ac_top_builddir_sub in
22308   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22309   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22310   esac ;;
22311 esac
22312 ac_abs_top_builddir=$ac_pwd
22313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22314 # for backward compatibility:
22315 ac_top_builddir=$ac_top_build_prefix
22316
22317 case $srcdir in
22318   .)  # We are building in place.
22319     ac_srcdir=.
22320     ac_top_srcdir=$ac_top_builddir_sub
22321     ac_abs_top_srcdir=$ac_pwd ;;
22322   [\\/]* | ?:[\\/]* )  # Absolute name.
22323     ac_srcdir=$srcdir$ac_dir_suffix;
22324     ac_top_srcdir=$srcdir
22325     ac_abs_top_srcdir=$srcdir ;;
22326   *) # Relative name.
22327     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22328     ac_top_srcdir=$ac_top_build_prefix$srcdir
22329     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22330 esac
22331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22332
22333
22334     cd "$ac_dir"
22335
22336     # Check for guested configure; otherwise get Cygnus style configure.
22337     if test -f "$ac_srcdir/configure.gnu"; then
22338       ac_sub_configure=$ac_srcdir/configure.gnu
22339     elif test -f "$ac_srcdir/configure"; then
22340       ac_sub_configure=$ac_srcdir/configure
22341     elif test -f "$ac_srcdir/configure.in"; then
22342       # This should be Cygnus configure.
22343       ac_sub_configure=$ac_aux_dir/configure
22344     else
22345       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22346 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22347       ac_sub_configure=
22348     fi
22349
22350     # The recursion is here.
22351     if test -n "$ac_sub_configure"; then
22352       # Make the cache file name correct relative to the subdirectory.
22353       case $cache_file in
22354       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22355       *) # Relative name.
22356         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22357       esac
22358
22359       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22360 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22361       # The eval makes quoting arguments work.
22362       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22363            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22364         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22365 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22366    { (exit 1); exit 1; }; }
22367     fi
22368
22369     cd "$ac_popdir"
22370   done
22371 fi
22372