Update all outdated autoconf files in the sample project.
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 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 INSTALL_PROGRAM
737 INSTALL_SCRIPT
738 INSTALL_DATA
739 BZIP2
740 CAT
741 DOXYGEN
742 GROFF
743 GZIPBIN
744 POD2HTML
745 POD2MAN
746 PDFROFF
747 RUNTEST
748 TCLSH
749 ZIP
750 OCAMLC
751 OCAMLOPT
752 OCAMLDEP
753 OCAMLDOC
754 GAS
755 HAVE_LINK_VERSION_SCRIPT
756 INSTALL_LTDL_TRUE
757 INSTALL_LTDL_FALSE
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
760 LIBADD_DL
761 NO_VARIADIC_MACROS
762 NO_MISSING_FIELD_INITIALIZERS
763 COVERED_SWITCH_DEFAULT
764 USE_UDIS86
765 USE_OPROFILE
766 HAVE_PTHREAD
767 HUGE_VAL_SANITY
768 MMAP_FILE
769 SHLIBEXT
770 SHLIBPATH_VAR
771 LLVM_PREFIX
772 LLVM_BINDIR
773 LLVM_LIBDIR
774 LLVM_DATADIR
775 LLVM_DOCSDIR
776 LLVM_ETCDIR
777 LLVM_INCLUDEDIR
778 LLVM_INFODIR
779 LLVM_MANDIR
780 LLVM_CONFIGTIME
781 BINDINGS_TO_BUILD
782 ALL_BINDINGS
783 OCAML_LIBDIR
784 ENABLE_VISIBILITY_INLINES_HIDDEN
785 RPATH
786 RDYNAMIC
787 LIBOBJS
788 LTLIBOBJS'
789 ac_subst_files=''
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 CPPFLAGS
797 CXX
798 CXXFLAGS
799 CCC
800 CPP'
801 ac_subdirs_all='tools/polly'
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853   # If the previous option needs an argument, assign it.
854   if test -n "$ac_prev"; then
855     eval $ac_prev=\$ac_option
856     ac_prev=
857     continue
858   fi
859
860   case $ac_option in
861   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862   *)    ac_optarg=yes ;;
863   esac
864
865   # Accept the important Cygnus configure options, so we can diagnose typos.
866
867   case $ac_dashdash$ac_option in
868   --)
869     ac_dashdash=yes ;;
870
871   -bindir | --bindir | --bindi | --bind | --bin | --bi)
872     ac_prev=bindir ;;
873   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874     bindir=$ac_optarg ;;
875
876   -build | --build | --buil | --bui | --bu)
877     ac_prev=build_alias ;;
878   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879     build_alias=$ac_optarg ;;
880
881   -cache-file | --cache-file | --cache-fil | --cache-fi \
882   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883     ac_prev=cache_file ;;
884   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886     cache_file=$ac_optarg ;;
887
888   --config-cache | -C)
889     cache_file=config.cache ;;
890
891   -datadir | --datadir | --datadi | --datad)
892     ac_prev=datadir ;;
893   -datadir=* | --datadir=* | --datadi=* | --datad=*)
894     datadir=$ac_optarg ;;
895
896   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897   | --dataroo | --dataro | --datar)
898     ac_prev=datarootdir ;;
899   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901     datarootdir=$ac_optarg ;;
902
903   -disable-* | --disable-*)
904     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905     # Reject names that are not valid shell variable names.
906     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
907       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908    { (exit 1); exit 1; }; }
909     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
910     eval enable_$ac_feature=no ;;
911
912   -docdir | --docdir | --docdi | --doc | --do)
913     ac_prev=docdir ;;
914   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915     docdir=$ac_optarg ;;
916
917   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918     ac_prev=dvidir ;;
919   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920     dvidir=$ac_optarg ;;
921
922   -enable-* | --enable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=\$ac_optarg ;;
930
931   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933   | --exec | --exe | --ex)
934     ac_prev=exec_prefix ;;
935   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937   | --exec=* | --exe=* | --ex=*)
938     exec_prefix=$ac_optarg ;;
939
940   -gas | --gas | --ga | --g)
941     # Obsolete; use --with-gas.
942     with_gas=yes ;;
943
944   -help | --help | --hel | --he | -h)
945     ac_init_help=long ;;
946   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947     ac_init_help=recursive ;;
948   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949     ac_init_help=short ;;
950
951   -host | --host | --hos | --ho)
952     ac_prev=host_alias ;;
953   -host=* | --host=* | --hos=* | --ho=*)
954     host_alias=$ac_optarg ;;
955
956   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957     ac_prev=htmldir ;;
958   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959   | --ht=*)
960     htmldir=$ac_optarg ;;
961
962   -includedir | --includedir | --includedi | --included | --include \
963   | --includ | --inclu | --incl | --inc)
964     ac_prev=includedir ;;
965   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966   | --includ=* | --inclu=* | --incl=* | --inc=*)
967     includedir=$ac_optarg ;;
968
969   -infodir | --infodir | --infodi | --infod | --info | --inf)
970     ac_prev=infodir ;;
971   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972     infodir=$ac_optarg ;;
973
974   -libdir | --libdir | --libdi | --libd)
975     ac_prev=libdir ;;
976   -libdir=* | --libdir=* | --libdi=* | --libd=*)
977     libdir=$ac_optarg ;;
978
979   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980   | --libexe | --libex | --libe)
981     ac_prev=libexecdir ;;
982   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983   | --libexe=* | --libex=* | --libe=*)
984     libexecdir=$ac_optarg ;;
985
986   -localedir | --localedir | --localedi | --localed | --locale)
987     ac_prev=localedir ;;
988   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989     localedir=$ac_optarg ;;
990
991   -localstatedir | --localstatedir | --localstatedi | --localstated \
992   | --localstate | --localstat | --localsta | --localst | --locals)
993     ac_prev=localstatedir ;;
994   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996     localstatedir=$ac_optarg ;;
997
998   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999     ac_prev=mandir ;;
1000   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001     mandir=$ac_optarg ;;
1002
1003   -nfp | --nfp | --nf)
1004     # Obsolete; use --without-fp.
1005     with_fp=no ;;
1006
1007   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008   | --no-cr | --no-c | -n)
1009     no_create=yes ;;
1010
1011   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013     no_recursion=yes ;;
1014
1015   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017   | --oldin | --oldi | --old | --ol | --o)
1018     ac_prev=oldincludedir ;;
1019   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022     oldincludedir=$ac_optarg ;;
1023
1024   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025     ac_prev=prefix ;;
1026   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027     prefix=$ac_optarg ;;
1028
1029   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030   | --program-pre | --program-pr | --program-p)
1031     ac_prev=program_prefix ;;
1032   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034     program_prefix=$ac_optarg ;;
1035
1036   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037   | --program-suf | --program-su | --program-s)
1038     ac_prev=program_suffix ;;
1039   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041     program_suffix=$ac_optarg ;;
1042
1043   -program-transform-name | --program-transform-name \
1044   | --program-transform-nam | --program-transform-na \
1045   | --program-transform-n | --program-transform- \
1046   | --program-transform | --program-transfor \
1047   | --program-transfo | --program-transf \
1048   | --program-trans | --program-tran \
1049   | --progr-tra | --program-tr | --program-t)
1050     ac_prev=program_transform_name ;;
1051   -program-transform-name=* | --program-transform-name=* \
1052   | --program-transform-nam=* | --program-transform-na=* \
1053   | --program-transform-n=* | --program-transform-=* \
1054   | --program-transform=* | --program-transfor=* \
1055   | --program-transfo=* | --program-transf=* \
1056   | --program-trans=* | --program-tran=* \
1057   | --progr-tra=* | --program-tr=* | --program-t=*)
1058     program_transform_name=$ac_optarg ;;
1059
1060   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061     ac_prev=pdfdir ;;
1062   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063     pdfdir=$ac_optarg ;;
1064
1065   -psdir | --psdir | --psdi | --psd | --ps)
1066     ac_prev=psdir ;;
1067   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068     psdir=$ac_optarg ;;
1069
1070   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071   | -silent | --silent | --silen | --sile | --sil)
1072     silent=yes ;;
1073
1074   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075     ac_prev=sbindir ;;
1076   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077   | --sbi=* | --sb=*)
1078     sbindir=$ac_optarg ;;
1079
1080   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082   | --sharedst | --shareds | --shared | --share | --shar \
1083   | --sha | --sh)
1084     ac_prev=sharedstatedir ;;
1085   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088   | --sha=* | --sh=*)
1089     sharedstatedir=$ac_optarg ;;
1090
1091   -site | --site | --sit)
1092     ac_prev=site ;;
1093   -site=* | --site=* | --sit=*)
1094     site=$ac_optarg ;;
1095
1096   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097     ac_prev=srcdir ;;
1098   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099     srcdir=$ac_optarg ;;
1100
1101   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102   | --syscon | --sysco | --sysc | --sys | --sy)
1103     ac_prev=sysconfdir ;;
1104   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106     sysconfdir=$ac_optarg ;;
1107
1108   -target | --target | --targe | --targ | --tar | --ta | --t)
1109     ac_prev=target_alias ;;
1110   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111     target_alias=$ac_optarg ;;
1112
1113   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114     verbose=yes ;;
1115
1116   -version | --version | --versio | --versi | --vers | -V)
1117     ac_init_version=: ;;
1118
1119   -with-* | --with-*)
1120     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1123       { echo "$as_me: error: invalid package name: $ac_package" >&2
1124    { (exit 1); exit 1; }; }
1125     ac_package=`echo $ac_package| sed 's/-/_/g'`
1126     eval with_$ac_package=\$ac_optarg ;;
1127
1128   -without-* | --without-*)
1129     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130     # Reject names that are not valid shell variable names.
1131     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1132       { echo "$as_me: error: invalid package name: $ac_package" >&2
1133    { (exit 1); exit 1; }; }
1134     ac_package=`echo $ac_package | sed 's/-/_/g'`
1135     eval with_$ac_package=no ;;
1136
1137   --x)
1138     # Obsolete; use --with-x.
1139     with_x=yes ;;
1140
1141   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142   | --x-incl | --x-inc | --x-in | --x-i)
1143     ac_prev=x_includes ;;
1144   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146     x_includes=$ac_optarg ;;
1147
1148   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150     ac_prev=x_libraries ;;
1151   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153     x_libraries=$ac_optarg ;;
1154
1155   -*) { echo "$as_me: error: unrecognized option: $ac_option
1156 Try \`$0 --help' for more information." >&2
1157    { (exit 1); exit 1; }; }
1158     ;;
1159
1160   *=*)
1161     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162     # Reject names that are not valid shell variable names.
1163     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1164       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1165    { (exit 1); exit 1; }; }
1166     eval $ac_envvar=\$ac_optarg
1167     export $ac_envvar ;;
1168
1169   *)
1170     # FIXME: should be removed in autoconf 3.0.
1171     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175     ;;
1176
1177   esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182   { echo "$as_me: error: missing argument to $ac_option" >&2
1183    { (exit 1); exit 1; }; }
1184 fi
1185
1186 # Be sure to have absolute directory names.
1187 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188                 datadir sysconfdir sharedstatedir localstatedir includedir \
1189                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190                 libdir localedir mandir
1191 do
1192   eval ac_val=\$$ac_var
1193   case $ac_val in
1194     [\\/$]* | ?:[\\/]* )  continue;;
1195     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196   esac
1197   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1198    { (exit 1); exit 1; }; }
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210   if test "x$build_alias" = x; then
1211     cross_compiling=maybe
1212     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213     If a cross compiler is detected then cross compile mode will be used." >&2
1214   elif test "x$build_alias" != "x$host_alias"; then
1215     cross_compiling=yes
1216   fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228   { echo "$as_me: error: Working directory cannot be determined" >&2
1229    { (exit 1); exit 1; }; }
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231   { echo "$as_me: error: pwd does not report name of working directory" >&2
1232    { (exit 1); exit 1; }; }
1233
1234
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237   ac_srcdir_defaulted=yes
1238   # Try the directory containing this script, then the parent directory.
1239   ac_confdir=`$as_dirname -- "$0" ||
1240 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241          X"$0" : 'X\(//\)[^/]' \| \
1242          X"$0" : 'X\(//\)$' \| \
1243          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1244 echo X"$0" |
1245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\/\)[^/].*/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\/\)$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\).*/{
1258             s//\1/
1259             q
1260           }
1261           s/.*/./; q'`
1262   srcdir=$ac_confdir
1263   if test ! -r "$srcdir/$ac_unique_file"; then
1264     srcdir=..
1265   fi
1266 else
1267   ac_srcdir_defaulted=no
1268 fi
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1272    { (exit 1); exit 1; }; }
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1277    { (exit 1); exit 1; }; }
1278         pwd)`
1279 # When building in place, set srcdir=.
1280 if test "$ac_abs_confdir" = "$ac_pwd"; then
1281   srcdir=.
1282 fi
1283 # Remove unnecessary trailing slashes from srcdir.
1284 # Double slashes in file names in object file debugging info
1285 # mess up M-x gdb in Emacs.
1286 case $srcdir in
1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 esac
1289 for ac_var in $ac_precious_vars; do
1290   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1291   eval ac_env_${ac_var}_value=\$${ac_var}
1292   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 done
1295
1296 #
1297 # Report the --help message.
1298 #
1299 if test "$ac_init_help" = "long"; then
1300   # Omit some internal or obsolete options to make the list less imposing.
1301   # This message is too long to be a string in the A/UX 3.1 sh.
1302   cat <<_ACEOF
1303 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1304
1305 Usage: $0 [OPTION]... [VAR=VALUE]...
1306
1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1308 VAR=VALUE.  See below for descriptions of some of the useful variables.
1309
1310 Defaults for the options are specified in brackets.
1311
1312 Configuration:
1313   -h, --help              display this help and exit
1314       --help=short        display options specific to this package
1315       --help=recursive    display the short help of all the included packages
1316   -V, --version           display version information and exit
1317   -q, --quiet, --silent   do not print \`checking...' messages
1318       --cache-file=FILE   cache test results in FILE [disabled]
1319   -C, --config-cache      alias for \`--cache-file=config.cache'
1320   -n, --no-create         do not create output files
1321       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1322
1323 Installation directories:
1324   --prefix=PREFIX         install architecture-independent files in PREFIX
1325                           [$ac_default_prefix]
1326   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1327                           [PREFIX]
1328
1329 By default, \`make install' will install all the files in
1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1332 for instance \`--prefix=\$HOME'.
1333
1334 For better control, use the options below.
1335
1336 Fine tuning of the installation directories:
1337   --bindir=DIR           user executables [EPREFIX/bin]
1338   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1339   --libexecdir=DIR       program executables [EPREFIX/libexec]
1340   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1341   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1342   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1343   --libdir=DIR           object code libraries [EPREFIX/lib]
1344   --includedir=DIR       C header files [PREFIX/include]
1345   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1346   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1347   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1348   --infodir=DIR          info documentation [DATAROOTDIR/info]
1349   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1350   --mandir=DIR           man documentation [DATAROOTDIR/man]
1351   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1352   --htmldir=DIR          html documentation [DOCDIR]
1353   --dvidir=DIR           dvi documentation [DOCDIR]
1354   --pdfdir=DIR           pdf documentation [DOCDIR]
1355   --psdir=DIR            ps documentation [DOCDIR]
1356 _ACEOF
1357
1358   cat <<\_ACEOF
1359
1360 System types:
1361   --build=BUILD     configure for building on BUILD [guessed]
1362   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363   --target=TARGET   configure for building compilers for TARGET [HOST]
1364 _ACEOF
1365 fi
1366
1367 if test -n "$ac_init_help"; then
1368   case $ac_init_help in
1369      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1370    esac
1371   cat <<\_ACEOF
1372
1373 Optional Features:
1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376   --enable-polly          Use polly if available (default is YES)
1377   --enable-libcpp         Use libc++ if available (default is NO)
1378   --enable-optimized      Compile with optimizations enabled (default is NO)
1379   --enable-profiling      Compile with profiling enabled (default is NO)
1380   --enable-assertions     Compile with assertion checks enabled (default is
1381                           YES)
1382   --enable-expensive-checks
1383                           Compile with expensive debug checks enabled (default
1384                           is NO)
1385   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1386                           NO)
1387   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1388                           optimization is on and YES if it's off)
1389   --enable-jit            Enable Just In Time Compiling (default is YES)
1390   --enable-docs           Build documents (default is YES)
1391   --enable-doxygen        Build doxygen documentation (default is NO)
1392   --enable-threads        Use threads if available (default is YES)
1393   --enable-pthreads       Use pthreads if available (default is YES)
1394   --enable-pic            Build LLVM with Position Independent Code (default
1395                           is YES)
1396   --enable-shared         Build a shared library and link tools against it
1397                           (default is NO)
1398   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1399                           Win32 DLL (default is YES)
1400   --enable-timestamps     Enable embedding timestamp information in build
1401                           (default is YES)
1402   --enable-targets        Build specific host targets: all or
1403                           target1,target2,... Valid targets are: host, x86,
1404                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405                           xcore, msp430, ptx, nvptx, cbe, and cpp
1406                           (default=all)
1407   --enable-bindings       Build specific language bindings:
1408                           all,auto,none,{binding-name} (default=auto)
1409   --enable-libffi         Check for the presence of libffi (default is NO)
1410   --enable-ltdl-install   install libltdl
1411
1412 Optional Packages:
1413   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1414   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1415   --with-llvmsrc          Location of LLVM Source Code
1416   --with-llvmobj          Location of LLVM Object Code
1417   --with-optimize-option  Select the compiler options to use for optimized
1418                           builds
1419   --with-extra-options    Specify additional options to compile LLVM with
1420   --with-extra-ld-options Specify additional options to link LLVM with
1421   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1422                           is stdlib)
1423   --with-clang-resource-dir
1424                           Relative directory from the Clang binary for
1425                           resource files
1426   --with-c-include-dirs   Colon separated list of directories clang will
1427                           search for headers
1428   --with-gcc-toolchain    Directory where gcc is installed.
1429   --with-binutils-include Specify path to binutils/include/ containing
1430                           plugin-api.h file for gold plugin.
1431   --with-bug-report-url   Specify the URL where bug reports should be
1432                           submitted (default=http://llvm.org/bugs/)
1433   --with-tclinclude       directory where tcl headers are
1434   --with-udis86=<path>    Use udis86 external x86 disassembler library
1435   --with-oprofile=<prefix>
1436                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1437
1438 Some influential environment variables:
1439   CC          C compiler command
1440   CFLAGS      C compiler flags
1441   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442               nonstandard directory <lib dir>
1443   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1444               you have headers in a nonstandard directory <include dir>
1445   CXX         C++ compiler command
1446   CXXFLAGS    C++ compiler flags
1447   CPP         C preprocessor
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to <bugs@yourdomain>.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458   # If there are subdirs, report their specific --help.
1459   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460     test -d "$ac_dir" || continue
1461     ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1467   # A ".." for each directory in $ac_dir_suffix.
1468   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1469   case $ac_top_builddir_sub in
1470   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472   esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480   .)  # We are building in place.
1481     ac_srcdir=.
1482     ac_top_srcdir=$ac_top_builddir_sub
1483     ac_abs_top_srcdir=$ac_pwd ;;
1484   [\\/]* | ?:[\\/]* )  # Absolute name.
1485     ac_srcdir=$srcdir$ac_dir_suffix;
1486     ac_top_srcdir=$srcdir
1487     ac_abs_top_srcdir=$srcdir ;;
1488   *) # Relative name.
1489     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490     ac_top_srcdir=$ac_top_build_prefix$srcdir
1491     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495     cd "$ac_dir" || { ac_status=$?; continue; }
1496     # Check for guested configure.
1497     if test -f "$ac_srcdir/configure.gnu"; then
1498       echo &&
1499       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500     elif test -f "$ac_srcdir/configure"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure" --help=recursive
1503     else
1504       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505     fi || ac_status=$?
1506     cd "$ac_pwd" || { ac_status=$?; break; }
1507   done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512   cat <<\_ACEOF
1513 [SAMPLE] configure [x.xx]
1514 generated by GNU Autoconf 2.60
1515
1516 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1517 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521   exit
1522 fi
1523 cat >config.log <<_ACEOF
1524 This file contains any messages produced by compilers while
1525 running configure, to aid debugging if configure makes a mistake.
1526
1527 It was created by [SAMPLE] $as_me [x.xx], which was
1528 generated by GNU Autoconf 2.60.  Invocation command line was
1529
1530   $ $0 $@
1531
1532 _ACEOF
1533 exec 5>>config.log
1534 {
1535 cat <<_ASUNAME
1536 ## --------- ##
1537 ## Platform. ##
1538 ## --------- ##
1539
1540 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1541 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1542 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1543 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1544 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1545
1546 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1547 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1548
1549 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1550 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1551 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1552 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1553 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1554 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1555 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1556
1557 _ASUNAME
1558
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562   IFS=$as_save_IFS
1563   test -z "$as_dir" && as_dir=.
1564   echo "PATH: $as_dir"
1565 done
1566 IFS=$as_save_IFS
1567
1568 } >&5
1569
1570 cat >&5 <<_ACEOF
1571
1572
1573 ## ----------- ##
1574 ## Core tests. ##
1575 ## ----------- ##
1576
1577 _ACEOF
1578
1579
1580 # Keep a trace of the command line.
1581 # Strip out --no-create and --no-recursion so they do not pile up.
1582 # Strip out --silent because we don't want to record it for future runs.
1583 # Also quote any args containing shell meta-characters.
1584 # Make two passes to allow for proper duplicate-argument suppression.
1585 ac_configure_args=
1586 ac_configure_args0=
1587 ac_configure_args1=
1588 ac_must_keep_next=false
1589 for ac_pass in 1 2
1590 do
1591   for ac_arg
1592   do
1593     case $ac_arg in
1594     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1595     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1596     | -silent | --silent | --silen | --sile | --sil)
1597       continue ;;
1598     *\'*)
1599       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1600     esac
1601     case $ac_pass in
1602     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1603     2)
1604       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1605       if test $ac_must_keep_next = true; then
1606         ac_must_keep_next=false # Got value, back to normal.
1607       else
1608         case $ac_arg in
1609           *=* | --config-cache | -C | -disable-* | --disable-* \
1610           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1611           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1612           | -with-* | --with-* | -without-* | --without-* | --x)
1613             case "$ac_configure_args0 " in
1614               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1615             esac
1616             ;;
1617           -* ) ac_must_keep_next=true ;;
1618         esac
1619       fi
1620       ac_configure_args="$ac_configure_args '$ac_arg'"
1621       ;;
1622     esac
1623   done
1624 done
1625 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1626 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1627
1628 # When interrupted or exit'd, cleanup temporary files, and complete
1629 # config.log.  We remove comments because anyway the quotes in there
1630 # would cause problems or look ugly.
1631 # WARNING: Use '\'' to represent an apostrophe within the trap.
1632 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1633 trap 'exit_status=$?
1634   # Save into config.log some information that might help in debugging.
1635   {
1636     echo
1637
1638     cat <<\_ASBOX
1639 ## ---------------- ##
1640 ## Cache variables. ##
1641 ## ---------------- ##
1642 _ASBOX
1643     echo
1644     # The following way of writing the cache mishandles newlines in values,
1645 (
1646   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1647     eval ac_val=\$$ac_var
1648     case $ac_val in #(
1649     *${as_nl}*)
1650       case $ac_var in #(
1651       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1652 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1653       esac
1654       case $ac_var in #(
1655       _ | IFS | as_nl) ;; #(
1656       *) $as_unset $ac_var ;;
1657       esac ;;
1658     esac
1659   done
1660   (set) 2>&1 |
1661     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1662     *${as_nl}ac_space=\ *)
1663       sed -n \
1664         "s/'\''/'\''\\\\'\'''\''/g;
1665           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1666       ;; #(
1667     *)
1668       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1669       ;;
1670     esac |
1671     sort
1672 )
1673     echo
1674
1675     cat <<\_ASBOX
1676 ## ----------------- ##
1677 ## Output variables. ##
1678 ## ----------------- ##
1679 _ASBOX
1680     echo
1681     for ac_var in $ac_subst_vars
1682     do
1683       eval ac_val=\$$ac_var
1684       case $ac_val in
1685       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686       esac
1687       echo "$ac_var='\''$ac_val'\''"
1688     done | sort
1689     echo
1690
1691     if test -n "$ac_subst_files"; then
1692       cat <<\_ASBOX
1693 ## ------------------- ##
1694 ## File substitutions. ##
1695 ## ------------------- ##
1696 _ASBOX
1697       echo
1698       for ac_var in $ac_subst_files
1699       do
1700         eval ac_val=\$$ac_var
1701         case $ac_val in
1702         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1703         esac
1704         echo "$ac_var='\''$ac_val'\''"
1705       done | sort
1706       echo
1707     fi
1708
1709     if test -s confdefs.h; then
1710       cat <<\_ASBOX
1711 ## ----------- ##
1712 ## confdefs.h. ##
1713 ## ----------- ##
1714 _ASBOX
1715       echo
1716       cat confdefs.h
1717       echo
1718     fi
1719     test "$ac_signal" != 0 &&
1720       echo "$as_me: caught signal $ac_signal"
1721     echo "$as_me: exit $exit_status"
1722   } >&5
1723   rm -f core *.core core.conftest.* &&
1724     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1725     exit $exit_status
1726 ' 0
1727 for ac_signal in 1 2 13 15; do
1728   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1729 done
1730 ac_signal=0
1731
1732 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1733 rm -f -r conftest* confdefs.h
1734
1735 # Predefined preprocessor variables.
1736
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_NAME "$PACKAGE_NAME"
1739 _ACEOF
1740
1741
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1744 _ACEOF
1745
1746
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1749 _ACEOF
1750
1751
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_STRING "$PACKAGE_STRING"
1754 _ACEOF
1755
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1759 _ACEOF
1760
1761
1762 # Let the site file select an alternate cache file if it wants to.
1763 # Prefer explicitly selected file to automatically selected ones.
1764 if test -n "$CONFIG_SITE"; then
1765   set x "$CONFIG_SITE"
1766 elif test "x$prefix" != xNONE; then
1767   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1768 else
1769   set x "$ac_default_prefix/share/config.site" \
1770         "$ac_default_prefix/etc/config.site"
1771 fi
1772 shift
1773 for ac_site_file
1774 do
1775   if test -r "$ac_site_file"; then
1776     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1777 echo "$as_me: loading site script $ac_site_file" >&6;}
1778     sed 's/^/| /' "$ac_site_file" >&5
1779     . "$ac_site_file"
1780   fi
1781 done
1782
1783 if test -r "$cache_file"; then
1784   # Some versions of bash will fail to source /dev/null (special
1785   # files actually), so we avoid doing that.
1786   if test -f "$cache_file"; then
1787     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1788 echo "$as_me: loading cache $cache_file" >&6;}
1789     case $cache_file in
1790       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1791       *)                      . "./$cache_file";;
1792     esac
1793   fi
1794 else
1795   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1796 echo "$as_me: creating cache $cache_file" >&6;}
1797   >$cache_file
1798 fi
1799
1800 # Check that the precious variables saved in the cache have kept the same
1801 # value.
1802 ac_cache_corrupted=false
1803 for ac_var in $ac_precious_vars; do
1804   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1805   eval ac_new_set=\$ac_env_${ac_var}_set
1806   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1807   eval ac_new_val=\$ac_env_${ac_var}_value
1808   case $ac_old_set,$ac_new_set in
1809     set,)
1810       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1811 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1812       ac_cache_corrupted=: ;;
1813     ,set)
1814       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1815 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1816       ac_cache_corrupted=: ;;
1817     ,);;
1818     *)
1819       if test "x$ac_old_val" != "x$ac_new_val"; then
1820         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1821 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1822         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1823 echo "$as_me:   former value:  $ac_old_val" >&2;}
1824         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1825 echo "$as_me:   current value: $ac_new_val" >&2;}
1826         ac_cache_corrupted=:
1827       fi;;
1828   esac
1829   # Pass precious variables to config.status.
1830   if test "$ac_new_set" = set; then
1831     case $ac_new_val in
1832     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1833     *) ac_arg=$ac_var=$ac_new_val ;;
1834     esac
1835     case " $ac_configure_args " in
1836       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1837       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1838     esac
1839   fi
1840 done
1841 if $ac_cache_corrupted; then
1842   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1843 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1844   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1845 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1846    { (exit 1); exit 1; }; }
1847 fi
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873 ac_ext=c
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878
1879
1880
1881 LLVM_SRC_ROOT="../.."
1882 LLVM_OBJ_ROOT="../.."
1883
1884 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1885 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1886
1887
1888 # Check whether --with-llvmsrc was given.
1889 if test "${with_llvmsrc+set}" = set; then
1890   withval=$with_llvmsrc; llvm_src="$withval"
1891 else
1892   llvm_src="$LLVM_ABS_SRC_ROOT"
1893 fi
1894
1895   LLVM_SRC=$llvm_src
1896
1897
1898 # Check whether --with-llvmobj was given.
1899 if test "${with_llvmobj+set}" = set; then
1900   withval=$with_llvmobj; llvm_obj="$withval"
1901 else
1902   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1903 fi
1904
1905   LLVM_OBJ=$llvm_obj
1906
1907   ac_config_commands="$ac_config_commands setup"
1908
1909
1910
1911 { echo "$as_me:$LINENO: checking llvm-config" >&5
1912 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1913 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1914 if ! test -f "$llvm_config_path" ; then
1915    llvm_config_path="no"
1916 fi
1917 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1918 echo "${ECHO_T}$llvm_config_path" >&6; }
1919
1920 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1921 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1922 if test "$llvm_config_path" != no ; then
1923   llvm_package_version=`$llvm_config_path --version`
1924 else
1925   llvm_package_version="unknown";
1926 fi
1927 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1928 echo "${ECHO_T}$llvm_package_version" >&6; }
1929 LLVM_VERSION=$llvm_package_version
1930
1931
1932
1933
1934 ac_aux_dir=
1935 for ac_dir in autoconf "$srcdir"/autoconf; do
1936   if test -f "$ac_dir/install-sh"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/install-sh -c"
1939     break
1940   elif test -f "$ac_dir/install.sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install.sh -c"
1943     break
1944   elif test -f "$ac_dir/shtool"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/shtool install -c"
1947     break
1948   fi
1949 done
1950 if test -z "$ac_aux_dir"; then
1951   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1963
1964
1965
1966
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 if test -n "$ac_tool_prefix"; then
1973   for ac_prog in clang llvm-gcc gcc
1974   do
1975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$CC"; then
1983   ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1992     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995   fi
1996 done
1997 done
1998 IFS=$as_save_IFS
1999
2000 fi
2001 fi
2002 CC=$ac_cv_prog_CC
2003 if test -n "$CC"; then
2004   { echo "$as_me:$LINENO: result: $CC" >&5
2005 echo "${ECHO_T}$CC" >&6; }
2006 else
2007   { echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6; }
2009 fi
2010
2011
2012     test -n "$CC" && break
2013   done
2014 fi
2015 if test -z "$CC"; then
2016   ac_ct_CC=$CC
2017   for ac_prog in clang llvm-gcc gcc
2018 do
2019   # Extract the first word of "$ac_prog", so it can be a program name with args.
2020 set dummy $ac_prog; ac_word=$2
2021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   if test -n "$ac_ct_CC"; then
2027   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032   IFS=$as_save_IFS
2033   test -z "$as_dir" && as_dir=.
2034   for ac_exec_ext in '' $ac_executable_extensions; do
2035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2036     ac_cv_prog_ac_ct_CC="$ac_prog"
2037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038     break 2
2039   fi
2040 done
2041 done
2042 IFS=$as_save_IFS
2043
2044 fi
2045 fi
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6; }
2050 else
2051   { echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6; }
2053 fi
2054
2055
2056   test -n "$ac_ct_CC" && break
2057 done
2058
2059   if test "x$ac_ct_CC" = x; then
2060     CC=""
2061   else
2062     case $cross_compiling:$ac_tool_warned in
2063 yes:)
2064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet.  If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&5
2067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet.  If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2070 ac_tool_warned=yes ;;
2071 esac
2072     CC=$ac_ct_CC
2073   fi
2074 fi
2075
2076
2077 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&5
2079 echo "$as_me: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&2;}
2081    { (exit 1); exit 1; }; }
2082
2083 # Provide some information about the compiler.
2084 echo "$as_me:$LINENO: checking for C compiler version" >&5
2085 ac_compiler=`set X $ac_compile; echo $2`
2086 { (ac_try="$ac_compiler --version >&5"
2087 case "(($ac_try" in
2088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089   *) ac_try_echo=$ac_try;;
2090 esac
2091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092   (eval "$ac_compiler --version >&5") 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }
2096 { (ac_try="$ac_compiler -v >&5"
2097 case "(($ac_try" in
2098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099   *) ac_try_echo=$ac_try;;
2100 esac
2101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102   (eval "$ac_compiler -v >&5") 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }
2106 { (ac_try="$ac_compiler -V >&5"
2107 case "(($ac_try" in
2108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109   *) ac_try_echo=$ac_try;;
2110 esac
2111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112   (eval "$ac_compiler -V >&5") 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }
2116
2117 cat >conftest.$ac_ext <<_ACEOF
2118 /* confdefs.h.  */
2119 _ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h.  */
2123
2124 int
2125 main ()
2126 {
2127
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 ac_clean_files_save=$ac_clean_files
2133 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2134 # Try to create an executable without -o first, disregard a.out.
2135 # It will help us diagnose broken compilers, and finding out an intuition
2136 # of exeext.
2137 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2138 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2139 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2140 #
2141 # List of possible output files, starting from the most likely.
2142 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2143 # only as a last resort.  b.out is created by i960 compilers.
2144 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2145 #
2146 # The IRIX 6 linker writes into existing files which may not be
2147 # executable, retaining their permissions.  Remove them first so a
2148 # subsequent execution test works.
2149 ac_rmfiles=
2150 for ac_file in $ac_files
2151 do
2152   case $ac_file in
2153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2154     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2155   esac
2156 done
2157 rm -f $ac_rmfiles
2158
2159 if { (ac_try="$ac_link_default"
2160 case "(($ac_try" in
2161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162   *) ac_try_echo=$ac_try;;
2163 esac
2164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2165   (eval "$ac_link_default") 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); }; then
2169   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2170 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2171 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2172 # so that the user can short-circuit this test for compilers unknown to
2173 # Autoconf.
2174 for ac_file in $ac_files
2175 do
2176   test -f "$ac_file" || continue
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2179         ;;
2180     [ab].out )
2181         # We found the default executable, but exeext='' is most
2182         # certainly right.
2183         break;;
2184     *.* )
2185         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2186         then :; else
2187            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188         fi
2189         # We set ac_cv_exeext here because the later test for it is not
2190         # safe: cross compilers may not add the suffix if given an `-o'
2191         # argument, so we may need to know it at that point already.
2192         # Even if this section looks crufty: it has the advantage of
2193         # actually working.
2194         break;;
2195     * )
2196         break;;
2197   esac
2198 done
2199 test "$ac_cv_exeext" = no && ac_cv_exeext=
2200
2201 else
2202   echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&2;}
2209    { (exit 77); exit 77; }; }
2210 fi
2211
2212 ac_exeext=$ac_cv_exeext
2213 { echo "$as_me:$LINENO: result: $ac_file" >&5
2214 echo "${ECHO_T}$ac_file" >&6; }
2215
2216 # Check that the compiler produces executables we can run.  If not, either
2217 # the compiler is broken, or we cross compile.
2218 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2219 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2220 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2221 # If not cross compiling, check that we can run a simple program.
2222 if test "$cross_compiling" != yes; then
2223   if { ac_try='./$ac_file'
2224   { (case "(($ac_try" in
2225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226   *) ac_try_echo=$ac_try;;
2227 esac
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229   (eval "$ac_try") 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; }; then
2233     cross_compiling=no
2234   else
2235     if test "$cross_compiling" = maybe; then
2236         cross_compiling=yes
2237     else
2238         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244    { (exit 1); exit 1; }; }
2245     fi
2246   fi
2247 fi
2248 { echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6; }
2250
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check that the compiler produces executables we can run.  If not, either
2254 # the compiler is broken, or we cross compile.
2255 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2257 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6; }
2259
2260 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2262 if { (ac_try="$ac_link"
2263 case "(($ac_try" in
2264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265   *) ac_try_echo=$ac_try;;
2266 esac
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268   (eval "$ac_link") 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; then
2272   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2273 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2274 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 # `rm'.
2276 for ac_file in conftest.exe conftest conftest.*; do
2277   test -f "$ac_file" || continue
2278   case $ac_file in
2279     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2280     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2281           break;;
2282     * ) break;;
2283   esac
2284 done
2285 else
2286   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291 fi
2292
2293 rm -f conftest$ac_cv_exeext
2294 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2296
2297 rm -f conftest.$ac_ext
2298 EXEEXT=$ac_cv_exeext
2299 ac_exeext=$EXEEXT
2300 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2302 if test "${ac_cv_objext+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.o conftest.obj
2321 if { (ac_try="$ac_compile"
2322 case "(($ac_try" in
2323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324   *) ac_try_echo=$ac_try;;
2325 esac
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327   (eval "$ac_compile") 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; then
2331   for ac_file in conftest.o conftest.obj conftest.*; do
2332   test -f "$ac_file" || continue;
2333   case $ac_file in
2334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2335     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336        break;;
2337   esac
2338 done
2339 else
2340   echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 fi
2352 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6; }
2354 OBJEXT=$ac_cv_objext
2355 ac_objext=$OBJEXT
2356 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367
2368 int
2369 main ()
2370 {
2371 #ifndef __GNUC__
2372        choke me
2373 #endif
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (ac_try="$ac_compile"
2381 case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_compile") 2>conftest.er1
2387   ac_status=$?
2388   grep -v '^ *+' conftest.er1 >conftest.err
2389   rm -f conftest.er1
2390   cat conftest.err >&5
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); } &&
2393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2394   { (case "(($ac_try" in
2395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396   *) ac_try_echo=$ac_try;;
2397 esac
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399   (eval "$ac_try") 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; } &&
2403          { ac_try='test -s conftest.$ac_objext'
2404   { (case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409   (eval "$ac_try") 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; }; then
2413   ac_compiler_gnu=yes
2414 else
2415   echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418         ac_compiler_gnu=no
2419 fi
2420
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2423
2424 fi
2425 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2427 GCC=`test $ac_compiler_gnu = yes && echo yes`
2428 ac_test_CFLAGS=${CFLAGS+set}
2429 ac_save_CFLAGS=$CFLAGS
2430 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2431 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_cc_g+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   ac_save_c_werror_flag=$ac_c_werror_flag
2436    ac_c_werror_flag=yes
2437    ac_cv_prog_cc_g=no
2438    CFLAGS="-g"
2439    cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h.  */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h.  */
2445
2446 int
2447 main ()
2448 {
2449
2450   ;
2451   return 0;
2452 }
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (ac_try="$ac_compile"
2456 case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461   (eval "$ac_compile") 2>conftest.er1
2462   ac_status=$?
2463   grep -v '^ *+' conftest.er1 >conftest.err
2464   rm -f conftest.er1
2465   cat conftest.err >&5
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2469   { (case "(($ac_try" in
2470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471   *) ac_try_echo=$ac_try;;
2472 esac
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474   (eval "$ac_try") 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; } &&
2478          { ac_try='test -s conftest.$ac_objext'
2479   { (case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484   (eval "$ac_try") 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   ac_cv_prog_cc_g=yes
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493         CFLAGS=""
2494       cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500
2501 int
2502 main ()
2503 {
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.$ac_objext
2510 if { (ac_try="$ac_compile"
2511 case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516   (eval "$ac_compile") 2>conftest.er1
2517   ac_status=$?
2518   grep -v '^ *+' conftest.er1 >conftest.err
2519   rm -f conftest.er1
2520   cat conftest.err >&5
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); } &&
2523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2524   { (case "(($ac_try" in
2525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526   *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529   (eval "$ac_try") 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (case "(($ac_try" in
2535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536   *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539   (eval "$ac_try") 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; }; then
2543   :
2544 else
2545   echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548         ac_c_werror_flag=$ac_save_c_werror_flag
2549          CFLAGS="-g"
2550          cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 int
2558 main ()
2559 {
2560
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (ac_try="$ac_compile"
2567 case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572   (eval "$ac_compile") 2>conftest.er1
2573   ac_status=$?
2574   grep -v '^ *+' conftest.er1 >conftest.err
2575   rm -f conftest.er1
2576   cat conftest.err >&5
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2580   { (case "(($ac_try" in
2581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582   *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585   (eval "$ac_try") 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; } &&
2589          { ac_try='test -s conftest.$ac_objext'
2590   { (case "(($ac_try" in
2591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592   *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595   (eval "$ac_try") 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   ac_cv_prog_cc_g=yes
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604
2605 fi
2606
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614    ac_c_werror_flag=$ac_save_c_werror_flag
2615 fi
2616 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2617 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2618 if test "$ac_test_CFLAGS" = set; then
2619   CFLAGS=$ac_save_CFLAGS
2620 elif test $ac_cv_prog_cc_g = yes; then
2621   if test "$GCC" = yes; then
2622     CFLAGS="-g -O2"
2623   else
2624     CFLAGS="-g"
2625   fi
2626 else
2627   if test "$GCC" = yes; then
2628     CFLAGS="-O2"
2629   else
2630     CFLAGS=
2631   fi
2632 fi
2633 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2634 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_cc_c89+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   ac_cv_prog_cc_c89=no
2639 ac_save_CC=$CC
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646 #include <stdarg.h>
2647 #include <stdio.h>
2648 #include <sys/types.h>
2649 #include <sys/stat.h>
2650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2651 struct buf { int x; };
2652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2653 static char *e (p, i)
2654      char **p;
2655      int i;
2656 {
2657   return p[i];
2658 }
2659 static char *f (char * (*g) (char **, int), char **p, ...)
2660 {
2661   char *s;
2662   va_list v;
2663   va_start (v,p);
2664   s = g (p, va_arg (v,int));
2665   va_end (v);
2666   return s;
2667 }
2668
2669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2670    function prototypes and stuff, but not '\xHH' hex character constants.
2671    These don't provoke an error unfortunately, instead are silently treated
2672    as 'x'.  The following induces an error, until -std is added to get
2673    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2674    array size at least.  It's necessary to write '\x00'==0 to get something
2675    that's true only with -std.  */
2676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677
2678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2679    inside strings and character constants.  */
2680 #define FOO(x) 'x'
2681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2682
2683 int test (int i, double x);
2684 struct s1 {int (*f) (int a);};
2685 struct s2 {int (*f) (double a);};
2686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687 int argc;
2688 char **argv;
2689 int
2690 main ()
2691 {
2692 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2698         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2699 do
2700   CC="$ac_save_CC $ac_arg"
2701   rm -f conftest.$ac_objext
2702 if { (ac_try="$ac_compile"
2703 case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_compile") 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2716   { (case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_try") 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; } &&
2725          { ac_try='test -s conftest.$ac_objext'
2726   { (case "(($ac_try" in
2727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728   *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731   (eval "$ac_try") 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; }; then
2735   ac_cv_prog_cc_c89=$ac_arg
2736 else
2737   echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740
2741 fi
2742
2743 rm -f core conftest.err conftest.$ac_objext
2744   test "x$ac_cv_prog_cc_c89" != "xno" && break
2745 done
2746 rm -f conftest.$ac_ext
2747 CC=$ac_save_CC
2748
2749 fi
2750 # AC_CACHE_VAL
2751 case "x$ac_cv_prog_cc_c89" in
2752   x)
2753     { echo "$as_me:$LINENO: result: none needed" >&5
2754 echo "${ECHO_T}none needed" >&6; } ;;
2755   xno)
2756     { echo "$as_me:$LINENO: result: unsupported" >&5
2757 echo "${ECHO_T}unsupported" >&6; } ;;
2758   *)
2759     CC="$CC $ac_cv_prog_cc_c89"
2760     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2761 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2762 esac
2763
2764
2765 ac_ext=c
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771 ac_ext=cpp
2772 ac_cpp='$CXXCPP $CPPFLAGS'
2773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2776 if test -z "$CXX"; then
2777   if test -n "$CCC"; then
2778     CXX=$CCC
2779   else
2780     if test -n "$ac_tool_prefix"; then
2781   for ac_prog in clang++ llvm-g++ g++
2782   do
2783     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_CXX+set}" = set; then
2788   echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790   if test -n "$CXX"; then
2791   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796   IFS=$as_save_IFS
2797   test -z "$as_dir" && as_dir=.
2798   for ac_exec_ext in '' $ac_executable_extensions; do
2799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2800     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802     break 2
2803   fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 CXX=$ac_cv_prog_CXX
2811 if test -n "$CXX"; then
2812   { echo "$as_me:$LINENO: result: $CXX" >&5
2813 echo "${ECHO_T}$CXX" >&6; }
2814 else
2815   { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2817 fi
2818
2819
2820     test -n "$CXX" && break
2821   done
2822 fi
2823 if test -z "$CXX"; then
2824   ac_ct_CXX=$CXX
2825   for ac_prog in clang++ llvm-g++ g++
2826 do
2827   # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   if test -n "$ac_ct_CXX"; then
2835   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840   IFS=$as_save_IFS
2841   test -z "$as_dir" && as_dir=.
2842   for ac_exec_ext in '' $ac_executable_extensions; do
2843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2844     ac_cv_prog_ac_ct_CXX="$ac_prog"
2845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846     break 2
2847   fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2855 if test -n "$ac_ct_CXX"; then
2856   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2857 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2858 else
2859   { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2861 fi
2862
2863
2864   test -n "$ac_ct_CXX" && break
2865 done
2866
2867   if test "x$ac_ct_CXX" = x; then
2868     CXX="g++"
2869   else
2870     case $cross_compiling:$ac_tool_warned in
2871 yes:)
2872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet.  If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&5
2875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet.  If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880     CXX=$ac_ct_CXX
2881   fi
2882 fi
2883
2884   fi
2885 fi
2886 # Provide some information about the compiler.
2887 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2888 ac_compiler=`set X $ac_compile; echo $2`
2889 { (ac_try="$ac_compiler --version >&5"
2890 case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_compiler --version >&5") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }
2899 { (ac_try="$ac_compiler -v >&5"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_compiler -v >&5") 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }
2909 { (ac_try="$ac_compiler -V >&5"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_compiler -V >&5") 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }
2919
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935 #ifndef __GNUC__
2936        choke me
2937 #endif
2938
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_compile") 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } &&
2957          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2958   { (case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_try") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_try") 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; }; then
2977   ac_compiler_gnu=yes
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982         ac_compiler_gnu=no
2983 fi
2984
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2987
2988 fi
2989 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2990 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2991 GXX=`test $ac_compiler_gnu = yes && echo yes`
2992 ac_test_CXXFLAGS=${CXXFLAGS+set}
2993 ac_save_CXXFLAGS=$CXXFLAGS
2994 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2995 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_cxx_g+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3000    ac_cxx_werror_flag=yes
3001    ac_cv_prog_cxx_g=no
3002    CXXFLAGS="-g"
3003    cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_compile") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } &&
3032          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3033   { (case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038   (eval "$ac_try") 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; } &&
3042          { ac_try='test -s conftest.$ac_objext'
3043   { (case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_try") 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; }; then
3052   ac_cv_prog_cxx_g=yes
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057         CXXFLAGS=""
3058       cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h.  */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h.  */
3064
3065 int
3066 main ()
3067 {
3068
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (ac_try="$ac_compile"
3075 case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_compile") 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } &&
3087          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3088   { (case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093   (eval "$ac_try") 2>&5
3094   ac_status=$?
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; } &&
3097          { ac_try='test -s conftest.$ac_objext'
3098   { (case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_try") 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; }; then
3107   :
3108 else
3109   echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3113          CXXFLAGS="-g"
3114          cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } &&
3143          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; } &&
3153          { ac_try='test -s conftest.$ac_objext'
3154   { (case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_try") 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; }; then
3163   ac_cv_prog_cxx_g=yes
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168
3169 fi
3170
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3179 fi
3180 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3181 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3182 if test "$ac_test_CXXFLAGS" = set; then
3183   CXXFLAGS=$ac_save_CXXFLAGS
3184 elif test $ac_cv_prog_cxx_g = yes; then
3185   if test "$GXX" = yes; then
3186     CXXFLAGS="-g -O2"
3187   else
3188     CXXFLAGS="-g"
3189   fi
3190 else
3191   if test "$GXX" = yes; then
3192     CXXFLAGS="-O2"
3193   else
3194     CXXFLAGS=
3195   fi
3196 fi
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202
3203 ac_ext=c
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3209 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3210 # On Suns, sometimes $CPP names a directory.
3211 if test -n "$CPP" && test -d "$CPP"; then
3212   CPP=
3213 fi
3214 if test -z "$CPP"; then
3215   if test "${ac_cv_prog_CPP+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218       # Double quotes because CPP needs to be expanded
3219     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3220     do
3221       ac_preproc_ok=false
3222 for ac_c_preproc_warn_flag in '' yes
3223 do
3224   # Use a header file that comes with gcc, so configuring glibc
3225   # with a fresh cross-compiler works.
3226   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227   # <limits.h> exists even on freestanding compilers.
3228   # On the NeXT, cc -E runs the code through the compiler's parser,
3229   # not just through cpp. "Syntax error" is here to catch this case.
3230   cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236 #ifdef __STDC__
3237 # include <limits.h>
3238 #else
3239 # include <assert.h>
3240 #endif
3241                      Syntax error
3242 _ACEOF
3243 if { (ac_try="$ac_cpp conftest.$ac_ext"
3244 case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250   ac_status=$?
3251   grep -v '^ *+' conftest.er1 >conftest.err
3252   rm -f conftest.er1
3253   cat conftest.err >&5
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } >/dev/null; then
3256   if test -s conftest.err; then
3257     ac_cpp_err=$ac_c_preproc_warn_flag
3258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3259   else
3260     ac_cpp_err=
3261   fi
3262 else
3263   ac_cpp_err=yes
3264 fi
3265 if test -z "$ac_cpp_err"; then
3266   :
3267 else
3268   echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271   # Broken: fails on valid input.
3272 continue
3273 fi
3274
3275 rm -f conftest.err conftest.$ac_ext
3276
3277   # OK, works on sane cases.  Now check whether nonexistent headers
3278   # can be detected and how.
3279   cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285 #include <ac_nonexistent.h>
3286 _ACEOF
3287 if { (ac_try="$ac_cpp conftest.$ac_ext"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } >/dev/null; then
3300   if test -s conftest.err; then
3301     ac_cpp_err=$ac_c_preproc_warn_flag
3302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303   else
3304     ac_cpp_err=
3305   fi
3306 else
3307   ac_cpp_err=yes
3308 fi
3309 if test -z "$ac_cpp_err"; then
3310   # Broken: success on invalid input.
3311 continue
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316   # Passes both tests.
3317 ac_preproc_ok=:
3318 break
3319 fi
3320
3321 rm -f conftest.err conftest.$ac_ext
3322
3323 done
3324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3325 rm -f conftest.err conftest.$ac_ext
3326 if $ac_preproc_ok; then
3327   break
3328 fi
3329
3330     done
3331     ac_cv_prog_CPP=$CPP
3332
3333 fi
3334   CPP=$ac_cv_prog_CPP
3335 else
3336   ac_cv_prog_CPP=$CPP
3337 fi
3338 { echo "$as_me:$LINENO: result: $CPP" >&5
3339 echo "${ECHO_T}$CPP" >&6; }
3340 ac_preproc_ok=false
3341 for ac_c_preproc_warn_flag in '' yes
3342 do
3343   # Use a header file that comes with gcc, so configuring glibc
3344   # with a fresh cross-compiler works.
3345   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346   # <limits.h> exists even on freestanding compilers.
3347   # On the NeXT, cc -E runs the code through the compiler's parser,
3348   # not just through cpp. "Syntax error" is here to catch this case.
3349   cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h.  */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h.  */
3355 #ifdef __STDC__
3356 # include <limits.h>
3357 #else
3358 # include <assert.h>
3359 #endif
3360                      Syntax error
3361 _ACEOF
3362 if { (ac_try="$ac_cpp conftest.$ac_ext"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } >/dev/null; then
3375   if test -s conftest.err; then
3376     ac_cpp_err=$ac_c_preproc_warn_flag
3377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378   else
3379     ac_cpp_err=
3380   fi
3381 else
3382   ac_cpp_err=yes
3383 fi
3384 if test -z "$ac_cpp_err"; then
3385   :
3386 else
3387   echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390   # Broken: fails on valid input.
3391 continue
3392 fi
3393
3394 rm -f conftest.err conftest.$ac_ext
3395
3396   # OK, works on sane cases.  Now check whether nonexistent headers
3397   # can be detected and how.
3398   cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #include <ac_nonexistent.h>
3405 _ACEOF
3406 if { (ac_try="$ac_cpp conftest.$ac_ext"
3407 case "(($ac_try" in
3408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409   *) ac_try_echo=$ac_try;;
3410 esac
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } >/dev/null; then
3419   if test -s conftest.err; then
3420     ac_cpp_err=$ac_c_preproc_warn_flag
3421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422   else
3423     ac_cpp_err=
3424   fi
3425 else
3426   ac_cpp_err=yes
3427 fi
3428 if test -z "$ac_cpp_err"; then
3429   # Broken: success on invalid input.
3430 continue
3431 else
3432   echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435   # Passes both tests.
3436 ac_preproc_ok=:
3437 break
3438 fi
3439
3440 rm -f conftest.err conftest.$ac_ext
3441
3442 done
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then
3446   :
3447 else
3448   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&2;}
3452    { (exit 1); exit 1; }; }
3453 fi
3454
3455 ac_ext=c
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460
3461
3462
3463
3464 # Check whether --enable-polly was given.
3465 if test "${enable_polly+set}" = set; then
3466   enableval=$enable_polly;
3467 else
3468   enableval=default
3469 fi
3470
3471 case "$enableval" in
3472   yes) ENABLE_POLLY=1
3473  ;;
3474   no)  ENABLE_POLLY=0
3475  ;;
3476   default) ENABLE_POLLY=1
3477  ;;
3478   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3479 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3480    { (exit 1); exit 1; }; } ;;
3481 esac
3482
3483
3484 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3485   LLVM_HAS_POLLY=1
3486
3487   subdirs="$subdirs tools/polly"
3488
3489 fi
3490
3491
3492 # Make sure we can run config.sub.
3493 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3494   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3495 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3496    { (exit 1); exit 1; }; }
3497
3498 { echo "$as_me:$LINENO: checking build system type" >&5
3499 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3500 if test "${ac_cv_build+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   ac_build_alias=$build_alias
3504 test "x$ac_build_alias" = x &&
3505   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3506 test "x$ac_build_alias" = x &&
3507   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3508 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3509    { (exit 1); exit 1; }; }
3510 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3511   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3512 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3513    { (exit 1); exit 1; }; }
3514
3515 fi
3516 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3517 echo "${ECHO_T}$ac_cv_build" >&6; }
3518 case $ac_cv_build in
3519 *-*-*) ;;
3520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3521 echo "$as_me: error: invalid value of canonical build" >&2;}
3522    { (exit 1); exit 1; }; };;
3523 esac
3524 build=$ac_cv_build
3525 ac_save_IFS=$IFS; IFS='-'
3526 set x $ac_cv_build
3527 shift
3528 build_cpu=$1
3529 build_vendor=$2
3530 shift; shift
3531 # Remember, the first character of IFS is used to create $*,
3532 # except with old shells:
3533 build_os=$*
3534 IFS=$ac_save_IFS
3535 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3536
3537
3538 { echo "$as_me:$LINENO: checking host system type" >&5
3539 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3540 if test "${ac_cv_host+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   if test "x$host_alias" = x; then
3544   ac_cv_host=$ac_cv_build
3545 else
3546   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3547     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3548 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3549    { (exit 1); exit 1; }; }
3550 fi
3551
3552 fi
3553 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3554 echo "${ECHO_T}$ac_cv_host" >&6; }
3555 case $ac_cv_host in
3556 *-*-*) ;;
3557 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3558 echo "$as_me: error: invalid value of canonical host" >&2;}
3559    { (exit 1); exit 1; }; };;
3560 esac
3561 host=$ac_cv_host
3562 ac_save_IFS=$IFS; IFS='-'
3563 set x $ac_cv_host
3564 shift
3565 host_cpu=$1
3566 host_vendor=$2
3567 shift; shift
3568 # Remember, the first character of IFS is used to create $*,
3569 # except with old shells:
3570 host_os=$*
3571 IFS=$ac_save_IFS
3572 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3573
3574
3575 { echo "$as_me:$LINENO: checking target system type" >&5
3576 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3577 if test "${ac_cv_target+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   if test "x$target_alias" = x; then
3581   ac_cv_target=$ac_cv_host
3582 else
3583   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3584     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3585 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3586    { (exit 1); exit 1; }; }
3587 fi
3588
3589 fi
3590 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3591 echo "${ECHO_T}$ac_cv_target" >&6; }
3592 case $ac_cv_target in
3593 *-*-*) ;;
3594 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3595 echo "$as_me: error: invalid value of canonical target" >&2;}
3596    { (exit 1); exit 1; }; };;
3597 esac
3598 target=$ac_cv_target
3599 ac_save_IFS=$IFS; IFS='-'
3600 set x $ac_cv_target
3601 shift
3602 target_cpu=$1
3603 target_vendor=$2
3604 shift; shift
3605 # Remember, the first character of IFS is used to create $*,
3606 # except with old shells:
3607 target_os=$*
3608 IFS=$ac_save_IFS
3609 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3610
3611
3612 # The aliases save the names the user supplied, while $host etc.
3613 # will get canonicalized.
3614 test -n "$target_alias" &&
3615   test "$program_prefix$program_suffix$program_transform_name" = \
3616     NONENONEs,x,x, &&
3617   program_prefix=${target_alias}-
3618
3619 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3620 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3621 if test "${llvm_cv_os_type+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   case $host in
3625   *-*-aix*)
3626     llvm_cv_link_all_option="-Wl,--whole-archive"
3627     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3628     llvm_cv_os_type="AIX"
3629     llvm_cv_platform_type="Unix" ;;
3630   *-*-irix*)
3631     llvm_cv_link_all_option="-Wl,--whole-archive"
3632     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3633     llvm_cv_os_type="IRIX"
3634     llvm_cv_platform_type="Unix" ;;
3635   *-*-cygwin*)
3636     llvm_cv_link_all_option="-Wl,--whole-archive"
3637     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3638     llvm_cv_os_type="Cygwin"
3639     llvm_cv_platform_type="Unix" ;;
3640   *-*-darwin*)
3641     llvm_cv_link_all_option="-Wl,-all_load"
3642     llvm_cv_no_link_all_option="-Wl,-noall_load"
3643     llvm_cv_os_type="Darwin"
3644     llvm_cv_platform_type="Unix" ;;
3645   *-*-minix*)
3646     llvm_cv_link_all_option="-Wl,-all_load"
3647     llvm_cv_no_link_all_option="-Wl,-noall_load"
3648     llvm_cv_os_type="Minix"
3649     llvm_cv_platform_type="Unix" ;;
3650   *-*-freebsd* | *-*-kfreebsd-gnu)
3651     llvm_cv_link_all_option="-Wl,--whole-archive"
3652     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3653     llvm_cv_os_type="FreeBSD"
3654     llvm_cv_platform_type="Unix" ;;
3655   *-*-openbsd*)
3656     llvm_cv_link_all_option="-Wl,--whole-archive"
3657     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3658     llvm_cv_os_type="OpenBSD"
3659     llvm_cv_platform_type="Unix" ;;
3660   *-*-netbsd*)
3661     llvm_cv_link_all_option="-Wl,--whole-archive"
3662     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3663     llvm_cv_os_type="NetBSD"
3664     llvm_cv_platform_type="Unix" ;;
3665   *-*-dragonfly*)
3666     llvm_cv_link_all_option="-Wl,--whole-archive"
3667     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3668     llvm_cv_os_type="DragonFly"
3669     llvm_cv_platform_type="Unix" ;;
3670   *-*-hpux*)
3671     llvm_cv_link_all_option="-Wl,--whole-archive"
3672     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673     llvm_cv_os_type="HP-UX"
3674     llvm_cv_platform_type="Unix" ;;
3675   *-*-interix*)
3676     llvm_cv_link_all_option="-Wl,--whole-archive"
3677     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678     llvm_cv_os_type="Interix"
3679     llvm_cv_platform_type="Unix" ;;
3680   *-*-linux*)
3681     llvm_cv_link_all_option="-Wl,--whole-archive"
3682     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683     llvm_cv_os_type="Linux"
3684     llvm_cv_platform_type="Unix" ;;
3685   *-*-gnu*)
3686     llvm_cv_link_all_option="-Wl,--whole-archive"
3687     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688     llvm_cv_os_type="GNU"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-solaris*)
3691     llvm_cv_link_all_option="-Wl,-z,allextract"
3692     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3693     llvm_cv_os_type="SunOS"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-auroraux*)
3696     llvm_cv_link_all_option="-Wl,-z,allextract"
3697     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3698     llvm_cv_os_type="AuroraUX"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-win32*)
3701     llvm_cv_link_all_option="-Wl,--whole-archive"
3702     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703     llvm_cv_os_type="Win32"
3704     llvm_cv_platform_type="Win32" ;;
3705   *-*-mingw*)
3706     llvm_cv_link_all_option="-Wl,--whole-archive"
3707     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708     llvm_cv_os_type="MingW"
3709     llvm_cv_platform_type="Win32" ;;
3710   *-*-haiku*)
3711     llvm_cv_link_all_option="-Wl,--whole-archive"
3712     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713     llvm_cv_os_type="Haiku"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-unknown-eabi*)
3716     llvm_cv_link_all_option="-Wl,--whole-archive"
3717     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718     llvm_cv_os_type="Freestanding"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-unknown-elf*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="Freestanding"
3724     llvm_cv_platform_type="Unix" ;;
3725   *)
3726     llvm_cv_link_all_option=""
3727     llvm_cv_no_link_all_option=""
3728     llvm_cv_os_type="Unknown"
3729     llvm_cv_platform_type="Unknown" ;;
3730 esac
3731 fi
3732 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3733 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3734
3735 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3736 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3737 if test "${llvm_cv_target_os_type+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   case $target in
3741   *-*-aix*)
3742     llvm_cv_target_os_type="AIX" ;;
3743   *-*-irix*)
3744     llvm_cv_target_os_type="IRIX" ;;
3745   *-*-cygwin*)
3746     llvm_cv_target_os_type="Cygwin" ;;
3747   *-*-darwin*)
3748     llvm_cv_target_os_type="Darwin" ;;
3749   *-*-minix*)
3750     llvm_cv_target_os_type="Minix" ;;
3751   *-*-freebsd* | *-*-kfreebsd-gnu)
3752     llvm_cv_target_os_type="FreeBSD" ;;
3753   *-*-openbsd*)
3754     llvm_cv_target_os_type="OpenBSD" ;;
3755   *-*-netbsd*)
3756     llvm_cv_target_os_type="NetBSD" ;;
3757   *-*-dragonfly*)
3758     llvm_cv_target_os_type="DragonFly" ;;
3759   *-*-hpux*)
3760     llvm_cv_target_os_type="HP-UX" ;;
3761   *-*-interix*)
3762     llvm_cv_target_os_type="Interix" ;;
3763   *-*-linux*)
3764     llvm_cv_target_os_type="Linux" ;;
3765   *-*-gnu*)
3766     llvm_cv_target_os_type="GNU" ;;
3767   *-*-solaris*)
3768     llvm_cv_target_os_type="SunOS" ;;
3769   *-*-auroraux*)
3770     llvm_cv_target_os_type="AuroraUX" ;;
3771   *-*-win32*)
3772     llvm_cv_target_os_type="Win32" ;;
3773   *-*-mingw*)
3774     llvm_cv_target_os_type="MingW" ;;
3775   *-*-haiku*)
3776     llvm_cv_target_os_type="Haiku" ;;
3777   *-*-rtems*)
3778     llvm_cv_target_os_type="RTEMS" ;;
3779   *-*-nacl*)
3780     llvm_cv_target_os_type="NativeClient" ;;
3781   *-unknown-eabi*)
3782     llvm_cv_target_os_type="Freestanding" ;;
3783   *)
3784     llvm_cv_target_os_type="Unknown" ;;
3785 esac
3786 fi
3787 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790 if test "$llvm_cv_os_type" = "Unknown" ; then
3791   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793    { (exit 1); exit 1; }; }
3794 fi
3795
3796 OS=$llvm_cv_os_type
3797
3798 HOST_OS=$llvm_cv_os_type
3799
3800 TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803 LINKALL=$llvm_cv_link_all_option
3804
3805 NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808 case $llvm_cv_platform_type in
3809   Unix)
3810
3811 cat >>confdefs.h <<\_ACEOF
3812 #define LLVM_ON_UNIX 1
3813 _ACEOF
3814
3815     LLVM_ON_UNIX=1
3816
3817     LLVM_ON_WIN32=0
3818
3819     ;;
3820   Win32)
3821
3822 cat >>confdefs.h <<\_ACEOF
3823 #define LLVM_ON_WIN32 1
3824 _ACEOF
3825
3826     LLVM_ON_UNIX=0
3827
3828     LLVM_ON_WIN32=1
3829
3830     ;;
3831 esac
3832
3833 { echo "$as_me:$LINENO: checking target architecture" >&5
3834 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835 if test "${llvm_cv_target_arch+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   case $target in
3839   i?86-*)                 llvm_cv_target_arch="x86" ;;
3840   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3841   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3842   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3843   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3844   mips-*)                 llvm_cv_target_arch="Mips" ;;
3845   xcore-*)                llvm_cv_target_arch="XCore" ;;
3846   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3847   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3848   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3849   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3850   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3851   *)                      llvm_cv_target_arch="Unknown" ;;
3852 esac
3853 fi
3854 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3855 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3856
3857 if test "$llvm_cv_target_arch" = "Unknown" ; then
3858   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3859 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3860 fi
3861
3862 # Determine the LLVM native architecture for the target
3863 case "$llvm_cv_target_arch" in
3864     x86)     LLVM_NATIVE_ARCH="X86" ;;
3865     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3866     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3867 esac
3868
3869 ARCH=$llvm_cv_target_arch
3870
3871
3872
3873
3874 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3875 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3876 if test "${ac_cv_path_GREP+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   # Extract the first word of "grep ggrep" to use in msg output
3880 if test -z "$GREP"; then
3881 set dummy grep ggrep; ac_prog_name=$2
3882 if test "${ac_cv_path_GREP+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   ac_path_GREP_found=false
3886 # Loop through the user's path and test for each of PROGNAME-LIST
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892   for ac_prog in grep ggrep; do
3893   for ac_exec_ext in '' $ac_executable_extensions; do
3894     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3896     # Check for GNU ac_path_GREP and select it if it is found.
3897   # Check for GNU $ac_path_GREP
3898 case `"$ac_path_GREP" --version 2>&1` in
3899 *GNU*)
3900   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901 *)
3902   ac_count=0
3903   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904   while :
3905   do
3906     cat "conftest.in" "conftest.in" >"conftest.tmp"
3907     mv "conftest.tmp" "conftest.in"
3908     cp "conftest.in" "conftest.nl"
3909     echo 'GREP' >> "conftest.nl"
3910     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912     ac_count=`expr $ac_count + 1`
3913     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914       # Best one so far, save it but keep looking for a better one
3915       ac_cv_path_GREP="$ac_path_GREP"
3916       ac_path_GREP_max=$ac_count
3917     fi
3918     # 10*(2^10) chars as input seems more than enough
3919     test $ac_count -gt 10 && break
3920   done
3921   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922 esac
3923
3924
3925     $ac_path_GREP_found && break 3
3926   done
3927 done
3928
3929 done
3930 IFS=$as_save_IFS
3931
3932
3933 fi
3934
3935 GREP="$ac_cv_path_GREP"
3936 if test -z "$GREP"; then
3937   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939    { (exit 1); exit 1; }; }
3940 fi
3941
3942 else
3943   ac_cv_path_GREP=$GREP
3944 fi
3945
3946
3947 fi
3948 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3949 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3950  GREP="$ac_cv_path_GREP"
3951
3952
3953 { echo "$as_me:$LINENO: checking for egrep" >&5
3954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3955 if test "${ac_cv_path_EGREP+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3959    then ac_cv_path_EGREP="$GREP -E"
3960    else
3961      # Extract the first word of "egrep" to use in msg output
3962 if test -z "$EGREP"; then
3963 set dummy egrep; ac_prog_name=$2
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_prog in egrep; do
3975   for ac_exec_ext in '' $ac_executable_extensions; do
3976     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3978     # Check for GNU ac_path_EGREP and select it if it is found.
3979   # Check for GNU $ac_path_EGREP
3980 case `"$ac_path_EGREP" --version 2>&1` in
3981 *GNU*)
3982   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983 *)
3984   ac_count=0
3985   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986   while :
3987   do
3988     cat "conftest.in" "conftest.in" >"conftest.tmp"
3989     mv "conftest.tmp" "conftest.in"
3990     cp "conftest.in" "conftest.nl"
3991     echo 'EGREP' >> "conftest.nl"
3992     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994     ac_count=`expr $ac_count + 1`
3995     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996       # Best one so far, save it but keep looking for a better one
3997       ac_cv_path_EGREP="$ac_path_EGREP"
3998       ac_path_EGREP_max=$ac_count
3999     fi
4000     # 10*(2^10) chars as input seems more than enough
4001     test $ac_count -gt 10 && break
4002   done
4003   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004 esac
4005
4006
4007     $ac_path_EGREP_found && break 3
4008   done
4009 done
4010
4011 done
4012 IFS=$as_save_IFS
4013
4014
4015 fi
4016
4017 EGREP="$ac_cv_path_EGREP"
4018 if test -z "$EGREP"; then
4019   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021    { (exit 1); exit 1; }; }
4022 fi
4023
4024 else
4025   ac_cv_path_EGREP=$EGREP
4026 fi
4027
4028
4029    fi
4030 fi
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4033  EGREP="$ac_cv_path_EGREP"
4034
4035
4036 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4038 if test "${ac_cv_header_stdc+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #include <stdlib.h>
4048 #include <stdarg.h>
4049 #include <string.h>
4050 #include <float.h>
4051
4052 int
4053 main ()
4054 {
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4062 case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067   (eval "$ac_compile") 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } &&
4074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075   { (case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080   (eval "$ac_try") 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; } &&
4084          { ac_try='test -s conftest.$ac_objext'
4085   { (case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_try") 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; }; then
4094   ac_cv_header_stdc=yes
4095 else
4096   echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099         ac_cv_header_stdc=no
4100 fi
4101
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103
4104 if test $ac_cv_header_stdc = yes; then
4105   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4106   cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h.  */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h.  */
4112 #include <string.h>
4113
4114 _ACEOF
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116   $EGREP "memchr" >/dev/null 2>&1; then
4117   :
4118 else
4119   ac_cv_header_stdc=no
4120 fi
4121 rm -f conftest*
4122
4123 fi
4124
4125 if test $ac_cv_header_stdc = yes; then
4126   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127   cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 #include <stdlib.h>
4134
4135 _ACEOF
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137   $EGREP "free" >/dev/null 2>&1; then
4138   :
4139 else
4140   ac_cv_header_stdc=no
4141 fi
4142 rm -f conftest*
4143
4144 fi
4145
4146 if test $ac_cv_header_stdc = yes; then
4147   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148   if test "$cross_compiling" = yes; then
4149   :
4150 else
4151   cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 #include <ctype.h>
4158 #include <stdlib.h>
4159 #if ((' ' & 0x0FF) == 0x020)
4160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4162 #else
4163 # define ISLOWER(c) \
4164                    (('a' <= (c) && (c) <= 'i') \
4165                      || ('j' <= (c) && (c) <= 'r') \
4166                      || ('s' <= (c) && (c) <= 'z'))
4167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #endif
4169
4170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171 int
4172 main ()
4173 {
4174   int i;
4175   for (i = 0; i < 256; i++)
4176     if (XOR (islower (i), ISLOWER (i))
4177         || toupper (i) != TOUPPER (i))
4178       return 2;
4179   return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest$ac_exeext
4183 if { (ac_try="$ac_link"
4184 case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_link") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193   { (case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198   (eval "$ac_try") 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   :
4203 else
4204   echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ( exit $ac_status )
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212 fi
4213
4214
4215 fi
4216 fi
4217 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4219 if test $ac_cv_header_stdc = yes; then
4220
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4223 _ACEOF
4224
4225 fi
4226
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238                   inttypes.h stdint.h unistd.h
4239 do
4240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 $ac_includes_default
4253
4254 #include <$ac_header>
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_compile") 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } &&
4270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271   { (case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; } &&
4280          { ac_try='test -s conftest.$ac_objext'
4281   { (case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286   (eval "$ac_try") 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   eval "$as_ac_Header=yes"
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295         eval "$as_ac_Header=no"
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 fi
4300 ac_res=`eval echo '${'$as_ac_Header'}'`
4301                { echo "$as_me:$LINENO: result: $ac_res" >&5
4302 echo "${ECHO_T}$ac_res" >&6; }
4303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4304   cat >>confdefs.h <<_ACEOF
4305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306 _ACEOF
4307
4308 fi
4309
4310 done
4311
4312
4313 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4314 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4315 if test "${ac_cv_c_bigendian+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   # See if sys/param.h defines the BYTE_ORDER macro.
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 #include <sys/types.h>
4326 #include <sys/param.h>
4327
4328 int
4329 main ()
4330 {
4331 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4332  bogus endian macros
4333 #endif
4334
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_compile") 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; } &&
4363          { ac_try='test -s conftest.$ac_objext'
4364   { (case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   # It does; now see whether it defined to BIG_ENDIAN or not.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 #include <sys/types.h>
4381 #include <sys/param.h>
4382
4383 int
4384 main ()
4385 {
4386 #if BYTE_ORDER != BIG_ENDIAN
4387  not big endian
4388 #endif
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_compile") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest.$ac_objext'
4419   { (case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_cv_c_bigendian=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433         ac_cv_c_bigendian=no
4434 fi
4435
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441         # It does not; compile a test program.
4442 if test "$cross_compiling" = yes; then
4443   # try to guess the endianness by grepping values into an object file
4444   ac_cv_c_bigendian=unknown
4445   cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4457 int
4458 main ()
4459 {
4460  _ascii (); _ebcdic ();
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4467 case "(($ac_try" in
4468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469   *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472   (eval "$ac_compile") 2>conftest.er1
4473   ac_status=$?
4474   grep -v '^ *+' conftest.er1 >conftest.err
4475   rm -f conftest.er1
4476   cat conftest.err >&5
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); } &&
4479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480   { (case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485   (eval "$ac_try") 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; } &&
4489          { ac_try='test -s conftest.$ac_objext'
4490   { (case "(($ac_try" in
4491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492   *) ac_try_echo=$ac_try;;
4493 esac
4494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495   (eval "$ac_try") 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; }; then
4499   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4500   ac_cv_c_bigendian=yes
4501 fi
4502 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4503   if test "$ac_cv_c_bigendian" = unknown; then
4504     ac_cv_c_bigendian=no
4505   else
4506     # finding both strings is unlikely to happen, but who knows?
4507     ac_cv_c_bigendian=unknown
4508   fi
4509 fi
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514
4515 fi
4516
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 else
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 $ac_includes_default
4526 int
4527 main ()
4528 {
4529
4530   /* Are we little or big endian?  From Harbison&Steele.  */
4531   union
4532   {
4533     long int l;
4534     char c[sizeof (long int)];
4535   } u;
4536   u.l = 1;
4537   return u.c[sizeof (long int) - 1] == 1;
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest$ac_exeext
4544 if { (ac_try="$ac_link"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_link") 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4554   { (case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559   (eval "$ac_try") 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; }; then
4563   ac_cv_c_bigendian=no
4564 else
4565   echo "$as_me: program exited with status $ac_status" >&5
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 ( exit $ac_status )
4570 ac_cv_c_bigendian=yes
4571 fi
4572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573 fi
4574
4575
4576 fi
4577
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 fi
4580 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4581 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4582 case $ac_cv_c_bigendian in
4583   yes)
4584     ENDIAN=big
4585  ;;
4586   no)
4587     ENDIAN=little
4588  ;;
4589   *)
4590     { { echo "$as_me:$LINENO: error: unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4592 echo "$as_me: error: unknown endianness
4593 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4594    { (exit 1); exit 1; }; } ;;
4595 esac
4596
4597
4598 if test "$cross_compiling" = yes; then
4599   LLVM_CROSS_COMPILING=1
4600
4601
4602 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4603 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4604 if test "${ac_cv_build_exeext+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4608   ac_cv_build_exeext=.exe
4609 else
4610   ac_build_prefix=${build_alias}-
4611
4612   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_build_prefix}gcc; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   if test -n "$BUILD_CC"; then
4620   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627   for ac_exec_ext in '' $ac_executable_extensions; do
4628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634 done
4635 IFS=$as_save_IFS
4636
4637 fi
4638 fi
4639 BUILD_CC=$ac_cv_prog_BUILD_CC
4640 if test -n "$BUILD_CC"; then
4641   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4642 echo "${ECHO_T}$BUILD_CC" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649   if test -z "$BUILD_CC"; then
4650      # Extract the first word of "gcc", so it can be a program name with args.
4651 set dummy gcc; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -n "$BUILD_CC"; then
4658   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_BUILD_CC="gcc"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 BUILD_CC=$ac_cv_prog_BUILD_CC
4678 if test -n "$BUILD_CC"; then
4679   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680 echo "${ECHO_T}$BUILD_CC" >&6; }
4681 else
4682   { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684 fi
4685
4686
4687      if test -z "$BUILD_CC"; then
4688        # Extract the first word of "cc", so it can be a program name with args.
4689 set dummy cc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test -n "$BUILD_CC"; then
4696   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 else
4698   ac_prog_rejected=no
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704   for ac_exec_ext in '' $ac_executable_extensions; do
4705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707        ac_prog_rejected=yes
4708        continue
4709      fi
4710     ac_cv_prog_BUILD_CC="cc"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 if test $ac_prog_rejected = yes; then
4719   # We found a bogon in the path, so make sure we never use it.
4720   set dummy $ac_cv_prog_BUILD_CC
4721   shift
4722   if test $# != 0; then
4723     # We chose a different compiler from the bogus one.
4724     # However, it has the same basename, so the bogon will be chosen
4725     # first if we set BUILD_CC to just the basename; use the full file name.
4726     shift
4727     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4728   fi
4729 fi
4730 fi
4731 fi
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 else
4737   { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4740
4741
4742      fi
4743   fi
4744   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4745 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4746    { (exit 1); exit 1; }; }
4747   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4748   rm -f conftest*
4749   echo 'int main () { return 0; }' > conftest.$ac_ext
4750   ac_cv_build_exeext=
4751   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4752   (eval $ac_build_link) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; then
4756     for file in conftest.*; do
4757       case $file in
4758       *.c | *.o | *.obj | *.dSYM) ;;
4759       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4760       esac
4761     done
4762   else
4763     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4764 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4765    { (exit 1); exit 1; }; }
4766   fi
4767   rm -f conftest*
4768   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4769 fi
4770 fi
4771
4772 BUILD_EXEEXT=""
4773 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4774 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4775 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4776 ac_build_exeext=$BUILD_EXEEXT
4777
4778   ac_build_prefix=${build_alias}-
4779   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4780 set dummy ${ac_build_prefix}g++; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   if test -n "$BUILD_CXX"; then
4787   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4807 if test -n "$BUILD_CXX"; then
4808   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4809 echo "${ECHO_T}$BUILD_CXX" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816   if test -z "$BUILD_CXX"; then
4817      # Extract the first word of "g++", so it can be a program name with args.
4818 set dummy g++; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   if test -n "$BUILD_CXX"; then
4825   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832   for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_prog_BUILD_CXX="g++"
4835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845 if test -n "$BUILD_CXX"; then
4846   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847 echo "${ECHO_T}$BUILD_CXX" >&6; }
4848 else
4849   { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 fi
4852
4853
4854      if test -z "$BUILD_CXX"; then
4855        # Extract the first word of "c++", so it can be a program name with args.
4856 set dummy c++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -n "$BUILD_CXX"; then
4863   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 else
4865   ac_prog_rejected=no
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4874        ac_prog_rejected=yes
4875        continue
4876      fi
4877     ac_cv_prog_BUILD_CXX="c++"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 if test $ac_prog_rejected = yes; then
4886   # We found a bogon in the path, so make sure we never use it.
4887   set dummy $ac_cv_prog_BUILD_CXX
4888   shift
4889   if test $# != 0; then
4890     # We chose a different compiler from the bogus one.
4891     # However, it has the same basename, so the bogon will be chosen
4892     # first if we set BUILD_CXX to just the basename; use the full file name.
4893     shift
4894     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4895   fi
4896 fi
4897 fi
4898 fi
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 else
4904   { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4906 fi
4907
4908
4909      fi
4910   fi
4911 else
4912   LLVM_CROSS_COMPILING=0
4913
4914 fi
4915
4916 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4917   cvsbuild="yes"
4918   optimize="no"
4919   CVSBUILD=CVSBUILD=1
4920
4921 else
4922   cvsbuild="no"
4923   optimize="yes"
4924 fi
4925
4926
4927 # Check whether --enable-libcpp was given.
4928 if test "${enable_libcpp+set}" = set; then
4929   enableval=$enable_libcpp;
4930 else
4931   enableval=default
4932 fi
4933
4934 case "$enableval" in
4935   yes) ENABLE_LIBCPP=1
4936  ;;
4937   no)  ENABLE_LIBCPP=0
4938  ;;
4939   default) ENABLE_LIBCPP=0
4940 ;;
4941   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4943    { (exit 1); exit 1; }; } ;;
4944 esac
4945
4946 # Check whether --enable-optimized was given.
4947 if test "${enable_optimized+set}" = set; then
4948   enableval=$enable_optimized;
4949 else
4950   enableval=$optimize
4951 fi
4952
4953 if test ${enableval} = "no" ; then
4954   ENABLE_OPTIMIZED=
4955
4956 else
4957   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4958
4959 fi
4960
4961 # Check whether --enable-profiling was given.
4962 if test "${enable_profiling+set}" = set; then
4963   enableval=$enable_profiling;
4964 else
4965   enableval="no"
4966 fi
4967
4968 if test ${enableval} = "no" ; then
4969   ENABLE_PROFILING=
4970
4971 else
4972   ENABLE_PROFILING=ENABLE_PROFILING=1
4973
4974 fi
4975
4976 # Check whether --enable-assertions was given.
4977 if test "${enable_assertions+set}" = set; then
4978   enableval=$enable_assertions;
4979 else
4980   enableval="yes"
4981 fi
4982
4983 if test ${enableval} = "yes" ; then
4984   DISABLE_ASSERTIONS=
4985
4986 else
4987   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4988
4989 fi
4990
4991 # Check whether --enable-expensive-checks was given.
4992 if test "${enable_expensive_checks+set}" = set; then
4993   enableval=$enable_expensive_checks;
4994 else
4995   enableval="no"
4996 fi
4997
4998 if test ${enableval} = "yes" ; then
4999   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5000
5001   EXPENSIVE_CHECKS=yes
5002
5003 else
5004   ENABLE_EXPENSIVE_CHECKS=
5005
5006   EXPENSIVE_CHECKS=no
5007
5008 fi
5009
5010 # Check whether --enable-debug-runtime was given.
5011 if test "${enable_debug_runtime+set}" = set; then
5012   enableval=$enable_debug_runtime;
5013 else
5014   enableval=no
5015 fi
5016
5017 if test ${enableval} = "no" ; then
5018   DEBUG_RUNTIME=
5019
5020 else
5021   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5022
5023 fi
5024
5025 # Check whether --enable-debug-symbols was given.
5026 if test "${enable_debug_symbols+set}" = set; then
5027   enableval=$enable_debug_symbols;
5028 else
5029   enableval=no
5030 fi
5031
5032 if test ${enableval} = "no" ; then
5033   DEBUG_SYMBOLS=
5034
5035 else
5036   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5037
5038 fi
5039
5040 # Check whether --enable-jit was given.
5041 if test "${enable_jit+set}" = set; then
5042   enableval=$enable_jit;
5043 else
5044   enableval=default
5045 fi
5046
5047 if test ${enableval} = "no"
5048 then
5049   JIT=
5050
5051 else
5052   case "$llvm_cv_target_arch" in
5053     x86)         TARGET_HAS_JIT=1
5054  ;;
5055     Sparc)       TARGET_HAS_JIT=0
5056  ;;
5057     PowerPC)     TARGET_HAS_JIT=1
5058  ;;
5059     x86_64)      TARGET_HAS_JIT=1
5060  ;;
5061     ARM)         TARGET_HAS_JIT=1
5062  ;;
5063     Mips)        TARGET_HAS_JIT=1
5064  ;;
5065     XCore)       TARGET_HAS_JIT=0
5066  ;;
5067     MSP430)      TARGET_HAS_JIT=0
5068  ;;
5069     Hexagon)     TARGET_HAS_JIT=0
5070  ;;
5071     MBlaze)      TARGET_HAS_JIT=0
5072  ;;
5073     PTX)         TARGET_HAS_JIT=0
5074  ;;
5075     NVPTX)       TARGET_HAS_JIT=0
5076  ;;
5077     *)           TARGET_HAS_JIT=0
5078  ;;
5079   esac
5080 fi
5081
5082 # Check whether --enable-docs was given.
5083 if test "${enable_docs+set}" = set; then
5084   enableval=$enable_docs;
5085 else
5086   enableval=default
5087 fi
5088
5089 case "$enableval" in
5090   yes) ENABLE_DOCS=1
5091  ;;
5092   no)  ENABLE_DOCS=0
5093  ;;
5094   default) ENABLE_DOCS=1
5095  ;;
5096   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5097 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5098    { (exit 1); exit 1; }; } ;;
5099 esac
5100
5101 # Check whether --enable-doxygen was given.
5102 if test "${enable_doxygen+set}" = set; then
5103   enableval=$enable_doxygen;
5104 else
5105   enableval=default
5106 fi
5107
5108 case "$enableval" in
5109   yes) ENABLE_DOXYGEN=1
5110  ;;
5111   no)  ENABLE_DOXYGEN=0
5112  ;;
5113   default) ENABLE_DOXYGEN=0
5114  ;;
5115   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5117    { (exit 1); exit 1; }; } ;;
5118 esac
5119
5120 # Check whether --enable-threads was given.
5121 if test "${enable_threads+set}" = set; then
5122   enableval=$enable_threads;
5123 else
5124   enableval=default
5125 fi
5126
5127 case "$enableval" in
5128   yes) ENABLE_THREADS=1
5129  ;;
5130   no)  ENABLE_THREADS=0
5131  ;;
5132   default) ENABLE_THREADS=1
5133  ;;
5134   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5135 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5136    { (exit 1); exit 1; }; } ;;
5137 esac
5138
5139 cat >>confdefs.h <<_ACEOF
5140 #define ENABLE_THREADS $ENABLE_THREADS
5141 _ACEOF
5142
5143
5144 # Check whether --enable-pthreads was given.
5145 if test "${enable_pthreads+set}" = set; then
5146   enableval=$enable_pthreads;
5147 else
5148   enableval=default
5149 fi
5150
5151 case "$enableval" in
5152   yes) ENABLE_PTHREADS=1
5153  ;;
5154   no)  ENABLE_PTHREADS=0
5155  ;;
5156   default) ENABLE_PTHREADS=1
5157  ;;
5158   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5160    { (exit 1); exit 1; }; } ;;
5161 esac
5162
5163 # Check whether --enable-pic was given.
5164 if test "${enable_pic+set}" = set; then
5165   enableval=$enable_pic;
5166 else
5167   enableval=default
5168 fi
5169
5170 case "$enableval" in
5171   yes) ENABLE_PIC=1
5172  ;;
5173   no)  ENABLE_PIC=0
5174  ;;
5175   default) ENABLE_PIC=1
5176  ;;
5177   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5178 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5179    { (exit 1); exit 1; }; } ;;
5180 esac
5181
5182 cat >>confdefs.h <<_ACEOF
5183 #define ENABLE_PIC $ENABLE_PIC
5184 _ACEOF
5185
5186
5187 # Check whether --enable-shared was given.
5188 if test "${enable_shared+set}" = set; then
5189   enableval=$enable_shared;
5190 else
5191   enableval=default
5192 fi
5193
5194 case "$enableval" in
5195   yes) ENABLE_SHARED=1
5196  ;;
5197   no)  ENABLE_SHARED=0
5198  ;;
5199   default) ENABLE_SHARED=0
5200  ;;
5201   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5203    { (exit 1); exit 1; }; } ;;
5204 esac
5205
5206 # Check whether --enable-embed-stdcxx was given.
5207 if test "${enable_embed_stdcxx+set}" = set; then
5208   enableval=$enable_embed_stdcxx;
5209 else
5210   enableval=default
5211 fi
5212
5213 case "$enableval" in
5214   yes) ENABLE_EMBED_STDCXX=1
5215  ;;
5216   no)  ENABLE_EMBED_STDCXX=0
5217  ;;
5218   default) ENABLE_EMBED_STDCXX=1
5219  ;;
5220   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5222    { (exit 1); exit 1; }; } ;;
5223 esac
5224
5225 # Check whether --enable-timestamps was given.
5226 if test "${enable_timestamps+set}" = set; then
5227   enableval=$enable_timestamps;
5228 else
5229   enableval=default
5230 fi
5231
5232 case "$enableval" in
5233   yes) ENABLE_TIMESTAMPS=1
5234  ;;
5235   no)  ENABLE_TIMESTAMPS=0
5236  ;;
5237   default) ENABLE_TIMESTAMPS=1
5238  ;;
5239   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5241    { (exit 1); exit 1; }; } ;;
5242 esac
5243
5244 cat >>confdefs.h <<_ACEOF
5245 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5246 _ACEOF
5247
5248
5249 TARGETS_TO_BUILD=""
5250 # Check whether --enable-targets was given.
5251 if test "${enable_targets+set}" = set; then
5252   enableval=$enable_targets;
5253 else
5254   enableval=all
5255 fi
5256
5257 if test "$enableval" = host-only ; then
5258   enableval=host
5259 fi
5260 case "$enableval" in
5261   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX NVPTX" ;;
5262   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5263       case "$a_target" in
5264         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5265         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5266         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5267         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5268         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5269         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5270         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5271         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5272         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5273         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5274         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5275         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5276         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5277         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5278         host) case "$llvm_cv_target_arch" in
5279             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5280             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5282             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5283             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5284             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5285             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5286             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5287             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5288             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5289             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5290             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5291             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5292             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5293 echo "$as_me: error: Can not set target to build" >&2;}
5294    { (exit 1); exit 1; }; } ;;
5295           esac ;;
5296         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5297 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5298    { (exit 1); exit 1; }; } ;;
5299       esac
5300   done
5301   ;;
5302 esac
5303 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5304
5305
5306 # Determine whether we are building LLVM support for the native architecture.
5307 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5308 for a_target in $TARGETS_TO_BUILD; do
5309   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5310
5311 cat >>confdefs.h <<_ACEOF
5312 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5313 _ACEOF
5314
5315     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5316     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5317     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5318     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5319     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5320       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5321     fi
5322     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5323       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5324     fi
5325
5326 cat >>confdefs.h <<_ACEOF
5327 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5328 _ACEOF
5329
5330
5331 cat >>confdefs.h <<_ACEOF
5332 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5333 _ACEOF
5334
5335
5336 cat >>confdefs.h <<_ACEOF
5337 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5338 _ACEOF
5339
5340
5341 cat >>confdefs.h <<_ACEOF
5342 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5343 _ACEOF
5344
5345     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5346
5347 cat >>confdefs.h <<_ACEOF
5348 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5349 _ACEOF
5350
5351     fi
5352     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5353
5354 cat >>confdefs.h <<_ACEOF
5355 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5356 _ACEOF
5357
5358     fi
5359   fi
5360 done
5361
5362 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5363 # target feature def files.
5364 LLVM_ENUM_TARGETS=""
5365 LLVM_ENUM_ASM_PRINTERS=""
5366 LLVM_ENUM_ASM_PARSERS=""
5367 LLVM_ENUM_DISASSEMBLERS=""
5368 for target_to_build in $TARGETS_TO_BUILD; do
5369   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5370   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5371     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5372   fi
5373   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5374     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5375   fi
5376   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5377     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5378   fi
5379 done
5380
5381
5382
5383
5384
5385
5386 # Check whether --with-optimize-option was given.
5387 if test "${with_optimize_option+set}" = set; then
5388   withval=$with_optimize_option;
5389 else
5390   withval=default
5391 fi
5392
5393 { echo "$as_me:$LINENO: checking optimization flags" >&5
5394 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5395 case "$withval" in
5396   default)
5397     case "$llvm_cv_os_type" in
5398     FreeBSD) optimize_option=-O2 ;;
5399     MingW) optimize_option=-O2 ;;
5400     *)     optimize_option=-O3 ;;
5401     esac ;;
5402   *) optimize_option="$withval" ;;
5403 esac
5404 OPTIMIZE_OPTION=$optimize_option
5405
5406 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5407 echo "${ECHO_T}$optimize_option" >&6; }
5408
5409
5410 # Check whether --with-extra-options was given.
5411 if test "${with_extra_options+set}" = set; then
5412   withval=$with_extra_options;
5413 else
5414   withval=default
5415 fi
5416
5417 case "$withval" in
5418   default) EXTRA_OPTIONS= ;;
5419   *) EXTRA_OPTIONS=$withval ;;
5420 esac
5421 EXTRA_OPTIONS=$EXTRA_OPTIONS
5422
5423
5424
5425 # Check whether --with-extra-ld-options was given.
5426 if test "${with_extra_ld_options+set}" = set; then
5427   withval=$with_extra_ld_options;
5428 else
5429   withval=default
5430 fi
5431
5432 case "$withval" in
5433   default) EXTRA_LD_OPTIONS= ;;
5434   *) EXTRA_LD_OPTIONS=$withval ;;
5435 esac
5436 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5437
5438
5439 # Check whether --enable-bindings was given.
5440 if test "${enable_bindings+set}" = set; then
5441   enableval=$enable_bindings;
5442 else
5443   enableval=default
5444 fi
5445
5446 BINDINGS_TO_BUILD=""
5447 case "$enableval" in
5448   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5449   all ) BINDINGS_TO_BUILD="ocaml" ;;
5450   none | no) BINDINGS_TO_BUILD="" ;;
5451   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5452       case "$a_binding" in
5453         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5454         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5455 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5456    { (exit 1); exit 1; }; } ;;
5457       esac
5458   done
5459   ;;
5460 esac
5461
5462
5463 # Check whether --with-ocaml-libdir was given.
5464 if test "${with_ocaml_libdir+set}" = set; then
5465   withval=$with_ocaml_libdir;
5466 else
5467   withval=auto
5468 fi
5469
5470 case "$withval" in
5471   auto) with_ocaml_libdir="$withval" ;;
5472   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5473   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5474 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5475    { (exit 1); exit 1; }; } ;;
5476 esac
5477
5478
5479 # Check whether --with-clang-resource-dir was given.
5480 if test "${with_clang_resource_dir+set}" = set; then
5481   withval=$with_clang_resource_dir;
5482 else
5483   withval=""
5484 fi
5485
5486
5487 cat >>confdefs.h <<_ACEOF
5488 #define CLANG_RESOURCE_DIR "$withval"
5489 _ACEOF
5490
5491
5492
5493 # Check whether --with-c-include-dirs was given.
5494 if test "${with_c_include_dirs+set}" = set; then
5495   withval=$with_c_include_dirs;
5496 else
5497   withval=""
5498 fi
5499
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define C_INCLUDE_DIRS "$withval"
5503 _ACEOF
5504
5505
5506 # Clang normally uses the system c++ headers and libraries. With this option,
5507 # clang will use the ones provided by a gcc installation instead. This option should
5508 # be passed the same value that was used with --prefix when configuring gcc.
5509
5510 # Check whether --with-gcc-toolchain was given.
5511 if test "${with_gcc_toolchain+set}" = set; then
5512   withval=$with_gcc_toolchain;
5513 else
5514   withval=""
5515 fi
5516
5517
5518 cat >>confdefs.h <<_ACEOF
5519 #define GCC_INSTALL_PREFIX "$withval"
5520 _ACEOF
5521
5522
5523
5524 # Check whether --with-binutils-include was given.
5525 if test "${with_binutils_include+set}" = set; then
5526   withval=$with_binutils_include;
5527 else
5528   withval=default
5529 fi
5530
5531 case "$withval" in
5532   default) WITH_BINUTILS_INCDIR=default ;;
5533   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5534   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5535 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5536    { (exit 1); exit 1; }; } ;;
5537 esac
5538 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5539   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5540
5541   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5542      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5543      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5544 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5545    { (exit 1); exit 1; }; };
5546   fi
5547 fi
5548
5549
5550 # Check whether --with-bug-report-url was given.
5551 if test "${with_bug_report_url+set}" = set; then
5552   withval=$with_bug_report_url;
5553 else
5554   withval="http://llvm.org/bugs/"
5555 fi
5556
5557
5558 cat >>confdefs.h <<_ACEOF
5559 #define BUG_REPORT_URL "$withval"
5560 _ACEOF
5561
5562
5563 # Check whether --enable-libffi was given.
5564 if test "${enable_libffi+set}" = set; then
5565   enableval=$enable_libffi; case "$enableval" in
5566     yes) llvm_cv_enable_libffi="yes" ;;
5567     no)  llvm_cv_enable_libffi="no"  ;;
5568     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5569 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5570    { (exit 1); exit 1; }; } ;;
5571   esac
5572 else
5573   llvm_cv_enable_libffi=no
5574 fi
5575
5576
5577
5578 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5579 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5580 if test "${lt_cv_path_NM+set}" = set; then
5581   echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583   if test -n "$NM"; then
5584   # Let the user override the test.
5585   lt_cv_path_NM="$NM"
5586 else
5587   lt_nm_to_check="${ac_tool_prefix}nm"
5588   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5589     lt_nm_to_check="$lt_nm_to_check nm"
5590   fi
5591   for lt_tmp_nm in $lt_nm_to_check; do
5592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5593     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5594       IFS="$lt_save_ifs"
5595       test -z "$ac_dir" && ac_dir=.
5596       tmp_nm="$ac_dir/$lt_tmp_nm"
5597       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5598         # Check to see if the nm accepts a BSD-compat flag.
5599         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5600         #   nm: unknown option "B" ignored
5601         # Tru64's nm complains that /dev/null is an invalid object file
5602         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5603         */dev/null* | *'Invalid file or object type'*)
5604           lt_cv_path_NM="$tmp_nm -B"
5605           break
5606           ;;
5607         *)
5608           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5609           */dev/null*)
5610             lt_cv_path_NM="$tmp_nm -p"
5611             break
5612             ;;
5613           *)
5614             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5615             continue # so that we can try to find one that supports BSD flags
5616             ;;
5617           esac
5618           ;;
5619         esac
5620       fi
5621     done
5622     IFS="$lt_save_ifs"
5623   done
5624   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5625 fi
5626 fi
5627 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5628 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5629 NM="$lt_cv_path_NM"
5630
5631
5632
5633 { echo "$as_me:$LINENO: checking for GNU make" >&5
5634 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5635 if test "${llvm_cv_gnu_make_command+set}" = set; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   llvm_cv_gnu_make_command=''
5639  for a in "$MAKE" make gmake gnumake ; do
5640   if test -z "$a" ; then continue ; fi ;
5641   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5642   then
5643    llvm_cv_gnu_make_command=$a ;
5644    break;
5645   fi
5646  done
5647 fi
5648 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5649 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5650  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5651    ifGNUmake='' ;
5652  else
5653    ifGNUmake='#' ;
5654    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5655 echo "${ECHO_T}\"Not found\"" >&6; };
5656  fi
5657
5658
5659 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5661 LN_S=$as_ln_s
5662 if test "$LN_S" = "ln -s"; then
5663   { echo "$as_me:$LINENO: result: yes" >&5
5664 echo "${ECHO_T}yes" >&6; }
5665 else
5666   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5667 echo "${ECHO_T}no, using $LN_S" >&6; }
5668 fi
5669
5670 # Extract the first word of "cmp", so it can be a program name with args.
5671 set dummy cmp; ac_word=$2
5672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5674 if test "${ac_cv_path_CMP+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   case $CMP in
5678   [\\/]* | ?:[\\/]*)
5679   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5680   ;;
5681   *)
5682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685   IFS=$as_save_IFS
5686   test -z "$as_dir" && as_dir=.
5687   for ac_exec_ext in '' $ac_executable_extensions; do
5688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5689     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691     break 2
5692   fi
5693 done
5694 done
5695 IFS=$as_save_IFS
5696
5697   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5698   ;;
5699 esac
5700 fi
5701 CMP=$ac_cv_path_CMP
5702 if test -n "$CMP"; then
5703   { echo "$as_me:$LINENO: result: $CMP" >&5
5704 echo "${ECHO_T}$CMP" >&6; }
5705 else
5706   { echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6; }
5708 fi
5709
5710
5711 # Extract the first word of "cp", so it can be a program name with args.
5712 set dummy cp; ac_word=$2
5713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5715 if test "${ac_cv_path_CP+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   case $CP in
5719   [\\/]* | ?:[\\/]*)
5720   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5721   ;;
5722   *)
5723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728   for ac_exec_ext in '' $ac_executable_extensions; do
5729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5730     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735 done
5736 IFS=$as_save_IFS
5737
5738   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5739   ;;
5740 esac
5741 fi
5742 CP=$ac_cv_path_CP
5743 if test -n "$CP"; then
5744   { echo "$as_me:$LINENO: result: $CP" >&5
5745 echo "${ECHO_T}$CP" >&6; }
5746 else
5747   { echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6; }
5749 fi
5750
5751
5752 # Extract the first word of "date", so it can be a program name with args.
5753 set dummy date; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_path_DATE+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   case $DATE in
5760   [\\/]* | ?:[\\/]*)
5761   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5762   ;;
5763   *)
5764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769   for ac_exec_ext in '' $ac_executable_extensions; do
5770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5771     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776 done
5777 IFS=$as_save_IFS
5778
5779   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5780   ;;
5781 esac
5782 fi
5783 DATE=$ac_cv_path_DATE
5784 if test -n "$DATE"; then
5785   { echo "$as_me:$LINENO: result: $DATE" >&5
5786 echo "${ECHO_T}$DATE" >&6; }
5787 else
5788   { echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6; }
5790 fi
5791
5792
5793 # Extract the first word of "find", so it can be a program name with args.
5794 set dummy find; ac_word=$2
5795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5797 if test "${ac_cv_path_FIND+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   case $FIND in
5801   [\\/]* | ?:[\\/]*)
5802   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5803   ;;
5804   *)
5805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5821   ;;
5822 esac
5823 fi
5824 FIND=$ac_cv_path_FIND
5825 if test -n "$FIND"; then
5826   { echo "$as_me:$LINENO: result: $FIND" >&5
5827 echo "${ECHO_T}$FIND" >&6; }
5828 else
5829   { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5831 fi
5832
5833
5834 # Extract the first word of "grep", so it can be a program name with args.
5835 set dummy grep; ac_word=$2
5836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838 if test "${ac_cv_path_GREP+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   case $GREP in
5842   [\\/]* | ?:[\\/]*)
5843   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5844   ;;
5845   *)
5846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851   for ac_exec_ext in '' $ac_executable_extensions; do
5852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5853     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5862   ;;
5863 esac
5864 fi
5865 GREP=$ac_cv_path_GREP
5866 if test -n "$GREP"; then
5867   { echo "$as_me:$LINENO: result: $GREP" >&5
5868 echo "${ECHO_T}$GREP" >&6; }
5869 else
5870   { echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6; }
5872 fi
5873
5874
5875 # Extract the first word of "mkdir", so it can be a program name with args.
5876 set dummy mkdir; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_path_MKDIR+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   case $MKDIR in
5883   [\\/]* | ?:[\\/]*)
5884   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5885   ;;
5886   *)
5887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892   for ac_exec_ext in '' $ac_executable_extensions; do
5893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5894     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5903   ;;
5904 esac
5905 fi
5906 MKDIR=$ac_cv_path_MKDIR
5907 if test -n "$MKDIR"; then
5908   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5909 echo "${ECHO_T}$MKDIR" >&6; }
5910 else
5911   { echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6; }
5913 fi
5914
5915
5916 # Extract the first word of "mv", so it can be a program name with args.
5917 set dummy mv; ac_word=$2
5918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920 if test "${ac_cv_path_MV+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   case $MV in
5924   [\\/]* | ?:[\\/]*)
5925   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5926   ;;
5927   *)
5928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5944   ;;
5945 esac
5946 fi
5947 MV=$ac_cv_path_MV
5948 if test -n "$MV"; then
5949   { echo "$as_me:$LINENO: result: $MV" >&5
5950 echo "${ECHO_T}$MV" >&6; }
5951 else
5952   { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5954 fi
5955
5956
5957 if test -n "$ac_tool_prefix"; then
5958   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_prog_RANLIB+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   if test -n "$RANLIB"; then
5966   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 RANLIB=$ac_cv_prog_RANLIB
5986 if test -n "$RANLIB"; then
5987   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5988 echo "${ECHO_T}$RANLIB" >&6; }
5989 else
5990   { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5992 fi
5993
5994
5995 fi
5996 if test -z "$ac_cv_prog_RANLIB"; then
5997   ac_ct_RANLIB=$RANLIB
5998   # Extract the first word of "ranlib", so it can be a program name with args.
5999 set dummy ranlib; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$ac_ct_RANLIB"; then
6006   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_prog_ac_ct_RANLIB="ranlib"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6026 if test -n "$ac_ct_RANLIB"; then
6027   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6028 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034   if test "x$ac_ct_RANLIB" = x; then
6035     RANLIB=":"
6036   else
6037     case $cross_compiling:$ac_tool_warned in
6038 yes:)
6039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6040 whose name does not start with the host triplet.  If you think this
6041 configuration is useful to you, please write to autoconf@gnu.org." >&5
6042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6043 whose name does not start with the host triplet.  If you think this
6044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6045 ac_tool_warned=yes ;;
6046 esac
6047     RANLIB=$ac_ct_RANLIB
6048   fi
6049 else
6050   RANLIB="$ac_cv_prog_RANLIB"
6051 fi
6052
6053 if test -n "$ac_tool_prefix"; then
6054   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}ar; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_AR+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   if test -n "$AR"; then
6062   ac_cv_prog_AR="$AR" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_prog_AR="${ac_tool_prefix}ar"
6072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 AR=$ac_cv_prog_AR
6082 if test -n "$AR"; then
6083   { echo "$as_me:$LINENO: result: $AR" >&5
6084 echo "${ECHO_T}$AR" >&6; }
6085 else
6086   { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6088 fi
6089
6090
6091 fi
6092 if test -z "$ac_cv_prog_AR"; then
6093   ac_ct_AR=$AR
6094   # Extract the first word of "ar", so it can be a program name with args.
6095 set dummy ar; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   if test -n "$ac_ct_AR"; then
6102   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109   for ac_exec_ext in '' $ac_executable_extensions; do
6110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111     ac_cv_prog_ac_ct_AR="ar"
6112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6122 if test -n "$ac_ct_AR"; then
6123   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6124 echo "${ECHO_T}$ac_ct_AR" >&6; }
6125 else
6126   { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130   if test "x$ac_ct_AR" = x; then
6131     AR="false"
6132   else
6133     case $cross_compiling:$ac_tool_warned in
6134 yes:)
6135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet.  If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&5
6138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139 whose name does not start with the host triplet.  If you think this
6140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141 ac_tool_warned=yes ;;
6142 esac
6143     AR=$ac_ct_AR
6144   fi
6145 else
6146   AR="$ac_cv_prog_AR"
6147 fi
6148
6149 # Extract the first word of "rm", so it can be a program name with args.
6150 set dummy rm; ac_word=$2
6151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153 if test "${ac_cv_path_RM+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   case $RM in
6157   [\\/]* | ?:[\\/]*)
6158   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6159   ;;
6160   *)
6161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166   for ac_exec_ext in '' $ac_executable_extensions; do
6167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6168     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6177   ;;
6178 esac
6179 fi
6180 RM=$ac_cv_path_RM
6181 if test -n "$RM"; then
6182   { echo "$as_me:$LINENO: result: $RM" >&5
6183 echo "${ECHO_T}$RM" >&6; }
6184 else
6185   { echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6; }
6187 fi
6188
6189
6190 # Extract the first word of "sed", so it can be a program name with args.
6191 set dummy sed; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_path_SED+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   case $SED in
6198   [\\/]* | ?:[\\/]*)
6199   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6200   ;;
6201   *)
6202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6218   ;;
6219 esac
6220 fi
6221 SED=$ac_cv_path_SED
6222 if test -n "$SED"; then
6223   { echo "$as_me:$LINENO: result: $SED" >&5
6224 echo "${ECHO_T}$SED" >&6; }
6225 else
6226   { echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6; }
6228 fi
6229
6230
6231 # Extract the first word of "tar", so it can be a program name with args.
6232 set dummy tar; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_path_TAR+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   case $TAR in
6239   [\\/]* | ?:[\\/]*)
6240   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6241   ;;
6242   *)
6243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248   for ac_exec_ext in '' $ac_executable_extensions; do
6249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6259   ;;
6260 esac
6261 fi
6262 TAR=$ac_cv_path_TAR
6263 if test -n "$TAR"; then
6264   { echo "$as_me:$LINENO: result: $TAR" >&5
6265 echo "${ECHO_T}$TAR" >&6; }
6266 else
6267   { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6269 fi
6270
6271
6272 # Extract the first word of "pwd", so it can be a program name with args.
6273 set dummy pwd; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_path_BINPWD+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   case $BINPWD in
6280   [\\/]* | ?:[\\/]*)
6281   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6282   ;;
6283   *)
6284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289   for ac_exec_ext in '' $ac_executable_extensions; do
6290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6291     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296 done
6297 IFS=$as_save_IFS
6298
6299   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6300   ;;
6301 esac
6302 fi
6303 BINPWD=$ac_cv_path_BINPWD
6304 if test -n "$BINPWD"; then
6305   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6306 echo "${ECHO_T}$BINPWD" >&6; }
6307 else
6308   { echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6; }
6310 fi
6311
6312
6313
6314 # Extract the first word of "Graphviz", so it can be a program name with args.
6315 set dummy Graphviz; ac_word=$2
6316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6318 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   case $GRAPHVIZ in
6322   [\\/]* | ?:[\\/]*)
6323   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6324   ;;
6325   *)
6326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329   IFS=$as_save_IFS
6330   test -z "$as_dir" && as_dir=.
6331   for ac_exec_ext in '' $ac_executable_extensions; do
6332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6333     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335     break 2
6336   fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6342   ;;
6343 esac
6344 fi
6345 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6346 if test -n "$GRAPHVIZ"; then
6347   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6348 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6349 else
6350   { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6352 fi
6353
6354
6355 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6356
6357 cat >>confdefs.h <<\_ACEOF
6358 #define HAVE_GRAPHVIZ 1
6359 _ACEOF
6360
6361     if test "$llvm_cv_os_type" = "MingW" ; then
6362     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6363   fi
6364
6365 cat >>confdefs.h <<_ACEOF
6366 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6367 _ACEOF
6368
6369 fi
6370 # Extract the first word of "dot", so it can be a program name with args.
6371 set dummy dot; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_path_DOT+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   case $DOT in
6378   [\\/]* | ?:[\\/]*)
6379   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6380   ;;
6381   *)
6382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387   for ac_exec_ext in '' $ac_executable_extensions; do
6388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6389     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6398   ;;
6399 esac
6400 fi
6401 DOT=$ac_cv_path_DOT
6402 if test -n "$DOT"; then
6403   { echo "$as_me:$LINENO: result: $DOT" >&5
6404 echo "${ECHO_T}$DOT" >&6; }
6405 else
6406   { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6408 fi
6409
6410
6411 if test "$DOT" != "echo dot" ; then
6412
6413 cat >>confdefs.h <<\_ACEOF
6414 #define HAVE_DOT 1
6415 _ACEOF
6416
6417     if test "$llvm_cv_os_type" = "MingW" ; then
6418     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6419   fi
6420
6421 cat >>confdefs.h <<_ACEOF
6422 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6423 _ACEOF
6424
6425 fi
6426 # Extract the first word of "fdp", so it can be a program name with args.
6427 set dummy fdp; ac_word=$2
6428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430 if test "${ac_cv_path_FDP+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   case $FDP in
6434   [\\/]* | ?:[\\/]*)
6435   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6436   ;;
6437   *)
6438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443   for ac_exec_ext in '' $ac_executable_extensions; do
6444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6445     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6454   ;;
6455 esac
6456 fi
6457 FDP=$ac_cv_path_FDP
6458 if test -n "$FDP"; then
6459   { echo "$as_me:$LINENO: result: $FDP" >&5
6460 echo "${ECHO_T}$FDP" >&6; }
6461 else
6462   { echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6; }
6464 fi
6465
6466
6467 if test "$FDP" != "echo fdp" ; then
6468
6469 cat >>confdefs.h <<\_ACEOF
6470 #define HAVE_FDP 1
6471 _ACEOF
6472
6473     if test "$llvm_cv_os_type" = "MingW" ; then
6474     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6475   fi
6476
6477 cat >>confdefs.h <<_ACEOF
6478 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6479 _ACEOF
6480
6481 fi
6482 # Extract the first word of "neato", so it can be a program name with args.
6483 set dummy neato; ac_word=$2
6484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486 if test "${ac_cv_path_NEATO+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   case $NEATO in
6490   [\\/]* | ?:[\\/]*)
6491   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6492   ;;
6493   *)
6494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499   for ac_exec_ext in '' $ac_executable_extensions; do
6500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6510   ;;
6511 esac
6512 fi
6513 NEATO=$ac_cv_path_NEATO
6514 if test -n "$NEATO"; then
6515   { echo "$as_me:$LINENO: result: $NEATO" >&5
6516 echo "${ECHO_T}$NEATO" >&6; }
6517 else
6518   { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6520 fi
6521
6522
6523 if test "$NEATO" != "echo neato" ; then
6524
6525 cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_NEATO 1
6527 _ACEOF
6528
6529     if test "$llvm_cv_os_type" = "MingW" ; then
6530     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6531   fi
6532
6533 cat >>confdefs.h <<_ACEOF
6534 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6535 _ACEOF
6536
6537 fi
6538 # Extract the first word of "twopi", so it can be a program name with args.
6539 set dummy twopi; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_TWOPI+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   case $TWOPI in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6566   ;;
6567 esac
6568 fi
6569 TWOPI=$ac_cv_path_TWOPI
6570 if test -n "$TWOPI"; then
6571   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6572 echo "${ECHO_T}$TWOPI" >&6; }
6573 else
6574   { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6576 fi
6577
6578
6579 if test "$TWOPI" != "echo twopi" ; then
6580
6581 cat >>confdefs.h <<\_ACEOF
6582 #define HAVE_TWOPI 1
6583 _ACEOF
6584
6585     if test "$llvm_cv_os_type" = "MingW" ; then
6586     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6587   fi
6588
6589 cat >>confdefs.h <<_ACEOF
6590 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6591 _ACEOF
6592
6593 fi
6594 # Extract the first word of "circo", so it can be a program name with args.
6595 set dummy circo; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_path_CIRCO+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   case $CIRCO in
6602   [\\/]* | ?:[\\/]*)
6603   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6604   ;;
6605   *)
6606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611   for ac_exec_ext in '' $ac_executable_extensions; do
6612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6622   ;;
6623 esac
6624 fi
6625 CIRCO=$ac_cv_path_CIRCO
6626 if test -n "$CIRCO"; then
6627   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6628 echo "${ECHO_T}$CIRCO" >&6; }
6629 else
6630   { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632 fi
6633
6634
6635 if test "$CIRCO" != "echo circo" ; then
6636
6637 cat >>confdefs.h <<\_ACEOF
6638 #define HAVE_CIRCO 1
6639 _ACEOF
6640
6641     if test "$llvm_cv_os_type" = "MingW" ; then
6642     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6643   fi
6644
6645 cat >>confdefs.h <<_ACEOF
6646 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6647 _ACEOF
6648
6649 fi
6650 for ac_prog in gv gsview32
6651 do
6652   # Extract the first word of "$ac_prog", so it can be a program name with args.
6653 set dummy $ac_prog; ac_word=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_path_GV+set}" = set; then
6657   echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659   case $GV in
6660   [\\/]* | ?:[\\/]*)
6661   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6662   ;;
6663   *)
6664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669   for ac_exec_ext in '' $ac_executable_extensions; do
6670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676 done
6677 IFS=$as_save_IFS
6678
6679   ;;
6680 esac
6681 fi
6682 GV=$ac_cv_path_GV
6683 if test -n "$GV"; then
6684   { echo "$as_me:$LINENO: result: $GV" >&5
6685 echo "${ECHO_T}$GV" >&6; }
6686 else
6687   { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6689 fi
6690
6691
6692   test -n "$GV" && break
6693 done
6694 test -n "$GV" || GV="echo gv"
6695
6696 if test "$GV" != "echo gv" ; then
6697
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_GV 1
6700 _ACEOF
6701
6702     if test "$llvm_cv_os_type" = "MingW" ; then
6703     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6704   fi
6705
6706 cat >>confdefs.h <<_ACEOF
6707 #define LLVM_PATH_GV "$GV${EXEEXT}"
6708 _ACEOF
6709
6710 fi
6711 # Extract the first word of "dotty", so it can be a program name with args.
6712 set dummy dotty; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_path_DOTTY+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   case $DOTTY in
6719   [\\/]* | ?:[\\/]*)
6720   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6721   ;;
6722   *)
6723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6739   ;;
6740 esac
6741 fi
6742 DOTTY=$ac_cv_path_DOTTY
6743 if test -n "$DOTTY"; then
6744   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6745 echo "${ECHO_T}$DOTTY" >&6; }
6746 else
6747   { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6749 fi
6750
6751
6752 if test "$DOTTY" != "echo dotty" ; then
6753
6754 cat >>confdefs.h <<\_ACEOF
6755 #define HAVE_DOTTY 1
6756 _ACEOF
6757
6758     if test "$llvm_cv_os_type" = "MingW" ; then
6759     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6760   fi
6761
6762 cat >>confdefs.h <<_ACEOF
6763 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6764 _ACEOF
6765
6766 fi
6767 # Extract the first word of "xdot.py", so it can be a program name with args.
6768 set dummy xdot.py; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6772   echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774   case $XDOT_PY in
6775   [\\/]* | ?:[\\/]*)
6776   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6777   ;;
6778   *)
6779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6795   ;;
6796 esac
6797 fi
6798 XDOT_PY=$ac_cv_path_XDOT_PY
6799 if test -n "$XDOT_PY"; then
6800   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6801 echo "${ECHO_T}$XDOT_PY" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6805 fi
6806
6807
6808 if test "$XDOT_PY" != "echo xdot.py" ; then
6809
6810 cat >>confdefs.h <<\_ACEOF
6811 #define HAVE_XDOT_PY 1
6812 _ACEOF
6813
6814     if test "$llvm_cv_os_type" = "MingW" ; then
6815     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6816   fi
6817
6818 cat >>confdefs.h <<_ACEOF
6819 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6820 _ACEOF
6821
6822 fi
6823
6824 # Find a good install program.  We prefer a C program (faster),
6825 # so one script is as good as another.  But avoid the broken or
6826 # incompatible versions:
6827 # SysV /etc/install, /usr/sbin/install
6828 # SunOS /usr/etc/install
6829 # IRIX /sbin/install
6830 # AIX /bin/install
6831 # AmigaOS /C/install, which installs bootblocks on floppy discs
6832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6835 # OS/2's system install, which has a completely different semantic
6836 # ./install, which can be erroneously created by make from ./install.sh.
6837 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6838 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6839 if test -z "$INSTALL"; then
6840 if test "${ac_cv_path_install+set}" = set; then
6841   echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   # Account for people who put trailing slashes in PATH elements.
6849 case $as_dir/ in
6850   ./ | .// | /cC/* | \
6851   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6852   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6853   /usr/ucb/* ) ;;
6854   *)
6855     # OSF1 and SCO ODT 3.0 have their own names for install.
6856     # Don't use installbsd from OSF since it installs stuff as root
6857     # by default.
6858     for ac_prog in ginstall scoinst install; do
6859       for ac_exec_ext in '' $ac_executable_extensions; do
6860         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6861           if test $ac_prog = install &&
6862             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6863             # AIX install.  It has an incompatible calling convention.
6864             :
6865           elif test $ac_prog = install &&
6866             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6867             # program-specific install script used by HP pwplus--don't use.
6868             :
6869           else
6870             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6871             break 3
6872           fi
6873         fi
6874       done
6875     done
6876     ;;
6877 esac
6878 done
6879 IFS=$as_save_IFS
6880
6881
6882 fi
6883   if test "${ac_cv_path_install+set}" = set; then
6884     INSTALL=$ac_cv_path_install
6885   else
6886     # As a last resort, use the slow shell script.  Don't cache a
6887     # value for INSTALL within a source directory, because that will
6888     # break other packages using the cache if that directory is
6889     # removed, or if the value is a relative name.
6890     INSTALL=$ac_install_sh
6891   fi
6892 fi
6893 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6894 echo "${ECHO_T}$INSTALL" >&6; }
6895
6896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6897 # It thinks the first close brace ends the variable substitution.
6898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6899
6900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6901
6902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6903
6904 case "$INSTALL" in
6905  [\\/$]* | ?:[\\/]* ) ;;
6906  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6907 esac
6908
6909 # Extract the first word of "bzip2", so it can be a program name with args.
6910 set dummy bzip2; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_BZIP2+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   case $BZIP2 in
6917   [\\/]* | ?:[\\/]*)
6918   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6919   ;;
6920   *)
6921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926   for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936   ;;
6937 esac
6938 fi
6939 BZIP2=$ac_cv_path_BZIP2
6940 if test -n "$BZIP2"; then
6941   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6942 echo "${ECHO_T}$BZIP2" >&6; }
6943 else
6944   { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6946 fi
6947
6948
6949 # Extract the first word of "cat", so it can be a program name with args.
6950 set dummy cat; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_CAT+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   case $CAT in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976   ;;
6977 esac
6978 fi
6979 CAT=$ac_cv_path_CAT
6980 if test -n "$CAT"; then
6981   { echo "$as_me:$LINENO: result: $CAT" >&5
6982 echo "${ECHO_T}$CAT" >&6; }
6983 else
6984   { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6986 fi
6987
6988
6989 # Extract the first word of "doxygen", so it can be a program name with args.
6990 set dummy doxygen; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   case $DOXYGEN in
6997   [\\/]* | ?:[\\/]*)
6998   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6999   ;;
7000   *)
7001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006   for ac_exec_ext in '' $ac_executable_extensions; do
7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016   ;;
7017 esac
7018 fi
7019 DOXYGEN=$ac_cv_path_DOXYGEN
7020 if test -n "$DOXYGEN"; then
7021   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7022 echo "${ECHO_T}$DOXYGEN" >&6; }
7023 else
7024   { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028
7029 # Extract the first word of "groff", so it can be a program name with args.
7030 set dummy groff; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_path_GROFF+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   case $GROFF in
7037   [\\/]* | ?:[\\/]*)
7038   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7039   ;;
7040   *)
7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056   ;;
7057 esac
7058 fi
7059 GROFF=$ac_cv_path_GROFF
7060 if test -n "$GROFF"; then
7061   { echo "$as_me:$LINENO: result: $GROFF" >&5
7062 echo "${ECHO_T}$GROFF" >&6; }
7063 else
7064   { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7066 fi
7067
7068
7069 # Extract the first word of "gzip", so it can be a program name with args.
7070 set dummy gzip; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   case $GZIPBIN in
7077   [\\/]* | ?:[\\/]*)
7078   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7079   ;;
7080   *)
7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096   ;;
7097 esac
7098 fi
7099 GZIPBIN=$ac_cv_path_GZIPBIN
7100 if test -n "$GZIPBIN"; then
7101   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7102 echo "${ECHO_T}$GZIPBIN" >&6; }
7103 else
7104   { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7106 fi
7107
7108
7109 # Extract the first word of "pod2html", so it can be a program name with args.
7110 set dummy pod2html; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_path_POD2HTML+set}" = set; then
7114   echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116   case $POD2HTML in
7117   [\\/]* | ?:[\\/]*)
7118   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7119   ;;
7120   *)
7121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124   IFS=$as_save_IFS
7125   test -z "$as_dir" && as_dir=.
7126   for ac_exec_ext in '' $ac_executable_extensions; do
7127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130     break 2
7131   fi
7132 done
7133 done
7134 IFS=$as_save_IFS
7135
7136   ;;
7137 esac
7138 fi
7139 POD2HTML=$ac_cv_path_POD2HTML
7140 if test -n "$POD2HTML"; then
7141   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7142 echo "${ECHO_T}$POD2HTML" >&6; }
7143 else
7144   { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7146 fi
7147
7148
7149 # Extract the first word of "pod2man", so it can be a program name with args.
7150 set dummy pod2man; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_POD2MAN+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   case $POD2MAN in
7157   [\\/]* | ?:[\\/]*)
7158   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7159   ;;
7160   *)
7161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166   for ac_exec_ext in '' $ac_executable_extensions; do
7167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170     break 2
7171   fi
7172 done
7173 done
7174 IFS=$as_save_IFS
7175
7176   ;;
7177 esac
7178 fi
7179 POD2MAN=$ac_cv_path_POD2MAN
7180 if test -n "$POD2MAN"; then
7181   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7182 echo "${ECHO_T}$POD2MAN" >&6; }
7183 else
7184   { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7186 fi
7187
7188
7189 # Extract the first word of "pdfroff", so it can be a program name with args.
7190 set dummy pdfroff; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_PDFROFF+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $PDFROFF in
7197   [\\/]* | ?:[\\/]*)
7198   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7199   ;;
7200   *)
7201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204   IFS=$as_save_IFS
7205   test -z "$as_dir" && as_dir=.
7206   for ac_exec_ext in '' $ac_executable_extensions; do
7207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210     break 2
7211   fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216   ;;
7217 esac
7218 fi
7219 PDFROFF=$ac_cv_path_PDFROFF
7220 if test -n "$PDFROFF"; then
7221   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7222 echo "${ECHO_T}$PDFROFF" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229 # Extract the first word of "runtest", so it can be a program name with args.
7230 set dummy runtest; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_path_RUNTEST+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   case $RUNTEST in
7237   [\\/]* | ?:[\\/]*)
7238   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7239   ;;
7240   *)
7241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246   for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256   ;;
7257 esac
7258 fi
7259 RUNTEST=$ac_cv_path_RUNTEST
7260 if test -n "$RUNTEST"; then
7261   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7262 echo "${ECHO_T}$RUNTEST" >&6; }
7263 else
7264   { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7266 fi
7267
7268
7269
7270 no_itcl=true
7271 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7272 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7273
7274 # Check whether --with-tclinclude was given.
7275 if test "${with_tclinclude+set}" = set; then
7276   withval=$with_tclinclude; with_tclinclude=${withval}
7277 else
7278   with_tclinclude=''
7279 fi
7280
7281 if test "${ac_cv_path_tclsh+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284
7285 if test x"${with_tclinclude}" != x ; then
7286   if test -f ${with_tclinclude}/tclsh ; then
7287     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7288   elif test -f ${with_tclinclude}/src/tclsh ; then
7289     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7290   else
7291     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7292 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7293    { (exit 1); exit 1; }; }
7294   fi
7295 fi
7296 fi
7297
7298
7299 if test x"${ac_cv_path_tclsh}" = x ; then
7300   { echo "$as_me:$LINENO: result: none" >&5
7301 echo "${ECHO_T}none" >&6; }
7302   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
7303 do
7304   # Extract the first word of "$ac_prog", so it can be a program name with args.
7305 set dummy $ac_prog; ac_word=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_TCLSH+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   case $TCLSH in
7312   [\\/]* | ?:[\\/]*)
7313   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7314   ;;
7315   *)
7316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321   for ac_exec_ext in '' $ac_executable_extensions; do
7322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328 done
7329 IFS=$as_save_IFS
7330
7331   ;;
7332 esac
7333 fi
7334 TCLSH=$ac_cv_path_TCLSH
7335 if test -n "$TCLSH"; then
7336   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7337 echo "${ECHO_T}$TCLSH" >&6; }
7338 else
7339   { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7341 fi
7342
7343
7344   test -n "$TCLSH" && break
7345 done
7346
7347   if test x"${TCLSH}" = x ; then
7348     ac_cv_path_tclsh='';
7349   else
7350     ac_cv_path_tclsh="${TCLSH}";
7351   fi
7352 else
7353   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7354 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7355   TCLSH="${ac_cv_path_tclsh}"
7356
7357 fi
7358
7359 # Extract the first word of "zip", so it can be a program name with args.
7360 set dummy zip; ac_word=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_ZIP+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366   case $ZIP in
7367   [\\/]* | ?:[\\/]*)
7368   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7369   ;;
7370   *)
7371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376   for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386   ;;
7387 esac
7388 fi
7389 ZIP=$ac_cv_path_ZIP
7390 if test -n "$ZIP"; then
7391   { echo "$as_me:$LINENO: result: $ZIP" >&5
7392 echo "${ECHO_T}$ZIP" >&6; }
7393 else
7394   { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7396 fi
7397
7398
7399 for ac_prog in ocamlc
7400 do
7401   # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_OCAMLC+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   case $OCAMLC in
7409   [\\/]* | ?:[\\/]*)
7410   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7411   ;;
7412   *)
7413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418   for ac_exec_ext in '' $ac_executable_extensions; do
7419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428   ;;
7429 esac
7430 fi
7431 OCAMLC=$ac_cv_path_OCAMLC
7432 if test -n "$OCAMLC"; then
7433   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7434 echo "${ECHO_T}$OCAMLC" >&6; }
7435 else
7436   { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7438 fi
7439
7440
7441   test -n "$OCAMLC" && break
7442 done
7443
7444 for ac_prog in ocamlopt
7445 do
7446   # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   case $OCAMLOPT in
7454   [\\/]* | ?:[\\/]*)
7455   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7456   ;;
7457   *)
7458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473   ;;
7474 esac
7475 fi
7476 OCAMLOPT=$ac_cv_path_OCAMLOPT
7477 if test -n "$OCAMLOPT"; then
7478   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7479 echo "${ECHO_T}$OCAMLOPT" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485
7486   test -n "$OCAMLOPT" && break
7487 done
7488
7489 for ac_prog in ocamldep
7490 do
7491   # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   case $OCAMLDEP in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518   ;;
7519 esac
7520 fi
7521 OCAMLDEP=$ac_cv_path_OCAMLDEP
7522 if test -n "$OCAMLDEP"; then
7523   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7524 echo "${ECHO_T}$OCAMLDEP" >&6; }
7525 else
7526   { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7528 fi
7529
7530
7531   test -n "$OCAMLDEP" && break
7532 done
7533
7534 for ac_prog in ocamldoc
7535 do
7536   # Extract the first word of "$ac_prog", so it can be a program name with args.
7537 set dummy $ac_prog; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   case $OCAMLDOC in
7544   [\\/]* | ?:[\\/]*)
7545   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7546   ;;
7547   *)
7548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553   for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563   ;;
7564 esac
7565 fi
7566 OCAMLDOC=$ac_cv_path_OCAMLDOC
7567 if test -n "$OCAMLDOC"; then
7568   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7569 echo "${ECHO_T}$OCAMLDOC" >&6; }
7570 else
7571   { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7573 fi
7574
7575
7576   test -n "$OCAMLDOC" && break
7577 done
7578
7579 for ac_prog in gas as
7580 do
7581   # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_GAS+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   case $GAS in
7589   [\\/]* | ?:[\\/]*)
7590   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7591   ;;
7592   *)
7593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608   ;;
7609 esac
7610 fi
7611 GAS=$ac_cv_path_GAS
7612 if test -n "$GAS"; then
7613   { echo "$as_me:$LINENO: result: $GAS" >&5
7614 echo "${ECHO_T}$GAS" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620
7621   test -n "$GAS" && break
7622 done
7623
7624
7625 { echo "$as_me:$LINENO: checking for linker version" >&5
7626 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7627 if test "${llvm_cv_link_version+set}" = set; then
7628   echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630
7631    version_string="$(ld -v 2>&1 | head -1)"
7632
7633    # Check for ld64.
7634    if (echo "$version_string" | grep -q "ld64"); then
7635      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7636    else
7637      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7638    fi
7639
7640 fi
7641 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7642 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7643
7644 cat >>confdefs.h <<_ACEOF
7645 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7646 _ACEOF
7647
7648
7649
7650 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7651 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7652 if test "${llvm_cv_link_use_r+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655    ac_ext=c
7656 ac_cpp='$CPP $CPPFLAGS'
7657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
7661   oldcflags="$CFLAGS"
7662   CFLAGS="$CFLAGS -Wl,-R."
7663   cat >conftest.$ac_ext <<_ACEOF
7664 /* confdefs.h.  */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h.  */
7669
7670 int
7671 main ()
7672 {
7673
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7680 case "(($ac_try" in
7681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682   *) ac_try_echo=$ac_try;;
7683 esac
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685   (eval "$ac_link") 2>conftest.er1
7686   ac_status=$?
7687   grep -v '^ *+' conftest.er1 >conftest.err
7688   rm -f conftest.er1
7689   cat conftest.err >&5
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); } &&
7692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7693   { (case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698   (eval "$ac_try") 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; } &&
7702          { ac_try='test -s conftest$ac_exeext'
7703   { (case "(($ac_try" in
7704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705   *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708   (eval "$ac_try") 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; }; then
7712   llvm_cv_link_use_r=yes
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717         llvm_cv_link_use_r=no
7718 fi
7719
7720 rm -f core conftest.err conftest.$ac_objext \
7721       conftest$ac_exeext conftest.$ac_ext
7722   CFLAGS="$oldcflags"
7723   ac_ext=c
7724 ac_cpp='$CPP $CPPFLAGS'
7725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728
7729
7730 fi
7731 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7732 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7733 if test "$llvm_cv_link_use_r" = yes ; then
7734
7735 cat >>confdefs.h <<\_ACEOF
7736 #define HAVE_LINK_R 1
7737 _ACEOF
7738
7739   fi
7740
7741
7742 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7743 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7744 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747    ac_ext=c
7748 ac_cpp='$CPP $CPPFLAGS'
7749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753   oldcflags="$CFLAGS"
7754   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7755   cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7772 case "(($ac_try" in
7773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774   *) ac_try_echo=$ac_try;;
7775 esac
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777   (eval "$ac_link") 2>conftest.er1
7778   ac_status=$?
7779   grep -v '^ *+' conftest.er1 >conftest.err
7780   rm -f conftest.er1
7781   cat conftest.err >&5
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } &&
7784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785   { (case "(($ac_try" in
7786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787   *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790   (eval "$ac_try") 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; } &&
7794          { ac_try='test -s conftest$ac_exeext'
7795   { (case "(($ac_try" in
7796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797   *) ac_try_echo=$ac_try;;
7798 esac
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800   (eval "$ac_try") 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; }; then
7804   llvm_cv_link_use_export_dynamic=yes
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809         llvm_cv_link_use_export_dynamic=no
7810 fi
7811
7812 rm -f core conftest.err conftest.$ac_objext \
7813       conftest$ac_exeext conftest.$ac_ext
7814   CFLAGS="$oldcflags"
7815   ac_ext=c
7816 ac_cpp='$CPP $CPPFLAGS'
7817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822 fi
7823 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7824 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7825 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7826
7827 cat >>confdefs.h <<\_ACEOF
7828 #define HAVE_LINK_EXPORT_DYNAMIC 1
7829 _ACEOF
7830
7831   fi
7832
7833
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_version_script+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839    ac_ext=c
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845   oldcflags="$CFLAGS"
7846
7847   # The following code is from the autoconf manual,
7848   # "11.13: Limitations of Usual Tools".
7849   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7850   # Use mktemp if possible; otherwise fall back on mkdir,
7851   # with $RANDOM to make collisions less likely.
7852   : ${TMPDIR=/tmp}
7853   {
7854     tmp=`
7855       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7856     ` &&
7857     test -n "$tmp" && test -d "$tmp"
7858   } || {
7859     tmp=$TMPDIR/foo$$-$RANDOM
7860     (umask 077 && mkdir "$tmp")
7861   } || exit $?
7862
7863   echo "{" > "$tmp/export.map"
7864   echo "  global: main;" >> "$tmp/export.map"
7865   echo "  local: *;" >> "$tmp/export.map"
7866   echo "};" >> "$tmp/export.map"
7867
7868   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7869   cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h.  */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h.  */
7875
7876 int
7877 main ()
7878 {
7879
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7886 case "(($ac_try" in
7887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888   *) ac_try_echo=$ac_try;;
7889 esac
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891   (eval "$ac_link") 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } &&
7898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899   { (case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904   (eval "$ac_try") 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; } &&
7908          { ac_try='test -s conftest$ac_exeext'
7909   { (case "(($ac_try" in
7910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911   *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914   (eval "$ac_try") 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   llvm_cv_link_use_version_script=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923         llvm_cv_link_use_version_script=no
7924 fi
7925
7926 rm -f core conftest.err conftest.$ac_objext \
7927       conftest$ac_exeext conftest.$ac_ext
7928   rm "$tmp/export.map"
7929   rmdir "$tmp"
7930   CFLAGS="$oldcflags"
7931   ac_ext=c
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937
7938 fi
7939 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7940 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7941 if test "$llvm_cv_link_use_version_script" = yes ; then
7942   HAVE_LINK_VERSION_SCRIPT=1
7943
7944   fi
7945
7946
7947
7948
7949 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7950 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7951 if test "${ac_cv_c_const+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 int
7962 main ()
7963 {
7964 /* FIXME: Include the comments suggested by Paul. */
7965 #ifndef __cplusplus
7966   /* Ultrix mips cc rejects this.  */
7967   typedef int charset[2];
7968   const charset x;
7969   /* SunOS 4.1.1 cc rejects this.  */
7970   char const *const *ccp;
7971   char **p;
7972   /* NEC SVR4.0.2 mips cc rejects this.  */
7973   struct point {int x, y;};
7974   static struct point const zero = {0,0};
7975   /* AIX XL C 1.02.0.0 rejects this.
7976      It does not let you subtract one const X* pointer from another in
7977      an arm of an if-expression whose if-part is not a constant
7978      expression */
7979   const char *g = "string";
7980   ccp = &g + (g ? g-g : 0);
7981   /* HPUX 7.0 cc rejects these. */
7982   ++ccp;
7983   p = (char**) ccp;
7984   ccp = (char const *const *) p;
7985   { /* SCO 3.2v4 cc rejects this.  */
7986     char *t;
7987     char const *s = 0 ? (char *) 0 : (char const *) 0;
7988
7989     *t++ = 0;
7990     if (s) return 0;
7991   }
7992   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7993     int x[] = {25, 17};
7994     const int *foo = &x[0];
7995     ++foo;
7996   }
7997   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998     typedef const int *iptr;
7999     iptr p = 0;
8000     ++p;
8001   }
8002   { /* AIX XL C 1.02.0.0 rejects this saying
8003        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004     struct s { int j; const int *ap[3]; };
8005     struct s *b; b->j = 5;
8006   }
8007   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8008     const int foo = 10;
8009     if (!foo) return 0;
8010   }
8011   return !x[0] && !zero.x;
8012 #endif
8013
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest.$ac_objext
8019 if { (ac_try="$ac_compile"
8020 case "(($ac_try" in
8021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022   *) ac_try_echo=$ac_try;;
8023 esac
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025   (eval "$ac_compile") 2>conftest.er1
8026   ac_status=$?
8027   grep -v '^ *+' conftest.er1 >conftest.err
8028   rm -f conftest.er1
8029   cat conftest.err >&5
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); } &&
8032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8033   { (case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038   (eval "$ac_try") 2>&5
8039   ac_status=$?
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); }; } &&
8042          { ac_try='test -s conftest.$ac_objext'
8043   { (case "(($ac_try" in
8044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045   *) ac_try_echo=$ac_try;;
8046 esac
8047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8048   (eval "$ac_try") 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; }; then
8052   ac_cv_c_const=yes
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057         ac_cv_c_const=no
8058 fi
8059
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 fi
8062 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8063 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8064 if test $ac_cv_c_const = no; then
8065
8066 cat >>confdefs.h <<\_ACEOF
8067 #define const
8068 _ACEOF
8069
8070 fi
8071
8072
8073
8074
8075
8076
8077 ac_header_dirent=no
8078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8079   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8080 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8081 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 #include <sys/types.h>
8092 #include <$ac_hdr>
8093
8094 int
8095 main ()
8096 {
8097 if ((DIR *) 0)
8098 return 0;
8099   ;
8100   return 0;
8101 }
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8105 case "(($ac_try" in
8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107   *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110   (eval "$ac_compile") 2>conftest.er1
8111   ac_status=$?
8112   grep -v '^ *+' conftest.er1 >conftest.err
8113   rm -f conftest.er1
8114   cat conftest.err >&5
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } &&
8117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118   { (case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_try") 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; } &&
8127          { ac_try='test -s conftest.$ac_objext'
8128   { (case "(($ac_try" in
8129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130   *) ac_try_echo=$ac_try;;
8131 esac
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133   (eval "$ac_try") 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   eval "$as_ac_Header=yes"
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142         eval "$as_ac_Header=no"
8143 fi
8144
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 fi
8147 ac_res=`eval echo '${'$as_ac_Header'}'`
8148                { echo "$as_me:$LINENO: result: $ac_res" >&5
8149 echo "${ECHO_T}$ac_res" >&6; }
8150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8151   cat >>confdefs.h <<_ACEOF
8152 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8153 _ACEOF
8154
8155 ac_header_dirent=$ac_hdr; break
8156 fi
8157
8158 done
8159 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8160 if test $ac_header_dirent = dirent.h; then
8161   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8162 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8163 if test "${ac_cv_search_opendir+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   ac_func_search_save_LIBS=$LIBS
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173
8174 /* Override any GCC internal prototype to avoid an error.
8175    Use char because int might match the return type of a GCC
8176    builtin and then its argument prototype would still apply.  */
8177 #ifdef __cplusplus
8178 extern "C"
8179 #endif
8180 char opendir ();
8181 int
8182 main ()
8183 {
8184 return opendir ();
8185   ;
8186   return 0;
8187 }
8188 _ACEOF
8189 for ac_lib in '' dir; do
8190   if test -z "$ac_lib"; then
8191     ac_res="none required"
8192   else
8193     ac_res=-l$ac_lib
8194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8195   fi
8196   rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (ac_try="$ac_link"
8198 case "(($ac_try" in
8199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200   *) ac_try_echo=$ac_try;;
8201 esac
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203   (eval "$ac_link") 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211   { (case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216   (eval "$ac_try") 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; } &&
8220          { ac_try='test -s conftest$ac_exeext'
8221   { (case "(($ac_try" in
8222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8223   *) ac_try_echo=$ac_try;;
8224 esac
8225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8226   (eval "$ac_try") 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; }; then
8230   ac_cv_search_opendir=$ac_res
8231 else
8232   echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8234
8235
8236 fi
8237
8238 rm -f core conftest.err conftest.$ac_objext \
8239       conftest$ac_exeext
8240   if test "${ac_cv_search_opendir+set}" = set; then
8241   break
8242 fi
8243 done
8244 if test "${ac_cv_search_opendir+set}" = set; then
8245   :
8246 else
8247   ac_cv_search_opendir=no
8248 fi
8249 rm conftest.$ac_ext
8250 LIBS=$ac_func_search_save_LIBS
8251 fi
8252 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8253 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8254 ac_res=$ac_cv_search_opendir
8255 if test "$ac_res" != no; then
8256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8257
8258 fi
8259
8260 else
8261   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8262 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8263 if test "${ac_cv_search_opendir+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   ac_func_search_save_LIBS=$LIBS
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273
8274 /* Override any GCC internal prototype to avoid an error.
8275    Use char because int might match the return type of a GCC
8276    builtin and then its argument prototype would still apply.  */
8277 #ifdef __cplusplus
8278 extern "C"
8279 #endif
8280 char opendir ();
8281 int
8282 main ()
8283 {
8284 return opendir ();
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 for ac_lib in '' x; do
8290   if test -z "$ac_lib"; then
8291     ac_res="none required"
8292   else
8293     ac_res=-l$ac_lib
8294     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8295   fi
8296   rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (ac_try="$ac_link"
8298 case "(($ac_try" in
8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300   *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303   (eval "$ac_link") 2>conftest.er1
8304   ac_status=$?
8305   grep -v '^ *+' conftest.er1 >conftest.err
8306   rm -f conftest.er1
8307   cat conftest.err >&5
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } &&
8310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8311   { (case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_try") 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; } &&
8320          { ac_try='test -s conftest$ac_exeext'
8321   { (case "(($ac_try" in
8322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323   *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326   (eval "$ac_try") 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; }; then
8330   ac_cv_search_opendir=$ac_res
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335
8336 fi
8337
8338 rm -f core conftest.err conftest.$ac_objext \
8339       conftest$ac_exeext
8340   if test "${ac_cv_search_opendir+set}" = set; then
8341   break
8342 fi
8343 done
8344 if test "${ac_cv_search_opendir+set}" = set; then
8345   :
8346 else
8347   ac_cv_search_opendir=no
8348 fi
8349 rm conftest.$ac_ext
8350 LIBS=$ac_func_search_save_LIBS
8351 fi
8352 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8353 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8354 ac_res=$ac_cv_search_opendir
8355 if test "$ac_res" != no; then
8356   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357
8358 fi
8359
8360 fi
8361
8362
8363 for ac_header in dlfcn.h
8364 do
8365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8367   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 fi
8372 ac_res=`eval echo '${'$as_ac_Header'}'`
8373                { echo "$as_me:$LINENO: result: $ac_res" >&5
8374 echo "${ECHO_T}$ac_res" >&6; }
8375 else
8376   # Is the header compilable?
8377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h.  */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h.  */
8385 $ac_includes_default
8386 #include <$ac_header>
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8390 case "(($ac_try" in
8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392   *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395   (eval "$ac_compile") 2>conftest.er1
8396   ac_status=$?
8397   grep -v '^ *+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } &&
8402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403   { (case "(($ac_try" in
8404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405   *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408   (eval "$ac_try") 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; } &&
8412          { ac_try='test -s conftest.$ac_objext'
8413   { (case "(($ac_try" in
8414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415   *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418   (eval "$ac_try") 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422   ac_header_compiler=yes
8423 else
8424   echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427         ac_header_compiler=no
8428 fi
8429
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8432 echo "${ECHO_T}$ac_header_compiler" >&6; }
8433
8434 # Is the header present?
8435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8437 cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443 #include <$ac_header>
8444 _ACEOF
8445 if { (ac_try="$ac_cpp conftest.$ac_ext"
8446 case "(($ac_try" in
8447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448   *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } >/dev/null; then
8458   if test -s conftest.err; then
8459     ac_cpp_err=$ac_c_preproc_warn_flag
8460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8461   else
8462     ac_cpp_err=
8463   fi
8464 else
8465   ac_cpp_err=yes
8466 fi
8467 if test -z "$ac_cpp_err"; then
8468   ac_header_preproc=yes
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473   ac_header_preproc=no
8474 fi
8475
8476 rm -f conftest.err conftest.$ac_ext
8477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8478 echo "${ECHO_T}$ac_header_preproc" >&6; }
8479
8480 # So?  What about this header?
8481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8482   yes:no: )
8483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8487     ac_header_preproc=yes
8488     ;;
8489   no:yes:* )
8490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8502     ( cat <<\_ASBOX
8503 ## ------------------------------ ##
8504 ## Report this to bugs@yourdomain ##
8505 ## ------------------------------ ##
8506 _ASBOX
8507      ) | sed "s/^/$as_me: WARNING:     /" >&2
8508     ;;
8509 esac
8510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   eval "$as_ac_Header=\$ac_header_preproc"
8516 fi
8517 ac_res=`eval echo '${'$as_ac_Header'}'`
8518                { echo "$as_me:$LINENO: result: $ac_res" >&5
8519 echo "${ECHO_T}$ac_res" >&6; }
8520
8521 fi
8522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8523   cat >>confdefs.h <<_ACEOF
8524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8525 _ACEOF
8526
8527 fi
8528
8529 done
8530
8531 # Check whether --enable-ltdl-install was given.
8532 if test "${enable_ltdl_install+set}" = set; then
8533   enableval=$enable_ltdl_install;
8534 fi
8535
8536
8537
8538
8539 if test x"${enable_ltdl_install-no}" != xno; then
8540   INSTALL_LTDL_TRUE=
8541   INSTALL_LTDL_FALSE='#'
8542 else
8543   INSTALL_LTDL_TRUE='#'
8544   INSTALL_LTDL_FALSE=
8545 fi
8546
8547
8548
8549 if test x"${enable_ltdl_convenience-no}" != xno; then
8550   CONVENIENCE_LTDL_TRUE=
8551   CONVENIENCE_LTDL_FALSE='#'
8552 else
8553   CONVENIENCE_LTDL_TRUE='#'
8554   CONVENIENCE_LTDL_FALSE=
8555 fi
8556
8557
8558 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8560 library_names_spec=
8561 libname_spec='lib$name'
8562 soname_spec=
8563 shrext_cmds=".so"
8564 postinstall_cmds=
8565 postuninstall_cmds=
8566 finish_cmds=
8567 finish_eval=
8568 shlibpath_var=
8569 shlibpath_overrides_runpath=unknown
8570 version_type=none
8571 dynamic_linker="$host_os ld.so"
8572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8573 if test "$GCC" = yes; then
8574   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8575   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8576     # if the path contains ";" then we assume it to be the separator
8577     # otherwise default to the standard path separator (i.e. ":") - it is
8578     # assumed that no part of a normal pathname contains ";" but that should
8579     # okay in the real world where ";" in dirpaths is itself problematic.
8580     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8581   else
8582     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8583   fi
8584 else
8585   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8586 fi
8587 need_lib_prefix=unknown
8588 hardcode_into_libs=no
8589
8590 # when you set need_version to no, make sure it does not cause -set_version
8591 # flags to be left without arguments
8592 need_version=unknown
8593
8594 case $host_os in
8595 aix3*)
8596   version_type=linux
8597   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8598   shlibpath_var=LIBPATH
8599
8600   # AIX 3 has no versioning support, so we append a major version to the name.
8601   soname_spec='${libname}${release}${shared_ext}$major'
8602   ;;
8603
8604 aix4* | aix5*)
8605   version_type=linux
8606   need_lib_prefix=no
8607   need_version=no
8608   hardcode_into_libs=yes
8609   if test "$host_cpu" = ia64; then
8610     # AIX 5 supports IA64
8611     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8612     shlibpath_var=LD_LIBRARY_PATH
8613   else
8614     # With GCC up to 2.95.x, collect2 would create an import file
8615     # for dependence libraries.  The import file would start with
8616     # the line `#! .'.  This would cause the generated library to
8617     # depend on `.', always an invalid library.  This was fixed in
8618     # development snapshots of GCC prior to 3.0.
8619     case $host_os in
8620       aix4 | aix4.[01] | aix4.[01].*)
8621       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8622            echo ' yes '
8623            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8624         :
8625       else
8626         can_build_shared=no
8627       fi
8628       ;;
8629     esac
8630     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8631     # soname into executable. Probably we can add versioning support to
8632     # collect2, so additional links can be useful in future.
8633     if test "$aix_use_runtimelinking" = yes; then
8634       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8635       # instead of lib<name>.a to let people know that these are not
8636       # typical AIX shared libraries.
8637       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8638     else
8639       # We preserve .a as extension for shared libraries through AIX4.2
8640       # and later when we are not doing run time linking.
8641       library_names_spec='${libname}${release}.a $libname.a'
8642       soname_spec='${libname}${release}${shared_ext}$major'
8643     fi
8644     shlibpath_var=LIBPATH
8645   fi
8646   ;;
8647
8648 amigaos*)
8649   library_names_spec='$libname.ixlibrary $libname.a'
8650   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8651   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'
8652   ;;
8653
8654 beos*)
8655   library_names_spec='${libname}${shared_ext}'
8656   dynamic_linker="$host_os ld.so"
8657   shlibpath_var=LIBRARY_PATH
8658   ;;
8659
8660 bsdi[45]*)
8661   version_type=linux
8662   need_version=no
8663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8664   soname_spec='${libname}${release}${shared_ext}$major'
8665   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8666   shlibpath_var=LD_LIBRARY_PATH
8667   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8668   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8669   # the default ld.so.conf also contains /usr/contrib/lib and
8670   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8671   # libtool to hard-code these into programs
8672   ;;
8673
8674 cygwin* | mingw* | pw32*)
8675   version_type=windows
8676   shrext_cmds=".dll"
8677   need_version=no
8678   need_lib_prefix=no
8679
8680   case $GCC,$host_os in
8681   yes,cygwin* | yes,mingw* | yes,pw32*)
8682     library_names_spec='$libname.dll.a'
8683     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8684     postinstall_cmds='base_file=`basename \${file}`~
8685       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8686       dldir=$destdir/`dirname \$dlpath`~
8687       test -d \$dldir || mkdir -p \$dldir~
8688       $install_prog $dir/$dlname \$dldir/$dlname~
8689       chmod a+x \$dldir/$dlname'
8690     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8691       dlpath=$dir/\$dldll~
8692        $rm \$dlpath'
8693     shlibpath_overrides_runpath=yes
8694
8695     case $host_os in
8696     cygwin*)
8697       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8698       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8699       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8700       ;;
8701     mingw*)
8702       # MinGW DLLs use traditional 'lib' prefix
8703       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8705       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8706         # It is most probably a Windows format PATH printed by
8707         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8708         # path with ; separators, and with drive letters. We can handle the
8709         # drive letters (cygwin fileutils understands them), so leave them,
8710         # especially as we might pass files found there to a mingw objdump,
8711         # which wouldn't understand a cygwinified path. Ahh.
8712         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8713       else
8714         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8715       fi
8716       ;;
8717     pw32*)
8718       # pw32 DLLs use 'pw' prefix rather than 'lib'
8719       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8720       ;;
8721     esac
8722     ;;
8723
8724   *)
8725     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8726     ;;
8727   esac
8728   dynamic_linker='Win32 ld.exe'
8729   # FIXME: first we should search . and the directory the executable is in
8730   shlibpath_var=PATH
8731   ;;
8732
8733 darwin* | rhapsody*)
8734   dynamic_linker="$host_os dyld"
8735   version_type=darwin
8736   need_lib_prefix=no
8737   need_version=no
8738   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8739   soname_spec='${libname}${release}${major}$shared_ext'
8740   shlibpath_overrides_runpath=yes
8741   shlibpath_var=DYLD_LIBRARY_PATH
8742   shrext_cmds='.dylib'
8743   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8744   if test "$GCC" = yes; then
8745     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"`
8746   else
8747     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8748   fi
8749   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8750   ;;
8751
8752 dgux*)
8753   version_type=linux
8754   need_lib_prefix=no
8755   need_version=no
8756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8757   soname_spec='${libname}${release}${shared_ext}$major'
8758   shlibpath_var=LD_LIBRARY_PATH
8759   ;;
8760
8761 freebsd1.*)
8762   dynamic_linker=no
8763   ;;
8764
8765 kfreebsd*-gnu)
8766   version_type=linux
8767   need_lib_prefix=no
8768   need_version=no
8769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8770   soname_spec='${libname}${release}${shared_ext}$major'
8771   shlibpath_var=LD_LIBRARY_PATH
8772   shlibpath_overrides_runpath=no
8773   hardcode_into_libs=yes
8774   dynamic_linker='GNU ld.so'
8775   ;;
8776
8777 freebsd* | dragonfly*)
8778   # DragonFly does not have aout.  When/if they implement a new
8779   # versioning mechanism, adjust this.
8780   if test -x /usr/bin/objformat; then
8781     objformat=`/usr/bin/objformat`
8782   else
8783     case $host_os in
8784     freebsd[123].*) objformat=aout ;;
8785     *) objformat=elf ;;
8786     esac
8787   fi
8788   version_type=freebsd-$objformat
8789   case $version_type in
8790     freebsd-elf*)
8791       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8792       need_version=no
8793       need_lib_prefix=no
8794       ;;
8795     freebsd-*)
8796       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8797       need_version=yes
8798       ;;
8799   esac
8800   shlibpath_var=LD_LIBRARY_PATH
8801   case $host_os in
8802   freebsd2.*)
8803     shlibpath_overrides_runpath=yes
8804     ;;
8805   freebsd3.[01]* | freebsdelf3.[01]*)
8806     shlibpath_overrides_runpath=yes
8807     hardcode_into_libs=yes
8808     ;;
8809   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8810   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8811     shlibpath_overrides_runpath=no
8812     hardcode_into_libs=yes
8813     ;;
8814   freebsd*) # from 4.6 on
8815     shlibpath_overrides_runpath=yes
8816     hardcode_into_libs=yes
8817     ;;
8818   esac
8819   ;;
8820
8821 gnu*)
8822   version_type=linux
8823   need_lib_prefix=no
8824   need_version=no
8825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8826   soname_spec='${libname}${release}${shared_ext}$major'
8827   shlibpath_var=LD_LIBRARY_PATH
8828   hardcode_into_libs=yes
8829   ;;
8830
8831 hpux9* | hpux10* | hpux11*)
8832   # Give a soname corresponding to the major version so that dld.sl refuses to
8833   # link against other versions.
8834   version_type=sunos
8835   need_lib_prefix=no
8836   need_version=no
8837   case $host_cpu in
8838   ia64*)
8839     shrext_cmds='.so'
8840     hardcode_into_libs=yes
8841     dynamic_linker="$host_os dld.so"
8842     shlibpath_var=LD_LIBRARY_PATH
8843     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845     soname_spec='${libname}${release}${shared_ext}$major'
8846     if test "X$HPUX_IA64_MODE" = X32; then
8847       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8848     else
8849       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8850     fi
8851     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8852     ;;
8853    hppa*64*)
8854      shrext_cmds='.sl'
8855      hardcode_into_libs=yes
8856      dynamic_linker="$host_os dld.sl"
8857      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8858      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8859      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860      soname_spec='${libname}${release}${shared_ext}$major'
8861      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8862      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8863      ;;
8864    *)
8865     shrext_cmds='.sl'
8866     dynamic_linker="$host_os dld.sl"
8867     shlibpath_var=SHLIB_PATH
8868     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870     soname_spec='${libname}${release}${shared_ext}$major'
8871     ;;
8872   esac
8873   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8874   postinstall_cmds='chmod 555 $lib'
8875   ;;
8876
8877 interix3*)
8878   version_type=linux
8879   need_lib_prefix=no
8880   need_version=no
8881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8882   soname_spec='${libname}${release}${shared_ext}$major'
8883   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8884   shlibpath_var=LD_LIBRARY_PATH
8885   shlibpath_overrides_runpath=no
8886   hardcode_into_libs=yes
8887   ;;
8888
8889 irix5* | irix6* | nonstopux*)
8890   case $host_os in
8891     nonstopux*) version_type=nonstopux ;;
8892     *)
8893         if test "$lt_cv_prog_gnu_ld" = yes; then
8894                 version_type=linux
8895         else
8896                 version_type=irix
8897         fi ;;
8898   esac
8899   need_lib_prefix=no
8900   need_version=no
8901   soname_spec='${libname}${release}${shared_ext}$major'
8902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8903   case $host_os in
8904   irix5* | nonstopux*)
8905     libsuff= shlibsuff=
8906     ;;
8907   *)
8908     case $LD in # libtool.m4 will add one of these switches to LD
8909     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8910       libsuff= shlibsuff= libmagic=32-bit;;
8911     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8912       libsuff=32 shlibsuff=N32 libmagic=N32;;
8913     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8914       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8915     *) libsuff= shlibsuff= libmagic=never-match;;
8916     esac
8917     ;;
8918   esac
8919   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8920   shlibpath_overrides_runpath=no
8921   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8922   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8923   hardcode_into_libs=yes
8924   ;;
8925
8926 # No shared lib support for Linux oldld, aout, or coff.
8927 linux*oldld* | linux*aout* | linux*coff*)
8928   dynamic_linker=no
8929   ;;
8930
8931 # This must be Linux ELF.
8932 linux*)
8933   version_type=linux
8934   need_lib_prefix=no
8935   need_version=no
8936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937   soname_spec='${libname}${release}${shared_ext}$major'
8938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8939   shlibpath_var=LD_LIBRARY_PATH
8940   shlibpath_overrides_runpath=no
8941   # This implies no fast_install, which is unacceptable.
8942   # Some rework will be needed to allow for fast_install
8943   # before this can be enabled.
8944   hardcode_into_libs=yes
8945
8946   # Append ld.so.conf contents to the search path
8947   if test -f /etc/ld.so.conf; then
8948     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' ' '`
8949     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8950   fi
8951
8952   # We used to test for /lib/ld.so.1 and disable shared libraries on
8953   # powerpc, because MkLinux only supported shared libraries with the
8954   # GNU dynamic linker.  Since this was broken with cross compilers,
8955   # most powerpc-linux boxes support dynamic linking these days and
8956   # people can always --disable-shared, the test was removed, and we
8957   # assume the GNU/Linux dynamic linker is in use.
8958   dynamic_linker='GNU/Linux ld.so'
8959   ;;
8960
8961 knetbsd*-gnu)
8962   version_type=linux
8963   need_lib_prefix=no
8964   need_version=no
8965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8966   soname_spec='${libname}${release}${shared_ext}$major'
8967   shlibpath_var=LD_LIBRARY_PATH
8968   shlibpath_overrides_runpath=no
8969   hardcode_into_libs=yes
8970   dynamic_linker='GNU ld.so'
8971   ;;
8972
8973 netbsd*)
8974   version_type=sunos
8975   need_lib_prefix=no
8976   need_version=no
8977   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8979     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8980     dynamic_linker='NetBSD (a.out) ld.so'
8981   else
8982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983     soname_spec='${libname}${release}${shared_ext}$major'
8984     dynamic_linker='NetBSD ld.elf_so'
8985   fi
8986   shlibpath_var=LD_LIBRARY_PATH
8987   shlibpath_overrides_runpath=yes
8988   hardcode_into_libs=yes
8989   ;;
8990
8991 newsos6)
8992   version_type=linux
8993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8994   shlibpath_var=LD_LIBRARY_PATH
8995   shlibpath_overrides_runpath=yes
8996   ;;
8997
8998 nto-qnx*)
8999   version_type=linux
9000   need_lib_prefix=no
9001   need_version=no
9002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   shlibpath_var=LD_LIBRARY_PATH
9005   shlibpath_overrides_runpath=yes
9006   ;;
9007
9008 openbsd*)
9009   version_type=sunos
9010   sys_lib_dlsearch_path_spec="/usr/lib"
9011   need_lib_prefix=no
9012   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9013   case $host_os in
9014     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9015     *)                         need_version=no  ;;
9016   esac
9017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9019   shlibpath_var=LD_LIBRARY_PATH
9020   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9021     case $host_os in
9022       openbsd2.[89] | openbsd2.[89].*)
9023         shlibpath_overrides_runpath=no
9024         ;;
9025       *)
9026         shlibpath_overrides_runpath=yes
9027         ;;
9028       esac
9029   else
9030     shlibpath_overrides_runpath=yes
9031   fi
9032   ;;
9033
9034 os2*)
9035   libname_spec='$name'
9036   shrext_cmds=".dll"
9037   need_lib_prefix=no
9038   library_names_spec='$libname${shared_ext} $libname.a'
9039   dynamic_linker='OS/2 ld.exe'
9040   shlibpath_var=LIBPATH
9041   ;;
9042
9043 osf3* | osf4* | osf5*)
9044   version_type=osf
9045   need_lib_prefix=no
9046   need_version=no
9047   soname_spec='${libname}${release}${shared_ext}$major'
9048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9051   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9052   ;;
9053
9054 solaris*)
9055   version_type=linux
9056   need_lib_prefix=no
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   shlibpath_overrides_runpath=yes
9062   hardcode_into_libs=yes
9063   # ldd complains unless libraries are executable
9064   postinstall_cmds='chmod +x $lib'
9065   ;;
9066
9067 sunos4*)
9068   version_type=sunos
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   shlibpath_overrides_runpath=yes
9073   if test "$with_gnu_ld" = yes; then
9074     need_lib_prefix=no
9075   fi
9076   need_version=yes
9077   ;;
9078
9079 sysv4 | sysv4.3*)
9080   version_type=linux
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   case $host_vendor in
9085     sni)
9086       shlibpath_overrides_runpath=no
9087       need_lib_prefix=no
9088       export_dynamic_flag_spec='${wl}-Blargedynsym'
9089       runpath_var=LD_RUN_PATH
9090       ;;
9091     siemens)
9092       need_lib_prefix=no
9093       ;;
9094     motorola)
9095       need_lib_prefix=no
9096       need_version=no
9097       shlibpath_overrides_runpath=no
9098       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9099       ;;
9100   esac
9101   ;;
9102
9103 sysv4*MP*)
9104   if test -d /usr/nec ;then
9105     version_type=linux
9106     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9107     soname_spec='$libname${shared_ext}.$major'
9108     shlibpath_var=LD_LIBRARY_PATH
9109   fi
9110   ;;
9111
9112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9113   version_type=freebsd-elf
9114   need_lib_prefix=no
9115   need_version=no
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9117   soname_spec='${libname}${release}${shared_ext}$major'
9118   shlibpath_var=LD_LIBRARY_PATH
9119   hardcode_into_libs=yes
9120   if test "$with_gnu_ld" = yes; then
9121     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9122     shlibpath_overrides_runpath=no
9123   else
9124     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9125     shlibpath_overrides_runpath=yes
9126     case $host_os in
9127       sco3.2v5*)
9128         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9129         ;;
9130     esac
9131   fi
9132   sys_lib_dlsearch_path_spec='/usr/lib'
9133   ;;
9134
9135 uts4*)
9136   version_type=linux
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138   soname_spec='${libname}${release}${shared_ext}$major'
9139   shlibpath_var=LD_LIBRARY_PATH
9140   ;;
9141
9142 *)
9143   dynamic_linker=no
9144   ;;
9145 esac
9146 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9147 echo "${ECHO_T}$dynamic_linker" >&6; }
9148 test "$dynamic_linker" = no && can_build_shared=no
9149
9150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9151 if test "$GCC" = yes; then
9152   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9153 fi
9154
9155
9156 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9157 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9158 if test "${libltdl_cv_shlibext+set}" = set; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161
9162 module=yes
9163 eval libltdl_cv_shlibext=$shrext_cmds
9164
9165 fi
9166 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9167 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9168 if test -n "$libltdl_cv_shlibext"; then
9169
9170 cat >>confdefs.h <<_ACEOF
9171 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9172 _ACEOF
9173
9174 fi
9175
9176
9177 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9178 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9179 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   libltdl_cv_shlibpath_var="$shlibpath_var"
9183 fi
9184 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9185 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9186 if test -n "$libltdl_cv_shlibpath_var"; then
9187
9188 cat >>confdefs.h <<_ACEOF
9189 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9190 _ACEOF
9191
9192 fi
9193
9194
9195 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9196 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9197 if test "${libltdl_cv_sys_search_path+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9201 fi
9202 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9203 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9204 if test -n "$libltdl_cv_sys_search_path"; then
9205   sys_search_path=
9206   for dir in $libltdl_cv_sys_search_path; do
9207     if test -z "$sys_search_path"; then
9208       sys_search_path="$dir"
9209     else
9210       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9211     fi
9212   done
9213
9214 cat >>confdefs.h <<_ACEOF
9215 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9216 _ACEOF
9217
9218 fi
9219
9220 { echo "$as_me:$LINENO: checking for objdir" >&5
9221 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9222 if test "${libltdl_cv_objdir+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   libltdl_cv_objdir="$objdir"
9226   if test -n "$objdir"; then
9227     :
9228   else
9229     rm -f .libs 2>/dev/null
9230     mkdir .libs 2>/dev/null
9231     if test -d .libs; then
9232       libltdl_cv_objdir=.libs
9233     else
9234       # MS-DOS does not allow filenames that begin with a dot.
9235       libltdl_cv_objdir=_libs
9236     fi
9237   rmdir .libs 2>/dev/null
9238   fi
9239
9240 fi
9241 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9242 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9243
9244 cat >>confdefs.h <<_ACEOF
9245 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9246 _ACEOF
9247
9248
9249
9250
9251
9252
9253 # Check for command to grab the raw symbol name followed by C symbol from nm.
9254 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259
9260 # These are sane defaults that work on at least a few old systems.
9261 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9262
9263 # Character class describing NM global symbol codes.
9264 symcode='[BCDEGRST]'
9265
9266 # Regexp to match symbols that can be accessed directly from C.
9267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9268
9269 # Transform an extracted symbol line into a proper C declaration
9270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9271
9272 # Transform an extracted symbol line into symbol name and symbol address
9273 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'"
9274
9275 # Define system-specific variables.
9276 case $host_os in
9277 aix*)
9278   symcode='[BCDT]'
9279   ;;
9280 cygwin* | mingw* | pw32*)
9281   symcode='[ABCDGISTW]'
9282   ;;
9283 hpux*) # Its linker distinguishes data from code symbols
9284   if test "$host_cpu" = ia64; then
9285     symcode='[ABCDEGRST]'
9286   fi
9287   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9288   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'"
9289   ;;
9290 linux*)
9291   if test "$host_cpu" = ia64; then
9292     symcode='[ABCDGIRSTW]'
9293     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9294     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'"
9295   fi
9296   ;;
9297 irix* | nonstopux*)
9298   symcode='[BCDEGRST]'
9299   ;;
9300 osf*)
9301   symcode='[BCDEGQRST]'
9302   ;;
9303 solaris*)
9304   symcode='[BDRT]'
9305   ;;
9306 sco3.2v5*)
9307   symcode='[DT]'
9308   ;;
9309 sysv4.2uw2*)
9310   symcode='[DT]'
9311   ;;
9312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9313   symcode='[ABDT]'
9314   ;;
9315 sysv4)
9316   symcode='[DFNSTU]'
9317   ;;
9318 esac
9319
9320 # Handle CRLF in mingw tool chain
9321 opt_cr=
9322 case $build_os in
9323 mingw*)
9324   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9325   ;;
9326 esac
9327
9328 # If we're using GNU nm, then use its standard symbol codes.
9329 case `$NM -V 2>&1` in
9330 *GNU* | *'with BFD'*)
9331   symcode='[ABCDGIRSTW]' ;;
9332 esac
9333
9334 # Try without a prefix undercore, then with it.
9335 for ac_symprfx in "" "_"; do
9336
9337   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9338   symxfrm="\\1 $ac_symprfx\\2 \\2"
9339
9340   # Write the raw and C identifiers.
9341   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9342
9343   # Check to see that the pipe works correctly.
9344   pipe_works=no
9345
9346   rm -f conftest*
9347   cat > conftest.$ac_ext <<EOF
9348 #ifdef __cplusplus
9349 extern "C" {
9350 #endif
9351 char nm_test_var;
9352 void nm_test_func(){}
9353 #ifdef __cplusplus
9354 }
9355 #endif
9356 int main(){nm_test_var='a';nm_test_func();return(0);}
9357 EOF
9358
9359   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9360   (eval $ac_compile) 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; then
9364     # Now try to grab the symbols.
9365     nlist=conftest.nm
9366     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9367   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } && test -s "$nlist"; then
9371       # Try sorting and uniquifying the output.
9372       if sort "$nlist" | uniq > "$nlist"T; then
9373         mv -f "$nlist"T "$nlist"
9374       else
9375         rm -f "$nlist"T
9376       fi
9377
9378       # Make sure that we snagged all the symbols we need.
9379       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9380         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9381           cat <<EOF > conftest.$ac_ext
9382 #ifdef __cplusplus
9383 extern "C" {
9384 #endif
9385
9386 EOF
9387           # Now generate the symbol file.
9388           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9389
9390           cat <<EOF >> conftest.$ac_ext
9391 #if defined (__STDC__) && __STDC__
9392 # define lt_ptr_t void *
9393 #else
9394 # define lt_ptr_t char *
9395 # define const
9396 #endif
9397
9398 /* The mapping between symbol names and symbols. */
9399 const struct {
9400   const char *name;
9401   lt_ptr_t address;
9402 }
9403 lt_preloaded_symbols[] =
9404 {
9405 EOF
9406           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9407           cat <<\EOF >> conftest.$ac_ext
9408   {0, (lt_ptr_t) 0}
9409 };
9410
9411 #ifdef __cplusplus
9412 }
9413 #endif
9414 EOF
9415           # Now try linking the two files.
9416           mv conftest.$ac_objext conftstm.$ac_objext
9417           lt_save_LIBS="$LIBS"
9418           lt_save_CFLAGS="$CFLAGS"
9419           LIBS="conftstm.$ac_objext"
9420           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9421           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422   (eval $ac_link) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9426             pipe_works=yes
9427           fi
9428           LIBS="$lt_save_LIBS"
9429           CFLAGS="$lt_save_CFLAGS"
9430         else
9431           echo "cannot find nm_test_func in $nlist" >&5
9432         fi
9433       else
9434         echo "cannot find nm_test_var in $nlist" >&5
9435       fi
9436     else
9437       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9438     fi
9439   else
9440     echo "$progname: failed program was:" >&5
9441     cat conftest.$ac_ext >&5
9442   fi
9443   rm -f conftest* conftst*
9444
9445   # Do not use the global_symbol_pipe unless it works.
9446   if test "$pipe_works" = yes; then
9447     break
9448   else
9449     lt_cv_sys_global_symbol_pipe=
9450   fi
9451 done
9452
9453 fi
9454
9455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9456   lt_cv_sys_global_symbol_to_cdecl=
9457 fi
9458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9459   { echo "$as_me:$LINENO: result: failed" >&5
9460 echo "${ECHO_T}failed" >&6; }
9461 else
9462   { echo "$as_me:$LINENO: result: ok" >&5
9463 echo "${ECHO_T}ok" >&6; }
9464 fi
9465
9466
9467 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9468 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9469 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9473     libltdl_cv_preloaded_symbols=yes
9474   else
9475     libltdl_cv_preloaded_symbols=no
9476   fi
9477
9478 fi
9479 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9480 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9481 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9482
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_PRELOADED_SYMBOLS 1
9485 _ACEOF
9486
9487 fi
9488
9489 LIBADD_DL=
9490
9491 ac_ext=c
9492 ac_cpp='$CPP $CPPFLAGS'
9493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9496
9497
9498 { echo "$as_me:$LINENO: checking for shl_load" >&5
9499 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9500 if test "${ac_cv_func_shl_load+set}" = set; then
9501   echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503   cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9511 #define shl_load innocuous_shl_load
9512
9513 /* System header to define __stub macros and hopefully few prototypes,
9514     which can conflict with char shl_load (); below.
9515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516     <limits.h> exists even on freestanding compilers.  */
9517
9518 #ifdef __STDC__
9519 # include <limits.h>
9520 #else
9521 # include <assert.h>
9522 #endif
9523
9524 #undef shl_load
9525
9526 /* Override any GCC internal prototype to avoid an error.
9527    Use char because int might match the return type of a GCC
9528    builtin and then its argument prototype would still apply.  */
9529 #ifdef __cplusplus
9530 extern "C"
9531 #endif
9532 char shl_load ();
9533 /* The GNU C library defines this for functions which it implements
9534     to always fail with ENOSYS.  Some functions are actually named
9535     something starting with __ and the normal name is an alias.  */
9536 #if defined __stub_shl_load || defined __stub___shl_load
9537 choke me
9538 #endif
9539
9540 int
9541 main ()
9542 {
9543 return shl_load ();
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (ac_try="$ac_link"
9550 case "(($ac_try" in
9551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552   *) ac_try_echo=$ac_try;;
9553 esac
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555   (eval "$ac_link") 2>conftest.er1
9556   ac_status=$?
9557   grep -v '^ *+' conftest.er1 >conftest.err
9558   rm -f conftest.er1
9559   cat conftest.err >&5
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9563   { (case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568   (eval "$ac_try") 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; } &&
9572          { ac_try='test -s conftest$ac_exeext'
9573   { (case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578   (eval "$ac_try") 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; }; then
9582   ac_cv_func_shl_load=yes
9583 else
9584   echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587         ac_cv_func_shl_load=no
9588 fi
9589
9590 rm -f core conftest.err conftest.$ac_objext \
9591       conftest$ac_exeext conftest.$ac_ext
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9594 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9595 if test $ac_cv_func_shl_load = yes; then
9596
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_SHL_LOAD 1
9599 _ACEOF
9600
9601 else
9602   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9603 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9605   echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607   ac_check_lib_save_LIBS=$LIBS
9608 LIBS="-ldld  $LIBS"
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615
9616 /* Override any GCC internal prototype to avoid an error.
9617    Use char because int might match the return type of a GCC
9618    builtin and then its argument prototype would still apply.  */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 char shl_load ();
9623 int
9624 main ()
9625 {
9626 return shl_load ();
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9633 case "(($ac_try" in
9634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635   *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638   (eval "$ac_link") 2>conftest.er1
9639   ac_status=$?
9640   grep -v '^ *+' conftest.er1 >conftest.err
9641   rm -f conftest.er1
9642   cat conftest.err >&5
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); } &&
9645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9646   { (case "(($ac_try" in
9647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648   *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651   (eval "$ac_try") 2>&5
9652   ac_status=$?
9653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654   (exit $ac_status); }; } &&
9655          { ac_try='test -s conftest$ac_exeext'
9656   { (case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661   (eval "$ac_try") 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; }; then
9665   ac_cv_lib_dld_shl_load=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670         ac_cv_lib_dld_shl_load=no
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext \
9674       conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9676 fi
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9679 if test $ac_cv_lib_dld_shl_load = yes; then
9680
9681 cat >>confdefs.h <<\_ACEOF
9682 #define HAVE_SHL_LOAD 1
9683 _ACEOF
9684
9685         LIBADD_DL="$LIBADD_DL -ldld"
9686 else
9687   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9688 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9690   echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692   ac_check_lib_save_LIBS=$LIBS
9693 LIBS="-ldl  $LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700
9701 /* Override any GCC internal prototype to avoid an error.
9702    Use char because int might match the return type of a GCC
9703    builtin and then its argument prototype would still apply.  */
9704 #ifdef __cplusplus
9705 extern "C"
9706 #endif
9707 char dlopen ();
9708 int
9709 main ()
9710 {
9711 return dlopen ();
9712   ;
9713   return 0;
9714 }
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9718 case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723   (eval "$ac_link") 2>conftest.er1
9724   ac_status=$?
9725   grep -v '^ *+' conftest.er1 >conftest.err
9726   rm -f conftest.er1
9727   cat conftest.err >&5
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); } &&
9730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9731   { (case "(($ac_try" in
9732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733   *) ac_try_echo=$ac_try;;
9734 esac
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736   (eval "$ac_try") 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; } &&
9740          { ac_try='test -s conftest$ac_exeext'
9741   { (case "(($ac_try" in
9742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743   *) ac_try_echo=$ac_try;;
9744 esac
9745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746   (eval "$ac_try") 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750   ac_cv_lib_dl_dlopen=yes
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755         ac_cv_lib_dl_dlopen=no
9756 fi
9757
9758 rm -f core conftest.err conftest.$ac_objext \
9759       conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9761 fi
9762 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9763 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9764 if test $ac_cv_lib_dl_dlopen = yes; then
9765
9766 cat >>confdefs.h <<\_ACEOF
9767 #define HAVE_LIBDL 1
9768 _ACEOF
9769
9770                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9771 else
9772   cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 #if HAVE_DLFCN_H
9779 #  include <dlfcn.h>
9780 #endif
9781
9782 int
9783 main ()
9784 {
9785 dlopen(0, 0);
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (ac_try="$ac_link"
9792 case "(($ac_try" in
9793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794   *) ac_try_echo=$ac_try;;
9795 esac
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797   (eval "$ac_link") 2>conftest.er1
9798   ac_status=$?
9799   grep -v '^ *+' conftest.er1 >conftest.err
9800   rm -f conftest.er1
9801   cat conftest.err >&5
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); } &&
9804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9805   { (case "(($ac_try" in
9806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807   *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810   (eval "$ac_try") 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; } &&
9814          { ac_try='test -s conftest$ac_exeext'
9815   { (case "(($ac_try" in
9816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817   *) ac_try_echo=$ac_try;;
9818 esac
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820   (eval "$ac_try") 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; }; then
9824
9825 cat >>confdefs.h <<\_ACEOF
9826 #define HAVE_LIBDL 1
9827 _ACEOF
9828  libltdl_cv_func_dlopen="yes"
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-lsvld  $LIBS"
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h.  */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h.  */
9846
9847 /* Override any GCC internal prototype to avoid an error.
9848    Use char because int might match the return type of a GCC
9849    builtin and then its argument prototype would still apply.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char dlopen ();
9854 int
9855 main ()
9856 {
9857 return dlopen ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (ac_try="$ac_link"
9864 case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_link") 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } &&
9876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877   { (case "(($ac_try" in
9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879   *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882   (eval "$ac_try") 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; } &&
9886          { ac_try='test -s conftest$ac_exeext'
9887   { (case "(($ac_try" in
9888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889   *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892   (eval "$ac_try") 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; }; then
9896   ac_cv_lib_svld_dlopen=yes
9897 else
9898   echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9900
9901         ac_cv_lib_svld_dlopen=no
9902 fi
9903
9904 rm -f core conftest.err conftest.$ac_objext \
9905       conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9907 fi
9908 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9909 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9910 if test $ac_cv_lib_svld_dlopen = yes; then
9911
9912 cat >>confdefs.h <<\_ACEOF
9913 #define HAVE_LIBDL 1
9914 _ACEOF
9915
9916                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9917 else
9918   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9919 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   ac_check_lib_save_LIBS=$LIBS
9924 LIBS="-ldld  $LIBS"
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931
9932 /* Override any GCC internal prototype to avoid an error.
9933    Use char because int might match the return type of a GCC
9934    builtin and then its argument prototype would still apply.  */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char dld_link ();
9939 int
9940 main ()
9941 {
9942 return dld_link ();
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9949 case "(($ac_try" in
9950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951   *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954   (eval "$ac_link") 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962   { (case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_try") 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; } &&
9971          { ac_try='test -s conftest$ac_exeext'
9972   { (case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977   (eval "$ac_try") 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; }; then
9981   ac_cv_lib_dld_dld_link=yes
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986         ac_cv_lib_dld_dld_link=no
9987 fi
9988
9989 rm -f core conftest.err conftest.$ac_objext \
9990       conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9992 fi
9993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9994 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9995 if test $ac_cv_lib_dld_dld_link = yes; then
9996
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_DLD 1
9999 _ACEOF
10000
10001                 LIBADD_DL="$LIBADD_DL -ldld"
10002 else
10003   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10004 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10005 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h.  */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h.  */
10014 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10016 #define _dyld_func_lookup innocuous__dyld_func_lookup
10017
10018 /* System header to define __stub macros and hopefully few prototypes,
10019     which can conflict with char _dyld_func_lookup (); below.
10020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021     <limits.h> exists even on freestanding compilers.  */
10022
10023 #ifdef __STDC__
10024 # include <limits.h>
10025 #else
10026 # include <assert.h>
10027 #endif
10028
10029 #undef _dyld_func_lookup
10030
10031 /* Override any GCC internal prototype to avoid an error.
10032    Use char because int might match the return type of a GCC
10033    builtin and then its argument prototype would still apply.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char _dyld_func_lookup ();
10038 /* The GNU C library defines this for functions which it implements
10039     to always fail with ENOSYS.  Some functions are actually named
10040     something starting with __ and the normal name is an alias.  */
10041 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10042 choke me
10043 #endif
10044
10045 int
10046 main ()
10047 {
10048 return _dyld_func_lookup ();
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_link") 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068   { (case "(($ac_try" in
10069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070   *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073   (eval "$ac_try") 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (case "(($ac_try" in
10079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080   *) ac_try_echo=$ac_try;;
10081 esac
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083   (eval "$ac_try") 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_cv_func__dyld_func_lookup=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092         ac_cv_func__dyld_func_lookup=no
10093 fi
10094
10095 rm -f core conftest.err conftest.$ac_objext \
10096       conftest$ac_exeext conftest.$ac_ext
10097 fi
10098 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10099 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10100 if test $ac_cv_func__dyld_func_lookup = yes; then
10101
10102 cat >>confdefs.h <<\_ACEOF
10103 #define HAVE_DYLD 1
10104 _ACEOF
10105
10106 fi
10107
10108
10109 fi
10110
10111
10112 fi
10113
10114
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext \
10118       conftest$ac_exeext conftest.$ac_ext
10119
10120 fi
10121
10122
10123 fi
10124
10125
10126 fi
10127
10128
10129 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10130 then
10131   lt_save_LIBS="$LIBS"
10132   LIBS="$LIBS $LIBADD_DL"
10133
10134 for ac_func in dlerror
10135 do
10136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10140   echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142   cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h.  */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h.  */
10148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10150 #define $ac_func innocuous_$ac_func
10151
10152 /* System header to define __stub macros and hopefully few prototypes,
10153     which can conflict with char $ac_func (); below.
10154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10155     <limits.h> exists even on freestanding compilers.  */
10156
10157 #ifdef __STDC__
10158 # include <limits.h>
10159 #else
10160 # include <assert.h>
10161 #endif
10162
10163 #undef $ac_func
10164
10165 /* Override any GCC internal prototype to avoid an error.
10166    Use char because int might match the return type of a GCC
10167    builtin and then its argument prototype would still apply.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char $ac_func ();
10172 /* The GNU C library defines this for functions which it implements
10173     to always fail with ENOSYS.  Some functions are actually named
10174     something starting with __ and the normal name is an alias.  */
10175 #if defined __stub_$ac_func || defined __stub___$ac_func
10176 choke me
10177 #endif
10178
10179 int
10180 main ()
10181 {
10182 return $ac_func ();
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191   *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194   (eval "$ac_link") 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } &&
10201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202   { (case "(($ac_try" in
10203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204   *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207   (eval "$ac_try") 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; } &&
10211          { ac_try='test -s conftest$ac_exeext'
10212   { (case "(($ac_try" in
10213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214   *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217   (eval "$ac_try") 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }; then
10221   eval "$as_ac_var=yes"
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226         eval "$as_ac_var=no"
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext \
10230       conftest$ac_exeext conftest.$ac_ext
10231 fi
10232 ac_res=`eval echo '${'$as_ac_var'}'`
10233                { echo "$as_me:$LINENO: result: $ac_res" >&5
10234 echo "${ECHO_T}$ac_res" >&6; }
10235 if test `eval echo '${'$as_ac_var'}'` = yes; then
10236   cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10238 _ACEOF
10239
10240 fi
10241 done
10242
10243   LIBS="$lt_save_LIBS"
10244 fi
10245 ac_ext=c
10246 ac_cpp='$CPP $CPPFLAGS'
10247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10250
10251
10252
10253 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10254 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10255 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10256   echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258   ac_cv_sys_symbol_underscore=no
10259   cat > conftest.$ac_ext <<EOF
10260 void nm_test_func(){}
10261 int main(){nm_test_func;return 0;}
10262 EOF
10263   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264   (eval $ac_compile) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; then
10268     # Now try to grab the symbols.
10269     ac_nlist=conftest.nm
10270     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10271   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } && test -s "$ac_nlist"; then
10275       # See whether the symbols have a leading underscore.
10276       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10277         ac_cv_sys_symbol_underscore=yes
10278       else
10279         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10280           :
10281         else
10282           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10283         fi
10284       fi
10285     else
10286       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10287     fi
10288   else
10289     echo "configure: failed program was:" >&5
10290     cat conftest.c >&5
10291   fi
10292   rm -rf conftest*
10293
10294 fi
10295 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10296 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10297
10298
10299 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10300   if test x"$libltdl_cv_func_dlopen" = xyes ||
10301      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10302         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10303 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10304 if test "${libltdl_cv_need_uscore+set}" = set; then
10305   echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307   libltdl_cv_need_uscore=unknown
10308           save_LIBS="$LIBS"
10309           LIBS="$LIBS $LIBADD_DL"
10310           if test "$cross_compiling" = yes; then :
10311   libltdl_cv_need_uscore=cross
10312 else
10313   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10314   lt_status=$lt_dlunknown
10315   cat > conftest.$ac_ext <<EOF
10316 #line 10316 "configure"
10317 #include "confdefs.h"
10318
10319 #if HAVE_DLFCN_H
10320 #include <dlfcn.h>
10321 #endif
10322
10323 #include <stdio.h>
10324
10325 #ifdef RTLD_GLOBAL
10326 #  define LT_DLGLOBAL           RTLD_GLOBAL
10327 #else
10328 #  ifdef DL_GLOBAL
10329 #    define LT_DLGLOBAL         DL_GLOBAL
10330 #  else
10331 #    define LT_DLGLOBAL         0
10332 #  endif
10333 #endif
10334
10335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10336    find out it does not work in some platform. */
10337 #ifndef LT_DLLAZY_OR_NOW
10338 #  ifdef RTLD_LAZY
10339 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10340 #  else
10341 #    ifdef DL_LAZY
10342 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10343 #    else
10344 #      ifdef RTLD_NOW
10345 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10346 #      else
10347 #        ifdef DL_NOW
10348 #          define LT_DLLAZY_OR_NOW      DL_NOW
10349 #        else
10350 #          define LT_DLLAZY_OR_NOW      0
10351 #        endif
10352 #      endif
10353 #    endif
10354 #  endif
10355 #endif
10356
10357 #ifdef __cplusplus
10358 extern "C" void exit (int);
10359 #endif
10360
10361 void fnord() { int i=42;}
10362 int main ()
10363 {
10364   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10365   int status = $lt_dlunknown;
10366
10367   if (self)
10368     {
10369       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10370       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10371       /* dlclose (self); */
10372     }
10373   else
10374     puts (dlerror ());
10375
10376     exit (status);
10377 }
10378 EOF
10379   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380   (eval $ac_link) 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10384     (./conftest; exit; ) >&5 2>/dev/null
10385     lt_status=$?
10386     case x$lt_status in
10387       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10388       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10389       x$lt_dlunknown|x*)  ;;
10390     esac
10391   else :
10392     # compilation failed
10393
10394   fi
10395 fi
10396 rm -fr conftest*
10397
10398           LIBS="$save_LIBS"
10399
10400 fi
10401 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10402 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10403   fi
10404 fi
10405
10406 if test x"$libltdl_cv_need_uscore" = xyes; then
10407
10408 cat >>confdefs.h <<\_ACEOF
10409 #define NEED_USCORE 1
10410 _ACEOF
10411
10412 fi
10413
10414
10415 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10416 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10417 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420   # PORTME does your system automatically load deplibs for dlopen?
10421   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10422   # For now, we just catch OSes we know something about -- in the
10423   # future, we'll try test this programmatically.
10424   libltdl_cv_sys_dlopen_deplibs=unknown
10425   case "$host_os" in
10426   aix3*|aix4.1.*|aix4.2.*)
10427     # Unknown whether this is true for these versions of AIX, but
10428     # we want this `case' here to explicitly catch those versions.
10429     libltdl_cv_sys_dlopen_deplibs=unknown
10430     ;;
10431   aix[45]*)
10432     libltdl_cv_sys_dlopen_deplibs=yes
10433     ;;
10434   darwin*)
10435     # Assuming the user has installed a libdl from somewhere, this is true
10436     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10437     libltdl_cv_sys_dlopen_deplibs=yes
10438     ;;
10439   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10440     # GNU and its variants, using gnu ld.so (Glibc)
10441     libltdl_cv_sys_dlopen_deplibs=yes
10442     ;;
10443   hpux10*|hpux11*)
10444     libltdl_cv_sys_dlopen_deplibs=yes
10445     ;;
10446   interix*)
10447     libltdl_cv_sys_dlopen_deplibs=yes
10448     ;;
10449   irix[12345]*|irix6.[01]*)
10450     # Catch all versions of IRIX before 6.2, and indicate that we don't
10451     # know how it worked for any of those versions.
10452     libltdl_cv_sys_dlopen_deplibs=unknown
10453     ;;
10454   irix*)
10455     # The case above catches anything before 6.2, and it's known that
10456     # at 6.2 and later dlopen does load deplibs.
10457     libltdl_cv_sys_dlopen_deplibs=yes
10458     ;;
10459   netbsd*)
10460     libltdl_cv_sys_dlopen_deplibs=yes
10461     ;;
10462   openbsd*)
10463     libltdl_cv_sys_dlopen_deplibs=yes
10464     ;;
10465   osf[1234]*)
10466     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10467     # it did *not* use an RPATH in a shared library to find objects the
10468     # library depends on, so we explicitly say `no'.
10469     libltdl_cv_sys_dlopen_deplibs=no
10470     ;;
10471   osf5.0|osf5.0a|osf5.1)
10472     # dlopen *does* load deplibs and with the right loader patch applied
10473     # it even uses RPATH in a shared library to search for shared objects
10474     # that the library depends on, but there's no easy way to know if that
10475     # patch is installed.  Since this is the case, all we can really
10476     # say is unknown -- it depends on the patch being installed.  If
10477     # it is, this changes to `yes'.  Without it, it would be `no'.
10478     libltdl_cv_sys_dlopen_deplibs=unknown
10479     ;;
10480   osf*)
10481     # the two cases above should catch all versions of osf <= 5.1.  Read
10482     # the comments above for what we know about them.
10483     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10484     # is used to find them so we can finally say `yes'.
10485     libltdl_cv_sys_dlopen_deplibs=yes
10486     ;;
10487   solaris*)
10488     libltdl_cv_sys_dlopen_deplibs=yes
10489     ;;
10490   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491     libltdl_cv_sys_dlopen_deplibs=yes
10492     ;;
10493   esac
10494
10495 fi
10496 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10497 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10498 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10499
10500 cat >>confdefs.h <<\_ACEOF
10501 #define LTDL_DLOPEN_DEPLIBS 1
10502 _ACEOF
10503
10504 fi
10505
10506
10507 for ac_header in argz.h
10508 do
10509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514   echo $ECHO_N "(cached) $ECHO_C" >&6
10515 fi
10516 ac_res=`eval echo '${'$as_ac_Header'}'`
10517                { echo "$as_me:$LINENO: result: $ac_res" >&5
10518 echo "${ECHO_T}$ac_res" >&6; }
10519 else
10520   # Is the header compilable?
10521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h.  */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h.  */
10529 $ac_includes_default
10530 #include <$ac_header>
10531 _ACEOF
10532 rm -f conftest.$ac_objext
10533 if { (ac_try="$ac_compile"
10534 case "(($ac_try" in
10535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536   *) ac_try_echo=$ac_try;;
10537 esac
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539   (eval "$ac_compile") 2>conftest.er1
10540   ac_status=$?
10541   grep -v '^ *+' conftest.er1 >conftest.err
10542   rm -f conftest.er1
10543   cat conftest.err >&5
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } &&
10546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10547   { (case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_try") 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; } &&
10556          { ac_try='test -s conftest.$ac_objext'
10557   { (case "(($ac_try" in
10558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559   *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562   (eval "$ac_try") 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; }; then
10566   ac_header_compiler=yes
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571         ac_header_compiler=no
10572 fi
10573
10574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10576 echo "${ECHO_T}$ac_header_compiler" >&6; }
10577
10578 # Is the header present?
10579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587 #include <$ac_header>
10588 _ACEOF
10589 if { (ac_try="$ac_cpp conftest.$ac_ext"
10590 case "(($ac_try" in
10591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592   *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } >/dev/null; then
10602   if test -s conftest.err; then
10603     ac_cpp_err=$ac_c_preproc_warn_flag
10604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10605   else
10606     ac_cpp_err=
10607   fi
10608 else
10609   ac_cpp_err=yes
10610 fi
10611 if test -z "$ac_cpp_err"; then
10612   ac_header_preproc=yes
10613 else
10614   echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617   ac_header_preproc=no
10618 fi
10619
10620 rm -f conftest.err conftest.$ac_ext
10621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622 echo "${ECHO_T}$ac_header_preproc" >&6; }
10623
10624 # So?  What about this header?
10625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626   yes:no: )
10627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631     ac_header_preproc=yes
10632     ;;
10633   no:yes:* )
10634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646     ( cat <<\_ASBOX
10647 ## ------------------------------ ##
10648 ## Report this to bugs@yourdomain ##
10649 ## ------------------------------ ##
10650 _ASBOX
10651      ) | sed "s/^/$as_me: WARNING:     /" >&2
10652     ;;
10653 esac
10654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10657   echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659   eval "$as_ac_Header=\$ac_header_preproc"
10660 fi
10661 ac_res=`eval echo '${'$as_ac_Header'}'`
10662                { echo "$as_me:$LINENO: result: $ac_res" >&5
10663 echo "${ECHO_T}$ac_res" >&6; }
10664
10665 fi
10666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10667   cat >>confdefs.h <<_ACEOF
10668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10669 _ACEOF
10670
10671 fi
10672
10673 done
10674
10675
10676 { echo "$as_me:$LINENO: checking for error_t" >&5
10677 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10678 if test "${ac_cv_type_error_t+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h.  */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h.  */
10687 #if HAVE_ARGZ_H
10688 #  include <argz.h>
10689 #endif
10690
10691 typedef error_t ac__type_new_;
10692 int
10693 main ()
10694 {
10695 if ((ac__type_new_ *) 0)
10696   return 0;
10697 if (sizeof (ac__type_new_))
10698   return 0;
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710   (eval "$ac_compile") 2>conftest.er1
10711   ac_status=$?
10712   grep -v '^ *+' conftest.er1 >conftest.err
10713   rm -f conftest.er1
10714   cat conftest.err >&5
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } &&
10717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10718   { (case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_try") 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; } &&
10727          { ac_try='test -s conftest.$ac_objext'
10728   { (case "(($ac_try" in
10729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730   *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733   (eval "$ac_try") 2>&5
10734   ac_status=$?
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); }; }; then
10737   ac_cv_type_error_t=yes
10738 else
10739   echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10741
10742         ac_cv_type_error_t=no
10743 fi
10744
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 fi
10747 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10748 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10749 if test $ac_cv_type_error_t = yes; then
10750
10751 cat >>confdefs.h <<_ACEOF
10752 #define HAVE_ERROR_T 1
10753 _ACEOF
10754
10755
10756 else
10757
10758 cat >>confdefs.h <<\_ACEOF
10759 #define error_t int
10760 _ACEOF
10761
10762 fi
10763
10764
10765
10766
10767
10768
10769
10770 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10771 do
10772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10773 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10786 #define $ac_func innocuous_$ac_func
10787
10788 /* System header to define __stub macros and hopefully few prototypes,
10789     which can conflict with char $ac_func (); below.
10790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10791     <limits.h> exists even on freestanding compilers.  */
10792
10793 #ifdef __STDC__
10794 # include <limits.h>
10795 #else
10796 # include <assert.h>
10797 #endif
10798
10799 #undef $ac_func
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char $ac_func ();
10808 /* The GNU C library defines this for functions which it implements
10809     to always fail with ENOSYS.  Some functions are actually named
10810     something starting with __ and the normal name is an alias.  */
10811 #if defined __stub_$ac_func || defined __stub___$ac_func
10812 choke me
10813 #endif
10814
10815 int
10816 main ()
10817 {
10818 return $ac_func ();
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_link") 2>conftest.er1
10831   ac_status=$?
10832   grep -v '^ *+' conftest.er1 >conftest.err
10833   rm -f conftest.er1
10834   cat conftest.err >&5
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } &&
10837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838   { (case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_try") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest$ac_exeext'
10848   { (case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_try") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   eval "$as_ac_var=yes"
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862         eval "$as_ac_var=no"
10863 fi
10864
10865 rm -f core conftest.err conftest.$ac_objext \
10866       conftest$ac_exeext conftest.$ac_ext
10867 fi
10868 ac_res=`eval echo '${'$as_ac_var'}'`
10869                { echo "$as_me:$LINENO: result: $ac_res" >&5
10870 echo "${ECHO_T}$ac_res" >&6; }
10871 if test `eval echo '${'$as_ac_var'}'` = yes; then
10872   cat >>confdefs.h <<_ACEOF
10873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10874 _ACEOF
10875
10876 fi
10877 done
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10907                   stdio.h unistd.h
10908 do
10909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 fi
10916 ac_res=`eval echo '${'$as_ac_Header'}'`
10917                { echo "$as_me:$LINENO: result: $ac_res" >&5
10918 echo "${ECHO_T}$ac_res" >&6; }
10919 else
10920   # Is the header compilable?
10921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 $ac_includes_default
10930 #include <$ac_header>
10931 _ACEOF
10932 rm -f conftest.$ac_objext
10933 if { (ac_try="$ac_compile"
10934 case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939   (eval "$ac_compile") 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } &&
10946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10947   { (case "(($ac_try" in
10948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949   *) ac_try_echo=$ac_try;;
10950 esac
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952   (eval "$ac_try") 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); }; } &&
10956          { ac_try='test -s conftest.$ac_objext'
10957   { (case "(($ac_try" in
10958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959   *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962   (eval "$ac_try") 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   ac_header_compiler=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971         ac_header_compiler=no
10972 fi
10973
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10976 echo "${ECHO_T}$ac_header_compiler" >&6; }
10977
10978 # Is the header present?
10979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h.  */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h.  */
10987 #include <$ac_header>
10988 _ACEOF
10989 if { (ac_try="$ac_cpp conftest.$ac_ext"
10990 case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10996   ac_status=$?
10997   grep -v '^ *+' conftest.er1 >conftest.err
10998   rm -f conftest.er1
10999   cat conftest.err >&5
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } >/dev/null; then
11002   if test -s conftest.err; then
11003     ac_cpp_err=$ac_c_preproc_warn_flag
11004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11005   else
11006     ac_cpp_err=
11007   fi
11008 else
11009   ac_cpp_err=yes
11010 fi
11011 if test -z "$ac_cpp_err"; then
11012   ac_header_preproc=yes
11013 else
11014   echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017   ac_header_preproc=no
11018 fi
11019
11020 rm -f conftest.err conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11022 echo "${ECHO_T}$ac_header_preproc" >&6; }
11023
11024 # So?  What about this header?
11025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11026   yes:no: )
11027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11031     ac_header_preproc=yes
11032     ;;
11033   no:yes:* )
11034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11046     ( cat <<\_ASBOX
11047 ## ------------------------------ ##
11048 ## Report this to bugs@yourdomain ##
11049 ## ------------------------------ ##
11050 _ASBOX
11051      ) | sed "s/^/$as_me: WARNING:     /" >&2
11052     ;;
11053 esac
11054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059   eval "$as_ac_Header=\$ac_header_preproc"
11060 fi
11061 ac_res=`eval echo '${'$as_ac_Header'}'`
11062                { echo "$as_me:$LINENO: result: $ac_res" >&5
11063 echo "${ECHO_T}$ac_res" >&6; }
11064
11065 fi
11066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11067   cat >>confdefs.h <<_ACEOF
11068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11069 _ACEOF
11070
11071 fi
11072
11073 done
11074
11075
11076
11077
11078
11079 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11080 do
11081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086   echo $ECHO_N "(cached) $ECHO_C" >&6
11087 fi
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089                { echo "$as_me:$LINENO: result: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11091 else
11092   # Is the header compilable?
11093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h.  */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h.  */
11101 $ac_includes_default
11102 #include <$ac_header>
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111   (eval "$ac_compile") 2>conftest.er1
11112   ac_status=$?
11113   grep -v '^ *+' conftest.er1 >conftest.err
11114   rm -f conftest.er1
11115   cat conftest.err >&5
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } &&
11118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119   { (case "(($ac_try" in
11120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121   *) ac_try_echo=$ac_try;;
11122 esac
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124   (eval "$ac_try") 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; } &&
11128          { ac_try='test -s conftest.$ac_objext'
11129   { (case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_try") 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; }; then
11138   ac_header_compiler=yes
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143         ac_header_compiler=no
11144 fi
11145
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11149
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h.  */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h.  */
11159 #include <$ac_header>
11160 _ACEOF
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164   *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168   ac_status=$?
11169   grep -v '^ *+' conftest.er1 >conftest.err
11170   rm -f conftest.er1
11171   cat conftest.err >&5
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } >/dev/null; then
11174   if test -s conftest.err; then
11175     ac_cpp_err=$ac_c_preproc_warn_flag
11176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11177   else
11178     ac_cpp_err=
11179   fi
11180 else
11181   ac_cpp_err=yes
11182 fi
11183 if test -z "$ac_cpp_err"; then
11184   ac_header_preproc=yes
11185 else
11186   echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189   ac_header_preproc=no
11190 fi
11191
11192 rm -f conftest.err conftest.$ac_ext
11193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6; }
11195
11196 # So?  What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198   yes:no: )
11199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203     ac_header_preproc=yes
11204     ;;
11205   no:yes:* )
11206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218     ( cat <<\_ASBOX
11219 ## ------------------------------ ##
11220 ## Report this to bugs@yourdomain ##
11221 ## ------------------------------ ##
11222 _ASBOX
11223      ) | sed "s/^/$as_me: WARNING:     /" >&2
11224     ;;
11225 esac
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   eval "$as_ac_Header=\$ac_header_preproc"
11232 fi
11233 ac_res=`eval echo '${'$as_ac_Header'}'`
11234                { echo "$as_me:$LINENO: result: $ac_res" >&5
11235 echo "${ECHO_T}$ac_res" >&6; }
11236
11237 fi
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239   cat >>confdefs.h <<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11241 _ACEOF
11242
11243 fi
11244
11245 done
11246
11247
11248
11249 for ac_header in string.h strings.h
11250 do
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 fi
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259                { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11261 else
11262   # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h.  */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h.  */
11271 $ac_includes_default
11272 #include <$ac_header>
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_compile") 2>conftest.er1
11282   ac_status=$?
11283   grep -v '^ *+' conftest.er1 >conftest.err
11284   rm -f conftest.er1
11285   cat conftest.err >&5
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } &&
11288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11289   { (case "(($ac_try" in
11290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291   *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294   (eval "$ac_try") 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; } &&
11298          { ac_try='test -s conftest.$ac_objext'
11299   { (case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304   (eval "$ac_try") 2>&5
11305   ac_status=$?
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); }; }; then
11308   ac_header_compiler=yes
11309 else
11310   echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313         ac_header_compiler=no
11314 fi
11315
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318 echo "${ECHO_T}$ac_header_compiler" >&6; }
11319
11320 # Is the header present?
11321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11323 cat >conftest.$ac_ext <<_ACEOF
11324 /* confdefs.h.  */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h.  */
11329 #include <$ac_header>
11330 _ACEOF
11331 if { (ac_try="$ac_cpp conftest.$ac_ext"
11332 case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338   ac_status=$?
11339   grep -v '^ *+' conftest.er1 >conftest.err
11340   rm -f conftest.er1
11341   cat conftest.err >&5
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } >/dev/null; then
11344   if test -s conftest.err; then
11345     ac_cpp_err=$ac_c_preproc_warn_flag
11346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11347   else
11348     ac_cpp_err=
11349   fi
11350 else
11351   ac_cpp_err=yes
11352 fi
11353 if test -z "$ac_cpp_err"; then
11354   ac_header_preproc=yes
11355 else
11356   echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359   ac_header_preproc=no
11360 fi
11361
11362 rm -f conftest.err conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 echo "${ECHO_T}$ac_header_preproc" >&6; }
11365
11366 # So?  What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368   yes:no: )
11369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373     ac_header_preproc=yes
11374     ;;
11375   no:yes:* )
11376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388     ( cat <<\_ASBOX
11389 ## ------------------------------ ##
11390 ## Report this to bugs@yourdomain ##
11391 ## ------------------------------ ##
11392 _ASBOX
11393      ) | sed "s/^/$as_me: WARNING:     /" >&2
11394     ;;
11395 esac
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401   eval "$as_ac_Header=\$ac_header_preproc"
11402 fi
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404                { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406
11407 fi
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409   cat >>confdefs.h <<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411 _ACEOF
11412  break
11413 fi
11414
11415 done
11416
11417
11418
11419
11420 for ac_func in strchr index
11421 do
11422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11436 #define $ac_func innocuous_$ac_func
11437
11438 /* System header to define __stub macros and hopefully few prototypes,
11439     which can conflict with char $ac_func (); below.
11440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11441     <limits.h> exists even on freestanding compilers.  */
11442
11443 #ifdef __STDC__
11444 # include <limits.h>
11445 #else
11446 # include <assert.h>
11447 #endif
11448
11449 #undef $ac_func
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452    Use char because int might match the return type of a GCC
11453    builtin and then its argument prototype would still apply.  */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char $ac_func ();
11458 /* The GNU C library defines this for functions which it implements
11459     to always fail with ENOSYS.  Some functions are actually named
11460     something starting with __ and the normal name is an alias.  */
11461 #if defined __stub_$ac_func || defined __stub___$ac_func
11462 choke me
11463 #endif
11464
11465 int
11466 main ()
11467 {
11468 return $ac_func ();
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (ac_try="$ac_link"
11475 case "(($ac_try" in
11476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477   *) ac_try_echo=$ac_try;;
11478 esac
11479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11480   (eval "$ac_link") 2>conftest.er1
11481   ac_status=$?
11482   grep -v '^ *+' conftest.er1 >conftest.err
11483   rm -f conftest.er1
11484   cat conftest.err >&5
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); } &&
11487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488   { (case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493   (eval "$ac_try") 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; } &&
11497          { ac_try='test -s conftest$ac_exeext'
11498   { (case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503   (eval "$ac_try") 2>&5
11504   ac_status=$?
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); }; }; then
11507   eval "$as_ac_var=yes"
11508 else
11509   echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11511
11512         eval "$as_ac_var=no"
11513 fi
11514
11515 rm -f core conftest.err conftest.$ac_objext \
11516       conftest$ac_exeext conftest.$ac_ext
11517 fi
11518 ac_res=`eval echo '${'$as_ac_var'}'`
11519                { echo "$as_me:$LINENO: result: $ac_res" >&5
11520 echo "${ECHO_T}$ac_res" >&6; }
11521 if test `eval echo '${'$as_ac_var'}'` = yes; then
11522   cat >>confdefs.h <<_ACEOF
11523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11524 _ACEOF
11525  break
11526 fi
11527 done
11528
11529
11530
11531 for ac_func in strrchr rindex
11532 do
11533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11537   echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539   cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11547 #define $ac_func innocuous_$ac_func
11548
11549 /* System header to define __stub macros and hopefully few prototypes,
11550     which can conflict with char $ac_func (); below.
11551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11552     <limits.h> exists even on freestanding compilers.  */
11553
11554 #ifdef __STDC__
11555 # include <limits.h>
11556 #else
11557 # include <assert.h>
11558 #endif
11559
11560 #undef $ac_func
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563    Use char because int might match the return type of a GCC
11564    builtin and then its argument prototype would still apply.  */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char $ac_func ();
11569 /* The GNU C library defines this for functions which it implements
11570     to always fail with ENOSYS.  Some functions are actually named
11571     something starting with __ and the normal name is an alias.  */
11572 #if defined __stub_$ac_func || defined __stub___$ac_func
11573 choke me
11574 #endif
11575
11576 int
11577 main ()
11578 {
11579 return $ac_func ();
11580   ;
11581   return 0;
11582 }
11583 _ACEOF
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588   *) ac_try_echo=$ac_try;;
11589 esac
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591   (eval "$ac_link") 2>conftest.er1
11592   ac_status=$?
11593   grep -v '^ *+' conftest.er1 >conftest.err
11594   rm -f conftest.er1
11595   cat conftest.err >&5
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); } &&
11598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11599   { (case "(($ac_try" in
11600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601   *) ac_try_echo=$ac_try;;
11602 esac
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604   (eval "$ac_try") 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; } &&
11608          { ac_try='test -s conftest$ac_exeext'
11609   { (case "(($ac_try" in
11610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611   *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614   (eval "$ac_try") 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); }; }; then
11618   eval "$as_ac_var=yes"
11619 else
11620   echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623         eval "$as_ac_var=no"
11624 fi
11625
11626 rm -f core conftest.err conftest.$ac_objext \
11627       conftest$ac_exeext conftest.$ac_ext
11628 fi
11629 ac_res=`eval echo '${'$as_ac_var'}'`
11630                { echo "$as_me:$LINENO: result: $ac_res" >&5
11631 echo "${ECHO_T}$ac_res" >&6; }
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633   cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11635 _ACEOF
11636  break
11637 fi
11638 done
11639
11640
11641
11642 for ac_func in memcpy bcopy
11643 do
11644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650   cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h.  */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h.  */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11658 #define $ac_func innocuous_$ac_func
11659
11660 /* System header to define __stub macros and hopefully few prototypes,
11661     which can conflict with char $ac_func (); below.
11662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663     <limits.h> exists even on freestanding compilers.  */
11664
11665 #ifdef __STDC__
11666 # include <limits.h>
11667 #else
11668 # include <assert.h>
11669 #endif
11670
11671 #undef $ac_func
11672
11673 /* Override any GCC internal prototype to avoid an error.
11674    Use char because int might match the return type of a GCC
11675    builtin and then its argument prototype would still apply.  */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char $ac_func ();
11680 /* The GNU C library defines this for functions which it implements
11681     to always fail with ENOSYS.  Some functions are actually named
11682     something starting with __ and the normal name is an alias.  */
11683 #if defined __stub_$ac_func || defined __stub___$ac_func
11684 choke me
11685 #endif
11686
11687 int
11688 main ()
11689 {
11690 return $ac_func ();
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699   *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702   (eval "$ac_link") 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } &&
11709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11710   { (case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_try") 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; } &&
11719          { ac_try='test -s conftest$ac_exeext'
11720   { (case "(($ac_try" in
11721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722   *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725   (eval "$ac_try") 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   eval "$as_ac_var=yes"
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734         eval "$as_ac_var=no"
11735 fi
11736
11737 rm -f core conftest.err conftest.$ac_objext \
11738       conftest$ac_exeext conftest.$ac_ext
11739 fi
11740 ac_res=`eval echo '${'$as_ac_var'}'`
11741                { echo "$as_me:$LINENO: result: $ac_res" >&5
11742 echo "${ECHO_T}$ac_res" >&6; }
11743 if test `eval echo '${'$as_ac_var'}'` = yes; then
11744   cat >>confdefs.h <<_ACEOF
11745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746 _ACEOF
11747  break
11748 fi
11749 done
11750
11751
11752
11753 for ac_func in memmove strcmp
11754 do
11755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11759   echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761   cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11769 #define $ac_func innocuous_$ac_func
11770
11771 /* System header to define __stub macros and hopefully few prototypes,
11772     which can conflict with char $ac_func (); below.
11773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774     <limits.h> exists even on freestanding compilers.  */
11775
11776 #ifdef __STDC__
11777 # include <limits.h>
11778 #else
11779 # include <assert.h>
11780 #endif
11781
11782 #undef $ac_func
11783
11784 /* Override any GCC internal prototype to avoid an error.
11785    Use char because int might match the return type of a GCC
11786    builtin and then its argument prototype would still apply.  */
11787 #ifdef __cplusplus
11788 extern "C"
11789 #endif
11790 char $ac_func ();
11791 /* The GNU C library defines this for functions which it implements
11792     to always fail with ENOSYS.  Some functions are actually named
11793     something starting with __ and the normal name is an alias.  */
11794 #if defined __stub_$ac_func || defined __stub___$ac_func
11795 choke me
11796 #endif
11797
11798 int
11799 main ()
11800 {
11801 return $ac_func ();
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (ac_try="$ac_link"
11808 case "(($ac_try" in
11809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810   *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813   (eval "$ac_link") 2>conftest.er1
11814   ac_status=$?
11815   grep -v '^ *+' conftest.er1 >conftest.err
11816   rm -f conftest.er1
11817   cat conftest.err >&5
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); } &&
11820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11821   { (case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_try") 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; } &&
11830          { ac_try='test -s conftest$ac_exeext'
11831   { (case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_try") 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; }; then
11840   eval "$as_ac_var=yes"
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845         eval "$as_ac_var=no"
11846 fi
11847
11848 rm -f core conftest.err conftest.$ac_objext \
11849       conftest$ac_exeext conftest.$ac_ext
11850 fi
11851 ac_res=`eval echo '${'$as_ac_var'}'`
11852                { echo "$as_me:$LINENO: result: $ac_res" >&5
11853 echo "${ECHO_T}$ac_res" >&6; }
11854 if test `eval echo '${'$as_ac_var'}'` = yes; then
11855   cat >>confdefs.h <<_ACEOF
11856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11857 _ACEOF
11858
11859 fi
11860 done
11861
11862
11863
11864
11865 for ac_func in closedir opendir readdir
11866 do
11867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871   echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11881 #define $ac_func innocuous_$ac_func
11882
11883 /* System header to define __stub macros and hopefully few prototypes,
11884     which can conflict with char $ac_func (); below.
11885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886     <limits.h> exists even on freestanding compilers.  */
11887
11888 #ifdef __STDC__
11889 # include <limits.h>
11890 #else
11891 # include <assert.h>
11892 #endif
11893
11894 #undef $ac_func
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897    Use char because int might match the return type of a GCC
11898    builtin and then its argument prototype would still apply.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char $ac_func ();
11903 /* The GNU C library defines this for functions which it implements
11904     to always fail with ENOSYS.  Some functions are actually named
11905     something starting with __ and the normal name is an alias.  */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11907 choke me
11908 #endif
11909
11910 int
11911 main ()
11912 {
11913 return $ac_func ();
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925   (eval "$ac_link") 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest$ac_exeext'
11943   { (case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_try") 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   eval "$as_ac_var=yes"
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957         eval "$as_ac_var=no"
11958 fi
11959
11960 rm -f core conftest.err conftest.$ac_objext \
11961       conftest$ac_exeext conftest.$ac_ext
11962 fi
11963 ac_res=`eval echo '${'$as_ac_var'}'`
11964                { echo "$as_me:$LINENO: result: $ac_res" >&5
11965 echo "${ECHO_T}$ac_res" >&6; }
11966 if test `eval echo '${'$as_ac_var'}'` = yes; then
11967   cat >>confdefs.h <<_ACEOF
11968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969 _ACEOF
11970
11971 fi
11972 done
11973
11974
11975
11976 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11977 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11978
11979 ICC=no
11980 IXX=no
11981 case $CC in
11982   icc*|icpc*)
11983     ICC=yes
11984     IXX=yes
11985     ;;
11986    *)
11987     ;;
11988 esac
11989
11990 if test "$GCC" != "yes" && test "$ICC" != "yes"
11991 then
11992   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11993 echo "$as_me: error: gcc|icc required but not found" >&2;}
11994    { (exit 1); exit 1; }; }
11995 fi
11996
11997 if test "$GXX" != "yes" && test "$IXX" != "yes"
11998 then
11999   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12000 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12001    { (exit 1); exit 1; }; }
12002 fi
12003
12004 if test "$GCC" = "yes"
12005 then
12006   cat >conftest.$ac_ext <<_ACEOF
12007 #if !defined(__GNUC__) || __GNUC__ < 3
12008 #error Unsupported GCC version
12009 #endif
12010
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (ac_try="$ac_compile"
12014 case "(($ac_try" in
12015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016   *) ac_try_echo=$ac_try;;
12017 esac
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019   (eval "$ac_compile") 2>conftest.er1
12020   ac_status=$?
12021   grep -v '^ *+' conftest.er1 >conftest.err
12022   rm -f conftest.er1
12023   cat conftest.err >&5
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } &&
12026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027   { (case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032   (eval "$ac_try") 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest.$ac_objext'
12037   { (case "(($ac_try" in
12038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039   *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042   (eval "$ac_try") 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; }; then
12046   :
12047 else
12048   echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12052 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12053    { (exit 1); exit 1; }; }
12054 fi
12055
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 fi
12058
12059 if test -z "$llvm_cv_gnu_make_command"
12060 then
12061   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12062 echo "$as_me: error: GNU Make required but not found" >&2;}
12063    { (exit 1); exit 1; }; }
12064 fi
12065
12066 { echo "$as_me:$LINENO: result: ok" >&5
12067 echo "${ECHO_T}ok" >&6; }
12068
12069 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12070 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12071 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12072
12073 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12074
12075 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12076
12077 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12078 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12079
12080
12081
12082 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12083 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12084 if test "${ac_cv_lib_m_sin+set}" = set; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   ac_check_lib_save_LIBS=$LIBS
12088 LIBS="-lm  $LIBS"
12089 cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095
12096 /* Override any GCC internal prototype to avoid an error.
12097    Use char because int might match the return type of a GCC
12098    builtin and then its argument prototype would still apply.  */
12099 #ifdef __cplusplus
12100 extern "C"
12101 #endif
12102 char sin ();
12103 int
12104 main ()
12105 {
12106 return sin ();
12107   ;
12108   return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_link") 2>conftest.er1
12119   ac_status=$?
12120   grep -v '^ *+' conftest.er1 >conftest.err
12121   rm -f conftest.er1
12122   cat conftest.err >&5
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } &&
12125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126   { (case "(($ac_try" in
12127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128   *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131   (eval "$ac_try") 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; } &&
12135          { ac_try='test -s conftest$ac_exeext'
12136   { (case "(($ac_try" in
12137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138   *) ac_try_echo=$ac_try;;
12139 esac
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141   (eval "$ac_try") 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_cv_lib_m_sin=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150         ac_cv_lib_m_sin=no
12151 fi
12152
12153 rm -f core conftest.err conftest.$ac_objext \
12154       conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12156 fi
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12158 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12159 if test $ac_cv_lib_m_sin = yes; then
12160   cat >>confdefs.h <<_ACEOF
12161 #define HAVE_LIBM 1
12162 _ACEOF
12163
12164   LIBS="-lm $LIBS"
12165
12166 fi
12167
12168 if test "$llvm_cv_os_type" = "MingW" ; then
12169
12170 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12171 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12172 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-limagehlp  $LIBS"
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183
12184
12185 int
12186 main ()
12187 {
12188 return main ();
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_link") 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208   { (case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_try") 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } &&
12217          { ac_try='test -s conftest$ac_exeext'
12218   { (case "(($ac_try" in
12219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220   *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223   (eval "$ac_try") 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; }; then
12227   ac_cv_lib_imagehlp_main=yes
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232         ac_cv_lib_imagehlp_main=no
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext \
12236       conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12240 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12241 if test $ac_cv_lib_imagehlp_main = yes; then
12242   cat >>confdefs.h <<_ACEOF
12243 #define HAVE_LIBIMAGEHLP 1
12244 _ACEOF
12245
12246   LIBS="-limagehlp $LIBS"
12247
12248 fi
12249
12250
12251 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12252 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12253 if test "${ac_cv_lib_psapi_main+set}" = set; then
12254   echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256   ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-lpsapi  $LIBS"
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h.  */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h.  */
12264
12265
12266 int
12267 main ()
12268 {
12269 return main ();
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_link") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } &&
12288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289   { (case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_try") 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; } &&
12298          { ac_try='test -s conftest$ac_exeext'
12299   { (case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_try") 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   ac_cv_lib_psapi_main=yes
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313         ac_cv_lib_psapi_main=no
12314 fi
12315
12316 rm -f core conftest.err conftest.$ac_objext \
12317       conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12319 fi
12320 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12321 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12322 if test $ac_cv_lib_psapi_main = yes; then
12323   cat >>confdefs.h <<_ACEOF
12324 #define HAVE_LIBPSAPI 1
12325 _ACEOF
12326
12327   LIBS="-lpsapi $LIBS"
12328
12329 fi
12330
12331 fi
12332
12333 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12334 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12335 if test "${ac_cv_search_dlopen+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   ac_func_search_save_LIBS=$LIBS
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h.  */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h.  */
12345
12346 /* Override any GCC internal prototype to avoid an error.
12347    Use char because int might match the return type of a GCC
12348    builtin and then its argument prototype would still apply.  */
12349 #ifdef __cplusplus
12350 extern "C"
12351 #endif
12352 char dlopen ();
12353 int
12354 main ()
12355 {
12356 return dlopen ();
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 for ac_lib in '' dl; do
12362   if test -z "$ac_lib"; then
12363     ac_res="none required"
12364   else
12365     ac_res=-l$ac_lib
12366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12367   fi
12368   rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (ac_try="$ac_link"
12370 case "(($ac_try" in
12371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372   *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375   (eval "$ac_link") 2>conftest.er1
12376   ac_status=$?
12377   grep -v '^ *+' conftest.er1 >conftest.err
12378   rm -f conftest.er1
12379   cat conftest.err >&5
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); } &&
12382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383   { (case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_try") 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; } &&
12392          { ac_try='test -s conftest$ac_exeext'
12393   { (case "(($ac_try" in
12394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395   *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398   (eval "$ac_try") 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; }; then
12402   ac_cv_search_dlopen=$ac_res
12403 else
12404   echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407
12408 fi
12409
12410 rm -f core conftest.err conftest.$ac_objext \
12411       conftest$ac_exeext
12412   if test "${ac_cv_search_dlopen+set}" = set; then
12413   break
12414 fi
12415 done
12416 if test "${ac_cv_search_dlopen+set}" = set; then
12417   :
12418 else
12419   ac_cv_search_dlopen=no
12420 fi
12421 rm conftest.$ac_ext
12422 LIBS=$ac_func_search_save_LIBS
12423 fi
12424 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12425 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12426 ac_res=$ac_cv_search_dlopen
12427 if test "$ac_res" != no; then
12428   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12429
12430 cat >>confdefs.h <<\_ACEOF
12431 #define HAVE_DLOPEN 1
12432 _ACEOF
12433
12434 else
12435   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12436 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12437 fi
12438
12439
12440 if test "$llvm_cv_enable_libffi" = "yes" ; then
12441   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12442 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12443 if test "${ac_cv_search_ffi_call+set}" = set; then
12444   echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446   ac_func_search_save_LIBS=$LIBS
12447 cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h.  */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h.  */
12453
12454 /* Override any GCC internal prototype to avoid an error.
12455    Use char because int might match the return type of a GCC
12456    builtin and then its argument prototype would still apply.  */
12457 #ifdef __cplusplus
12458 extern "C"
12459 #endif
12460 char ffi_call ();
12461 int
12462 main ()
12463 {
12464 return ffi_call ();
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 for ac_lib in '' ffi; do
12470   if test -z "$ac_lib"; then
12471     ac_res="none required"
12472   else
12473     ac_res=-l$ac_lib
12474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12475   fi
12476   rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480   *) ac_try_echo=$ac_try;;
12481 esac
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483   (eval "$ac_link") 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12491   { (case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496   (eval "$ac_try") 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; } &&
12500          { ac_try='test -s conftest$ac_exeext'
12501   { (case "(($ac_try" in
12502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503   *) ac_try_echo=$ac_try;;
12504 esac
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506   (eval "$ac_try") 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; }; then
12510   ac_cv_search_ffi_call=$ac_res
12511 else
12512   echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515
12516 fi
12517
12518 rm -f core conftest.err conftest.$ac_objext \
12519       conftest$ac_exeext
12520   if test "${ac_cv_search_ffi_call+set}" = set; then
12521   break
12522 fi
12523 done
12524 if test "${ac_cv_search_ffi_call+set}" = set; then
12525   :
12526 else
12527   ac_cv_search_ffi_call=no
12528 fi
12529 rm conftest.$ac_ext
12530 LIBS=$ac_func_search_save_LIBS
12531 fi
12532 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12533 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12534 ac_res=$ac_cv_search_ffi_call
12535 if test "$ac_res" != no; then
12536   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12537
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_FFI_CALL 1
12540 _ACEOF
12541
12542 else
12543   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12544 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12545    { (exit 1); exit 1; }; }
12546 fi
12547
12548 fi
12549
12550 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12551 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12552 if test "${ac_cv_search_mallinfo+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   ac_func_search_save_LIBS=$LIBS
12556 cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h.  */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h.  */
12562
12563 /* Override any GCC internal prototype to avoid an error.
12564    Use char because int might match the return type of a GCC
12565    builtin and then its argument prototype would still apply.  */
12566 #ifdef __cplusplus
12567 extern "C"
12568 #endif
12569 char mallinfo ();
12570 int
12571 main ()
12572 {
12573 return mallinfo ();
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 for ac_lib in '' malloc; do
12579   if test -z "$ac_lib"; then
12580     ac_res="none required"
12581   else
12582     ac_res=-l$ac_lib
12583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12584   fi
12585   rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592   (eval "$ac_link") 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600   { (case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605   (eval "$ac_try") 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } &&
12609          { ac_try='test -s conftest$ac_exeext'
12610   { (case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_try") 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   ac_cv_search_mallinfo=$ac_res
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624
12625 fi
12626
12627 rm -f core conftest.err conftest.$ac_objext \
12628       conftest$ac_exeext
12629   if test "${ac_cv_search_mallinfo+set}" = set; then
12630   break
12631 fi
12632 done
12633 if test "${ac_cv_search_mallinfo+set}" = set; then
12634   :
12635 else
12636   ac_cv_search_mallinfo=no
12637 fi
12638 rm conftest.$ac_ext
12639 LIBS=$ac_func_search_save_LIBS
12640 fi
12641 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12642 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12643 ac_res=$ac_cv_search_mallinfo
12644 if test "$ac_res" != no; then
12645   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_MALLINFO 1
12649 _ACEOF
12650
12651 fi
12652
12653
12654 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12655
12656 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12657 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12658 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12659   echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661   ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lpthread  $LIBS"
12663 cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h.  */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h.  */
12669
12670 /* Override any GCC internal prototype to avoid an error.
12671    Use char because int might match the return type of a GCC
12672    builtin and then its argument prototype would still apply.  */
12673 #ifdef __cplusplus
12674 extern "C"
12675 #endif
12676 char pthread_mutex_init ();
12677 int
12678 main ()
12679 {
12680 return pthread_mutex_init ();
12681   ;
12682   return 0;
12683 }
12684 _ACEOF
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689   *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692   (eval "$ac_link") 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } &&
12699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700   { (case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_try") 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; } &&
12709          { ac_try='test -s conftest$ac_exeext'
12710   { (case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_try") 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; }; then
12719   ac_cv_lib_pthread_pthread_mutex_init=yes
12720 else
12721   echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724         ac_cv_lib_pthread_pthread_mutex_init=no
12725 fi
12726
12727 rm -f core conftest.err conftest.$ac_objext \
12728       conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12730 fi
12731 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12732 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12733 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12734   cat >>confdefs.h <<_ACEOF
12735 #define HAVE_LIBPTHREAD 1
12736 _ACEOF
12737
12738   LIBS="-lpthread $LIBS"
12739
12740 fi
12741
12742   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12743 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12744 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   ac_func_search_save_LIBS=$LIBS
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754
12755 /* Override any GCC internal prototype to avoid an error.
12756    Use char because int might match the return type of a GCC
12757    builtin and then its argument prototype would still apply.  */
12758 #ifdef __cplusplus
12759 extern "C"
12760 #endif
12761 char pthread_mutex_lock ();
12762 int
12763 main ()
12764 {
12765 return pthread_mutex_lock ();
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 for ac_lib in '' pthread; do
12771   if test -z "$ac_lib"; then
12772     ac_res="none required"
12773   else
12774     ac_res=-l$ac_lib
12775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12776   fi
12777   rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (ac_try="$ac_link"
12779 case "(($ac_try" in
12780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781   *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784   (eval "$ac_link") 2>conftest.er1
12785   ac_status=$?
12786   grep -v '^ *+' conftest.er1 >conftest.err
12787   rm -f conftest.er1
12788   cat conftest.err >&5
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } &&
12791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792   { (case "(($ac_try" in
12793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794   *) ac_try_echo=$ac_try;;
12795 esac
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797   (eval "$ac_try") 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; } &&
12801          { ac_try='test -s conftest$ac_exeext'
12802   { (case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807   (eval "$ac_try") 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; }; then
12811   ac_cv_search_pthread_mutex_lock=$ac_res
12812 else
12813   echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816
12817 fi
12818
12819 rm -f core conftest.err conftest.$ac_objext \
12820       conftest$ac_exeext
12821   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12822   break
12823 fi
12824 done
12825 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12826   :
12827 else
12828   ac_cv_search_pthread_mutex_lock=no
12829 fi
12830 rm conftest.$ac_ext
12831 LIBS=$ac_func_search_save_LIBS
12832 fi
12833 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12834 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12835 ac_res=$ac_cv_search_pthread_mutex_lock
12836 if test "$ac_res" != no; then
12837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12838
12839 cat >>confdefs.h <<\_ACEOF
12840 #define HAVE_PTHREAD_MUTEX_LOCK 1
12841 _ACEOF
12842
12843 fi
12844
12845   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12846 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12847 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   ac_func_search_save_LIBS=$LIBS
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857
12858 /* Override any GCC internal prototype to avoid an error.
12859    Use char because int might match the return type of a GCC
12860    builtin and then its argument prototype would still apply.  */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char pthread_rwlock_init ();
12865 int
12866 main ()
12867 {
12868 return pthread_rwlock_init ();
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 for ac_lib in '' pthread; do
12874   if test -z "$ac_lib"; then
12875     ac_res="none required"
12876   else
12877     ac_res=-l$ac_lib
12878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12879   fi
12880   rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_link") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (case "(($ac_try" in
12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907   *) ac_try_echo=$ac_try;;
12908 esac
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910   (eval "$ac_try") 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   ac_cv_search_pthread_rwlock_init=$ac_res
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919
12920 fi
12921
12922 rm -f core conftest.err conftest.$ac_objext \
12923       conftest$ac_exeext
12924   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12925   break
12926 fi
12927 done
12928 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12929   :
12930 else
12931   ac_cv_search_pthread_rwlock_init=no
12932 fi
12933 rm conftest.$ac_ext
12934 LIBS=$ac_func_search_save_LIBS
12935 fi
12936 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12937 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12938 ac_res=$ac_cv_search_pthread_rwlock_init
12939 if test "$ac_res" != no; then
12940   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_PTHREAD_RWLOCK_INIT 1
12944 _ACEOF
12945
12946 fi
12947
12948   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12949 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12950 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   ac_func_search_save_LIBS=$LIBS
12954 cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960
12961 /* Override any GCC internal prototype to avoid an error.
12962    Use char because int might match the return type of a GCC
12963    builtin and then its argument prototype would still apply.  */
12964 #ifdef __cplusplus
12965 extern "C"
12966 #endif
12967 char pthread_getspecific ();
12968 int
12969 main ()
12970 {
12971 return pthread_getspecific ();
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 for ac_lib in '' pthread; do
12977   if test -z "$ac_lib"; then
12978     ac_res="none required"
12979   else
12980     ac_res=-l$ac_lib
12981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12982   fi
12983   rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990   (eval "$ac_link") 2>conftest.er1
12991   ac_status=$?
12992   grep -v '^ *+' conftest.er1 >conftest.err
12993   rm -f conftest.er1
12994   cat conftest.err >&5
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); } &&
12997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998   { (case "(($ac_try" in
12999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000   *) ac_try_echo=$ac_try;;
13001 esac
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003   (eval "$ac_try") 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; } &&
13007          { ac_try='test -s conftest$ac_exeext'
13008   { (case "(($ac_try" in
13009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010   *) ac_try_echo=$ac_try;;
13011 esac
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013   (eval "$ac_try") 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }; }; then
13017   ac_cv_search_pthread_getspecific=$ac_res
13018 else
13019   echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13021
13022
13023 fi
13024
13025 rm -f core conftest.err conftest.$ac_objext \
13026       conftest$ac_exeext
13027   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13028   break
13029 fi
13030 done
13031 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13032   :
13033 else
13034   ac_cv_search_pthread_getspecific=no
13035 fi
13036 rm conftest.$ac_ext
13037 LIBS=$ac_func_search_save_LIBS
13038 fi
13039 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13040 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13041 ac_res=$ac_cv_search_pthread_getspecific
13042 if test "$ac_res" != no; then
13043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13044
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_PTHREAD_GETSPECIFIC 1
13047 _ACEOF
13048
13049 fi
13050
13051 fi
13052
13053
13054 # Check whether --with-udis86 was given.
13055 if test "${with_udis86+set}" = set; then
13056   withval=$with_udis86;
13057       USE_UDIS86=1
13058
13059       case "$withval" in
13060         /usr/lib|yes) ;;
13061         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13062       esac
13063
13064 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13065 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13066 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-ludis86  $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h.  */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h.  */
13077
13078 /* Override any GCC internal prototype to avoid an error.
13079    Use char because int might match the return type of a GCC
13080    builtin and then its argument prototype would still apply.  */
13081 #ifdef __cplusplus
13082 extern "C"
13083 #endif
13084 char ud_init ();
13085 int
13086 main ()
13087 {
13088 return ud_init ();
13089   ;
13090   return 0;
13091 }
13092 _ACEOF
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (ac_try="$ac_link"
13095 case "(($ac_try" in
13096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097   *) ac_try_echo=$ac_try;;
13098 esac
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100   (eval "$ac_link") 2>conftest.er1
13101   ac_status=$?
13102   grep -v '^ *+' conftest.er1 >conftest.err
13103   rm -f conftest.er1
13104   cat conftest.err >&5
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); } &&
13107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13108   { (case "(($ac_try" in
13109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110   *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113   (eval "$ac_try") 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; } &&
13117          { ac_try='test -s conftest$ac_exeext'
13118   { (case "(($ac_try" in
13119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120   *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123   (eval "$ac_try") 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; }; then
13127   ac_cv_lib_udis86_ud_init=yes
13128 else
13129   echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13131
13132         ac_cv_lib_udis86_ud_init=no
13133 fi
13134
13135 rm -f core conftest.err conftest.$ac_objext \
13136       conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13138 fi
13139 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13140 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13141 if test $ac_cv_lib_udis86_ud_init = yes; then
13142   cat >>confdefs.h <<_ACEOF
13143 #define HAVE_LIBUDIS86 1
13144 _ACEOF
13145
13146   LIBS="-ludis86 $LIBS"
13147
13148 else
13149
13150         echo "Error! You need to have libudis86 around."
13151         exit -1
13152
13153 fi
13154
13155
13156 else
13157   USE_UDIS86=0
13158
13159 fi
13160
13161
13162 cat >>confdefs.h <<_ACEOF
13163 #define USE_UDIS86 $USE_UDIS86
13164 _ACEOF
13165
13166
13167
13168 # Check whether --with-oprofile was given.
13169 if test "${with_oprofile+set}" = set; then
13170   withval=$with_oprofile;
13171       USE_OPROFILE=1
13172
13173       case "$withval" in
13174         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13175         no) llvm_cv_oppath=
13176             USE_OPROFILE=0
13177  ;;
13178         *) llvm_cv_oppath="${withval}/lib/oprofile"
13179            CPPFLAGS="-I${withval}/include";;
13180       esac
13181       if test -n "$llvm_cv_oppath" ; then
13182         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13183                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13184 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13185 if test "${ac_cv_search_bfd_init+set}" = set; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188   ac_func_search_save_LIBS=$LIBS
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h.  */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h.  */
13195
13196 /* Override any GCC internal prototype to avoid an error.
13197    Use char because int might match the return type of a GCC
13198    builtin and then its argument prototype would still apply.  */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char bfd_init ();
13203 int
13204 main ()
13205 {
13206 return bfd_init ();
13207   ;
13208   return 0;
13209 }
13210 _ACEOF
13211 for ac_lib in '' bfd; do
13212   if test -z "$ac_lib"; then
13213     ac_res="none required"
13214   else
13215     ac_res=-l$ac_lib
13216     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13217   fi
13218   rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (ac_try="$ac_link"
13220 case "(($ac_try" in
13221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222   *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225   (eval "$ac_link") 2>conftest.er1
13226   ac_status=$?
13227   grep -v '^ *+' conftest.er1 >conftest.err
13228   rm -f conftest.er1
13229   cat conftest.err >&5
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); } &&
13232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13233   { (case "(($ac_try" in
13234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235   *) ac_try_echo=$ac_try;;
13236 esac
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238   (eval "$ac_try") 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; } &&
13242          { ac_try='test -s conftest$ac_exeext'
13243   { (case "(($ac_try" in
13244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245   *) ac_try_echo=$ac_try;;
13246 esac
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248   (eval "$ac_try") 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; }; then
13252   ac_cv_search_bfd_init=$ac_res
13253 else
13254   echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13256
13257
13258 fi
13259
13260 rm -f core conftest.err conftest.$ac_objext \
13261       conftest$ac_exeext
13262   if test "${ac_cv_search_bfd_init+set}" = set; then
13263   break
13264 fi
13265 done
13266 if test "${ac_cv_search_bfd_init+set}" = set; then
13267   :
13268 else
13269   ac_cv_search_bfd_init=no
13270 fi
13271 rm conftest.$ac_ext
13272 LIBS=$ac_func_search_save_LIBS
13273 fi
13274 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13275 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13276 ac_res=$ac_cv_search_bfd_init
13277 if test "$ac_res" != no; then
13278   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13279
13280 fi
13281
13282         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13283 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13284 if test "${ac_cv_search_op_open_agent+set}" = set; then
13285   echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287   ac_func_search_save_LIBS=$LIBS
13288 cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294
13295 /* Override any GCC internal prototype to avoid an error.
13296    Use char because int might match the return type of a GCC
13297    builtin and then its argument prototype would still apply.  */
13298 #ifdef __cplusplus
13299 extern "C"
13300 #endif
13301 char op_open_agent ();
13302 int
13303 main ()
13304 {
13305 return op_open_agent ();
13306   ;
13307   return 0;
13308 }
13309 _ACEOF
13310 for ac_lib in '' opagent; do
13311   if test -z "$ac_lib"; then
13312     ac_res="none required"
13313   else
13314     ac_res=-l$ac_lib
13315     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13316   fi
13317   rm -f conftest.$ac_objext conftest$ac_exeext
13318 if { (ac_try="$ac_link"
13319 case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_link") 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } &&
13331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13332   { (case "(($ac_try" in
13333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334   *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337   (eval "$ac_try") 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; } &&
13341          { ac_try='test -s conftest$ac_exeext'
13342   { (case "(($ac_try" in
13343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344   *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347   (eval "$ac_try") 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; }; then
13351   ac_cv_search_op_open_agent=$ac_res
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356
13357 fi
13358
13359 rm -f core conftest.err conftest.$ac_objext \
13360       conftest$ac_exeext
13361   if test "${ac_cv_search_op_open_agent+set}" = set; then
13362   break
13363 fi
13364 done
13365 if test "${ac_cv_search_op_open_agent+set}" = set; then
13366   :
13367 else
13368   ac_cv_search_op_open_agent=no
13369 fi
13370 rm conftest.$ac_ext
13371 LIBS=$ac_func_search_save_LIBS
13372 fi
13373 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13374 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13375 ac_res=$ac_cv_search_op_open_agent
13376 if test "$ac_res" != no; then
13377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13378
13379 else
13380
13381           echo "Error! You need to have libopagent around."
13382           exit -1
13383
13384 fi
13385
13386         if test "${ac_cv_header_opagent_h+set}" = set; then
13387   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13388 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13389 if test "${ac_cv_header_opagent_h+set}" = set; then
13390   echo $ECHO_N "(cached) $ECHO_C" >&6
13391 fi
13392 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13393 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13394 else
13395   # Is the header compilable?
13396 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13397 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13398 cat >conftest.$ac_ext <<_ACEOF
13399 /* confdefs.h.  */
13400 _ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h.  */
13404 $ac_includes_default
13405 #include <opagent.h>
13406 _ACEOF
13407 rm -f conftest.$ac_objext
13408 if { (ac_try="$ac_compile"
13409 case "(($ac_try" in
13410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411   *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414   (eval "$ac_compile") 2>conftest.er1
13415   ac_status=$?
13416   grep -v '^ *+' conftest.er1 >conftest.err
13417   rm -f conftest.er1
13418   cat conftest.err >&5
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } &&
13421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13422   { (case "(($ac_try" in
13423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424   *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427   (eval "$ac_try") 2>&5
13428   ac_status=$?
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); }; } &&
13431          { ac_try='test -s conftest.$ac_objext'
13432   { (case "(($ac_try" in
13433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434   *) ac_try_echo=$ac_try;;
13435 esac
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437   (eval "$ac_try") 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); }; }; then
13441   ac_header_compiler=yes
13442 else
13443   echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446         ac_header_compiler=no
13447 fi
13448
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451 echo "${ECHO_T}$ac_header_compiler" >&6; }
13452
13453 # Is the header present?
13454 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13455 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h.  */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h.  */
13462 #include <opagent.h>
13463 _ACEOF
13464 if { (ac_try="$ac_cpp conftest.$ac_ext"
13465 case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13471   ac_status=$?
13472   grep -v '^ *+' conftest.er1 >conftest.err
13473   rm -f conftest.er1
13474   cat conftest.err >&5
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); } >/dev/null; then
13477   if test -s conftest.err; then
13478     ac_cpp_err=$ac_c_preproc_warn_flag
13479     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13480   else
13481     ac_cpp_err=
13482   fi
13483 else
13484   ac_cpp_err=yes
13485 fi
13486 if test -z "$ac_cpp_err"; then
13487   ac_header_preproc=yes
13488 else
13489   echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492   ac_header_preproc=no
13493 fi
13494
13495 rm -f conftest.err conftest.$ac_ext
13496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13497 echo "${ECHO_T}$ac_header_preproc" >&6; }
13498
13499 # So?  What about this header?
13500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13501   yes:no: )
13502     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13503 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13504     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13505 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13506     ac_header_preproc=yes
13507     ;;
13508   no:yes:* )
13509     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13510 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13511     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13512 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13513     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13514 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13515     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13516 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13517     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13518 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13519     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13520 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13521     ( cat <<\_ASBOX
13522 ## ------------------------------ ##
13523 ## Report this to bugs@yourdomain ##
13524 ## ------------------------------ ##
13525 _ASBOX
13526      ) | sed "s/^/$as_me: WARNING:     /" >&2
13527     ;;
13528 esac
13529 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13530 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13531 if test "${ac_cv_header_opagent_h+set}" = set; then
13532   echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534   ac_cv_header_opagent_h=$ac_header_preproc
13535 fi
13536 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13537 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13538
13539 fi
13540 if test $ac_cv_header_opagent_h = yes; then
13541   :
13542 else
13543
13544           echo "Error! You need to have opagent.h around."
13545           exit -1
13546
13547 fi
13548
13549
13550       fi
13551
13552 else
13553
13554       USE_OPROFILE=0
13555
13556
13557 fi
13558
13559
13560 cat >>confdefs.h <<_ACEOF
13561 #define USE_OPROFILE $USE_OPROFILE
13562 _ACEOF
13563
13564
13565
13566
13567
13568
13569
13570
13571 ac_header_dirent=no
13572 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13573   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13574 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13575 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579   cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h.  */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h.  */
13585 #include <sys/types.h>
13586 #include <$ac_hdr>
13587
13588 int
13589 main ()
13590 {
13591 if ((DIR *) 0)
13592 return 0;
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (ac_try="$ac_compile"
13599 case "(($ac_try" in
13600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601   *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604   (eval "$ac_compile") 2>conftest.er1
13605   ac_status=$?
13606   grep -v '^ *+' conftest.er1 >conftest.err
13607   rm -f conftest.er1
13608   cat conftest.err >&5
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } &&
13611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13612   { (case "(($ac_try" in
13613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614   *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617   (eval "$ac_try") 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; } &&
13621          { ac_try='test -s conftest.$ac_objext'
13622   { (case "(($ac_try" in
13623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624   *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627   (eval "$ac_try") 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }; }; then
13631   eval "$as_ac_Header=yes"
13632 else
13633   echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636         eval "$as_ac_Header=no"
13637 fi
13638
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 fi
13641 ac_res=`eval echo '${'$as_ac_Header'}'`
13642                { echo "$as_me:$LINENO: result: $ac_res" >&5
13643 echo "${ECHO_T}$ac_res" >&6; }
13644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13645   cat >>confdefs.h <<_ACEOF
13646 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13647 _ACEOF
13648
13649 ac_header_dirent=$ac_hdr; break
13650 fi
13651
13652 done
13653 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13654 if test $ac_header_dirent = dirent.h; then
13655   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13656 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13657 if test "${ac_cv_search_opendir+set}" = set; then
13658   echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660   ac_func_search_save_LIBS=$LIBS
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667
13668 /* Override any GCC internal prototype to avoid an error.
13669    Use char because int might match the return type of a GCC
13670    builtin and then its argument prototype would still apply.  */
13671 #ifdef __cplusplus
13672 extern "C"
13673 #endif
13674 char opendir ();
13675 int
13676 main ()
13677 {
13678 return opendir ();
13679   ;
13680   return 0;
13681 }
13682 _ACEOF
13683 for ac_lib in '' dir; do
13684   if test -z "$ac_lib"; then
13685     ac_res="none required"
13686   else
13687     ac_res=-l$ac_lib
13688     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13689   fi
13690   rm -f conftest.$ac_objext conftest$ac_exeext
13691 if { (ac_try="$ac_link"
13692 case "(($ac_try" in
13693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694   *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697   (eval "$ac_link") 2>conftest.er1
13698   ac_status=$?
13699   grep -v '^ *+' conftest.er1 >conftest.err
13700   rm -f conftest.er1
13701   cat conftest.err >&5
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } &&
13704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705   { (case "(($ac_try" in
13706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707   *) ac_try_echo=$ac_try;;
13708 esac
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710   (eval "$ac_try") 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; } &&
13714          { ac_try='test -s conftest$ac_exeext'
13715   { (case "(($ac_try" in
13716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717   *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720   (eval "$ac_try") 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; }; then
13724   ac_cv_search_opendir=$ac_res
13725 else
13726   echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729
13730 fi
13731
13732 rm -f core conftest.err conftest.$ac_objext \
13733       conftest$ac_exeext
13734   if test "${ac_cv_search_opendir+set}" = set; then
13735   break
13736 fi
13737 done
13738 if test "${ac_cv_search_opendir+set}" = set; then
13739   :
13740 else
13741   ac_cv_search_opendir=no
13742 fi
13743 rm conftest.$ac_ext
13744 LIBS=$ac_func_search_save_LIBS
13745 fi
13746 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13747 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13748 ac_res=$ac_cv_search_opendir
13749 if test "$ac_res" != no; then
13750   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13751
13752 fi
13753
13754 else
13755   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13757 if test "${ac_cv_search_opendir+set}" = set; then
13758   echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760   ac_func_search_save_LIBS=$LIBS
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767
13768 /* Override any GCC internal prototype to avoid an error.
13769    Use char because int might match the return type of a GCC
13770    builtin and then its argument prototype would still apply.  */
13771 #ifdef __cplusplus
13772 extern "C"
13773 #endif
13774 char opendir ();
13775 int
13776 main ()
13777 {
13778 return opendir ();
13779   ;
13780   return 0;
13781 }
13782 _ACEOF
13783 for ac_lib in '' x; do
13784   if test -z "$ac_lib"; then
13785     ac_res="none required"
13786   else
13787     ac_res=-l$ac_lib
13788     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13789   fi
13790   rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797   (eval "$ac_link") 2>conftest.er1
13798   ac_status=$?
13799   grep -v '^ *+' conftest.er1 >conftest.err
13800   rm -f conftest.er1
13801   cat conftest.err >&5
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } &&
13804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805   { (case "(($ac_try" in
13806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807   *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810   (eval "$ac_try") 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; } &&
13814          { ac_try='test -s conftest$ac_exeext'
13815   { (case "(($ac_try" in
13816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817   *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820   (eval "$ac_try") 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; }; then
13824   ac_cv_search_opendir=$ac_res
13825 else
13826   echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829
13830 fi
13831
13832 rm -f core conftest.err conftest.$ac_objext \
13833       conftest$ac_exeext
13834   if test "${ac_cv_search_opendir+set}" = set; then
13835   break
13836 fi
13837 done
13838 if test "${ac_cv_search_opendir+set}" = set; then
13839   :
13840 else
13841   ac_cv_search_opendir=no
13842 fi
13843 rm conftest.$ac_ext
13844 LIBS=$ac_func_search_save_LIBS
13845 fi
13846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13848 ac_res=$ac_cv_search_opendir
13849 if test "$ac_res" != no; then
13850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13851
13852 fi
13853
13854 fi
13855
13856 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13857 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13858 if test "${ac_cv_header_mmap_anon+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861    ac_ext=c
13862 ac_cpp='$CPP $CPPFLAGS'
13863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13866
13867   cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873 #include <sys/mman.h>
13874 #include <unistd.h>
13875 #include <fcntl.h>
13876 int
13877 main ()
13878 {
13879 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_compile") 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } &&
13898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899   { (case "(($ac_try" in
13900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901   *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904   (eval "$ac_try") 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; } &&
13908          { ac_try='test -s conftest.$ac_objext'
13909   { (case "(($ac_try" in
13910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911   *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914   (eval "$ac_try") 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; }; then
13918   ac_cv_header_mmap_anon=yes
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923         ac_cv_header_mmap_anon=no
13924 fi
13925
13926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927   ac_ext=c
13928 ac_cpp='$CPP $CPPFLAGS'
13929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13932
13933
13934 fi
13935 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13936 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13937 if test "$ac_cv_header_mmap_anon" = yes; then
13938
13939 cat >>confdefs.h <<\_ACEOF
13940 #define HAVE_MMAP_ANONYMOUS 1
13941 _ACEOF
13942
13943 fi
13944
13945 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13946 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13947 if test "${ac_cv_header_stat_broken+set}" = set; then
13948   echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950   cat >conftest.$ac_ext <<_ACEOF
13951 /* confdefs.h.  */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h.  */
13956 #include <sys/types.h>
13957 #include <sys/stat.h>
13958
13959 #if defined S_ISBLK && defined S_IFDIR
13960 # if S_ISBLK (S_IFDIR)
13961 You lose.
13962 # endif
13963 #endif
13964
13965 #if defined S_ISBLK && defined S_IFCHR
13966 # if S_ISBLK (S_IFCHR)
13967 You lose.
13968 # endif
13969 #endif
13970
13971 #if defined S_ISLNK && defined S_IFREG
13972 # if S_ISLNK (S_IFREG)
13973 You lose.
13974 # endif
13975 #endif
13976
13977 #if defined S_ISSOCK && defined S_IFREG
13978 # if S_ISSOCK (S_IFREG)
13979 You lose.
13980 # endif
13981 #endif
13982
13983 _ACEOF
13984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985   $EGREP "You lose" >/dev/null 2>&1; then
13986   ac_cv_header_stat_broken=yes
13987 else
13988   ac_cv_header_stat_broken=no
13989 fi
13990 rm -f conftest*
13991
13992 fi
13993 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13994 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13995 if test $ac_cv_header_stat_broken = yes; then
13996
13997 cat >>confdefs.h <<\_ACEOF
13998 #define STAT_MACROS_BROKEN 1
13999 _ACEOF
14000
14001 fi
14002
14003 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008   cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014 #include <sys/types.h>
14015 #include <sys/wait.h>
14016 #ifndef WEXITSTATUS
14017 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14018 #endif
14019 #ifndef WIFEXITED
14020 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14021 #endif
14022
14023 int
14024 main ()
14025 {
14026   int s;
14027   wait (&s);
14028   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext
14034 if { (ac_try="$ac_compile"
14035 case "(($ac_try" in
14036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037   *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040   (eval "$ac_compile") 2>conftest.er1
14041   ac_status=$?
14042   grep -v '^ *+' conftest.er1 >conftest.err
14043   rm -f conftest.er1
14044   cat conftest.err >&5
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); } &&
14047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048   { (case "(($ac_try" in
14049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050   *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053   (eval "$ac_try") 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; } &&
14057          { ac_try='test -s conftest.$ac_objext'
14058   { (case "(($ac_try" in
14059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060   *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063   (eval "$ac_try") 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); }; }; then
14067   ac_cv_header_sys_wait_h=yes
14068 else
14069   echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072         ac_cv_header_sys_wait_h=no
14073 fi
14074
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 fi
14077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14078 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14079 if test $ac_cv_header_sys_wait_h = yes; then
14080
14081 cat >>confdefs.h <<\_ACEOF
14082 #define HAVE_SYS_WAIT_H 1
14083 _ACEOF
14084
14085 fi
14086
14087 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14088 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14089 if test "${ac_cv_header_time+set}" = set; then
14090   echo $ECHO_N "(cached) $ECHO_C" >&6
14091 else
14092   cat >conftest.$ac_ext <<_ACEOF
14093 /* confdefs.h.  */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h.  */
14098 #include <sys/types.h>
14099 #include <sys/time.h>
14100 #include <time.h>
14101
14102 int
14103 main ()
14104 {
14105 if ((struct tm *) 0)
14106 return 0;
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext
14112 if { (ac_try="$ac_compile"
14113 case "(($ac_try" in
14114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115   *) ac_try_echo=$ac_try;;
14116 esac
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118   (eval "$ac_compile") 2>conftest.er1
14119   ac_status=$?
14120   grep -v '^ *+' conftest.er1 >conftest.err
14121   rm -f conftest.er1
14122   cat conftest.err >&5
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } &&
14125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14126   { (case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_try") 2>&5
14132   ac_status=$?
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); }; } &&
14135          { ac_try='test -s conftest.$ac_objext'
14136   { (case "(($ac_try" in
14137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138   *) ac_try_echo=$ac_try;;
14139 esac
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141   (eval "$ac_try") 2>&5
14142   ac_status=$?
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); }; }; then
14145   ac_cv_header_time=yes
14146 else
14147   echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150         ac_cv_header_time=no
14151 fi
14152
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 fi
14155 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14156 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14157 if test $ac_cv_header_time = yes; then
14158
14159 cat >>confdefs.h <<\_ACEOF
14160 #define TIME_WITH_SYS_TIME 1
14161 _ACEOF
14162
14163 fi
14164
14165
14166
14167
14168
14169
14170
14171
14172 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14173 do
14174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 fi
14181 ac_res=`eval echo '${'$as_ac_Header'}'`
14182                { echo "$as_me:$LINENO: result: $ac_res" >&5
14183 echo "${ECHO_T}$ac_res" >&6; }
14184 else
14185   # Is the header compilable?
14186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h.  */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h.  */
14194 $ac_includes_default
14195 #include <$ac_header>
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (ac_try="$ac_compile"
14199 case "(($ac_try" in
14200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201   *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204   (eval "$ac_compile") 2>conftest.er1
14205   ac_status=$?
14206   grep -v '^ *+' conftest.er1 >conftest.err
14207   rm -f conftest.er1
14208   cat conftest.err >&5
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); } &&
14211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14212   { (case "(($ac_try" in
14213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214   *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217   (eval "$ac_try") 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; } &&
14221          { ac_try='test -s conftest.$ac_objext'
14222   { (case "(($ac_try" in
14223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224   *) ac_try_echo=$ac_try;;
14225 esac
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227   (eval "$ac_try") 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; }; then
14231   ac_header_compiler=yes
14232 else
14233   echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236         ac_header_compiler=no
14237 fi
14238
14239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14241 echo "${ECHO_T}$ac_header_compiler" >&6; }
14242
14243 # Is the header present?
14244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14246 cat >conftest.$ac_ext <<_ACEOF
14247 /* confdefs.h.  */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h.  */
14252 #include <$ac_header>
14253 _ACEOF
14254 if { (ac_try="$ac_cpp conftest.$ac_ext"
14255 case "(($ac_try" in
14256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257   *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14261   ac_status=$?
14262   grep -v '^ *+' conftest.er1 >conftest.err
14263   rm -f conftest.er1
14264   cat conftest.err >&5
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); } >/dev/null; then
14267   if test -s conftest.err; then
14268     ac_cpp_err=$ac_c_preproc_warn_flag
14269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14270   else
14271     ac_cpp_err=
14272   fi
14273 else
14274   ac_cpp_err=yes
14275 fi
14276 if test -z "$ac_cpp_err"; then
14277   ac_header_preproc=yes
14278 else
14279   echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14281
14282   ac_header_preproc=no
14283 fi
14284
14285 rm -f conftest.err conftest.$ac_ext
14286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14287 echo "${ECHO_T}$ac_header_preproc" >&6; }
14288
14289 # So?  What about this header?
14290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14291   yes:no: )
14292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14296     ac_header_preproc=yes
14297     ;;
14298   no:yes:* )
14299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14311     ( cat <<\_ASBOX
14312 ## ------------------------------ ##
14313 ## Report this to bugs@yourdomain ##
14314 ## ------------------------------ ##
14315 _ASBOX
14316      ) | sed "s/^/$as_me: WARNING:     /" >&2
14317     ;;
14318 esac
14319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14322   echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324   eval "$as_ac_Header=\$ac_header_preproc"
14325 fi
14326 ac_res=`eval echo '${'$as_ac_Header'}'`
14327                { echo "$as_me:$LINENO: result: $ac_res" >&5
14328 echo "${ECHO_T}$ac_res" >&6; }
14329
14330 fi
14331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14332   cat >>confdefs.h <<_ACEOF
14333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14334 _ACEOF
14335
14336 fi
14337
14338 done
14339
14340
14341
14342
14343
14344
14345
14346 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14347 do
14348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353   echo $ECHO_N "(cached) $ECHO_C" >&6
14354 fi
14355 ac_res=`eval echo '${'$as_ac_Header'}'`
14356                { echo "$as_me:$LINENO: result: $ac_res" >&5
14357 echo "${ECHO_T}$ac_res" >&6; }
14358 else
14359   # Is the header compilable?
14360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368 $ac_includes_default
14369 #include <$ac_header>
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375   *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378   (eval "$ac_compile") 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14386   { (case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_try") 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; } &&
14395          { ac_try='test -s conftest.$ac_objext'
14396   { (case "(($ac_try" in
14397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398   *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401   (eval "$ac_try") 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; }; then
14405   ac_header_compiler=yes
14406 else
14407   echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14409
14410         ac_header_compiler=no
14411 fi
14412
14413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14415 echo "${ECHO_T}$ac_header_compiler" >&6; }
14416
14417 # Is the header present?
14418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426 #include <$ac_header>
14427 _ACEOF
14428 if { (ac_try="$ac_cpp conftest.$ac_ext"
14429 case "(($ac_try" in
14430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431   *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14435   ac_status=$?
14436   grep -v '^ *+' conftest.er1 >conftest.err
14437   rm -f conftest.er1
14438   cat conftest.err >&5
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } >/dev/null; then
14441   if test -s conftest.err; then
14442     ac_cpp_err=$ac_c_preproc_warn_flag
14443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14444   else
14445     ac_cpp_err=
14446   fi
14447 else
14448   ac_cpp_err=yes
14449 fi
14450 if test -z "$ac_cpp_err"; then
14451   ac_header_preproc=yes
14452 else
14453   echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456   ac_header_preproc=no
14457 fi
14458
14459 rm -f conftest.err conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461 echo "${ECHO_T}$ac_header_preproc" >&6; }
14462
14463 # So?  What about this header?
14464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14465   yes:no: )
14466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14470     ac_header_preproc=yes
14471     ;;
14472   no:yes:* )
14473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14485     ( cat <<\_ASBOX
14486 ## ------------------------------ ##
14487 ## Report this to bugs@yourdomain ##
14488 ## ------------------------------ ##
14489 _ASBOX
14490      ) | sed "s/^/$as_me: WARNING:     /" >&2
14491     ;;
14492 esac
14493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14496   echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498   eval "$as_ac_Header=\$ac_header_preproc"
14499 fi
14500 ac_res=`eval echo '${'$as_ac_Header'}'`
14501                { echo "$as_me:$LINENO: result: $ac_res" >&5
14502 echo "${ECHO_T}$ac_res" >&6; }
14503
14504 fi
14505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14506   cat >>confdefs.h <<_ACEOF
14507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14508 _ACEOF
14509
14510 fi
14511
14512 done
14513
14514
14515
14516 for ac_header in utime.h windows.h
14517 do
14518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14520   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14523   echo $ECHO_N "(cached) $ECHO_C" >&6
14524 fi
14525 ac_res=`eval echo '${'$as_ac_Header'}'`
14526                { echo "$as_me:$LINENO: result: $ac_res" >&5
14527 echo "${ECHO_T}$ac_res" >&6; }
14528 else
14529   # Is the header compilable?
14530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14532 cat >conftest.$ac_ext <<_ACEOF
14533 /* confdefs.h.  */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h.  */
14538 $ac_includes_default
14539 #include <$ac_header>
14540 _ACEOF
14541 rm -f conftest.$ac_objext
14542 if { (ac_try="$ac_compile"
14543 case "(($ac_try" in
14544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545   *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548   (eval "$ac_compile") 2>conftest.er1
14549   ac_status=$?
14550   grep -v '^ *+' conftest.er1 >conftest.err
14551   rm -f conftest.er1
14552   cat conftest.err >&5
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); } &&
14555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14556   { (case "(($ac_try" in
14557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558   *) ac_try_echo=$ac_try;;
14559 esac
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561   (eval "$ac_try") 2>&5
14562   ac_status=$?
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); }; } &&
14565          { ac_try='test -s conftest.$ac_objext'
14566   { (case "(($ac_try" in
14567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568   *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571   (eval "$ac_try") 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; }; then
14575   ac_header_compiler=yes
14576 else
14577   echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14579
14580         ac_header_compiler=no
14581 fi
14582
14583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14585 echo "${ECHO_T}$ac_header_compiler" >&6; }
14586
14587 # Is the header present?
14588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h.  */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h.  */
14596 #include <$ac_header>
14597 _ACEOF
14598 if { (ac_try="$ac_cpp conftest.$ac_ext"
14599 case "(($ac_try" in
14600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601   *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14605   ac_status=$?
14606   grep -v '^ *+' conftest.er1 >conftest.err
14607   rm -f conftest.er1
14608   cat conftest.err >&5
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); } >/dev/null; then
14611   if test -s conftest.err; then
14612     ac_cpp_err=$ac_c_preproc_warn_flag
14613     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14614   else
14615     ac_cpp_err=
14616   fi
14617 else
14618   ac_cpp_err=yes
14619 fi
14620 if test -z "$ac_cpp_err"; then
14621   ac_header_preproc=yes
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626   ac_header_preproc=no
14627 fi
14628
14629 rm -f conftest.err conftest.$ac_ext
14630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14631 echo "${ECHO_T}$ac_header_preproc" >&6; }
14632
14633 # So?  What about this header?
14634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14635   yes:no: )
14636     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14640     ac_header_preproc=yes
14641     ;;
14642   no:yes:* )
14643     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14645     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14646 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14647     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14649     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14650 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14653     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14655     ( cat <<\_ASBOX
14656 ## ------------------------------ ##
14657 ## Report this to bugs@yourdomain ##
14658 ## ------------------------------ ##
14659 _ASBOX
14660      ) | sed "s/^/$as_me: WARNING:     /" >&2
14661     ;;
14662 esac
14663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668   eval "$as_ac_Header=\$ac_header_preproc"
14669 fi
14670 ac_res=`eval echo '${'$as_ac_Header'}'`
14671                { echo "$as_me:$LINENO: result: $ac_res" >&5
14672 echo "${ECHO_T}$ac_res" >&6; }
14673
14674 fi
14675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14676   cat >>confdefs.h <<_ACEOF
14677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14678 _ACEOF
14679
14680 fi
14681
14682 done
14683
14684
14685
14686
14687
14688
14689 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14690 do
14691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696   echo $ECHO_N "(cached) $ECHO_C" >&6
14697 fi
14698 ac_res=`eval echo '${'$as_ac_Header'}'`
14699                { echo "$as_me:$LINENO: result: $ac_res" >&5
14700 echo "${ECHO_T}$ac_res" >&6; }
14701 else
14702   # Is the header compilable?
14703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14705 cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h.  */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h.  */
14711 $ac_includes_default
14712 #include <$ac_header>
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718   *) ac_try_echo=$ac_try;;
14719 esac
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721   (eval "$ac_compile") 2>conftest.er1
14722   ac_status=$?
14723   grep -v '^ *+' conftest.er1 >conftest.err
14724   rm -f conftest.er1
14725   cat conftest.err >&5
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); } &&
14728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14729   { (case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734   (eval "$ac_try") 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); }; } &&
14738          { ac_try='test -s conftest.$ac_objext'
14739   { (case "(($ac_try" in
14740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741   *) ac_try_echo=$ac_try;;
14742 esac
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744   (eval "$ac_try") 2>&5
14745   ac_status=$?
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); }; }; then
14748   ac_header_compiler=yes
14749 else
14750   echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753         ac_header_compiler=no
14754 fi
14755
14756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14758 echo "${ECHO_T}$ac_header_compiler" >&6; }
14759
14760 # Is the header present?
14761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769 #include <$ac_header>
14770 _ACEOF
14771 if { (ac_try="$ac_cpp conftest.$ac_ext"
14772 case "(($ac_try" in
14773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774   *) ac_try_echo=$ac_try;;
14775 esac
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14778   ac_status=$?
14779   grep -v '^ *+' conftest.er1 >conftest.err
14780   rm -f conftest.er1
14781   cat conftest.err >&5
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); } >/dev/null; then
14784   if test -s conftest.err; then
14785     ac_cpp_err=$ac_c_preproc_warn_flag
14786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14787   else
14788     ac_cpp_err=
14789   fi
14790 else
14791   ac_cpp_err=yes
14792 fi
14793 if test -z "$ac_cpp_err"; then
14794   ac_header_preproc=yes
14795 else
14796   echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799   ac_header_preproc=no
14800 fi
14801
14802 rm -f conftest.err conftest.$ac_ext
14803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14804 echo "${ECHO_T}$ac_header_preproc" >&6; }
14805
14806 # So?  What about this header?
14807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14808   yes:no: )
14809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14813     ac_header_preproc=yes
14814     ;;
14815   no:yes:* )
14816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14828     ( cat <<\_ASBOX
14829 ## ------------------------------ ##
14830 ## Report this to bugs@yourdomain ##
14831 ## ------------------------------ ##
14832 _ASBOX
14833      ) | sed "s/^/$as_me: WARNING:     /" >&2
14834     ;;
14835 esac
14836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14839   echo $ECHO_N "(cached) $ECHO_C" >&6
14840 else
14841   eval "$as_ac_Header=\$ac_header_preproc"
14842 fi
14843 ac_res=`eval echo '${'$as_ac_Header'}'`
14844                { echo "$as_me:$LINENO: result: $ac_res" >&5
14845 echo "${ECHO_T}$ac_res" >&6; }
14846
14847 fi
14848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14849   cat >>confdefs.h <<_ACEOF
14850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14851 _ACEOF
14852
14853 fi
14854
14855 done
14856
14857
14858
14859
14860
14861 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14862 do
14863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14865   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14868   echo $ECHO_N "(cached) $ECHO_C" >&6
14869 fi
14870 ac_res=`eval echo '${'$as_ac_Header'}'`
14871                { echo "$as_me:$LINENO: result: $ac_res" >&5
14872 echo "${ECHO_T}$ac_res" >&6; }
14873 else
14874   # Is the header compilable?
14875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h.  */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h.  */
14883 $ac_includes_default
14884 #include <$ac_header>
14885 _ACEOF
14886 rm -f conftest.$ac_objext
14887 if { (ac_try="$ac_compile"
14888 case "(($ac_try" in
14889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890   *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893   (eval "$ac_compile") 2>conftest.er1
14894   ac_status=$?
14895   grep -v '^ *+' conftest.er1 >conftest.err
14896   rm -f conftest.er1
14897   cat conftest.err >&5
14898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); } &&
14900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14901   { (case "(($ac_try" in
14902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903   *) ac_try_echo=$ac_try;;
14904 esac
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906   (eval "$ac_try") 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; } &&
14910          { ac_try='test -s conftest.$ac_objext'
14911   { (case "(($ac_try" in
14912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913   *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916   (eval "$ac_try") 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); }; }; then
14920   ac_header_compiler=yes
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925         ac_header_compiler=no
14926 fi
14927
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14930 echo "${ECHO_T}$ac_header_compiler" >&6; }
14931
14932 # Is the header present?
14933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h.  */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h.  */
14941 #include <$ac_header>
14942 _ACEOF
14943 if { (ac_try="$ac_cpp conftest.$ac_ext"
14944 case "(($ac_try" in
14945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946   *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14950   ac_status=$?
14951   grep -v '^ *+' conftest.er1 >conftest.err
14952   rm -f conftest.er1
14953   cat conftest.err >&5
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); } >/dev/null; then
14956   if test -s conftest.err; then
14957     ac_cpp_err=$ac_c_preproc_warn_flag
14958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14959   else
14960     ac_cpp_err=
14961   fi
14962 else
14963   ac_cpp_err=yes
14964 fi
14965 if test -z "$ac_cpp_err"; then
14966   ac_header_preproc=yes
14967 else
14968   echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14970
14971   ac_header_preproc=no
14972 fi
14973
14974 rm -f conftest.err conftest.$ac_ext
14975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14976 echo "${ECHO_T}$ac_header_preproc" >&6; }
14977
14978 # So?  What about this header?
14979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14980   yes:no: )
14981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14985     ac_header_preproc=yes
14986     ;;
14987   no:yes:* )
14988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14990     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14991 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14992     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14994     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14995 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15000     ( cat <<\_ASBOX
15001 ## ------------------------------ ##
15002 ## Report this to bugs@yourdomain ##
15003 ## ------------------------------ ##
15004 _ASBOX
15005      ) | sed "s/^/$as_me: WARNING:     /" >&2
15006     ;;
15007 esac
15008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   eval "$as_ac_Header=\$ac_header_preproc"
15014 fi
15015 ac_res=`eval echo '${'$as_ac_Header'}'`
15016                { echo "$as_me:$LINENO: result: $ac_res" >&5
15017 echo "${ECHO_T}$ac_res" >&6; }
15018
15019 fi
15020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15021   cat >>confdefs.h <<_ACEOF
15022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15023 _ACEOF
15024
15025 fi
15026
15027 done
15028
15029
15030 for ac_header in valgrind/valgrind.h
15031 do
15032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15034   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15037   echo $ECHO_N "(cached) $ECHO_C" >&6
15038 fi
15039 ac_res=`eval echo '${'$as_ac_Header'}'`
15040                { echo "$as_me:$LINENO: result: $ac_res" >&5
15041 echo "${ECHO_T}$ac_res" >&6; }
15042 else
15043   # Is the header compilable?
15044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h.  */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h.  */
15052 $ac_includes_default
15053 #include <$ac_header>
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (ac_try="$ac_compile"
15057 case "(($ac_try" in
15058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059   *) ac_try_echo=$ac_try;;
15060 esac
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062   (eval "$ac_compile") 2>conftest.er1
15063   ac_status=$?
15064   grep -v '^ *+' conftest.er1 >conftest.err
15065   rm -f conftest.er1
15066   cat conftest.err >&5
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); } &&
15069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15070   { (case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_try") 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); }; } &&
15079          { ac_try='test -s conftest.$ac_objext'
15080   { (case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085   (eval "$ac_try") 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }; }; then
15089   ac_header_compiler=yes
15090 else
15091   echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15093
15094         ac_header_compiler=no
15095 fi
15096
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15099 echo "${ECHO_T}$ac_header_compiler" >&6; }
15100
15101 # Is the header present?
15102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15104 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h.  */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h.  */
15110 #include <$ac_header>
15111 _ACEOF
15112 if { (ac_try="$ac_cpp conftest.$ac_ext"
15113 case "(($ac_try" in
15114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115   *) ac_try_echo=$ac_try;;
15116 esac
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15119   ac_status=$?
15120   grep -v '^ *+' conftest.er1 >conftest.err
15121   rm -f conftest.er1
15122   cat conftest.err >&5
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); } >/dev/null; then
15125   if test -s conftest.err; then
15126     ac_cpp_err=$ac_c_preproc_warn_flag
15127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15128   else
15129     ac_cpp_err=
15130   fi
15131 else
15132   ac_cpp_err=yes
15133 fi
15134 if test -z "$ac_cpp_err"; then
15135   ac_header_preproc=yes
15136 else
15137   echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15139
15140   ac_header_preproc=no
15141 fi
15142
15143 rm -f conftest.err conftest.$ac_ext
15144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15145 echo "${ECHO_T}$ac_header_preproc" >&6; }
15146
15147 # So?  What about this header?
15148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15149   yes:no: )
15150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15154     ac_header_preproc=yes
15155     ;;
15156   no:yes:* )
15157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15169     ( cat <<\_ASBOX
15170 ## ------------------------------ ##
15171 ## Report this to bugs@yourdomain ##
15172 ## ------------------------------ ##
15173 _ASBOX
15174      ) | sed "s/^/$as_me: WARNING:     /" >&2
15175     ;;
15176 esac
15177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15180   echo $ECHO_N "(cached) $ECHO_C" >&6
15181 else
15182   eval "$as_ac_Header=\$ac_header_preproc"
15183 fi
15184 ac_res=`eval echo '${'$as_ac_Header'}'`
15185                { echo "$as_me:$LINENO: result: $ac_res" >&5
15186 echo "${ECHO_T}$ac_res" >&6; }
15187
15188 fi
15189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15190   cat >>confdefs.h <<_ACEOF
15191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15192 _ACEOF
15193
15194 fi
15195
15196 done
15197
15198
15199 for ac_header in fenv.h
15200 do
15201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15203   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15206   echo $ECHO_N "(cached) $ECHO_C" >&6
15207 fi
15208 ac_res=`eval echo '${'$as_ac_Header'}'`
15209                { echo "$as_me:$LINENO: result: $ac_res" >&5
15210 echo "${ECHO_T}$ac_res" >&6; }
15211 else
15212   # Is the header compilable?
15213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h.  */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h.  */
15221 $ac_includes_default
15222 #include <$ac_header>
15223 _ACEOF
15224 rm -f conftest.$ac_objext
15225 if { (ac_try="$ac_compile"
15226 case "(($ac_try" in
15227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228   *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231   (eval "$ac_compile") 2>conftest.er1
15232   ac_status=$?
15233   grep -v '^ *+' conftest.er1 >conftest.err
15234   rm -f conftest.er1
15235   cat conftest.err >&5
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } &&
15238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239   { (case "(($ac_try" in
15240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241   *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244   (eval "$ac_try") 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; } &&
15248          { ac_try='test -s conftest.$ac_objext'
15249   { (case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_try") 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; }; then
15258   ac_header_compiler=yes
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263         ac_header_compiler=no
15264 fi
15265
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15268 echo "${ECHO_T}$ac_header_compiler" >&6; }
15269
15270 # Is the header present?
15271 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 #include <$ac_header>
15280 _ACEOF
15281 if { (ac_try="$ac_cpp conftest.$ac_ext"
15282 case "(($ac_try" in
15283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284   *) ac_try_echo=$ac_try;;
15285 esac
15286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15288   ac_status=$?
15289   grep -v '^ *+' conftest.er1 >conftest.err
15290   rm -f conftest.er1
15291   cat conftest.err >&5
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); } >/dev/null; then
15294   if test -s conftest.err; then
15295     ac_cpp_err=$ac_c_preproc_warn_flag
15296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15297   else
15298     ac_cpp_err=
15299   fi
15300 else
15301   ac_cpp_err=yes
15302 fi
15303 if test -z "$ac_cpp_err"; then
15304   ac_header_preproc=yes
15305 else
15306   echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15308
15309   ac_header_preproc=no
15310 fi
15311
15312 rm -f conftest.err conftest.$ac_ext
15313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15314 echo "${ECHO_T}$ac_header_preproc" >&6; }
15315
15316 # So?  What about this header?
15317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15318   yes:no: )
15319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15323     ac_header_preproc=yes
15324     ;;
15325   no:yes:* )
15326     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15328     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15329 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15330     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15332     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15333 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15336     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15338     ( cat <<\_ASBOX
15339 ## ------------------------------ ##
15340 ## Report this to bugs@yourdomain ##
15341 ## ------------------------------ ##
15342 _ASBOX
15343      ) | sed "s/^/$as_me: WARNING:     /" >&2
15344     ;;
15345 esac
15346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349   echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351   eval "$as_ac_Header=\$ac_header_preproc"
15352 fi
15353 ac_res=`eval echo '${'$as_ac_Header'}'`
15354                { echo "$as_me:$LINENO: result: $ac_res" >&5
15355 echo "${ECHO_T}$ac_res" >&6; }
15356
15357 fi
15358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15359   cat >>confdefs.h <<_ACEOF
15360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15361 _ACEOF
15362
15363 fi
15364
15365 done
15366
15367 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15368
15369 for ac_header in pthread.h
15370 do
15371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15376   echo $ECHO_N "(cached) $ECHO_C" >&6
15377 fi
15378 ac_res=`eval echo '${'$as_ac_Header'}'`
15379                { echo "$as_me:$LINENO: result: $ac_res" >&5
15380 echo "${ECHO_T}$ac_res" >&6; }
15381 else
15382   # Is the header compilable?
15383 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15385 cat >conftest.$ac_ext <<_ACEOF
15386 /* confdefs.h.  */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h.  */
15391 $ac_includes_default
15392 #include <$ac_header>
15393 _ACEOF
15394 rm -f conftest.$ac_objext
15395 if { (ac_try="$ac_compile"
15396 case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401   (eval "$ac_compile") 2>conftest.er1
15402   ac_status=$?
15403   grep -v '^ *+' conftest.er1 >conftest.err
15404   rm -f conftest.er1
15405   cat conftest.err >&5
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } &&
15408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15409   { (case "(($ac_try" in
15410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411   *) ac_try_echo=$ac_try;;
15412 esac
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414   (eval "$ac_try") 2>&5
15415   ac_status=$?
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); }; } &&
15418          { ac_try='test -s conftest.$ac_objext'
15419   { (case "(($ac_try" in
15420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421   *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424   (eval "$ac_try") 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; }; then
15428   ac_header_compiler=yes
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433         ac_header_compiler=no
15434 fi
15435
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15438 echo "${ECHO_T}$ac_header_compiler" >&6; }
15439
15440 # Is the header present?
15441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h.  */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h.  */
15449 #include <$ac_header>
15450 _ACEOF
15451 if { (ac_try="$ac_cpp conftest.$ac_ext"
15452 case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } >/dev/null; then
15464   if test -s conftest.err; then
15465     ac_cpp_err=$ac_c_preproc_warn_flag
15466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15467   else
15468     ac_cpp_err=
15469   fi
15470 else
15471   ac_cpp_err=yes
15472 fi
15473 if test -z "$ac_cpp_err"; then
15474   ac_header_preproc=yes
15475 else
15476   echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479   ac_header_preproc=no
15480 fi
15481
15482 rm -f conftest.err conftest.$ac_ext
15483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15484 echo "${ECHO_T}$ac_header_preproc" >&6; }
15485
15486 # So?  What about this header?
15487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15488   yes:no: )
15489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15493     ac_header_preproc=yes
15494     ;;
15495   no:yes:* )
15496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15508     ( cat <<\_ASBOX
15509 ## ------------------------------ ##
15510 ## Report this to bugs@yourdomain ##
15511 ## ------------------------------ ##
15512 _ASBOX
15513      ) | sed "s/^/$as_me: WARNING:     /" >&2
15514     ;;
15515 esac
15516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15519   echo $ECHO_N "(cached) $ECHO_C" >&6
15520 else
15521   eval "$as_ac_Header=\$ac_header_preproc"
15522 fi
15523 ac_res=`eval echo '${'$as_ac_Header'}'`
15524                { echo "$as_me:$LINENO: result: $ac_res" >&5
15525 echo "${ECHO_T}$ac_res" >&6; }
15526
15527 fi
15528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15529   cat >>confdefs.h <<_ACEOF
15530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15531 _ACEOF
15532  HAVE_PTHREAD=1
15533
15534 else
15535   HAVE_PTHREAD=0
15536
15537 fi
15538
15539 done
15540
15541 else
15542   HAVE_PTHREAD=0
15543
15544 fi
15545
15546 if test "$llvm_cv_enable_libffi" = "yes" ; then
15547
15548
15549 for ac_header in ffi.h ffi/ffi.h
15550 do
15551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15553   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15556   echo $ECHO_N "(cached) $ECHO_C" >&6
15557 fi
15558 ac_res=`eval echo '${'$as_ac_Header'}'`
15559                { echo "$as_me:$LINENO: result: $ac_res" >&5
15560 echo "${ECHO_T}$ac_res" >&6; }
15561 else
15562   # Is the header compilable?
15563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571 $ac_includes_default
15572 #include <$ac_header>
15573 _ACEOF
15574 rm -f conftest.$ac_objext
15575 if { (ac_try="$ac_compile"
15576 case "(($ac_try" in
15577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578   *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581   (eval "$ac_compile") 2>conftest.er1
15582   ac_status=$?
15583   grep -v '^ *+' conftest.er1 >conftest.err
15584   rm -f conftest.er1
15585   cat conftest.err >&5
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); } &&
15588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15589   { (case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594   (eval "$ac_try") 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; } &&
15598          { ac_try='test -s conftest.$ac_objext'
15599   { (case "(($ac_try" in
15600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601   *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604   (eval "$ac_try") 2>&5
15605   ac_status=$?
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); }; }; then
15608   ac_header_compiler=yes
15609 else
15610   echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613         ac_header_compiler=no
15614 fi
15615
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15618 echo "${ECHO_T}$ac_header_compiler" >&6; }
15619
15620 # Is the header present?
15621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15623 cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629 #include <$ac_header>
15630 _ACEOF
15631 if { (ac_try="$ac_cpp conftest.$ac_ext"
15632 case "(($ac_try" in
15633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634   *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15638   ac_status=$?
15639   grep -v '^ *+' conftest.er1 >conftest.err
15640   rm -f conftest.er1
15641   cat conftest.err >&5
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } >/dev/null; then
15644   if test -s conftest.err; then
15645     ac_cpp_err=$ac_c_preproc_warn_flag
15646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15647   else
15648     ac_cpp_err=
15649   fi
15650 else
15651   ac_cpp_err=yes
15652 fi
15653 if test -z "$ac_cpp_err"; then
15654   ac_header_preproc=yes
15655 else
15656   echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15658
15659   ac_header_preproc=no
15660 fi
15661
15662 rm -f conftest.err conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 echo "${ECHO_T}$ac_header_preproc" >&6; }
15665
15666 # So?  What about this header?
15667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15668   yes:no: )
15669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673     ac_header_preproc=yes
15674     ;;
15675   no:yes:* )
15676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15688     ( cat <<\_ASBOX
15689 ## ------------------------------ ##
15690 ## Report this to bugs@yourdomain ##
15691 ## ------------------------------ ##
15692 _ASBOX
15693      ) | sed "s/^/$as_me: WARNING:     /" >&2
15694     ;;
15695 esac
15696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   eval "$as_ac_Header=\$ac_header_preproc"
15702 fi
15703 ac_res=`eval echo '${'$as_ac_Header'}'`
15704                { echo "$as_me:$LINENO: result: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15706
15707 fi
15708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15709   cat >>confdefs.h <<_ACEOF
15710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15711 _ACEOF
15712
15713 fi
15714
15715 done
15716
15717 fi
15718
15719
15720 for ac_header in CrashReporterClient.h
15721 do
15722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727   echo $ECHO_N "(cached) $ECHO_C" >&6
15728 fi
15729 ac_res=`eval echo '${'$as_ac_Header'}'`
15730                { echo "$as_me:$LINENO: result: $ac_res" >&5
15731 echo "${ECHO_T}$ac_res" >&6; }
15732 else
15733   # Is the header compilable?
15734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15742 $ac_includes_default
15743 #include <$ac_header>
15744 _ACEOF
15745 rm -f conftest.$ac_objext
15746 if { (ac_try="$ac_compile"
15747 case "(($ac_try" in
15748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749   *) ac_try_echo=$ac_try;;
15750 esac
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752   (eval "$ac_compile") 2>conftest.er1
15753   ac_status=$?
15754   grep -v '^ *+' conftest.er1 >conftest.err
15755   rm -f conftest.er1
15756   cat conftest.err >&5
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); } &&
15759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760   { (case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765   (eval "$ac_try") 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; } &&
15769          { ac_try='test -s conftest.$ac_objext'
15770   { (case "(($ac_try" in
15771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772   *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775   (eval "$ac_try") 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_header_compiler=yes
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784         ac_header_compiler=no
15785 fi
15786
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15789 echo "${ECHO_T}$ac_header_compiler" >&6; }
15790
15791 # Is the header present?
15792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800 #include <$ac_header>
15801 _ACEOF
15802 if { (ac_try="$ac_cpp conftest.$ac_ext"
15803 case "(($ac_try" in
15804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805   *) ac_try_echo=$ac_try;;
15806 esac
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15809   ac_status=$?
15810   grep -v '^ *+' conftest.er1 >conftest.err
15811   rm -f conftest.er1
15812   cat conftest.err >&5
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); } >/dev/null; then
15815   if test -s conftest.err; then
15816     ac_cpp_err=$ac_c_preproc_warn_flag
15817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15818   else
15819     ac_cpp_err=
15820   fi
15821 else
15822   ac_cpp_err=yes
15823 fi
15824 if test -z "$ac_cpp_err"; then
15825   ac_header_preproc=yes
15826 else
15827   echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830   ac_header_preproc=no
15831 fi
15832
15833 rm -f conftest.err conftest.$ac_ext
15834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15835 echo "${ECHO_T}$ac_header_preproc" >&6; }
15836
15837 # So?  What about this header?
15838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15839   yes:no: )
15840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15844     ac_header_preproc=yes
15845     ;;
15846   no:yes:* )
15847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15859     ( cat <<\_ASBOX
15860 ## ------------------------------ ##
15861 ## Report this to bugs@yourdomain ##
15862 ## ------------------------------ ##
15863 _ASBOX
15864      ) | sed "s/^/$as_me: WARNING:     /" >&2
15865     ;;
15866 esac
15867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870   echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15872   eval "$as_ac_Header=\$ac_header_preproc"
15873 fi
15874 ac_res=`eval echo '${'$as_ac_Header'}'`
15875                { echo "$as_me:$LINENO: result: $ac_res" >&5
15876 echo "${ECHO_T}$ac_res" >&6; }
15877
15878 fi
15879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15880   cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15882 _ACEOF
15883
15884 fi
15885
15886 done
15887
15888
15889 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15890 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h.  */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h.  */
15897 extern const char *__crashreporter_info__;
15898       int main() {
15899         __crashreporter_info__ = "test";
15900         return 0;
15901       }
15902
15903 _ACEOF
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (ac_try="$ac_link"
15906 case "(($ac_try" in
15907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908   *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911   (eval "$ac_link") 2>conftest.er1
15912   ac_status=$?
15913   grep -v '^ *+' conftest.er1 >conftest.err
15914   rm -f conftest.er1
15915   cat conftest.err >&5
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); } &&
15918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15919   { (case "(($ac_try" in
15920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921   *) ac_try_echo=$ac_try;;
15922 esac
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924   (eval "$ac_try") 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; } &&
15928          { ac_try='test -s conftest$ac_exeext'
15929   { (case "(($ac_try" in
15930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931   *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934   (eval "$ac_try") 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; }; then
15938   { echo "$as_me:$LINENO: result: yes" >&5
15939 echo "${ECHO_T}yes" >&6; }
15940
15941 cat >>confdefs.h <<\_ACEOF
15942 #define HAVE_CRASHREPORTER_INFO 1
15943 _ACEOF
15944
15945 else
15946   echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949         { echo "$as_me:$LINENO: result: no" >&5
15950 echo "${ECHO_T}no" >&6; }
15951
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_CRASHREPORTER_INFO 0
15954 _ACEOF
15955
15956 fi
15957
15958 rm -f core conftest.err conftest.$ac_objext \
15959       conftest$ac_exeext conftest.$ac_ext
15960
15961
15962
15963
15964   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15965 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15966 if test "${ac_cv_huge_val_sanity+set}" = set; then
15967   echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969
15970     ac_ext=cpp
15971 ac_cpp='$CXXCPP $CPPFLAGS'
15972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15975
15976     ac_save_CXXFLAGS=$CXXFLAGS
15977     CXXFLAGS="$CXXFLAGS -pedantic"
15978     if test "$cross_compiling" = yes; then
15979   ac_cv_huge_val_sanity=yes
15980 else
15981   cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987 #include <math.h>
15988 int
15989 main ()
15990 {
15991 double x = HUGE_VAL; return x != x;
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_link") 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16007   { (case "(($ac_try" in
16008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009   *) ac_try_echo=$ac_try;;
16010 esac
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012   (eval "$ac_try") 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); }; }; then
16016   ac_cv_huge_val_sanity=yes
16017 else
16018   echo "$as_me: program exited with status $ac_status" >&5
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 ( exit $ac_status )
16023 ac_cv_huge_val_sanity=no
16024 fi
16025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16026 fi
16027
16028
16029     CXXFLAGS=$ac_save_CXXFLAGS
16030     ac_ext=c
16031 ac_cpp='$CPP $CPPFLAGS'
16032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16035
16036
16037 fi
16038 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16039 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16040   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16041
16042
16043 { echo "$as_me:$LINENO: checking for pid_t" >&5
16044 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16045 if test "${ac_cv_type_pid_t+set}" = set; then
16046   echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048   cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h.  */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h.  */
16054 $ac_includes_default
16055 typedef pid_t ac__type_new_;
16056 int
16057 main ()
16058 {
16059 if ((ac__type_new_ *) 0)
16060   return 0;
16061 if (sizeof (ac__type_new_))
16062   return 0;
16063   ;
16064   return 0;
16065 }
16066 _ACEOF
16067 rm -f conftest.$ac_objext
16068 if { (ac_try="$ac_compile"
16069 case "(($ac_try" in
16070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071   *) ac_try_echo=$ac_try;;
16072 esac
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074   (eval "$ac_compile") 2>conftest.er1
16075   ac_status=$?
16076   grep -v '^ *+' conftest.er1 >conftest.err
16077   rm -f conftest.er1
16078   cat conftest.err >&5
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); } &&
16081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16082   { (case "(($ac_try" in
16083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084   *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087   (eval "$ac_try") 2>&5
16088   ac_status=$?
16089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090   (exit $ac_status); }; } &&
16091          { ac_try='test -s conftest.$ac_objext'
16092   { (case "(($ac_try" in
16093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094   *) ac_try_echo=$ac_try;;
16095 esac
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097   (eval "$ac_try") 2>&5
16098   ac_status=$?
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); }; }; then
16101   ac_cv_type_pid_t=yes
16102 else
16103   echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16105
16106         ac_cv_type_pid_t=no
16107 fi
16108
16109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110 fi
16111 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16112 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16113 if test $ac_cv_type_pid_t = yes; then
16114   :
16115 else
16116
16117 cat >>confdefs.h <<_ACEOF
16118 #define pid_t int
16119 _ACEOF
16120
16121 fi
16122
16123 { echo "$as_me:$LINENO: checking for size_t" >&5
16124 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16125 if test "${ac_cv_type_size_t+set}" = set; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128   cat >conftest.$ac_ext <<_ACEOF
16129 /* confdefs.h.  */
16130 _ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h.  */
16134 $ac_includes_default
16135 typedef size_t ac__type_new_;
16136 int
16137 main ()
16138 {
16139 if ((ac__type_new_ *) 0)
16140   return 0;
16141 if (sizeof (ac__type_new_))
16142   return 0;
16143   ;
16144   return 0;
16145 }
16146 _ACEOF
16147 rm -f conftest.$ac_objext
16148 if { (ac_try="$ac_compile"
16149 case "(($ac_try" in
16150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151   *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154   (eval "$ac_compile") 2>conftest.er1
16155   ac_status=$?
16156   grep -v '^ *+' conftest.er1 >conftest.err
16157   rm -f conftest.er1
16158   cat conftest.err >&5
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); } &&
16161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16162   { (case "(($ac_try" in
16163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164   *) ac_try_echo=$ac_try;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167   (eval "$ac_try") 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); }; } &&
16171          { ac_try='test -s conftest.$ac_objext'
16172   { (case "(($ac_try" in
16173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174   *) ac_try_echo=$ac_try;;
16175 esac
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177   (eval "$ac_try") 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; }; then
16181   ac_cv_type_size_t=yes
16182 else
16183   echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16185
16186         ac_cv_type_size_t=no
16187 fi
16188
16189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190 fi
16191 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16192 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16193 if test $ac_cv_type_size_t = yes; then
16194   :
16195 else
16196
16197 cat >>confdefs.h <<_ACEOF
16198 #define size_t unsigned int
16199 _ACEOF
16200
16201 fi
16202
16203
16204 cat >>confdefs.h <<_ACEOF
16205 #define RETSIGTYPE void
16206 _ACEOF
16207
16208 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16209 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16210 if test "${ac_cv_struct_tm+set}" = set; then
16211   echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213   cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219 #include <sys/types.h>
16220 #include <time.h>
16221
16222 int
16223 main ()
16224 {
16225 struct tm *tp; tp->tm_sec;
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 rm -f conftest.$ac_objext
16231 if { (ac_try="$ac_compile"
16232 case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_compile") 2>conftest.er1
16238   ac_status=$?
16239   grep -v '^ *+' conftest.er1 >conftest.err
16240   rm -f conftest.er1
16241   cat conftest.err >&5
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } &&
16244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245   { (case "(($ac_try" in
16246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247   *) ac_try_echo=$ac_try;;
16248 esac
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250   (eval "$ac_try") 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); }; } &&
16254          { ac_try='test -s conftest.$ac_objext'
16255   { (case "(($ac_try" in
16256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257   *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260   (eval "$ac_try") 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   ac_cv_struct_tm=time.h
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269         ac_cv_struct_tm=sys/time.h
16270 fi
16271
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 fi
16274 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16275 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16276 if test $ac_cv_struct_tm = sys/time.h; then
16277
16278 cat >>confdefs.h <<\_ACEOF
16279 #define TM_IN_SYS_TIME 1
16280 _ACEOF
16281
16282 fi
16283
16284 { echo "$as_me:$LINENO: checking for int64_t" >&5
16285 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16286 if test "${ac_cv_type_int64_t+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289   cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295 $ac_includes_default
16296 typedef int64_t ac__type_new_;
16297 int
16298 main ()
16299 {
16300 if ((ac__type_new_ *) 0)
16301   return 0;
16302 if (sizeof (ac__type_new_))
16303   return 0;
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315   (eval "$ac_compile") 2>conftest.er1
16316   ac_status=$?
16317   grep -v '^ *+' conftest.er1 >conftest.err
16318   rm -f conftest.er1
16319   cat conftest.err >&5
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } &&
16322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323   { (case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_try") 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; } &&
16332          { ac_try='test -s conftest.$ac_objext'
16333   { (case "(($ac_try" in
16334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335   *) ac_try_echo=$ac_try;;
16336 esac
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338   (eval "$ac_try") 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; }; then
16342   ac_cv_type_int64_t=yes
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347         ac_cv_type_int64_t=no
16348 fi
16349
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351 fi
16352 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16353 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16354 if test $ac_cv_type_int64_t = yes; then
16355
16356 cat >>confdefs.h <<_ACEOF
16357 #define HAVE_INT64_T 1
16358 _ACEOF
16359
16360
16361 else
16362   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16363 echo "$as_me: error: Type int64_t required but not found" >&2;}
16364    { (exit 1); exit 1; }; }
16365 fi
16366
16367 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16368 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16369 if test "${ac_cv_type_uint64_t+set}" = set; then
16370   echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372   cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 $ac_includes_default
16379 typedef uint64_t ac__type_new_;
16380 int
16381 main ()
16382 {
16383 if ((ac__type_new_ *) 0)
16384   return 0;
16385 if (sizeof (ac__type_new_))
16386   return 0;
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_compile") 2>conftest.er1
16399   ac_status=$?
16400   grep -v '^ *+' conftest.er1 >conftest.err
16401   rm -f conftest.er1
16402   cat conftest.err >&5
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); } &&
16405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406   { (case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_try") 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; } &&
16415          { ac_try='test -s conftest.$ac_objext'
16416   { (case "(($ac_try" in
16417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418   *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421   (eval "$ac_try") 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425   ac_cv_type_uint64_t=yes
16426 else
16427   echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430         ac_cv_type_uint64_t=no
16431 fi
16432
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 fi
16435 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16436 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16437 if test $ac_cv_type_uint64_t = yes; then
16438
16439 cat >>confdefs.h <<_ACEOF
16440 #define HAVE_UINT64_T 1
16441 _ACEOF
16442
16443
16444 else
16445   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16446 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16447 if test "${ac_cv_type_u_int64_t+set}" = set; then
16448   echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450   cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456 $ac_includes_default
16457 typedef u_int64_t ac__type_new_;
16458 int
16459 main ()
16460 {
16461 if ((ac__type_new_ *) 0)
16462   return 0;
16463 if (sizeof (ac__type_new_))
16464   return 0;
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 rm -f conftest.$ac_objext
16470 if { (ac_try="$ac_compile"
16471 case "(($ac_try" in
16472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473   *) ac_try_echo=$ac_try;;
16474 esac
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476   (eval "$ac_compile") 2>conftest.er1
16477   ac_status=$?
16478   grep -v '^ *+' conftest.er1 >conftest.err
16479   rm -f conftest.er1
16480   cat conftest.err >&5
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); } &&
16483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484   { (case "(($ac_try" in
16485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486   *) ac_try_echo=$ac_try;;
16487 esac
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489   (eval "$ac_try") 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; } &&
16493          { ac_try='test -s conftest.$ac_objext'
16494   { (case "(($ac_try" in
16495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496   *) ac_try_echo=$ac_try;;
16497 esac
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499   (eval "$ac_try") 2>&5
16500   ac_status=$?
16501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502   (exit $ac_status); }; }; then
16503   ac_cv_type_u_int64_t=yes
16504 else
16505   echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16507
16508         ac_cv_type_u_int64_t=no
16509 fi
16510
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 fi
16513 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16514 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16515 if test $ac_cv_type_u_int64_t = yes; then
16516
16517 cat >>confdefs.h <<_ACEOF
16518 #define HAVE_U_INT64_T 1
16519 _ACEOF
16520
16521
16522 else
16523   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16524 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16525    { (exit 1); exit 1; }; }
16526 fi
16527
16528 fi
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16540 do
16541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547   cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16555 #define $ac_func innocuous_$ac_func
16556
16557 /* System header to define __stub macros and hopefully few prototypes,
16558     which can conflict with char $ac_func (); below.
16559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16560     <limits.h> exists even on freestanding compilers.  */
16561
16562 #ifdef __STDC__
16563 # include <limits.h>
16564 #else
16565 # include <assert.h>
16566 #endif
16567
16568 #undef $ac_func
16569
16570 /* Override any GCC internal prototype to avoid an error.
16571    Use char because int might match the return type of a GCC
16572    builtin and then its argument prototype would still apply.  */
16573 #ifdef __cplusplus
16574 extern "C"
16575 #endif
16576 char $ac_func ();
16577 /* The GNU C library defines this for functions which it implements
16578     to always fail with ENOSYS.  Some functions are actually named
16579     something starting with __ and the normal name is an alias.  */
16580 #if defined __stub_$ac_func || defined __stub___$ac_func
16581 choke me
16582 #endif
16583
16584 int
16585 main ()
16586 {
16587 return $ac_func ();
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_link") 2>conftest.er1
16600   ac_status=$?
16601   grep -v '^ *+' conftest.er1 >conftest.err
16602   rm -f conftest.er1
16603   cat conftest.err >&5
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); } &&
16606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607   { (case "(($ac_try" in
16608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609   *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612   (eval "$ac_try") 2>&5
16613   ac_status=$?
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); }; } &&
16616          { ac_try='test -s conftest$ac_exeext'
16617   { (case "(($ac_try" in
16618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619   *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622   (eval "$ac_try") 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   eval "$as_ac_var=yes"
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631         eval "$as_ac_var=no"
16632 fi
16633
16634 rm -f core conftest.err conftest.$ac_objext \
16635       conftest$ac_exeext conftest.$ac_ext
16636 fi
16637 ac_res=`eval echo '${'$as_ac_var'}'`
16638                { echo "$as_me:$LINENO: result: $ac_res" >&5
16639 echo "${ECHO_T}$ac_res" >&6; }
16640 if test `eval echo '${'$as_ac_var'}'` = yes; then
16641   cat >>confdefs.h <<_ACEOF
16642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16643 _ACEOF
16644
16645 fi
16646 done
16647
16648
16649
16650
16651
16652 for ac_func in powf fmodf strtof round
16653 do
16654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16658   echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660   cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h.  */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h.  */
16666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16668 #define $ac_func innocuous_$ac_func
16669
16670 /* System header to define __stub macros and hopefully few prototypes,
16671     which can conflict with char $ac_func (); below.
16672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16673     <limits.h> exists even on freestanding compilers.  */
16674
16675 #ifdef __STDC__
16676 # include <limits.h>
16677 #else
16678 # include <assert.h>
16679 #endif
16680
16681 #undef $ac_func
16682
16683 /* Override any GCC internal prototype to avoid an error.
16684    Use char because int might match the return type of a GCC
16685    builtin and then its argument prototype would still apply.  */
16686 #ifdef __cplusplus
16687 extern "C"
16688 #endif
16689 char $ac_func ();
16690 /* The GNU C library defines this for functions which it implements
16691     to always fail with ENOSYS.  Some functions are actually named
16692     something starting with __ and the normal name is an alias.  */
16693 #if defined __stub_$ac_func || defined __stub___$ac_func
16694 choke me
16695 #endif
16696
16697 int
16698 main ()
16699 {
16700 return $ac_func ();
16701   ;
16702   return 0;
16703 }
16704 _ACEOF
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (ac_try="$ac_link"
16707 case "(($ac_try" in
16708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709   *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712   (eval "$ac_link") 2>conftest.er1
16713   ac_status=$?
16714   grep -v '^ *+' conftest.er1 >conftest.err
16715   rm -f conftest.er1
16716   cat conftest.err >&5
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16720   { (case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_try") 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; } &&
16729          { ac_try='test -s conftest$ac_exeext'
16730   { (case "(($ac_try" in
16731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732   *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735   (eval "$ac_try") 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; }; then
16739   eval "$as_ac_var=yes"
16740 else
16741   echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744         eval "$as_ac_var=no"
16745 fi
16746
16747 rm -f core conftest.err conftest.$ac_objext \
16748       conftest$ac_exeext conftest.$ac_ext
16749 fi
16750 ac_res=`eval echo '${'$as_ac_var'}'`
16751                { echo "$as_me:$LINENO: result: $ac_res" >&5
16752 echo "${ECHO_T}$ac_res" >&6; }
16753 if test `eval echo '${'$as_ac_var'}'` = yes; then
16754   cat >>confdefs.h <<_ACEOF
16755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16756 _ACEOF
16757
16758 fi
16759 done
16760
16761
16762
16763
16764
16765
16766 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16767 do
16768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h.  */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h.  */
16780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16782 #define $ac_func innocuous_$ac_func
16783
16784 /* System header to define __stub macros and hopefully few prototypes,
16785     which can conflict with char $ac_func (); below.
16786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787     <limits.h> exists even on freestanding compilers.  */
16788
16789 #ifdef __STDC__
16790 # include <limits.h>
16791 #else
16792 # include <assert.h>
16793 #endif
16794
16795 #undef $ac_func
16796
16797 /* Override any GCC internal prototype to avoid an error.
16798    Use char because int might match the return type of a GCC
16799    builtin and then its argument prototype would still apply.  */
16800 #ifdef __cplusplus
16801 extern "C"
16802 #endif
16803 char $ac_func ();
16804 /* The GNU C library defines this for functions which it implements
16805     to always fail with ENOSYS.  Some functions are actually named
16806     something starting with __ and the normal name is an alias.  */
16807 #if defined __stub_$ac_func || defined __stub___$ac_func
16808 choke me
16809 #endif
16810
16811 int
16812 main ()
16813 {
16814 return $ac_func ();
16815   ;
16816   return 0;
16817 }
16818 _ACEOF
16819 rm -f conftest.$ac_objext conftest$ac_exeext
16820 if { (ac_try="$ac_link"
16821 case "(($ac_try" in
16822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823   *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826   (eval "$ac_link") 2>conftest.er1
16827   ac_status=$?
16828   grep -v '^ *+' conftest.er1 >conftest.err
16829   rm -f conftest.er1
16830   cat conftest.err >&5
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); } &&
16833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834   { (case "(($ac_try" in
16835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836   *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839   (eval "$ac_try") 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; } &&
16843          { ac_try='test -s conftest$ac_exeext'
16844   { (case "(($ac_try" in
16845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846   *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849   (eval "$ac_try") 2>&5
16850   ac_status=$?
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); }; }; then
16853   eval "$as_ac_var=yes"
16854 else
16855   echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16857
16858         eval "$as_ac_var=no"
16859 fi
16860
16861 rm -f core conftest.err conftest.$ac_objext \
16862       conftest$ac_exeext conftest.$ac_ext
16863 fi
16864 ac_res=`eval echo '${'$as_ac_var'}'`
16865                { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868   cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16870 _ACEOF
16871
16872 fi
16873 done
16874
16875
16876
16877
16878 for ac_func in isatty mkdtemp mkstemp
16879 do
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16894 #define $ac_func innocuous_$ac_func
16895
16896 /* System header to define __stub macros and hopefully few prototypes,
16897     which can conflict with char $ac_func (); below.
16898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899     <limits.h> exists even on freestanding compilers.  */
16900
16901 #ifdef __STDC__
16902 # include <limits.h>
16903 #else
16904 # include <assert.h>
16905 #endif
16906
16907 #undef $ac_func
16908
16909 /* Override any GCC internal prototype to avoid an error.
16910    Use char because int might match the return type of a GCC
16911    builtin and then its argument prototype would still apply.  */
16912 #ifdef __cplusplus
16913 extern "C"
16914 #endif
16915 char $ac_func ();
16916 /* The GNU C library defines this for functions which it implements
16917     to always fail with ENOSYS.  Some functions are actually named
16918     something starting with __ and the normal name is an alias.  */
16919 #if defined __stub_$ac_func || defined __stub___$ac_func
16920 choke me
16921 #endif
16922
16923 int
16924 main ()
16925 {
16926 return $ac_func ();
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_link") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946   { (case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951   (eval "$ac_try") 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; } &&
16955          { ac_try='test -s conftest$ac_exeext'
16956   { (case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_try") 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; }; then
16965   eval "$as_ac_var=yes"
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970         eval "$as_ac_var=no"
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext \
16974       conftest$ac_exeext conftest.$ac_ext
16975 fi
16976 ac_res=`eval echo '${'$as_ac_var'}'`
16977                { echo "$as_me:$LINENO: result: $ac_res" >&5
16978 echo "${ECHO_T}$ac_res" >&6; }
16979 if test `eval echo '${'$as_ac_var'}'` = yes; then
16980   cat >>confdefs.h <<_ACEOF
16981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16982 _ACEOF
16983
16984 fi
16985 done
16986
16987
16988
16989
16990
16991
16992
16993 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16994 do
16995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16996 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16998 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16999   echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001   cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17009 #define $ac_func innocuous_$ac_func
17010
17011 /* System header to define __stub macros and hopefully few prototypes,
17012     which can conflict with char $ac_func (); below.
17013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17014     <limits.h> exists even on freestanding compilers.  */
17015
17016 #ifdef __STDC__
17017 # include <limits.h>
17018 #else
17019 # include <assert.h>
17020 #endif
17021
17022 #undef $ac_func
17023
17024 /* Override any GCC internal prototype to avoid an error.
17025    Use char because int might match the return type of a GCC
17026    builtin and then its argument prototype would still apply.  */
17027 #ifdef __cplusplus
17028 extern "C"
17029 #endif
17030 char $ac_func ();
17031 /* The GNU C library defines this for functions which it implements
17032     to always fail with ENOSYS.  Some functions are actually named
17033     something starting with __ and the normal name is an alias.  */
17034 #if defined __stub_$ac_func || defined __stub___$ac_func
17035 choke me
17036 #endif
17037
17038 int
17039 main ()
17040 {
17041 return $ac_func ();
17042   ;
17043   return 0;
17044 }
17045 _ACEOF
17046 rm -f conftest.$ac_objext conftest$ac_exeext
17047 if { (ac_try="$ac_link"
17048 case "(($ac_try" in
17049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050   *) ac_try_echo=$ac_try;;
17051 esac
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053   (eval "$ac_link") 2>conftest.er1
17054   ac_status=$?
17055   grep -v '^ *+' conftest.er1 >conftest.err
17056   rm -f conftest.er1
17057   cat conftest.err >&5
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } &&
17060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17061   { (case "(($ac_try" in
17062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063   *) ac_try_echo=$ac_try;;
17064 esac
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066   (eval "$ac_try") 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; } &&
17070          { ac_try='test -s conftest$ac_exeext'
17071   { (case "(($ac_try" in
17072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073   *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076   (eval "$ac_try") 2>&5
17077   ac_status=$?
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); }; }; then
17080   eval "$as_ac_var=yes"
17081 else
17082   echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17084
17085         eval "$as_ac_var=no"
17086 fi
17087
17088 rm -f core conftest.err conftest.$ac_objext \
17089       conftest$ac_exeext conftest.$ac_ext
17090 fi
17091 ac_res=`eval echo '${'$as_ac_var'}'`
17092                { echo "$as_me:$LINENO: result: $ac_res" >&5
17093 echo "${ECHO_T}$ac_res" >&6; }
17094 if test `eval echo '${'$as_ac_var'}'` = yes; then
17095   cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17097 _ACEOF
17098
17099 fi
17100 done
17101
17102
17103
17104
17105 for ac_func in strerror strerror_r setenv
17106 do
17107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113   cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h.  */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h.  */
17119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17121 #define $ac_func innocuous_$ac_func
17122
17123 /* System header to define __stub macros and hopefully few prototypes,
17124     which can conflict with char $ac_func (); below.
17125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126     <limits.h> exists even on freestanding compilers.  */
17127
17128 #ifdef __STDC__
17129 # include <limits.h>
17130 #else
17131 # include <assert.h>
17132 #endif
17133
17134 #undef $ac_func
17135
17136 /* Override any GCC internal prototype to avoid an error.
17137    Use char because int might match the return type of a GCC
17138    builtin and then its argument prototype would still apply.  */
17139 #ifdef __cplusplus
17140 extern "C"
17141 #endif
17142 char $ac_func ();
17143 /* The GNU C library defines this for functions which it implements
17144     to always fail with ENOSYS.  Some functions are actually named
17145     something starting with __ and the normal name is an alias.  */
17146 #if defined __stub_$ac_func || defined __stub___$ac_func
17147 choke me
17148 #endif
17149
17150 int
17151 main ()
17152 {
17153 return $ac_func ();
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165   (eval "$ac_link") 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173   { (case "(($ac_try" in
17174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175   *) ac_try_echo=$ac_try;;
17176 esac
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178   (eval "$ac_try") 2>&5
17179   ac_status=$?
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); }; } &&
17182          { ac_try='test -s conftest$ac_exeext'
17183   { (case "(($ac_try" in
17184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185   *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188   (eval "$ac_try") 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; }; then
17192   eval "$as_ac_var=yes"
17193 else
17194   echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197         eval "$as_ac_var=no"
17198 fi
17199
17200 rm -f core conftest.err conftest.$ac_objext \
17201       conftest$ac_exeext conftest.$ac_ext
17202 fi
17203 ac_res=`eval echo '${'$as_ac_var'}'`
17204                { echo "$as_me:$LINENO: result: $ac_res" >&5
17205 echo "${ECHO_T}$ac_res" >&6; }
17206 if test `eval echo '${'$as_ac_var'}'` = yes; then
17207   cat >>confdefs.h <<_ACEOF
17208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17209 _ACEOF
17210
17211 fi
17212 done
17213
17214
17215
17216
17217
17218 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17219 do
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17234 #define $ac_func innocuous_$ac_func
17235
17236 /* System header to define __stub macros and hopefully few prototypes,
17237     which can conflict with char $ac_func (); below.
17238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239     <limits.h> exists even on freestanding compilers.  */
17240
17241 #ifdef __STDC__
17242 # include <limits.h>
17243 #else
17244 # include <assert.h>
17245 #endif
17246
17247 #undef $ac_func
17248
17249 /* Override any GCC internal prototype to avoid an error.
17250    Use char because int might match the return type of a GCC
17251    builtin and then its argument prototype would still apply.  */
17252 #ifdef __cplusplus
17253 extern "C"
17254 #endif
17255 char $ac_func ();
17256 /* The GNU C library defines this for functions which it implements
17257     to always fail with ENOSYS.  Some functions are actually named
17258     something starting with __ and the normal name is an alias.  */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17260 choke me
17261 #endif
17262
17263 int
17264 main ()
17265 {
17266 return $ac_func ();
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_link") 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } &&
17285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17286   { (case "(($ac_try" in
17287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288   *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291   (eval "$ac_try") 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; } &&
17295          { ac_try='test -s conftest$ac_exeext'
17296   { (case "(($ac_try" in
17297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298   *) ac_try_echo=$ac_try;;
17299 esac
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301   (eval "$ac_try") 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; }; then
17305   eval "$as_ac_var=yes"
17306 else
17307   echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310         eval "$as_ac_var=no"
17311 fi
17312
17313 rm -f core conftest.err conftest.$ac_objext \
17314       conftest$ac_exeext conftest.$ac_ext
17315 fi
17316 ac_res=`eval echo '${'$as_ac_var'}'`
17317                { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17320   cat >>confdefs.h <<_ACEOF
17321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17322 _ACEOF
17323
17324 fi
17325 done
17326
17327
17328
17329
17330
17331
17332 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17333 do
17334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17348 #define $ac_func innocuous_$ac_func
17349
17350 /* System header to define __stub macros and hopefully few prototypes,
17351     which can conflict with char $ac_func (); below.
17352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353     <limits.h> exists even on freestanding compilers.  */
17354
17355 #ifdef __STDC__
17356 # include <limits.h>
17357 #else
17358 # include <assert.h>
17359 #endif
17360
17361 #undef $ac_func
17362
17363 /* Override any GCC internal prototype to avoid an error.
17364    Use char because int might match the return type of a GCC
17365    builtin and then its argument prototype would still apply.  */
17366 #ifdef __cplusplus
17367 extern "C"
17368 #endif
17369 char $ac_func ();
17370 /* The GNU C library defines this for functions which it implements
17371     to always fail with ENOSYS.  Some functions are actually named
17372     something starting with __ and the normal name is an alias.  */
17373 #if defined __stub_$ac_func || defined __stub___$ac_func
17374 choke me
17375 #endif
17376
17377 int
17378 main ()
17379 {
17380 return $ac_func ();
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_link") 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } &&
17399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400   { (case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_try") 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; } &&
17409          { ac_try='test -s conftest$ac_exeext'
17410   { (case "(($ac_try" in
17411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412   *) ac_try_echo=$ac_try;;
17413 esac
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415   (eval "$ac_try") 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); }; }; then
17419   eval "$as_ac_var=yes"
17420 else
17421   echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424         eval "$as_ac_var=no"
17425 fi
17426
17427 rm -f core conftest.err conftest.$ac_objext \
17428       conftest$ac_exeext conftest.$ac_ext
17429 fi
17430 ac_res=`eval echo '${'$as_ac_var'}'`
17431                { echo "$as_me:$LINENO: result: $ac_res" >&5
17432 echo "${ECHO_T}$ac_res" >&6; }
17433 if test `eval echo '${'$as_ac_var'}'` = yes; then
17434   cat >>confdefs.h <<_ACEOF
17435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17436 _ACEOF
17437
17438 fi
17439 done
17440
17441 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17442 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17443 if test "${llvm_cv_c_printf_a+set}" = set; then
17444   echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446   ac_ext=c
17447 ac_cpp='$CPP $CPPFLAGS'
17448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17451
17452  if test "$cross_compiling" = yes; then
17453   llvmac_cv_c_printf_a=no
17454 else
17455   cat >conftest.$ac_ext <<_ACEOF
17456
17457   /* confdefs.h.  */
17458 _ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h.  */
17462
17463 #include <stdio.h>
17464 #include <stdlib.h>
17465
17466 int
17467 main ()
17468 {
17469
17470 volatile double A, B;
17471 char Buffer[100];
17472 A = 1;
17473 A /= 10.0;
17474 sprintf(Buffer, "%a", A);
17475 B = atof(Buffer);
17476 if (A != B)
17477   return (1);
17478 if (A != 0x1.999999999999ap-4)
17479   return (1);
17480 return (0);
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest$ac_exeext
17486 if { (ac_try="$ac_link"
17487 case "(($ac_try" in
17488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489   *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492   (eval "$ac_link") 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17496   { (case "(($ac_try" in
17497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498   *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501   (eval "$ac_try") 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; }; then
17505   llvm_cv_c_printf_a=yes
17506 else
17507   echo "$as_me: program exited with status $ac_status" >&5
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 ( exit $ac_status )
17512 llvmac_cv_c_printf_a=no
17513 fi
17514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17515 fi
17516
17517
17518  ac_ext=c
17519 ac_cpp='$CPP $CPPFLAGS'
17520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17523
17524 fi
17525 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17526 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17527  if test "$llvm_cv_c_printf_a" = "yes"; then
17528
17529 cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_PRINTF_A 1
17531 _ACEOF
17532
17533  fi
17534
17535
17536 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17537 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17538 if test "${ac_cv_func_rand48+set}" = set; then
17539   echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541   ac_ext=cpp
17542 ac_cpp='$CXXCPP $CPPFLAGS'
17543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17546
17547    cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h.  */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h.  */
17553 #include <stdlib.h>
17554 int
17555 main ()
17556 {
17557 srand48(0);lrand48();drand48();
17558   ;
17559   return 0;
17560 }
17561 _ACEOF
17562 rm -f conftest.$ac_objext
17563 if { (ac_try="$ac_compile"
17564 case "(($ac_try" in
17565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566   *) ac_try_echo=$ac_try;;
17567 esac
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569   (eval "$ac_compile") 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } &&
17576          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17577   { (case "(($ac_try" in
17578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579   *) ac_try_echo=$ac_try;;
17580 esac
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582   (eval "$ac_try") 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; } &&
17586          { ac_try='test -s conftest.$ac_objext'
17587   { (case "(($ac_try" in
17588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589   *) ac_try_echo=$ac_try;;
17590 esac
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592   (eval "$ac_try") 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; }; then
17596   ac_cv_func_rand48=yes
17597 else
17598   echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17600
17601         ac_cv_func_rand48=no
17602 fi
17603
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605   ac_ext=c
17606 ac_cpp='$CPP $CPPFLAGS'
17607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17610
17611 fi
17612 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17613 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17614
17615 if test "$ac_cv_func_rand48" = "yes" ; then
17616
17617 cat >>confdefs.h <<\_ACEOF
17618 #define HAVE_RAND48 1
17619 _ACEOF
17620
17621 fi
17622
17623
17624 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17625 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17626 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629   cat >conftest.$ac_ext <<_ACEOF
17630 /* confdefs.h.  */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h.  */
17635 $ac_includes_default
17636 int
17637 main ()
17638 {
17639 #ifndef strerror_s
17640   char *p = (char *) strerror_s;
17641   return !p;
17642 #endif
17643
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext
17649 if { (ac_try="$ac_compile"
17650 case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655   (eval "$ac_compile") 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663   { (case "(($ac_try" in
17664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665   *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668   (eval "$ac_try") 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; } &&
17672          { ac_try='test -s conftest.$ac_objext'
17673   { (case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_try") 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_cv_have_decl_strerror_s=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687         ac_cv_have_decl_strerror_s=no
17688 fi
17689
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 fi
17692 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17693 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17694 if test $ac_cv_have_decl_strerror_s = yes; then
17695
17696 cat >>confdefs.h <<_ACEOF
17697 #define HAVE_DECL_STRERROR_S 1
17698 _ACEOF
17699
17700
17701 else
17702   cat >>confdefs.h <<_ACEOF
17703 #define HAVE_DECL_STRERROR_S 0
17704 _ACEOF
17705
17706
17707 fi
17708
17709
17710
17711 if test "$llvm_cv_os_type" = "MingW" ; then
17712   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17713 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17714 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17715   echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717   ac_check_lib_save_LIBS=$LIBS
17718 LIBS="-lgcc  $LIBS"
17719 cat >conftest.$ac_ext <<_ACEOF
17720 /* confdefs.h.  */
17721 _ACEOF
17722 cat confdefs.h >>conftest.$ac_ext
17723 cat >>conftest.$ac_ext <<_ACEOF
17724 /* end confdefs.h.  */
17725
17726 /* Override any GCC internal prototype to avoid an error.
17727    Use char because int might match the return type of a GCC
17728    builtin and then its argument prototype would still apply.  */
17729 #ifdef __cplusplus
17730 extern "C"
17731 #endif
17732 char _alloca ();
17733 int
17734 main ()
17735 {
17736 return _alloca ();
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (ac_try="$ac_link"
17743 case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_link") 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756   { (case "(($ac_try" in
17757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758   *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761   (eval "$ac_try") 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; } &&
17765          { ac_try='test -s conftest$ac_exeext'
17766   { (case "(($ac_try" in
17767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768   *) ac_try_echo=$ac_try;;
17769 esac
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771   (eval "$ac_try") 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; }; then
17775   ac_cv_lib_gcc__alloca=yes
17776 else
17777   echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17779
17780         ac_cv_lib_gcc__alloca=no
17781 fi
17782
17783 rm -f core conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17786 fi
17787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17788 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17789 if test $ac_cv_lib_gcc__alloca = yes; then
17790
17791 cat >>confdefs.h <<\_ACEOF
17792 #define HAVE__ALLOCA 1
17793 _ACEOF
17794
17795 fi
17796
17797   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17798 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17799 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17800   echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802   ac_check_lib_save_LIBS=$LIBS
17803 LIBS="-lgcc  $LIBS"
17804 cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h.  */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h.  */
17810
17811 /* Override any GCC internal prototype to avoid an error.
17812    Use char because int might match the return type of a GCC
17813    builtin and then its argument prototype would still apply.  */
17814 #ifdef __cplusplus
17815 extern "C"
17816 #endif
17817 char __alloca ();
17818 int
17819 main ()
17820 {
17821 return __alloca ();
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (ac_try="$ac_link"
17828 case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833   (eval "$ac_link") 2>conftest.er1
17834   ac_status=$?
17835   grep -v '^ *+' conftest.er1 >conftest.err
17836   rm -f conftest.er1
17837   cat conftest.err >&5
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } &&
17840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17841   { (case "(($ac_try" in
17842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843   *) ac_try_echo=$ac_try;;
17844 esac
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846   (eval "$ac_try") 2>&5
17847   ac_status=$?
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); }; } &&
17850          { ac_try='test -s conftest$ac_exeext'
17851   { (case "(($ac_try" in
17852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853   *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856   (eval "$ac_try") 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; }; then
17860   ac_cv_lib_gcc___alloca=yes
17861 else
17862   echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17864
17865         ac_cv_lib_gcc___alloca=no
17866 fi
17867
17868 rm -f core conftest.err conftest.$ac_objext \
17869       conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17871 fi
17872 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17873 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17874 if test $ac_cv_lib_gcc___alloca = yes; then
17875
17876 cat >>confdefs.h <<\_ACEOF
17877 #define HAVE___ALLOCA 1
17878 _ACEOF
17879
17880 fi
17881
17882   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17883 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17884 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17885   echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887   ac_check_lib_save_LIBS=$LIBS
17888 LIBS="-lgcc  $LIBS"
17889 cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h.  */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h.  */
17895
17896 /* Override any GCC internal prototype to avoid an error.
17897    Use char because int might match the return type of a GCC
17898    builtin and then its argument prototype would still apply.  */
17899 #ifdef __cplusplus
17900 extern "C"
17901 #endif
17902 char __chkstk ();
17903 int
17904 main ()
17905 {
17906 return __chkstk ();
17907   ;
17908   return 0;
17909 }
17910 _ACEOF
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915   *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918   (eval "$ac_link") 2>conftest.er1
17919   ac_status=$?
17920   grep -v '^ *+' conftest.er1 >conftest.err
17921   rm -f conftest.er1
17922   cat conftest.err >&5
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); } &&
17925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17926   { (case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931   (eval "$ac_try") 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; } &&
17935          { ac_try='test -s conftest$ac_exeext'
17936   { (case "(($ac_try" in
17937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938   *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941   (eval "$ac_try") 2>&5
17942   ac_status=$?
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); }; }; then
17945   ac_cv_lib_gcc___chkstk=yes
17946 else
17947   echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17949
17950         ac_cv_lib_gcc___chkstk=no
17951 fi
17952
17953 rm -f core conftest.err conftest.$ac_objext \
17954       conftest$ac_exeext conftest.$ac_ext
17955 LIBS=$ac_check_lib_save_LIBS
17956 fi
17957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17958 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17959 if test $ac_cv_lib_gcc___chkstk = yes; then
17960
17961 cat >>confdefs.h <<\_ACEOF
17962 #define HAVE___CHKSTK 1
17963 _ACEOF
17964
17965 fi
17966
17967   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17968 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17969 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972   ac_check_lib_save_LIBS=$LIBS
17973 LIBS="-lgcc  $LIBS"
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h.  */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h.  */
17980
17981 /* Override any GCC internal prototype to avoid an error.
17982    Use char because int might match the return type of a GCC
17983    builtin and then its argument prototype would still apply.  */
17984 #ifdef __cplusplus
17985 extern "C"
17986 #endif
17987 char ___chkstk ();
17988 int
17989 main ()
17990 {
17991 return ___chkstk ();
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 rm -f conftest.$ac_objext conftest$ac_exeext
17997 if { (ac_try="$ac_link"
17998 case "(($ac_try" in
17999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000   *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003   (eval "$ac_link") 2>conftest.er1
18004   ac_status=$?
18005   grep -v '^ *+' conftest.er1 >conftest.err
18006   rm -f conftest.er1
18007   cat conftest.err >&5
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); } &&
18010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011   { (case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_try") 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; } &&
18020          { ac_try='test -s conftest$ac_exeext'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; }; then
18030   ac_cv_lib_gcc____chkstk=yes
18031 else
18032   echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035         ac_cv_lib_gcc____chkstk=no
18036 fi
18037
18038 rm -f core conftest.err conftest.$ac_objext \
18039       conftest$ac_exeext conftest.$ac_ext
18040 LIBS=$ac_check_lib_save_LIBS
18041 fi
18042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18043 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18044 if test $ac_cv_lib_gcc____chkstk = yes; then
18045
18046 cat >>confdefs.h <<\_ACEOF
18047 #define HAVE____CHKSTK 1
18048 _ACEOF
18049
18050 fi
18051
18052
18053   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18054 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18055 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   ac_check_lib_save_LIBS=$LIBS
18059 LIBS="-lgcc  $LIBS"
18060 cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h.  */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h.  */
18066
18067 /* Override any GCC internal prototype to avoid an error.
18068    Use char because int might match the return type of a GCC
18069    builtin and then its argument prototype would still apply.  */
18070 #ifdef __cplusplus
18071 extern "C"
18072 #endif
18073 char __ashldi3 ();
18074 int
18075 main ()
18076 {
18077 return __ashldi3 ();
18078   ;
18079   return 0;
18080 }
18081 _ACEOF
18082 rm -f conftest.$ac_objext conftest$ac_exeext
18083 if { (ac_try="$ac_link"
18084 case "(($ac_try" in
18085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086   *) ac_try_echo=$ac_try;;
18087 esac
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089   (eval "$ac_link") 2>conftest.er1
18090   ac_status=$?
18091   grep -v '^ *+' conftest.er1 >conftest.err
18092   rm -f conftest.er1
18093   cat conftest.err >&5
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); } &&
18096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18097   { (case "(($ac_try" in
18098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099   *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102   (eval "$ac_try") 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); }; } &&
18106          { ac_try='test -s conftest$ac_exeext'
18107   { (case "(($ac_try" in
18108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109   *) ac_try_echo=$ac_try;;
18110 esac
18111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112   (eval "$ac_try") 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; }; then
18116   ac_cv_lib_gcc___ashldi3=yes
18117 else
18118   echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.$ac_ext >&5
18120
18121         ac_cv_lib_gcc___ashldi3=no
18122 fi
18123
18124 rm -f core conftest.err conftest.$ac_objext \
18125       conftest$ac_exeext conftest.$ac_ext
18126 LIBS=$ac_check_lib_save_LIBS
18127 fi
18128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18129 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18130 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18131
18132 cat >>confdefs.h <<\_ACEOF
18133 #define HAVE___ASHLDI3 1
18134 _ACEOF
18135
18136 fi
18137
18138   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18139 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18140 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18141   echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143   ac_check_lib_save_LIBS=$LIBS
18144 LIBS="-lgcc  $LIBS"
18145 cat >conftest.$ac_ext <<_ACEOF
18146 /* confdefs.h.  */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h.  */
18151
18152 /* Override any GCC internal prototype to avoid an error.
18153    Use char because int might match the return type of a GCC
18154    builtin and then its argument prototype would still apply.  */
18155 #ifdef __cplusplus
18156 extern "C"
18157 #endif
18158 char __ashrdi3 ();
18159 int
18160 main ()
18161 {
18162 return __ashrdi3 ();
18163   ;
18164   return 0;
18165 }
18166 _ACEOF
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171   *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174   (eval "$ac_link") 2>conftest.er1
18175   ac_status=$?
18176   grep -v '^ *+' conftest.er1 >conftest.err
18177   rm -f conftest.er1
18178   cat conftest.err >&5
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); } &&
18181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18182   { (case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187   (eval "$ac_try") 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; } &&
18191          { ac_try='test -s conftest$ac_exeext'
18192   { (case "(($ac_try" in
18193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194   *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197   (eval "$ac_try") 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; }; then
18201   ac_cv_lib_gcc___ashrdi3=yes
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206         ac_cv_lib_gcc___ashrdi3=no
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext \
18210       conftest$ac_exeext conftest.$ac_ext
18211 LIBS=$ac_check_lib_save_LIBS
18212 fi
18213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18214 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18215 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18216
18217 cat >>confdefs.h <<\_ACEOF
18218 #define HAVE___ASHRDI3 1
18219 _ACEOF
18220
18221 fi
18222
18223   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18224 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18225 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18226   echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228   ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lgcc  $LIBS"
18230 cat >conftest.$ac_ext <<_ACEOF
18231 /* confdefs.h.  */
18232 _ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h.  */
18236
18237 /* Override any GCC internal prototype to avoid an error.
18238    Use char because int might match the return type of a GCC
18239    builtin and then its argument prototype would still apply.  */
18240 #ifdef __cplusplus
18241 extern "C"
18242 #endif
18243 char __divdi3 ();
18244 int
18245 main ()
18246 {
18247 return __divdi3 ();
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (ac_try="$ac_link"
18254 case "(($ac_try" in
18255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256   *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259   (eval "$ac_link") 2>conftest.er1
18260   ac_status=$?
18261   grep -v '^ *+' conftest.er1 >conftest.err
18262   rm -f conftest.er1
18263   cat conftest.err >&5
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); } &&
18266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18267   { (case "(($ac_try" in
18268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269   *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272   (eval "$ac_try") 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; } &&
18276          { ac_try='test -s conftest$ac_exeext'
18277   { (case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282   (eval "$ac_try") 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; }; then
18286   ac_cv_lib_gcc___divdi3=yes
18287 else
18288   echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291         ac_cv_lib_gcc___divdi3=no
18292 fi
18293
18294 rm -f core conftest.err conftest.$ac_objext \
18295       conftest$ac_exeext conftest.$ac_ext
18296 LIBS=$ac_check_lib_save_LIBS
18297 fi
18298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18299 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18300 if test $ac_cv_lib_gcc___divdi3 = yes; then
18301
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE___DIVDI3 1
18304 _ACEOF
18305
18306 fi
18307
18308   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18309 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18310 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18311   echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313   ac_check_lib_save_LIBS=$LIBS
18314 LIBS="-lgcc  $LIBS"
18315 cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h.  */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h.  */
18321
18322 /* Override any GCC internal prototype to avoid an error.
18323    Use char because int might match the return type of a GCC
18324    builtin and then its argument prototype would still apply.  */
18325 #ifdef __cplusplus
18326 extern "C"
18327 #endif
18328 char __fixdfdi ();
18329 int
18330 main ()
18331 {
18332 return __fixdfdi ();
18333   ;
18334   return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (ac_try="$ac_link"
18339 case "(($ac_try" in
18340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341   *) ac_try_echo=$ac_try;;
18342 esac
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344   (eval "$ac_link") 2>conftest.er1
18345   ac_status=$?
18346   grep -v '^ *+' conftest.er1 >conftest.err
18347   rm -f conftest.er1
18348   cat conftest.err >&5
18349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350   (exit $ac_status); } &&
18351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18352   { (case "(($ac_try" in
18353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354   *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357   (eval "$ac_try") 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }; } &&
18361          { ac_try='test -s conftest$ac_exeext'
18362   { (case "(($ac_try" in
18363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364   *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367   (eval "$ac_try") 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); }; }; then
18371   ac_cv_lib_gcc___fixdfdi=yes
18372 else
18373   echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18375
18376         ac_cv_lib_gcc___fixdfdi=no
18377 fi
18378
18379 rm -f core conftest.err conftest.$ac_objext \
18380       conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18382 fi
18383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18384 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18385 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18386
18387 cat >>confdefs.h <<\_ACEOF
18388 #define HAVE___FIXDFDI 1
18389 _ACEOF
18390
18391 fi
18392
18393   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18394 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18395 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18396   echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398   ac_check_lib_save_LIBS=$LIBS
18399 LIBS="-lgcc  $LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h.  */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h.  */
18406
18407 /* Override any GCC internal prototype to avoid an error.
18408    Use char because int might match the return type of a GCC
18409    builtin and then its argument prototype would still apply.  */
18410 #ifdef __cplusplus
18411 extern "C"
18412 #endif
18413 char __fixsfdi ();
18414 int
18415 main ()
18416 {
18417 return __fixsfdi ();
18418   ;
18419   return 0;
18420 }
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426   *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429   (eval "$ac_link") 2>conftest.er1
18430   ac_status=$?
18431   grep -v '^ *+' conftest.er1 >conftest.err
18432   rm -f conftest.er1
18433   cat conftest.err >&5
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); } &&
18436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437   { (case "(($ac_try" in
18438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439   *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442   (eval "$ac_try") 2>&5
18443   ac_status=$?
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); }; } &&
18446          { ac_try='test -s conftest$ac_exeext'
18447   { (case "(($ac_try" in
18448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449   *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452   (eval "$ac_try") 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); }; }; then
18456   ac_cv_lib_gcc___fixsfdi=yes
18457 else
18458   echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18460
18461         ac_cv_lib_gcc___fixsfdi=no
18462 fi
18463
18464 rm -f core conftest.err conftest.$ac_objext \
18465       conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18467 fi
18468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18469 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18470 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE___FIXSFDI 1
18474 _ACEOF
18475
18476 fi
18477
18478   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18479 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18480 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18481   echo $ECHO_N "(cached) $ECHO_C" >&6
18482 else
18483   ac_check_lib_save_LIBS=$LIBS
18484 LIBS="-lgcc  $LIBS"
18485 cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h.  */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h.  */
18491
18492 /* Override any GCC internal prototype to avoid an error.
18493    Use char because int might match the return type of a GCC
18494    builtin and then its argument prototype would still apply.  */
18495 #ifdef __cplusplus
18496 extern "C"
18497 #endif
18498 char __floatdidf ();
18499 int
18500 main ()
18501 {
18502 return __floatdidf ();
18503   ;
18504   return 0;
18505 }
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_link") 2>conftest.er1
18515   ac_status=$?
18516   grep -v '^ *+' conftest.er1 >conftest.err
18517   rm -f conftest.er1
18518   cat conftest.err >&5
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); } &&
18521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522   { (case "(($ac_try" in
18523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524   *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527   (eval "$ac_try") 2>&5
18528   ac_status=$?
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); }; } &&
18531          { ac_try='test -s conftest$ac_exeext'
18532   { (case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537   (eval "$ac_try") 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_cv_lib_gcc___floatdidf=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546         ac_cv_lib_gcc___floatdidf=no
18547 fi
18548
18549 rm -f core conftest.err conftest.$ac_objext \
18550       conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18552 fi
18553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18554 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18555 if test $ac_cv_lib_gcc___floatdidf = yes; then
18556
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE___FLOATDIDF 1
18559 _ACEOF
18560
18561 fi
18562
18563   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18564 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18565 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18566   echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568   ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-lgcc  $LIBS"
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h.  */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h.  */
18576
18577 /* Override any GCC internal prototype to avoid an error.
18578    Use char because int might match the return type of a GCC
18579    builtin and then its argument prototype would still apply.  */
18580 #ifdef __cplusplus
18581 extern "C"
18582 #endif
18583 char __lshrdi3 ();
18584 int
18585 main ()
18586 {
18587 return __lshrdi3 ();
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 rm -f conftest.$ac_objext conftest$ac_exeext
18593 if { (ac_try="$ac_link"
18594 case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_link") 2>conftest.er1
18600   ac_status=$?
18601   grep -v '^ *+' conftest.er1 >conftest.err
18602   rm -f conftest.er1
18603   cat conftest.err >&5
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); } &&
18606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18607   { (case "(($ac_try" in
18608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609   *) ac_try_echo=$ac_try;;
18610 esac
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612   (eval "$ac_try") 2>&5
18613   ac_status=$?
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); }; } &&
18616          { ac_try='test -s conftest$ac_exeext'
18617   { (case "(($ac_try" in
18618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619   *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622   (eval "$ac_try") 2>&5
18623   ac_status=$?
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); }; }; then
18626   ac_cv_lib_gcc___lshrdi3=yes
18627 else
18628   echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631         ac_cv_lib_gcc___lshrdi3=no
18632 fi
18633
18634 rm -f core conftest.err conftest.$ac_objext \
18635       conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18637 fi
18638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18639 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18640 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18641
18642 cat >>confdefs.h <<\_ACEOF
18643 #define HAVE___LSHRDI3 1
18644 _ACEOF
18645
18646 fi
18647
18648   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18649 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18650 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18651   echo $ECHO_N "(cached) $ECHO_C" >&6
18652 else
18653   ac_check_lib_save_LIBS=$LIBS
18654 LIBS="-lgcc  $LIBS"
18655 cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661
18662 /* Override any GCC internal prototype to avoid an error.
18663    Use char because int might match the return type of a GCC
18664    builtin and then its argument prototype would still apply.  */
18665 #ifdef __cplusplus
18666 extern "C"
18667 #endif
18668 char __moddi3 ();
18669 int
18670 main ()
18671 {
18672 return __moddi3 ();
18673   ;
18674   return 0;
18675 }
18676 _ACEOF
18677 rm -f conftest.$ac_objext conftest$ac_exeext
18678 if { (ac_try="$ac_link"
18679 case "(($ac_try" in
18680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681   *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684   (eval "$ac_link") 2>conftest.er1
18685   ac_status=$?
18686   grep -v '^ *+' conftest.er1 >conftest.err
18687   rm -f conftest.er1
18688   cat conftest.err >&5
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } &&
18691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18692   { (case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697   (eval "$ac_try") 2>&5
18698   ac_status=$?
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); }; } &&
18701          { ac_try='test -s conftest$ac_exeext'
18702   { (case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707   (eval "$ac_try") 2>&5
18708   ac_status=$?
18709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710   (exit $ac_status); }; }; then
18711   ac_cv_lib_gcc___moddi3=yes
18712 else
18713   echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716         ac_cv_lib_gcc___moddi3=no
18717 fi
18718
18719 rm -f core conftest.err conftest.$ac_objext \
18720       conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18722 fi
18723 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18724 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18725 if test $ac_cv_lib_gcc___moddi3 = yes; then
18726
18727 cat >>confdefs.h <<\_ACEOF
18728 #define HAVE___MODDI3 1
18729 _ACEOF
18730
18731 fi
18732
18733   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18734 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18735 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18736   echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738   ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-lgcc  $LIBS"
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746
18747 /* Override any GCC internal prototype to avoid an error.
18748    Use char because int might match the return type of a GCC
18749    builtin and then its argument prototype would still apply.  */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char __udivdi3 ();
18754 int
18755 main ()
18756 {
18757 return __udivdi3 ();
18758   ;
18759   return 0;
18760 }
18761 _ACEOF
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766   *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769   (eval "$ac_link") 2>conftest.er1
18770   ac_status=$?
18771   grep -v '^ *+' conftest.er1 >conftest.err
18772   rm -f conftest.er1
18773   cat conftest.err >&5
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); } &&
18776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18777   { (case "(($ac_try" in
18778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779   *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782   (eval "$ac_try") 2>&5
18783   ac_status=$?
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); }; } &&
18786          { ac_try='test -s conftest$ac_exeext'
18787   { (case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_try") 2>&5
18793   ac_status=$?
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); }; }; then
18796   ac_cv_lib_gcc___udivdi3=yes
18797 else
18798   echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18800
18801         ac_cv_lib_gcc___udivdi3=no
18802 fi
18803
18804 rm -f core conftest.err conftest.$ac_objext \
18805       conftest$ac_exeext conftest.$ac_ext
18806 LIBS=$ac_check_lib_save_LIBS
18807 fi
18808 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18809 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18810 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18811
18812 cat >>confdefs.h <<\_ACEOF
18813 #define HAVE___UDIVDI3 1
18814 _ACEOF
18815
18816 fi
18817
18818   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18819 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18820 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   ac_check_lib_save_LIBS=$LIBS
18824 LIBS="-lgcc  $LIBS"
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831
18832 /* Override any GCC internal prototype to avoid an error.
18833    Use char because int might match the return type of a GCC
18834    builtin and then its argument prototype would still apply.  */
18835 #ifdef __cplusplus
18836 extern "C"
18837 #endif
18838 char __umoddi3 ();
18839 int
18840 main ()
18841 {
18842 return __umoddi3 ();
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_link") 2>conftest.er1
18855   ac_status=$?
18856   grep -v '^ *+' conftest.er1 >conftest.err
18857   rm -f conftest.er1
18858   cat conftest.err >&5
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); } &&
18861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18862   { (case "(($ac_try" in
18863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864   *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867   (eval "$ac_try") 2>&5
18868   ac_status=$?
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); }; } &&
18871          { ac_try='test -s conftest$ac_exeext'
18872   { (case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_try") 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; }; then
18881   ac_cv_lib_gcc___umoddi3=yes
18882 else
18883   echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886         ac_cv_lib_gcc___umoddi3=no
18887 fi
18888
18889 rm -f core conftest.err conftest.$ac_objext \
18890       conftest$ac_exeext conftest.$ac_ext
18891 LIBS=$ac_check_lib_save_LIBS
18892 fi
18893 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18894 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18895 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18896
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE___UMODDI3 1
18899 _ACEOF
18900
18901 fi
18902
18903
18904   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18905 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18906 if test "${ac_cv_lib_gcc___main+set}" = set; then
18907   echo $ECHO_N "(cached) $ECHO_C" >&6
18908 else
18909   ac_check_lib_save_LIBS=$LIBS
18910 LIBS="-lgcc  $LIBS"
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917
18918 /* Override any GCC internal prototype to avoid an error.
18919    Use char because int might match the return type of a GCC
18920    builtin and then its argument prototype would still apply.  */
18921 #ifdef __cplusplus
18922 extern "C"
18923 #endif
18924 char __main ();
18925 int
18926 main ()
18927 {
18928 return __main ();
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_link") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } &&
18947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18948   { (case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_try") 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; } &&
18957          { ac_try='test -s conftest$ac_exeext'
18958   { (case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_try") 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; }; then
18967   ac_cv_lib_gcc___main=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972         ac_cv_lib_gcc___main=no
18973 fi
18974
18975 rm -f core conftest.err conftest.$ac_objext \
18976       conftest$ac_exeext conftest.$ac_ext
18977 LIBS=$ac_check_lib_save_LIBS
18978 fi
18979 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18980 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18981 if test $ac_cv_lib_gcc___main = yes; then
18982
18983 cat >>confdefs.h <<\_ACEOF
18984 #define HAVE___MAIN 1
18985 _ACEOF
18986
18987 fi
18988
18989   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18990 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18991 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   ac_check_lib_save_LIBS=$LIBS
18995 LIBS="-lgcc  $LIBS"
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h.  */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h.  */
19002
19003 /* Override any GCC internal prototype to avoid an error.
19004    Use char because int might match the return type of a GCC
19005    builtin and then its argument prototype would still apply.  */
19006 #ifdef __cplusplus
19007 extern "C"
19008 #endif
19009 char __cmpdi2 ();
19010 int
19011 main ()
19012 {
19013 return __cmpdi2 ();
19014   ;
19015   return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (ac_try="$ac_link"
19020 case "(($ac_try" in
19021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022   *) ac_try_echo=$ac_try;;
19023 esac
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025   (eval "$ac_link") 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } &&
19032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19033   { (case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_try") 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; } &&
19042          { ac_try='test -s conftest$ac_exeext'
19043   { (case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_try") 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; }; then
19052   ac_cv_lib_gcc___cmpdi2=yes
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057         ac_cv_lib_gcc___cmpdi2=no
19058 fi
19059
19060 rm -f core conftest.err conftest.$ac_objext \
19061       conftest$ac_exeext conftest.$ac_ext
19062 LIBS=$ac_check_lib_save_LIBS
19063 fi
19064 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19065 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19066 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19067
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE___CMPDI2 1
19070 _ACEOF
19071
19072 fi
19073
19074 fi
19075
19076 if test "$llvm_cv_os_type" = "MingW" ; then
19077   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19078 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19079   cat >conftest.$ac_ext <<_ACEOF
19080 #include <windows.h>
19081 #include <imagehlp.h>
19082 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19083 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19084 _ACEOF
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089   *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092   (eval "$ac_compile") 2>conftest.er1
19093   ac_status=$?
19094   grep -v '^ *+' conftest.er1 >conftest.err
19095   rm -f conftest.er1
19096   cat conftest.err >&5
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); } &&
19099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19100   { (case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_try") 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; } &&
19109          { ac_try='test -s conftest.$ac_objext'
19110   { (case "(($ac_try" in
19111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112   *) ac_try_echo=$ac_try;;
19113 esac
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115   (eval "$ac_try") 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; }; then
19119
19120   { echo "$as_me:$LINENO: result: yes" >&5
19121 echo "${ECHO_T}yes" >&6; }
19122   llvm_cv_win32_elmcb_pcstr="PCSTR"
19123
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128
19129   { echo "$as_me:$LINENO: result: no" >&5
19130 echo "${ECHO_T}no" >&6; }
19131   llvm_cv_win32_elmcb_pcstr="PSTR"
19132
19133 fi
19134
19135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19136
19137 cat >>confdefs.h <<_ACEOF
19138 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19139 _ACEOF
19140
19141 fi
19142
19143
19144 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19145 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19146 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19147   echo $ECHO_N "(cached) $ECHO_C" >&6
19148 else
19149   ac_ext=cpp
19150 ac_cpp='$CXXCPP $CPPFLAGS'
19151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19154
19155    cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161 #include <math.h>
19162 int
19163 main ()
19164 {
19165 float f; isnan(f);
19166   ;
19167   return 0;
19168 }
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (ac_try="$ac_compile"
19172 case "(($ac_try" in
19173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174   *) ac_try_echo=$ac_try;;
19175 esac
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177   (eval "$ac_compile") 2>conftest.er1
19178   ac_status=$?
19179   grep -v '^ *+' conftest.er1 >conftest.err
19180   rm -f conftest.er1
19181   cat conftest.err >&5
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); } &&
19184          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19185   { (case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_try") 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; } &&
19194          { ac_try='test -s conftest.$ac_objext'
19195   { (case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_try") 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; }; then
19204   ac_cv_func_isnan_in_math_h=yes
19205 else
19206   echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19208
19209         ac_cv_func_isnan_in_math_h=no
19210 fi
19211
19212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213   ac_ext=c
19214 ac_cpp='$CPP $CPPFLAGS'
19215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19218
19219 fi
19220 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19221 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19222
19223
19224 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19225
19226 cat >>confdefs.h <<\_ACEOF
19227 #define HAVE_ISNAN_IN_MATH_H 1
19228 _ACEOF
19229
19230 fi
19231
19232 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19233 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19234 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19235   echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237   ac_ext=cpp
19238 ac_cpp='$CXXCPP $CPPFLAGS'
19239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19242
19243    cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h.  */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h.  */
19249 #include <cmath>
19250 int
19251 main ()
19252 {
19253 float f; isnan(f);
19254   ;
19255   return 0;
19256 }
19257 _ACEOF
19258 rm -f conftest.$ac_objext
19259 if { (ac_try="$ac_compile"
19260 case "(($ac_try" in
19261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262   *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265   (eval "$ac_compile") 2>conftest.er1
19266   ac_status=$?
19267   grep -v '^ *+' conftest.er1 >conftest.err
19268   rm -f conftest.er1
19269   cat conftest.err >&5
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); } &&
19272          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19273   { (case "(($ac_try" in
19274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275   *) ac_try_echo=$ac_try;;
19276 esac
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278   (eval "$ac_try") 2>&5
19279   ac_status=$?
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); }; } &&
19282          { ac_try='test -s conftest.$ac_objext'
19283   { (case "(($ac_try" in
19284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285   *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288   (eval "$ac_try") 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; }; then
19292   ac_cv_func_isnan_in_cmath=yes
19293 else
19294   echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297         ac_cv_func_isnan_in_cmath=no
19298 fi
19299
19300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301   ac_ext=c
19302 ac_cpp='$CPP $CPPFLAGS'
19303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19306
19307 fi
19308 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19309 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19310
19311 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19312
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_ISNAN_IN_CMATH 1
19315 _ACEOF
19316
19317 fi
19318
19319 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19320 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19321 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   ac_ext=cpp
19325 ac_cpp='$CXXCPP $CPPFLAGS'
19326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19329
19330    cat >conftest.$ac_ext <<_ACEOF
19331 /* confdefs.h.  */
19332 _ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h.  */
19336 #include <cmath>
19337 int
19338 main ()
19339 {
19340 float f; std::isnan(f);
19341   ;
19342   return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349   *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352   (eval "$ac_compile") 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } &&
19359          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19360   { (case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_try") 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; } &&
19369          { ac_try='test -s conftest.$ac_objext'
19370   { (case "(($ac_try" in
19371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372   *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375   (eval "$ac_try") 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; }; then
19379   ac_cv_func_std_isnan_in_cmath=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384         ac_cv_func_std_isnan_in_cmath=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388   ac_ext=c
19389 ac_cpp='$CPP $CPPFLAGS'
19390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19393
19394 fi
19395 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19396 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19397
19398 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19399
19400 cat >>confdefs.h <<\_ACEOF
19401 #define HAVE_STD_ISNAN_IN_CMATH 1
19402 _ACEOF
19403
19404 fi
19405
19406
19407 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19408 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19409 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412   ac_ext=cpp
19413 ac_cpp='$CXXCPP $CPPFLAGS'
19414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19417
19418    cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h.  */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h.  */
19424 #include <math.h>
19425 int
19426 main ()
19427 {
19428 float f; isinf(f);
19429   ;
19430   return 0;
19431 }
19432 _ACEOF
19433 rm -f conftest.$ac_objext
19434 if { (ac_try="$ac_compile"
19435 case "(($ac_try" in
19436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437   *) ac_try_echo=$ac_try;;
19438 esac
19439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440   (eval "$ac_compile") 2>conftest.er1
19441   ac_status=$?
19442   grep -v '^ *+' conftest.er1 >conftest.err
19443   rm -f conftest.er1
19444   cat conftest.err >&5
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); } &&
19447          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19448   { (case "(($ac_try" in
19449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450   *) ac_try_echo=$ac_try;;
19451 esac
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453   (eval "$ac_try") 2>&5
19454   ac_status=$?
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); }; } &&
19457          { ac_try='test -s conftest.$ac_objext'
19458   { (case "(($ac_try" in
19459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460   *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463   (eval "$ac_try") 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }; }; then
19467   ac_cv_func_isinf_in_math_h=yes
19468 else
19469   echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472         ac_cv_func_isinf_in_math_h=no
19473 fi
19474
19475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19476   ac_ext=c
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19481
19482 fi
19483 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19484 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19485
19486 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19487
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE_ISINF_IN_MATH_H 1
19490 _ACEOF
19491
19492 fi
19493
19494 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19495 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19496 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19497   echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499   ac_ext=cpp
19500 ac_cpp='$CXXCPP $CPPFLAGS'
19501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19504
19505    cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 #include <cmath>
19512 int
19513 main ()
19514 {
19515 float f; isinf(f);
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 rm -f conftest.$ac_objext
19521 if { (ac_try="$ac_compile"
19522 case "(($ac_try" in
19523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524   *) ac_try_echo=$ac_try;;
19525 esac
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527   (eval "$ac_compile") 2>conftest.er1
19528   ac_status=$?
19529   grep -v '^ *+' conftest.er1 >conftest.err
19530   rm -f conftest.er1
19531   cat conftest.err >&5
19532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); } &&
19534          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19535   { (case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_try") 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); }; } &&
19544          { ac_try='test -s conftest.$ac_objext'
19545   { (case "(($ac_try" in
19546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547   *) ac_try_echo=$ac_try;;
19548 esac
19549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19550   (eval "$ac_try") 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; }; then
19554   ac_cv_func_isinf_in_cmath=yes
19555 else
19556   echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19558
19559         ac_cv_func_isinf_in_cmath=no
19560 fi
19561
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563   ac_ext=c
19564 ac_cpp='$CPP $CPPFLAGS'
19565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19568
19569 fi
19570 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19571 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19572
19573 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19574
19575 cat >>confdefs.h <<\_ACEOF
19576 #define HAVE_ISINF_IN_CMATH 1
19577 _ACEOF
19578
19579 fi
19580
19581 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19582 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19583 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586   ac_ext=cpp
19587 ac_cpp='$CXXCPP $CPPFLAGS'
19588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19591
19592    cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h.  */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h.  */
19598 #include <cmath>
19599 int
19600 main ()
19601 {
19602 float f; std::isinf(f);
19603   ;
19604   return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext
19608 if { (ac_try="$ac_compile"
19609 case "(($ac_try" in
19610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611   *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614   (eval "$ac_compile") 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } &&
19621          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19622   { (case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_try") 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; } &&
19631          { ac_try='test -s conftest.$ac_objext'
19632   { (case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_try") 2>&5
19638   ac_status=$?
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); }; }; then
19641   ac_cv_func_std_isinf_in_cmath=yes
19642 else
19643   echo "$as_me: failed program was:" >&5
19644 sed 's/^/| /' conftest.$ac_ext >&5
19645
19646         ac_cv_func_std_isinf_in_cmath=no
19647 fi
19648
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19650   ac_ext=c
19651 ac_cpp='$CPP $CPPFLAGS'
19652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19655
19656 fi
19657 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19658 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19659
19660 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19661
19662 cat >>confdefs.h <<\_ACEOF
19663 #define HAVE_STD_ISINF_IN_CMATH 1
19664 _ACEOF
19665
19666 fi
19667
19668 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19669 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19670 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19671   echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673   ac_ext=cpp
19674 ac_cpp='$CXXCPP $CPPFLAGS'
19675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19678
19679    cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685 #include <ieeefp.h>
19686 int
19687 main ()
19688 {
19689 float f; finite(f);
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_compile") 2>conftest.er1
19702   ac_status=$?
19703   grep -v '^ *+' conftest.er1 >conftest.err
19704   rm -f conftest.er1
19705   cat conftest.err >&5
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); } &&
19708          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19709   { (case "(($ac_try" in
19710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711   *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714   (eval "$ac_try") 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); }; } &&
19718          { ac_try='test -s conftest.$ac_objext'
19719   { (case "(($ac_try" in
19720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721   *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724   (eval "$ac_try") 2>&5
19725   ac_status=$?
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); }; }; then
19728   ac_cv_func_finite_in_ieeefp_h=yes
19729 else
19730   echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19732
19733         ac_cv_func_finite_in_ieeefp_h=no
19734 fi
19735
19736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19737   ac_ext=c
19738 ac_cpp='$CPP $CPPFLAGS'
19739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19742
19743 fi
19744 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19745 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19746
19747 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19748
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_FINITE_IN_IEEEFP_H 1
19751 _ACEOF
19752
19753 fi
19754
19755
19756
19757 if test "$llvm_cv_platform_type" = "Unix" ; then
19758
19759
19760 for ac_header in stdlib.h unistd.h
19761 do
19762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19764   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 fi
19769 ac_res=`eval echo '${'$as_ac_Header'}'`
19770                { echo "$as_me:$LINENO: result: $ac_res" >&5
19771 echo "${ECHO_T}$ac_res" >&6; }
19772 else
19773   # Is the header compilable?
19774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19776 cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h.  */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h.  */
19782 $ac_includes_default
19783 #include <$ac_header>
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (ac_try="$ac_compile"
19787 case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_compile") 2>conftest.er1
19793   ac_status=$?
19794   grep -v '^ *+' conftest.er1 >conftest.err
19795   rm -f conftest.er1
19796   cat conftest.err >&5
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } &&
19799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800   { (case "(($ac_try" in
19801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802   *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805   (eval "$ac_try") 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; } &&
19809          { ac_try='test -s conftest.$ac_objext'
19810   { (case "(($ac_try" in
19811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812   *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815   (eval "$ac_try") 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; }; then
19819   ac_header_compiler=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824         ac_header_compiler=no
19825 fi
19826
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829 echo "${ECHO_T}$ac_header_compiler" >&6; }
19830
19831 # Is the header present?
19832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 #include <$ac_header>
19841 _ACEOF
19842 if { (ac_try="$ac_cpp conftest.$ac_ext"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } >/dev/null; then
19855   if test -s conftest.err; then
19856     ac_cpp_err=$ac_c_preproc_warn_flag
19857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19858   else
19859     ac_cpp_err=
19860   fi
19861 else
19862   ac_cpp_err=yes
19863 fi
19864 if test -z "$ac_cpp_err"; then
19865   ac_header_preproc=yes
19866 else
19867   echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870   ac_header_preproc=no
19871 fi
19872
19873 rm -f conftest.err conftest.$ac_ext
19874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19875 echo "${ECHO_T}$ac_header_preproc" >&6; }
19876
19877 # So?  What about this header?
19878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19879   yes:no: )
19880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19884     ac_header_preproc=yes
19885     ;;
19886   no:yes:* )
19887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19899     ( cat <<\_ASBOX
19900 ## ------------------------------ ##
19901 ## Report this to bugs@yourdomain ##
19902 ## ------------------------------ ##
19903 _ASBOX
19904      ) | sed "s/^/$as_me: WARNING:     /" >&2
19905     ;;
19906 esac
19907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910   echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912   eval "$as_ac_Header=\$ac_header_preproc"
19913 fi
19914 ac_res=`eval echo '${'$as_ac_Header'}'`
19915                { echo "$as_me:$LINENO: result: $ac_res" >&5
19916 echo "${ECHO_T}$ac_res" >&6; }
19917
19918 fi
19919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19920   cat >>confdefs.h <<_ACEOF
19921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19922 _ACEOF
19923
19924 fi
19925
19926 done
19927
19928
19929 for ac_func in getpagesize
19930 do
19931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19935   echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937   cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h.  */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h.  */
19943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19945 #define $ac_func innocuous_$ac_func
19946
19947 /* System header to define __stub macros and hopefully few prototypes,
19948     which can conflict with char $ac_func (); below.
19949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19950     <limits.h> exists even on freestanding compilers.  */
19951
19952 #ifdef __STDC__
19953 # include <limits.h>
19954 #else
19955 # include <assert.h>
19956 #endif
19957
19958 #undef $ac_func
19959
19960 /* Override any GCC internal prototype to avoid an error.
19961    Use char because int might match the return type of a GCC
19962    builtin and then its argument prototype would still apply.  */
19963 #ifdef __cplusplus
19964 extern "C"
19965 #endif
19966 char $ac_func ();
19967 /* The GNU C library defines this for functions which it implements
19968     to always fail with ENOSYS.  Some functions are actually named
19969     something starting with __ and the normal name is an alias.  */
19970 #if defined __stub_$ac_func || defined __stub___$ac_func
19971 choke me
19972 #endif
19973
19974 int
19975 main ()
19976 {
19977 return $ac_func ();
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (ac_try="$ac_link"
19984 case "(($ac_try" in
19985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986   *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989   (eval "$ac_link") 2>conftest.er1
19990   ac_status=$?
19991   grep -v '^ *+' conftest.er1 >conftest.err
19992   rm -f conftest.er1
19993   cat conftest.err >&5
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); } &&
19996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19997   { (case "(($ac_try" in
19998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999   *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002   (eval "$ac_try") 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; } &&
20006          { ac_try='test -s conftest$ac_exeext'
20007   { (case "(($ac_try" in
20008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009   *) ac_try_echo=$ac_try;;
20010 esac
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012   (eval "$ac_try") 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); }; }; then
20016   eval "$as_ac_var=yes"
20017 else
20018   echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021         eval "$as_ac_var=no"
20022 fi
20023
20024 rm -f core conftest.err conftest.$ac_objext \
20025       conftest$ac_exeext conftest.$ac_ext
20026 fi
20027 ac_res=`eval echo '${'$as_ac_var'}'`
20028                { echo "$as_me:$LINENO: result: $ac_res" >&5
20029 echo "${ECHO_T}$ac_res" >&6; }
20030 if test `eval echo '${'$as_ac_var'}'` = yes; then
20031   cat >>confdefs.h <<_ACEOF
20032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20033 _ACEOF
20034
20035 fi
20036 done
20037
20038 { echo "$as_me:$LINENO: checking for working mmap" >&5
20039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043   if test "$cross_compiling" = yes; then
20044   ac_cv_func_mmap_fixed_mapped=no
20045 else
20046   cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h.  */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h.  */
20052 $ac_includes_default
20053 /* malloc might have been renamed as rpl_malloc. */
20054 #undef malloc
20055
20056 /* Thanks to Mike Haertel and Jim Avera for this test.
20057    Here is a matrix of mmap possibilities:
20058         mmap private not fixed
20059         mmap private fixed at somewhere currently unmapped
20060         mmap private fixed at somewhere already mapped
20061         mmap shared not fixed
20062         mmap shared fixed at somewhere currently unmapped
20063         mmap shared fixed at somewhere already mapped
20064    For private mappings, we should verify that changes cannot be read()
20065    back from the file, nor mmap's back from the file at a different
20066    address.  (There have been systems where private was not correctly
20067    implemented like the infamous i386 svr4.0, and systems where the
20068    VM page cache was not coherent with the file system buffer cache
20069    like early versions of FreeBSD and possibly contemporary NetBSD.)
20070    For shared mappings, we should conversely verify that changes get
20071    propagated back to all the places they're supposed to be.
20072
20073    Grep wants private fixed already mapped.
20074    The main things grep needs to know about mmap are:
20075    * does it exist and is it safe to write into the mmap'd area
20076    * how to use it (BSD variants)  */
20077
20078 #include <fcntl.h>
20079 #include <sys/mman.h>
20080
20081 #if !STDC_HEADERS && !HAVE_STDLIB_H
20082 char *malloc ();
20083 #endif
20084
20085 /* This mess was copied from the GNU getpagesize.h.  */
20086 #if !HAVE_GETPAGESIZE
20087 /* Assume that all systems that can run configure have sys/param.h.  */
20088 # if !HAVE_SYS_PARAM_H
20089 #  define HAVE_SYS_PARAM_H 1
20090 # endif
20091
20092 # ifdef _SC_PAGESIZE
20093 #  define getpagesize() sysconf(_SC_PAGESIZE)
20094 # else /* no _SC_PAGESIZE */
20095 #  if HAVE_SYS_PARAM_H
20096 #   include <sys/param.h>
20097 #   ifdef EXEC_PAGESIZE
20098 #    define getpagesize() EXEC_PAGESIZE
20099 #   else /* no EXEC_PAGESIZE */
20100 #    ifdef NBPG
20101 #     define getpagesize() NBPG * CLSIZE
20102 #     ifndef CLSIZE
20103 #      define CLSIZE 1
20104 #     endif /* no CLSIZE */
20105 #    else /* no NBPG */
20106 #     ifdef NBPC
20107 #      define getpagesize() NBPC
20108 #     else /* no NBPC */
20109 #      ifdef PAGESIZE
20110 #       define getpagesize() PAGESIZE
20111 #      endif /* PAGESIZE */
20112 #     endif /* no NBPC */
20113 #    endif /* no NBPG */
20114 #   endif /* no EXEC_PAGESIZE */
20115 #  else /* no HAVE_SYS_PARAM_H */
20116 #   define getpagesize() 8192   /* punt totally */
20117 #  endif /* no HAVE_SYS_PARAM_H */
20118 # endif /* no _SC_PAGESIZE */
20119
20120 #endif /* no HAVE_GETPAGESIZE */
20121
20122 int
20123 main ()
20124 {
20125   char *data, *data2, *data3;
20126   int i, pagesize;
20127   int fd;
20128
20129   pagesize = getpagesize ();
20130
20131   /* First, make a file with some known garbage in it. */
20132   data = (char *) malloc (pagesize);
20133   if (!data)
20134     return 1;
20135   for (i = 0; i < pagesize; ++i)
20136     *(data + i) = rand ();
20137   umask (0);
20138   fd = creat ("conftest.mmap", 0600);
20139   if (fd < 0)
20140     return 1;
20141   if (write (fd, data, pagesize) != pagesize)
20142     return 1;
20143   close (fd);
20144
20145   /* Next, try to mmap the file at a fixed address which already has
20146      something else allocated at it.  If we can, also make sure that
20147      we see the same garbage.  */
20148   fd = open ("conftest.mmap", O_RDWR);
20149   if (fd < 0)
20150     return 1;
20151   data2 = (char *) malloc (2 * pagesize);
20152   if (!data2)
20153     return 1;
20154   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20155   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20156                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20157     return 1;
20158   for (i = 0; i < pagesize; ++i)
20159     if (*(data + i) != *(data2 + i))
20160       return 1;
20161
20162   /* Finally, make sure that changes to the mapped area do not
20163      percolate back to the file as seen by read().  (This is a bug on
20164      some variants of i386 svr4.0.)  */
20165   for (i = 0; i < pagesize; ++i)
20166     *(data2 + i) = *(data2 + i) + 1;
20167   data3 = (char *) malloc (pagesize);
20168   if (!data3)
20169     return 1;
20170   if (read (fd, data3, pagesize) != pagesize)
20171     return 1;
20172   for (i = 0; i < pagesize; ++i)
20173     if (*(data + i) != *(data3 + i))
20174       return 1;
20175   close (fd);
20176   return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183   *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186   (eval "$ac_link") 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20190   { (case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_try") 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; }; then
20199   ac_cv_func_mmap_fixed_mapped=yes
20200 else
20201   echo "$as_me: program exited with status $ac_status" >&5
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ( exit $ac_status )
20206 ac_cv_func_mmap_fixed_mapped=no
20207 fi
20208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20209 fi
20210
20211
20212 fi
20213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20216
20217 cat >>confdefs.h <<\_ACEOF
20218 #define HAVE_MMAP 1
20219 _ACEOF
20220
20221 fi
20222 rm -f conftest.mmap
20223
20224   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20225 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20226 if test "${ac_cv_func_mmap_file+set}" = set; then
20227   echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229    ac_ext=c
20230 ac_cpp='$CPP $CPPFLAGS'
20231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20234
20235   if test "$cross_compiling" = yes; then
20236   ac_cv_func_mmap_file=no
20237 else
20238   cat >conftest.$ac_ext <<_ACEOF
20239
20240     /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245
20246 #include <sys/types.h>
20247 #include <sys/mman.h>
20248 #include <fcntl.h>
20249
20250 int
20251 main ()
20252 {
20253
20254   int fd;
20255   fd = creat ("foo",0777);
20256   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20257   unlink ("foo");
20258   return (fd != (int) MAP_FAILED);
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 rm -f conftest$ac_exeext
20264 if { (ac_try="$ac_link"
20265 case "(($ac_try" in
20266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267   *) ac_try_echo=$ac_try;;
20268 esac
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270   (eval "$ac_link") 2>&5
20271   ac_status=$?
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274   { (case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_try") 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; }; then
20283   ac_cv_func_mmap_file=yes
20284 else
20285   echo "$as_me: program exited with status $ac_status" >&5
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ( exit $ac_status )
20290 ac_cv_func_mmap_file=no
20291 fi
20292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20293 fi
20294
20295
20296   ac_ext=c
20297 ac_cpp='$CPP $CPPFLAGS'
20298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20301
20302
20303 fi
20304 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20305 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20306 if test "$ac_cv_func_mmap_file" = yes; then
20307
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_MMAP_FILE
20310 _ACEOF
20311
20312    MMAP_FILE=yes
20313
20314 fi
20315
20316   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20317 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20318 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20319   echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321   if test "$llvm_cv_os_type" = "Interix" ; then
20322    ac_cv_need_dev_zero_for_mmap=yes
20323  else
20324    ac_cv_need_dev_zero_for_mmap=no
20325  fi
20326
20327 fi
20328 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20329 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20330 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20331
20332 cat >>confdefs.h <<\_ACEOF
20333 #define NEED_DEV_ZERO_FOR_MMAP 1
20334 _ACEOF
20335
20336 fi
20337
20338   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20339   then
20340     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20341 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20342   fi
20343   if test "$ac_cv_func_mmap_file" = "no"
20344   then
20345     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20346 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20347   fi
20348 fi
20349
20350 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20351 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20352 ac_ext=cpp
20353 ac_cpp='$CXXCPP $CPPFLAGS'
20354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20357
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h.  */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h.  */
20364 int main() {
20365         volatile unsigned long val = 1;
20366         __sync_synchronize();
20367         __sync_val_compare_and_swap(&val, 1, 0);
20368         __sync_add_and_fetch(&val, 1);
20369         __sync_sub_and_fetch(&val, 1);
20370         return 0;
20371       }
20372
20373 _ACEOF
20374 rm -f conftest.$ac_objext conftest$ac_exeext
20375 if { (ac_try="$ac_link"
20376 case "(($ac_try" in
20377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378   *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381   (eval "$ac_link") 2>conftest.er1
20382   ac_status=$?
20383   grep -v '^ *+' conftest.er1 >conftest.err
20384   rm -f conftest.er1
20385   cat conftest.err >&5
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } &&
20388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389   { (case "(($ac_try" in
20390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391   *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394   (eval "$ac_try") 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; } &&
20398          { ac_try='test -s conftest$ac_exeext'
20399   { (case "(($ac_try" in
20400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401   *) ac_try_echo=$ac_try;;
20402 esac
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404   (eval "$ac_try") 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; }; then
20408   ac_ext=c
20409 ac_cpp='$CPP $CPPFLAGS'
20410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20413
20414   { echo "$as_me:$LINENO: result: yes" >&5
20415 echo "${ECHO_T}yes" >&6; }
20416
20417 cat >>confdefs.h <<\_ACEOF
20418 #define LLVM_HAS_ATOMICS 1
20419 _ACEOF
20420
20421 else
20422   echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425         { echo "$as_me:$LINENO: result: no" >&5
20426 echo "${ECHO_T}no" >&6; }
20427
20428 cat >>confdefs.h <<\_ACEOF
20429 #define LLVM_HAS_ATOMICS 0
20430 _ACEOF
20431
20432   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20433 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20434 fi
20435
20436 rm -f core conftest.err conftest.$ac_objext \
20437       conftest$ac_exeext conftest.$ac_ext
20438
20439
20440 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20441   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20442 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20443 if test "${llvm_cv_linux_mixed+set}" = set; then
20444   echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446    ac_ext=c
20447 ac_cpp='$CPP $CPPFLAGS'
20448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20451
20452   cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h.  */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h.  */
20458 #ifndef __x86_64__
20459        error: Not x86-64 even if uname says so!
20460       #endif
20461
20462 int
20463 main ()
20464 {
20465
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_compile") 2>conftest.er1
20478   ac_status=$?
20479   grep -v '^ *+' conftest.er1 >conftest.err
20480   rm -f conftest.er1
20481   cat conftest.err >&5
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); } &&
20484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20485   { (case "(($ac_try" in
20486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487   *) ac_try_echo=$ac_try;;
20488 esac
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490   (eval "$ac_try") 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; } &&
20494          { ac_try='test -s conftest.$ac_objext'
20495   { (case "(($ac_try" in
20496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497   *) ac_try_echo=$ac_try;;
20498 esac
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500   (eval "$ac_try") 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; }; then
20504   llvm_cv_linux_mixed=no
20505 else
20506   echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509         llvm_cv_linux_mixed=yes
20510 fi
20511
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513   ac_ext=c
20514 ac_cpp='$CPP $CPPFLAGS'
20515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20518
20519
20520 fi
20521 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20522 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20523
20524   if test "$llvm_cv_linux_mixed" = "yes"; then
20525     llvm_cv_target_arch="x86"
20526     ARCH="x86"
20527   fi
20528 fi
20529
20530
20531 for ac_func in __dso_handle
20532 do
20533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539   cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h.  */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h.  */
20545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20547 #define $ac_func innocuous_$ac_func
20548
20549 /* System header to define __stub macros and hopefully few prototypes,
20550     which can conflict with char $ac_func (); below.
20551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20552     <limits.h> exists even on freestanding compilers.  */
20553
20554 #ifdef __STDC__
20555 # include <limits.h>
20556 #else
20557 # include <assert.h>
20558 #endif
20559
20560 #undef $ac_func
20561
20562 /* Override any GCC internal prototype to avoid an error.
20563    Use char because int might match the return type of a GCC
20564    builtin and then its argument prototype would still apply.  */
20565 #ifdef __cplusplus
20566 extern "C"
20567 #endif
20568 char $ac_func ();
20569 /* The GNU C library defines this for functions which it implements
20570     to always fail with ENOSYS.  Some functions are actually named
20571     something starting with __ and the normal name is an alias.  */
20572 #if defined __stub_$ac_func || defined __stub___$ac_func
20573 choke me
20574 #endif
20575
20576 int
20577 main ()
20578 {
20579 return $ac_func ();
20580   ;
20581   return 0;
20582 }
20583 _ACEOF
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (ac_try="$ac_link"
20586 case "(($ac_try" in
20587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588   *) ac_try_echo=$ac_try;;
20589 esac
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591   (eval "$ac_link") 2>conftest.er1
20592   ac_status=$?
20593   grep -v '^ *+' conftest.er1 >conftest.err
20594   rm -f conftest.er1
20595   cat conftest.err >&5
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); } &&
20598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599   { (case "(($ac_try" in
20600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601   *) ac_try_echo=$ac_try;;
20602 esac
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604   (eval "$ac_try") 2>&5
20605   ac_status=$?
20606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607   (exit $ac_status); }; } &&
20608          { ac_try='test -s conftest$ac_exeext'
20609   { (case "(($ac_try" in
20610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611   *) ac_try_echo=$ac_try;;
20612 esac
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614   (eval "$ac_try") 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   eval "$as_ac_var=yes"
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623         eval "$as_ac_var=no"
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext \
20627       conftest$ac_exeext conftest.$ac_ext
20628 fi
20629 ac_res=`eval echo '${'$as_ac_var'}'`
20630                { echo "$as_me:$LINENO: result: $ac_res" >&5
20631 echo "${ECHO_T}$ac_res" >&6; }
20632 if test `eval echo '${'$as_ac_var'}'` = yes; then
20633   cat >>confdefs.h <<_ACEOF
20634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20635 _ACEOF
20636
20637 fi
20638 done
20639
20640
20641 SHLIBEXT=$libltdl_cv_shlibext
20642
20643
20644 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20645
20646
20647 # Translate the various configuration directories and other basic
20648 # information into substitutions that will end up in Makefile.config.in
20649 # that these configured values can be used by the makefiles
20650 if test "${prefix}" = "NONE" ; then
20651   prefix="/usr/local"
20652 fi
20653 eval LLVM_PREFIX="${prefix}";
20654 eval LLVM_BINDIR="${prefix}/bin";
20655 eval LLVM_LIBDIR="${prefix}/lib";
20656 eval LLVM_DATADIR="${prefix}/share/llvm";
20657 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20658 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20659 eval LLVM_INCLUDEDIR="${prefix}/include";
20660 eval LLVM_INFODIR="${prefix}/info";
20661 eval LLVM_MANDIR="${prefix}/man";
20662 LLVM_CONFIGTIME=`date`
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674 # Place the various directores into the config.h file as #defines so that we
20675 # can know about the installation paths within LLVM.
20676
20677 cat >>confdefs.h <<_ACEOF
20678 #define LLVM_PREFIX "$LLVM_PREFIX"
20679 _ACEOF
20680
20681
20682 cat >>confdefs.h <<_ACEOF
20683 #define LLVM_BINDIR "$LLVM_BINDIR"
20684 _ACEOF
20685
20686
20687 cat >>confdefs.h <<_ACEOF
20688 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20689 _ACEOF
20690
20691
20692 cat >>confdefs.h <<_ACEOF
20693 #define LLVM_DATADIR "$LLVM_DATADIR"
20694 _ACEOF
20695
20696
20697 cat >>confdefs.h <<_ACEOF
20698 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20699 _ACEOF
20700
20701
20702 cat >>confdefs.h <<_ACEOF
20703 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20704 _ACEOF
20705
20706
20707 cat >>confdefs.h <<_ACEOF
20708 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20709 _ACEOF
20710
20711
20712 cat >>confdefs.h <<_ACEOF
20713 #define LLVM_INFODIR "$LLVM_INFODIR"
20714 _ACEOF
20715
20716
20717 cat >>confdefs.h <<_ACEOF
20718 #define LLVM_MANDIR "$LLVM_MANDIR"
20719 _ACEOF
20720
20721
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20724 _ACEOF
20725
20726
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20729 _ACEOF
20730
20731
20732 # Determine which bindings to build.
20733 if test "$BINDINGS_TO_BUILD" = auto ; then
20734   BINDINGS_TO_BUILD=""
20735   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20736     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20737   fi
20738 fi
20739 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20740
20741
20742 # This isn't really configurey, but it avoids having to repeat the list in
20743 # other files.
20744 ALL_BINDINGS=ocaml
20745
20746
20747 # Do any work necessary to ensure that bindings have what they need.
20748 binding_prereqs_failed=0
20749 for a_binding in $BINDINGS_TO_BUILD ; do
20750   case "$a_binding" in
20751   ocaml)
20752     if test "x$OCAMLC" = x ; then
20753       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20754 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20755       binding_prereqs_failed=1
20756     fi
20757     if test "x$OCAMLDEP" = x ; then
20758       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20759 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20760       binding_prereqs_failed=1
20761     fi
20762     if test "x$OCAMLOPT" = x ; then
20763       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20764 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20765           fi
20766     if test "x$with_ocaml_libdir" != xauto ; then
20767       OCAML_LIBDIR=$with_ocaml_libdir
20768
20769     else
20770       ocaml_stdlib="`"$OCAMLC" -where`"
20771       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20772       then
20773         # ocaml stdlib is beneath our prefix; use stdlib
20774         OCAML_LIBDIR=$ocaml_stdlib
20775
20776       else
20777         # ocaml stdlib is outside our prefix; use libdir/ocaml
20778         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20779
20780       fi
20781     fi
20782     ;;
20783   esac
20784 done
20785 if test "$binding_prereqs_failed" = 1 ; then
20786   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20787 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20788    { (exit 1); exit 1; }; }
20789 fi
20790
20791 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20792 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20793 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20794   echo $ECHO_N "(cached) $ECHO_C" >&6
20795 else
20796    ac_ext=cpp
20797 ac_cpp='$CXXCPP $CPPFLAGS'
20798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20801
20802   oldcxxflags="$CXXFLAGS"
20803   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20804   cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20811 int
20812 main ()
20813 {
20814 X<int>().f();
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_compile") 2>conftest.er1
20827   ac_status=$?
20828   grep -v '^ *+' conftest.er1 >conftest.err
20829   rm -f conftest.er1
20830   cat conftest.err >&5
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } &&
20833          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20834   { (case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_try") 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; } &&
20843          { ac_try='test -s conftest.$ac_objext'
20844   { (case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_try") 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; }; then
20853   llvm_cv_cxx_visibility_inlines_hidden=yes
20854 else
20855   echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858         llvm_cv_cxx_visibility_inlines_hidden=no
20859 fi
20860
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862   CXXFLAGS="$oldcxxflags"
20863   ac_ext=c
20864 ac_cpp='$CPP $CPPFLAGS'
20865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20868
20869
20870 fi
20871 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20872 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20873 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20874   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20875
20876 else
20877   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20878
20879 fi
20880
20881
20882 if test "$llvm_cv_link_use_r" = "yes" ; then
20883   RPATH="-Wl,-R"
20884 else
20885   RPATH="-Wl,-rpath"
20886 fi
20887
20888
20889 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20890   RDYNAMIC="-Wl,-export-dynamic"
20891 else
20892   RDYNAMIC=""
20893 fi
20894
20895
20896
20897
20898 ac_config_files="$ac_config_files Makefile.common"
20899
20900 ac_config_files="$ac_config_files Makefile.llvm.config"
20901
20902
20903 ac_config_commands="$ac_config_commands Makefile"
20904
20905
20906 ac_config_commands="$ac_config_commands lib/Makefile"
20907
20908
20909 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20910
20911
20912 ac_config_commands="$ac_config_commands tools/Makefile"
20913
20914
20915 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20916
20917
20918
20919 cat >confcache <<\_ACEOF
20920 # This file is a shell script that caches the results of configure
20921 # tests run on this system so they can be shared between configure
20922 # scripts and configure runs, see configure's option --config-cache.
20923 # It is not useful on other systems.  If it contains results you don't
20924 # want to keep, you may remove or edit it.
20925 #
20926 # config.status only pays attention to the cache file if you give it
20927 # the --recheck option to rerun configure.
20928 #
20929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20931 # following values.
20932
20933 _ACEOF
20934
20935 # The following way of writing the cache mishandles newlines in values,
20936 # but we know of no workaround that is simple, portable, and efficient.
20937 # So, we kill variables containing newlines.
20938 # Ultrix sh set writes to stderr and can't be redirected directly,
20939 # and sets the high bit in the cache file unless we assign to the vars.
20940 (
20941   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20942     eval ac_val=\$$ac_var
20943     case $ac_val in #(
20944     *${as_nl}*)
20945       case $ac_var in #(
20946       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20947 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20948       esac
20949       case $ac_var in #(
20950       _ | IFS | as_nl) ;; #(
20951       *) $as_unset $ac_var ;;
20952       esac ;;
20953     esac
20954   done
20955
20956   (set) 2>&1 |
20957     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20958     *${as_nl}ac_space=\ *)
20959       # `set' does not quote correctly, so add quotes (double-quote
20960       # substitution turns \\\\ into \\, and sed turns \\ into \).
20961       sed -n \
20962         "s/'/'\\\\''/g;
20963           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20964       ;; #(
20965     *)
20966       # `set' quotes correctly as required by POSIX, so do not add quotes.
20967       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20968       ;;
20969     esac |
20970     sort
20971 ) |
20972   sed '
20973      /^ac_cv_env_/b end
20974      t clear
20975      :clear
20976      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20977      t end
20978      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20979      :end' >>confcache
20980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20981   if test -w "$cache_file"; then
20982     test "x$cache_file" != "x/dev/null" &&
20983       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20984 echo "$as_me: updating cache $cache_file" >&6;}
20985     cat confcache >$cache_file
20986   else
20987     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20988 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20989   fi
20990 fi
20991 rm -f confcache
20992
20993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20994 # Let make expand exec_prefix.
20995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20996
20997 # Transform confdefs.h into DEFS.
20998 # Protect against shell expansion while executing Makefile rules.
20999 # Protect against Makefile macro expansion.
21000 #
21001 # If the first sed substitution is executed (which looks for macros that
21002 # take arguments), then branch to the quote section.  Otherwise,
21003 # look for a macro that doesn't take arguments.
21004 ac_script='
21005 t clear
21006 :clear
21007 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21008 t quote
21009 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21010 t quote
21011 b any
21012 :quote
21013 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21014 s/\[/\\&/g
21015 s/\]/\\&/g
21016 s/\$/$$/g
21017 H
21018 :any
21019 ${
21020         g
21021         s/^\n//
21022         s/\n/ /g
21023         p
21024 }
21025 '
21026 DEFS=`sed -n "$ac_script" confdefs.h`
21027
21028
21029 ac_libobjs=
21030 ac_ltlibobjs=
21031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21032   # 1. Remove the extension, and $U if already installed.
21033   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21034   ac_i=`echo "$ac_i" | sed "$ac_script"`
21035   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21036   #    will be set to the directory where LIBOBJS objects are built.
21037   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21038   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21039 done
21040 LIBOBJS=$ac_libobjs
21041
21042 LTLIBOBJS=$ac_ltlibobjs
21043
21044
21045 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21046   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21047 Usually this means the macro was only invoked conditionally." >&5
21048 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21049 Usually this means the macro was only invoked conditionally." >&2;}
21050    { (exit 1); exit 1; }; }
21051 fi
21052 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21053   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21054 Usually this means the macro was only invoked conditionally." >&5
21055 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21056 Usually this means the macro was only invoked conditionally." >&2;}
21057    { (exit 1); exit 1; }; }
21058 fi
21059
21060 : ${CONFIG_STATUS=./config.status}
21061 ac_clean_files_save=$ac_clean_files
21062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21063 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21064 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21065 cat >$CONFIG_STATUS <<_ACEOF
21066 #! $SHELL
21067 # Generated by $as_me.
21068 # Run this file to recreate the current configuration.
21069 # Compiler output produced by configure, useful for debugging
21070 # configure, is in config.log if it exists.
21071
21072 debug=false
21073 ac_cs_recheck=false
21074 ac_cs_silent=false
21075 SHELL=\${CONFIG_SHELL-$SHELL}
21076 _ACEOF
21077
21078 cat >>$CONFIG_STATUS <<\_ACEOF
21079 ## --------------------- ##
21080 ## M4sh Initialization.  ##
21081 ## --------------------- ##
21082
21083 # Be Bourne compatible
21084 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21085   emulate sh
21086   NULLCMD=:
21087   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21088   # is contrary to our usage.  Disable this feature.
21089   alias -g '${1+"$@"}'='"$@"'
21090   setopt NO_GLOB_SUBST
21091 else
21092   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21093 fi
21094 BIN_SH=xpg4; export BIN_SH # for Tru64
21095 DUALCASE=1; export DUALCASE # for MKS sh
21096
21097
21098 # PATH needs CR
21099 # Avoid depending upon Character Ranges.
21100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21103 as_cr_digits='0123456789'
21104 as_cr_alnum=$as_cr_Letters$as_cr_digits
21105
21106 # The user is always right.
21107 if test "${PATH_SEPARATOR+set}" != set; then
21108   echo "#! /bin/sh" >conf$$.sh
21109   echo  "exit 0"   >>conf$$.sh
21110   chmod +x conf$$.sh
21111   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21112     PATH_SEPARATOR=';'
21113   else
21114     PATH_SEPARATOR=:
21115   fi
21116   rm -f conf$$.sh
21117 fi
21118
21119 # Support unset when possible.
21120 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21121   as_unset=unset
21122 else
21123   as_unset=false
21124 fi
21125
21126
21127 # IFS
21128 # We need space, tab and new line, in precisely that order.  Quoting is
21129 # there to prevent editors from complaining about space-tab.
21130 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21131 # splitting by setting IFS to empty value.)
21132 as_nl='
21133 '
21134 IFS=" ""        $as_nl"
21135
21136 # Find who we are.  Look in the path if we contain no directory separator.
21137 case $0 in
21138   *[\\/]* ) as_myself=$0 ;;
21139   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21140 for as_dir in $PATH
21141 do
21142   IFS=$as_save_IFS
21143   test -z "$as_dir" && as_dir=.
21144   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21145 done
21146 IFS=$as_save_IFS
21147
21148      ;;
21149 esac
21150 # We did not find ourselves, most probably we were run as `sh COMMAND'
21151 # in which case we are not to be found in the path.
21152 if test "x$as_myself" = x; then
21153   as_myself=$0
21154 fi
21155 if test ! -f "$as_myself"; then
21156   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21157   { (exit 1); exit 1; }
21158 fi
21159
21160 # Work around bugs in pre-3.0 UWIN ksh.
21161 for as_var in ENV MAIL MAILPATH
21162 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21163 done
21164 PS1='$ '
21165 PS2='> '
21166 PS4='+ '
21167
21168 # NLS nuisances.
21169 for as_var in \
21170   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21171   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21172   LC_TELEPHONE LC_TIME
21173 do
21174   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21175     eval $as_var=C; export $as_var
21176   else
21177     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21178   fi
21179 done
21180
21181 # Required to use basename.
21182 if expr a : '\(a\)' >/dev/null 2>&1 &&
21183    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21184   as_expr=expr
21185 else
21186   as_expr=false
21187 fi
21188
21189 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21190   as_basename=basename
21191 else
21192   as_basename=false
21193 fi
21194
21195
21196 # Name of the executable.
21197 as_me=`$as_basename -- "$0" ||
21198 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21199          X"$0" : 'X\(//\)$' \| \
21200          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21201 echo X/"$0" |
21202     sed '/^.*\/\([^/][^/]*\)\/*$/{
21203             s//\1/
21204             q
21205           }
21206           /^X\/\(\/\/\)$/{
21207             s//\1/
21208             q
21209           }
21210           /^X\/\(\/\).*/{
21211             s//\1/
21212             q
21213           }
21214           s/.*/./; q'`
21215
21216 # CDPATH.
21217 $as_unset CDPATH
21218
21219
21220
21221   as_lineno_1=$LINENO
21222   as_lineno_2=$LINENO
21223   test "x$as_lineno_1" != "x$as_lineno_2" &&
21224   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21225
21226   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21227   # uniformly replaced by the line number.  The first 'sed' inserts a
21228   # line-number line after each line using $LINENO; the second 'sed'
21229   # does the real work.  The second script uses 'N' to pair each
21230   # line-number line with the line containing $LINENO, and appends
21231   # trailing '-' during substitution so that $LINENO is not a special
21232   # case at line end.
21233   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21234   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21235   # E. McMahon (1931-1989) for sed's syntax.  :-)
21236   sed -n '
21237     p
21238     /[$]LINENO/=
21239   ' <$as_myself |
21240     sed '
21241       s/[$]LINENO.*/&-/
21242       t lineno
21243       b
21244       :lineno
21245       N
21246       :loop
21247       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21248       t loop
21249       s/-\n.*//
21250     ' >$as_me.lineno &&
21251   chmod +x "$as_me.lineno" ||
21252     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21253    { (exit 1); exit 1; }; }
21254
21255   # Don't try to exec as it changes $[0], causing all sort of problems
21256   # (the dirname of $[0] is not the place where we might find the
21257   # original and so on.  Autoconf is especially sensitive to this).
21258   . "./$as_me.lineno"
21259   # Exit status is that of the last command.
21260   exit
21261 }
21262
21263
21264 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21265   as_dirname=dirname
21266 else
21267   as_dirname=false
21268 fi
21269
21270 ECHO_C= ECHO_N= ECHO_T=
21271 case `echo -n x` in
21272 -n*)
21273   case `echo 'x\c'` in
21274   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21275   *)   ECHO_C='\c';;
21276   esac;;
21277 *)
21278   ECHO_N='-n';;
21279 esac
21280
21281 if expr a : '\(a\)' >/dev/null 2>&1 &&
21282    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21283   as_expr=expr
21284 else
21285   as_expr=false
21286 fi
21287
21288 rm -f conf$$ conf$$.exe conf$$.file
21289 if test -d conf$$.dir; then
21290   rm -f conf$$.dir/conf$$.file
21291 else
21292   rm -f conf$$.dir
21293   mkdir conf$$.dir
21294 fi
21295 echo >conf$$.file
21296 if ln -s conf$$.file conf$$ 2>/dev/null; then
21297   as_ln_s='ln -s'
21298   # ... but there are two gotchas:
21299   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21300   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21301   # In both cases, we have to default to `cp -p'.
21302   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21303     as_ln_s='cp -p'
21304 elif ln conf$$.file conf$$ 2>/dev/null; then
21305   as_ln_s=ln
21306 else
21307   as_ln_s='cp -p'
21308 fi
21309 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21310 rmdir conf$$.dir 2>/dev/null
21311
21312 if mkdir -p . 2>/dev/null; then
21313   as_mkdir_p=:
21314 else
21315   test -d ./-p && rmdir ./-p
21316   as_mkdir_p=false
21317 fi
21318
21319 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21320 # systems may use methods other than mode bits to determine executability.
21321 cat >conf$$.file <<_ASEOF
21322 #! /bin/sh
21323 exit 0
21324 _ASEOF
21325 chmod +x conf$$.file
21326 if test -x conf$$.file >/dev/null 2>&1; then
21327   as_executable_p="test -x"
21328 else
21329   as_executable_p=:
21330 fi
21331 rm -f conf$$.file
21332
21333 # Sed expression to map a string onto a valid CPP name.
21334 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21335
21336 # Sed expression to map a string onto a valid variable name.
21337 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21338
21339
21340 exec 6>&1
21341
21342 # Save the log message, to keep $[0] and so on meaningful, and to
21343 # report actual input values of CONFIG_FILES etc. instead of their
21344 # values after options handling.
21345 ac_log="
21346 This file was extended by [SAMPLE] $as_me [x.xx], which was
21347 generated by GNU Autoconf 2.60.  Invocation command line was
21348
21349   CONFIG_FILES    = $CONFIG_FILES
21350   CONFIG_HEADERS  = $CONFIG_HEADERS
21351   CONFIG_LINKS    = $CONFIG_LINKS
21352   CONFIG_COMMANDS = $CONFIG_COMMANDS
21353   $ $0 $@
21354
21355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21356 "
21357
21358 _ACEOF
21359
21360 cat >>$CONFIG_STATUS <<_ACEOF
21361 # Files that config.status was made for.
21362 config_files="$ac_config_files"
21363 config_commands="$ac_config_commands"
21364
21365 _ACEOF
21366
21367 cat >>$CONFIG_STATUS <<\_ACEOF
21368 ac_cs_usage="\
21369 \`$as_me' instantiates files from templates according to the
21370 current configuration.
21371
21372 Usage: $0 [OPTIONS] [FILE]...
21373
21374   -h, --help       print this help, then exit
21375   -V, --version    print version number, then exit
21376   -q, --quiet      do not print progress messages
21377   -d, --debug      don't remove temporary files
21378       --recheck    update $as_me by reconfiguring in the same conditions
21379   --file=FILE[:TEMPLATE]
21380                    instantiate the configuration file FILE
21381
21382 Configuration files:
21383 $config_files
21384
21385 Configuration commands:
21386 $config_commands
21387
21388 Report bugs to <bug-autoconf@gnu.org>."
21389
21390 _ACEOF
21391 cat >>$CONFIG_STATUS <<_ACEOF
21392 ac_cs_version="\\
21393 [SAMPLE] config.status [x.xx]
21394 configured by $0, generated by GNU Autoconf 2.60,
21395   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21396
21397 Copyright (C) 2006 Free Software Foundation, Inc.
21398 This config.status script is free software; the Free Software Foundation
21399 gives unlimited permission to copy, distribute and modify it."
21400
21401 ac_pwd='$ac_pwd'
21402 srcdir='$srcdir'
21403 INSTALL='$INSTALL'
21404 _ACEOF
21405
21406 cat >>$CONFIG_STATUS <<\_ACEOF
21407 # If no file are specified by the user, then we need to provide default
21408 # value.  By we need to know if files were specified by the user.
21409 ac_need_defaults=:
21410 while test $# != 0
21411 do
21412   case $1 in
21413   --*=*)
21414     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21415     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21416     ac_shift=:
21417     ;;
21418   *)
21419     ac_option=$1
21420     ac_optarg=$2
21421     ac_shift=shift
21422     ;;
21423   esac
21424
21425   case $ac_option in
21426   # Handling of the options.
21427   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21428     ac_cs_recheck=: ;;
21429   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21430     echo "$ac_cs_version"; exit ;;
21431   --debug | --debu | --deb | --de | --d | -d )
21432     debug=: ;;
21433   --file | --fil | --fi | --f )
21434     $ac_shift
21435     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21436     ac_need_defaults=false;;
21437   --he | --h |  --help | --hel | -h )
21438     echo "$ac_cs_usage"; exit ;;
21439   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21440   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21441     ac_cs_silent=: ;;
21442
21443   # This is an error.
21444   -*) { echo "$as_me: error: unrecognized option: $1
21445 Try \`$0 --help' for more information." >&2
21446    { (exit 1); exit 1; }; } ;;
21447
21448   *) ac_config_targets="$ac_config_targets $1"
21449      ac_need_defaults=false ;;
21450
21451   esac
21452   shift
21453 done
21454
21455 ac_configure_extra_args=
21456
21457 if $ac_cs_silent; then
21458   exec 6>/dev/null
21459   ac_configure_extra_args="$ac_configure_extra_args --silent"
21460 fi
21461
21462 _ACEOF
21463 cat >>$CONFIG_STATUS <<_ACEOF
21464 if \$ac_cs_recheck; then
21465   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21466   CONFIG_SHELL=$SHELL
21467   export CONFIG_SHELL
21468   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21469 fi
21470
21471 _ACEOF
21472 cat >>$CONFIG_STATUS <<\_ACEOF
21473 exec 5>>config.log
21474 {
21475   echo
21476   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21477 ## Running $as_me. ##
21478 _ASBOX
21479   echo "$ac_log"
21480 } >&5
21481
21482 _ACEOF
21483 cat >>$CONFIG_STATUS <<_ACEOF
21484 #
21485 # INIT-COMMANDS
21486 #
21487 llvm_src="${LLVM_SRC}"
21488
21489 _ACEOF
21490
21491 cat >>$CONFIG_STATUS <<\_ACEOF
21492
21493 # Handling of arguments.
21494 for ac_config_target in $ac_config_targets
21495 do
21496   case $ac_config_target in
21497     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21498     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21499     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21500     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21501     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21502     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21503     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21504     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21505
21506   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21507 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21508    { (exit 1); exit 1; }; };;
21509   esac
21510 done
21511
21512
21513 # If the user did not use the arguments to specify the items to instantiate,
21514 # then the envvar interface is used.  Set only those that are not.
21515 # We use the long form for the default assignment because of an extremely
21516 # bizarre bug on SunOS 4.1.3.
21517 if $ac_need_defaults; then
21518   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21519   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21520 fi
21521
21522 # Have a temporary directory for convenience.  Make it in the build tree
21523 # simply because there is no reason against having it here, and in addition,
21524 # creating and moving files from /tmp can sometimes cause problems.
21525 # Hook for its removal unless debugging.
21526 # Note that there is a small window in which the directory will not be cleaned:
21527 # after its creation but before its name has been assigned to `$tmp'.
21528 $debug ||
21529 {
21530   tmp=
21531   trap 'exit_status=$?
21532   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21533 ' 0
21534   trap '{ (exit 1); exit 1; }' 1 2 13 15
21535 }
21536 # Create a (secure) tmp directory for tmp files.
21537
21538 {
21539   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21540   test -n "$tmp" && test -d "$tmp"
21541 }  ||
21542 {
21543   tmp=./conf$$-$RANDOM
21544   (umask 077 && mkdir "$tmp")
21545 } ||
21546 {
21547    echo "$me: cannot create a temporary directory in ." >&2
21548    { (exit 1); exit 1; }
21549 }
21550
21551 #
21552 # Set up the sed scripts for CONFIG_FILES section.
21553 #
21554
21555 # No need to generate the scripts if there are no CONFIG_FILES.
21556 # This happens for instance when ./config.status config.h
21557 if test -n "$CONFIG_FILES"; then
21558
21559 _ACEOF
21560
21561
21562
21563 ac_delim='%!_!# '
21564 for ac_last_try in false false false false false :; do
21565   cat >conf$$subs.sed <<_ACEOF
21566 SHELL!$SHELL$ac_delim
21567 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21568 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21569 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21570 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21571 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21572 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21573 exec_prefix!$exec_prefix$ac_delim
21574 prefix!$prefix$ac_delim
21575 program_transform_name!$program_transform_name$ac_delim
21576 bindir!$bindir$ac_delim
21577 sbindir!$sbindir$ac_delim
21578 libexecdir!$libexecdir$ac_delim
21579 datarootdir!$datarootdir$ac_delim
21580 datadir!$datadir$ac_delim
21581 sysconfdir!$sysconfdir$ac_delim
21582 sharedstatedir!$sharedstatedir$ac_delim
21583 localstatedir!$localstatedir$ac_delim
21584 includedir!$includedir$ac_delim
21585 oldincludedir!$oldincludedir$ac_delim
21586 docdir!$docdir$ac_delim
21587 infodir!$infodir$ac_delim
21588 htmldir!$htmldir$ac_delim
21589 dvidir!$dvidir$ac_delim
21590 pdfdir!$pdfdir$ac_delim
21591 psdir!$psdir$ac_delim
21592 libdir!$libdir$ac_delim
21593 localedir!$localedir$ac_delim
21594 mandir!$mandir$ac_delim
21595 DEFS!$DEFS$ac_delim
21596 ECHO_C!$ECHO_C$ac_delim
21597 ECHO_N!$ECHO_N$ac_delim
21598 ECHO_T!$ECHO_T$ac_delim
21599 LIBS!$LIBS$ac_delim
21600 build_alias!$build_alias$ac_delim
21601 host_alias!$host_alias$ac_delim
21602 target_alias!$target_alias$ac_delim
21603 LLVM_SRC!$LLVM_SRC$ac_delim
21604 LLVM_OBJ!$LLVM_OBJ$ac_delim
21605 LLVM_VERSION!$LLVM_VERSION$ac_delim
21606 CC!$CC$ac_delim
21607 CFLAGS!$CFLAGS$ac_delim
21608 LDFLAGS!$LDFLAGS$ac_delim
21609 CPPFLAGS!$CPPFLAGS$ac_delim
21610 ac_ct_CC!$ac_ct_CC$ac_delim
21611 EXEEXT!$EXEEXT$ac_delim
21612 OBJEXT!$OBJEXT$ac_delim
21613 CXX!$CXX$ac_delim
21614 CXXFLAGS!$CXXFLAGS$ac_delim
21615 ac_ct_CXX!$ac_ct_CXX$ac_delim
21616 CPP!$CPP$ac_delim
21617 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21618 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21619 subdirs!$subdirs$ac_delim
21620 build!$build$ac_delim
21621 build_cpu!$build_cpu$ac_delim
21622 build_vendor!$build_vendor$ac_delim
21623 build_os!$build_os$ac_delim
21624 host!$host$ac_delim
21625 host_cpu!$host_cpu$ac_delim
21626 host_vendor!$host_vendor$ac_delim
21627 host_os!$host_os$ac_delim
21628 target!$target$ac_delim
21629 target_cpu!$target_cpu$ac_delim
21630 target_vendor!$target_vendor$ac_delim
21631 target_os!$target_os$ac_delim
21632 OS!$OS$ac_delim
21633 HOST_OS!$HOST_OS$ac_delim
21634 TARGET_OS!$TARGET_OS$ac_delim
21635 LINKALL!$LINKALL$ac_delim
21636 NOLINKALL!$NOLINKALL$ac_delim
21637 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21638 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21639 ARCH!$ARCH$ac_delim
21640 ENDIAN!$ENDIAN$ac_delim
21641 GREP!$GREP$ac_delim
21642 EGREP!$EGREP$ac_delim
21643 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21644 BUILD_CC!$BUILD_CC$ac_delim
21645 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21646 BUILD_CXX!$BUILD_CXX$ac_delim
21647 CVSBUILD!$CVSBUILD$ac_delim
21648 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21649 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21650 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21651 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21652 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21653 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21654 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21655 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21656 JIT!$JIT$ac_delim
21657 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21658 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21659 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21660 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21661 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21662 ENABLE_PIC!$ENABLE_PIC$ac_delim
21663 _ACEOF
21664
21665   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21666     break
21667   elif $ac_last_try; then
21668     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21669 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21670    { (exit 1); exit 1; }; }
21671   else
21672     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21673   fi
21674 done
21675
21676 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21677 if test -n "$ac_eof"; then
21678   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21679   ac_eof=`expr $ac_eof + 1`
21680 fi
21681
21682 cat >>$CONFIG_STATUS <<_ACEOF
21683 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21685 _ACEOF
21686 sed '
21687 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21688 s/^/s,@/; s/!/@,|#_!!_#|/
21689 :n
21690 t n
21691 s/'"$ac_delim"'$/,g/; t
21692 s/$/\\/; p
21693 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21694 ' >>$CONFIG_STATUS <conf$$subs.sed
21695 rm -f conf$$subs.sed
21696 cat >>$CONFIG_STATUS <<_ACEOF
21697 CEOF$ac_eof
21698 _ACEOF
21699
21700
21701 ac_delim='%!_!# '
21702 for ac_last_try in false false false false false :; do
21703   cat >conf$$subs.sed <<_ACEOF
21704 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21705 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21706 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21707 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21708 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21709 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21710 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21711 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21712 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21713 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21714 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21715 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21716 NM!$NM$ac_delim
21717 ifGNUmake!$ifGNUmake$ac_delim
21718 LN_S!$LN_S$ac_delim
21719 CMP!$CMP$ac_delim
21720 CP!$CP$ac_delim
21721 DATE!$DATE$ac_delim
21722 FIND!$FIND$ac_delim
21723 MKDIR!$MKDIR$ac_delim
21724 MV!$MV$ac_delim
21725 RANLIB!$RANLIB$ac_delim
21726 AR!$AR$ac_delim
21727 RM!$RM$ac_delim
21728 SED!$SED$ac_delim
21729 TAR!$TAR$ac_delim
21730 BINPWD!$BINPWD$ac_delim
21731 GRAPHVIZ!$GRAPHVIZ$ac_delim
21732 DOT!$DOT$ac_delim
21733 FDP!$FDP$ac_delim
21734 NEATO!$NEATO$ac_delim
21735 TWOPI!$TWOPI$ac_delim
21736 CIRCO!$CIRCO$ac_delim
21737 GV!$GV$ac_delim
21738 DOTTY!$DOTTY$ac_delim
21739 XDOT_PY!$XDOT_PY$ac_delim
21740 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21741 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21742 INSTALL_DATA!$INSTALL_DATA$ac_delim
21743 BZIP2!$BZIP2$ac_delim
21744 CAT!$CAT$ac_delim
21745 DOXYGEN!$DOXYGEN$ac_delim
21746 GROFF!$GROFF$ac_delim
21747 GZIPBIN!$GZIPBIN$ac_delim
21748 POD2HTML!$POD2HTML$ac_delim
21749 POD2MAN!$POD2MAN$ac_delim
21750 PDFROFF!$PDFROFF$ac_delim
21751 RUNTEST!$RUNTEST$ac_delim
21752 TCLSH!$TCLSH$ac_delim
21753 ZIP!$ZIP$ac_delim
21754 OCAMLC!$OCAMLC$ac_delim
21755 OCAMLOPT!$OCAMLOPT$ac_delim
21756 OCAMLDEP!$OCAMLDEP$ac_delim
21757 OCAMLDOC!$OCAMLDOC$ac_delim
21758 GAS!$GAS$ac_delim
21759 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21760 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21761 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21762 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21763 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21764 LIBADD_DL!$LIBADD_DL$ac_delim
21765 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21766 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21767 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21768 USE_UDIS86!$USE_UDIS86$ac_delim
21769 USE_OPROFILE!$USE_OPROFILE$ac_delim
21770 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21771 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21772 MMAP_FILE!$MMAP_FILE$ac_delim
21773 SHLIBEXT!$SHLIBEXT$ac_delim
21774 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21775 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21776 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21777 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21778 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21779 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21780 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21781 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21782 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21783 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21784 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21785 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21786 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21787 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21788 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21789 RPATH!$RPATH$ac_delim
21790 RDYNAMIC!$RDYNAMIC$ac_delim
21791 LIBOBJS!$LIBOBJS$ac_delim
21792 LTLIBOBJS!$LTLIBOBJS$ac_delim
21793 _ACEOF
21794
21795   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21796     break
21797   elif $ac_last_try; then
21798     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21799 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21800    { (exit 1); exit 1; }; }
21801   else
21802     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21803   fi
21804 done
21805
21806 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21807 if test -n "$ac_eof"; then
21808   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21809   ac_eof=`expr $ac_eof + 1`
21810 fi
21811
21812 cat >>$CONFIG_STATUS <<_ACEOF
21813 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21815 _ACEOF
21816 sed '
21817 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21818 s/^/s,@/; s/!/@,|#_!!_#|/
21819 :n
21820 t n
21821 s/'"$ac_delim"'$/,g/; t
21822 s/$/\\/; p
21823 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21824 ' >>$CONFIG_STATUS <conf$$subs.sed
21825 rm -f conf$$subs.sed
21826 cat >>$CONFIG_STATUS <<_ACEOF
21827 :end
21828 s/|#_!!_#|//g
21829 CEOF$ac_eof
21830 _ACEOF
21831
21832
21833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21835 # trailing colons and then remove the whole line if VPATH becomes empty
21836 # (actually we leave an empty line to preserve line numbers).
21837 if test "x$srcdir" = x.; then
21838   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21839 s/:*\$(srcdir):*/:/
21840 s/:*\${srcdir}:*/:/
21841 s/:*@srcdir@:*/:/
21842 s/^\([^=]*=[     ]*\):*/\1/
21843 s/:*$//
21844 s/^[^=]*=[       ]*$//
21845 }'
21846 fi
21847
21848 cat >>$CONFIG_STATUS <<\_ACEOF
21849 fi # test -n "$CONFIG_FILES"
21850
21851
21852 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21853 do
21854   case $ac_tag in
21855   :[FHLC]) ac_mode=$ac_tag; continue;;
21856   esac
21857   case $ac_mode$ac_tag in
21858   :[FHL]*:*);;
21859   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21860 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21861    { (exit 1); exit 1; }; };;
21862   :[FH]-) ac_tag=-:-;;
21863   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21864   esac
21865   ac_save_IFS=$IFS
21866   IFS=:
21867   set x $ac_tag
21868   IFS=$ac_save_IFS
21869   shift
21870   ac_file=$1
21871   shift
21872
21873   case $ac_mode in
21874   :L) ac_source=$1;;
21875   :[FH])
21876     ac_file_inputs=
21877     for ac_f
21878     do
21879       case $ac_f in
21880       -) ac_f="$tmp/stdin";;
21881       *) # Look for the file first in the build tree, then in the source tree
21882          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21883          # because $ac_f cannot contain `:'.
21884          test -f "$ac_f" ||
21885            case $ac_f in
21886            [\\/$]*) false;;
21887            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21888            esac ||
21889            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21890 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21891    { (exit 1); exit 1; }; };;
21892       esac
21893       ac_file_inputs="$ac_file_inputs $ac_f"
21894     done
21895
21896     # Let's still pretend it is `configure' which instantiates (i.e., don't
21897     # use $as_me), people would be surprised to read:
21898     #    /* config.h.  Generated by config.status.  */
21899     configure_input="Generated from "`IFS=:
21900           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21901     if test x"$ac_file" != x-; then
21902       configure_input="$ac_file.  $configure_input"
21903       { echo "$as_me:$LINENO: creating $ac_file" >&5
21904 echo "$as_me: creating $ac_file" >&6;}
21905     fi
21906
21907     case $ac_tag in
21908     *:-:* | *:-) cat >"$tmp/stdin";;
21909     esac
21910     ;;
21911   esac
21912
21913   ac_dir=`$as_dirname -- "$ac_file" ||
21914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21915          X"$ac_file" : 'X\(//\)[^/]' \| \
21916          X"$ac_file" : 'X\(//\)$' \| \
21917          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21918 echo X"$ac_file" |
21919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21920             s//\1/
21921             q
21922           }
21923           /^X\(\/\/\)[^/].*/{
21924             s//\1/
21925             q
21926           }
21927           /^X\(\/\/\)$/{
21928             s//\1/
21929             q
21930           }
21931           /^X\(\/\).*/{
21932             s//\1/
21933             q
21934           }
21935           s/.*/./; q'`
21936   { as_dir="$ac_dir"
21937   case $as_dir in #(
21938   -*) as_dir=./$as_dir;;
21939   esac
21940   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21941     as_dirs=
21942     while :; do
21943       case $as_dir in #(
21944       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21945       *) as_qdir=$as_dir;;
21946       esac
21947       as_dirs="'$as_qdir' $as_dirs"
21948       as_dir=`$as_dirname -- "$as_dir" ||
21949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21950          X"$as_dir" : 'X\(//\)[^/]' \| \
21951          X"$as_dir" : 'X\(//\)$' \| \
21952          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21953 echo X"$as_dir" |
21954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21955             s//\1/
21956             q
21957           }
21958           /^X\(\/\/\)[^/].*/{
21959             s//\1/
21960             q
21961           }
21962           /^X\(\/\/\)$/{
21963             s//\1/
21964             q
21965           }
21966           /^X\(\/\).*/{
21967             s//\1/
21968             q
21969           }
21970           s/.*/./; q'`
21971       test -d "$as_dir" && break
21972     done
21973     test -z "$as_dirs" || eval "mkdir $as_dirs"
21974   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21975 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21976    { (exit 1); exit 1; }; }; }
21977   ac_builddir=.
21978
21979 case "$ac_dir" in
21980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21981 *)
21982   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21983   # A ".." for each directory in $ac_dir_suffix.
21984   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21985   case $ac_top_builddir_sub in
21986   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21987   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21988   esac ;;
21989 esac
21990 ac_abs_top_builddir=$ac_pwd
21991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21992 # for backward compatibility:
21993 ac_top_builddir=$ac_top_build_prefix
21994
21995 case $srcdir in
21996   .)  # We are building in place.
21997     ac_srcdir=.
21998     ac_top_srcdir=$ac_top_builddir_sub
21999     ac_abs_top_srcdir=$ac_pwd ;;
22000   [\\/]* | ?:[\\/]* )  # Absolute name.
22001     ac_srcdir=$srcdir$ac_dir_suffix;
22002     ac_top_srcdir=$srcdir
22003     ac_abs_top_srcdir=$srcdir ;;
22004   *) # Relative name.
22005     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22006     ac_top_srcdir=$ac_top_build_prefix$srcdir
22007     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22008 esac
22009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22010
22011
22012   case $ac_mode in
22013   :F)
22014   #
22015   # CONFIG_FILE
22016   #
22017
22018   case $INSTALL in
22019   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22020   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22021   esac
22022 _ACEOF
22023
22024 cat >>$CONFIG_STATUS <<\_ACEOF
22025 # If the template does not know about datarootdir, expand it.
22026 # FIXME: This hack should be removed a few years after 2.60.
22027 ac_datarootdir_hack=; ac_datarootdir_seen=
22028
22029 case `sed -n '/datarootdir/ {
22030   p
22031   q
22032 }
22033 /@datadir@/p
22034 /@docdir@/p
22035 /@infodir@/p
22036 /@localedir@/p
22037 /@mandir@/p
22038 ' $ac_file_inputs` in
22039 *datarootdir*) ac_datarootdir_seen=yes;;
22040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22041   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22042 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22043 _ACEOF
22044 cat >>$CONFIG_STATUS <<_ACEOF
22045   ac_datarootdir_hack='
22046   s&@datadir@&$datadir&g
22047   s&@docdir@&$docdir&g
22048   s&@infodir@&$infodir&g
22049   s&@localedir@&$localedir&g
22050   s&@mandir@&$mandir&g
22051     s&\\\${datarootdir}&$datarootdir&g' ;;
22052 esac
22053 _ACEOF
22054
22055 # Neutralize VPATH when `$srcdir' = `.'.
22056 # Shell code in configure.ac might set extrasub.
22057 # FIXME: do we really want to maintain this feature?
22058 cat >>$CONFIG_STATUS <<_ACEOF
22059   sed "$ac_vpsub
22060 $extrasub
22061 _ACEOF
22062 cat >>$CONFIG_STATUS <<\_ACEOF
22063 :t
22064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22065 s&@configure_input@&$configure_input&;t t
22066 s&@top_builddir@&$ac_top_builddir_sub&;t t
22067 s&@srcdir@&$ac_srcdir&;t t
22068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22069 s&@top_srcdir@&$ac_top_srcdir&;t t
22070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22071 s&@builddir@&$ac_builddir&;t t
22072 s&@abs_builddir@&$ac_abs_builddir&;t t
22073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22074 s&@INSTALL@&$ac_INSTALL&;t t
22075 $ac_datarootdir_hack
22076 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22077
22078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22079   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22080   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22081   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22082 which seems to be undefined.  Please make sure it is defined." >&5
22083 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22084 which seems to be undefined.  Please make sure it is defined." >&2;}
22085
22086   rm -f "$tmp/stdin"
22087   case $ac_file in
22088   -) cat "$tmp/out"; rm -f "$tmp/out";;
22089   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22090   esac
22091  ;;
22092
22093
22094   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22095 echo "$as_me: executing $ac_file commands" >&6;}
22096  ;;
22097   esac
22098
22099
22100   case $ac_file$ac_mode in
22101     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22102    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22103     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22104    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22105     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22106    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22107     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22108    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22109     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22110    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22111
22112   esac
22113 done # for ac_tag
22114
22115
22116 { (exit 0); exit 0; }
22117 _ACEOF
22118 chmod +x $CONFIG_STATUS
22119 ac_clean_files=$ac_clean_files_save
22120
22121
22122 # configure is writing to config.log, and then calls config.status.
22123 # config.status does its own redirection, appending to config.log.
22124 # Unfortunately, on DOS this fails, as config.log is still kept open
22125 # by configure, so config.status won't be able to write to it; its
22126 # output is simply discarded.  So we exec the FD to /dev/null,
22127 # effectively closing config.log, so it can be properly (re)opened and
22128 # appended to by config.status.  When coming back to configure, we
22129 # need to make the FD available again.
22130 if test "$no_create" != yes; then
22131   ac_cs_success=:
22132   ac_config_status_args=
22133   test "$silent" = yes &&
22134     ac_config_status_args="$ac_config_status_args --quiet"
22135   exec 5>/dev/null
22136   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22137   exec 5>>config.log
22138   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22139   # would make configure fail if this is the last instruction.
22140   $ac_cs_success || { (exit 1); exit 1; }
22141 fi
22142
22143 #
22144 # CONFIG_SUBDIRS section.
22145 #
22146 if test "$no_recursion" != yes; then
22147
22148   # Remove --cache-file and --srcdir arguments so they do not pile up.
22149   ac_sub_configure_args=
22150   ac_prev=
22151   eval "set x $ac_configure_args"
22152   shift
22153   for ac_arg
22154   do
22155     if test -n "$ac_prev"; then
22156       ac_prev=
22157       continue
22158     fi
22159     case $ac_arg in
22160     -cache-file | --cache-file | --cache-fil | --cache-fi \
22161     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22162       ac_prev=cache_file ;;
22163     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22164     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22165     | --c=*)
22166       ;;
22167     --config-cache | -C)
22168       ;;
22169     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22170       ac_prev=srcdir ;;
22171     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22172       ;;
22173     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22174       ac_prev=prefix ;;
22175     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22176       ;;
22177     *)
22178       case $ac_arg in
22179       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22180       esac
22181       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22182     esac
22183   done
22184
22185   # Always prepend --prefix to ensure using the same prefix
22186   # in subdir configurations.
22187   ac_arg="--prefix=$prefix"
22188   case $ac_arg in
22189   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22190   esac
22191   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22192
22193   ac_popdir=`pwd`
22194   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22195
22196     # Do not complain, so a configure script can configure whichever
22197     # parts of a large source tree are present.
22198     test -d "$srcdir/$ac_dir" || continue
22199
22200     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22201     echo "$as_me:$LINENO: $ac_msg" >&5
22202     echo "$ac_msg" >&6
22203     { as_dir="$ac_dir"
22204   case $as_dir in #(
22205   -*) as_dir=./$as_dir;;
22206   esac
22207   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22208     as_dirs=
22209     while :; do
22210       case $as_dir in #(
22211       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22212       *) as_qdir=$as_dir;;
22213       esac
22214       as_dirs="'$as_qdir' $as_dirs"
22215       as_dir=`$as_dirname -- "$as_dir" ||
22216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22217          X"$as_dir" : 'X\(//\)[^/]' \| \
22218          X"$as_dir" : 'X\(//\)$' \| \
22219          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22220 echo X"$as_dir" |
22221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22222             s//\1/
22223             q
22224           }
22225           /^X\(\/\/\)[^/].*/{
22226             s//\1/
22227             q
22228           }
22229           /^X\(\/\/\)$/{
22230             s//\1/
22231             q
22232           }
22233           /^X\(\/\).*/{
22234             s//\1/
22235             q
22236           }
22237           s/.*/./; q'`
22238       test -d "$as_dir" && break
22239     done
22240     test -z "$as_dirs" || eval "mkdir $as_dirs"
22241   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22242 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22243    { (exit 1); exit 1; }; }; }
22244     ac_builddir=.
22245
22246 case "$ac_dir" in
22247 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22248 *)
22249   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22250   # A ".." for each directory in $ac_dir_suffix.
22251   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22252   case $ac_top_builddir_sub in
22253   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22254   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22255   esac ;;
22256 esac
22257 ac_abs_top_builddir=$ac_pwd
22258 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22259 # for backward compatibility:
22260 ac_top_builddir=$ac_top_build_prefix
22261
22262 case $srcdir in
22263   .)  # We are building in place.
22264     ac_srcdir=.
22265     ac_top_srcdir=$ac_top_builddir_sub
22266     ac_abs_top_srcdir=$ac_pwd ;;
22267   [\\/]* | ?:[\\/]* )  # Absolute name.
22268     ac_srcdir=$srcdir$ac_dir_suffix;
22269     ac_top_srcdir=$srcdir
22270     ac_abs_top_srcdir=$srcdir ;;
22271   *) # Relative name.
22272     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22273     ac_top_srcdir=$ac_top_build_prefix$srcdir
22274     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22275 esac
22276 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22277
22278
22279     cd "$ac_dir"
22280
22281     # Check for guested configure; otherwise get Cygnus style configure.
22282     if test -f "$ac_srcdir/configure.gnu"; then
22283       ac_sub_configure=$ac_srcdir/configure.gnu
22284     elif test -f "$ac_srcdir/configure"; then
22285       ac_sub_configure=$ac_srcdir/configure
22286     elif test -f "$ac_srcdir/configure.in"; then
22287       # This should be Cygnus configure.
22288       ac_sub_configure=$ac_aux_dir/configure
22289     else
22290       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22291 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22292       ac_sub_configure=
22293     fi
22294
22295     # The recursion is here.
22296     if test -n "$ac_sub_configure"; then
22297       # Make the cache file name correct relative to the subdirectory.
22298       case $cache_file in
22299       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22300       *) # Relative name.
22301         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22302       esac
22303
22304       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22305 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22306       # The eval makes quoting arguments work.
22307       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22308            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22309         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22310 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22311    { (exit 1); exit 1; }; }
22312     fi
22313
22314     cd "$ac_popdir"
22315   done
22316 fi
22317