configure: Don't require a perl interpreter to be present, LLVM's buildsystem doesn...
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 NM
713 ifGNUmake
714 LN_S
715 CMP
716 CP
717 DATE
718 FIND
719 MKDIR
720 MV
721 RANLIB
722 AR
723 RM
724 SED
725 TAR
726 BINPWD
727 GRAPHVIZ
728 DOT
729 FDP
730 NEATO
731 TWOPI
732 CIRCO
733 GV
734 DOTTY
735 XDOT_PY
736 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-optimized      Compile with optimizations enabled (default is NO)
1378   --enable-profiling      Compile with profiling enabled (default is NO)
1379   --enable-assertions     Compile with assertion checks enabled (default is
1380                           YES)
1381   --enable-expensive-checks
1382                           Compile with expensive debug checks enabled (default
1383                           is NO)
1384   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1385                           NO)
1386   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1387                           optimization is on and YES if it's off)
1388   --enable-jit            Enable Just In Time Compiling (default is YES)
1389   --enable-docs           Build documents (default is YES)
1390   --enable-doxygen        Build doxygen documentation (default is NO)
1391   --enable-threads        Use threads if available (default is YES)
1392   --enable-pthreads       Use pthreads if available (default is YES)
1393   --enable-pic            Build LLVM with Position Independent Code (default
1394                           is YES)
1395   --enable-shared         Build a shared library and link tools against it
1396                           (default is NO)
1397   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1398                           Win32 DLL (default is YES)
1399   --enable-timestamps     Enable embedding timestamp information in build
1400                           (default is YES)
1401   --enable-targets        Build specific host targets: all or
1402                           target1,target2,... Valid targets are: host, x86,
1403                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1404                           xcore, msp430, ptx, cbe, and cpp (default=all)
1405   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1406                           %a (default is YES)
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*)
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   *-*-solaris*)
3686     llvm_cv_link_all_option="-Wl,-z,allextract"
3687     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3688     llvm_cv_os_type="SunOS"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-auroraux*)
3691     llvm_cv_link_all_option="-Wl,-z,allextract"
3692     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3693     llvm_cv_os_type="AuroraUX"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-win32*)
3696     llvm_cv_link_all_option="-Wl,--whole-archive"
3697     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698     llvm_cv_os_type="Win32"
3699     llvm_cv_platform_type="Win32" ;;
3700   *-*-mingw*)
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="MingW"
3704     llvm_cv_platform_type="Win32" ;;
3705   *-*-haiku*)
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="Haiku"
3709     llvm_cv_platform_type="Unix" ;;
3710   *-unknown-eabi*)
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="Freestanding"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-unknown-elf*)
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   *)
3721     llvm_cv_link_all_option=""
3722     llvm_cv_no_link_all_option=""
3723     llvm_cv_os_type="Unknown"
3724     llvm_cv_platform_type="Unknown" ;;
3725 esac
3726 fi
3727 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3728 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3729
3730 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3731 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3732 if test "${llvm_cv_target_os_type+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   case $target in
3736   *-*-aix*)
3737     llvm_cv_target_os_type="AIX" ;;
3738   *-*-irix*)
3739     llvm_cv_target_os_type="IRIX" ;;
3740   *-*-cygwin*)
3741     llvm_cv_target_os_type="Cygwin" ;;
3742   *-*-darwin*)
3743     llvm_cv_target_os_type="Darwin" ;;
3744   *-*-minix*)
3745     llvm_cv_target_os_type="Minix" ;;
3746   *-*-freebsd*)
3747     llvm_cv_target_os_type="FreeBSD" ;;
3748   *-*-openbsd*)
3749     llvm_cv_target_os_type="OpenBSD" ;;
3750   *-*-netbsd*)
3751     llvm_cv_target_os_type="NetBSD" ;;
3752   *-*-dragonfly*)
3753     llvm_cv_target_os_type="DragonFly" ;;
3754   *-*-hpux*)
3755     llvm_cv_target_os_type="HP-UX" ;;
3756   *-*-interix*)
3757     llvm_cv_target_os_type="Interix" ;;
3758   *-*-linux*)
3759     llvm_cv_target_os_type="Linux" ;;
3760   *-*-solaris*)
3761     llvm_cv_target_os_type="SunOS" ;;
3762   *-*-auroraux*)
3763     llvm_cv_target_os_type="AuroraUX" ;;
3764   *-*-win32*)
3765     llvm_cv_target_os_type="Win32" ;;
3766   *-*-mingw*)
3767     llvm_cv_target_os_type="MingW" ;;
3768   *-*-haiku*)
3769     llvm_cv_target_os_type="Haiku" ;;
3770   *-*-rtems*)
3771     llvm_cv_target_os_type="RTEMS" ;;
3772   *-*-nacl*)
3773     llvm_cv_target_os_type="NativeClient" ;;
3774   *-unknown-eabi*)
3775     llvm_cv_target_os_type="Freestanding" ;;
3776   *)
3777     llvm_cv_target_os_type="Unknown" ;;
3778 esac
3779 fi
3780 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3781 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3782
3783 if test "$llvm_cv_os_type" = "Unknown" ; then
3784   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3785 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3786    { (exit 1); exit 1; }; }
3787 fi
3788
3789 OS=$llvm_cv_os_type
3790
3791 HOST_OS=$llvm_cv_os_type
3792
3793 TARGET_OS=$llvm_cv_target_os_type
3794
3795
3796 LINKALL=$llvm_cv_link_all_option
3797
3798 NOLINKALL=$llvm_cv_no_link_all_option
3799
3800
3801 case $llvm_cv_platform_type in
3802   Unix)
3803
3804 cat >>confdefs.h <<\_ACEOF
3805 #define LLVM_ON_UNIX 1
3806 _ACEOF
3807
3808     LLVM_ON_UNIX=1
3809
3810     LLVM_ON_WIN32=0
3811
3812     ;;
3813   Win32)
3814
3815 cat >>confdefs.h <<\_ACEOF
3816 #define LLVM_ON_WIN32 1
3817 _ACEOF
3818
3819     LLVM_ON_UNIX=0
3820
3821     LLVM_ON_WIN32=1
3822
3823     ;;
3824 esac
3825
3826 { echo "$as_me:$LINENO: checking target architecture" >&5
3827 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3828 if test "${llvm_cv_target_arch+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   case $target in
3832   i?86-*)                 llvm_cv_target_arch="x86" ;;
3833   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3834   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3835   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3836   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3837   mips-*)                 llvm_cv_target_arch="Mips" ;;
3838   xcore-*)                llvm_cv_target_arch="XCore" ;;
3839   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3840   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3841   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3842   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3843   *)                      llvm_cv_target_arch="Unknown" ;;
3844 esac
3845 fi
3846 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3847 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3848
3849 if test "$llvm_cv_target_arch" = "Unknown" ; then
3850   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3851 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3852 fi
3853
3854 # Determine the LLVM native architecture for the target
3855 case "$llvm_cv_target_arch" in
3856     x86)     LLVM_NATIVE_ARCH="X86" ;;
3857     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3858     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3859 esac
3860
3861 ARCH=$llvm_cv_target_arch
3862
3863
3864
3865
3866 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3867 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3868 if test "${ac_cv_path_GREP+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   # Extract the first word of "grep ggrep" to use in msg output
3872 if test -z "$GREP"; then
3873 set dummy grep ggrep; ac_prog_name=$2
3874 if test "${ac_cv_path_GREP+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   ac_path_GREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881 do
3882   IFS=$as_save_IFS
3883   test -z "$as_dir" && as_dir=.
3884   for ac_prog in grep ggrep; do
3885   for ac_exec_ext in '' $ac_executable_extensions; do
3886     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3887     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3888     # Check for GNU ac_path_GREP and select it if it is found.
3889   # Check for GNU $ac_path_GREP
3890 case `"$ac_path_GREP" --version 2>&1` in
3891 *GNU*)
3892   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3893 *)
3894   ac_count=0
3895   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896   while :
3897   do
3898     cat "conftest.in" "conftest.in" >"conftest.tmp"
3899     mv "conftest.tmp" "conftest.in"
3900     cp "conftest.in" "conftest.nl"
3901     echo 'GREP' >> "conftest.nl"
3902     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904     ac_count=`expr $ac_count + 1`
3905     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3906       # Best one so far, save it but keep looking for a better one
3907       ac_cv_path_GREP="$ac_path_GREP"
3908       ac_path_GREP_max=$ac_count
3909     fi
3910     # 10*(2^10) chars as input seems more than enough
3911     test $ac_count -gt 10 && break
3912   done
3913   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914 esac
3915
3916
3917     $ac_path_GREP_found && break 3
3918   done
3919 done
3920
3921 done
3922 IFS=$as_save_IFS
3923
3924
3925 fi
3926
3927 GREP="$ac_cv_path_GREP"
3928 if test -z "$GREP"; then
3929   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931    { (exit 1); exit 1; }; }
3932 fi
3933
3934 else
3935   ac_cv_path_GREP=$GREP
3936 fi
3937
3938
3939 fi
3940 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3941 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3942  GREP="$ac_cv_path_GREP"
3943
3944
3945 { echo "$as_me:$LINENO: checking for egrep" >&5
3946 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3947 if test "${ac_cv_path_EGREP+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3951    then ac_cv_path_EGREP="$GREP -E"
3952    else
3953      # Extract the first word of "egrep" to use in msg output
3954 if test -z "$EGREP"; then
3955 set dummy egrep; ac_prog_name=$2
3956 if test "${ac_cv_path_EGREP+set}" = set; then
3957   echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959   ac_path_EGREP_found=false
3960 # Loop through the user's path and test for each of PROGNAME-LIST
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_prog in egrep; do
3967   for ac_exec_ext in '' $ac_executable_extensions; do
3968     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3969     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3970     # Check for GNU ac_path_EGREP and select it if it is found.
3971   # Check for GNU $ac_path_EGREP
3972 case `"$ac_path_EGREP" --version 2>&1` in
3973 *GNU*)
3974   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3975 *)
3976   ac_count=0
3977   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3978   while :
3979   do
3980     cat "conftest.in" "conftest.in" >"conftest.tmp"
3981     mv "conftest.tmp" "conftest.in"
3982     cp "conftest.in" "conftest.nl"
3983     echo 'EGREP' >> "conftest.nl"
3984     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3985     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3986     ac_count=`expr $ac_count + 1`
3987     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3988       # Best one so far, save it but keep looking for a better one
3989       ac_cv_path_EGREP="$ac_path_EGREP"
3990       ac_path_EGREP_max=$ac_count
3991     fi
3992     # 10*(2^10) chars as input seems more than enough
3993     test $ac_count -gt 10 && break
3994   done
3995   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996 esac
3997
3998
3999     $ac_path_EGREP_found && break 3
4000   done
4001 done
4002
4003 done
4004 IFS=$as_save_IFS
4005
4006
4007 fi
4008
4009 EGREP="$ac_cv_path_EGREP"
4010 if test -z "$EGREP"; then
4011   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4012 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4013    { (exit 1); exit 1; }; }
4014 fi
4015
4016 else
4017   ac_cv_path_EGREP=$EGREP
4018 fi
4019
4020
4021    fi
4022 fi
4023 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4024 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4025  EGREP="$ac_cv_path_EGREP"
4026
4027
4028 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4029 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4030 if test "${ac_cv_header_stdc+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h.  */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h.  */
4039 #include <stdlib.h>
4040 #include <stdarg.h>
4041 #include <string.h>
4042 #include <float.h>
4043
4044 int
4045 main ()
4046 {
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4054 case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_compile") 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067   { (case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_try") 2>&5
4073   ac_status=$?
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); }; } &&
4076          { ac_try='test -s conftest.$ac_objext'
4077   { (case "(($ac_try" in
4078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079   *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082   (eval "$ac_try") 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   ac_cv_header_stdc=yes
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091         ac_cv_header_stdc=no
4092 fi
4093
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095
4096 if test $ac_cv_header_stdc = yes; then
4097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098   cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104 #include <string.h>
4105
4106 _ACEOF
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108   $EGREP "memchr" >/dev/null 2>&1; then
4109   :
4110 else
4111   ac_cv_header_stdc=no
4112 fi
4113 rm -f conftest*
4114
4115 fi
4116
4117 if test $ac_cv_header_stdc = yes; then
4118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119   cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125 #include <stdlib.h>
4126
4127 _ACEOF
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129   $EGREP "free" >/dev/null 2>&1; then
4130   :
4131 else
4132   ac_cv_header_stdc=no
4133 fi
4134 rm -f conftest*
4135
4136 fi
4137
4138 if test $ac_cv_header_stdc = yes; then
4139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4140   if test "$cross_compiling" = yes; then
4141   :
4142 else
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #include <ctype.h>
4150 #include <stdlib.h>
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154 #else
4155 # define ISLOWER(c) \
4156                    (('a' <= (c) && (c) <= 'i') \
4157                      || ('j' <= (c) && (c) <= 'r') \
4158                      || ('s' <= (c) && (c) <= 'z'))
4159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4160 #endif
4161
4162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163 int
4164 main ()
4165 {
4166   int i;
4167   for (i = 0; i < 256; i++)
4168     if (XOR (islower (i), ISLOWER (i))
4169         || toupper (i) != TOUPPER (i))
4170       return 2;
4171   return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest$ac_exeext
4175 if { (ac_try="$ac_link"
4176 case "(($ac_try" in
4177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178   *) ac_try_echo=$ac_try;;
4179 esac
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181   (eval "$ac_link") 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4185   { (case "(($ac_try" in
4186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187   *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190   (eval "$ac_try") 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }; }; then
4194   :
4195 else
4196   echo "$as_me: program exited with status $ac_status" >&5
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 ( exit $ac_status )
4201 ac_cv_header_stdc=no
4202 fi
4203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4204 fi
4205
4206
4207 fi
4208 fi
4209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4211 if test $ac_cv_header_stdc = yes; then
4212
4213 cat >>confdefs.h <<\_ACEOF
4214 #define STDC_HEADERS 1
4215 _ACEOF
4216
4217 fi
4218
4219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4230                   inttypes.h stdint.h unistd.h
4231 do
4232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   cat >conftest.$ac_ext <<_ACEOF
4239 /* confdefs.h.  */
4240 _ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h.  */
4244 $ac_includes_default
4245
4246 #include <$ac_header>
4247 _ACEOF
4248 rm -f conftest.$ac_objext
4249 if { (ac_try="$ac_compile"
4250 case "(($ac_try" in
4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252   *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255   (eval "$ac_compile") 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } &&
4262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263   { (case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_try") 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; } &&
4272          { ac_try='test -s conftest.$ac_objext'
4273   { (case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_try") 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; }; then
4282   eval "$as_ac_Header=yes"
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287         eval "$as_ac_Header=no"
4288 fi
4289
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 fi
4292 ac_res=`eval echo '${'$as_ac_Header'}'`
4293                { echo "$as_me:$LINENO: result: $ac_res" >&5
4294 echo "${ECHO_T}$ac_res" >&6; }
4295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4296   cat >>confdefs.h <<_ACEOF
4297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4298 _ACEOF
4299
4300 fi
4301
4302 done
4303
4304
4305 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4306 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4307 if test "${ac_cv_c_bigendian+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   # See if sys/param.h defines the BYTE_ORDER macro.
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 #include <sys/types.h>
4318 #include <sys/param.h>
4319
4320 int
4321 main ()
4322 {
4323 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4324  bogus endian macros
4325 #endif
4326
4327   ;
4328   return 0;
4329 }
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4333 case "(($ac_try" in
4334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335   *) ac_try_echo=$ac_try;;
4336 esac
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338   (eval "$ac_compile") 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } &&
4345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4346   { (case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_try") 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; } &&
4355          { ac_try='test -s conftest.$ac_objext'
4356   { (case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_try") 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   # It does; now see whether it defined to BIG_ENDIAN or not.
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #include <sys/types.h>
4373 #include <sys/param.h>
4374
4375 int
4376 main ()
4377 {
4378 #if BYTE_ORDER != BIG_ENDIAN
4379  not big endian
4380 #endif
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (ac_try="$ac_compile"
4388 case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393   (eval "$ac_compile") 2>conftest.er1
4394   ac_status=$?
4395   grep -v '^ *+' conftest.er1 >conftest.err
4396   rm -f conftest.er1
4397   cat conftest.err >&5
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } &&
4400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4401   { (case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_try") 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; } &&
4410          { ac_try='test -s conftest.$ac_objext'
4411   { (case "(($ac_try" in
4412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413   *) ac_try_echo=$ac_try;;
4414 esac
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416   (eval "$ac_try") 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420   ac_cv_c_bigendian=yes
4421 else
4422   echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425         ac_cv_c_bigendian=no
4426 fi
4427
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433         # It does not; compile a test program.
4434 if test "$cross_compiling" = yes; then
4435   # try to guess the endianness by grepping values into an object file
4436   ac_cv_c_bigendian=unknown
4437   cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h.  */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h.  */
4443 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4444 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4445 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4446 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4447 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4448 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4449 int
4450 main ()
4451 {
4452  _ascii (); _ebcdic ();
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464   (eval "$ac_compile") 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } &&
4471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4472   { (case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_try") 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; } &&
4481          { ac_try='test -s conftest.$ac_objext'
4482   { (case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487   (eval "$ac_try") 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; }; then
4491   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4492   ac_cv_c_bigendian=yes
4493 fi
4494 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4495   if test "$ac_cv_c_bigendian" = unknown; then
4496     ac_cv_c_bigendian=no
4497   else
4498     # finding both strings is unlikely to happen, but who knows?
4499     ac_cv_c_bigendian=unknown
4500   fi
4501 fi
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506
4507 fi
4508
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 else
4511   cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h.  */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h.  */
4517 $ac_includes_default
4518 int
4519 main ()
4520 {
4521
4522   /* Are we little or big endian?  From Harbison&Steele.  */
4523   union
4524   {
4525     long int l;
4526     char c[sizeof (long int)];
4527   } u;
4528   u.l = 1;
4529   return u.c[sizeof (long int) - 1] == 1;
4530
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 rm -f conftest$ac_exeext
4536 if { (ac_try="$ac_link"
4537 case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542   (eval "$ac_link") 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546   { (case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551   (eval "$ac_try") 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; }; then
4555   ac_cv_c_bigendian=no
4556 else
4557   echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 ( exit $ac_status )
4562 ac_cv_c_bigendian=yes
4563 fi
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4565 fi
4566
4567
4568 fi
4569
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 fi
4572 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4573 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4574 case $ac_cv_c_bigendian in
4575   yes)
4576     ENDIAN=big
4577  ;;
4578   no)
4579     ENDIAN=little
4580  ;;
4581   *)
4582     { { echo "$as_me:$LINENO: error: unknown endianness
4583 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4584 echo "$as_me: error: unknown endianness
4585 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4586    { (exit 1); exit 1; }; } ;;
4587 esac
4588
4589
4590 if test "$cross_compiling" = yes; then
4591   LLVM_CROSS_COMPILING=1
4592
4593
4594 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4595 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4596 if test "${ac_cv_build_exeext+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4600   ac_cv_build_exeext=.exe
4601 else
4602   ac_build_prefix=${build_alias}-
4603
4604   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4605 set dummy ${ac_build_prefix}gcc; ac_word=$2
4606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4608 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   if test -n "$BUILD_CC"; then
4612   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619   for ac_exec_ext in '' $ac_executable_extensions; do
4620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4621     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 BUILD_CC=$ac_cv_prog_BUILD_CC
4632 if test -n "$BUILD_CC"; then
4633   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4634 echo "${ECHO_T}$BUILD_CC" >&6; }
4635 else
4636   { echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6; }
4638 fi
4639
4640
4641   if test -z "$BUILD_CC"; then
4642      # Extract the first word of "gcc", so it can be a program name with args.
4643 set dummy gcc; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   if test -n "$BUILD_CC"; then
4650   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_prog_BUILD_CC="gcc"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 BUILD_CC=$ac_cv_prog_BUILD_CC
4670 if test -n "$BUILD_CC"; then
4671   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4672 echo "${ECHO_T}$BUILD_CC" >&6; }
4673 else
4674   { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4676 fi
4677
4678
4679      if test -z "$BUILD_CC"; then
4680        # Extract the first word of "cc", so it can be a program name with args.
4681 set dummy cc; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   if test -n "$BUILD_CC"; then
4688   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4689 else
4690   ac_prog_rejected=no
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696   for ac_exec_ext in '' $ac_executable_extensions; do
4697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4698     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4699        ac_prog_rejected=yes
4700        continue
4701      fi
4702     ac_cv_prog_BUILD_CC="cc"
4703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704     break 2
4705   fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 if test $ac_prog_rejected = yes; then
4711   # We found a bogon in the path, so make sure we never use it.
4712   set dummy $ac_cv_prog_BUILD_CC
4713   shift
4714   if test $# != 0; then
4715     # We chose a different compiler from the bogus one.
4716     # However, it has the same basename, so the bogon will be chosen
4717     # first if we set BUILD_CC to just the basename; use the full file name.
4718     shift
4719     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4720   fi
4721 fi
4722 fi
4723 fi
4724 BUILD_CC=$ac_cv_prog_BUILD_CC
4725 if test -n "$BUILD_CC"; then
4726   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727 echo "${ECHO_T}$BUILD_CC" >&6; }
4728 else
4729   { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4731 fi
4732
4733
4734      fi
4735   fi
4736   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4737 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4738    { (exit 1); exit 1; }; }
4739   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4740   rm -f conftest*
4741   echo 'int main () { return 0; }' > conftest.$ac_ext
4742   ac_cv_build_exeext=
4743   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4744   (eval $ac_build_link) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; then
4748     for file in conftest.*; do
4749       case $file in
4750       *.c | *.o | *.obj | *.dSYM) ;;
4751       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4752       esac
4753     done
4754   else
4755     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4756 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4757    { (exit 1); exit 1; }; }
4758   fi
4759   rm -f conftest*
4760   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4761 fi
4762 fi
4763
4764 BUILD_EXEEXT=""
4765 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4766 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4767 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4768 ac_build_exeext=$BUILD_EXEEXT
4769
4770   ac_build_prefix=${build_alias}-
4771   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4772 set dummy ${ac_build_prefix}g++; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   if test -n "$BUILD_CXX"; then
4779   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786   for ac_exec_ext in '' $ac_executable_extensions; do
4787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4788     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793 done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4799 if test -n "$BUILD_CXX"; then
4800   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4801 echo "${ECHO_T}$BUILD_CXX" >&6; }
4802 else
4803   { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4805 fi
4806
4807
4808   if test -z "$BUILD_CXX"; then
4809      # Extract the first word of "g++", so it can be a program name with args.
4810 set dummy g++; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   if test -n "$BUILD_CXX"; then
4817   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4826     ac_cv_prog_BUILD_CXX="g++"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4837 if test -n "$BUILD_CXX"; then
4838   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4839 echo "${ECHO_T}$BUILD_CXX" >&6; }
4840 else
4841   { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4843 fi
4844
4845
4846      if test -z "$BUILD_CXX"; then
4847        # Extract the first word of "c++", so it can be a program name with args.
4848 set dummy c++; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   if test -n "$BUILD_CXX"; then
4855   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4856 else
4857   ac_prog_rejected=no
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863   for ac_exec_ext in '' $ac_executable_extensions; do
4864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4865     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4866        ac_prog_rejected=yes
4867        continue
4868      fi
4869     ac_cv_prog_BUILD_CXX="c++"
4870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 if test $ac_prog_rejected = yes; then
4878   # We found a bogon in the path, so make sure we never use it.
4879   set dummy $ac_cv_prog_BUILD_CXX
4880   shift
4881   if test $# != 0; then
4882     # We chose a different compiler from the bogus one.
4883     # However, it has the same basename, so the bogon will be chosen
4884     # first if we set BUILD_CXX to just the basename; use the full file name.
4885     shift
4886     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4887   fi
4888 fi
4889 fi
4890 fi
4891 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892 if test -n "$BUILD_CXX"; then
4893   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894 echo "${ECHO_T}$BUILD_CXX" >&6; }
4895 else
4896   { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901      fi
4902   fi
4903 else
4904   LLVM_CROSS_COMPILING=0
4905
4906 fi
4907
4908 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4909   cvsbuild="yes"
4910   optimize="no"
4911   CVSBUILD=CVSBUILD=1
4912
4913 else
4914   cvsbuild="no"
4915   optimize="yes"
4916 fi
4917
4918
4919 # Check whether --enable-optimized was given.
4920 if test "${enable_optimized+set}" = set; then
4921   enableval=$enable_optimized;
4922 else
4923   enableval=$optimize
4924 fi
4925
4926 if test ${enableval} = "no" ; then
4927   ENABLE_OPTIMIZED=
4928
4929 else
4930   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4931
4932 fi
4933
4934 # Check whether --enable-profiling was given.
4935 if test "${enable_profiling+set}" = set; then
4936   enableval=$enable_profiling;
4937 else
4938   enableval="no"
4939 fi
4940
4941 if test ${enableval} = "no" ; then
4942   ENABLE_PROFILING=
4943
4944 else
4945   ENABLE_PROFILING=ENABLE_PROFILING=1
4946
4947 fi
4948
4949 # Check whether --enable-assertions was given.
4950 if test "${enable_assertions+set}" = set; then
4951   enableval=$enable_assertions;
4952 else
4953   enableval="yes"
4954 fi
4955
4956 if test ${enableval} = "yes" ; then
4957   DISABLE_ASSERTIONS=
4958
4959 else
4960   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4961
4962 fi
4963
4964 # Check whether --enable-expensive-checks was given.
4965 if test "${enable_expensive_checks+set}" = set; then
4966   enableval=$enable_expensive_checks;
4967 else
4968   enableval="no"
4969 fi
4970
4971 if test ${enableval} = "yes" ; then
4972   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4973
4974   EXPENSIVE_CHECKS=yes
4975
4976 else
4977   ENABLE_EXPENSIVE_CHECKS=
4978
4979   EXPENSIVE_CHECKS=no
4980
4981 fi
4982
4983 # Check whether --enable-debug-runtime was given.
4984 if test "${enable_debug_runtime+set}" = set; then
4985   enableval=$enable_debug_runtime;
4986 else
4987   enableval=no
4988 fi
4989
4990 if test ${enableval} = "no" ; then
4991   DEBUG_RUNTIME=
4992
4993 else
4994   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4995
4996 fi
4997
4998 # Check whether --enable-debug-symbols was given.
4999 if test "${enable_debug_symbols+set}" = set; then
5000   enableval=$enable_debug_symbols;
5001 else
5002   enableval=no
5003 fi
5004
5005 if test ${enableval} = "no" ; then
5006   DEBUG_SYMBOLS=
5007
5008 else
5009   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5010
5011 fi
5012
5013 # Check whether --enable-jit was given.
5014 if test "${enable_jit+set}" = set; then
5015   enableval=$enable_jit;
5016 else
5017   enableval=default
5018 fi
5019
5020 if test ${enableval} = "no"
5021 then
5022   JIT=
5023
5024 else
5025   case "$llvm_cv_target_arch" in
5026     x86)         TARGET_HAS_JIT=1
5027  ;;
5028     Sparc)       TARGET_HAS_JIT=0
5029  ;;
5030     PowerPC)     TARGET_HAS_JIT=1
5031  ;;
5032     x86_64)      TARGET_HAS_JIT=1
5033  ;;
5034     ARM)         TARGET_HAS_JIT=1
5035  ;;
5036     Mips)        TARGET_HAS_JIT=1
5037  ;;
5038     XCore)       TARGET_HAS_JIT=0
5039  ;;
5040     MSP430)      TARGET_HAS_JIT=0
5041  ;;
5042     Hexagon)     TARGET_HAS_JIT=0
5043  ;;
5044     MBlaze)      TARGET_HAS_JIT=0
5045  ;;
5046     PTX)         TARGET_HAS_JIT=0
5047  ;;
5048     *)           TARGET_HAS_JIT=0
5049  ;;
5050   esac
5051 fi
5052
5053 # Check whether --enable-docs was given.
5054 if test "${enable_docs+set}" = set; then
5055   enableval=$enable_docs;
5056 else
5057   enableval=default
5058 fi
5059
5060 case "$enableval" in
5061   yes) ENABLE_DOCS=1
5062  ;;
5063   no)  ENABLE_DOCS=0
5064  ;;
5065   default) ENABLE_DOCS=1
5066  ;;
5067   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5068 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5069    { (exit 1); exit 1; }; } ;;
5070 esac
5071
5072 # Check whether --enable-doxygen was given.
5073 if test "${enable_doxygen+set}" = set; then
5074   enableval=$enable_doxygen;
5075 else
5076   enableval=default
5077 fi
5078
5079 case "$enableval" in
5080   yes) ENABLE_DOXYGEN=1
5081  ;;
5082   no)  ENABLE_DOXYGEN=0
5083  ;;
5084   default) ENABLE_DOXYGEN=0
5085  ;;
5086   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5087 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5088    { (exit 1); exit 1; }; } ;;
5089 esac
5090
5091 # Check whether --enable-threads was given.
5092 if test "${enable_threads+set}" = set; then
5093   enableval=$enable_threads;
5094 else
5095   enableval=default
5096 fi
5097
5098 case "$enableval" in
5099   yes) ENABLE_THREADS=1
5100  ;;
5101   no)  ENABLE_THREADS=0
5102  ;;
5103   default) ENABLE_THREADS=1
5104  ;;
5105   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5106 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5107    { (exit 1); exit 1; }; } ;;
5108 esac
5109
5110 cat >>confdefs.h <<_ACEOF
5111 #define ENABLE_THREADS $ENABLE_THREADS
5112 _ACEOF
5113
5114
5115 # Check whether --enable-pthreads was given.
5116 if test "${enable_pthreads+set}" = set; then
5117   enableval=$enable_pthreads;
5118 else
5119   enableval=default
5120 fi
5121
5122 case "$enableval" in
5123   yes) ENABLE_PTHREADS=1
5124  ;;
5125   no)  ENABLE_PTHREADS=0
5126  ;;
5127   default) ENABLE_PTHREADS=1
5128  ;;
5129   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5130 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5131    { (exit 1); exit 1; }; } ;;
5132 esac
5133
5134 # Check whether --enable-pic was given.
5135 if test "${enable_pic+set}" = set; then
5136   enableval=$enable_pic;
5137 else
5138   enableval=default
5139 fi
5140
5141 case "$enableval" in
5142   yes) ENABLE_PIC=1
5143  ;;
5144   no)  ENABLE_PIC=0
5145  ;;
5146   default) ENABLE_PIC=1
5147  ;;
5148   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5149 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5150    { (exit 1); exit 1; }; } ;;
5151 esac
5152
5153 cat >>confdefs.h <<_ACEOF
5154 #define ENABLE_PIC $ENABLE_PIC
5155 _ACEOF
5156
5157
5158 # Check whether --enable-shared was given.
5159 if test "${enable_shared+set}" = set; then
5160   enableval=$enable_shared;
5161 else
5162   enableval=default
5163 fi
5164
5165 case "$enableval" in
5166   yes) ENABLE_SHARED=1
5167  ;;
5168   no)  ENABLE_SHARED=0
5169  ;;
5170   default) ENABLE_SHARED=0
5171  ;;
5172   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5174    { (exit 1); exit 1; }; } ;;
5175 esac
5176
5177 # Check whether --enable-embed-stdcxx was given.
5178 if test "${enable_embed_stdcxx+set}" = set; then
5179   enableval=$enable_embed_stdcxx;
5180 else
5181   enableval=default
5182 fi
5183
5184 case "$enableval" in
5185   yes) ENABLE_EMBED_STDCXX=1
5186  ;;
5187   no)  ENABLE_EMBED_STDCXX=0
5188  ;;
5189   default) ENABLE_EMBED_STDCXX=1
5190  ;;
5191   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5193    { (exit 1); exit 1; }; } ;;
5194 esac
5195
5196 # Check whether --enable-timestamps was given.
5197 if test "${enable_timestamps+set}" = set; then
5198   enableval=$enable_timestamps;
5199 else
5200   enableval=default
5201 fi
5202
5203 case "$enableval" in
5204   yes) ENABLE_TIMESTAMPS=1
5205  ;;
5206   no)  ENABLE_TIMESTAMPS=0
5207  ;;
5208   default) ENABLE_TIMESTAMPS=1
5209  ;;
5210   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5212    { (exit 1); exit 1; }; } ;;
5213 esac
5214
5215 cat >>confdefs.h <<_ACEOF
5216 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5217 _ACEOF
5218
5219
5220 TARGETS_TO_BUILD=""
5221 # Check whether --enable-targets was given.
5222 if test "${enable_targets+set}" = set; then
5223   enableval=$enable_targets;
5224 else
5225   enableval=all
5226 fi
5227
5228 if test "$enableval" = host-only ; then
5229   enableval=host
5230 fi
5231 case "$enableval" in
5232   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5233   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5234       case "$a_target" in
5235         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5236         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5237         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5238         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5239         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5240         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5241         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5242         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5243         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5244         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5245         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5246         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5247         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5248         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5249         host) case "$llvm_cv_target_arch" in
5250             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5251             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5252             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5253             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5254             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5255             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5256             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5257             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5258             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5259             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5260             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5261             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5262             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5263 echo "$as_me: error: Can not set target to build" >&2;}
5264    { (exit 1); exit 1; }; } ;;
5265           esac ;;
5266         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5267 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5268    { (exit 1); exit 1; }; } ;;
5269       esac
5270   done
5271   ;;
5272 esac
5273 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5274
5275
5276 # Determine whether we are building LLVM support for the native architecture.
5277 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5278 for a_target in $TARGETS_TO_BUILD; do
5279   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5280
5281 cat >>confdefs.h <<_ACEOF
5282 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5283 _ACEOF
5284
5285     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5286     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5287     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5288     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5289     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5290       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5291     fi
5292
5293 cat >>confdefs.h <<_ACEOF
5294 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5295 _ACEOF
5296
5297
5298 cat >>confdefs.h <<_ACEOF
5299 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5300 _ACEOF
5301
5302
5303 cat >>confdefs.h <<_ACEOF
5304 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5305 _ACEOF
5306
5307
5308 cat >>confdefs.h <<_ACEOF
5309 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5310 _ACEOF
5311
5312     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5313
5314 cat >>confdefs.h <<_ACEOF
5315 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5316 _ACEOF
5317
5318     fi
5319   fi
5320 done
5321
5322 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5323 # target feature def files.
5324 LLVM_ENUM_TARGETS=""
5325 LLVM_ENUM_ASM_PRINTERS=""
5326 LLVM_ENUM_ASM_PARSERS=""
5327 LLVM_ENUM_DISASSEMBLERS=""
5328 for target_to_build in $TARGETS_TO_BUILD; do
5329   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5330   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5331     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5332   fi
5333   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5334     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5335   fi
5336   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5337     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5338   fi
5339 done
5340
5341
5342
5343
5344
5345 # Check whether --enable-cbe-printf-a was given.
5346 if test "${enable_cbe_printf_a+set}" = set; then
5347   enableval=$enable_cbe_printf_a;
5348 else
5349   enableval=default
5350 fi
5351
5352 case "$enableval" in
5353   yes) ENABLE_CBE_PRINTF_A=1
5354  ;;
5355   no)  ENABLE_CBE_PRINTF_A=0
5356  ;;
5357   default)  ENABLE_CBE_PRINTF_A=1
5358  ;;
5359   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5360 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5361    { (exit 1); exit 1; }; } ;;
5362 esac
5363
5364 cat >>confdefs.h <<_ACEOF
5365 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5366 _ACEOF
5367
5368
5369
5370 # Check whether --with-optimize-option was given.
5371 if test "${with_optimize_option+set}" = set; then
5372   withval=$with_optimize_option;
5373 else
5374   withval=default
5375 fi
5376
5377 { echo "$as_me:$LINENO: checking optimization flags" >&5
5378 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5379 case "$withval" in
5380   default)
5381     case "$llvm_cv_os_type" in
5382     FreeBSD) optimize_option=-O2 ;;
5383     MingW) optimize_option=-O2 ;;
5384     *)     optimize_option=-O3 ;;
5385     esac ;;
5386   *) optimize_option="$withval" ;;
5387 esac
5388 OPTIMIZE_OPTION=$optimize_option
5389
5390 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5391 echo "${ECHO_T}$optimize_option" >&6; }
5392
5393
5394 # Check whether --with-extra-options was given.
5395 if test "${with_extra_options+set}" = set; then
5396   withval=$with_extra_options;
5397 else
5398   withval=default
5399 fi
5400
5401 case "$withval" in
5402   default) EXTRA_OPTIONS= ;;
5403   *) EXTRA_OPTIONS=$withval ;;
5404 esac
5405 EXTRA_OPTIONS=$EXTRA_OPTIONS
5406
5407
5408
5409 # Check whether --with-extra-ld-options was given.
5410 if test "${with_extra_ld_options+set}" = set; then
5411   withval=$with_extra_ld_options;
5412 else
5413   withval=default
5414 fi
5415
5416 case "$withval" in
5417   default) EXTRA_LD_OPTIONS= ;;
5418   *) EXTRA_LD_OPTIONS=$withval ;;
5419 esac
5420 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5421
5422
5423 # Check whether --enable-bindings was given.
5424 if test "${enable_bindings+set}" = set; then
5425   enableval=$enable_bindings;
5426 else
5427   enableval=default
5428 fi
5429
5430 BINDINGS_TO_BUILD=""
5431 case "$enableval" in
5432   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5433   all ) BINDINGS_TO_BUILD="ocaml" ;;
5434   none | no) BINDINGS_TO_BUILD="" ;;
5435   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5436       case "$a_binding" in
5437         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5438         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5439 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5440    { (exit 1); exit 1; }; } ;;
5441       esac
5442   done
5443   ;;
5444 esac
5445
5446
5447 # Check whether --with-ocaml-libdir was given.
5448 if test "${with_ocaml_libdir+set}" = set; then
5449   withval=$with_ocaml_libdir;
5450 else
5451   withval=auto
5452 fi
5453
5454 case "$withval" in
5455   auto) with_ocaml_libdir="$withval" ;;
5456   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5457   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5458 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5459    { (exit 1); exit 1; }; } ;;
5460 esac
5461
5462
5463 # Check whether --with-clang-resource-dir was given.
5464 if test "${with_clang_resource_dir+set}" = set; then
5465   withval=$with_clang_resource_dir;
5466 else
5467   withval=""
5468 fi
5469
5470
5471 cat >>confdefs.h <<_ACEOF
5472 #define CLANG_RESOURCE_DIR "$withval"
5473 _ACEOF
5474
5475
5476
5477 # Check whether --with-c-include-dirs was given.
5478 if test "${with_c_include_dirs+set}" = set; then
5479   withval=$with_c_include_dirs;
5480 else
5481   withval=""
5482 fi
5483
5484
5485 cat >>confdefs.h <<_ACEOF
5486 #define C_INCLUDE_DIRS "$withval"
5487 _ACEOF
5488
5489
5490 # Clang normally uses the system c++ headers and libraries. With this option,
5491 # clang will use the ones provided by a gcc installation instead. This option should
5492 # be passed the same value that was used with --prefix when configuring gcc.
5493
5494 # Check whether --with-gcc-toolchain was given.
5495 if test "${with_gcc_toolchain+set}" = set; then
5496   withval=$with_gcc_toolchain;
5497 else
5498   withval=""
5499 fi
5500
5501
5502 cat >>confdefs.h <<_ACEOF
5503 #define GCC_INSTALL_PREFIX "$withval"
5504 _ACEOF
5505
5506
5507
5508 # Check whether --with-binutils-include was given.
5509 if test "${with_binutils_include+set}" = set; then
5510   withval=$with_binutils_include;
5511 else
5512   withval=default
5513 fi
5514
5515 case "$withval" in
5516   default) WITH_BINUTILS_INCDIR=default ;;
5517   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5518   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5519 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5520    { (exit 1); exit 1; }; } ;;
5521 esac
5522 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5523   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5524
5525   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5526      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5527      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5528 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5529    { (exit 1); exit 1; }; };
5530   fi
5531 fi
5532
5533
5534 # Check whether --with-bug-report-url was given.
5535 if test "${with_bug_report_url+set}" = set; then
5536   withval=$with_bug_report_url;
5537 else
5538   withval="http://llvm.org/bugs/"
5539 fi
5540
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define BUG_REPORT_URL "$withval"
5544 _ACEOF
5545
5546
5547 # Check whether --enable-libffi was given.
5548 if test "${enable_libffi+set}" = set; then
5549   enableval=$enable_libffi; case "$enableval" in
5550     yes) llvm_cv_enable_libffi="yes" ;;
5551     no)  llvm_cv_enable_libffi="no"  ;;
5552     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5553 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5554    { (exit 1); exit 1; }; } ;;
5555   esac
5556 else
5557   llvm_cv_enable_libffi=no
5558 fi
5559
5560
5561
5562 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5563 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5564 if test "${lt_cv_path_NM+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567   if test -n "$NM"; then
5568   # Let the user override the test.
5569   lt_cv_path_NM="$NM"
5570 else
5571   lt_nm_to_check="${ac_tool_prefix}nm"
5572   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573     lt_nm_to_check="$lt_nm_to_check nm"
5574   fi
5575   for lt_tmp_nm in $lt_nm_to_check; do
5576     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578       IFS="$lt_save_ifs"
5579       test -z "$ac_dir" && ac_dir=.
5580       tmp_nm="$ac_dir/$lt_tmp_nm"
5581       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582         # Check to see if the nm accepts a BSD-compat flag.
5583         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584         #   nm: unknown option "B" ignored
5585         # Tru64's nm complains that /dev/null is an invalid object file
5586         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587         */dev/null* | *'Invalid file or object type'*)
5588           lt_cv_path_NM="$tmp_nm -B"
5589           break
5590           ;;
5591         *)
5592           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593           */dev/null*)
5594             lt_cv_path_NM="$tmp_nm -p"
5595             break
5596             ;;
5597           *)
5598             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599             continue # so that we can try to find one that supports BSD flags
5600             ;;
5601           esac
5602           ;;
5603         esac
5604       fi
5605     done
5606     IFS="$lt_save_ifs"
5607   done
5608   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5609 fi
5610 fi
5611 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5612 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5613 NM="$lt_cv_path_NM"
5614
5615
5616
5617 { echo "$as_me:$LINENO: checking for GNU make" >&5
5618 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5619 if test "${llvm_cv_gnu_make_command+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   llvm_cv_gnu_make_command=''
5623  for a in "$MAKE" make gmake gnumake ; do
5624   if test -z "$a" ; then continue ; fi ;
5625   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5626   then
5627    llvm_cv_gnu_make_command=$a ;
5628    break;
5629   fi
5630  done
5631 fi
5632 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5633 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5634  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5635    ifGNUmake='' ;
5636  else
5637    ifGNUmake='#' ;
5638    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5639 echo "${ECHO_T}\"Not found\"" >&6; };
5640  fi
5641
5642
5643 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5645 LN_S=$as_ln_s
5646 if test "$LN_S" = "ln -s"; then
5647   { echo "$as_me:$LINENO: result: yes" >&5
5648 echo "${ECHO_T}yes" >&6; }
5649 else
5650   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5651 echo "${ECHO_T}no, using $LN_S" >&6; }
5652 fi
5653
5654 # Extract the first word of "cmp", so it can be a program name with args.
5655 set dummy cmp; ac_word=$2
5656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5658 if test "${ac_cv_path_CMP+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   case $CMP in
5662   [\\/]* | ?:[\\/]*)
5663   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5664   ;;
5665   *)
5666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671   for ac_exec_ext in '' $ac_executable_extensions; do
5672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5673     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678 done
5679 IFS=$as_save_IFS
5680
5681   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5682   ;;
5683 esac
5684 fi
5685 CMP=$ac_cv_path_CMP
5686 if test -n "$CMP"; then
5687   { echo "$as_me:$LINENO: result: $CMP" >&5
5688 echo "${ECHO_T}$CMP" >&6; }
5689 else
5690   { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5692 fi
5693
5694
5695 # Extract the first word of "cp", so it can be a program name with args.
5696 set dummy cp; ac_word=$2
5697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699 if test "${ac_cv_path_CP+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   case $CP in
5703   [\\/]* | ?:[\\/]*)
5704   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5705   ;;
5706   *)
5707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712   for ac_exec_ext in '' $ac_executable_extensions; do
5713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719 done
5720 IFS=$as_save_IFS
5721
5722   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5723   ;;
5724 esac
5725 fi
5726 CP=$ac_cv_path_CP
5727 if test -n "$CP"; then
5728   { echo "$as_me:$LINENO: result: $CP" >&5
5729 echo "${ECHO_T}$CP" >&6; }
5730 else
5731   { echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6; }
5733 fi
5734
5735
5736 # Extract the first word of "date", so it can be a program name with args.
5737 set dummy date; ac_word=$2
5738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5740 if test "${ac_cv_path_DATE+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   case $DATE in
5744   [\\/]* | ?:[\\/]*)
5745   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5746   ;;
5747   *)
5748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753   for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760 done
5761 IFS=$as_save_IFS
5762
5763   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5764   ;;
5765 esac
5766 fi
5767 DATE=$ac_cv_path_DATE
5768 if test -n "$DATE"; then
5769   { echo "$as_me:$LINENO: result: $DATE" >&5
5770 echo "${ECHO_T}$DATE" >&6; }
5771 else
5772   { echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6; }
5774 fi
5775
5776
5777 # Extract the first word of "find", so it can be a program name with args.
5778 set dummy find; ac_word=$2
5779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5781 if test "${ac_cv_path_FIND+set}" = set; then
5782   echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784   case $FIND in
5785   [\\/]* | ?:[\\/]*)
5786   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5787   ;;
5788   *)
5789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792   IFS=$as_save_IFS
5793   test -z "$as_dir" && as_dir=.
5794   for ac_exec_ext in '' $ac_executable_extensions; do
5795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5796     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798     break 2
5799   fi
5800 done
5801 done
5802 IFS=$as_save_IFS
5803
5804   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5805   ;;
5806 esac
5807 fi
5808 FIND=$ac_cv_path_FIND
5809 if test -n "$FIND"; then
5810   { echo "$as_me:$LINENO: result: $FIND" >&5
5811 echo "${ECHO_T}$FIND" >&6; }
5812 else
5813   { echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6; }
5815 fi
5816
5817
5818 # Extract the first word of "grep", so it can be a program name with args.
5819 set dummy grep; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_GREP+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   case $GREP in
5826   [\\/]* | ?:[\\/]*)
5827   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5828   ;;
5829   *)
5830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835   for ac_exec_ext in '' $ac_executable_extensions; do
5836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842 done
5843 IFS=$as_save_IFS
5844
5845   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5846   ;;
5847 esac
5848 fi
5849 GREP=$ac_cv_path_GREP
5850 if test -n "$GREP"; then
5851   { echo "$as_me:$LINENO: result: $GREP" >&5
5852 echo "${ECHO_T}$GREP" >&6; }
5853 else
5854   { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5856 fi
5857
5858
5859 # Extract the first word of "mkdir", so it can be a program name with args.
5860 set dummy mkdir; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_MKDIR+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   case $MKDIR in
5867   [\\/]* | ?:[\\/]*)
5868   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5869   ;;
5870   *)
5871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5887   ;;
5888 esac
5889 fi
5890 MKDIR=$ac_cv_path_MKDIR
5891 if test -n "$MKDIR"; then
5892   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5893 echo "${ECHO_T}$MKDIR" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899
5900 # Extract the first word of "mv", so it can be a program name with args.
5901 set dummy mv; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_MV+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   case $MV in
5908   [\\/]* | ?:[\\/]*)
5909   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5910   ;;
5911   *)
5912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5928   ;;
5929 esac
5930 fi
5931 MV=$ac_cv_path_MV
5932 if test -n "$MV"; then
5933   { echo "$as_me:$LINENO: result: $MV" >&5
5934 echo "${ECHO_T}$MV" >&6; }
5935 else
5936   { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5938 fi
5939
5940
5941 if test -n "$ac_tool_prefix"; then
5942   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_prog_RANLIB+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   if test -n "$RANLIB"; then
5950   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957   for ac_exec_ext in '' $ac_executable_extensions; do
5958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5959     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 RANLIB=$ac_cv_prog_RANLIB
5970 if test -n "$RANLIB"; then
5971   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5972 echo "${ECHO_T}$RANLIB" >&6; }
5973 else
5974   { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5976 fi
5977
5978
5979 fi
5980 if test -z "$ac_cv_prog_RANLIB"; then
5981   ac_ct_RANLIB=$RANLIB
5982   # Extract the first word of "ranlib", so it can be a program name with args.
5983 set dummy ranlib; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   if test -n "$ac_ct_RANLIB"; then
5990   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_exec_ext in '' $ac_executable_extensions; do
5998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5999     ac_cv_prog_ac_ct_RANLIB="ranlib"
6000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6010 if test -n "$ac_ct_RANLIB"; then
6011   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6012 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6013 else
6014   { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6016 fi
6017
6018   if test "x$ac_ct_RANLIB" = x; then
6019     RANLIB=":"
6020   else
6021     case $cross_compiling:$ac_tool_warned in
6022 yes:)
6023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6024 whose name does not start with the host triplet.  If you think this
6025 configuration is useful to you, please write to autoconf@gnu.org." >&5
6026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6027 whose name does not start with the host triplet.  If you think this
6028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6029 ac_tool_warned=yes ;;
6030 esac
6031     RANLIB=$ac_ct_RANLIB
6032   fi
6033 else
6034   RANLIB="$ac_cv_prog_RANLIB"
6035 fi
6036
6037 if test -n "$ac_tool_prefix"; then
6038   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}ar; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_AR+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   if test -n "$AR"; then
6046   ac_cv_prog_AR="$AR" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_exec_ext in '' $ac_executable_extensions; do
6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055     ac_cv_prog_AR="${ac_tool_prefix}ar"
6056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 AR=$ac_cv_prog_AR
6066 if test -n "$AR"; then
6067   { echo "$as_me:$LINENO: result: $AR" >&5
6068 echo "${ECHO_T}$AR" >&6; }
6069 else
6070   { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6072 fi
6073
6074
6075 fi
6076 if test -z "$ac_cv_prog_AR"; then
6077   ac_ct_AR=$AR
6078   # Extract the first word of "ar", so it can be a program name with args.
6079 set dummy ar; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   if test -n "$ac_ct_AR"; then
6086   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093   for ac_exec_ext in '' $ac_executable_extensions; do
6094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6095     ac_cv_prog_ac_ct_AR="ar"
6096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6106 if test -n "$ac_ct_AR"; then
6107   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6108 echo "${ECHO_T}$ac_ct_AR" >&6; }
6109 else
6110   { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6112 fi
6113
6114   if test "x$ac_ct_AR" = x; then
6115     AR="false"
6116   else
6117     case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120 whose name does not start with the host triplet.  If you think this
6121 configuration is useful to you, please write to autoconf@gnu.org." >&5
6122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet.  If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127     AR=$ac_ct_AR
6128   fi
6129 else
6130   AR="$ac_cv_prog_AR"
6131 fi
6132
6133 # Extract the first word of "rm", so it can be a program name with args.
6134 set dummy rm; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_path_RM+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   case $RM in
6141   [\\/]* | ?:[\\/]*)
6142   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6143   ;;
6144   *)
6145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150   for ac_exec_ext in '' $ac_executable_extensions; do
6151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6161   ;;
6162 esac
6163 fi
6164 RM=$ac_cv_path_RM
6165 if test -n "$RM"; then
6166   { echo "$as_me:$LINENO: result: $RM" >&5
6167 echo "${ECHO_T}$RM" >&6; }
6168 else
6169   { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6172
6173
6174 # Extract the first word of "sed", so it can be a program name with args.
6175 set dummy sed; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_path_SED+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   case $SED in
6182   [\\/]* | ?:[\\/]*)
6183   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6184   ;;
6185   *)
6186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191   for ac_exec_ext in '' $ac_executable_extensions; do
6192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6202   ;;
6203 esac
6204 fi
6205 SED=$ac_cv_path_SED
6206 if test -n "$SED"; then
6207   { echo "$as_me:$LINENO: result: $SED" >&5
6208 echo "${ECHO_T}$SED" >&6; }
6209 else
6210   { echo "$as_me:$LINENO: result: no" >&5
6211 echo "${ECHO_T}no" >&6; }
6212 fi
6213
6214
6215 # Extract the first word of "tar", so it can be a program name with args.
6216 set dummy tar; ac_word=$2
6217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6219 if test "${ac_cv_path_TAR+set}" = set; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   case $TAR in
6223   [\\/]* | ?:[\\/]*)
6224   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6225   ;;
6226   *)
6227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232   for ac_exec_ext in '' $ac_executable_extensions; do
6233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6234     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239 done
6240 IFS=$as_save_IFS
6241
6242   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6243   ;;
6244 esac
6245 fi
6246 TAR=$ac_cv_path_TAR
6247 if test -n "$TAR"; then
6248   { echo "$as_me:$LINENO: result: $TAR" >&5
6249 echo "${ECHO_T}$TAR" >&6; }
6250 else
6251   { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6253 fi
6254
6255
6256 # Extract the first word of "pwd", so it can be a program name with args.
6257 set dummy pwd; ac_word=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_path_BINPWD+set}" = set; then
6261   echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263   case $BINPWD in
6264   [\\/]* | ?:[\\/]*)
6265   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6266   ;;
6267   *)
6268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271   IFS=$as_save_IFS
6272   test -z "$as_dir" && as_dir=.
6273   for ac_exec_ext in '' $ac_executable_extensions; do
6274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6275     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277     break 2
6278   fi
6279 done
6280 done
6281 IFS=$as_save_IFS
6282
6283   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6284   ;;
6285 esac
6286 fi
6287 BINPWD=$ac_cv_path_BINPWD
6288 if test -n "$BINPWD"; then
6289   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6290 echo "${ECHO_T}$BINPWD" >&6; }
6291 else
6292   { echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6; }
6294 fi
6295
6296
6297
6298 # Extract the first word of "Graphviz", so it can be a program name with args.
6299 set dummy Graphviz; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   case $GRAPHVIZ in
6306   [\\/]* | ?:[\\/]*)
6307   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6308   ;;
6309   *)
6310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315   for ac_exec_ext in '' $ac_executable_extensions; do
6316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6326   ;;
6327 esac
6328 fi
6329 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6330 if test -n "$GRAPHVIZ"; then
6331   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6332 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6333 else
6334   { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6336 fi
6337
6338
6339 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6340
6341 cat >>confdefs.h <<\_ACEOF
6342 #define HAVE_GRAPHVIZ 1
6343 _ACEOF
6344
6345     if test "$llvm_cv_os_type" = "MingW" ; then
6346     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6347   fi
6348
6349 cat >>confdefs.h <<_ACEOF
6350 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6351 _ACEOF
6352
6353 fi
6354 # Extract the first word of "dot", so it can be a program name with args.
6355 set dummy dot; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_path_DOT+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   case $DOT in
6362   [\\/]* | ?:[\\/]*)
6363   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6364   ;;
6365   *)
6366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369   IFS=$as_save_IFS
6370   test -z "$as_dir" && as_dir=.
6371   for ac_exec_ext in '' $ac_executable_extensions; do
6372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375     break 2
6376   fi
6377 done
6378 done
6379 IFS=$as_save_IFS
6380
6381   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6382   ;;
6383 esac
6384 fi
6385 DOT=$ac_cv_path_DOT
6386 if test -n "$DOT"; then
6387   { echo "$as_me:$LINENO: result: $DOT" >&5
6388 echo "${ECHO_T}$DOT" >&6; }
6389 else
6390   { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6392 fi
6393
6394
6395 if test "$DOT" != "echo dot" ; then
6396
6397 cat >>confdefs.h <<\_ACEOF
6398 #define HAVE_DOT 1
6399 _ACEOF
6400
6401     if test "$llvm_cv_os_type" = "MingW" ; then
6402     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6403   fi
6404
6405 cat >>confdefs.h <<_ACEOF
6406 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6407 _ACEOF
6408
6409 fi
6410 # Extract the first word of "fdp", so it can be a program name with args.
6411 set dummy fdp; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_FDP+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   case $FDP in
6418   [\\/]* | ?:[\\/]*)
6419   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6420   ;;
6421   *)
6422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6438   ;;
6439 esac
6440 fi
6441 FDP=$ac_cv_path_FDP
6442 if test -n "$FDP"; then
6443   { echo "$as_me:$LINENO: result: $FDP" >&5
6444 echo "${ECHO_T}$FDP" >&6; }
6445 else
6446   { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6448 fi
6449
6450
6451 if test "$FDP" != "echo fdp" ; then
6452
6453 cat >>confdefs.h <<\_ACEOF
6454 #define HAVE_FDP 1
6455 _ACEOF
6456
6457     if test "$llvm_cv_os_type" = "MingW" ; then
6458     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6459   fi
6460
6461 cat >>confdefs.h <<_ACEOF
6462 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6463 _ACEOF
6464
6465 fi
6466 # Extract the first word of "neato", so it can be a program name with args.
6467 set dummy neato; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_NEATO+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   case $NEATO in
6474   [\\/]* | ?:[\\/]*)
6475   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6476   ;;
6477   *)
6478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483   for ac_exec_ext in '' $ac_executable_extensions; do
6484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6494   ;;
6495 esac
6496 fi
6497 NEATO=$ac_cv_path_NEATO
6498 if test -n "$NEATO"; then
6499   { echo "$as_me:$LINENO: result: $NEATO" >&5
6500 echo "${ECHO_T}$NEATO" >&6; }
6501 else
6502   { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6504 fi
6505
6506
6507 if test "$NEATO" != "echo neato" ; then
6508
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_NEATO 1
6511 _ACEOF
6512
6513     if test "$llvm_cv_os_type" = "MingW" ; then
6514     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515   fi
6516
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6519 _ACEOF
6520
6521 fi
6522 # Extract the first word of "twopi", so it can be a program name with args.
6523 set dummy twopi; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_TWOPI+set}" = set; then
6527   echo $ECHO_N "(cached) $ECHO_C" >&6
6528 else
6529   case $TWOPI in
6530   [\\/]* | ?:[\\/]*)
6531   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6532   ;;
6533   *)
6534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539   for ac_exec_ext in '' $ac_executable_extensions; do
6540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6550   ;;
6551 esac
6552 fi
6553 TWOPI=$ac_cv_path_TWOPI
6554 if test -n "$TWOPI"; then
6555   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6556 echo "${ECHO_T}$TWOPI" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562
6563 if test "$TWOPI" != "echo twopi" ; then
6564
6565 cat >>confdefs.h <<\_ACEOF
6566 #define HAVE_TWOPI 1
6567 _ACEOF
6568
6569     if test "$llvm_cv_os_type" = "MingW" ; then
6570     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571   fi
6572
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6575 _ACEOF
6576
6577 fi
6578 # Extract the first word of "circo", so it can be a program name with args.
6579 set dummy circo; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_CIRCO+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   case $CIRCO in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595   for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6606   ;;
6607 esac
6608 fi
6609 CIRCO=$ac_cv_path_CIRCO
6610 if test -n "$CIRCO"; then
6611   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6612 echo "${ECHO_T}$CIRCO" >&6; }
6613 else
6614   { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6616 fi
6617
6618
6619 if test "$CIRCO" != "echo circo" ; then
6620
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_CIRCO 1
6623 _ACEOF
6624
6625     if test "$llvm_cv_os_type" = "MingW" ; then
6626     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627   fi
6628
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6631 _ACEOF
6632
6633 fi
6634 for ac_prog in gv gsview32
6635 do
6636   # Extract the first word of "$ac_prog", so it can be a program name with args.
6637 set dummy $ac_prog; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_path_GV+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   case $GV in
6644   [\\/]* | ?:[\\/]*)
6645   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6646   ;;
6647   *)
6648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653   for ac_exec_ext in '' $ac_executable_extensions; do
6654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6655     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663   ;;
6664 esac
6665 fi
6666 GV=$ac_cv_path_GV
6667 if test -n "$GV"; then
6668   { echo "$as_me:$LINENO: result: $GV" >&5
6669 echo "${ECHO_T}$GV" >&6; }
6670 else
6671   { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673 fi
6674
6675
6676   test -n "$GV" && break
6677 done
6678 test -n "$GV" || GV="echo gv"
6679
6680 if test "$GV" != "echo gv" ; then
6681
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_GV 1
6684 _ACEOF
6685
6686     if test "$llvm_cv_os_type" = "MingW" ; then
6687     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6688   fi
6689
6690 cat >>confdefs.h <<_ACEOF
6691 #define LLVM_PATH_GV "$GV${EXEEXT}"
6692 _ACEOF
6693
6694 fi
6695 # Extract the first word of "dotty", so it can be a program name with args.
6696 set dummy dotty; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_DOTTY+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   case $DOTTY in
6703   [\\/]* | ?:[\\/]*)
6704   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6705   ;;
6706   *)
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6723   ;;
6724 esac
6725 fi
6726 DOTTY=$ac_cv_path_DOTTY
6727 if test -n "$DOTTY"; then
6728   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6729 echo "${ECHO_T}$DOTTY" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6733 fi
6734
6735
6736 if test "$DOTTY" != "echo dotty" ; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_DOTTY 1
6740 _ACEOF
6741
6742     if test "$llvm_cv_os_type" = "MingW" ; then
6743     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744   fi
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6748 _ACEOF
6749
6750 fi
6751 # Extract the first word of "xdot.py", so it can be a program name with args.
6752 set dummy xdot.py; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   case $XDOT_PY in
6759   [\\/]* | ?:[\\/]*)
6760   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6761   ;;
6762   *)
6763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766   IFS=$as_save_IFS
6767   test -z "$as_dir" && as_dir=.
6768   for ac_exec_ext in '' $ac_executable_extensions; do
6769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773   fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6779   ;;
6780 esac
6781 fi
6782 XDOT_PY=$ac_cv_path_XDOT_PY
6783 if test -n "$XDOT_PY"; then
6784   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6785 echo "${ECHO_T}$XDOT_PY" >&6; }
6786 else
6787   { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6789 fi
6790
6791
6792 if test "$XDOT_PY" != "echo xdot.py" ; then
6793
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_XDOT_PY 1
6796 _ACEOF
6797
6798     if test "$llvm_cv_os_type" = "MingW" ; then
6799     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800   fi
6801
6802 cat >>confdefs.h <<_ACEOF
6803 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6804 _ACEOF
6805
6806 fi
6807
6808 # Find a good install program.  We prefer a C program (faster),
6809 # so one script is as good as another.  But avoid the broken or
6810 # incompatible versions:
6811 # SysV /etc/install, /usr/sbin/install
6812 # SunOS /usr/etc/install
6813 # IRIX /sbin/install
6814 # AIX /bin/install
6815 # AmigaOS /C/install, which installs bootblocks on floppy discs
6816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6819 # OS/2's system install, which has a completely different semantic
6820 # ./install, which can be erroneously created by make from ./install.sh.
6821 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6822 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6823 if test -z "$INSTALL"; then
6824 if test "${ac_cv_path_install+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   # Account for people who put trailing slashes in PATH elements.
6833 case $as_dir/ in
6834   ./ | .// | /cC/* | \
6835   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6836   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6837   /usr/ucb/* ) ;;
6838   *)
6839     # OSF1 and SCO ODT 3.0 have their own names for install.
6840     # Don't use installbsd from OSF since it installs stuff as root
6841     # by default.
6842     for ac_prog in ginstall scoinst install; do
6843       for ac_exec_ext in '' $ac_executable_extensions; do
6844         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6845           if test $ac_prog = install &&
6846             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6847             # AIX install.  It has an incompatible calling convention.
6848             :
6849           elif test $ac_prog = install &&
6850             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6851             # program-specific install script used by HP pwplus--don't use.
6852             :
6853           else
6854             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6855             break 3
6856           fi
6857         fi
6858       done
6859     done
6860     ;;
6861 esac
6862 done
6863 IFS=$as_save_IFS
6864
6865
6866 fi
6867   if test "${ac_cv_path_install+set}" = set; then
6868     INSTALL=$ac_cv_path_install
6869   else
6870     # As a last resort, use the slow shell script.  Don't cache a
6871     # value for INSTALL within a source directory, because that will
6872     # break other packages using the cache if that directory is
6873     # removed, or if the value is a relative name.
6874     INSTALL=$ac_install_sh
6875   fi
6876 fi
6877 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6878 echo "${ECHO_T}$INSTALL" >&6; }
6879
6880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6881 # It thinks the first close brace ends the variable substitution.
6882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6883
6884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6885
6886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6887
6888 case "$INSTALL" in
6889  [\\/$]* | ?:[\\/]* ) ;;
6890  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6891 esac
6892
6893 # Extract the first word of "bzip2", so it can be a program name with args.
6894 set dummy bzip2; ac_word=$2
6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897 if test "${ac_cv_path_BZIP2+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   case $BZIP2 in
6901   [\\/]* | ?:[\\/]*)
6902   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6903   ;;
6904   *)
6905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908   IFS=$as_save_IFS
6909   test -z "$as_dir" && as_dir=.
6910   for ac_exec_ext in '' $ac_executable_extensions; do
6911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6912     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914     break 2
6915   fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920   ;;
6921 esac
6922 fi
6923 BZIP2=$ac_cv_path_BZIP2
6924 if test -n "$BZIP2"; then
6925   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6926 echo "${ECHO_T}$BZIP2" >&6; }
6927 else
6928   { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6930 fi
6931
6932
6933 # Extract the first word of "cat", so it can be a program name with args.
6934 set dummy cat; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_CAT+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   case $CAT in
6941   [\\/]* | ?:[\\/]*)
6942   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6943   ;;
6944   *)
6945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950   for ac_exec_ext in '' $ac_executable_extensions; do
6951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960   ;;
6961 esac
6962 fi
6963 CAT=$ac_cv_path_CAT
6964 if test -n "$CAT"; then
6965   { echo "$as_me:$LINENO: result: $CAT" >&5
6966 echo "${ECHO_T}$CAT" >&6; }
6967 else
6968   { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6970 fi
6971
6972
6973 # Extract the first word of "doxygen", so it can be a program name with args.
6974 set dummy doxygen; ac_word=$2
6975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6977 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   case $DOXYGEN in
6981   [\\/]* | ?:[\\/]*)
6982   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6983   ;;
6984   *)
6985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6987 do
6988   IFS=$as_save_IFS
6989   test -z "$as_dir" && as_dir=.
6990   for ac_exec_ext in '' $ac_executable_extensions; do
6991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6992     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994     break 2
6995   fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000   ;;
7001 esac
7002 fi
7003 DOXYGEN=$ac_cv_path_DOXYGEN
7004 if test -n "$DOXYGEN"; then
7005   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7006 echo "${ECHO_T}$DOXYGEN" >&6; }
7007 else
7008   { echo "$as_me:$LINENO: result: no" >&5
7009 echo "${ECHO_T}no" >&6; }
7010 fi
7011
7012
7013 # Extract the first word of "groff", so it can be a program name with args.
7014 set dummy groff; ac_word=$2
7015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7017 if test "${ac_cv_path_GROFF+set}" = set; then
7018   echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020   case $GROFF in
7021   [\\/]* | ?:[\\/]*)
7022   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7023   ;;
7024   *)
7025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028   IFS=$as_save_IFS
7029   test -z "$as_dir" && as_dir=.
7030   for ac_exec_ext in '' $ac_executable_extensions; do
7031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7032     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034     break 2
7035   fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040   ;;
7041 esac
7042 fi
7043 GROFF=$ac_cv_path_GROFF
7044 if test -n "$GROFF"; then
7045   { echo "$as_me:$LINENO: result: $GROFF" >&5
7046 echo "${ECHO_T}$GROFF" >&6; }
7047 else
7048   { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7050 fi
7051
7052
7053 # Extract the first word of "gzip", so it can be a program name with args.
7054 set dummy gzip; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060   case $GZIPBIN in
7061   [\\/]* | ?:[\\/]*)
7062   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7063   ;;
7064   *)
7065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070   for ac_exec_ext in '' $ac_executable_extensions; do
7071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7072     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077 done
7078 IFS=$as_save_IFS
7079
7080   ;;
7081 esac
7082 fi
7083 GZIPBIN=$ac_cv_path_GZIPBIN
7084 if test -n "$GZIPBIN"; then
7085   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7086 echo "${ECHO_T}$GZIPBIN" >&6; }
7087 else
7088   { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7090 fi
7091
7092
7093 # Extract the first word of "pod2html", so it can be a program name with args.
7094 set dummy pod2html; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_POD2HTML+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   case $POD2HTML in
7101   [\\/]* | ?:[\\/]*)
7102   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7103   ;;
7104   *)
7105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110   for ac_exec_ext in '' $ac_executable_extensions; do
7111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120   ;;
7121 esac
7122 fi
7123 POD2HTML=$ac_cv_path_POD2HTML
7124 if test -n "$POD2HTML"; then
7125   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7126 echo "${ECHO_T}$POD2HTML" >&6; }
7127 else
7128   { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7130 fi
7131
7132
7133 # Extract the first word of "pod2man", so it can be a program name with args.
7134 set dummy pod2man; ac_word=$2
7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137 if test "${ac_cv_path_POD2MAN+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140   case $POD2MAN in
7141   [\\/]* | ?:[\\/]*)
7142   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7143   ;;
7144   *)
7145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150   for ac_exec_ext in '' $ac_executable_extensions; do
7151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160   ;;
7161 esac
7162 fi
7163 POD2MAN=$ac_cv_path_POD2MAN
7164 if test -n "$POD2MAN"; then
7165   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7166 echo "${ECHO_T}$POD2MAN" >&6; }
7167 else
7168   { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7170 fi
7171
7172
7173 # Extract the first word of "pdfroff", so it can be a program name with args.
7174 set dummy pdfroff; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_PDFROFF+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   case $PDFROFF in
7181   [\\/]* | ?:[\\/]*)
7182   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7183   ;;
7184   *)
7185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190   for ac_exec_ext in '' $ac_executable_extensions; do
7191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200   ;;
7201 esac
7202 fi
7203 PDFROFF=$ac_cv_path_PDFROFF
7204 if test -n "$PDFROFF"; then
7205   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7206 echo "${ECHO_T}$PDFROFF" >&6; }
7207 else
7208   { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7210 fi
7211
7212
7213 # Extract the first word of "runtest", so it can be a program name with args.
7214 set dummy runtest; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_path_RUNTEST+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   case $RUNTEST in
7221   [\\/]* | ?:[\\/]*)
7222   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7223   ;;
7224   *)
7225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230   for ac_exec_ext in '' $ac_executable_extensions; do
7231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234     break 2
7235   fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240   ;;
7241 esac
7242 fi
7243 RUNTEST=$ac_cv_path_RUNTEST
7244 if test -n "$RUNTEST"; then
7245   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7246 echo "${ECHO_T}$RUNTEST" >&6; }
7247 else
7248   { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7250 fi
7251
7252
7253
7254 no_itcl=true
7255 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7256 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7257
7258 # Check whether --with-tclinclude was given.
7259 if test "${with_tclinclude+set}" = set; then
7260   withval=$with_tclinclude; with_tclinclude=${withval}
7261 else
7262   with_tclinclude=''
7263 fi
7264
7265 if test "${ac_cv_path_tclsh+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268
7269 if test x"${with_tclinclude}" != x ; then
7270   if test -f ${with_tclinclude}/tclsh ; then
7271     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7272   elif test -f ${with_tclinclude}/src/tclsh ; then
7273     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7274   else
7275     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7276 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7277    { (exit 1); exit 1; }; }
7278   fi
7279 fi
7280 fi
7281
7282
7283 if test x"${ac_cv_path_tclsh}" = x ; then
7284   { echo "$as_me:$LINENO: result: none" >&5
7285 echo "${ECHO_T}none" >&6; }
7286   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
7287 do
7288   # Extract the first word of "$ac_prog", so it can be a program name with args.
7289 set dummy $ac_prog; ac_word=$2
7290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292 if test "${ac_cv_path_TCLSH+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   case $TCLSH in
7296   [\\/]* | ?:[\\/]*)
7297   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7298   ;;
7299   *)
7300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305   for ac_exec_ext in '' $ac_executable_extensions; do
7306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7307     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312 done
7313 IFS=$as_save_IFS
7314
7315   ;;
7316 esac
7317 fi
7318 TCLSH=$ac_cv_path_TCLSH
7319 if test -n "$TCLSH"; then
7320   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7321 echo "${ECHO_T}$TCLSH" >&6; }
7322 else
7323   { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7325 fi
7326
7327
7328   test -n "$TCLSH" && break
7329 done
7330
7331   if test x"${TCLSH}" = x ; then
7332     ac_cv_path_tclsh='';
7333   else
7334     ac_cv_path_tclsh="${TCLSH}";
7335   fi
7336 else
7337   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7338 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7339   TCLSH="${ac_cv_path_tclsh}"
7340
7341 fi
7342
7343 # Extract the first word of "zip", so it can be a program name with args.
7344 set dummy zip; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_ZIP+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $ZIP in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   ;;
7371 esac
7372 fi
7373 ZIP=$ac_cv_path_ZIP
7374 if test -n "$ZIP"; then
7375   { echo "$as_me:$LINENO: result: $ZIP" >&5
7376 echo "${ECHO_T}$ZIP" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383 for ac_prog in ocamlc
7384 do
7385   # Extract the first word of "$ac_prog", so it can be a program name with args.
7386 set dummy $ac_prog; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_OCAMLC+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   case $OCAMLC in
7393   [\\/]* | ?:[\\/]*)
7394   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7395   ;;
7396   *)
7397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402   for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412   ;;
7413 esac
7414 fi
7415 OCAMLC=$ac_cv_path_OCAMLC
7416 if test -n "$OCAMLC"; then
7417   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7418 echo "${ECHO_T}$OCAMLC" >&6; }
7419 else
7420   { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7422 fi
7423
7424
7425   test -n "$OCAMLC" && break
7426 done
7427
7428 for ac_prog in ocamlopt
7429 do
7430   # Extract the first word of "$ac_prog", so it can be a program name with args.
7431 set dummy $ac_prog; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   case $OCAMLOPT in
7438   [\\/]* | ?:[\\/]*)
7439   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7440   ;;
7441   *)
7442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457   ;;
7458 esac
7459 fi
7460 OCAMLOPT=$ac_cv_path_OCAMLOPT
7461 if test -n "$OCAMLOPT"; then
7462   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7463 echo "${ECHO_T}$OCAMLOPT" >&6; }
7464 else
7465   { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7467 fi
7468
7469
7470   test -n "$OCAMLOPT" && break
7471 done
7472
7473 for ac_prog in ocamldep
7474 do
7475   # Extract the first word of "$ac_prog", so it can be a program name with args.
7476 set dummy $ac_prog; ac_word=$2
7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   case $OCAMLDEP in
7483   [\\/]* | ?:[\\/]*)
7484   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7485   ;;
7486   *)
7487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492   for ac_exec_ext in '' $ac_executable_extensions; do
7493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502   ;;
7503 esac
7504 fi
7505 OCAMLDEP=$ac_cv_path_OCAMLDEP
7506 if test -n "$OCAMLDEP"; then
7507   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7508 echo "${ECHO_T}$OCAMLDEP" >&6; }
7509 else
7510   { echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6; }
7512 fi
7513
7514
7515   test -n "$OCAMLDEP" && break
7516 done
7517
7518 for ac_prog in ocamldoc
7519 do
7520   # Extract the first word of "$ac_prog", so it can be a program name with args.
7521 set dummy $ac_prog; ac_word=$2
7522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7524 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7525   echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527   case $OCAMLDOC in
7528   [\\/]* | ?:[\\/]*)
7529   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7530   ;;
7531   *)
7532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535   IFS=$as_save_IFS
7536   test -z "$as_dir" && as_dir=.
7537   for ac_exec_ext in '' $ac_executable_extensions; do
7538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7539     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541     break 2
7542   fi
7543 done
7544 done
7545 IFS=$as_save_IFS
7546
7547   ;;
7548 esac
7549 fi
7550 OCAMLDOC=$ac_cv_path_OCAMLDOC
7551 if test -n "$OCAMLDOC"; then
7552   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7553 echo "${ECHO_T}$OCAMLDOC" >&6; }
7554 else
7555   { echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6; }
7557 fi
7558
7559
7560   test -n "$OCAMLDOC" && break
7561 done
7562
7563 for ac_prog in gas as
7564 do
7565   # Extract the first word of "$ac_prog", so it can be a program name with args.
7566 set dummy $ac_prog; ac_word=$2
7567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569 if test "${ac_cv_path_GAS+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   case $GAS in
7573   [\\/]* | ?:[\\/]*)
7574   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7575   ;;
7576   *)
7577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580   IFS=$as_save_IFS
7581   test -z "$as_dir" && as_dir=.
7582   for ac_exec_ext in '' $ac_executable_extensions; do
7583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7584     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586     break 2
7587   fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592   ;;
7593 esac
7594 fi
7595 GAS=$ac_cv_path_GAS
7596 if test -n "$GAS"; then
7597   { echo "$as_me:$LINENO: result: $GAS" >&5
7598 echo "${ECHO_T}$GAS" >&6; }
7599 else
7600   { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7602 fi
7603
7604
7605   test -n "$GAS" && break
7606 done
7607
7608
7609 { echo "$as_me:$LINENO: checking for linker version" >&5
7610 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7611 if test "${llvm_cv_link_version+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614
7615    version_string="$(ld -v 2>&1 | head -1)"
7616
7617    # Check for ld64.
7618    if (echo "$version_string" | grep -q "ld64"); then
7619      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7620    else
7621      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7622    fi
7623
7624 fi
7625 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7626 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7627
7628 cat >>confdefs.h <<_ACEOF
7629 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7630 _ACEOF
7631
7632
7633
7634 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7635 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7636 if test "${llvm_cv_link_use_r+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639    ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645   oldcflags="$CFLAGS"
7646   CFLAGS="$CFLAGS -Wl,-R."
7647   cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653
7654 int
7655 main ()
7656 {
7657
7658   ;
7659   return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (ac_try="$ac_link"
7664 case "(($ac_try" in
7665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666   *) ac_try_echo=$ac_try;;
7667 esac
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669   (eval "$ac_link") 2>conftest.er1
7670   ac_status=$?
7671   grep -v '^ *+' conftest.er1 >conftest.err
7672   rm -f conftest.er1
7673   cat conftest.err >&5
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); } &&
7676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7677   { (case "(($ac_try" in
7678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679   *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682   (eval "$ac_try") 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; } &&
7686          { ac_try='test -s conftest$ac_exeext'
7687   { (case "(($ac_try" in
7688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689   *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692   (eval "$ac_try") 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696   llvm_cv_link_use_r=yes
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701         llvm_cv_link_use_r=no
7702 fi
7703
7704 rm -f core conftest.err conftest.$ac_objext \
7705       conftest$ac_exeext conftest.$ac_ext
7706   CFLAGS="$oldcflags"
7707   ac_ext=c
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712
7713
7714 fi
7715 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7716 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7717 if test "$llvm_cv_link_use_r" = yes ; then
7718
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_LINK_R 1
7721 _ACEOF
7722
7723   fi
7724
7725
7726 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7727 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7728 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731    ac_ext=c
7732 ac_cpp='$CPP $CPPFLAGS'
7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736
7737   oldcflags="$CFLAGS"
7738   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745
7746 int
7747 main ()
7748 {
7749
7750   ;
7751   return 0;
7752 }
7753 _ACEOF
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (ac_try="$ac_link"
7756 case "(($ac_try" in
7757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758   *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761   (eval "$ac_link") 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } &&
7768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7769   { (case "(($ac_try" in
7770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771   *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774   (eval "$ac_try") 2>&5
7775   ac_status=$?
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); }; } &&
7778          { ac_try='test -s conftest$ac_exeext'
7779   { (case "(($ac_try" in
7780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781   *) ac_try_echo=$ac_try;;
7782 esac
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784   (eval "$ac_try") 2>&5
7785   ac_status=$?
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); }; }; then
7788   llvm_cv_link_use_export_dynamic=yes
7789 else
7790   echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7792
7793         llvm_cv_link_use_export_dynamic=no
7794 fi
7795
7796 rm -f core conftest.err conftest.$ac_objext \
7797       conftest$ac_exeext conftest.$ac_ext
7798   CFLAGS="$oldcflags"
7799   ac_ext=c
7800 ac_cpp='$CPP $CPPFLAGS'
7801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805
7806 fi
7807 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7808 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7809 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7810
7811 cat >>confdefs.h <<\_ACEOF
7812 #define HAVE_LINK_EXPORT_DYNAMIC 1
7813 _ACEOF
7814
7815   fi
7816
7817
7818 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7819 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7820 if test "${llvm_cv_link_use_version_script+set}" = set; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823    ac_ext=c
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829   oldcflags="$CFLAGS"
7830
7831   # The following code is from the autoconf manual,
7832   # "11.13: Limitations of Usual Tools".
7833   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7834   # Use mktemp if possible; otherwise fall back on mkdir,
7835   # with $RANDOM to make collisions less likely.
7836   : ${TMPDIR=/tmp}
7837   {
7838     tmp=`
7839       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7840     ` &&
7841     test -n "$tmp" && test -d "$tmp"
7842   } || {
7843     tmp=$TMPDIR/foo$$-$RANDOM
7844     (umask 077 && mkdir "$tmp")
7845   } || exit $?
7846
7847   echo "{" > "$tmp/export.map"
7848   echo "  global: main;" >> "$tmp/export.map"
7849   echo "  local: *;" >> "$tmp/export.map"
7850   echo "};" >> "$tmp/export.map"
7851
7852   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7853   cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h.  */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h.  */
7859
7860 int
7861 main ()
7862 {
7863
7864   ;
7865   return 0;
7866 }
7867 _ACEOF
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7870 case "(($ac_try" in
7871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872   *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875   (eval "$ac_link") 2>conftest.er1
7876   ac_status=$?
7877   grep -v '^ *+' conftest.er1 >conftest.err
7878   rm -f conftest.er1
7879   cat conftest.err >&5
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); } &&
7882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883   { (case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_try") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; } &&
7892          { ac_try='test -s conftest$ac_exeext'
7893   { (case "(($ac_try" in
7894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895   *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898   (eval "$ac_try") 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   llvm_cv_link_use_version_script=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907         llvm_cv_link_use_version_script=no
7908 fi
7909
7910 rm -f core conftest.err conftest.$ac_objext \
7911       conftest$ac_exeext conftest.$ac_ext
7912   rm "$tmp/export.map"
7913   rmdir "$tmp"
7914   CFLAGS="$oldcflags"
7915   ac_ext=c
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920
7921
7922 fi
7923 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7924 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7925 if test "$llvm_cv_link_use_version_script" = yes ; then
7926   HAVE_LINK_VERSION_SCRIPT=1
7927
7928   fi
7929
7930
7931
7932
7933 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7934 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7935 if test "${ac_cv_c_const+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944
7945 int
7946 main ()
7947 {
7948 /* FIXME: Include the comments suggested by Paul. */
7949 #ifndef __cplusplus
7950   /* Ultrix mips cc rejects this.  */
7951   typedef int charset[2];
7952   const charset x;
7953   /* SunOS 4.1.1 cc rejects this.  */
7954   char const *const *ccp;
7955   char **p;
7956   /* NEC SVR4.0.2 mips cc rejects this.  */
7957   struct point {int x, y;};
7958   static struct point const zero = {0,0};
7959   /* AIX XL C 1.02.0.0 rejects this.
7960      It does not let you subtract one const X* pointer from another in
7961      an arm of an if-expression whose if-part is not a constant
7962      expression */
7963   const char *g = "string";
7964   ccp = &g + (g ? g-g : 0);
7965   /* HPUX 7.0 cc rejects these. */
7966   ++ccp;
7967   p = (char**) ccp;
7968   ccp = (char const *const *) p;
7969   { /* SCO 3.2v4 cc rejects this.  */
7970     char *t;
7971     char const *s = 0 ? (char *) 0 : (char const *) 0;
7972
7973     *t++ = 0;
7974     if (s) return 0;
7975   }
7976   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7977     int x[] = {25, 17};
7978     const int *foo = &x[0];
7979     ++foo;
7980   }
7981   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7982     typedef const int *iptr;
7983     iptr p = 0;
7984     ++p;
7985   }
7986   { /* AIX XL C 1.02.0.0 rejects this saying
7987        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7988     struct s { int j; const int *ap[3]; };
7989     struct s *b; b->j = 5;
7990   }
7991   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7992     const int foo = 10;
7993     if (!foo) return 0;
7994   }
7995   return !x[0] && !zero.x;
7996 #endif
7997
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8004 case "(($ac_try" in
8005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006   *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009   (eval "$ac_compile") 2>conftest.er1
8010   ac_status=$?
8011   grep -v '^ *+' conftest.er1 >conftest.err
8012   rm -f conftest.er1
8013   cat conftest.err >&5
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } &&
8016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8017   { (case "(($ac_try" in
8018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019   *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022   (eval "$ac_try") 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; } &&
8026          { ac_try='test -s conftest.$ac_objext'
8027   { (case "(($ac_try" in
8028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029   *) ac_try_echo=$ac_try;;
8030 esac
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032   (eval "$ac_try") 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); }; }; then
8036   ac_cv_c_const=yes
8037 else
8038   echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8040
8041         ac_cv_c_const=no
8042 fi
8043
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 fi
8046 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8047 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8048 if test $ac_cv_c_const = no; then
8049
8050 cat >>confdefs.h <<\_ACEOF
8051 #define const
8052 _ACEOF
8053
8054 fi
8055
8056
8057
8058
8059
8060
8061 ac_header_dirent=no
8062 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8063   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8064 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8065 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069   cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075 #include <sys/types.h>
8076 #include <$ac_hdr>
8077
8078 int
8079 main ()
8080 {
8081 if ((DIR *) 0)
8082 return 0;
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8089 case "(($ac_try" in
8090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091   *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094   (eval "$ac_compile") 2>conftest.er1
8095   ac_status=$?
8096   grep -v '^ *+' conftest.er1 >conftest.err
8097   rm -f conftest.er1
8098   cat conftest.err >&5
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } &&
8101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102   { (case "(($ac_try" in
8103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104   *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107   (eval "$ac_try") 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); }; } &&
8111          { ac_try='test -s conftest.$ac_objext'
8112   { (case "(($ac_try" in
8113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114   *) ac_try_echo=$ac_try;;
8115 esac
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117   (eval "$ac_try") 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; }; then
8121   eval "$as_ac_Header=yes"
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126         eval "$as_ac_Header=no"
8127 fi
8128
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 fi
8131 ac_res=`eval echo '${'$as_ac_Header'}'`
8132                { echo "$as_me:$LINENO: result: $ac_res" >&5
8133 echo "${ECHO_T}$ac_res" >&6; }
8134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8135   cat >>confdefs.h <<_ACEOF
8136 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8137 _ACEOF
8138
8139 ac_header_dirent=$ac_hdr; break
8140 fi
8141
8142 done
8143 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8144 if test $ac_header_dirent = dirent.h; then
8145   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8146 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8147 if test "${ac_cv_search_opendir+set}" = set; then
8148   echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150   ac_func_search_save_LIBS=$LIBS
8151 cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h.  */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h.  */
8157
8158 /* Override any GCC internal prototype to avoid an error.
8159    Use char because int might match the return type of a GCC
8160    builtin and then its argument prototype would still apply.  */
8161 #ifdef __cplusplus
8162 extern "C"
8163 #endif
8164 char opendir ();
8165 int
8166 main ()
8167 {
8168 return opendir ();
8169   ;
8170   return 0;
8171 }
8172 _ACEOF
8173 for ac_lib in '' dir; do
8174   if test -z "$ac_lib"; then
8175     ac_res="none required"
8176   else
8177     ac_res=-l$ac_lib
8178     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8179   fi
8180   rm -f conftest.$ac_objext conftest$ac_exeext
8181 if { (ac_try="$ac_link"
8182 case "(($ac_try" in
8183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184   *) ac_try_echo=$ac_try;;
8185 esac
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187   (eval "$ac_link") 2>conftest.er1
8188   ac_status=$?
8189   grep -v '^ *+' conftest.er1 >conftest.err
8190   rm -f conftest.er1
8191   cat conftest.err >&5
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } &&
8194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8195   { (case "(($ac_try" in
8196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197   *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200   (eval "$ac_try") 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; } &&
8204          { ac_try='test -s conftest$ac_exeext'
8205   { (case "(($ac_try" in
8206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207   *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210   (eval "$ac_try") 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; }; then
8214   ac_cv_search_opendir=$ac_res
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext \
8223       conftest$ac_exeext
8224   if test "${ac_cv_search_opendir+set}" = set; then
8225   break
8226 fi
8227 done
8228 if test "${ac_cv_search_opendir+set}" = set; then
8229   :
8230 else
8231   ac_cv_search_opendir=no
8232 fi
8233 rm conftest.$ac_ext
8234 LIBS=$ac_func_search_save_LIBS
8235 fi
8236 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8237 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8238 ac_res=$ac_cv_search_opendir
8239 if test "$ac_res" != no; then
8240   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8241
8242 fi
8243
8244 else
8245   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8247 if test "${ac_cv_search_opendir+set}" = set; then
8248   echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250   ac_func_search_save_LIBS=$LIBS
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257
8258 /* Override any GCC internal prototype to avoid an error.
8259    Use char because int might match the return type of a GCC
8260    builtin and then its argument prototype would still apply.  */
8261 #ifdef __cplusplus
8262 extern "C"
8263 #endif
8264 char opendir ();
8265 int
8266 main ()
8267 {
8268 return opendir ();
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 for ac_lib in '' x; do
8274   if test -z "$ac_lib"; then
8275     ac_res="none required"
8276   else
8277     ac_res=-l$ac_lib
8278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8279   fi
8280   rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (ac_try="$ac_link"
8282 case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287   (eval "$ac_link") 2>conftest.er1
8288   ac_status=$?
8289   grep -v '^ *+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } &&
8294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295   { (case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_try") 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; } &&
8304          { ac_try='test -s conftest$ac_exeext'
8305   { (case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_try") 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   ac_cv_search_opendir=$ac_res
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext \
8323       conftest$ac_exeext
8324   if test "${ac_cv_search_opendir+set}" = set; then
8325   break
8326 fi
8327 done
8328 if test "${ac_cv_search_opendir+set}" = set; then
8329   :
8330 else
8331   ac_cv_search_opendir=no
8332 fi
8333 rm conftest.$ac_ext
8334 LIBS=$ac_func_search_save_LIBS
8335 fi
8336 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8337 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8338 ac_res=$ac_cv_search_opendir
8339 if test "$ac_res" != no; then
8340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8341
8342 fi
8343
8344 fi
8345
8346
8347 for ac_header in dlfcn.h
8348 do
8349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8351   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 fi
8356 ac_res=`eval echo '${'$as_ac_Header'}'`
8357                { echo "$as_me:$LINENO: result: $ac_res" >&5
8358 echo "${ECHO_T}$ac_res" >&6; }
8359 else
8360   # Is the header compilable?
8361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369 $ac_includes_default
8370 #include <$ac_header>
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (ac_try="$ac_compile"
8374 case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379   (eval "$ac_compile") 2>conftest.er1
8380   ac_status=$?
8381   grep -v '^ *+' conftest.er1 >conftest.err
8382   rm -f conftest.er1
8383   cat conftest.err >&5
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); } &&
8386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8387   { (case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392   (eval "$ac_try") 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; } &&
8396          { ac_try='test -s conftest.$ac_objext'
8397   { (case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402   (eval "$ac_try") 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   ac_header_compiler=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411         ac_header_compiler=no
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416 echo "${ECHO_T}$ac_header_compiler" >&6; }
8417
8418 # Is the header present?
8419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427 #include <$ac_header>
8428 _ACEOF
8429 if { (ac_try="$ac_cpp conftest.$ac_ext"
8430 case "(($ac_try" in
8431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432   *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8436   ac_status=$?
8437   grep -v '^ *+' conftest.er1 >conftest.err
8438   rm -f conftest.er1
8439   cat conftest.err >&5
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); } >/dev/null; then
8442   if test -s conftest.err; then
8443     ac_cpp_err=$ac_c_preproc_warn_flag
8444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8445   else
8446     ac_cpp_err=
8447   fi
8448 else
8449   ac_cpp_err=yes
8450 fi
8451 if test -z "$ac_cpp_err"; then
8452   ac_header_preproc=yes
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457   ac_header_preproc=no
8458 fi
8459
8460 rm -f conftest.err conftest.$ac_ext
8461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462 echo "${ECHO_T}$ac_header_preproc" >&6; }
8463
8464 # So?  What about this header?
8465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8466   yes:no: )
8467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8471     ac_header_preproc=yes
8472     ;;
8473   no:yes:* )
8474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8476     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8477 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8478     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8480     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8481 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8484     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8486     ( cat <<\_ASBOX
8487 ## ------------------------------ ##
8488 ## Report this to bugs@yourdomain ##
8489 ## ------------------------------ ##
8490 _ASBOX
8491      ) | sed "s/^/$as_me: WARNING:     /" >&2
8492     ;;
8493 esac
8494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8497   echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499   eval "$as_ac_Header=\$ac_header_preproc"
8500 fi
8501 ac_res=`eval echo '${'$as_ac_Header'}'`
8502                { echo "$as_me:$LINENO: result: $ac_res" >&5
8503 echo "${ECHO_T}$ac_res" >&6; }
8504
8505 fi
8506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8507   cat >>confdefs.h <<_ACEOF
8508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8509 _ACEOF
8510
8511 fi
8512
8513 done
8514
8515 # Check whether --enable-ltdl-install was given.
8516 if test "${enable_ltdl_install+set}" = set; then
8517   enableval=$enable_ltdl_install;
8518 fi
8519
8520
8521
8522
8523 if test x"${enable_ltdl_install-no}" != xno; then
8524   INSTALL_LTDL_TRUE=
8525   INSTALL_LTDL_FALSE='#'
8526 else
8527   INSTALL_LTDL_TRUE='#'
8528   INSTALL_LTDL_FALSE=
8529 fi
8530
8531
8532
8533 if test x"${enable_ltdl_convenience-no}" != xno; then
8534   CONVENIENCE_LTDL_TRUE=
8535   CONVENIENCE_LTDL_FALSE='#'
8536 else
8537   CONVENIENCE_LTDL_TRUE='#'
8538   CONVENIENCE_LTDL_FALSE=
8539 fi
8540
8541
8542 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8543 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8544 library_names_spec=
8545 libname_spec='lib$name'
8546 soname_spec=
8547 shrext_cmds=".so"
8548 postinstall_cmds=
8549 postuninstall_cmds=
8550 finish_cmds=
8551 finish_eval=
8552 shlibpath_var=
8553 shlibpath_overrides_runpath=unknown
8554 version_type=none
8555 dynamic_linker="$host_os ld.so"
8556 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8557 if test "$GCC" = yes; then
8558   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8559   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8560     # if the path contains ";" then we assume it to be the separator
8561     # otherwise default to the standard path separator (i.e. ":") - it is
8562     # assumed that no part of a normal pathname contains ";" but that should
8563     # okay in the real world where ";" in dirpaths is itself problematic.
8564     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8565   else
8566     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8567   fi
8568 else
8569   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8570 fi
8571 need_lib_prefix=unknown
8572 hardcode_into_libs=no
8573
8574 # when you set need_version to no, make sure it does not cause -set_version
8575 # flags to be left without arguments
8576 need_version=unknown
8577
8578 case $host_os in
8579 aix3*)
8580   version_type=linux
8581   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8582   shlibpath_var=LIBPATH
8583
8584   # AIX 3 has no versioning support, so we append a major version to the name.
8585   soname_spec='${libname}${release}${shared_ext}$major'
8586   ;;
8587
8588 aix4* | aix5*)
8589   version_type=linux
8590   need_lib_prefix=no
8591   need_version=no
8592   hardcode_into_libs=yes
8593   if test "$host_cpu" = ia64; then
8594     # AIX 5 supports IA64
8595     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8596     shlibpath_var=LD_LIBRARY_PATH
8597   else
8598     # With GCC up to 2.95.x, collect2 would create an import file
8599     # for dependence libraries.  The import file would start with
8600     # the line `#! .'.  This would cause the generated library to
8601     # depend on `.', always an invalid library.  This was fixed in
8602     # development snapshots of GCC prior to 3.0.
8603     case $host_os in
8604       aix4 | aix4.[01] | aix4.[01].*)
8605       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8606            echo ' yes '
8607            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8608         :
8609       else
8610         can_build_shared=no
8611       fi
8612       ;;
8613     esac
8614     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8615     # soname into executable. Probably we can add versioning support to
8616     # collect2, so additional links can be useful in future.
8617     if test "$aix_use_runtimelinking" = yes; then
8618       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8619       # instead of lib<name>.a to let people know that these are not
8620       # typical AIX shared libraries.
8621       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622     else
8623       # We preserve .a as extension for shared libraries through AIX4.2
8624       # and later when we are not doing run time linking.
8625       library_names_spec='${libname}${release}.a $libname.a'
8626       soname_spec='${libname}${release}${shared_ext}$major'
8627     fi
8628     shlibpath_var=LIBPATH
8629   fi
8630   ;;
8631
8632 amigaos*)
8633   library_names_spec='$libname.ixlibrary $libname.a'
8634   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8635   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'
8636   ;;
8637
8638 beos*)
8639   library_names_spec='${libname}${shared_ext}'
8640   dynamic_linker="$host_os ld.so"
8641   shlibpath_var=LIBRARY_PATH
8642   ;;
8643
8644 bsdi[45]*)
8645   version_type=linux
8646   need_version=no
8647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8648   soname_spec='${libname}${release}${shared_ext}$major'
8649   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8650   shlibpath_var=LD_LIBRARY_PATH
8651   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8652   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8653   # the default ld.so.conf also contains /usr/contrib/lib and
8654   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8655   # libtool to hard-code these into programs
8656   ;;
8657
8658 cygwin* | mingw* | pw32*)
8659   version_type=windows
8660   shrext_cmds=".dll"
8661   need_version=no
8662   need_lib_prefix=no
8663
8664   case $GCC,$host_os in
8665   yes,cygwin* | yes,mingw* | yes,pw32*)
8666     library_names_spec='$libname.dll.a'
8667     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8668     postinstall_cmds='base_file=`basename \${file}`~
8669       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8670       dldir=$destdir/`dirname \$dlpath`~
8671       test -d \$dldir || mkdir -p \$dldir~
8672       $install_prog $dir/$dlname \$dldir/$dlname~
8673       chmod a+x \$dldir/$dlname'
8674     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8675       dlpath=$dir/\$dldll~
8676        $rm \$dlpath'
8677     shlibpath_overrides_runpath=yes
8678
8679     case $host_os in
8680     cygwin*)
8681       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8682       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8683       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8684       ;;
8685     mingw*)
8686       # MinGW DLLs use traditional 'lib' prefix
8687       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8688       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8689       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8690         # It is most probably a Windows format PATH printed by
8691         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8692         # path with ; separators, and with drive letters. We can handle the
8693         # drive letters (cygwin fileutils understands them), so leave them,
8694         # especially as we might pass files found there to a mingw objdump,
8695         # which wouldn't understand a cygwinified path. Ahh.
8696         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8697       else
8698         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8699       fi
8700       ;;
8701     pw32*)
8702       # pw32 DLLs use 'pw' prefix rather than 'lib'
8703       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704       ;;
8705     esac
8706     ;;
8707
8708   *)
8709     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8710     ;;
8711   esac
8712   dynamic_linker='Win32 ld.exe'
8713   # FIXME: first we should search . and the directory the executable is in
8714   shlibpath_var=PATH
8715   ;;
8716
8717 darwin* | rhapsody*)
8718   dynamic_linker="$host_os dyld"
8719   version_type=darwin
8720   need_lib_prefix=no
8721   need_version=no
8722   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8723   soname_spec='${libname}${release}${major}$shared_ext'
8724   shlibpath_overrides_runpath=yes
8725   shlibpath_var=DYLD_LIBRARY_PATH
8726   shrext_cmds='.dylib'
8727   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8728   if test "$GCC" = yes; then
8729     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"`
8730   else
8731     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8732   fi
8733   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8734   ;;
8735
8736 dgux*)
8737   version_type=linux
8738   need_lib_prefix=no
8739   need_version=no
8740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8741   soname_spec='${libname}${release}${shared_ext}$major'
8742   shlibpath_var=LD_LIBRARY_PATH
8743   ;;
8744
8745 freebsd1.*)
8746   dynamic_linker=no
8747   ;;
8748
8749 kfreebsd*-gnu)
8750   version_type=linux
8751   need_lib_prefix=no
8752   need_version=no
8753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8754   soname_spec='${libname}${release}${shared_ext}$major'
8755   shlibpath_var=LD_LIBRARY_PATH
8756   shlibpath_overrides_runpath=no
8757   hardcode_into_libs=yes
8758   dynamic_linker='GNU ld.so'
8759   ;;
8760
8761 freebsd* | dragonfly*)
8762   # DragonFly does not have aout.  When/if they implement a new
8763   # versioning mechanism, adjust this.
8764   if test -x /usr/bin/objformat; then
8765     objformat=`/usr/bin/objformat`
8766   else
8767     case $host_os in
8768     freebsd[123].*) objformat=aout ;;
8769     *) objformat=elf ;;
8770     esac
8771   fi
8772   version_type=freebsd-$objformat
8773   case $version_type in
8774     freebsd-elf*)
8775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8776       need_version=no
8777       need_lib_prefix=no
8778       ;;
8779     freebsd-*)
8780       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8781       need_version=yes
8782       ;;
8783   esac
8784   shlibpath_var=LD_LIBRARY_PATH
8785   case $host_os in
8786   freebsd2.*)
8787     shlibpath_overrides_runpath=yes
8788     ;;
8789   freebsd3.[01]* | freebsdelf3.[01]*)
8790     shlibpath_overrides_runpath=yes
8791     hardcode_into_libs=yes
8792     ;;
8793   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8794   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8795     shlibpath_overrides_runpath=no
8796     hardcode_into_libs=yes
8797     ;;
8798   freebsd*) # from 4.6 on
8799     shlibpath_overrides_runpath=yes
8800     hardcode_into_libs=yes
8801     ;;
8802   esac
8803   ;;
8804
8805 gnu*)
8806   version_type=linux
8807   need_lib_prefix=no
8808   need_version=no
8809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8810   soname_spec='${libname}${release}${shared_ext}$major'
8811   shlibpath_var=LD_LIBRARY_PATH
8812   hardcode_into_libs=yes
8813   ;;
8814
8815 hpux9* | hpux10* | hpux11*)
8816   # Give a soname corresponding to the major version so that dld.sl refuses to
8817   # link against other versions.
8818   version_type=sunos
8819   need_lib_prefix=no
8820   need_version=no
8821   case $host_cpu in
8822   ia64*)
8823     shrext_cmds='.so'
8824     hardcode_into_libs=yes
8825     dynamic_linker="$host_os dld.so"
8826     shlibpath_var=LD_LIBRARY_PATH
8827     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829     soname_spec='${libname}${release}${shared_ext}$major'
8830     if test "X$HPUX_IA64_MODE" = X32; then
8831       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8832     else
8833       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8834     fi
8835     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8836     ;;
8837    hppa*64*)
8838      shrext_cmds='.sl'
8839      hardcode_into_libs=yes
8840      dynamic_linker="$host_os dld.sl"
8841      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8842      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8843      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844      soname_spec='${libname}${release}${shared_ext}$major'
8845      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8846      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8847      ;;
8848    *)
8849     shrext_cmds='.sl'
8850     dynamic_linker="$host_os dld.sl"
8851     shlibpath_var=SHLIB_PATH
8852     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854     soname_spec='${libname}${release}${shared_ext}$major'
8855     ;;
8856   esac
8857   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8858   postinstall_cmds='chmod 555 $lib'
8859   ;;
8860
8861 interix3*)
8862   version_type=linux
8863   need_lib_prefix=no
8864   need_version=no
8865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866   soname_spec='${libname}${release}${shared_ext}$major'
8867   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8868   shlibpath_var=LD_LIBRARY_PATH
8869   shlibpath_overrides_runpath=no
8870   hardcode_into_libs=yes
8871   ;;
8872
8873 irix5* | irix6* | nonstopux*)
8874   case $host_os in
8875     nonstopux*) version_type=nonstopux ;;
8876     *)
8877         if test "$lt_cv_prog_gnu_ld" = yes; then
8878                 version_type=linux
8879         else
8880                 version_type=irix
8881         fi ;;
8882   esac
8883   need_lib_prefix=no
8884   need_version=no
8885   soname_spec='${libname}${release}${shared_ext}$major'
8886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8887   case $host_os in
8888   irix5* | nonstopux*)
8889     libsuff= shlibsuff=
8890     ;;
8891   *)
8892     case $LD in # libtool.m4 will add one of these switches to LD
8893     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8894       libsuff= shlibsuff= libmagic=32-bit;;
8895     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8896       libsuff=32 shlibsuff=N32 libmagic=N32;;
8897     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8898       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8899     *) libsuff= shlibsuff= libmagic=never-match;;
8900     esac
8901     ;;
8902   esac
8903   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8904   shlibpath_overrides_runpath=no
8905   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8906   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8907   hardcode_into_libs=yes
8908   ;;
8909
8910 # No shared lib support for Linux oldld, aout, or coff.
8911 linux*oldld* | linux*aout* | linux*coff*)
8912   dynamic_linker=no
8913   ;;
8914
8915 # This must be Linux ELF.
8916 linux*)
8917   version_type=linux
8918   need_lib_prefix=no
8919   need_version=no
8920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921   soname_spec='${libname}${release}${shared_ext}$major'
8922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8923   shlibpath_var=LD_LIBRARY_PATH
8924   shlibpath_overrides_runpath=no
8925   # This implies no fast_install, which is unacceptable.
8926   # Some rework will be needed to allow for fast_install
8927   # before this can be enabled.
8928   hardcode_into_libs=yes
8929
8930   # Append ld.so.conf contents to the search path
8931   if test -f /etc/ld.so.conf; then
8932     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' ' '`
8933     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8934   fi
8935
8936   # We used to test for /lib/ld.so.1 and disable shared libraries on
8937   # powerpc, because MkLinux only supported shared libraries with the
8938   # GNU dynamic linker.  Since this was broken with cross compilers,
8939   # most powerpc-linux boxes support dynamic linking these days and
8940   # people can always --disable-shared, the test was removed, and we
8941   # assume the GNU/Linux dynamic linker is in use.
8942   dynamic_linker='GNU/Linux ld.so'
8943   ;;
8944
8945 knetbsd*-gnu)
8946   version_type=linux
8947   need_lib_prefix=no
8948   need_version=no
8949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8950   soname_spec='${libname}${release}${shared_ext}$major'
8951   shlibpath_var=LD_LIBRARY_PATH
8952   shlibpath_overrides_runpath=no
8953   hardcode_into_libs=yes
8954   dynamic_linker='GNU ld.so'
8955   ;;
8956
8957 netbsd*)
8958   version_type=sunos
8959   need_lib_prefix=no
8960   need_version=no
8961   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8963     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8964     dynamic_linker='NetBSD (a.out) ld.so'
8965   else
8966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8967     soname_spec='${libname}${release}${shared_ext}$major'
8968     dynamic_linker='NetBSD ld.elf_so'
8969   fi
8970   shlibpath_var=LD_LIBRARY_PATH
8971   shlibpath_overrides_runpath=yes
8972   hardcode_into_libs=yes
8973   ;;
8974
8975 newsos6)
8976   version_type=linux
8977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978   shlibpath_var=LD_LIBRARY_PATH
8979   shlibpath_overrides_runpath=yes
8980   ;;
8981
8982 nto-qnx*)
8983   version_type=linux
8984   need_lib_prefix=no
8985   need_version=no
8986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987   soname_spec='${libname}${release}${shared_ext}$major'
8988   shlibpath_var=LD_LIBRARY_PATH
8989   shlibpath_overrides_runpath=yes
8990   ;;
8991
8992 openbsd*)
8993   version_type=sunos
8994   sys_lib_dlsearch_path_spec="/usr/lib"
8995   need_lib_prefix=no
8996   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8997   case $host_os in
8998     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8999     *)                         need_version=no  ;;
9000   esac
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9002   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9003   shlibpath_var=LD_LIBRARY_PATH
9004   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9005     case $host_os in
9006       openbsd2.[89] | openbsd2.[89].*)
9007         shlibpath_overrides_runpath=no
9008         ;;
9009       *)
9010         shlibpath_overrides_runpath=yes
9011         ;;
9012       esac
9013   else
9014     shlibpath_overrides_runpath=yes
9015   fi
9016   ;;
9017
9018 os2*)
9019   libname_spec='$name'
9020   shrext_cmds=".dll"
9021   need_lib_prefix=no
9022   library_names_spec='$libname${shared_ext} $libname.a'
9023   dynamic_linker='OS/2 ld.exe'
9024   shlibpath_var=LIBPATH
9025   ;;
9026
9027 osf3* | osf4* | osf5*)
9028   version_type=osf
9029   need_lib_prefix=no
9030   need_version=no
9031   soname_spec='${libname}${release}${shared_ext}$major'
9032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033   shlibpath_var=LD_LIBRARY_PATH
9034   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9035   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9036   ;;
9037
9038 solaris*)
9039   version_type=linux
9040   need_lib_prefix=no
9041   need_version=no
9042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043   soname_spec='${libname}${release}${shared_ext}$major'
9044   shlibpath_var=LD_LIBRARY_PATH
9045   shlibpath_overrides_runpath=yes
9046   hardcode_into_libs=yes
9047   # ldd complains unless libraries are executable
9048   postinstall_cmds='chmod +x $lib'
9049   ;;
9050
9051 sunos4*)
9052   version_type=sunos
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   shlibpath_overrides_runpath=yes
9057   if test "$with_gnu_ld" = yes; then
9058     need_lib_prefix=no
9059   fi
9060   need_version=yes
9061   ;;
9062
9063 sysv4 | sysv4.3*)
9064   version_type=linux
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066   soname_spec='${libname}${release}${shared_ext}$major'
9067   shlibpath_var=LD_LIBRARY_PATH
9068   case $host_vendor in
9069     sni)
9070       shlibpath_overrides_runpath=no
9071       need_lib_prefix=no
9072       export_dynamic_flag_spec='${wl}-Blargedynsym'
9073       runpath_var=LD_RUN_PATH
9074       ;;
9075     siemens)
9076       need_lib_prefix=no
9077       ;;
9078     motorola)
9079       need_lib_prefix=no
9080       need_version=no
9081       shlibpath_overrides_runpath=no
9082       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9083       ;;
9084   esac
9085   ;;
9086
9087 sysv4*MP*)
9088   if test -d /usr/nec ;then
9089     version_type=linux
9090     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9091     soname_spec='$libname${shared_ext}.$major'
9092     shlibpath_var=LD_LIBRARY_PATH
9093   fi
9094   ;;
9095
9096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9097   version_type=freebsd-elf
9098   need_lib_prefix=no
9099   need_version=no
9100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9101   soname_spec='${libname}${release}${shared_ext}$major'
9102   shlibpath_var=LD_LIBRARY_PATH
9103   hardcode_into_libs=yes
9104   if test "$with_gnu_ld" = yes; then
9105     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9106     shlibpath_overrides_runpath=no
9107   else
9108     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9109     shlibpath_overrides_runpath=yes
9110     case $host_os in
9111       sco3.2v5*)
9112         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9113         ;;
9114     esac
9115   fi
9116   sys_lib_dlsearch_path_spec='/usr/lib'
9117   ;;
9118
9119 uts4*)
9120   version_type=linux
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   ;;
9125
9126 *)
9127   dynamic_linker=no
9128   ;;
9129 esac
9130 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9131 echo "${ECHO_T}$dynamic_linker" >&6; }
9132 test "$dynamic_linker" = no && can_build_shared=no
9133
9134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9135 if test "$GCC" = yes; then
9136   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9137 fi
9138
9139
9140 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9141 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9142 if test "${libltdl_cv_shlibext+set}" = set; then
9143   echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145
9146 module=yes
9147 eval libltdl_cv_shlibext=$shrext_cmds
9148
9149 fi
9150 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9151 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9152 if test -n "$libltdl_cv_shlibext"; then
9153
9154 cat >>confdefs.h <<_ACEOF
9155 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9156 _ACEOF
9157
9158 fi
9159
9160
9161 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9162 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9163 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9164   echo $ECHO_N "(cached) $ECHO_C" >&6
9165 else
9166   libltdl_cv_shlibpath_var="$shlibpath_var"
9167 fi
9168 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9169 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9170 if test -n "$libltdl_cv_shlibpath_var"; then
9171
9172 cat >>confdefs.h <<_ACEOF
9173 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9174 _ACEOF
9175
9176 fi
9177
9178
9179 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9180 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9181 if test "${libltdl_cv_sys_search_path+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9185 fi
9186 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9187 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9188 if test -n "$libltdl_cv_sys_search_path"; then
9189   sys_search_path=
9190   for dir in $libltdl_cv_sys_search_path; do
9191     if test -z "$sys_search_path"; then
9192       sys_search_path="$dir"
9193     else
9194       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9195     fi
9196   done
9197
9198 cat >>confdefs.h <<_ACEOF
9199 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9200 _ACEOF
9201
9202 fi
9203
9204 { echo "$as_me:$LINENO: checking for objdir" >&5
9205 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9206 if test "${libltdl_cv_objdir+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   libltdl_cv_objdir="$objdir"
9210   if test -n "$objdir"; then
9211     :
9212   else
9213     rm -f .libs 2>/dev/null
9214     mkdir .libs 2>/dev/null
9215     if test -d .libs; then
9216       libltdl_cv_objdir=.libs
9217     else
9218       # MS-DOS does not allow filenames that begin with a dot.
9219       libltdl_cv_objdir=_libs
9220     fi
9221   rmdir .libs 2>/dev/null
9222   fi
9223
9224 fi
9225 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9226 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9227
9228 cat >>confdefs.h <<_ACEOF
9229 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9230 _ACEOF
9231
9232
9233
9234
9235
9236
9237 # Check for command to grab the raw symbol name followed by C symbol from nm.
9238 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9239 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9240 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243
9244 # These are sane defaults that work on at least a few old systems.
9245 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9246
9247 # Character class describing NM global symbol codes.
9248 symcode='[BCDEGRST]'
9249
9250 # Regexp to match symbols that can be accessed directly from C.
9251 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9252
9253 # Transform an extracted symbol line into a proper C declaration
9254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9255
9256 # Transform an extracted symbol line into symbol name and symbol address
9257 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'"
9258
9259 # Define system-specific variables.
9260 case $host_os in
9261 aix*)
9262   symcode='[BCDT]'
9263   ;;
9264 cygwin* | mingw* | pw32*)
9265   symcode='[ABCDGISTW]'
9266   ;;
9267 hpux*) # Its linker distinguishes data from code symbols
9268   if test "$host_cpu" = ia64; then
9269     symcode='[ABCDEGRST]'
9270   fi
9271   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9272   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'"
9273   ;;
9274 linux*)
9275   if test "$host_cpu" = ia64; then
9276     symcode='[ABCDGIRSTW]'
9277     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9278     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'"
9279   fi
9280   ;;
9281 irix* | nonstopux*)
9282   symcode='[BCDEGRST]'
9283   ;;
9284 osf*)
9285   symcode='[BCDEGQRST]'
9286   ;;
9287 solaris*)
9288   symcode='[BDRT]'
9289   ;;
9290 sco3.2v5*)
9291   symcode='[DT]'
9292   ;;
9293 sysv4.2uw2*)
9294   symcode='[DT]'
9295   ;;
9296 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9297   symcode='[ABDT]'
9298   ;;
9299 sysv4)
9300   symcode='[DFNSTU]'
9301   ;;
9302 esac
9303
9304 # Handle CRLF in mingw tool chain
9305 opt_cr=
9306 case $build_os in
9307 mingw*)
9308   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9309   ;;
9310 esac
9311
9312 # If we're using GNU nm, then use its standard symbol codes.
9313 case `$NM -V 2>&1` in
9314 *GNU* | *'with BFD'*)
9315   symcode='[ABCDGIRSTW]' ;;
9316 esac
9317
9318 # Try without a prefix undercore, then with it.
9319 for ac_symprfx in "" "_"; do
9320
9321   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9322   symxfrm="\\1 $ac_symprfx\\2 \\2"
9323
9324   # Write the raw and C identifiers.
9325   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9326
9327   # Check to see that the pipe works correctly.
9328   pipe_works=no
9329
9330   rm -f conftest*
9331   cat > conftest.$ac_ext <<EOF
9332 #ifdef __cplusplus
9333 extern "C" {
9334 #endif
9335 char nm_test_var;
9336 void nm_test_func(){}
9337 #ifdef __cplusplus
9338 }
9339 #endif
9340 int main(){nm_test_var='a';nm_test_func();return(0);}
9341 EOF
9342
9343   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9344   (eval $ac_compile) 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); }; then
9348     # Now try to grab the symbols.
9349     nlist=conftest.nm
9350     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9351   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); } && test -s "$nlist"; then
9355       # Try sorting and uniquifying the output.
9356       if sort "$nlist" | uniq > "$nlist"T; then
9357         mv -f "$nlist"T "$nlist"
9358       else
9359         rm -f "$nlist"T
9360       fi
9361
9362       # Make sure that we snagged all the symbols we need.
9363       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9364         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9365           cat <<EOF > conftest.$ac_ext
9366 #ifdef __cplusplus
9367 extern "C" {
9368 #endif
9369
9370 EOF
9371           # Now generate the symbol file.
9372           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9373
9374           cat <<EOF >> conftest.$ac_ext
9375 #if defined (__STDC__) && __STDC__
9376 # define lt_ptr_t void *
9377 #else
9378 # define lt_ptr_t char *
9379 # define const
9380 #endif
9381
9382 /* The mapping between symbol names and symbols. */
9383 const struct {
9384   const char *name;
9385   lt_ptr_t address;
9386 }
9387 lt_preloaded_symbols[] =
9388 {
9389 EOF
9390           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9391           cat <<\EOF >> conftest.$ac_ext
9392   {0, (lt_ptr_t) 0}
9393 };
9394
9395 #ifdef __cplusplus
9396 }
9397 #endif
9398 EOF
9399           # Now try linking the two files.
9400           mv conftest.$ac_objext conftstm.$ac_objext
9401           lt_save_LIBS="$LIBS"
9402           lt_save_CFLAGS="$CFLAGS"
9403           LIBS="conftstm.$ac_objext"
9404           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9405           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9406   (eval $ac_link) 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9410             pipe_works=yes
9411           fi
9412           LIBS="$lt_save_LIBS"
9413           CFLAGS="$lt_save_CFLAGS"
9414         else
9415           echo "cannot find nm_test_func in $nlist" >&5
9416         fi
9417       else
9418         echo "cannot find nm_test_var in $nlist" >&5
9419       fi
9420     else
9421       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9422     fi
9423   else
9424     echo "$progname: failed program was:" >&5
9425     cat conftest.$ac_ext >&5
9426   fi
9427   rm -f conftest* conftst*
9428
9429   # Do not use the global_symbol_pipe unless it works.
9430   if test "$pipe_works" = yes; then
9431     break
9432   else
9433     lt_cv_sys_global_symbol_pipe=
9434   fi
9435 done
9436
9437 fi
9438
9439 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9440   lt_cv_sys_global_symbol_to_cdecl=
9441 fi
9442 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9443   { echo "$as_me:$LINENO: result: failed" >&5
9444 echo "${ECHO_T}failed" >&6; }
9445 else
9446   { echo "$as_me:$LINENO: result: ok" >&5
9447 echo "${ECHO_T}ok" >&6; }
9448 fi
9449
9450
9451 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9452 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9453 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9457     libltdl_cv_preloaded_symbols=yes
9458   else
9459     libltdl_cv_preloaded_symbols=no
9460   fi
9461
9462 fi
9463 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9464 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9465 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9466
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_PRELOADED_SYMBOLS 1
9469 _ACEOF
9470
9471 fi
9472
9473 LIBADD_DL=
9474
9475 ac_ext=c
9476 ac_cpp='$CPP $CPPFLAGS'
9477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9480
9481
9482 { echo "$as_me:$LINENO: checking for shl_load" >&5
9483 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9484 if test "${ac_cv_func_shl_load+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9495 #define shl_load innocuous_shl_load
9496
9497 /* System header to define __stub macros and hopefully few prototypes,
9498     which can conflict with char shl_load (); below.
9499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500     <limits.h> exists even on freestanding compilers.  */
9501
9502 #ifdef __STDC__
9503 # include <limits.h>
9504 #else
9505 # include <assert.h>
9506 #endif
9507
9508 #undef shl_load
9509
9510 /* Override any GCC internal prototype to avoid an error.
9511    Use char because int might match the return type of a GCC
9512    builtin and then its argument prototype would still apply.  */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 char shl_load ();
9517 /* The GNU C library defines this for functions which it implements
9518     to always fail with ENOSYS.  Some functions are actually named
9519     something starting with __ and the normal name is an alias.  */
9520 #if defined __stub_shl_load || defined __stub___shl_load
9521 choke me
9522 #endif
9523
9524 int
9525 main ()
9526 {
9527 return shl_load ();
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9534 case "(($ac_try" in
9535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536   *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539   (eval "$ac_link") 2>conftest.er1
9540   ac_status=$?
9541   grep -v '^ *+' conftest.er1 >conftest.err
9542   rm -f conftest.er1
9543   cat conftest.err >&5
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); } &&
9546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9547   { (case "(($ac_try" in
9548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549   *) ac_try_echo=$ac_try;;
9550 esac
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552   (eval "$ac_try") 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); }; } &&
9556          { ac_try='test -s conftest$ac_exeext'
9557   { (case "(($ac_try" in
9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559   *) ac_try_echo=$ac_try;;
9560 esac
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562   (eval "$ac_try") 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; }; then
9566   ac_cv_func_shl_load=yes
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571         ac_cv_func_shl_load=no
9572 fi
9573
9574 rm -f core conftest.err conftest.$ac_objext \
9575       conftest$ac_exeext conftest.$ac_ext
9576 fi
9577 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9578 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9579 if test $ac_cv_func_shl_load = yes; then
9580
9581 cat >>confdefs.h <<\_ACEOF
9582 #define HAVE_SHL_LOAD 1
9583 _ACEOF
9584
9585 else
9586   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9587 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9588 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9589   echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591   ac_check_lib_save_LIBS=$LIBS
9592 LIBS="-ldld  $LIBS"
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h.  */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h.  */
9599
9600 /* Override any GCC internal prototype to avoid an error.
9601    Use char because int might match the return type of a GCC
9602    builtin and then its argument prototype would still apply.  */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char shl_load ();
9607 int
9608 main ()
9609 {
9610 return shl_load ();
9611   ;
9612   return 0;
9613 }
9614 _ACEOF
9615 rm -f conftest.$ac_objext conftest$ac_exeext
9616 if { (ac_try="$ac_link"
9617 case "(($ac_try" in
9618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619   *) ac_try_echo=$ac_try;;
9620 esac
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622   (eval "$ac_link") 2>conftest.er1
9623   ac_status=$?
9624   grep -v '^ *+' conftest.er1 >conftest.err
9625   rm -f conftest.er1
9626   cat conftest.err >&5
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); } &&
9629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9630   { (case "(($ac_try" in
9631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632   *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635   (eval "$ac_try") 2>&5
9636   ac_status=$?
9637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638   (exit $ac_status); }; } &&
9639          { ac_try='test -s conftest$ac_exeext'
9640   { (case "(($ac_try" in
9641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642   *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645   (eval "$ac_try") 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); }; }; then
9649   ac_cv_lib_dld_shl_load=yes
9650 else
9651   echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654         ac_cv_lib_dld_shl_load=no
9655 fi
9656
9657 rm -f core conftest.err conftest.$ac_objext \
9658       conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9660 fi
9661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9663 if test $ac_cv_lib_dld_shl_load = yes; then
9664
9665 cat >>confdefs.h <<\_ACEOF
9666 #define HAVE_SHL_LOAD 1
9667 _ACEOF
9668
9669         LIBADD_DL="$LIBADD_DL -ldld"
9670 else
9671   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676   ac_check_lib_save_LIBS=$LIBS
9677 LIBS="-ldl  $LIBS"
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h.  */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h.  */
9684
9685 /* Override any GCC internal prototype to avoid an error.
9686    Use char because int might match the return type of a GCC
9687    builtin and then its argument prototype would still apply.  */
9688 #ifdef __cplusplus
9689 extern "C"
9690 #endif
9691 char dlopen ();
9692 int
9693 main ()
9694 {
9695 return dlopen ();
9696   ;
9697   return 0;
9698 }
9699 _ACEOF
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9702 case "(($ac_try" in
9703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704   *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707   (eval "$ac_link") 2>conftest.er1
9708   ac_status=$?
9709   grep -v '^ *+' conftest.er1 >conftest.err
9710   rm -f conftest.er1
9711   cat conftest.err >&5
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); } &&
9714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9715   { (case "(($ac_try" in
9716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717   *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720   (eval "$ac_try") 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; } &&
9724          { ac_try='test -s conftest$ac_exeext'
9725   { (case "(($ac_try" in
9726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727   *) ac_try_echo=$ac_try;;
9728 esac
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730   (eval "$ac_try") 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   ac_cv_lib_dl_dlopen=yes
9735 else
9736   echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739         ac_cv_lib_dl_dlopen=no
9740 fi
9741
9742 rm -f core conftest.err conftest.$ac_objext \
9743       conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9745 fi
9746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9747 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9748 if test $ac_cv_lib_dl_dlopen = yes; then
9749
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_LIBDL 1
9752 _ACEOF
9753
9754                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9755 else
9756   cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h.  */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h.  */
9762 #if HAVE_DLFCN_H
9763 #  include <dlfcn.h>
9764 #endif
9765
9766 int
9767 main ()
9768 {
9769 dlopen(0, 0);
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_link") 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9789   { (case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_try") 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; } &&
9798          { ac_try='test -s conftest$ac_exeext'
9799   { (case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804   (eval "$ac_try") 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE_LIBDL 1
9811 _ACEOF
9812  libltdl_cv_func_dlopen="yes"
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9818 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9819 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   ac_check_lib_save_LIBS=$LIBS
9823 LIBS="-lsvld  $LIBS"
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h.  */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h.  */
9830
9831 /* Override any GCC internal prototype to avoid an error.
9832    Use char because int might match the return type of a GCC
9833    builtin and then its argument prototype would still apply.  */
9834 #ifdef __cplusplus
9835 extern "C"
9836 #endif
9837 char dlopen ();
9838 int
9839 main ()
9840 {
9841 return dlopen ();
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9848 case "(($ac_try" in
9849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850   *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853   (eval "$ac_link") 2>conftest.er1
9854   ac_status=$?
9855   grep -v '^ *+' conftest.er1 >conftest.err
9856   rm -f conftest.er1
9857   cat conftest.err >&5
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); } &&
9860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861   { (case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_try") 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; } &&
9870          { ac_try='test -s conftest$ac_exeext'
9871   { (case "(($ac_try" in
9872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873   *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876   (eval "$ac_try") 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_cv_lib_svld_dlopen=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885         ac_cv_lib_svld_dlopen=no
9886 fi
9887
9888 rm -f core conftest.err conftest.$ac_objext \
9889       conftest$ac_exeext conftest.$ac_ext
9890 LIBS=$ac_check_lib_save_LIBS
9891 fi
9892 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9893 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9894 if test $ac_cv_lib_svld_dlopen = yes; then
9895
9896 cat >>confdefs.h <<\_ACEOF
9897 #define HAVE_LIBDL 1
9898 _ACEOF
9899
9900                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9901 else
9902   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9903 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9904 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9905   echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907   ac_check_lib_save_LIBS=$LIBS
9908 LIBS="-ldld  $LIBS"
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h.  */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h.  */
9915
9916 /* Override any GCC internal prototype to avoid an error.
9917    Use char because int might match the return type of a GCC
9918    builtin and then its argument prototype would still apply.  */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char dld_link ();
9923 int
9924 main ()
9925 {
9926 return dld_link ();
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9933 case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938   (eval "$ac_link") 2>conftest.er1
9939   ac_status=$?
9940   grep -v '^ *+' conftest.er1 >conftest.err
9941   rm -f conftest.er1
9942   cat conftest.err >&5
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); } &&
9945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946   { (case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_try") 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; } &&
9955          { ac_try='test -s conftest$ac_exeext'
9956   { (case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961   (eval "$ac_try") 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; }; then
9965   ac_cv_lib_dld_dld_link=yes
9966 else
9967   echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970         ac_cv_lib_dld_dld_link=no
9971 fi
9972
9973 rm -f core conftest.err conftest.$ac_objext \
9974       conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9976 fi
9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9979 if test $ac_cv_lib_dld_dld_link = yes; then
9980
9981 cat >>confdefs.h <<\_ACEOF
9982 #define HAVE_DLD 1
9983 _ACEOF
9984
9985                 LIBADD_DL="$LIBADD_DL -ldld"
9986 else
9987   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9988 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9989 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10000 #define _dyld_func_lookup innocuous__dyld_func_lookup
10001
10002 /* System header to define __stub macros and hopefully few prototypes,
10003     which can conflict with char _dyld_func_lookup (); below.
10004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005     <limits.h> exists even on freestanding compilers.  */
10006
10007 #ifdef __STDC__
10008 # include <limits.h>
10009 #else
10010 # include <assert.h>
10011 #endif
10012
10013 #undef _dyld_func_lookup
10014
10015 /* Override any GCC internal prototype to avoid an error.
10016    Use char because int might match the return type of a GCC
10017    builtin and then its argument prototype would still apply.  */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 char _dyld_func_lookup ();
10022 /* The GNU C library defines this for functions which it implements
10023     to always fail with ENOSYS.  Some functions are actually named
10024     something starting with __ and the normal name is an alias.  */
10025 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10026 choke me
10027 #endif
10028
10029 int
10030 main ()
10031 {
10032 return _dyld_func_lookup ();
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044   (eval "$ac_link") 2>conftest.er1
10045   ac_status=$?
10046   grep -v '^ *+' conftest.er1 >conftest.err
10047   rm -f conftest.er1
10048   cat conftest.err >&5
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } &&
10051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10052   { (case "(($ac_try" in
10053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054   *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057   (eval "$ac_try") 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; } &&
10061          { ac_try='test -s conftest$ac_exeext'
10062   { (case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067   (eval "$ac_try") 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   ac_cv_func__dyld_func_lookup=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076         ac_cv_func__dyld_func_lookup=no
10077 fi
10078
10079 rm -f core conftest.err conftest.$ac_objext \
10080       conftest$ac_exeext conftest.$ac_ext
10081 fi
10082 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10083 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10084 if test $ac_cv_func__dyld_func_lookup = yes; then
10085
10086 cat >>confdefs.h <<\_ACEOF
10087 #define HAVE_DYLD 1
10088 _ACEOF
10089
10090 fi
10091
10092
10093 fi
10094
10095
10096 fi
10097
10098
10099 fi
10100
10101 rm -f core conftest.err conftest.$ac_objext \
10102       conftest$ac_exeext conftest.$ac_ext
10103
10104 fi
10105
10106
10107 fi
10108
10109
10110 fi
10111
10112
10113 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10114 then
10115   lt_save_LIBS="$LIBS"
10116   LIBS="$LIBS $LIBADD_DL"
10117
10118 for ac_func in dlerror
10119 do
10120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10124   echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126   cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10134 #define $ac_func innocuous_$ac_func
10135
10136 /* System header to define __stub macros and hopefully few prototypes,
10137     which can conflict with char $ac_func (); below.
10138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139     <limits.h> exists even on freestanding compilers.  */
10140
10141 #ifdef __STDC__
10142 # include <limits.h>
10143 #else
10144 # include <assert.h>
10145 #endif
10146
10147 #undef $ac_func
10148
10149 /* Override any GCC internal prototype to avoid an error.
10150    Use char because int might match the return type of a GCC
10151    builtin and then its argument prototype would still apply.  */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char $ac_func ();
10156 /* The GNU C library defines this for functions which it implements
10157     to always fail with ENOSYS.  Some functions are actually named
10158     something starting with __ and the normal name is an alias.  */
10159 #if defined __stub_$ac_func || defined __stub___$ac_func
10160 choke me
10161 #endif
10162
10163 int
10164 main ()
10165 {
10166 return $ac_func ();
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_link") 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10186   { (case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191   (eval "$ac_try") 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; } &&
10195          { ac_try='test -s conftest$ac_exeext'
10196   { (case "(($ac_try" in
10197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198   *) ac_try_echo=$ac_try;;
10199 esac
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201   (eval "$ac_try") 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; }; then
10205   eval "$as_ac_var=yes"
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210         eval "$as_ac_var=no"
10211 fi
10212
10213 rm -f core conftest.err conftest.$ac_objext \
10214       conftest$ac_exeext conftest.$ac_ext
10215 fi
10216 ac_res=`eval echo '${'$as_ac_var'}'`
10217                { echo "$as_me:$LINENO: result: $ac_res" >&5
10218 echo "${ECHO_T}$ac_res" >&6; }
10219 if test `eval echo '${'$as_ac_var'}'` = yes; then
10220   cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10222 _ACEOF
10223
10224 fi
10225 done
10226
10227   LIBS="$lt_save_LIBS"
10228 fi
10229 ac_ext=c
10230 ac_cpp='$CPP $CPPFLAGS'
10231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10234
10235
10236
10237 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10238 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10239 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   ac_cv_sys_symbol_underscore=no
10243   cat > conftest.$ac_ext <<EOF
10244 void nm_test_func(){}
10245 int main(){nm_test_func;return 0;}
10246 EOF
10247   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10248   (eval $ac_compile) 2>&5
10249   ac_status=$?
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); }; then
10252     # Now try to grab the symbols.
10253     ac_nlist=conftest.nm
10254     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10255   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } && test -s "$ac_nlist"; then
10259       # See whether the symbols have a leading underscore.
10260       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10261         ac_cv_sys_symbol_underscore=yes
10262       else
10263         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10264           :
10265         else
10266           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10267         fi
10268       fi
10269     else
10270       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10271     fi
10272   else
10273     echo "configure: failed program was:" >&5
10274     cat conftest.c >&5
10275   fi
10276   rm -rf conftest*
10277
10278 fi
10279 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10280 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10281
10282
10283 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10284   if test x"$libltdl_cv_func_dlopen" = xyes ||
10285      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10286         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10287 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10288 if test "${libltdl_cv_need_uscore+set}" = set; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291   libltdl_cv_need_uscore=unknown
10292           save_LIBS="$LIBS"
10293           LIBS="$LIBS $LIBADD_DL"
10294           if test "$cross_compiling" = yes; then :
10295   libltdl_cv_need_uscore=cross
10296 else
10297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298   lt_status=$lt_dlunknown
10299   cat > conftest.$ac_ext <<EOF
10300 #line 10300 "configure"
10301 #include "confdefs.h"
10302
10303 #if HAVE_DLFCN_H
10304 #include <dlfcn.h>
10305 #endif
10306
10307 #include <stdio.h>
10308
10309 #ifdef RTLD_GLOBAL
10310 #  define LT_DLGLOBAL           RTLD_GLOBAL
10311 #else
10312 #  ifdef DL_GLOBAL
10313 #    define LT_DLGLOBAL         DL_GLOBAL
10314 #  else
10315 #    define LT_DLGLOBAL         0
10316 #  endif
10317 #endif
10318
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320    find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10322 #  ifdef RTLD_LAZY
10323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10324 #  else
10325 #    ifdef DL_LAZY
10326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10327 #    else
10328 #      ifdef RTLD_NOW
10329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10330 #      else
10331 #        ifdef DL_NOW
10332 #          define LT_DLLAZY_OR_NOW      DL_NOW
10333 #        else
10334 #          define LT_DLLAZY_OR_NOW      0
10335 #        endif
10336 #      endif
10337 #    endif
10338 #  endif
10339 #endif
10340
10341 #ifdef __cplusplus
10342 extern "C" void exit (int);
10343 #endif
10344
10345 void fnord() { int i=42;}
10346 int main ()
10347 {
10348   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10349   int status = $lt_dlunknown;
10350
10351   if (self)
10352     {
10353       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10354       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10355       /* dlclose (self); */
10356     }
10357   else
10358     puts (dlerror ());
10359
10360     exit (status);
10361 }
10362 EOF
10363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364   (eval $ac_link) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10368     (./conftest; exit; ) >&5 2>/dev/null
10369     lt_status=$?
10370     case x$lt_status in
10371       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10372       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10373       x$lt_dlunknown|x*)  ;;
10374     esac
10375   else :
10376     # compilation failed
10377
10378   fi
10379 fi
10380 rm -fr conftest*
10381
10382           LIBS="$save_LIBS"
10383
10384 fi
10385 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10386 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10387   fi
10388 fi
10389
10390 if test x"$libltdl_cv_need_uscore" = xyes; then
10391
10392 cat >>confdefs.h <<\_ACEOF
10393 #define NEED_USCORE 1
10394 _ACEOF
10395
10396 fi
10397
10398
10399 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10400 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10401 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404   # PORTME does your system automatically load deplibs for dlopen?
10405   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10406   # For now, we just catch OSes we know something about -- in the
10407   # future, we'll try test this programmatically.
10408   libltdl_cv_sys_dlopen_deplibs=unknown
10409   case "$host_os" in
10410   aix3*|aix4.1.*|aix4.2.*)
10411     # Unknown whether this is true for these versions of AIX, but
10412     # we want this `case' here to explicitly catch those versions.
10413     libltdl_cv_sys_dlopen_deplibs=unknown
10414     ;;
10415   aix[45]*)
10416     libltdl_cv_sys_dlopen_deplibs=yes
10417     ;;
10418   darwin*)
10419     # Assuming the user has installed a libdl from somewhere, this is true
10420     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10421     libltdl_cv_sys_dlopen_deplibs=yes
10422     ;;
10423   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10424     # GNU and its variants, using gnu ld.so (Glibc)
10425     libltdl_cv_sys_dlopen_deplibs=yes
10426     ;;
10427   hpux10*|hpux11*)
10428     libltdl_cv_sys_dlopen_deplibs=yes
10429     ;;
10430   interix*)
10431     libltdl_cv_sys_dlopen_deplibs=yes
10432     ;;
10433   irix[12345]*|irix6.[01]*)
10434     # Catch all versions of IRIX before 6.2, and indicate that we don't
10435     # know how it worked for any of those versions.
10436     libltdl_cv_sys_dlopen_deplibs=unknown
10437     ;;
10438   irix*)
10439     # The case above catches anything before 6.2, and it's known that
10440     # at 6.2 and later dlopen does load deplibs.
10441     libltdl_cv_sys_dlopen_deplibs=yes
10442     ;;
10443   netbsd*)
10444     libltdl_cv_sys_dlopen_deplibs=yes
10445     ;;
10446   openbsd*)
10447     libltdl_cv_sys_dlopen_deplibs=yes
10448     ;;
10449   osf[1234]*)
10450     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10451     # it did *not* use an RPATH in a shared library to find objects the
10452     # library depends on, so we explicitly say `no'.
10453     libltdl_cv_sys_dlopen_deplibs=no
10454     ;;
10455   osf5.0|osf5.0a|osf5.1)
10456     # dlopen *does* load deplibs and with the right loader patch applied
10457     # it even uses RPATH in a shared library to search for shared objects
10458     # that the library depends on, but there's no easy way to know if that
10459     # patch is installed.  Since this is the case, all we can really
10460     # say is unknown -- it depends on the patch being installed.  If
10461     # it is, this changes to `yes'.  Without it, it would be `no'.
10462     libltdl_cv_sys_dlopen_deplibs=unknown
10463     ;;
10464   osf*)
10465     # the two cases above should catch all versions of osf <= 5.1.  Read
10466     # the comments above for what we know about them.
10467     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10468     # is used to find them so we can finally say `yes'.
10469     libltdl_cv_sys_dlopen_deplibs=yes
10470     ;;
10471   solaris*)
10472     libltdl_cv_sys_dlopen_deplibs=yes
10473     ;;
10474   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10475     libltdl_cv_sys_dlopen_deplibs=yes
10476     ;;
10477   esac
10478
10479 fi
10480 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10481 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10482 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10483
10484 cat >>confdefs.h <<\_ACEOF
10485 #define LTDL_DLOPEN_DEPLIBS 1
10486 _ACEOF
10487
10488 fi
10489
10490
10491 for ac_header in argz.h
10492 do
10493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10498   echo $ECHO_N "(cached) $ECHO_C" >&6
10499 fi
10500 ac_res=`eval echo '${'$as_ac_Header'}'`
10501                { echo "$as_me:$LINENO: result: $ac_res" >&5
10502 echo "${ECHO_T}$ac_res" >&6; }
10503 else
10504   # Is the header compilable?
10505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513 $ac_includes_default
10514 #include <$ac_header>
10515 _ACEOF
10516 rm -f conftest.$ac_objext
10517 if { (ac_try="$ac_compile"
10518 case "(($ac_try" in
10519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520   *) ac_try_echo=$ac_try;;
10521 esac
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523   (eval "$ac_compile") 2>conftest.er1
10524   ac_status=$?
10525   grep -v '^ *+' conftest.er1 >conftest.err
10526   rm -f conftest.er1
10527   cat conftest.err >&5
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); } &&
10530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10531   { (case "(($ac_try" in
10532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533   *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536   (eval "$ac_try") 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); }; } &&
10540          { ac_try='test -s conftest.$ac_objext'
10541   { (case "(($ac_try" in
10542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543   *) ac_try_echo=$ac_try;;
10544 esac
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546   (eval "$ac_try") 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; }; then
10550   ac_header_compiler=yes
10551 else
10552   echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555         ac_header_compiler=no
10556 fi
10557
10558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560 echo "${ECHO_T}$ac_header_compiler" >&6; }
10561
10562 # Is the header present?
10563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h.  */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h.  */
10571 #include <$ac_header>
10572 _ACEOF
10573 if { (ac_try="$ac_cpp conftest.$ac_ext"
10574 case "(($ac_try" in
10575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576   *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10580   ac_status=$?
10581   grep -v '^ *+' conftest.er1 >conftest.err
10582   rm -f conftest.er1
10583   cat conftest.err >&5
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } >/dev/null; then
10586   if test -s conftest.err; then
10587     ac_cpp_err=$ac_c_preproc_warn_flag
10588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10589   else
10590     ac_cpp_err=
10591   fi
10592 else
10593   ac_cpp_err=yes
10594 fi
10595 if test -z "$ac_cpp_err"; then
10596   ac_header_preproc=yes
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601   ac_header_preproc=no
10602 fi
10603
10604 rm -f conftest.err conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10606 echo "${ECHO_T}$ac_header_preproc" >&6; }
10607
10608 # So?  What about this header?
10609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10610   yes:no: )
10611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10615     ac_header_preproc=yes
10616     ;;
10617   no:yes:* )
10618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10630     ( cat <<\_ASBOX
10631 ## ------------------------------ ##
10632 ## Report this to bugs@yourdomain ##
10633 ## ------------------------------ ##
10634 _ASBOX
10635      ) | sed "s/^/$as_me: WARNING:     /" >&2
10636     ;;
10637 esac
10638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   eval "$as_ac_Header=\$ac_header_preproc"
10644 fi
10645 ac_res=`eval echo '${'$as_ac_Header'}'`
10646                { echo "$as_me:$LINENO: result: $ac_res" >&5
10647 echo "${ECHO_T}$ac_res" >&6; }
10648
10649 fi
10650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10651   cat >>confdefs.h <<_ACEOF
10652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10653 _ACEOF
10654
10655 fi
10656
10657 done
10658
10659
10660 { echo "$as_me:$LINENO: checking for error_t" >&5
10661 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10662 if test "${ac_cv_type_error_t+set}" = set; then
10663   echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665   cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h.  */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h.  */
10671 #if HAVE_ARGZ_H
10672 #  include <argz.h>
10673 #endif
10674
10675 typedef error_t ac__type_new_;
10676 int
10677 main ()
10678 {
10679 if ((ac__type_new_ *) 0)
10680   return 0;
10681 if (sizeof (ac__type_new_))
10682   return 0;
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (ac_try="$ac_compile"
10689 case "(($ac_try" in
10690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691   *) ac_try_echo=$ac_try;;
10692 esac
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694   (eval "$ac_compile") 2>conftest.er1
10695   ac_status=$?
10696   grep -v '^ *+' conftest.er1 >conftest.err
10697   rm -f conftest.er1
10698   cat conftest.err >&5
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } &&
10701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702   { (case "(($ac_try" in
10703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704   *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707   (eval "$ac_try") 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; } &&
10711          { ac_try='test -s conftest.$ac_objext'
10712   { (case "(($ac_try" in
10713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714   *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717   (eval "$ac_try") 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; }; then
10721   ac_cv_type_error_t=yes
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726         ac_cv_type_error_t=no
10727 fi
10728
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 fi
10731 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10732 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10733 if test $ac_cv_type_error_t = yes; then
10734
10735 cat >>confdefs.h <<_ACEOF
10736 #define HAVE_ERROR_T 1
10737 _ACEOF
10738
10739
10740 else
10741
10742 cat >>confdefs.h <<\_ACEOF
10743 #define error_t int
10744 _ACEOF
10745
10746 fi
10747
10748
10749
10750
10751
10752
10753
10754 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10755 do
10756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10760   echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762   cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h.  */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h.  */
10768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10770 #define $ac_func innocuous_$ac_func
10771
10772 /* System header to define __stub macros and hopefully few prototypes,
10773     which can conflict with char $ac_func (); below.
10774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10775     <limits.h> exists even on freestanding compilers.  */
10776
10777 #ifdef __STDC__
10778 # include <limits.h>
10779 #else
10780 # include <assert.h>
10781 #endif
10782
10783 #undef $ac_func
10784
10785 /* Override any GCC internal prototype to avoid an error.
10786    Use char because int might match the return type of a GCC
10787    builtin and then its argument prototype would still apply.  */
10788 #ifdef __cplusplus
10789 extern "C"
10790 #endif
10791 char $ac_func ();
10792 /* The GNU C library defines this for functions which it implements
10793     to always fail with ENOSYS.  Some functions are actually named
10794     something starting with __ and the normal name is an alias.  */
10795 #if defined __stub_$ac_func || defined __stub___$ac_func
10796 choke me
10797 #endif
10798
10799 int
10800 main ()
10801 {
10802 return $ac_func ();
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (ac_try="$ac_link"
10809 case "(($ac_try" in
10810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811   *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814   (eval "$ac_link") 2>conftest.er1
10815   ac_status=$?
10816   grep -v '^ *+' conftest.er1 >conftest.err
10817   rm -f conftest.er1
10818   cat conftest.err >&5
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } &&
10821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10822   { (case "(($ac_try" in
10823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824   *) ac_try_echo=$ac_try;;
10825 esac
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827   (eval "$ac_try") 2>&5
10828   ac_status=$?
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); }; } &&
10831          { ac_try='test -s conftest$ac_exeext'
10832   { (case "(($ac_try" in
10833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834   *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837   (eval "$ac_try") 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   eval "$as_ac_var=yes"
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846         eval "$as_ac_var=no"
10847 fi
10848
10849 rm -f core conftest.err conftest.$ac_objext \
10850       conftest$ac_exeext conftest.$ac_ext
10851 fi
10852 ac_res=`eval echo '${'$as_ac_var'}'`
10853                { echo "$as_me:$LINENO: result: $ac_res" >&5
10854 echo "${ECHO_T}$ac_res" >&6; }
10855 if test `eval echo '${'$as_ac_var'}'` = yes; then
10856   cat >>confdefs.h <<_ACEOF
10857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10858 _ACEOF
10859
10860 fi
10861 done
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10891                   stdio.h unistd.h
10892 do
10893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10895   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10898   echo $ECHO_N "(cached) $ECHO_C" >&6
10899 fi
10900 ac_res=`eval echo '${'$as_ac_Header'}'`
10901                { echo "$as_me:$LINENO: result: $ac_res" >&5
10902 echo "${ECHO_T}$ac_res" >&6; }
10903 else
10904   # Is the header compilable?
10905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 $ac_includes_default
10914 #include <$ac_header>
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_compile") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } &&
10930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931   { (case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_try") 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; } &&
10940          { ac_try='test -s conftest.$ac_objext'
10941   { (case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_try") 2>&5
10947   ac_status=$?
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); }; }; then
10950   ac_header_compiler=yes
10951 else
10952   echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955         ac_header_compiler=no
10956 fi
10957
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10960 echo "${ECHO_T}$ac_header_compiler" >&6; }
10961
10962 # Is the header present?
10963 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971 #include <$ac_header>
10972 _ACEOF
10973 if { (ac_try="$ac_cpp conftest.$ac_ext"
10974 case "(($ac_try" in
10975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976   *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10980   ac_status=$?
10981   grep -v '^ *+' conftest.er1 >conftest.err
10982   rm -f conftest.er1
10983   cat conftest.err >&5
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); } >/dev/null; then
10986   if test -s conftest.err; then
10987     ac_cpp_err=$ac_c_preproc_warn_flag
10988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10989   else
10990     ac_cpp_err=
10991   fi
10992 else
10993   ac_cpp_err=yes
10994 fi
10995 if test -z "$ac_cpp_err"; then
10996   ac_header_preproc=yes
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001   ac_header_preproc=no
11002 fi
11003
11004 rm -f conftest.err conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11006 echo "${ECHO_T}$ac_header_preproc" >&6; }
11007
11008 # So?  What about this header?
11009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11010   yes:no: )
11011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11015     ac_header_preproc=yes
11016     ;;
11017   no:yes:* )
11018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11030     ( cat <<\_ASBOX
11031 ## ------------------------------ ##
11032 ## Report this to bugs@yourdomain ##
11033 ## ------------------------------ ##
11034 _ASBOX
11035      ) | sed "s/^/$as_me: WARNING:     /" >&2
11036     ;;
11037 esac
11038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11041   echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043   eval "$as_ac_Header=\$ac_header_preproc"
11044 fi
11045 ac_res=`eval echo '${'$as_ac_Header'}'`
11046                { echo "$as_me:$LINENO: result: $ac_res" >&5
11047 echo "${ECHO_T}$ac_res" >&6; }
11048
11049 fi
11050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11051   cat >>confdefs.h <<_ACEOF
11052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11053 _ACEOF
11054
11055 fi
11056
11057 done
11058
11059
11060
11061
11062
11063 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11064 do
11065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11067   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 fi
11072 ac_res=`eval echo '${'$as_ac_Header'}'`
11073                { echo "$as_me:$LINENO: result: $ac_res" >&5
11074 echo "${ECHO_T}$ac_res" >&6; }
11075 else
11076   # Is the header compilable?
11077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h.  */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h.  */
11085 $ac_includes_default
11086 #include <$ac_header>
11087 _ACEOF
11088 rm -f conftest.$ac_objext
11089 if { (ac_try="$ac_compile"
11090 case "(($ac_try" in
11091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092   *) ac_try_echo=$ac_try;;
11093 esac
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095   (eval "$ac_compile") 2>conftest.er1
11096   ac_status=$?
11097   grep -v '^ *+' conftest.er1 >conftest.err
11098   rm -f conftest.er1
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } &&
11102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11103   { (case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108   (eval "$ac_try") 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); }; } &&
11112          { ac_try='test -s conftest.$ac_objext'
11113   { (case "(($ac_try" in
11114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115   *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118   (eval "$ac_try") 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }; }; then
11122   ac_header_compiler=yes
11123 else
11124   echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127         ac_header_compiler=no
11128 fi
11129
11130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11132 echo "${ECHO_T}$ac_header_compiler" >&6; }
11133
11134 # Is the header present?
11135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11137 cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h.  */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h.  */
11143 #include <$ac_header>
11144 _ACEOF
11145 if { (ac_try="$ac_cpp conftest.$ac_ext"
11146 case "(($ac_try" in
11147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148   *) ac_try_echo=$ac_try;;
11149 esac
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11152   ac_status=$?
11153   grep -v '^ *+' conftest.er1 >conftest.err
11154   rm -f conftest.er1
11155   cat conftest.err >&5
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); } >/dev/null; then
11158   if test -s conftest.err; then
11159     ac_cpp_err=$ac_c_preproc_warn_flag
11160     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11161   else
11162     ac_cpp_err=
11163   fi
11164 else
11165   ac_cpp_err=yes
11166 fi
11167 if test -z "$ac_cpp_err"; then
11168   ac_header_preproc=yes
11169 else
11170   echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173   ac_header_preproc=no
11174 fi
11175
11176 rm -f conftest.err conftest.$ac_ext
11177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11178 echo "${ECHO_T}$ac_header_preproc" >&6; }
11179
11180 # So?  What about this header?
11181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11182   yes:no: )
11183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11187     ac_header_preproc=yes
11188     ;;
11189   no:yes:* )
11190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11202     ( cat <<\_ASBOX
11203 ## ------------------------------ ##
11204 ## Report this to bugs@yourdomain ##
11205 ## ------------------------------ ##
11206 _ASBOX
11207      ) | sed "s/^/$as_me: WARNING:     /" >&2
11208     ;;
11209 esac
11210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11213   echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215   eval "$as_ac_Header=\$ac_header_preproc"
11216 fi
11217 ac_res=`eval echo '${'$as_ac_Header'}'`
11218                { echo "$as_me:$LINENO: result: $ac_res" >&5
11219 echo "${ECHO_T}$ac_res" >&6; }
11220
11221 fi
11222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11223   cat >>confdefs.h <<_ACEOF
11224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11225 _ACEOF
11226
11227 fi
11228
11229 done
11230
11231
11232
11233 for ac_header in string.h strings.h
11234 do
11235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 fi
11242 ac_res=`eval echo '${'$as_ac_Header'}'`
11243                { echo "$as_me:$LINENO: result: $ac_res" >&5
11244 echo "${ECHO_T}$ac_res" >&6; }
11245 else
11246   # Is the header compilable?
11247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 $ac_includes_default
11256 #include <$ac_header>
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262   *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265   (eval "$ac_compile") 2>conftest.er1
11266   ac_status=$?
11267   grep -v '^ *+' conftest.er1 >conftest.err
11268   rm -f conftest.er1
11269   cat conftest.err >&5
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273   { (case "(($ac_try" in
11274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275   *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278   (eval "$ac_try") 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; } &&
11282          { ac_try='test -s conftest.$ac_objext'
11283   { (case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288   (eval "$ac_try") 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }; then
11292   ac_header_compiler=yes
11293 else
11294   echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297         ac_header_compiler=no
11298 fi
11299
11300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11302 echo "${ECHO_T}$ac_header_compiler" >&6; }
11303
11304 # Is the header present?
11305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h.  */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h.  */
11313 #include <$ac_header>
11314 _ACEOF
11315 if { (ac_try="$ac_cpp conftest.$ac_ext"
11316 case "(($ac_try" in
11317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318   *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11322   ac_status=$?
11323   grep -v '^ *+' conftest.er1 >conftest.err
11324   rm -f conftest.er1
11325   cat conftest.err >&5
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } >/dev/null; then
11328   if test -s conftest.err; then
11329     ac_cpp_err=$ac_c_preproc_warn_flag
11330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331   else
11332     ac_cpp_err=
11333   fi
11334 else
11335   ac_cpp_err=yes
11336 fi
11337 if test -z "$ac_cpp_err"; then
11338   ac_header_preproc=yes
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343   ac_header_preproc=no
11344 fi
11345
11346 rm -f conftest.err conftest.$ac_ext
11347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348 echo "${ECHO_T}$ac_header_preproc" >&6; }
11349
11350 # So?  What about this header?
11351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352   yes:no: )
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11357     ac_header_preproc=yes
11358     ;;
11359   no:yes:* )
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11372     ( cat <<\_ASBOX
11373 ## ------------------------------ ##
11374 ## Report this to bugs@yourdomain ##
11375 ## ------------------------------ ##
11376 _ASBOX
11377      ) | sed "s/^/$as_me: WARNING:     /" >&2
11378     ;;
11379 esac
11380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   eval "$as_ac_Header=\$ac_header_preproc"
11386 fi
11387 ac_res=`eval echo '${'$as_ac_Header'}'`
11388                { echo "$as_me:$LINENO: result: $ac_res" >&5
11389 echo "${ECHO_T}$ac_res" >&6; }
11390
11391 fi
11392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393   cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395 _ACEOF
11396  break
11397 fi
11398
11399 done
11400
11401
11402
11403
11404 for ac_func in strchr index
11405 do
11406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412   cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h.  */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h.  */
11418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11420 #define $ac_func innocuous_$ac_func
11421
11422 /* System header to define __stub macros and hopefully few prototypes,
11423     which can conflict with char $ac_func (); below.
11424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11425     <limits.h> exists even on freestanding compilers.  */
11426
11427 #ifdef __STDC__
11428 # include <limits.h>
11429 #else
11430 # include <assert.h>
11431 #endif
11432
11433 #undef $ac_func
11434
11435 /* Override any GCC internal prototype to avoid an error.
11436    Use char because int might match the return type of a GCC
11437    builtin and then its argument prototype would still apply.  */
11438 #ifdef __cplusplus
11439 extern "C"
11440 #endif
11441 char $ac_func ();
11442 /* The GNU C library defines this for functions which it implements
11443     to always fail with ENOSYS.  Some functions are actually named
11444     something starting with __ and the normal name is an alias.  */
11445 #if defined __stub_$ac_func || defined __stub___$ac_func
11446 choke me
11447 #endif
11448
11449 int
11450 main ()
11451 {
11452 return $ac_func ();
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (ac_try="$ac_link"
11459 case "(($ac_try" in
11460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461   *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464   (eval "$ac_link") 2>conftest.er1
11465   ac_status=$?
11466   grep -v '^ *+' conftest.er1 >conftest.err
11467   rm -f conftest.er1
11468   cat conftest.err >&5
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); } &&
11471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11472   { (case "(($ac_try" in
11473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474   *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477   (eval "$ac_try") 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; } &&
11481          { ac_try='test -s conftest$ac_exeext'
11482   { (case "(($ac_try" in
11483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484   *) ac_try_echo=$ac_try;;
11485 esac
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487   (eval "$ac_try") 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }; }; then
11491   eval "$as_ac_var=yes"
11492 else
11493   echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11495
11496         eval "$as_ac_var=no"
11497 fi
11498
11499 rm -f core conftest.err conftest.$ac_objext \
11500       conftest$ac_exeext conftest.$ac_ext
11501 fi
11502 ac_res=`eval echo '${'$as_ac_var'}'`
11503                { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11505 if test `eval echo '${'$as_ac_var'}'` = yes; then
11506   cat >>confdefs.h <<_ACEOF
11507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11508 _ACEOF
11509  break
11510 fi
11511 done
11512
11513
11514
11515 for ac_func in strrchr rindex
11516 do
11517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11521   echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523   cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11531 #define $ac_func innocuous_$ac_func
11532
11533 /* System header to define __stub macros and hopefully few prototypes,
11534     which can conflict with char $ac_func (); below.
11535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11536     <limits.h> exists even on freestanding compilers.  */
11537
11538 #ifdef __STDC__
11539 # include <limits.h>
11540 #else
11541 # include <assert.h>
11542 #endif
11543
11544 #undef $ac_func
11545
11546 /* Override any GCC internal prototype to avoid an error.
11547    Use char because int might match the return type of a GCC
11548    builtin and then its argument prototype would still apply.  */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char $ac_func ();
11553 /* The GNU C library defines this for functions which it implements
11554     to always fail with ENOSYS.  Some functions are actually named
11555     something starting with __ and the normal name is an alias.  */
11556 #if defined __stub_$ac_func || defined __stub___$ac_func
11557 choke me
11558 #endif
11559
11560 int
11561 main ()
11562 {
11563 return $ac_func ();
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (ac_try="$ac_link"
11570 case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575   (eval "$ac_link") 2>conftest.er1
11576   ac_status=$?
11577   grep -v '^ *+' conftest.er1 >conftest.err
11578   rm -f conftest.er1
11579   cat conftest.err >&5
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); } &&
11582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583   { (case "(($ac_try" in
11584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585   *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588   (eval "$ac_try") 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); }; } &&
11592          { ac_try='test -s conftest$ac_exeext'
11593   { (case "(($ac_try" in
11594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595   *) ac_try_echo=$ac_try;;
11596 esac
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598   (eval "$ac_try") 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); }; }; then
11602   eval "$as_ac_var=yes"
11603 else
11604   echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607         eval "$as_ac_var=no"
11608 fi
11609
11610 rm -f core conftest.err conftest.$ac_objext \
11611       conftest$ac_exeext conftest.$ac_ext
11612 fi
11613 ac_res=`eval echo '${'$as_ac_var'}'`
11614                { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11616 if test `eval echo '${'$as_ac_var'}'` = yes; then
11617   cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11619 _ACEOF
11620  break
11621 fi
11622 done
11623
11624
11625
11626 for ac_func in memcpy bcopy
11627 do
11628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634   cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h.  */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h.  */
11640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11642 #define $ac_func innocuous_$ac_func
11643
11644 /* System header to define __stub macros and hopefully few prototypes,
11645     which can conflict with char $ac_func (); below.
11646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647     <limits.h> exists even on freestanding compilers.  */
11648
11649 #ifdef __STDC__
11650 # include <limits.h>
11651 #else
11652 # include <assert.h>
11653 #endif
11654
11655 #undef $ac_func
11656
11657 /* Override any GCC internal prototype to avoid an error.
11658    Use char because int might match the return type of a GCC
11659    builtin and then its argument prototype would still apply.  */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 char $ac_func ();
11664 /* The GNU C library defines this for functions which it implements
11665     to always fail with ENOSYS.  Some functions are actually named
11666     something starting with __ and the normal name is an alias.  */
11667 #if defined __stub_$ac_func || defined __stub___$ac_func
11668 choke me
11669 #endif
11670
11671 int
11672 main ()
11673 {
11674 return $ac_func ();
11675   ;
11676   return 0;
11677 }
11678 _ACEOF
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (ac_try="$ac_link"
11681 case "(($ac_try" in
11682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683   *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686   (eval "$ac_link") 2>conftest.er1
11687   ac_status=$?
11688   grep -v '^ *+' conftest.er1 >conftest.err
11689   rm -f conftest.er1
11690   cat conftest.err >&5
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } &&
11693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11694   { (case "(($ac_try" in
11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696   *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699   (eval "$ac_try") 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; } &&
11703          { ac_try='test -s conftest$ac_exeext'
11704   { (case "(($ac_try" in
11705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706   *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709   (eval "$ac_try") 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   eval "$as_ac_var=yes"
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718         eval "$as_ac_var=no"
11719 fi
11720
11721 rm -f core conftest.err conftest.$ac_objext \
11722       conftest$ac_exeext conftest.$ac_ext
11723 fi
11724 ac_res=`eval echo '${'$as_ac_var'}'`
11725                { echo "$as_me:$LINENO: result: $ac_res" >&5
11726 echo "${ECHO_T}$ac_res" >&6; }
11727 if test `eval echo '${'$as_ac_var'}'` = yes; then
11728   cat >>confdefs.h <<_ACEOF
11729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11730 _ACEOF
11731  break
11732 fi
11733 done
11734
11735
11736
11737 for ac_func in memmove strcmp
11738 do
11739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11753 #define $ac_func innocuous_$ac_func
11754
11755 /* System header to define __stub macros and hopefully few prototypes,
11756     which can conflict with char $ac_func (); below.
11757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758     <limits.h> exists even on freestanding compilers.  */
11759
11760 #ifdef __STDC__
11761 # include <limits.h>
11762 #else
11763 # include <assert.h>
11764 #endif
11765
11766 #undef $ac_func
11767
11768 /* Override any GCC internal prototype to avoid an error.
11769    Use char because int might match the return type of a GCC
11770    builtin and then its argument prototype would still apply.  */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char $ac_func ();
11775 /* The GNU C library defines this for functions which it implements
11776     to always fail with ENOSYS.  Some functions are actually named
11777     something starting with __ and the normal name is an alias.  */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11779 choke me
11780 #endif
11781
11782 int
11783 main ()
11784 {
11785 return $ac_func ();
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_link") 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } &&
11804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805   { (case "(($ac_try" in
11806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807   *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810   (eval "$ac_try") 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }; } &&
11814          { ac_try='test -s conftest$ac_exeext'
11815   { (case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820   (eval "$ac_try") 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824   eval "$as_ac_var=yes"
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829         eval "$as_ac_var=no"
11830 fi
11831
11832 rm -f core conftest.err conftest.$ac_objext \
11833       conftest$ac_exeext conftest.$ac_ext
11834 fi
11835 ac_res=`eval echo '${'$as_ac_var'}'`
11836                { echo "$as_me:$LINENO: result: $ac_res" >&5
11837 echo "${ECHO_T}$ac_res" >&6; }
11838 if test `eval echo '${'$as_ac_var'}'` = yes; then
11839   cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11841 _ACEOF
11842
11843 fi
11844 done
11845
11846
11847
11848
11849 for ac_func in closedir opendir readdir
11850 do
11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855   echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857   cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11865 #define $ac_func innocuous_$ac_func
11866
11867 /* System header to define __stub macros and hopefully few prototypes,
11868     which can conflict with char $ac_func (); below.
11869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870     <limits.h> exists even on freestanding compilers.  */
11871
11872 #ifdef __STDC__
11873 # include <limits.h>
11874 #else
11875 # include <assert.h>
11876 #endif
11877
11878 #undef $ac_func
11879
11880 /* Override any GCC internal prototype to avoid an error.
11881    Use char because int might match the return type of a GCC
11882    builtin and then its argument prototype would still apply.  */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char $ac_func ();
11887 /* The GNU C library defines this for functions which it implements
11888     to always fail with ENOSYS.  Some functions are actually named
11889     something starting with __ and the normal name is an alias.  */
11890 #if defined __stub_$ac_func || defined __stub___$ac_func
11891 choke me
11892 #endif
11893
11894 int
11895 main ()
11896 {
11897 return $ac_func ();
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906   *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909   (eval "$ac_link") 2>conftest.er1
11910   ac_status=$?
11911   grep -v '^ *+' conftest.er1 >conftest.err
11912   rm -f conftest.er1
11913   cat conftest.err >&5
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917   { (case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922   (eval "$ac_try") 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; } &&
11926          { ac_try='test -s conftest$ac_exeext'
11927   { (case "(($ac_try" in
11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929   *) ac_try_echo=$ac_try;;
11930 esac
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932   (eval "$ac_try") 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; }; then
11936   eval "$as_ac_var=yes"
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941         eval "$as_ac_var=no"
11942 fi
11943
11944 rm -f core conftest.err conftest.$ac_objext \
11945       conftest$ac_exeext conftest.$ac_ext
11946 fi
11947 ac_res=`eval echo '${'$as_ac_var'}'`
11948                { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11950 if test `eval echo '${'$as_ac_var'}'` = yes; then
11951   cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953 _ACEOF
11954
11955 fi
11956 done
11957
11958
11959
11960 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11961 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11962
11963 ICC=no
11964 IXX=no
11965 case $CC in
11966   icc*|icpc*)
11967     ICC=yes
11968     IXX=yes
11969     ;;
11970    *)
11971     ;;
11972 esac
11973
11974 if test "$GCC" != "yes" && test "$ICC" != "yes"
11975 then
11976   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11977 echo "$as_me: error: gcc|icc required but not found" >&2;}
11978    { (exit 1); exit 1; }; }
11979 fi
11980
11981 if test "$GXX" != "yes" && test "$IXX" != "yes"
11982 then
11983   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11984 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11985    { (exit 1); exit 1; }; }
11986 fi
11987
11988 if test "$GCC" = "yes"
11989 then
11990   cat >conftest.$ac_ext <<_ACEOF
11991 #if !defined(__GNUC__) || __GNUC__ < 3
11992 #error Unsupported GCC version
11993 #endif
11994
11995 _ACEOF
11996 rm -f conftest.$ac_objext
11997 if { (ac_try="$ac_compile"
11998 case "(($ac_try" in
11999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000   *) ac_try_echo=$ac_try;;
12001 esac
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003   (eval "$ac_compile") 2>conftest.er1
12004   ac_status=$?
12005   grep -v '^ *+' conftest.er1 >conftest.err
12006   rm -f conftest.er1
12007   cat conftest.err >&5
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); } &&
12010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12011   { (case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_try") 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; } &&
12020          { ac_try='test -s conftest.$ac_objext'
12021   { (case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026   (eval "$ac_try") 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; }; then
12030   :
12031 else
12032   echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12034
12035         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12036 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12037    { (exit 1); exit 1; }; }
12038 fi
12039
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 fi
12042
12043 if test -z "$llvm_cv_gnu_make_command"
12044 then
12045   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12046 echo "$as_me: error: GNU Make required but not found" >&2;}
12047    { (exit 1); exit 1; }; }
12048 fi
12049
12050 { echo "$as_me:$LINENO: result: ok" >&5
12051 echo "${ECHO_T}ok" >&6; }
12052
12053 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12054 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12055 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12056
12057 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12058
12059 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12060
12061 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12062 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12063
12064
12065
12066 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12067 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12068 if test "${ac_cv_lib_m_sin+set}" = set; then
12069   echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071   ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lm  $LIBS"
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079
12080 /* Override any GCC internal prototype to avoid an error.
12081    Use char because int might match the return type of a GCC
12082    builtin and then its argument prototype would still apply.  */
12083 #ifdef __cplusplus
12084 extern "C"
12085 #endif
12086 char sin ();
12087 int
12088 main ()
12089 {
12090 return sin ();
12091   ;
12092   return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (ac_try="$ac_link"
12097 case "(($ac_try" in
12098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099   *) ac_try_echo=$ac_try;;
12100 esac
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102   (eval "$ac_link") 2>conftest.er1
12103   ac_status=$?
12104   grep -v '^ *+' conftest.er1 >conftest.err
12105   rm -f conftest.er1
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } &&
12109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12110   { (case "(($ac_try" in
12111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112   *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115   (eval "$ac_try") 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; } &&
12119          { ac_try='test -s conftest$ac_exeext'
12120   { (case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_try") 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; }; then
12129   ac_cv_lib_m_sin=yes
12130 else
12131   echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12133
12134         ac_cv_lib_m_sin=no
12135 fi
12136
12137 rm -f core conftest.err conftest.$ac_objext \
12138       conftest$ac_exeext conftest.$ac_ext
12139 LIBS=$ac_check_lib_save_LIBS
12140 fi
12141 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12142 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12143 if test $ac_cv_lib_m_sin = yes; then
12144   cat >>confdefs.h <<_ACEOF
12145 #define HAVE_LIBM 1
12146 _ACEOF
12147
12148   LIBS="-lm $LIBS"
12149
12150 fi
12151
12152 if test "$llvm_cv_os_type" = "MingW" ; then
12153
12154 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12155 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12156 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-limagehlp  $LIBS"
12161 cat >conftest.$ac_ext <<_ACEOF
12162 /* confdefs.h.  */
12163 _ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h.  */
12167
12168
12169 int
12170 main ()
12171 {
12172 return main ();
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (ac_try="$ac_link"
12179 case "(($ac_try" in
12180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181   *) ac_try_echo=$ac_try;;
12182 esac
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184   (eval "$ac_link") 2>conftest.er1
12185   ac_status=$?
12186   grep -v '^ *+' conftest.er1 >conftest.err
12187   rm -f conftest.er1
12188   cat conftest.err >&5
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); } &&
12191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12192   { (case "(($ac_try" in
12193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194   *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197   (eval "$ac_try") 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); }; } &&
12201          { ac_try='test -s conftest$ac_exeext'
12202   { (case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_try") 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; }; then
12211   ac_cv_lib_imagehlp_main=yes
12212 else
12213   echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216         ac_cv_lib_imagehlp_main=no
12217 fi
12218
12219 rm -f core conftest.err conftest.$ac_objext \
12220       conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12222 fi
12223 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12224 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12225 if test $ac_cv_lib_imagehlp_main = yes; then
12226   cat >>confdefs.h <<_ACEOF
12227 #define HAVE_LIBIMAGEHLP 1
12228 _ACEOF
12229
12230   LIBS="-limagehlp $LIBS"
12231
12232 fi
12233
12234
12235 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12236 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12237 if test "${ac_cv_lib_psapi_main+set}" = set; then
12238   echo $ECHO_N "(cached) $ECHO_C" >&6
12239 else
12240   ac_check_lib_save_LIBS=$LIBS
12241 LIBS="-lpsapi  $LIBS"
12242 cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h.  */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h.  */
12248
12249
12250 int
12251 main ()
12252 {
12253 return main ();
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262   *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265   (eval "$ac_link") 2>conftest.er1
12266   ac_status=$?
12267   grep -v '^ *+' conftest.er1 >conftest.err
12268   rm -f conftest.er1
12269   cat conftest.err >&5
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); } &&
12272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12273   { (case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278   (eval "$ac_try") 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; } &&
12282          { ac_try='test -s conftest$ac_exeext'
12283   { (case "(($ac_try" in
12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285   *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288   (eval "$ac_try") 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; }; then
12292   ac_cv_lib_psapi_main=yes
12293 else
12294   echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297         ac_cv_lib_psapi_main=no
12298 fi
12299
12300 rm -f core conftest.err conftest.$ac_objext \
12301       conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12303 fi
12304 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12305 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12306 if test $ac_cv_lib_psapi_main = yes; then
12307   cat >>confdefs.h <<_ACEOF
12308 #define HAVE_LIBPSAPI 1
12309 _ACEOF
12310
12311   LIBS="-lpsapi $LIBS"
12312
12313 fi
12314
12315 fi
12316
12317 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12318 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12319 if test "${ac_cv_search_dlopen+set}" = set; then
12320   echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322   ac_func_search_save_LIBS=$LIBS
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h.  */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h.  */
12329
12330 /* Override any GCC internal prototype to avoid an error.
12331    Use char because int might match the return type of a GCC
12332    builtin and then its argument prototype would still apply.  */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 char dlopen ();
12337 int
12338 main ()
12339 {
12340 return dlopen ();
12341   ;
12342   return 0;
12343 }
12344 _ACEOF
12345 for ac_lib in '' dl; do
12346   if test -z "$ac_lib"; then
12347     ac_res="none required"
12348   else
12349     ac_res=-l$ac_lib
12350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12351   fi
12352   rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (ac_try="$ac_link"
12354 case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359   (eval "$ac_link") 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } &&
12366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367   { (case "(($ac_try" in
12368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369   *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372   (eval "$ac_try") 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; } &&
12376          { ac_try='test -s conftest$ac_exeext'
12377   { (case "(($ac_try" in
12378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379   *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382   (eval "$ac_try") 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; }; then
12386   ac_cv_search_dlopen=$ac_res
12387 else
12388   echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391
12392 fi
12393
12394 rm -f core conftest.err conftest.$ac_objext \
12395       conftest$ac_exeext
12396   if test "${ac_cv_search_dlopen+set}" = set; then
12397   break
12398 fi
12399 done
12400 if test "${ac_cv_search_dlopen+set}" = set; then
12401   :
12402 else
12403   ac_cv_search_dlopen=no
12404 fi
12405 rm conftest.$ac_ext
12406 LIBS=$ac_func_search_save_LIBS
12407 fi
12408 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12409 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12410 ac_res=$ac_cv_search_dlopen
12411 if test "$ac_res" != no; then
12412   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12413
12414 cat >>confdefs.h <<\_ACEOF
12415 #define HAVE_DLOPEN 1
12416 _ACEOF
12417
12418 else
12419   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12420 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12421 fi
12422
12423
12424 if test "$llvm_cv_enable_libffi" = "yes" ; then
12425   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12426 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12427 if test "${ac_cv_search_ffi_call+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   ac_func_search_save_LIBS=$LIBS
12431 cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437
12438 /* Override any GCC internal prototype to avoid an error.
12439    Use char because int might match the return type of a GCC
12440    builtin and then its argument prototype would still apply.  */
12441 #ifdef __cplusplus
12442 extern "C"
12443 #endif
12444 char ffi_call ();
12445 int
12446 main ()
12447 {
12448 return ffi_call ();
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 for ac_lib in '' ffi; do
12454   if test -z "$ac_lib"; then
12455     ac_res="none required"
12456   else
12457     ac_res=-l$ac_lib
12458     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12459   fi
12460   rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (ac_try="$ac_link"
12462 case "(($ac_try" in
12463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464   *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467   (eval "$ac_link") 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } &&
12474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12475   { (case "(($ac_try" in
12476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477   *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480   (eval "$ac_try") 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; } &&
12484          { ac_try='test -s conftest$ac_exeext'
12485   { (case "(($ac_try" in
12486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487   *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490   (eval "$ac_try") 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; }; then
12494   ac_cv_search_ffi_call=$ac_res
12495 else
12496   echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499
12500 fi
12501
12502 rm -f core conftest.err conftest.$ac_objext \
12503       conftest$ac_exeext
12504   if test "${ac_cv_search_ffi_call+set}" = set; then
12505   break
12506 fi
12507 done
12508 if test "${ac_cv_search_ffi_call+set}" = set; then
12509   :
12510 else
12511   ac_cv_search_ffi_call=no
12512 fi
12513 rm conftest.$ac_ext
12514 LIBS=$ac_func_search_save_LIBS
12515 fi
12516 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12517 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12518 ac_res=$ac_cv_search_ffi_call
12519 if test "$ac_res" != no; then
12520   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12521
12522 cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_FFI_CALL 1
12524 _ACEOF
12525
12526 else
12527   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12528 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12529    { (exit 1); exit 1; }; }
12530 fi
12531
12532 fi
12533
12534 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12535 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12536 if test "${ac_cv_search_mallinfo+set}" = set; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   ac_func_search_save_LIBS=$LIBS
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546
12547 /* Override any GCC internal prototype to avoid an error.
12548    Use char because int might match the return type of a GCC
12549    builtin and then its argument prototype would still apply.  */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 char mallinfo ();
12554 int
12555 main ()
12556 {
12557 return mallinfo ();
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 for ac_lib in '' malloc; do
12563   if test -z "$ac_lib"; then
12564     ac_res="none required"
12565   else
12566     ac_res=-l$ac_lib
12567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12568   fi
12569   rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (ac_try="$ac_link"
12571 case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_link") 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12584   { (case "(($ac_try" in
12585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586   *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589   (eval "$ac_try") 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; } &&
12593          { ac_try='test -s conftest$ac_exeext'
12594   { (case "(($ac_try" in
12595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596   *) ac_try_echo=$ac_try;;
12597 esac
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599   (eval "$ac_try") 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; }; then
12603   ac_cv_search_mallinfo=$ac_res
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext \
12612       conftest$ac_exeext
12613   if test "${ac_cv_search_mallinfo+set}" = set; then
12614   break
12615 fi
12616 done
12617 if test "${ac_cv_search_mallinfo+set}" = set; then
12618   :
12619 else
12620   ac_cv_search_mallinfo=no
12621 fi
12622 rm conftest.$ac_ext
12623 LIBS=$ac_func_search_save_LIBS
12624 fi
12625 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12626 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12627 ac_res=$ac_cv_search_mallinfo
12628 if test "$ac_res" != no; then
12629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12630
12631 cat >>confdefs.h <<\_ACEOF
12632 #define HAVE_MALLINFO 1
12633 _ACEOF
12634
12635 fi
12636
12637
12638 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12639
12640 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12641 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12642 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12643   echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645   ac_check_lib_save_LIBS=$LIBS
12646 LIBS="-lpthread  $LIBS"
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h.  */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h.  */
12653
12654 /* Override any GCC internal prototype to avoid an error.
12655    Use char because int might match the return type of a GCC
12656    builtin and then its argument prototype would still apply.  */
12657 #ifdef __cplusplus
12658 extern "C"
12659 #endif
12660 char pthread_mutex_init ();
12661 int
12662 main ()
12663 {
12664 return pthread_mutex_init ();
12665   ;
12666   return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (ac_try="$ac_link"
12671 case "(($ac_try" in
12672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673   *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676   (eval "$ac_link") 2>conftest.er1
12677   ac_status=$?
12678   grep -v '^ *+' conftest.er1 >conftest.err
12679   rm -f conftest.er1
12680   cat conftest.err >&5
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); } &&
12683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12684   { (case "(($ac_try" in
12685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686   *) ac_try_echo=$ac_try;;
12687 esac
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689   (eval "$ac_try") 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }; } &&
12693          { ac_try='test -s conftest$ac_exeext'
12694   { (case "(($ac_try" in
12695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696   *) ac_try_echo=$ac_try;;
12697 esac
12698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699   (eval "$ac_try") 2>&5
12700   ac_status=$?
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); }; }; then
12703   ac_cv_lib_pthread_pthread_mutex_init=yes
12704 else
12705   echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708         ac_cv_lib_pthread_pthread_mutex_init=no
12709 fi
12710
12711 rm -f core conftest.err conftest.$ac_objext \
12712       conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12714 fi
12715 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12716 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12717 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12718   cat >>confdefs.h <<_ACEOF
12719 #define HAVE_LIBPTHREAD 1
12720 _ACEOF
12721
12722   LIBS="-lpthread $LIBS"
12723
12724 fi
12725
12726   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12727 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12728 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   ac_func_search_save_LIBS=$LIBS
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738
12739 /* Override any GCC internal prototype to avoid an error.
12740    Use char because int might match the return type of a GCC
12741    builtin and then its argument prototype would still apply.  */
12742 #ifdef __cplusplus
12743 extern "C"
12744 #endif
12745 char pthread_mutex_lock ();
12746 int
12747 main ()
12748 {
12749 return pthread_mutex_lock ();
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 for ac_lib in '' pthread; do
12755   if test -z "$ac_lib"; then
12756     ac_res="none required"
12757   else
12758     ac_res=-l$ac_lib
12759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12760   fi
12761   rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (ac_try="$ac_link"
12763 case "(($ac_try" in
12764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765   *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768   (eval "$ac_link") 2>conftest.er1
12769   ac_status=$?
12770   grep -v '^ *+' conftest.er1 >conftest.err
12771   rm -f conftest.er1
12772   cat conftest.err >&5
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); } &&
12775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776   { (case "(($ac_try" in
12777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778   *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_try") 2>&5
12782   ac_status=$?
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); }; } &&
12785          { ac_try='test -s conftest$ac_exeext'
12786   { (case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791   (eval "$ac_try") 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); }; }; then
12795   ac_cv_search_pthread_mutex_lock=$ac_res
12796 else
12797   echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800
12801 fi
12802
12803 rm -f core conftest.err conftest.$ac_objext \
12804       conftest$ac_exeext
12805   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12806   break
12807 fi
12808 done
12809 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12810   :
12811 else
12812   ac_cv_search_pthread_mutex_lock=no
12813 fi
12814 rm conftest.$ac_ext
12815 LIBS=$ac_func_search_save_LIBS
12816 fi
12817 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12818 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12819 ac_res=$ac_cv_search_pthread_mutex_lock
12820 if test "$ac_res" != no; then
12821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12822
12823 cat >>confdefs.h <<\_ACEOF
12824 #define HAVE_PTHREAD_MUTEX_LOCK 1
12825 _ACEOF
12826
12827 fi
12828
12829   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12830 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12831 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12832   echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834   ac_func_search_save_LIBS=$LIBS
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h.  */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h.  */
12841
12842 /* Override any GCC internal prototype to avoid an error.
12843    Use char because int might match the return type of a GCC
12844    builtin and then its argument prototype would still apply.  */
12845 #ifdef __cplusplus
12846 extern "C"
12847 #endif
12848 char pthread_rwlock_init ();
12849 int
12850 main ()
12851 {
12852 return pthread_rwlock_init ();
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 for ac_lib in '' pthread; do
12858   if test -z "$ac_lib"; then
12859     ac_res="none required"
12860   else
12861     ac_res=-l$ac_lib
12862     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12863   fi
12864   rm -f conftest.$ac_objext conftest$ac_exeext
12865 if { (ac_try="$ac_link"
12866 case "(($ac_try" in
12867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868   *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871   (eval "$ac_link") 2>conftest.er1
12872   ac_status=$?
12873   grep -v '^ *+' conftest.er1 >conftest.err
12874   rm -f conftest.er1
12875   cat conftest.err >&5
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); } &&
12878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12879   { (case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_try") 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; } &&
12888          { ac_try='test -s conftest$ac_exeext'
12889   { (case "(($ac_try" in
12890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891   *) ac_try_echo=$ac_try;;
12892 esac
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894   (eval "$ac_try") 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); }; }; then
12898   ac_cv_search_pthread_rwlock_init=$ac_res
12899 else
12900   echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12902
12903
12904 fi
12905
12906 rm -f core conftest.err conftest.$ac_objext \
12907       conftest$ac_exeext
12908   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12909   break
12910 fi
12911 done
12912 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12913   :
12914 else
12915   ac_cv_search_pthread_rwlock_init=no
12916 fi
12917 rm conftest.$ac_ext
12918 LIBS=$ac_func_search_save_LIBS
12919 fi
12920 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12921 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12922 ac_res=$ac_cv_search_pthread_rwlock_init
12923 if test "$ac_res" != no; then
12924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12925
12926 cat >>confdefs.h <<\_ACEOF
12927 #define HAVE_PTHREAD_RWLOCK_INIT 1
12928 _ACEOF
12929
12930 fi
12931
12932   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12933 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12934 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12935   echo $ECHO_N "(cached) $ECHO_C" >&6
12936 else
12937   ac_func_search_save_LIBS=$LIBS
12938 cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h.  */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h.  */
12944
12945 /* Override any GCC internal prototype to avoid an error.
12946    Use char because int might match the return type of a GCC
12947    builtin and then its argument prototype would still apply.  */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char pthread_getspecific ();
12952 int
12953 main ()
12954 {
12955 return pthread_getspecific ();
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 for ac_lib in '' pthread; do
12961   if test -z "$ac_lib"; then
12962     ac_res="none required"
12963   else
12964     ac_res=-l$ac_lib
12965     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12966   fi
12967   rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (ac_try="$ac_link"
12969 case "(($ac_try" in
12970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971   *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974   (eval "$ac_link") 2>conftest.er1
12975   ac_status=$?
12976   grep -v '^ *+' conftest.er1 >conftest.err
12977   rm -f conftest.er1
12978   cat conftest.err >&5
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); } &&
12981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12982   { (case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_try") 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; } &&
12991          { ac_try='test -s conftest$ac_exeext'
12992   { (case "(($ac_try" in
12993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994   *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997   (eval "$ac_try") 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; }; then
13001   ac_cv_search_pthread_getspecific=$ac_res
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006
13007 fi
13008
13009 rm -f core conftest.err conftest.$ac_objext \
13010       conftest$ac_exeext
13011   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13012   break
13013 fi
13014 done
13015 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13016   :
13017 else
13018   ac_cv_search_pthread_getspecific=no
13019 fi
13020 rm conftest.$ac_ext
13021 LIBS=$ac_func_search_save_LIBS
13022 fi
13023 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13024 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13025 ac_res=$ac_cv_search_pthread_getspecific
13026 if test "$ac_res" != no; then
13027   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13028
13029 cat >>confdefs.h <<\_ACEOF
13030 #define HAVE_PTHREAD_GETSPECIFIC 1
13031 _ACEOF
13032
13033 fi
13034
13035 fi
13036
13037
13038 # Check whether --with-udis86 was given.
13039 if test "${with_udis86+set}" = set; then
13040   withval=$with_udis86;
13041       USE_UDIS86=1
13042
13043       case "$withval" in
13044         /usr/lib|yes) ;;
13045         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13046       esac
13047
13048 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13049 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13050 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13051   echo $ECHO_N "(cached) $ECHO_C" >&6
13052 else
13053   ac_check_lib_save_LIBS=$LIBS
13054 LIBS="-ludis86  $LIBS"
13055 cat >conftest.$ac_ext <<_ACEOF
13056 /* confdefs.h.  */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h.  */
13061
13062 /* Override any GCC internal prototype to avoid an error.
13063    Use char because int might match the return type of a GCC
13064    builtin and then its argument prototype would still apply.  */
13065 #ifdef __cplusplus
13066 extern "C"
13067 #endif
13068 char ud_init ();
13069 int
13070 main ()
13071 {
13072 return ud_init ();
13073   ;
13074   return 0;
13075 }
13076 _ACEOF
13077 rm -f conftest.$ac_objext conftest$ac_exeext
13078 if { (ac_try="$ac_link"
13079 case "(($ac_try" in
13080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081   *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084   (eval "$ac_link") 2>conftest.er1
13085   ac_status=$?
13086   grep -v '^ *+' conftest.er1 >conftest.err
13087   rm -f conftest.er1
13088   cat conftest.err >&5
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); } &&
13091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092   { (case "(($ac_try" in
13093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094   *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097   (eval "$ac_try") 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; } &&
13101          { ac_try='test -s conftest$ac_exeext'
13102   { (case "(($ac_try" in
13103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104   *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107   (eval "$ac_try") 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; }; then
13111   ac_cv_lib_udis86_ud_init=yes
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116         ac_cv_lib_udis86_ud_init=no
13117 fi
13118
13119 rm -f core conftest.err conftest.$ac_objext \
13120       conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_check_lib_save_LIBS
13122 fi
13123 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13124 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13125 if test $ac_cv_lib_udis86_ud_init = yes; then
13126   cat >>confdefs.h <<_ACEOF
13127 #define HAVE_LIBUDIS86 1
13128 _ACEOF
13129
13130   LIBS="-ludis86 $LIBS"
13131
13132 else
13133
13134         echo "Error! You need to have libudis86 around."
13135         exit -1
13136
13137 fi
13138
13139
13140 else
13141   USE_UDIS86=0
13142
13143 fi
13144
13145
13146 cat >>confdefs.h <<_ACEOF
13147 #define USE_UDIS86 $USE_UDIS86
13148 _ACEOF
13149
13150
13151
13152 # Check whether --with-oprofile was given.
13153 if test "${with_oprofile+set}" = set; then
13154   withval=$with_oprofile;
13155       USE_OPROFILE=1
13156
13157       case "$withval" in
13158         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13159         no) llvm_cv_oppath=
13160             USE_OPROFILE=0
13161  ;;
13162         *) llvm_cv_oppath="${withval}/lib/oprofile"
13163            CPPFLAGS="-I${withval}/include";;
13164       esac
13165       if test -n "$llvm_cv_oppath" ; then
13166         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13167                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13168 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13169 if test "${ac_cv_search_bfd_init+set}" = set; then
13170   echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172   ac_func_search_save_LIBS=$LIBS
13173 cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h.  */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h.  */
13179
13180 /* Override any GCC internal prototype to avoid an error.
13181    Use char because int might match the return type of a GCC
13182    builtin and then its argument prototype would still apply.  */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char bfd_init ();
13187 int
13188 main ()
13189 {
13190 return bfd_init ();
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 for ac_lib in '' bfd; do
13196   if test -z "$ac_lib"; then
13197     ac_res="none required"
13198   else
13199     ac_res=-l$ac_lib
13200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13201   fi
13202   rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (ac_try="$ac_link"
13204 case "(($ac_try" in
13205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206   *) ac_try_echo=$ac_try;;
13207 esac
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209   (eval "$ac_link") 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } &&
13216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13217   { (case "(($ac_try" in
13218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219   *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222   (eval "$ac_try") 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; } &&
13226          { ac_try='test -s conftest$ac_exeext'
13227   { (case "(($ac_try" in
13228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229   *) ac_try_echo=$ac_try;;
13230 esac
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232   (eval "$ac_try") 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; }; then
13236   ac_cv_search_bfd_init=$ac_res
13237 else
13238   echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241
13242 fi
13243
13244 rm -f core conftest.err conftest.$ac_objext \
13245       conftest$ac_exeext
13246   if test "${ac_cv_search_bfd_init+set}" = set; then
13247   break
13248 fi
13249 done
13250 if test "${ac_cv_search_bfd_init+set}" = set; then
13251   :
13252 else
13253   ac_cv_search_bfd_init=no
13254 fi
13255 rm conftest.$ac_ext
13256 LIBS=$ac_func_search_save_LIBS
13257 fi
13258 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13259 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13260 ac_res=$ac_cv_search_bfd_init
13261 if test "$ac_res" != no; then
13262   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13263
13264 fi
13265
13266         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13267 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13268 if test "${ac_cv_search_op_open_agent+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   ac_func_search_save_LIBS=$LIBS
13272 cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278
13279 /* Override any GCC internal prototype to avoid an error.
13280    Use char because int might match the return type of a GCC
13281    builtin and then its argument prototype would still apply.  */
13282 #ifdef __cplusplus
13283 extern "C"
13284 #endif
13285 char op_open_agent ();
13286 int
13287 main ()
13288 {
13289 return op_open_agent ();
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 for ac_lib in '' opagent; do
13295   if test -z "$ac_lib"; then
13296     ac_res="none required"
13297   else
13298     ac_res=-l$ac_lib
13299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13300   fi
13301   rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_link") 2>conftest.er1
13309   ac_status=$?
13310   grep -v '^ *+' conftest.er1 >conftest.err
13311   rm -f conftest.er1
13312   cat conftest.err >&5
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } &&
13315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316   { (case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_try") 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; } &&
13325          { ac_try='test -s conftest$ac_exeext'
13326   { (case "(($ac_try" in
13327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328   *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331   (eval "$ac_try") 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }; then
13335   ac_cv_search_op_open_agent=$ac_res
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext \
13344       conftest$ac_exeext
13345   if test "${ac_cv_search_op_open_agent+set}" = set; then
13346   break
13347 fi
13348 done
13349 if test "${ac_cv_search_op_open_agent+set}" = set; then
13350   :
13351 else
13352   ac_cv_search_op_open_agent=no
13353 fi
13354 rm conftest.$ac_ext
13355 LIBS=$ac_func_search_save_LIBS
13356 fi
13357 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13358 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13359 ac_res=$ac_cv_search_op_open_agent
13360 if test "$ac_res" != no; then
13361   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13362
13363 else
13364
13365           echo "Error! You need to have libopagent around."
13366           exit -1
13367
13368 fi
13369
13370         if test "${ac_cv_header_opagent_h+set}" = set; then
13371   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13372 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13373 if test "${ac_cv_header_opagent_h+set}" = set; then
13374   echo $ECHO_N "(cached) $ECHO_C" >&6
13375 fi
13376 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13377 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13378 else
13379   # Is the header compilable?
13380 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13381 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h.  */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h.  */
13388 $ac_includes_default
13389 #include <opagent.h>
13390 _ACEOF
13391 rm -f conftest.$ac_objext
13392 if { (ac_try="$ac_compile"
13393 case "(($ac_try" in
13394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395   *) ac_try_echo=$ac_try;;
13396 esac
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398   (eval "$ac_compile") 2>conftest.er1
13399   ac_status=$?
13400   grep -v '^ *+' conftest.er1 >conftest.err
13401   rm -f conftest.er1
13402   cat conftest.err >&5
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); } &&
13405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13406   { (case "(($ac_try" in
13407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408   *) ac_try_echo=$ac_try;;
13409 esac
13410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411   (eval "$ac_try") 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; } &&
13415          { ac_try='test -s conftest.$ac_objext'
13416   { (case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421   (eval "$ac_try") 2>&5
13422   ac_status=$?
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); }; }; then
13425   ac_header_compiler=yes
13426 else
13427   echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430         ac_header_compiler=no
13431 fi
13432
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13435 echo "${ECHO_T}$ac_header_compiler" >&6; }
13436
13437 # Is the header present?
13438 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13439 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h.  */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h.  */
13446 #include <opagent.h>
13447 _ACEOF
13448 if { (ac_try="$ac_cpp conftest.$ac_ext"
13449 case "(($ac_try" in
13450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451   *) ac_try_echo=$ac_try;;
13452 esac
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13455   ac_status=$?
13456   grep -v '^ *+' conftest.er1 >conftest.err
13457   rm -f conftest.er1
13458   cat conftest.err >&5
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); } >/dev/null; then
13461   if test -s conftest.err; then
13462     ac_cpp_err=$ac_c_preproc_warn_flag
13463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13464   else
13465     ac_cpp_err=
13466   fi
13467 else
13468   ac_cpp_err=yes
13469 fi
13470 if test -z "$ac_cpp_err"; then
13471   ac_header_preproc=yes
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476   ac_header_preproc=no
13477 fi
13478
13479 rm -f conftest.err conftest.$ac_ext
13480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13481 echo "${ECHO_T}$ac_header_preproc" >&6; }
13482
13483 # So?  What about this header?
13484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13485   yes:no: )
13486     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13487 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13488     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13489 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13490     ac_header_preproc=yes
13491     ;;
13492   no:yes:* )
13493     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13494 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13495     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13496 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13497     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13498 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13499     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13500 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13501     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13502 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13503     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13504 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13505     ( cat <<\_ASBOX
13506 ## ------------------------------ ##
13507 ## Report this to bugs@yourdomain ##
13508 ## ------------------------------ ##
13509 _ASBOX
13510      ) | sed "s/^/$as_me: WARNING:     /" >&2
13511     ;;
13512 esac
13513 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13514 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13515 if test "${ac_cv_header_opagent_h+set}" = set; then
13516   echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
13518   ac_cv_header_opagent_h=$ac_header_preproc
13519 fi
13520 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13521 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13522
13523 fi
13524 if test $ac_cv_header_opagent_h = yes; then
13525   :
13526 else
13527
13528           echo "Error! You need to have opagent.h around."
13529           exit -1
13530
13531 fi
13532
13533
13534       fi
13535
13536 else
13537
13538       USE_OPROFILE=0
13539
13540
13541 fi
13542
13543
13544 cat >>confdefs.h <<_ACEOF
13545 #define USE_OPROFILE $USE_OPROFILE
13546 _ACEOF
13547
13548
13549
13550
13551
13552
13553
13554
13555 ac_header_dirent=no
13556 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13557   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13558 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13559 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13561   echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563   cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h.  */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h.  */
13569 #include <sys/types.h>
13570 #include <$ac_hdr>
13571
13572 int
13573 main ()
13574 {
13575 if ((DIR *) 0)
13576 return 0;
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585   *) ac_try_echo=$ac_try;;
13586 esac
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588   (eval "$ac_compile") 2>conftest.er1
13589   ac_status=$?
13590   grep -v '^ *+' conftest.er1 >conftest.err
13591   rm -f conftest.er1
13592   cat conftest.err >&5
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } &&
13595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13596   { (case "(($ac_try" in
13597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598   *) ac_try_echo=$ac_try;;
13599 esac
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601   (eval "$ac_try") 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; } &&
13605          { ac_try='test -s conftest.$ac_objext'
13606   { (case "(($ac_try" in
13607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608   *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611   (eval "$ac_try") 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }; }; then
13615   eval "$as_ac_Header=yes"
13616 else
13617   echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620         eval "$as_ac_Header=no"
13621 fi
13622
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 ac_res=`eval echo '${'$as_ac_Header'}'`
13626                { echo "$as_me:$LINENO: result: $ac_res" >&5
13627 echo "${ECHO_T}$ac_res" >&6; }
13628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13629   cat >>confdefs.h <<_ACEOF
13630 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13631 _ACEOF
13632
13633 ac_header_dirent=$ac_hdr; break
13634 fi
13635
13636 done
13637 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13638 if test $ac_header_dirent = dirent.h; then
13639   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13640 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13641 if test "${ac_cv_search_opendir+set}" = set; then
13642   echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644   ac_func_search_save_LIBS=$LIBS
13645 cat >conftest.$ac_ext <<_ACEOF
13646 /* confdefs.h.  */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h.  */
13651
13652 /* Override any GCC internal prototype to avoid an error.
13653    Use char because int might match the return type of a GCC
13654    builtin and then its argument prototype would still apply.  */
13655 #ifdef __cplusplus
13656 extern "C"
13657 #endif
13658 char opendir ();
13659 int
13660 main ()
13661 {
13662 return opendir ();
13663   ;
13664   return 0;
13665 }
13666 _ACEOF
13667 for ac_lib in '' dir; do
13668   if test -z "$ac_lib"; then
13669     ac_res="none required"
13670   else
13671     ac_res=-l$ac_lib
13672     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13673   fi
13674   rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (ac_try="$ac_link"
13676 case "(($ac_try" in
13677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678   *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681   (eval "$ac_link") 2>conftest.er1
13682   ac_status=$?
13683   grep -v '^ *+' conftest.er1 >conftest.err
13684   rm -f conftest.er1
13685   cat conftest.err >&5
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } &&
13688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13689   { (case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_try") 2>&5
13695   ac_status=$?
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); }; } &&
13698          { ac_try='test -s conftest$ac_exeext'
13699   { (case "(($ac_try" in
13700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701   *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704   (eval "$ac_try") 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; }; then
13708   ac_cv_search_opendir=$ac_res
13709 else
13710   echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713
13714 fi
13715
13716 rm -f core conftest.err conftest.$ac_objext \
13717       conftest$ac_exeext
13718   if test "${ac_cv_search_opendir+set}" = set; then
13719   break
13720 fi
13721 done
13722 if test "${ac_cv_search_opendir+set}" = set; then
13723   :
13724 else
13725   ac_cv_search_opendir=no
13726 fi
13727 rm conftest.$ac_ext
13728 LIBS=$ac_func_search_save_LIBS
13729 fi
13730 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13731 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13732 ac_res=$ac_cv_search_opendir
13733 if test "$ac_res" != no; then
13734   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13735
13736 fi
13737
13738 else
13739   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13740 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13741 if test "${ac_cv_search_opendir+set}" = set; then
13742   echo $ECHO_N "(cached) $ECHO_C" >&6
13743 else
13744   ac_func_search_save_LIBS=$LIBS
13745 cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h.  */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h.  */
13751
13752 /* Override any GCC internal prototype to avoid an error.
13753    Use char because int might match the return type of a GCC
13754    builtin and then its argument prototype would still apply.  */
13755 #ifdef __cplusplus
13756 extern "C"
13757 #endif
13758 char opendir ();
13759 int
13760 main ()
13761 {
13762 return opendir ();
13763   ;
13764   return 0;
13765 }
13766 _ACEOF
13767 for ac_lib in '' x; do
13768   if test -z "$ac_lib"; then
13769     ac_res="none required"
13770   else
13771     ac_res=-l$ac_lib
13772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13773   fi
13774   rm -f conftest.$ac_objext conftest$ac_exeext
13775 if { (ac_try="$ac_link"
13776 case "(($ac_try" in
13777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778   *) ac_try_echo=$ac_try;;
13779 esac
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781   (eval "$ac_link") 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } &&
13788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13789   { (case "(($ac_try" in
13790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791   *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794   (eval "$ac_try") 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; } &&
13798          { ac_try='test -s conftest$ac_exeext'
13799   { (case "(($ac_try" in
13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801   *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804   (eval "$ac_try") 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; }; then
13808   ac_cv_search_opendir=$ac_res
13809 else
13810   echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813
13814 fi
13815
13816 rm -f core conftest.err conftest.$ac_objext \
13817       conftest$ac_exeext
13818   if test "${ac_cv_search_opendir+set}" = set; then
13819   break
13820 fi
13821 done
13822 if test "${ac_cv_search_opendir+set}" = set; then
13823   :
13824 else
13825   ac_cv_search_opendir=no
13826 fi
13827 rm conftest.$ac_ext
13828 LIBS=$ac_func_search_save_LIBS
13829 fi
13830 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13831 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13832 ac_res=$ac_cv_search_opendir
13833 if test "$ac_res" != no; then
13834   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13835
13836 fi
13837
13838 fi
13839
13840 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13841 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13842 if test "${ac_cv_header_mmap_anon+set}" = set; then
13843   echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845    ac_ext=c
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13850
13851   cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h.  */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h.  */
13857 #include <sys/mman.h>
13858 #include <unistd.h>
13859 #include <fcntl.h>
13860 int
13861 main ()
13862 {
13863 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext
13869 if { (ac_try="$ac_compile"
13870 case "(($ac_try" in
13871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872   *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875   (eval "$ac_compile") 2>conftest.er1
13876   ac_status=$?
13877   grep -v '^ *+' conftest.er1 >conftest.err
13878   rm -f conftest.er1
13879   cat conftest.err >&5
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); } &&
13882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883   { (case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_try") 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; } &&
13892          { ac_try='test -s conftest.$ac_objext'
13893   { (case "(($ac_try" in
13894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895   *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898   (eval "$ac_try") 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   ac_cv_header_mmap_anon=yes
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907         ac_cv_header_mmap_anon=no
13908 fi
13909
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911   ac_ext=c
13912 ac_cpp='$CPP $CPPFLAGS'
13913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13916
13917
13918 fi
13919 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13920 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13921 if test "$ac_cv_header_mmap_anon" = yes; then
13922
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_MMAP_ANONYMOUS 1
13925 _ACEOF
13926
13927 fi
13928
13929 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13930 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13931 if test "${ac_cv_header_stat_broken+set}" = set; then
13932   echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934   cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h.  */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h.  */
13940 #include <sys/types.h>
13941 #include <sys/stat.h>
13942
13943 #if defined S_ISBLK && defined S_IFDIR
13944 # if S_ISBLK (S_IFDIR)
13945 You lose.
13946 # endif
13947 #endif
13948
13949 #if defined S_ISBLK && defined S_IFCHR
13950 # if S_ISBLK (S_IFCHR)
13951 You lose.
13952 # endif
13953 #endif
13954
13955 #if defined S_ISLNK && defined S_IFREG
13956 # if S_ISLNK (S_IFREG)
13957 You lose.
13958 # endif
13959 #endif
13960
13961 #if defined S_ISSOCK && defined S_IFREG
13962 # if S_ISSOCK (S_IFREG)
13963 You lose.
13964 # endif
13965 #endif
13966
13967 _ACEOF
13968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13969   $EGREP "You lose" >/dev/null 2>&1; then
13970   ac_cv_header_stat_broken=yes
13971 else
13972   ac_cv_header_stat_broken=no
13973 fi
13974 rm -f conftest*
13975
13976 fi
13977 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13978 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13979 if test $ac_cv_header_stat_broken = yes; then
13980
13981 cat >>confdefs.h <<\_ACEOF
13982 #define STAT_MACROS_BROKEN 1
13983 _ACEOF
13984
13985 fi
13986
13987 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13988 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13989 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h.  */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h.  */
13998 #include <sys/types.h>
13999 #include <sys/wait.h>
14000 #ifndef WEXITSTATUS
14001 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14002 #endif
14003 #ifndef WIFEXITED
14004 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14005 #endif
14006
14007 int
14008 main ()
14009 {
14010   int s;
14011   wait (&s);
14012   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14013   ;
14014   return 0;
14015 }
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (ac_try="$ac_compile"
14019 case "(($ac_try" in
14020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021   *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024   (eval "$ac_compile") 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032   { (case "(($ac_try" in
14033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034   *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037   (eval "$ac_try") 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; } &&
14041          { ac_try='test -s conftest.$ac_objext'
14042   { (case "(($ac_try" in
14043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044   *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047   (eval "$ac_try") 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; }; then
14051   ac_cv_header_sys_wait_h=yes
14052 else
14053   echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14055
14056         ac_cv_header_sys_wait_h=no
14057 fi
14058
14059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 fi
14061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14062 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14063 if test $ac_cv_header_sys_wait_h = yes; then
14064
14065 cat >>confdefs.h <<\_ACEOF
14066 #define HAVE_SYS_WAIT_H 1
14067 _ACEOF
14068
14069 fi
14070
14071 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14073 if test "${ac_cv_header_time+set}" = set; then
14074   echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076   cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h.  */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h.  */
14082 #include <sys/types.h>
14083 #include <sys/time.h>
14084 #include <time.h>
14085
14086 int
14087 main ()
14088 {
14089 if ((struct tm *) 0)
14090 return 0;
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 rm -f conftest.$ac_objext
14096 if { (ac_try="$ac_compile"
14097 case "(($ac_try" in
14098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099   *) ac_try_echo=$ac_try;;
14100 esac
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102   (eval "$ac_compile") 2>conftest.er1
14103   ac_status=$?
14104   grep -v '^ *+' conftest.er1 >conftest.err
14105   rm -f conftest.er1
14106   cat conftest.err >&5
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); } &&
14109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14110   { (case "(($ac_try" in
14111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112   *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115   (eval "$ac_try") 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); }; } &&
14119          { ac_try='test -s conftest.$ac_objext'
14120   { (case "(($ac_try" in
14121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14122   *) ac_try_echo=$ac_try;;
14123 esac
14124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125   (eval "$ac_try") 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; }; then
14129   ac_cv_header_time=yes
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134         ac_cv_header_time=no
14135 fi
14136
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 fi
14139 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14140 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14141 if test $ac_cv_header_time = yes; then
14142
14143 cat >>confdefs.h <<\_ACEOF
14144 #define TIME_WITH_SYS_TIME 1
14145 _ACEOF
14146
14147 fi
14148
14149
14150
14151
14152
14153
14154
14155
14156 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14157 do
14158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 fi
14165 ac_res=`eval echo '${'$as_ac_Header'}'`
14166                { echo "$as_me:$LINENO: result: $ac_res" >&5
14167 echo "${ECHO_T}$ac_res" >&6; }
14168 else
14169   # Is the header compilable?
14170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h.  */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h.  */
14178 $ac_includes_default
14179 #include <$ac_header>
14180 _ACEOF
14181 rm -f conftest.$ac_objext
14182 if { (ac_try="$ac_compile"
14183 case "(($ac_try" in
14184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185   *) ac_try_echo=$ac_try;;
14186 esac
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188   (eval "$ac_compile") 2>conftest.er1
14189   ac_status=$?
14190   grep -v '^ *+' conftest.er1 >conftest.err
14191   rm -f conftest.er1
14192   cat conftest.err >&5
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); } &&
14195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14196   { (case "(($ac_try" in
14197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198   *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201   (eval "$ac_try") 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; } &&
14205          { ac_try='test -s conftest.$ac_objext'
14206   { (case "(($ac_try" in
14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208   *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211   (eval "$ac_try") 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; }; then
14215   ac_header_compiler=yes
14216 else
14217   echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220         ac_header_compiler=no
14221 fi
14222
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14225 echo "${ECHO_T}$ac_header_compiler" >&6; }
14226
14227 # Is the header present?
14228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 #include <$ac_header>
14237 _ACEOF
14238 if { (ac_try="$ac_cpp conftest.$ac_ext"
14239 case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14245   ac_status=$?
14246   grep -v '^ *+' conftest.er1 >conftest.err
14247   rm -f conftest.er1
14248   cat conftest.err >&5
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); } >/dev/null; then
14251   if test -s conftest.err; then
14252     ac_cpp_err=$ac_c_preproc_warn_flag
14253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14254   else
14255     ac_cpp_err=
14256   fi
14257 else
14258   ac_cpp_err=yes
14259 fi
14260 if test -z "$ac_cpp_err"; then
14261   ac_header_preproc=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266   ac_header_preproc=no
14267 fi
14268
14269 rm -f conftest.err conftest.$ac_ext
14270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14271 echo "${ECHO_T}$ac_header_preproc" >&6; }
14272
14273 # So?  What about this header?
14274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14275   yes:no: )
14276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14280     ac_header_preproc=yes
14281     ;;
14282   no:yes:* )
14283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14295     ( cat <<\_ASBOX
14296 ## ------------------------------ ##
14297 ## Report this to bugs@yourdomain ##
14298 ## ------------------------------ ##
14299 _ASBOX
14300      ) | sed "s/^/$as_me: WARNING:     /" >&2
14301     ;;
14302 esac
14303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   eval "$as_ac_Header=\$ac_header_preproc"
14309 fi
14310 ac_res=`eval echo '${'$as_ac_Header'}'`
14311                { echo "$as_me:$LINENO: result: $ac_res" >&5
14312 echo "${ECHO_T}$ac_res" >&6; }
14313
14314 fi
14315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14316   cat >>confdefs.h <<_ACEOF
14317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14318 _ACEOF
14319
14320 fi
14321
14322 done
14323
14324
14325
14326
14327
14328
14329
14330 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14331 do
14332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14334   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 fi
14339 ac_res=`eval echo '${'$as_ac_Header'}'`
14340                { echo "$as_me:$LINENO: result: $ac_res" >&5
14341 echo "${ECHO_T}$ac_res" >&6; }
14342 else
14343   # Is the header compilable?
14344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h.  */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h.  */
14352 $ac_includes_default
14353 #include <$ac_header>
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (ac_try="$ac_compile"
14357 case "(($ac_try" in
14358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359   *) ac_try_echo=$ac_try;;
14360 esac
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362   (eval "$ac_compile") 2>conftest.er1
14363   ac_status=$?
14364   grep -v '^ *+' conftest.er1 >conftest.err
14365   rm -f conftest.er1
14366   cat conftest.err >&5
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); } &&
14369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370   { (case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_try") 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; } &&
14379          { ac_try='test -s conftest.$ac_objext'
14380   { (case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385   (eval "$ac_try") 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; }; then
14389   ac_header_compiler=yes
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394         ac_header_compiler=no
14395 fi
14396
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14399 echo "${ECHO_T}$ac_header_compiler" >&6; }
14400
14401 # Is the header present?
14402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h.  */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h.  */
14410 #include <$ac_header>
14411 _ACEOF
14412 if { (ac_try="$ac_cpp conftest.$ac_ext"
14413 case "(($ac_try" in
14414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415   *) ac_try_echo=$ac_try;;
14416 esac
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14419   ac_status=$?
14420   grep -v '^ *+' conftest.er1 >conftest.err
14421   rm -f conftest.er1
14422   cat conftest.err >&5
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } >/dev/null; then
14425   if test -s conftest.err; then
14426     ac_cpp_err=$ac_c_preproc_warn_flag
14427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14428   else
14429     ac_cpp_err=
14430   fi
14431 else
14432   ac_cpp_err=yes
14433 fi
14434 if test -z "$ac_cpp_err"; then
14435   ac_header_preproc=yes
14436 else
14437   echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440   ac_header_preproc=no
14441 fi
14442
14443 rm -f conftest.err conftest.$ac_ext
14444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445 echo "${ECHO_T}$ac_header_preproc" >&6; }
14446
14447 # So?  What about this header?
14448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14449   yes:no: )
14450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14454     ac_header_preproc=yes
14455     ;;
14456   no:yes:* )
14457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14469     ( cat <<\_ASBOX
14470 ## ------------------------------ ##
14471 ## Report this to bugs@yourdomain ##
14472 ## ------------------------------ ##
14473 _ASBOX
14474      ) | sed "s/^/$as_me: WARNING:     /" >&2
14475     ;;
14476 esac
14477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14480   echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482   eval "$as_ac_Header=\$ac_header_preproc"
14483 fi
14484 ac_res=`eval echo '${'$as_ac_Header'}'`
14485                { echo "$as_me:$LINENO: result: $ac_res" >&5
14486 echo "${ECHO_T}$ac_res" >&6; }
14487
14488 fi
14489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14490   cat >>confdefs.h <<_ACEOF
14491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14492 _ACEOF
14493
14494 fi
14495
14496 done
14497
14498
14499
14500 for ac_header in utime.h windows.h
14501 do
14502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 fi
14509 ac_res=`eval echo '${'$as_ac_Header'}'`
14510                { echo "$as_me:$LINENO: result: $ac_res" >&5
14511 echo "${ECHO_T}$ac_res" >&6; }
14512 else
14513   # Is the header compilable?
14514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14516 cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 $ac_includes_default
14523 #include <$ac_header>
14524 _ACEOF
14525 rm -f conftest.$ac_objext
14526 if { (ac_try="$ac_compile"
14527 case "(($ac_try" in
14528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529   *) ac_try_echo=$ac_try;;
14530 esac
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532   (eval "$ac_compile") 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } &&
14539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14540   { (case "(($ac_try" in
14541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542   *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545   (eval "$ac_try") 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; } &&
14549          { ac_try='test -s conftest.$ac_objext'
14550   { (case "(($ac_try" in
14551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552   *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555   (eval "$ac_try") 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }; then
14559   ac_header_compiler=yes
14560 else
14561   echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564         ac_header_compiler=no
14565 fi
14566
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14569 echo "${ECHO_T}$ac_header_compiler" >&6; }
14570
14571 # Is the header present?
14572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14574 cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h.  */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h.  */
14580 #include <$ac_header>
14581 _ACEOF
14582 if { (ac_try="$ac_cpp conftest.$ac_ext"
14583 case "(($ac_try" in
14584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585   *) ac_try_echo=$ac_try;;
14586 esac
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14589   ac_status=$?
14590   grep -v '^ *+' conftest.er1 >conftest.err
14591   rm -f conftest.er1
14592   cat conftest.err >&5
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); } >/dev/null; then
14595   if test -s conftest.err; then
14596     ac_cpp_err=$ac_c_preproc_warn_flag
14597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14598   else
14599     ac_cpp_err=
14600   fi
14601 else
14602   ac_cpp_err=yes
14603 fi
14604 if test -z "$ac_cpp_err"; then
14605   ac_header_preproc=yes
14606 else
14607   echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610   ac_header_preproc=no
14611 fi
14612
14613 rm -f conftest.err conftest.$ac_ext
14614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14615 echo "${ECHO_T}$ac_header_preproc" >&6; }
14616
14617 # So?  What about this header?
14618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14619   yes:no: )
14620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14624     ac_header_preproc=yes
14625     ;;
14626   no:yes:* )
14627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14629     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14630 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14631     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14633     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14634 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14637     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14639     ( cat <<\_ASBOX
14640 ## ------------------------------ ##
14641 ## Report this to bugs@yourdomain ##
14642 ## ------------------------------ ##
14643 _ASBOX
14644      ) | sed "s/^/$as_me: WARNING:     /" >&2
14645     ;;
14646 esac
14647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652   eval "$as_ac_Header=\$ac_header_preproc"
14653 fi
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655                { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14657
14658 fi
14659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660   cat >>confdefs.h <<_ACEOF
14661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14662 _ACEOF
14663
14664 fi
14665
14666 done
14667
14668
14669
14670
14671
14672
14673 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14674 do
14675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 fi
14682 ac_res=`eval echo '${'$as_ac_Header'}'`
14683                { echo "$as_me:$LINENO: result: $ac_res" >&5
14684 echo "${ECHO_T}$ac_res" >&6; }
14685 else
14686   # Is the header compilable?
14687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695 $ac_includes_default
14696 #include <$ac_header>
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702   *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705   (eval "$ac_compile") 2>conftest.er1
14706   ac_status=$?
14707   grep -v '^ *+' conftest.er1 >conftest.err
14708   rm -f conftest.er1
14709   cat conftest.err >&5
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); } &&
14712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14713   { (case "(($ac_try" in
14714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715   *) ac_try_echo=$ac_try;;
14716 esac
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718   (eval "$ac_try") 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; } &&
14722          { ac_try='test -s conftest.$ac_objext'
14723   { (case "(($ac_try" in
14724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725   *) ac_try_echo=$ac_try;;
14726 esac
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728   (eval "$ac_try") 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }; }; then
14732   ac_header_compiler=yes
14733 else
14734   echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737         ac_header_compiler=no
14738 fi
14739
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14742 echo "${ECHO_T}$ac_header_compiler" >&6; }
14743
14744 # Is the header present?
14745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753 #include <$ac_header>
14754 _ACEOF
14755 if { (ac_try="$ac_cpp conftest.$ac_ext"
14756 case "(($ac_try" in
14757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758   *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14762   ac_status=$?
14763   grep -v '^ *+' conftest.er1 >conftest.err
14764   rm -f conftest.er1
14765   cat conftest.err >&5
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } >/dev/null; then
14768   if test -s conftest.err; then
14769     ac_cpp_err=$ac_c_preproc_warn_flag
14770     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14771   else
14772     ac_cpp_err=
14773   fi
14774 else
14775   ac_cpp_err=yes
14776 fi
14777 if test -z "$ac_cpp_err"; then
14778   ac_header_preproc=yes
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783   ac_header_preproc=no
14784 fi
14785
14786 rm -f conftest.err conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14788 echo "${ECHO_T}$ac_header_preproc" >&6; }
14789
14790 # So?  What about this header?
14791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14792   yes:no: )
14793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14797     ac_header_preproc=yes
14798     ;;
14799   no:yes:* )
14800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14812     ( cat <<\_ASBOX
14813 ## ------------------------------ ##
14814 ## Report this to bugs@yourdomain ##
14815 ## ------------------------------ ##
14816 _ASBOX
14817      ) | sed "s/^/$as_me: WARNING:     /" >&2
14818     ;;
14819 esac
14820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   eval "$as_ac_Header=\$ac_header_preproc"
14826 fi
14827 ac_res=`eval echo '${'$as_ac_Header'}'`
14828                { echo "$as_me:$LINENO: result: $ac_res" >&5
14829 echo "${ECHO_T}$ac_res" >&6; }
14830
14831 fi
14832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14833   cat >>confdefs.h <<_ACEOF
14834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14835 _ACEOF
14836
14837 fi
14838
14839 done
14840
14841
14842
14843
14844
14845 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14846 do
14847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14849   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 fi
14854 ac_res=`eval echo '${'$as_ac_Header'}'`
14855                { echo "$as_me:$LINENO: result: $ac_res" >&5
14856 echo "${ECHO_T}$ac_res" >&6; }
14857 else
14858   # Is the header compilable?
14859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h.  */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h.  */
14867 $ac_includes_default
14868 #include <$ac_header>
14869 _ACEOF
14870 rm -f conftest.$ac_objext
14871 if { (ac_try="$ac_compile"
14872 case "(($ac_try" in
14873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874   *) ac_try_echo=$ac_try;;
14875 esac
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877   (eval "$ac_compile") 2>conftest.er1
14878   ac_status=$?
14879   grep -v '^ *+' conftest.er1 >conftest.err
14880   rm -f conftest.er1
14881   cat conftest.err >&5
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } &&
14884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14885   { (case "(($ac_try" in
14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887   *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890   (eval "$ac_try") 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; } &&
14894          { ac_try='test -s conftest.$ac_objext'
14895   { (case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900   (eval "$ac_try") 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; }; then
14904   ac_header_compiler=yes
14905 else
14906   echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14908
14909         ac_header_compiler=no
14910 fi
14911
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14914 echo "${ECHO_T}$ac_header_compiler" >&6; }
14915
14916 # Is the header present?
14917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14919 cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h.  */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h.  */
14925 #include <$ac_header>
14926 _ACEOF
14927 if { (ac_try="$ac_cpp conftest.$ac_ext"
14928 case "(($ac_try" in
14929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930   *) ac_try_echo=$ac_try;;
14931 esac
14932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14934   ac_status=$?
14935   grep -v '^ *+' conftest.er1 >conftest.err
14936   rm -f conftest.er1
14937   cat conftest.err >&5
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); } >/dev/null; then
14940   if test -s conftest.err; then
14941     ac_cpp_err=$ac_c_preproc_warn_flag
14942     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14943   else
14944     ac_cpp_err=
14945   fi
14946 else
14947   ac_cpp_err=yes
14948 fi
14949 if test -z "$ac_cpp_err"; then
14950   ac_header_preproc=yes
14951 else
14952   echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955   ac_header_preproc=no
14956 fi
14957
14958 rm -f conftest.err conftest.$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14960 echo "${ECHO_T}$ac_header_preproc" >&6; }
14961
14962 # So?  What about this header?
14963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14964   yes:no: )
14965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14969     ac_header_preproc=yes
14970     ;;
14971   no:yes:* )
14972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14984     ( cat <<\_ASBOX
14985 ## ------------------------------ ##
14986 ## Report this to bugs@yourdomain ##
14987 ## ------------------------------ ##
14988 _ASBOX
14989      ) | sed "s/^/$as_me: WARNING:     /" >&2
14990     ;;
14991 esac
14992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995   echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997   eval "$as_ac_Header=\$ac_header_preproc"
14998 fi
14999 ac_res=`eval echo '${'$as_ac_Header'}'`
15000                { echo "$as_me:$LINENO: result: $ac_res" >&5
15001 echo "${ECHO_T}$ac_res" >&6; }
15002
15003 fi
15004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15005   cat >>confdefs.h <<_ACEOF
15006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15007 _ACEOF
15008
15009 fi
15010
15011 done
15012
15013
15014 for ac_header in valgrind/valgrind.h
15015 do
15016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15018   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021   echo $ECHO_N "(cached) $ECHO_C" >&6
15022 fi
15023 ac_res=`eval echo '${'$as_ac_Header'}'`
15024                { echo "$as_me:$LINENO: result: $ac_res" >&5
15025 echo "${ECHO_T}$ac_res" >&6; }
15026 else
15027   # Is the header compilable?
15028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15030 cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h.  */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h.  */
15036 $ac_includes_default
15037 #include <$ac_header>
15038 _ACEOF
15039 rm -f conftest.$ac_objext
15040 if { (ac_try="$ac_compile"
15041 case "(($ac_try" in
15042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043   *) ac_try_echo=$ac_try;;
15044 esac
15045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046   (eval "$ac_compile") 2>conftest.er1
15047   ac_status=$?
15048   grep -v '^ *+' conftest.er1 >conftest.err
15049   rm -f conftest.er1
15050   cat conftest.err >&5
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); } &&
15053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15054   { (case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_try") 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; } &&
15063          { ac_try='test -s conftest.$ac_objext'
15064   { (case "(($ac_try" in
15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066   *) ac_try_echo=$ac_try;;
15067 esac
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069   (eval "$ac_try") 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; }; then
15073   ac_header_compiler=yes
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078         ac_header_compiler=no
15079 fi
15080
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15083 echo "${ECHO_T}$ac_header_compiler" >&6; }
15084
15085 # Is the header present?
15086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h.  */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h.  */
15094 #include <$ac_header>
15095 _ACEOF
15096 if { (ac_try="$ac_cpp conftest.$ac_ext"
15097 case "(($ac_try" in
15098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099   *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15103   ac_status=$?
15104   grep -v '^ *+' conftest.er1 >conftest.err
15105   rm -f conftest.er1
15106   cat conftest.err >&5
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); } >/dev/null; then
15109   if test -s conftest.err; then
15110     ac_cpp_err=$ac_c_preproc_warn_flag
15111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15112   else
15113     ac_cpp_err=
15114   fi
15115 else
15116   ac_cpp_err=yes
15117 fi
15118 if test -z "$ac_cpp_err"; then
15119   ac_header_preproc=yes
15120 else
15121   echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124   ac_header_preproc=no
15125 fi
15126
15127 rm -f conftest.err conftest.$ac_ext
15128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15129 echo "${ECHO_T}$ac_header_preproc" >&6; }
15130
15131 # So?  What about this header?
15132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15133   yes:no: )
15134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15138     ac_header_preproc=yes
15139     ;;
15140   no:yes:* )
15141     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15143     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15144 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15145     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15147     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15148 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15151     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15153     ( cat <<\_ASBOX
15154 ## ------------------------------ ##
15155 ## Report this to bugs@yourdomain ##
15156 ## ------------------------------ ##
15157 _ASBOX
15158      ) | sed "s/^/$as_me: WARNING:     /" >&2
15159     ;;
15160 esac
15161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15164   echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166   eval "$as_ac_Header=\$ac_header_preproc"
15167 fi
15168 ac_res=`eval echo '${'$as_ac_Header'}'`
15169                { echo "$as_me:$LINENO: result: $ac_res" >&5
15170 echo "${ECHO_T}$ac_res" >&6; }
15171
15172 fi
15173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15174   cat >>confdefs.h <<_ACEOF
15175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15176 _ACEOF
15177
15178 fi
15179
15180 done
15181
15182
15183 for ac_header in fenv.h
15184 do
15185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15187   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15190   echo $ECHO_N "(cached) $ECHO_C" >&6
15191 fi
15192 ac_res=`eval echo '${'$as_ac_Header'}'`
15193                { echo "$as_me:$LINENO: result: $ac_res" >&5
15194 echo "${ECHO_T}$ac_res" >&6; }
15195 else
15196   # Is the header compilable?
15197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h.  */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h.  */
15205 $ac_includes_default
15206 #include <$ac_header>
15207 _ACEOF
15208 rm -f conftest.$ac_objext
15209 if { (ac_try="$ac_compile"
15210 case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_compile") 2>conftest.er1
15216   ac_status=$?
15217   grep -v '^ *+' conftest.er1 >conftest.err
15218   rm -f conftest.er1
15219   cat conftest.err >&5
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); } &&
15222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15223   { (case "(($ac_try" in
15224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225   *) ac_try_echo=$ac_try;;
15226 esac
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228   (eval "$ac_try") 2>&5
15229   ac_status=$?
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); }; } &&
15232          { ac_try='test -s conftest.$ac_objext'
15233   { (case "(($ac_try" in
15234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235   *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238   (eval "$ac_try") 2>&5
15239   ac_status=$?
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); }; }; then
15242   ac_header_compiler=yes
15243 else
15244   echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15246
15247         ac_header_compiler=no
15248 fi
15249
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15252 echo "${ECHO_T}$ac_header_compiler" >&6; }
15253
15254 # Is the header present?
15255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15257 cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h.  */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h.  */
15263 #include <$ac_header>
15264 _ACEOF
15265 if { (ac_try="$ac_cpp conftest.$ac_ext"
15266 case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15272   ac_status=$?
15273   grep -v '^ *+' conftest.er1 >conftest.err
15274   rm -f conftest.er1
15275   cat conftest.err >&5
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } >/dev/null; then
15278   if test -s conftest.err; then
15279     ac_cpp_err=$ac_c_preproc_warn_flag
15280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15281   else
15282     ac_cpp_err=
15283   fi
15284 else
15285   ac_cpp_err=yes
15286 fi
15287 if test -z "$ac_cpp_err"; then
15288   ac_header_preproc=yes
15289 else
15290   echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293   ac_header_preproc=no
15294 fi
15295
15296 rm -f conftest.err conftest.$ac_ext
15297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15298 echo "${ECHO_T}$ac_header_preproc" >&6; }
15299
15300 # So?  What about this header?
15301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15302   yes:no: )
15303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15307     ac_header_preproc=yes
15308     ;;
15309   no:yes:* )
15310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15322     ( cat <<\_ASBOX
15323 ## ------------------------------ ##
15324 ## Report this to bugs@yourdomain ##
15325 ## ------------------------------ ##
15326 _ASBOX
15327      ) | sed "s/^/$as_me: WARNING:     /" >&2
15328     ;;
15329 esac
15330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   eval "$as_ac_Header=\$ac_header_preproc"
15336 fi
15337 ac_res=`eval echo '${'$as_ac_Header'}'`
15338                { echo "$as_me:$LINENO: result: $ac_res" >&5
15339 echo "${ECHO_T}$ac_res" >&6; }
15340
15341 fi
15342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15343   cat >>confdefs.h <<_ACEOF
15344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15345 _ACEOF
15346
15347 fi
15348
15349 done
15350
15351 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15352
15353 for ac_header in pthread.h
15354 do
15355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15360   echo $ECHO_N "(cached) $ECHO_C" >&6
15361 fi
15362 ac_res=`eval echo '${'$as_ac_Header'}'`
15363                { echo "$as_me:$LINENO: result: $ac_res" >&5
15364 echo "${ECHO_T}$ac_res" >&6; }
15365 else
15366   # Is the header compilable?
15367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h.  */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h.  */
15375 $ac_includes_default
15376 #include <$ac_header>
15377 _ACEOF
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382   *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385   (eval "$ac_compile") 2>conftest.er1
15386   ac_status=$?
15387   grep -v '^ *+' conftest.er1 >conftest.err
15388   rm -f conftest.er1
15389   cat conftest.err >&5
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } &&
15392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15393   { (case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398   (eval "$ac_try") 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; } &&
15402          { ac_try='test -s conftest.$ac_objext'
15403   { (case "(($ac_try" in
15404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405   *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408   (eval "$ac_try") 2>&5
15409   ac_status=$?
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); }; }; then
15412   ac_header_compiler=yes
15413 else
15414   echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417         ac_header_compiler=no
15418 fi
15419
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15422 echo "${ECHO_T}$ac_header_compiler" >&6; }
15423
15424 # Is the header present?
15425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h.  */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h.  */
15433 #include <$ac_header>
15434 _ACEOF
15435 if { (ac_try="$ac_cpp conftest.$ac_ext"
15436 case "(($ac_try" in
15437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438   *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15442   ac_status=$?
15443   grep -v '^ *+' conftest.er1 >conftest.err
15444   rm -f conftest.er1
15445   cat conftest.err >&5
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); } >/dev/null; then
15448   if test -s conftest.err; then
15449     ac_cpp_err=$ac_c_preproc_warn_flag
15450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15451   else
15452     ac_cpp_err=
15453   fi
15454 else
15455   ac_cpp_err=yes
15456 fi
15457 if test -z "$ac_cpp_err"; then
15458   ac_header_preproc=yes
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463   ac_header_preproc=no
15464 fi
15465
15466 rm -f conftest.err conftest.$ac_ext
15467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15468 echo "${ECHO_T}$ac_header_preproc" >&6; }
15469
15470 # So?  What about this header?
15471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15472   yes:no: )
15473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15477     ac_header_preproc=yes
15478     ;;
15479   no:yes:* )
15480     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15482     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15483 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15484     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15486     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15487 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15490     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15492     ( cat <<\_ASBOX
15493 ## ------------------------------ ##
15494 ## Report this to bugs@yourdomain ##
15495 ## ------------------------------ ##
15496 _ASBOX
15497      ) | sed "s/^/$as_me: WARNING:     /" >&2
15498     ;;
15499 esac
15500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15503   echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505   eval "$as_ac_Header=\$ac_header_preproc"
15506 fi
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508                { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15510
15511 fi
15512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15513   cat >>confdefs.h <<_ACEOF
15514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15515 _ACEOF
15516  HAVE_PTHREAD=1
15517
15518 else
15519   HAVE_PTHREAD=0
15520
15521 fi
15522
15523 done
15524
15525 else
15526   HAVE_PTHREAD=0
15527
15528 fi
15529
15530 if test "$llvm_cv_enable_libffi" = "yes" ; then
15531
15532
15533 for ac_header in ffi.h ffi/ffi.h
15534 do
15535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15537   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540   echo $ECHO_N "(cached) $ECHO_C" >&6
15541 fi
15542 ac_res=`eval echo '${'$as_ac_Header'}'`
15543                { echo "$as_me:$LINENO: result: $ac_res" >&5
15544 echo "${ECHO_T}$ac_res" >&6; }
15545 else
15546   # Is the header compilable?
15547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555 $ac_includes_default
15556 #include <$ac_header>
15557 _ACEOF
15558 rm -f conftest.$ac_objext
15559 if { (ac_try="$ac_compile"
15560 case "(($ac_try" in
15561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562   *) ac_try_echo=$ac_try;;
15563 esac
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565   (eval "$ac_compile") 2>conftest.er1
15566   ac_status=$?
15567   grep -v '^ *+' conftest.er1 >conftest.err
15568   rm -f conftest.er1
15569   cat conftest.err >&5
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } &&
15572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15573   { (case "(($ac_try" in
15574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575   *) ac_try_echo=$ac_try;;
15576 esac
15577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578   (eval "$ac_try") 2>&5
15579   ac_status=$?
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); }; } &&
15582          { ac_try='test -s conftest.$ac_objext'
15583   { (case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_try") 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; }; then
15592   ac_header_compiler=yes
15593 else
15594   echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597         ac_header_compiler=no
15598 fi
15599
15600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15602 echo "${ECHO_T}$ac_header_compiler" >&6; }
15603
15604 # Is the header present?
15605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15607 cat >conftest.$ac_ext <<_ACEOF
15608 /* confdefs.h.  */
15609 _ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h.  */
15613 #include <$ac_header>
15614 _ACEOF
15615 if { (ac_try="$ac_cpp conftest.$ac_ext"
15616 case "(($ac_try" in
15617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618   *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } >/dev/null; then
15628   if test -s conftest.err; then
15629     ac_cpp_err=$ac_c_preproc_warn_flag
15630     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15631   else
15632     ac_cpp_err=
15633   fi
15634 else
15635   ac_cpp_err=yes
15636 fi
15637 if test -z "$ac_cpp_err"; then
15638   ac_header_preproc=yes
15639 else
15640   echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643   ac_header_preproc=no
15644 fi
15645
15646 rm -f conftest.err conftest.$ac_ext
15647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15648 echo "${ECHO_T}$ac_header_preproc" >&6; }
15649
15650 # So?  What about this header?
15651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15652   yes:no: )
15653     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15657     ac_header_preproc=yes
15658     ;;
15659   no:yes:* )
15660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15662     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15663 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15664     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15666     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15667 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15670     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15672     ( cat <<\_ASBOX
15673 ## ------------------------------ ##
15674 ## Report this to bugs@yourdomain ##
15675 ## ------------------------------ ##
15676 _ASBOX
15677      ) | sed "s/^/$as_me: WARNING:     /" >&2
15678     ;;
15679 esac
15680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15683   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685   eval "$as_ac_Header=\$ac_header_preproc"
15686 fi
15687 ac_res=`eval echo '${'$as_ac_Header'}'`
15688                { echo "$as_me:$LINENO: result: $ac_res" >&5
15689 echo "${ECHO_T}$ac_res" >&6; }
15690
15691 fi
15692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15693   cat >>confdefs.h <<_ACEOF
15694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695 _ACEOF
15696
15697 fi
15698
15699 done
15700
15701 fi
15702
15703
15704 for ac_header in CrashReporterClient.h
15705 do
15706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15708   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711   echo $ECHO_N "(cached) $ECHO_C" >&6
15712 fi
15713 ac_res=`eval echo '${'$as_ac_Header'}'`
15714                { echo "$as_me:$LINENO: result: $ac_res" >&5
15715 echo "${ECHO_T}$ac_res" >&6; }
15716 else
15717   # Is the header compilable?
15718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15720 cat >conftest.$ac_ext <<_ACEOF
15721 /* confdefs.h.  */
15722 _ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h.  */
15726 $ac_includes_default
15727 #include <$ac_header>
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (ac_try="$ac_compile"
15731 case "(($ac_try" in
15732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733   *) ac_try_echo=$ac_try;;
15734 esac
15735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15736   (eval "$ac_compile") 2>conftest.er1
15737   ac_status=$?
15738   grep -v '^ *+' conftest.er1 >conftest.err
15739   rm -f conftest.er1
15740   cat conftest.err >&5
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } &&
15743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15744   { (case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_try") 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; } &&
15753          { ac_try='test -s conftest.$ac_objext'
15754   { (case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759   (eval "$ac_try") 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; }; then
15763   ac_header_compiler=yes
15764 else
15765   echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15767
15768         ac_header_compiler=no
15769 fi
15770
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15773 echo "${ECHO_T}$ac_header_compiler" >&6; }
15774
15775 # Is the header present?
15776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15778 cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h.  */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h.  */
15784 #include <$ac_header>
15785 _ACEOF
15786 if { (ac_try="$ac_cpp conftest.$ac_ext"
15787 case "(($ac_try" in
15788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789   *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15793   ac_status=$?
15794   grep -v '^ *+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } >/dev/null; then
15799   if test -s conftest.err; then
15800     ac_cpp_err=$ac_c_preproc_warn_flag
15801     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15802   else
15803     ac_cpp_err=
15804   fi
15805 else
15806   ac_cpp_err=yes
15807 fi
15808 if test -z "$ac_cpp_err"; then
15809   ac_header_preproc=yes
15810 else
15811   echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814   ac_header_preproc=no
15815 fi
15816
15817 rm -f conftest.err conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15819 echo "${ECHO_T}$ac_header_preproc" >&6; }
15820
15821 # So?  What about this header?
15822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15823   yes:no: )
15824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15828     ac_header_preproc=yes
15829     ;;
15830   no:yes:* )
15831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15833     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15834 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15835     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15837     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15838 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15843     ( cat <<\_ASBOX
15844 ## ------------------------------ ##
15845 ## Report this to bugs@yourdomain ##
15846 ## ------------------------------ ##
15847 _ASBOX
15848      ) | sed "s/^/$as_me: WARNING:     /" >&2
15849     ;;
15850 esac
15851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15854   echo $ECHO_N "(cached) $ECHO_C" >&6
15855 else
15856   eval "$as_ac_Header=\$ac_header_preproc"
15857 fi
15858 ac_res=`eval echo '${'$as_ac_Header'}'`
15859                { echo "$as_me:$LINENO: result: $ac_res" >&5
15860 echo "${ECHO_T}$ac_res" >&6; }
15861
15862 fi
15863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15864   cat >>confdefs.h <<_ACEOF
15865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15866 _ACEOF
15867
15868 fi
15869
15870 done
15871
15872
15873 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15874 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15875 cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h.  */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h.  */
15881 extern const char *__crashreporter_info__;
15882       int main() {
15883         __crashreporter_info__ = "test";
15884         return 0;
15885       }
15886
15887 _ACEOF
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (ac_try="$ac_link"
15890 case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_link") 2>conftest.er1
15896   ac_status=$?
15897   grep -v '^ *+' conftest.er1 >conftest.err
15898   rm -f conftest.er1
15899   cat conftest.err >&5
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); } &&
15902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15903   { (case "(($ac_try" in
15904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905   *) ac_try_echo=$ac_try;;
15906 esac
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908   (eval "$ac_try") 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; } &&
15912          { ac_try='test -s conftest$ac_exeext'
15913   { (case "(($ac_try" in
15914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915   *) ac_try_echo=$ac_try;;
15916 esac
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918   (eval "$ac_try") 2>&5
15919   ac_status=$?
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); }; }; then
15922   { echo "$as_me:$LINENO: result: yes" >&5
15923 echo "${ECHO_T}yes" >&6; }
15924
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE_CRASHREPORTER_INFO 1
15927 _ACEOF
15928
15929 else
15930   echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15932
15933         { echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6; }
15935
15936 cat >>confdefs.h <<\_ACEOF
15937 #define HAVE_CRASHREPORTER_INFO 0
15938 _ACEOF
15939
15940 fi
15941
15942 rm -f core conftest.err conftest.$ac_objext \
15943       conftest$ac_exeext conftest.$ac_ext
15944
15945
15946
15947
15948   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15949 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15950 if test "${ac_cv_huge_val_sanity+set}" = set; then
15951   echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953
15954     ac_ext=cpp
15955 ac_cpp='$CXXCPP $CPPFLAGS'
15956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15959
15960     ac_save_CXXFLAGS=$CXXFLAGS
15961     CXXFLAGS=-pedantic
15962     if test "$cross_compiling" = yes; then
15963   ac_cv_huge_val_sanity=yes
15964 else
15965   cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971 #include <math.h>
15972 int
15973 main ()
15974 {
15975 double x = HUGE_VAL; return x != x;
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984   *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987   (eval "$ac_link") 2>&5
15988   ac_status=$?
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15991   { (case "(($ac_try" in
15992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993   *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996   (eval "$ac_try") 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; }; then
16000   ac_cv_huge_val_sanity=yes
16001 else
16002   echo "$as_me: program exited with status $ac_status" >&5
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16005
16006 ( exit $ac_status )
16007 ac_cv_huge_val_sanity=no
16008 fi
16009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16010 fi
16011
16012
16013     CXXFLAGS=$ac_save_CXXFLAGS
16014     ac_ext=c
16015 ac_cpp='$CPP $CPPFLAGS'
16016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16019
16020
16021 fi
16022 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16023 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16024   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16025
16026
16027 { echo "$as_me:$LINENO: checking for pid_t" >&5
16028 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16029 if test "${ac_cv_type_pid_t+set}" = set; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032   cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038 $ac_includes_default
16039 typedef pid_t ac__type_new_;
16040 int
16041 main ()
16042 {
16043 if ((ac__type_new_ *) 0)
16044   return 0;
16045 if (sizeof (ac__type_new_))
16046   return 0;
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 rm -f conftest.$ac_objext
16052 if { (ac_try="$ac_compile"
16053 case "(($ac_try" in
16054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055   *) ac_try_echo=$ac_try;;
16056 esac
16057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16058   (eval "$ac_compile") 2>conftest.er1
16059   ac_status=$?
16060   grep -v '^ *+' conftest.er1 >conftest.err
16061   rm -f conftest.er1
16062   cat conftest.err >&5
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); } &&
16065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16066   { (case "(($ac_try" in
16067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068   *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071   (eval "$ac_try") 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; } &&
16075          { ac_try='test -s conftest.$ac_objext'
16076   { (case "(($ac_try" in
16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078   *) ac_try_echo=$ac_try;;
16079 esac
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081   (eval "$ac_try") 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); }; }; then
16085   ac_cv_type_pid_t=yes
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090         ac_cv_type_pid_t=no
16091 fi
16092
16093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16094 fi
16095 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16096 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16097 if test $ac_cv_type_pid_t = yes; then
16098   :
16099 else
16100
16101 cat >>confdefs.h <<_ACEOF
16102 #define pid_t int
16103 _ACEOF
16104
16105 fi
16106
16107 { echo "$as_me:$LINENO: checking for size_t" >&5
16108 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16109 if test "${ac_cv_type_size_t+set}" = set; then
16110   echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112   cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h.  */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h.  */
16118 $ac_includes_default
16119 typedef size_t ac__type_new_;
16120 int
16121 main ()
16122 {
16123 if ((ac__type_new_ *) 0)
16124   return 0;
16125 if (sizeof (ac__type_new_))
16126   return 0;
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 rm -f conftest.$ac_objext
16132 if { (ac_try="$ac_compile"
16133 case "(($ac_try" in
16134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135   *) ac_try_echo=$ac_try;;
16136 esac
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138   (eval "$ac_compile") 2>conftest.er1
16139   ac_status=$?
16140   grep -v '^ *+' conftest.er1 >conftest.err
16141   rm -f conftest.er1
16142   cat conftest.err >&5
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); } &&
16145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16146   { (case "(($ac_try" in
16147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148   *) ac_try_echo=$ac_try;;
16149 esac
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151   (eval "$ac_try") 2>&5
16152   ac_status=$?
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); }; } &&
16155          { ac_try='test -s conftest.$ac_objext'
16156   { (case "(($ac_try" in
16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158   *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161   (eval "$ac_try") 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); }; }; then
16165   ac_cv_type_size_t=yes
16166 else
16167   echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16169
16170         ac_cv_type_size_t=no
16171 fi
16172
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 fi
16175 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16176 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16177 if test $ac_cv_type_size_t = yes; then
16178   :
16179 else
16180
16181 cat >>confdefs.h <<_ACEOF
16182 #define size_t unsigned int
16183 _ACEOF
16184
16185 fi
16186
16187
16188 cat >>confdefs.h <<_ACEOF
16189 #define RETSIGTYPE void
16190 _ACEOF
16191
16192 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16193 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16194 if test "${ac_cv_struct_tm+set}" = set; then
16195   echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197   cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h.  */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h.  */
16203 #include <sys/types.h>
16204 #include <time.h>
16205
16206 int
16207 main ()
16208 {
16209 struct tm *tp; tp->tm_sec;
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218   *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221   (eval "$ac_compile") 2>conftest.er1
16222   ac_status=$?
16223   grep -v '^ *+' conftest.er1 >conftest.err
16224   rm -f conftest.er1
16225   cat conftest.err >&5
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); } &&
16228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16229   { (case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_try") 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; } &&
16238          { ac_try='test -s conftest.$ac_objext'
16239   { (case "(($ac_try" in
16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241   *) ac_try_echo=$ac_try;;
16242 esac
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244   (eval "$ac_try") 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; }; then
16248   ac_cv_struct_tm=time.h
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253         ac_cv_struct_tm=sys/time.h
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257 fi
16258 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16259 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16260 if test $ac_cv_struct_tm = sys/time.h; then
16261
16262 cat >>confdefs.h <<\_ACEOF
16263 #define TM_IN_SYS_TIME 1
16264 _ACEOF
16265
16266 fi
16267
16268 { echo "$as_me:$LINENO: checking for int64_t" >&5
16269 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16270 if test "${ac_cv_type_int64_t+set}" = set; then
16271   echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273   cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279 $ac_includes_default
16280 typedef int64_t ac__type_new_;
16281 int
16282 main ()
16283 {
16284 if ((ac__type_new_ *) 0)
16285   return 0;
16286 if (sizeof (ac__type_new_))
16287   return 0;
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (ac_try="$ac_compile"
16294 case "(($ac_try" in
16295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296   *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299   (eval "$ac_compile") 2>conftest.er1
16300   ac_status=$?
16301   grep -v '^ *+' conftest.er1 >conftest.err
16302   rm -f conftest.er1
16303   cat conftest.err >&5
16304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); } &&
16306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16307   { (case "(($ac_try" in
16308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309   *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312   (eval "$ac_try") 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; } &&
16316          { ac_try='test -s conftest.$ac_objext'
16317   { (case "(($ac_try" in
16318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319   *) ac_try_echo=$ac_try;;
16320 esac
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322   (eval "$ac_try") 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; }; then
16326   ac_cv_type_int64_t=yes
16327 else
16328   echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331         ac_cv_type_int64_t=no
16332 fi
16333
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 fi
16336 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16337 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16338 if test $ac_cv_type_int64_t = yes; then
16339
16340 cat >>confdefs.h <<_ACEOF
16341 #define HAVE_INT64_T 1
16342 _ACEOF
16343
16344
16345 else
16346   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16347 echo "$as_me: error: Type int64_t required but not found" >&2;}
16348    { (exit 1); exit 1; }; }
16349 fi
16350
16351 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16352 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16353 if test "${ac_cv_type_uint64_t+set}" = set; then
16354   echo $ECHO_N "(cached) $ECHO_C" >&6
16355 else
16356   cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 $ac_includes_default
16363 typedef uint64_t ac__type_new_;
16364 int
16365 main ()
16366 {
16367 if ((ac__type_new_ *) 0)
16368   return 0;
16369 if (sizeof (ac__type_new_))
16370   return 0;
16371   ;
16372   return 0;
16373 }
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_compile") 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } &&
16389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390   { (case "(($ac_try" in
16391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392   *) ac_try_echo=$ac_try;;
16393 esac
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395   (eval "$ac_try") 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; } &&
16399          { ac_try='test -s conftest.$ac_objext'
16400   { (case "(($ac_try" in
16401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402   *) ac_try_echo=$ac_try;;
16403 esac
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405   (eval "$ac_try") 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; }; then
16409   ac_cv_type_uint64_t=yes
16410 else
16411   echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16413
16414         ac_cv_type_uint64_t=no
16415 fi
16416
16417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418 fi
16419 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16420 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16421 if test $ac_cv_type_uint64_t = yes; then
16422
16423 cat >>confdefs.h <<_ACEOF
16424 #define HAVE_UINT64_T 1
16425 _ACEOF
16426
16427
16428 else
16429   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16430 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16431 if test "${ac_cv_type_u_int64_t+set}" = set; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440 $ac_includes_default
16441 typedef u_int64_t ac__type_new_;
16442 int
16443 main ()
16444 {
16445 if ((ac__type_new_ *) 0)
16446   return 0;
16447 if (sizeof (ac__type_new_))
16448   return 0;
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (ac_try="$ac_compile"
16455 case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_compile") 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } &&
16467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468   { (case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_try") 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; } &&
16477          { ac_try='test -s conftest.$ac_objext'
16478   { (case "(($ac_try" in
16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480   *) ac_try_echo=$ac_try;;
16481 esac
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483   (eval "$ac_try") 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; }; then
16487   ac_cv_type_u_int64_t=yes
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492         ac_cv_type_u_int64_t=no
16493 fi
16494
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 fi
16497 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16498 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16499 if test $ac_cv_type_u_int64_t = yes; then
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_U_INT64_T 1
16503 _ACEOF
16504
16505
16506 else
16507   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16508 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16509    { (exit 1); exit 1; }; }
16510 fi
16511
16512 fi
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16524 do
16525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16539 #define $ac_func innocuous_$ac_func
16540
16541 /* System header to define __stub macros and hopefully few prototypes,
16542     which can conflict with char $ac_func (); below.
16543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16544     <limits.h> exists even on freestanding compilers.  */
16545
16546 #ifdef __STDC__
16547 # include <limits.h>
16548 #else
16549 # include <assert.h>
16550 #endif
16551
16552 #undef $ac_func
16553
16554 /* Override any GCC internal prototype to avoid an error.
16555    Use char because int might match the return type of a GCC
16556    builtin and then its argument prototype would still apply.  */
16557 #ifdef __cplusplus
16558 extern "C"
16559 #endif
16560 char $ac_func ();
16561 /* The GNU C library defines this for functions which it implements
16562     to always fail with ENOSYS.  Some functions are actually named
16563     something starting with __ and the normal name is an alias.  */
16564 #if defined __stub_$ac_func || defined __stub___$ac_func
16565 choke me
16566 #endif
16567
16568 int
16569 main ()
16570 {
16571 return $ac_func ();
16572   ;
16573   return 0;
16574 }
16575 _ACEOF
16576 rm -f conftest.$ac_objext conftest$ac_exeext
16577 if { (ac_try="$ac_link"
16578 case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_link") 2>conftest.er1
16584   ac_status=$?
16585   grep -v '^ *+' conftest.er1 >conftest.err
16586   rm -f conftest.er1
16587   cat conftest.err >&5
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); } &&
16590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591   { (case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_try") 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; } &&
16600          { ac_try='test -s conftest$ac_exeext'
16601   { (case "(($ac_try" in
16602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603   *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606   (eval "$ac_try") 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   eval "$as_ac_var=yes"
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615         eval "$as_ac_var=no"
16616 fi
16617
16618 rm -f core conftest.err conftest.$ac_objext \
16619       conftest$ac_exeext conftest.$ac_ext
16620 fi
16621 ac_res=`eval echo '${'$as_ac_var'}'`
16622                { echo "$as_me:$LINENO: result: $ac_res" >&5
16623 echo "${ECHO_T}$ac_res" >&6; }
16624 if test `eval echo '${'$as_ac_var'}'` = yes; then
16625   cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16627 _ACEOF
16628
16629 fi
16630 done
16631
16632
16633
16634
16635
16636 for ac_func in powf fmodf strtof round
16637 do
16638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644   cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16652 #define $ac_func innocuous_$ac_func
16653
16654 /* System header to define __stub macros and hopefully few prototypes,
16655     which can conflict with char $ac_func (); below.
16656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657     <limits.h> exists even on freestanding compilers.  */
16658
16659 #ifdef __STDC__
16660 # include <limits.h>
16661 #else
16662 # include <assert.h>
16663 #endif
16664
16665 #undef $ac_func
16666
16667 /* Override any GCC internal prototype to avoid an error.
16668    Use char because int might match the return type of a GCC
16669    builtin and then its argument prototype would still apply.  */
16670 #ifdef __cplusplus
16671 extern "C"
16672 #endif
16673 char $ac_func ();
16674 /* The GNU C library defines this for functions which it implements
16675     to always fail with ENOSYS.  Some functions are actually named
16676     something starting with __ and the normal name is an alias.  */
16677 #if defined __stub_$ac_func || defined __stub___$ac_func
16678 choke me
16679 #endif
16680
16681 int
16682 main ()
16683 {
16684 return $ac_func ();
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext conftest$ac_exeext
16690 if { (ac_try="$ac_link"
16691 case "(($ac_try" in
16692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693   *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696   (eval "$ac_link") 2>conftest.er1
16697   ac_status=$?
16698   grep -v '^ *+' conftest.er1 >conftest.err
16699   rm -f conftest.er1
16700   cat conftest.err >&5
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); } &&
16703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704   { (case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_try") 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; } &&
16713          { ac_try='test -s conftest$ac_exeext'
16714   { (case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_try") 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; }; then
16723   eval "$as_ac_var=yes"
16724 else
16725   echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728         eval "$as_ac_var=no"
16729 fi
16730
16731 rm -f core conftest.err conftest.$ac_objext \
16732       conftest$ac_exeext conftest.$ac_ext
16733 fi
16734 ac_res=`eval echo '${'$as_ac_var'}'`
16735                { echo "$as_me:$LINENO: result: $ac_res" >&5
16736 echo "${ECHO_T}$ac_res" >&6; }
16737 if test `eval echo '${'$as_ac_var'}'` = yes; then
16738   cat >>confdefs.h <<_ACEOF
16739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16740 _ACEOF
16741
16742 fi
16743 done
16744
16745
16746
16747
16748
16749
16750 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16751 do
16752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16766 #define $ac_func innocuous_$ac_func
16767
16768 /* System header to define __stub macros and hopefully few prototypes,
16769     which can conflict with char $ac_func (); below.
16770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771     <limits.h> exists even on freestanding compilers.  */
16772
16773 #ifdef __STDC__
16774 # include <limits.h>
16775 #else
16776 # include <assert.h>
16777 #endif
16778
16779 #undef $ac_func
16780
16781 /* Override any GCC internal prototype to avoid an error.
16782    Use char because int might match the return type of a GCC
16783    builtin and then its argument prototype would still apply.  */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 char $ac_func ();
16788 /* The GNU C library defines this for functions which it implements
16789     to always fail with ENOSYS.  Some functions are actually named
16790     something starting with __ and the normal name is an alias.  */
16791 #if defined __stub_$ac_func || defined __stub___$ac_func
16792 choke me
16793 #endif
16794
16795 int
16796 main ()
16797 {
16798 return $ac_func ();
16799   ;
16800   return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_link") 2>conftest.er1
16811   ac_status=$?
16812   grep -v '^ *+' conftest.er1 >conftest.err
16813   rm -f conftest.er1
16814   cat conftest.err >&5
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } &&
16817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818   { (case "(($ac_try" in
16819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820   *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823   (eval "$ac_try") 2>&5
16824   ac_status=$?
16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826   (exit $ac_status); }; } &&
16827          { ac_try='test -s conftest$ac_exeext'
16828   { (case "(($ac_try" in
16829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830   *) ac_try_echo=$ac_try;;
16831 esac
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833   (eval "$ac_try") 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; }; then
16837   eval "$as_ac_var=yes"
16838 else
16839   echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16841
16842         eval "$as_ac_var=no"
16843 fi
16844
16845 rm -f core conftest.err conftest.$ac_objext \
16846       conftest$ac_exeext conftest.$ac_ext
16847 fi
16848 ac_res=`eval echo '${'$as_ac_var'}'`
16849                { echo "$as_me:$LINENO: result: $ac_res" >&5
16850 echo "${ECHO_T}$ac_res" >&6; }
16851 if test `eval echo '${'$as_ac_var'}'` = yes; then
16852   cat >>confdefs.h <<_ACEOF
16853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16854 _ACEOF
16855
16856 fi
16857 done
16858
16859
16860
16861
16862 for ac_func in isatty mkdtemp mkstemp
16863 do
16864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16868   echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870   cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16878 #define $ac_func innocuous_$ac_func
16879
16880 /* System header to define __stub macros and hopefully few prototypes,
16881     which can conflict with char $ac_func (); below.
16882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16883     <limits.h> exists even on freestanding compilers.  */
16884
16885 #ifdef __STDC__
16886 # include <limits.h>
16887 #else
16888 # include <assert.h>
16889 #endif
16890
16891 #undef $ac_func
16892
16893 /* Override any GCC internal prototype to avoid an error.
16894    Use char because int might match the return type of a GCC
16895    builtin and then its argument prototype would still apply.  */
16896 #ifdef __cplusplus
16897 extern "C"
16898 #endif
16899 char $ac_func ();
16900 /* The GNU C library defines this for functions which it implements
16901     to always fail with ENOSYS.  Some functions are actually named
16902     something starting with __ and the normal name is an alias.  */
16903 #if defined __stub_$ac_func || defined __stub___$ac_func
16904 choke me
16905 #endif
16906
16907 int
16908 main ()
16909 {
16910 return $ac_func ();
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext conftest$ac_exeext
16916 if { (ac_try="$ac_link"
16917 case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_link") 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } &&
16929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16930   { (case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_try") 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; } &&
16939          { ac_try='test -s conftest$ac_exeext'
16940   { (case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945   (eval "$ac_try") 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; }; then
16949   eval "$as_ac_var=yes"
16950 else
16951   echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954         eval "$as_ac_var=no"
16955 fi
16956
16957 rm -f core conftest.err conftest.$ac_objext \
16958       conftest$ac_exeext conftest.$ac_ext
16959 fi
16960 ac_res=`eval echo '${'$as_ac_var'}'`
16961                { echo "$as_me:$LINENO: result: $ac_res" >&5
16962 echo "${ECHO_T}$ac_res" >&6; }
16963 if test `eval echo '${'$as_ac_var'}'` = yes; then
16964   cat >>confdefs.h <<_ACEOF
16965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16966 _ACEOF
16967
16968 fi
16969 done
16970
16971
16972
16973
16974
16975
16976
16977 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16978 do
16979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16983   echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985   cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16993 #define $ac_func innocuous_$ac_func
16994
16995 /* System header to define __stub macros and hopefully few prototypes,
16996     which can conflict with char $ac_func (); below.
16997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16998     <limits.h> exists even on freestanding compilers.  */
16999
17000 #ifdef __STDC__
17001 # include <limits.h>
17002 #else
17003 # include <assert.h>
17004 #endif
17005
17006 #undef $ac_func
17007
17008 /* Override any GCC internal prototype to avoid an error.
17009    Use char because int might match the return type of a GCC
17010    builtin and then its argument prototype would still apply.  */
17011 #ifdef __cplusplus
17012 extern "C"
17013 #endif
17014 char $ac_func ();
17015 /* The GNU C library defines this for functions which it implements
17016     to always fail with ENOSYS.  Some functions are actually named
17017     something starting with __ and the normal name is an alias.  */
17018 #if defined __stub_$ac_func || defined __stub___$ac_func
17019 choke me
17020 #endif
17021
17022 int
17023 main ()
17024 {
17025 return $ac_func ();
17026   ;
17027   return 0;
17028 }
17029 _ACEOF
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (ac_try="$ac_link"
17032 case "(($ac_try" in
17033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034   *) ac_try_echo=$ac_try;;
17035 esac
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037   (eval "$ac_link") 2>conftest.er1
17038   ac_status=$?
17039   grep -v '^ *+' conftest.er1 >conftest.err
17040   rm -f conftest.er1
17041   cat conftest.err >&5
17042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043   (exit $ac_status); } &&
17044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045   { (case "(($ac_try" in
17046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047   *) ac_try_echo=$ac_try;;
17048 esac
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050   (eval "$ac_try") 2>&5
17051   ac_status=$?
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); }; } &&
17054          { ac_try='test -s conftest$ac_exeext'
17055   { (case "(($ac_try" in
17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057   *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060   (eval "$ac_try") 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; }; then
17064   eval "$as_ac_var=yes"
17065 else
17066   echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17068
17069         eval "$as_ac_var=no"
17070 fi
17071
17072 rm -f core conftest.err conftest.$ac_objext \
17073       conftest$ac_exeext conftest.$ac_ext
17074 fi
17075 ac_res=`eval echo '${'$as_ac_var'}'`
17076                { echo "$as_me:$LINENO: result: $ac_res" >&5
17077 echo "${ECHO_T}$ac_res" >&6; }
17078 if test `eval echo '${'$as_ac_var'}'` = yes; then
17079   cat >>confdefs.h <<_ACEOF
17080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17081 _ACEOF
17082
17083 fi
17084 done
17085
17086
17087
17088
17089 for ac_func in strerror strerror_r setenv
17090 do
17091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097   cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h.  */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h.  */
17103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17105 #define $ac_func innocuous_$ac_func
17106
17107 /* System header to define __stub macros and hopefully few prototypes,
17108     which can conflict with char $ac_func (); below.
17109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110     <limits.h> exists even on freestanding compilers.  */
17111
17112 #ifdef __STDC__
17113 # include <limits.h>
17114 #else
17115 # include <assert.h>
17116 #endif
17117
17118 #undef $ac_func
17119
17120 /* Override any GCC internal prototype to avoid an error.
17121    Use char because int might match the return type of a GCC
17122    builtin and then its argument prototype would still apply.  */
17123 #ifdef __cplusplus
17124 extern "C"
17125 #endif
17126 char $ac_func ();
17127 /* The GNU C library defines this for functions which it implements
17128     to always fail with ENOSYS.  Some functions are actually named
17129     something starting with __ and the normal name is an alias.  */
17130 #if defined __stub_$ac_func || defined __stub___$ac_func
17131 choke me
17132 #endif
17133
17134 int
17135 main ()
17136 {
17137 return $ac_func ();
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149   (eval "$ac_link") 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } &&
17156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157   { (case "(($ac_try" in
17158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159   *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162   (eval "$ac_try") 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); }; } &&
17166          { ac_try='test -s conftest$ac_exeext'
17167   { (case "(($ac_try" in
17168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169   *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172   (eval "$ac_try") 2>&5
17173   ac_status=$?
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); }; }; then
17176   eval "$as_ac_var=yes"
17177 else
17178   echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181         eval "$as_ac_var=no"
17182 fi
17183
17184 rm -f core conftest.err conftest.$ac_objext \
17185       conftest$ac_exeext conftest.$ac_ext
17186 fi
17187 ac_res=`eval echo '${'$as_ac_var'}'`
17188                { echo "$as_me:$LINENO: result: $ac_res" >&5
17189 echo "${ECHO_T}$ac_res" >&6; }
17190 if test `eval echo '${'$as_ac_var'}'` = yes; then
17191   cat >>confdefs.h <<_ACEOF
17192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17193 _ACEOF
17194
17195 fi
17196 done
17197
17198
17199
17200
17201
17202 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17203 do
17204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17208   echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210   cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17218 #define $ac_func innocuous_$ac_func
17219
17220 /* System header to define __stub macros and hopefully few prototypes,
17221     which can conflict with char $ac_func (); below.
17222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223     <limits.h> exists even on freestanding compilers.  */
17224
17225 #ifdef __STDC__
17226 # include <limits.h>
17227 #else
17228 # include <assert.h>
17229 #endif
17230
17231 #undef $ac_func
17232
17233 /* Override any GCC internal prototype to avoid an error.
17234    Use char because int might match the return type of a GCC
17235    builtin and then its argument prototype would still apply.  */
17236 #ifdef __cplusplus
17237 extern "C"
17238 #endif
17239 char $ac_func ();
17240 /* The GNU C library defines this for functions which it implements
17241     to always fail with ENOSYS.  Some functions are actually named
17242     something starting with __ and the normal name is an alias.  */
17243 #if defined __stub_$ac_func || defined __stub___$ac_func
17244 choke me
17245 #endif
17246
17247 int
17248 main ()
17249 {
17250 return $ac_func ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_link") 2>conftest.er1
17263   ac_status=$?
17264   grep -v '^ *+' conftest.er1 >conftest.err
17265   rm -f conftest.er1
17266   cat conftest.err >&5
17267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268   (exit $ac_status); } &&
17269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270   { (case "(($ac_try" in
17271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272   *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275   (eval "$ac_try") 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; } &&
17279          { ac_try='test -s conftest$ac_exeext'
17280   { (case "(($ac_try" in
17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282   *) ac_try_echo=$ac_try;;
17283 esac
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285   (eval "$ac_try") 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   eval "$as_ac_var=yes"
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294         eval "$as_ac_var=no"
17295 fi
17296
17297 rm -f core conftest.err conftest.$ac_objext \
17298       conftest$ac_exeext conftest.$ac_ext
17299 fi
17300 ac_res=`eval echo '${'$as_ac_var'}'`
17301                { echo "$as_me:$LINENO: result: $ac_res" >&5
17302 echo "${ECHO_T}$ac_res" >&6; }
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304   cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17306 _ACEOF
17307
17308 fi
17309 done
17310
17311
17312
17313
17314
17315
17316 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17317 do
17318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324   cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h.  */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h.  */
17330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17332 #define $ac_func innocuous_$ac_func
17333
17334 /* System header to define __stub macros and hopefully few prototypes,
17335     which can conflict with char $ac_func (); below.
17336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17337     <limits.h> exists even on freestanding compilers.  */
17338
17339 #ifdef __STDC__
17340 # include <limits.h>
17341 #else
17342 # include <assert.h>
17343 #endif
17344
17345 #undef $ac_func
17346
17347 /* Override any GCC internal prototype to avoid an error.
17348    Use char because int might match the return type of a GCC
17349    builtin and then its argument prototype would still apply.  */
17350 #ifdef __cplusplus
17351 extern "C"
17352 #endif
17353 char $ac_func ();
17354 /* The GNU C library defines this for functions which it implements
17355     to always fail with ENOSYS.  Some functions are actually named
17356     something starting with __ and the normal name is an alias.  */
17357 #if defined __stub_$ac_func || defined __stub___$ac_func
17358 choke me
17359 #endif
17360
17361 int
17362 main ()
17363 {
17364 return $ac_func ();
17365   ;
17366   return 0;
17367 }
17368 _ACEOF
17369 rm -f conftest.$ac_objext conftest$ac_exeext
17370 if { (ac_try="$ac_link"
17371 case "(($ac_try" in
17372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373   *) ac_try_echo=$ac_try;;
17374 esac
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376   (eval "$ac_link") 2>conftest.er1
17377   ac_status=$?
17378   grep -v '^ *+' conftest.er1 >conftest.err
17379   rm -f conftest.er1
17380   cat conftest.err >&5
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); } &&
17383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17384   { (case "(($ac_try" in
17385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386   *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389   (eval "$ac_try") 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); }; } &&
17393          { ac_try='test -s conftest$ac_exeext'
17394   { (case "(($ac_try" in
17395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396   *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399   (eval "$ac_try") 2>&5
17400   ac_status=$?
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); }; }; then
17403   eval "$as_ac_var=yes"
17404 else
17405   echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17407
17408         eval "$as_ac_var=no"
17409 fi
17410
17411 rm -f core conftest.err conftest.$ac_objext \
17412       conftest$ac_exeext conftest.$ac_ext
17413 fi
17414 ac_res=`eval echo '${'$as_ac_var'}'`
17415                { echo "$as_me:$LINENO: result: $ac_res" >&5
17416 echo "${ECHO_T}$ac_res" >&6; }
17417 if test `eval echo '${'$as_ac_var'}'` = yes; then
17418   cat >>confdefs.h <<_ACEOF
17419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17420 _ACEOF
17421
17422 fi
17423 done
17424
17425 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17426 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17427 if test "${llvm_cv_c_printf_a+set}" = set; then
17428   echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430   ac_ext=c
17431 ac_cpp='$CPP $CPPFLAGS'
17432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17435
17436  if test "$cross_compiling" = yes; then
17437   llvmac_cv_c_printf_a=no
17438 else
17439   cat >conftest.$ac_ext <<_ACEOF
17440
17441   /* confdefs.h.  */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h.  */
17446
17447 #include <stdio.h>
17448 #include <stdlib.h>
17449
17450 int
17451 main ()
17452 {
17453
17454 volatile double A, B;
17455 char Buffer[100];
17456 A = 1;
17457 A /= 10.0;
17458 sprintf(Buffer, "%a", A);
17459 B = atof(Buffer);
17460 if (A != B)
17461   return (1);
17462 if (A != 0x1.999999999999ap-4)
17463   return (1);
17464 return (0);
17465   ;
17466   return 0;
17467 }
17468 _ACEOF
17469 rm -f conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473   *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476   (eval "$ac_link") 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17480   { (case "(($ac_try" in
17481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482   *) ac_try_echo=$ac_try;;
17483 esac
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485   (eval "$ac_try") 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); }; }; then
17489   llvm_cv_c_printf_a=yes
17490 else
17491   echo "$as_me: program exited with status $ac_status" >&5
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495 ( exit $ac_status )
17496 llvmac_cv_c_printf_a=no
17497 fi
17498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17499 fi
17500
17501
17502  ac_ext=c
17503 ac_cpp='$CPP $CPPFLAGS'
17504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17507
17508 fi
17509 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17510 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17511  if test "$llvm_cv_c_printf_a" = "yes"; then
17512
17513 cat >>confdefs.h <<\_ACEOF
17514 #define HAVE_PRINTF_A 1
17515 _ACEOF
17516
17517  fi
17518
17519
17520 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17521 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17522 if test "${ac_cv_func_rand48+set}" = set; then
17523   echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525   ac_ext=cpp
17526 ac_cpp='$CXXCPP $CPPFLAGS'
17527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17530
17531    cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h.  */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h.  */
17537 #include <stdlib.h>
17538 int
17539 main ()
17540 {
17541 srand48(0);lrand48();drand48();
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext
17547 if { (ac_try="$ac_compile"
17548 case "(($ac_try" in
17549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550   *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553   (eval "$ac_compile") 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17561   { (case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_try") 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest.$ac_objext'
17571   { (case "(($ac_try" in
17572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573   *) ac_try_echo=$ac_try;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576   (eval "$ac_try") 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; }; then
17580   ac_cv_func_rand48=yes
17581 else
17582   echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585         ac_cv_func_rand48=no
17586 fi
17587
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589   ac_ext=c
17590 ac_cpp='$CPP $CPPFLAGS'
17591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17594
17595 fi
17596 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17597 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17598
17599 if test "$ac_cv_func_rand48" = "yes" ; then
17600
17601 cat >>confdefs.h <<\_ACEOF
17602 #define HAVE_RAND48 1
17603 _ACEOF
17604
17605 fi
17606
17607
17608 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17609 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17610 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h.  */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h.  */
17619 $ac_includes_default
17620 int
17621 main ()
17622 {
17623 #ifndef strerror_s
17624   char *p = (char *) strerror_s;
17625   return !p;
17626 #endif
17627
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639   (eval "$ac_compile") 2>conftest.er1
17640   ac_status=$?
17641   grep -v '^ *+' conftest.er1 >conftest.err
17642   rm -f conftest.er1
17643   cat conftest.err >&5
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } &&
17646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647   { (case "(($ac_try" in
17648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649   *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652   (eval "$ac_try") 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; } &&
17656          { ac_try='test -s conftest.$ac_objext'
17657   { (case "(($ac_try" in
17658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659   *) ac_try_echo=$ac_try;;
17660 esac
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662   (eval "$ac_try") 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; }; then
17666   ac_cv_have_decl_strerror_s=yes
17667 else
17668   echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671         ac_cv_have_decl_strerror_s=no
17672 fi
17673
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 fi
17676 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17677 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17678 if test $ac_cv_have_decl_strerror_s = yes; then
17679
17680 cat >>confdefs.h <<_ACEOF
17681 #define HAVE_DECL_STRERROR_S 1
17682 _ACEOF
17683
17684
17685 else
17686   cat >>confdefs.h <<_ACEOF
17687 #define HAVE_DECL_STRERROR_S 0
17688 _ACEOF
17689
17690
17691 fi
17692
17693
17694
17695 if test "$llvm_cv_os_type" = "MingW" ; then
17696   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17697 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17698 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17699   echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701   ac_check_lib_save_LIBS=$LIBS
17702 LIBS="-lgcc  $LIBS"
17703 cat >conftest.$ac_ext <<_ACEOF
17704 /* confdefs.h.  */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h.  */
17709
17710 /* Override any GCC internal prototype to avoid an error.
17711    Use char because int might match the return type of a GCC
17712    builtin and then its argument prototype would still apply.  */
17713 #ifdef __cplusplus
17714 extern "C"
17715 #endif
17716 char _alloca ();
17717 int
17718 main ()
17719 {
17720 return _alloca ();
17721   ;
17722   return 0;
17723 }
17724 _ACEOF
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_link") 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } &&
17739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17740   { (case "(($ac_try" in
17741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742   *) ac_try_echo=$ac_try;;
17743 esac
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745   (eval "$ac_try") 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; } &&
17749          { ac_try='test -s conftest$ac_exeext'
17750   { (case "(($ac_try" in
17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752   *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755   (eval "$ac_try") 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); }; }; then
17759   ac_cv_lib_gcc__alloca=yes
17760 else
17761   echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764         ac_cv_lib_gcc__alloca=no
17765 fi
17766
17767 rm -f core conftest.err conftest.$ac_objext \
17768       conftest$ac_exeext conftest.$ac_ext
17769 LIBS=$ac_check_lib_save_LIBS
17770 fi
17771 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17772 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17773 if test $ac_cv_lib_gcc__alloca = yes; then
17774
17775 cat >>confdefs.h <<\_ACEOF
17776 #define HAVE__ALLOCA 1
17777 _ACEOF
17778
17779 fi
17780
17781   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17782 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17783 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   ac_check_lib_save_LIBS=$LIBS
17787 LIBS="-lgcc  $LIBS"
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794
17795 /* Override any GCC internal prototype to avoid an error.
17796    Use char because int might match the return type of a GCC
17797    builtin and then its argument prototype would still apply.  */
17798 #ifdef __cplusplus
17799 extern "C"
17800 #endif
17801 char __alloca ();
17802 int
17803 main ()
17804 {
17805 return __alloca ();
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_link") 2>conftest.er1
17818   ac_status=$?
17819   grep -v '^ *+' conftest.er1 >conftest.err
17820   rm -f conftest.er1
17821   cat conftest.err >&5
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } &&
17824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825   { (case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_try") 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; } &&
17834          { ac_try='test -s conftest$ac_exeext'
17835   { (case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_try") 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; }; then
17844   ac_cv_lib_gcc___alloca=yes
17845 else
17846   echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849         ac_cv_lib_gcc___alloca=no
17850 fi
17851
17852 rm -f core conftest.err conftest.$ac_objext \
17853       conftest$ac_exeext conftest.$ac_ext
17854 LIBS=$ac_check_lib_save_LIBS
17855 fi
17856 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17857 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17858 if test $ac_cv_lib_gcc___alloca = yes; then
17859
17860 cat >>confdefs.h <<\_ACEOF
17861 #define HAVE___ALLOCA 1
17862 _ACEOF
17863
17864 fi
17865
17866   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17867 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17868 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17869   echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871   ac_check_lib_save_LIBS=$LIBS
17872 LIBS="-lgcc  $LIBS"
17873 cat >conftest.$ac_ext <<_ACEOF
17874 /* confdefs.h.  */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h.  */
17879
17880 /* Override any GCC internal prototype to avoid an error.
17881    Use char because int might match the return type of a GCC
17882    builtin and then its argument prototype would still apply.  */
17883 #ifdef __cplusplus
17884 extern "C"
17885 #endif
17886 char __chkstk ();
17887 int
17888 main ()
17889 {
17890 return __chkstk ();
17891   ;
17892   return 0;
17893 }
17894 _ACEOF
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (ac_try="$ac_link"
17897 case "(($ac_try" in
17898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899   *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902   (eval "$ac_link") 2>conftest.er1
17903   ac_status=$?
17904   grep -v '^ *+' conftest.er1 >conftest.err
17905   rm -f conftest.er1
17906   cat conftest.err >&5
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } &&
17909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910   { (case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_try") 2>&5
17916   ac_status=$?
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); }; } &&
17919          { ac_try='test -s conftest$ac_exeext'
17920   { (case "(($ac_try" in
17921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922   *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925   (eval "$ac_try") 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; }; then
17929   ac_cv_lib_gcc___chkstk=yes
17930 else
17931   echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934         ac_cv_lib_gcc___chkstk=no
17935 fi
17936
17937 rm -f core conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17940 fi
17941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17942 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17943 if test $ac_cv_lib_gcc___chkstk = yes; then
17944
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE___CHKSTK 1
17947 _ACEOF
17948
17949 fi
17950
17951   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17952 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17953 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17954   echo $ECHO_N "(cached) $ECHO_C" >&6
17955 else
17956   ac_check_lib_save_LIBS=$LIBS
17957 LIBS="-lgcc  $LIBS"
17958 cat >conftest.$ac_ext <<_ACEOF
17959 /* confdefs.h.  */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h.  */
17964
17965 /* Override any GCC internal prototype to avoid an error.
17966    Use char because int might match the return type of a GCC
17967    builtin and then its argument prototype would still apply.  */
17968 #ifdef __cplusplus
17969 extern "C"
17970 #endif
17971 char ___chkstk ();
17972 int
17973 main ()
17974 {
17975 return ___chkstk ();
17976   ;
17977   return 0;
17978 }
17979 _ACEOF
17980 rm -f conftest.$ac_objext conftest$ac_exeext
17981 if { (ac_try="$ac_link"
17982 case "(($ac_try" in
17983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984   *) ac_try_echo=$ac_try;;
17985 esac
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987   (eval "$ac_link") 2>conftest.er1
17988   ac_status=$?
17989   grep -v '^ *+' conftest.er1 >conftest.err
17990   rm -f conftest.er1
17991   cat conftest.err >&5
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); } &&
17994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17995   { (case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_try") 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; } &&
18004          { ac_try='test -s conftest$ac_exeext'
18005   { (case "(($ac_try" in
18006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007   *) ac_try_echo=$ac_try;;
18008 esac
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010   (eval "$ac_try") 2>&5
18011   ac_status=$?
18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013   (exit $ac_status); }; }; then
18014   ac_cv_lib_gcc____chkstk=yes
18015 else
18016   echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019         ac_cv_lib_gcc____chkstk=no
18020 fi
18021
18022 rm -f core conftest.err conftest.$ac_objext \
18023       conftest$ac_exeext conftest.$ac_ext
18024 LIBS=$ac_check_lib_save_LIBS
18025 fi
18026 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18027 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18028 if test $ac_cv_lib_gcc____chkstk = yes; then
18029
18030 cat >>confdefs.h <<\_ACEOF
18031 #define HAVE____CHKSTK 1
18032 _ACEOF
18033
18034 fi
18035
18036
18037   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18038 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18039 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18040   echo $ECHO_N "(cached) $ECHO_C" >&6
18041 else
18042   ac_check_lib_save_LIBS=$LIBS
18043 LIBS="-lgcc  $LIBS"
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h.  */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h.  */
18050
18051 /* Override any GCC internal prototype to avoid an error.
18052    Use char because int might match the return type of a GCC
18053    builtin and then its argument prototype would still apply.  */
18054 #ifdef __cplusplus
18055 extern "C"
18056 #endif
18057 char __ashldi3 ();
18058 int
18059 main ()
18060 {
18061 return __ashldi3 ();
18062   ;
18063   return 0;
18064 }
18065 _ACEOF
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (ac_try="$ac_link"
18068 case "(($ac_try" in
18069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070   *) ac_try_echo=$ac_try;;
18071 esac
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073   (eval "$ac_link") 2>conftest.er1
18074   ac_status=$?
18075   grep -v '^ *+' conftest.er1 >conftest.err
18076   rm -f conftest.er1
18077   cat conftest.err >&5
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); } &&
18080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18081   { (case "(($ac_try" in
18082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083   *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086   (eval "$ac_try") 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; } &&
18090          { ac_try='test -s conftest$ac_exeext'
18091   { (case "(($ac_try" in
18092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093   *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096   (eval "$ac_try") 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   ac_cv_lib_gcc___ashldi3=yes
18101 else
18102   echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105         ac_cv_lib_gcc___ashldi3=no
18106 fi
18107
18108 rm -f core conftest.err conftest.$ac_objext \
18109       conftest$ac_exeext conftest.$ac_ext
18110 LIBS=$ac_check_lib_save_LIBS
18111 fi
18112 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18113 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18114 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18115
18116 cat >>confdefs.h <<\_ACEOF
18117 #define HAVE___ASHLDI3 1
18118 _ACEOF
18119
18120 fi
18121
18122   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18123 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18124 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18125   echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127   ac_check_lib_save_LIBS=$LIBS
18128 LIBS="-lgcc  $LIBS"
18129 cat >conftest.$ac_ext <<_ACEOF
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135
18136 /* Override any GCC internal prototype to avoid an error.
18137    Use char because int might match the return type of a GCC
18138    builtin and then its argument prototype would still apply.  */
18139 #ifdef __cplusplus
18140 extern "C"
18141 #endif
18142 char __ashrdi3 ();
18143 int
18144 main ()
18145 {
18146 return __ashrdi3 ();
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155   *) ac_try_echo=$ac_try;;
18156 esac
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158   (eval "$ac_link") 2>conftest.er1
18159   ac_status=$?
18160   grep -v '^ *+' conftest.er1 >conftest.err
18161   rm -f conftest.er1
18162   cat conftest.err >&5
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); } &&
18165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166   { (case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_try") 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; } &&
18175          { ac_try='test -s conftest$ac_exeext'
18176   { (case "(($ac_try" in
18177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178   *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181   (eval "$ac_try") 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; }; then
18185   ac_cv_lib_gcc___ashrdi3=yes
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190         ac_cv_lib_gcc___ashrdi3=no
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext \
18194       conftest$ac_exeext conftest.$ac_ext
18195 LIBS=$ac_check_lib_save_LIBS
18196 fi
18197 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18198 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18199 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18200
18201 cat >>confdefs.h <<\_ACEOF
18202 #define HAVE___ASHRDI3 1
18203 _ACEOF
18204
18205 fi
18206
18207   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18208 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18209 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18210   echo $ECHO_N "(cached) $ECHO_C" >&6
18211 else
18212   ac_check_lib_save_LIBS=$LIBS
18213 LIBS="-lgcc  $LIBS"
18214 cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h.  */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h.  */
18220
18221 /* Override any GCC internal prototype to avoid an error.
18222    Use char because int might match the return type of a GCC
18223    builtin and then its argument prototype would still apply.  */
18224 #ifdef __cplusplus
18225 extern "C"
18226 #endif
18227 char __divdi3 ();
18228 int
18229 main ()
18230 {
18231 return __divdi3 ();
18232   ;
18233   return 0;
18234 }
18235 _ACEOF
18236 rm -f conftest.$ac_objext conftest$ac_exeext
18237 if { (ac_try="$ac_link"
18238 case "(($ac_try" in
18239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240   *) ac_try_echo=$ac_try;;
18241 esac
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243   (eval "$ac_link") 2>conftest.er1
18244   ac_status=$?
18245   grep -v '^ *+' conftest.er1 >conftest.err
18246   rm -f conftest.er1
18247   cat conftest.err >&5
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); } &&
18250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18251   { (case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256   (eval "$ac_try") 2>&5
18257   ac_status=$?
18258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259   (exit $ac_status); }; } &&
18260          { ac_try='test -s conftest$ac_exeext'
18261   { (case "(($ac_try" in
18262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263   *) ac_try_echo=$ac_try;;
18264 esac
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266   (eval "$ac_try") 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); }; }; then
18270   ac_cv_lib_gcc___divdi3=yes
18271 else
18272   echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18274
18275         ac_cv_lib_gcc___divdi3=no
18276 fi
18277
18278 rm -f core conftest.err conftest.$ac_objext \
18279       conftest$ac_exeext conftest.$ac_ext
18280 LIBS=$ac_check_lib_save_LIBS
18281 fi
18282 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18283 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18284 if test $ac_cv_lib_gcc___divdi3 = yes; then
18285
18286 cat >>confdefs.h <<\_ACEOF
18287 #define HAVE___DIVDI3 1
18288 _ACEOF
18289
18290 fi
18291
18292   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18293 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18294 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18295   echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297   ac_check_lib_save_LIBS=$LIBS
18298 LIBS="-lgcc  $LIBS"
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h.  */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h.  */
18305
18306 /* Override any GCC internal prototype to avoid an error.
18307    Use char because int might match the return type of a GCC
18308    builtin and then its argument prototype would still apply.  */
18309 #ifdef __cplusplus
18310 extern "C"
18311 #endif
18312 char __fixdfdi ();
18313 int
18314 main ()
18315 {
18316 return __fixdfdi ();
18317   ;
18318   return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (ac_try="$ac_link"
18323 case "(($ac_try" in
18324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325   *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328   (eval "$ac_link") 2>conftest.er1
18329   ac_status=$?
18330   grep -v '^ *+' conftest.er1 >conftest.err
18331   rm -f conftest.er1
18332   cat conftest.err >&5
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); } &&
18335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18336   { (case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341   (eval "$ac_try") 2>&5
18342   ac_status=$?
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); }; } &&
18345          { ac_try='test -s conftest$ac_exeext'
18346   { (case "(($ac_try" in
18347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348   *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351   (eval "$ac_try") 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); }; }; then
18355   ac_cv_lib_gcc___fixdfdi=yes
18356 else
18357   echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360         ac_cv_lib_gcc___fixdfdi=no
18361 fi
18362
18363 rm -f core conftest.err conftest.$ac_objext \
18364       conftest$ac_exeext conftest.$ac_ext
18365 LIBS=$ac_check_lib_save_LIBS
18366 fi
18367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18368 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18369 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18370
18371 cat >>confdefs.h <<\_ACEOF
18372 #define HAVE___FIXDFDI 1
18373 _ACEOF
18374
18375 fi
18376
18377   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18378 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18379 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18380   echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382   ac_check_lib_save_LIBS=$LIBS
18383 LIBS="-lgcc  $LIBS"
18384 cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h.  */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h.  */
18390
18391 /* Override any GCC internal prototype to avoid an error.
18392    Use char because int might match the return type of a GCC
18393    builtin and then its argument prototype would still apply.  */
18394 #ifdef __cplusplus
18395 extern "C"
18396 #endif
18397 char __fixsfdi ();
18398 int
18399 main ()
18400 {
18401 return __fixsfdi ();
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410   *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413   (eval "$ac_link") 2>conftest.er1
18414   ac_status=$?
18415   grep -v '^ *+' conftest.er1 >conftest.err
18416   rm -f conftest.er1
18417   cat conftest.err >&5
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); } &&
18420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18421   { (case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426   (eval "$ac_try") 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); }; } &&
18430          { ac_try='test -s conftest$ac_exeext'
18431   { (case "(($ac_try" in
18432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433   *) ac_try_echo=$ac_try;;
18434 esac
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436   (eval "$ac_try") 2>&5
18437   ac_status=$?
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); }; }; then
18440   ac_cv_lib_gcc___fixsfdi=yes
18441 else
18442   echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445         ac_cv_lib_gcc___fixsfdi=no
18446 fi
18447
18448 rm -f core conftest.err conftest.$ac_objext \
18449       conftest$ac_exeext conftest.$ac_ext
18450 LIBS=$ac_check_lib_save_LIBS
18451 fi
18452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18453 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18454 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18455
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE___FIXSFDI 1
18458 _ACEOF
18459
18460 fi
18461
18462   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18463 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18464 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18465   echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467   ac_check_lib_save_LIBS=$LIBS
18468 LIBS="-lgcc  $LIBS"
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h.  */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h.  */
18475
18476 /* Override any GCC internal prototype to avoid an error.
18477    Use char because int might match the return type of a GCC
18478    builtin and then its argument prototype would still apply.  */
18479 #ifdef __cplusplus
18480 extern "C"
18481 #endif
18482 char __floatdidf ();
18483 int
18484 main ()
18485 {
18486 return __floatdidf ();
18487   ;
18488   return 0;
18489 }
18490 _ACEOF
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (ac_try="$ac_link"
18493 case "(($ac_try" in
18494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495   *) ac_try_echo=$ac_try;;
18496 esac
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498   (eval "$ac_link") 2>conftest.er1
18499   ac_status=$?
18500   grep -v '^ *+' conftest.er1 >conftest.err
18501   rm -f conftest.er1
18502   cat conftest.err >&5
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); } &&
18505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18506   { (case "(($ac_try" in
18507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508   *) ac_try_echo=$ac_try;;
18509 esac
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511   (eval "$ac_try") 2>&5
18512   ac_status=$?
18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); }; } &&
18515          { ac_try='test -s conftest$ac_exeext'
18516   { (case "(($ac_try" in
18517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518   *) ac_try_echo=$ac_try;;
18519 esac
18520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521   (eval "$ac_try") 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); }; }; then
18525   ac_cv_lib_gcc___floatdidf=yes
18526 else
18527   echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530         ac_cv_lib_gcc___floatdidf=no
18531 fi
18532
18533 rm -f core conftest.err conftest.$ac_objext \
18534       conftest$ac_exeext conftest.$ac_ext
18535 LIBS=$ac_check_lib_save_LIBS
18536 fi
18537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18538 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18539 if test $ac_cv_lib_gcc___floatdidf = yes; then
18540
18541 cat >>confdefs.h <<\_ACEOF
18542 #define HAVE___FLOATDIDF 1
18543 _ACEOF
18544
18545 fi
18546
18547   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18548 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18549 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552   ac_check_lib_save_LIBS=$LIBS
18553 LIBS="-lgcc  $LIBS"
18554 cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h.  */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h.  */
18560
18561 /* Override any GCC internal prototype to avoid an error.
18562    Use char because int might match the return type of a GCC
18563    builtin and then its argument prototype would still apply.  */
18564 #ifdef __cplusplus
18565 extern "C"
18566 #endif
18567 char __lshrdi3 ();
18568 int
18569 main ()
18570 {
18571 return __lshrdi3 ();
18572   ;
18573   return 0;
18574 }
18575 _ACEOF
18576 rm -f conftest.$ac_objext conftest$ac_exeext
18577 if { (ac_try="$ac_link"
18578 case "(($ac_try" in
18579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580   *) ac_try_echo=$ac_try;;
18581 esac
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583   (eval "$ac_link") 2>conftest.er1
18584   ac_status=$?
18585   grep -v '^ *+' conftest.er1 >conftest.err
18586   rm -f conftest.er1
18587   cat conftest.err >&5
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); } &&
18590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18591   { (case "(($ac_try" in
18592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593   *) ac_try_echo=$ac_try;;
18594 esac
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596   (eval "$ac_try") 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; } &&
18600          { ac_try='test -s conftest$ac_exeext'
18601   { (case "(($ac_try" in
18602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603   *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606   (eval "$ac_try") 2>&5
18607   ac_status=$?
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); }; }; then
18610   ac_cv_lib_gcc___lshrdi3=yes
18611 else
18612   echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18614
18615         ac_cv_lib_gcc___lshrdi3=no
18616 fi
18617
18618 rm -f core conftest.err conftest.$ac_objext \
18619       conftest$ac_exeext conftest.$ac_ext
18620 LIBS=$ac_check_lib_save_LIBS
18621 fi
18622 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18623 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18624 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18625
18626 cat >>confdefs.h <<\_ACEOF
18627 #define HAVE___LSHRDI3 1
18628 _ACEOF
18629
18630 fi
18631
18632   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18633 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18634 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18635   echo $ECHO_N "(cached) $ECHO_C" >&6
18636 else
18637   ac_check_lib_save_LIBS=$LIBS
18638 LIBS="-lgcc  $LIBS"
18639 cat >conftest.$ac_ext <<_ACEOF
18640 /* confdefs.h.  */
18641 _ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h.  */
18645
18646 /* Override any GCC internal prototype to avoid an error.
18647    Use char because int might match the return type of a GCC
18648    builtin and then its argument prototype would still apply.  */
18649 #ifdef __cplusplus
18650 extern "C"
18651 #endif
18652 char __moddi3 ();
18653 int
18654 main ()
18655 {
18656 return __moddi3 ();
18657   ;
18658   return 0;
18659 }
18660 _ACEOF
18661 rm -f conftest.$ac_objext conftest$ac_exeext
18662 if { (ac_try="$ac_link"
18663 case "(($ac_try" in
18664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18665   *) ac_try_echo=$ac_try;;
18666 esac
18667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18668   (eval "$ac_link") 2>conftest.er1
18669   ac_status=$?
18670   grep -v '^ *+' conftest.er1 >conftest.err
18671   rm -f conftest.er1
18672   cat conftest.err >&5
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); } &&
18675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18676   { (case "(($ac_try" in
18677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678   *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681   (eval "$ac_try") 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; } &&
18685          { ac_try='test -s conftest$ac_exeext'
18686   { (case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691   (eval "$ac_try") 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; }; then
18695   ac_cv_lib_gcc___moddi3=yes
18696 else
18697   echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18699
18700         ac_cv_lib_gcc___moddi3=no
18701 fi
18702
18703 rm -f core conftest.err conftest.$ac_objext \
18704       conftest$ac_exeext conftest.$ac_ext
18705 LIBS=$ac_check_lib_save_LIBS
18706 fi
18707 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18708 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18709 if test $ac_cv_lib_gcc___moddi3 = yes; then
18710
18711 cat >>confdefs.h <<\_ACEOF
18712 #define HAVE___MODDI3 1
18713 _ACEOF
18714
18715 fi
18716
18717   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18718 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18719 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18720   echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722   ac_check_lib_save_LIBS=$LIBS
18723 LIBS="-lgcc  $LIBS"
18724 cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h.  */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h.  */
18730
18731 /* Override any GCC internal prototype to avoid an error.
18732    Use char because int might match the return type of a GCC
18733    builtin and then its argument prototype would still apply.  */
18734 #ifdef __cplusplus
18735 extern "C"
18736 #endif
18737 char __udivdi3 ();
18738 int
18739 main ()
18740 {
18741 return __udivdi3 ();
18742   ;
18743   return 0;
18744 }
18745 _ACEOF
18746 rm -f conftest.$ac_objext conftest$ac_exeext
18747 if { (ac_try="$ac_link"
18748 case "(($ac_try" in
18749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750   *) ac_try_echo=$ac_try;;
18751 esac
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753   (eval "$ac_link") 2>conftest.er1
18754   ac_status=$?
18755   grep -v '^ *+' conftest.er1 >conftest.err
18756   rm -f conftest.er1
18757   cat conftest.err >&5
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); } &&
18760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761   { (case "(($ac_try" in
18762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763   *) ac_try_echo=$ac_try;;
18764 esac
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766   (eval "$ac_try") 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); }; } &&
18770          { ac_try='test -s conftest$ac_exeext'
18771   { (case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776   (eval "$ac_try") 2>&5
18777   ac_status=$?
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); }; }; then
18780   ac_cv_lib_gcc___udivdi3=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785         ac_cv_lib_gcc___udivdi3=no
18786 fi
18787
18788 rm -f core conftest.err conftest.$ac_objext \
18789       conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18791 fi
18792 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18793 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18794 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18795
18796 cat >>confdefs.h <<\_ACEOF
18797 #define HAVE___UDIVDI3 1
18798 _ACEOF
18799
18800 fi
18801
18802   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18803 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18804 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18805   echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807   ac_check_lib_save_LIBS=$LIBS
18808 LIBS="-lgcc  $LIBS"
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h.  */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h.  */
18815
18816 /* Override any GCC internal prototype to avoid an error.
18817    Use char because int might match the return type of a GCC
18818    builtin and then its argument prototype would still apply.  */
18819 #ifdef __cplusplus
18820 extern "C"
18821 #endif
18822 char __umoddi3 ();
18823 int
18824 main ()
18825 {
18826 return __umoddi3 ();
18827   ;
18828   return 0;
18829 }
18830 _ACEOF
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835   *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838   (eval "$ac_link") 2>conftest.er1
18839   ac_status=$?
18840   grep -v '^ *+' conftest.er1 >conftest.err
18841   rm -f conftest.er1
18842   cat conftest.err >&5
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); } &&
18845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18846   { (case "(($ac_try" in
18847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848   *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851   (eval "$ac_try") 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); }; } &&
18855          { ac_try='test -s conftest$ac_exeext'
18856   { (case "(($ac_try" in
18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858   *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861   (eval "$ac_try") 2>&5
18862   ac_status=$?
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); }; }; then
18865   ac_cv_lib_gcc___umoddi3=yes
18866 else
18867   echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870         ac_cv_lib_gcc___umoddi3=no
18871 fi
18872
18873 rm -f core conftest.err conftest.$ac_objext \
18874       conftest$ac_exeext conftest.$ac_ext
18875 LIBS=$ac_check_lib_save_LIBS
18876 fi
18877 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18878 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18879 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18880
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE___UMODDI3 1
18883 _ACEOF
18884
18885 fi
18886
18887
18888   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18889 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18890 if test "${ac_cv_lib_gcc___main+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   ac_check_lib_save_LIBS=$LIBS
18894 LIBS="-lgcc  $LIBS"
18895 cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901
18902 /* Override any GCC internal prototype to avoid an error.
18903    Use char because int might match the return type of a GCC
18904    builtin and then its argument prototype would still apply.  */
18905 #ifdef __cplusplus
18906 extern "C"
18907 #endif
18908 char __main ();
18909 int
18910 main ()
18911 {
18912 return __main ();
18913   ;
18914   return 0;
18915 }
18916 _ACEOF
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (ac_try="$ac_link"
18919 case "(($ac_try" in
18920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921   *) ac_try_echo=$ac_try;;
18922 esac
18923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924   (eval "$ac_link") 2>conftest.er1
18925   ac_status=$?
18926   grep -v '^ *+' conftest.er1 >conftest.err
18927   rm -f conftest.er1
18928   cat conftest.err >&5
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); } &&
18931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18932   { (case "(($ac_try" in
18933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934   *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937   (eval "$ac_try") 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; } &&
18941          { ac_try='test -s conftest$ac_exeext'
18942   { (case "(($ac_try" in
18943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944   *) ac_try_echo=$ac_try;;
18945 esac
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947   (eval "$ac_try") 2>&5
18948   ac_status=$?
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); }; }; then
18951   ac_cv_lib_gcc___main=yes
18952 else
18953   echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18955
18956         ac_cv_lib_gcc___main=no
18957 fi
18958
18959 rm -f core conftest.err conftest.$ac_objext \
18960       conftest$ac_exeext conftest.$ac_ext
18961 LIBS=$ac_check_lib_save_LIBS
18962 fi
18963 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18964 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18965 if test $ac_cv_lib_gcc___main = yes; then
18966
18967 cat >>confdefs.h <<\_ACEOF
18968 #define HAVE___MAIN 1
18969 _ACEOF
18970
18971 fi
18972
18973   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18974 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18975 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   ac_check_lib_save_LIBS=$LIBS
18979 LIBS="-lgcc  $LIBS"
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986
18987 /* Override any GCC internal prototype to avoid an error.
18988    Use char because int might match the return type of a GCC
18989    builtin and then its argument prototype would still apply.  */
18990 #ifdef __cplusplus
18991 extern "C"
18992 #endif
18993 char __cmpdi2 ();
18994 int
18995 main ()
18996 {
18997 return __cmpdi2 ();
18998   ;
18999   return 0;
19000 }
19001 _ACEOF
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006   *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009   (eval "$ac_link") 2>conftest.er1
19010   ac_status=$?
19011   grep -v '^ *+' conftest.er1 >conftest.err
19012   rm -f conftest.er1
19013   cat conftest.err >&5
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); } &&
19016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19017   { (case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_try") 2>&5
19023   ac_status=$?
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); }; } &&
19026          { ac_try='test -s conftest$ac_exeext'
19027   { (case "(($ac_try" in
19028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029   *) ac_try_echo=$ac_try;;
19030 esac
19031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032   (eval "$ac_try") 2>&5
19033   ac_status=$?
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); }; }; then
19036   ac_cv_lib_gcc___cmpdi2=yes
19037 else
19038   echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19040
19041         ac_cv_lib_gcc___cmpdi2=no
19042 fi
19043
19044 rm -f core conftest.err conftest.$ac_objext \
19045       conftest$ac_exeext conftest.$ac_ext
19046 LIBS=$ac_check_lib_save_LIBS
19047 fi
19048 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19049 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19050 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19051
19052 cat >>confdefs.h <<\_ACEOF
19053 #define HAVE___CMPDI2 1
19054 _ACEOF
19055
19056 fi
19057
19058 fi
19059
19060 if test "$llvm_cv_os_type" = "MingW" ; then
19061   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19062 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19063   cat >conftest.$ac_ext <<_ACEOF
19064 #include <windows.h>
19065 #include <imagehlp.h>
19066 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19067 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19068 _ACEOF
19069 rm -f conftest.$ac_objext
19070 if { (ac_try="$ac_compile"
19071 case "(($ac_try" in
19072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073   *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076   (eval "$ac_compile") 2>conftest.er1
19077   ac_status=$?
19078   grep -v '^ *+' conftest.er1 >conftest.err
19079   rm -f conftest.er1
19080   cat conftest.err >&5
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); } &&
19083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19084   { (case "(($ac_try" in
19085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086   *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089   (eval "$ac_try") 2>&5
19090   ac_status=$?
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); }; } &&
19093          { ac_try='test -s conftest.$ac_objext'
19094   { (case "(($ac_try" in
19095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096   *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099   (eval "$ac_try") 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); }; }; then
19103
19104   { echo "$as_me:$LINENO: result: yes" >&5
19105 echo "${ECHO_T}yes" >&6; }
19106   llvm_cv_win32_elmcb_pcstr="PCSTR"
19107
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112
19113   { echo "$as_me:$LINENO: result: no" >&5
19114 echo "${ECHO_T}no" >&6; }
19115   llvm_cv_win32_elmcb_pcstr="PSTR"
19116
19117 fi
19118
19119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19120
19121 cat >>confdefs.h <<_ACEOF
19122 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19123 _ACEOF
19124
19125 fi
19126
19127
19128 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19129 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19130 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19131   echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19133   ac_ext=cpp
19134 ac_cpp='$CXXCPP $CPPFLAGS'
19135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19138
19139    cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h.  */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h.  */
19145 #include <math.h>
19146 int
19147 main ()
19148 {
19149 float f; isnan(f);
19150   ;
19151   return 0;
19152 }
19153 _ACEOF
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158   *) ac_try_echo=$ac_try;;
19159 esac
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161   (eval "$ac_compile") 2>conftest.er1
19162   ac_status=$?
19163   grep -v '^ *+' conftest.er1 >conftest.err
19164   rm -f conftest.er1
19165   cat conftest.err >&5
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); } &&
19168          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19169   { (case "(($ac_try" in
19170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171   *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174   (eval "$ac_try") 2>&5
19175   ac_status=$?
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); }; } &&
19178          { ac_try='test -s conftest.$ac_objext'
19179   { (case "(($ac_try" in
19180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181   *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184   (eval "$ac_try") 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; }; then
19188   ac_cv_func_isnan_in_math_h=yes
19189 else
19190   echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193         ac_cv_func_isnan_in_math_h=no
19194 fi
19195
19196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197   ac_ext=c
19198 ac_cpp='$CPP $CPPFLAGS'
19199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19202
19203 fi
19204 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19205 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19206
19207
19208 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19209
19210 cat >>confdefs.h <<\_ACEOF
19211 #define HAVE_ISNAN_IN_MATH_H 1
19212 _ACEOF
19213
19214 fi
19215
19216 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19217 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19218 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19219   echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221   ac_ext=cpp
19222 ac_cpp='$CXXCPP $CPPFLAGS'
19223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19226
19227    cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h.  */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h.  */
19233 #include <cmath>
19234 int
19235 main ()
19236 {
19237 float f; isnan(f);
19238   ;
19239   return 0;
19240 }
19241 _ACEOF
19242 rm -f conftest.$ac_objext
19243 if { (ac_try="$ac_compile"
19244 case "(($ac_try" in
19245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246   *) ac_try_echo=$ac_try;;
19247 esac
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249   (eval "$ac_compile") 2>conftest.er1
19250   ac_status=$?
19251   grep -v '^ *+' conftest.er1 >conftest.err
19252   rm -f conftest.er1
19253   cat conftest.err >&5
19254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255   (exit $ac_status); } &&
19256          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19257   { (case "(($ac_try" in
19258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259   *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262   (eval "$ac_try") 2>&5
19263   ac_status=$?
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); }; } &&
19266          { ac_try='test -s conftest.$ac_objext'
19267   { (case "(($ac_try" in
19268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269   *) ac_try_echo=$ac_try;;
19270 esac
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272   (eval "$ac_try") 2>&5
19273   ac_status=$?
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); }; }; then
19276   ac_cv_func_isnan_in_cmath=yes
19277 else
19278   echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19280
19281         ac_cv_func_isnan_in_cmath=no
19282 fi
19283
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285   ac_ext=c
19286 ac_cpp='$CPP $CPPFLAGS'
19287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19290
19291 fi
19292 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19293 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19294
19295 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19296
19297 cat >>confdefs.h <<\_ACEOF
19298 #define HAVE_ISNAN_IN_CMATH 1
19299 _ACEOF
19300
19301 fi
19302
19303 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19304 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19305 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19306   echo $ECHO_N "(cached) $ECHO_C" >&6
19307 else
19308   ac_ext=cpp
19309 ac_cpp='$CXXCPP $CPPFLAGS'
19310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19313
19314    cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 #include <cmath>
19321 int
19322 main ()
19323 {
19324 float f; std::isnan(f);
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_compile") 2>conftest.er1
19337   ac_status=$?
19338   grep -v '^ *+' conftest.er1 >conftest.err
19339   rm -f conftest.er1
19340   cat conftest.err >&5
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); } &&
19343          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19344   { (case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_try") 2>&5
19350   ac_status=$?
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); }; } &&
19353          { ac_try='test -s conftest.$ac_objext'
19354   { (case "(($ac_try" in
19355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356   *) ac_try_echo=$ac_try;;
19357 esac
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359   (eval "$ac_try") 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; }; then
19363   ac_cv_func_std_isnan_in_cmath=yes
19364 else
19365   echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368         ac_cv_func_std_isnan_in_cmath=no
19369 fi
19370
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372   ac_ext=c
19373 ac_cpp='$CPP $CPPFLAGS'
19374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19377
19378 fi
19379 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19380 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19381
19382 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19383
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_STD_ISNAN_IN_CMATH 1
19386 _ACEOF
19387
19388 fi
19389
19390
19391 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19392 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19393 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   ac_ext=cpp
19397 ac_cpp='$CXXCPP $CPPFLAGS'
19398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19401
19402    cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h.  */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h.  */
19408 #include <math.h>
19409 int
19410 main ()
19411 {
19412 float f; isinf(f);
19413   ;
19414   return 0;
19415 }
19416 _ACEOF
19417 rm -f conftest.$ac_objext
19418 if { (ac_try="$ac_compile"
19419 case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_compile") 2>conftest.er1
19425   ac_status=$?
19426   grep -v '^ *+' conftest.er1 >conftest.err
19427   rm -f conftest.er1
19428   cat conftest.err >&5
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); } &&
19431          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19432   { (case "(($ac_try" in
19433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434   *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437   (eval "$ac_try") 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; } &&
19441          { ac_try='test -s conftest.$ac_objext'
19442   { (case "(($ac_try" in
19443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444   *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447   (eval "$ac_try") 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; }; then
19451   ac_cv_func_isinf_in_math_h=yes
19452 else
19453   echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19455
19456         ac_cv_func_isinf_in_math_h=no
19457 fi
19458
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19460   ac_ext=c
19461 ac_cpp='$CPP $CPPFLAGS'
19462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19465
19466 fi
19467 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19468 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19469
19470 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19471
19472 cat >>confdefs.h <<\_ACEOF
19473 #define HAVE_ISINF_IN_MATH_H 1
19474 _ACEOF
19475
19476 fi
19477
19478 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19479 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19480 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19481   echo $ECHO_N "(cached) $ECHO_C" >&6
19482 else
19483   ac_ext=cpp
19484 ac_cpp='$CXXCPP $CPPFLAGS'
19485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19488
19489    cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495 #include <cmath>
19496 int
19497 main ()
19498 {
19499 float f; isinf(f);
19500   ;
19501   return 0;
19502 }
19503 _ACEOF
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_compile") 2>conftest.er1
19512   ac_status=$?
19513   grep -v '^ *+' conftest.er1 >conftest.err
19514   rm -f conftest.er1
19515   cat conftest.err >&5
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } &&
19518          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; } &&
19528          { ac_try='test -s conftest.$ac_objext'
19529   { (case "(($ac_try" in
19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531   *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534   (eval "$ac_try") 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; }; then
19538   ac_cv_func_isinf_in_cmath=yes
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543         ac_cv_func_isinf_in_cmath=no
19544 fi
19545
19546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547   ac_ext=c
19548 ac_cpp='$CPP $CPPFLAGS'
19549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553 fi
19554 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19555 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19556
19557 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19558
19559 cat >>confdefs.h <<\_ACEOF
19560 #define HAVE_ISINF_IN_CMATH 1
19561 _ACEOF
19562
19563 fi
19564
19565 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19566 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19567 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19568   echo $ECHO_N "(cached) $ECHO_C" >&6
19569 else
19570   ac_ext=cpp
19571 ac_cpp='$CXXCPP $CPPFLAGS'
19572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19575
19576    cat >conftest.$ac_ext <<_ACEOF
19577 /* confdefs.h.  */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h.  */
19582 #include <cmath>
19583 int
19584 main ()
19585 {
19586 float f; std::isinf(f)}
19587   ;
19588   return 0;
19589 }
19590 _ACEOF
19591 rm -f conftest.$ac_objext
19592 if { (ac_try="$ac_compile"
19593 case "(($ac_try" in
19594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595   *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598   (eval "$ac_compile") 2>conftest.er1
19599   ac_status=$?
19600   grep -v '^ *+' conftest.er1 >conftest.err
19601   rm -f conftest.er1
19602   cat conftest.err >&5
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); } &&
19605          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19606   { (case "(($ac_try" in
19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608   *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611   (eval "$ac_try") 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; } &&
19615          { ac_try='test -s conftest.$ac_objext'
19616   { (case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_try") 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; }; then
19625   ac_cv_func_std_isinf_in_cmath=yes
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630         ac_cv_func_std_isinf_in_cmath=no
19631 fi
19632
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634   ac_ext=c
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19639
19640 fi
19641 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19642 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19643
19644 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19645
19646 cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_STD_ISINF_IN_CMATH 1
19648 _ACEOF
19649
19650 fi
19651
19652 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19653 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19654 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   ac_ext=cpp
19658 ac_cpp='$CXXCPP $CPPFLAGS'
19659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19662
19663    cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h.  */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h.  */
19669 #include <ieeefp.h>
19670 int
19671 main ()
19672 {
19673 float f; finite(f);
19674   ;
19675   return 0;
19676 }
19677 _ACEOF
19678 rm -f conftest.$ac_objext
19679 if { (ac_try="$ac_compile"
19680 case "(($ac_try" in
19681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682   *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685   (eval "$ac_compile") 2>conftest.er1
19686   ac_status=$?
19687   grep -v '^ *+' conftest.er1 >conftest.err
19688   rm -f conftest.er1
19689   cat conftest.err >&5
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); } &&
19692          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19693   { (case "(($ac_try" in
19694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695   *) ac_try_echo=$ac_try;;
19696 esac
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698   (eval "$ac_try") 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; } &&
19702          { ac_try='test -s conftest.$ac_objext'
19703   { (case "(($ac_try" in
19704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705   *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708   (eval "$ac_try") 2>&5
19709   ac_status=$?
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); }; }; then
19712   ac_cv_func_finite_in_ieeefp_h=yes
19713 else
19714   echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19716
19717         ac_cv_func_finite_in_ieeefp_h=no
19718 fi
19719
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721   ac_ext=c
19722 ac_cpp='$CPP $CPPFLAGS'
19723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19726
19727 fi
19728 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19729 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19730
19731 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19732
19733 cat >>confdefs.h <<\_ACEOF
19734 #define HAVE_FINITE_IN_IEEEFP_H 1
19735 _ACEOF
19736
19737 fi
19738
19739
19740
19741 if test "$llvm_cv_platform_type" = "Unix" ; then
19742
19743
19744 for ac_header in stdlib.h unistd.h
19745 do
19746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19748   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 fi
19753 ac_res=`eval echo '${'$as_ac_Header'}'`
19754                { echo "$as_me:$LINENO: result: $ac_res" >&5
19755 echo "${ECHO_T}$ac_res" >&6; }
19756 else
19757   # Is the header compilable?
19758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766 $ac_includes_default
19767 #include <$ac_header>
19768 _ACEOF
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_compile") 2>conftest.er1
19777   ac_status=$?
19778   grep -v '^ *+' conftest.er1 >conftest.err
19779   rm -f conftest.er1
19780   cat conftest.err >&5
19781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); } &&
19783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19784   { (case "(($ac_try" in
19785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786   *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789   (eval "$ac_try") 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; } &&
19793          { ac_try='test -s conftest.$ac_objext'
19794   { (case "(($ac_try" in
19795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796   *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799   (eval "$ac_try") 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); }; }; then
19803   ac_header_compiler=yes
19804 else
19805   echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808         ac_header_compiler=no
19809 fi
19810
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19813 echo "${ECHO_T}$ac_header_compiler" >&6; }
19814
19815 # Is the header present?
19816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h.  */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h.  */
19824 #include <$ac_header>
19825 _ACEOF
19826 if { (ac_try="$ac_cpp conftest.$ac_ext"
19827 case "(($ac_try" in
19828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829   *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19833   ac_status=$?
19834   grep -v '^ *+' conftest.er1 >conftest.err
19835   rm -f conftest.er1
19836   cat conftest.err >&5
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); } >/dev/null; then
19839   if test -s conftest.err; then
19840     ac_cpp_err=$ac_c_preproc_warn_flag
19841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19842   else
19843     ac_cpp_err=
19844   fi
19845 else
19846   ac_cpp_err=yes
19847 fi
19848 if test -z "$ac_cpp_err"; then
19849   ac_header_preproc=yes
19850 else
19851   echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854   ac_header_preproc=no
19855 fi
19856
19857 rm -f conftest.err conftest.$ac_ext
19858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19859 echo "${ECHO_T}$ac_header_preproc" >&6; }
19860
19861 # So?  What about this header?
19862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19863   yes:no: )
19864     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19868     ac_header_preproc=yes
19869     ;;
19870   no:yes:* )
19871     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19873     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19874 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19875     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19877     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19878 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19881     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19883     ( cat <<\_ASBOX
19884 ## ------------------------------ ##
19885 ## Report this to bugs@yourdomain ##
19886 ## ------------------------------ ##
19887 _ASBOX
19888      ) | sed "s/^/$as_me: WARNING:     /" >&2
19889     ;;
19890 esac
19891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896   eval "$as_ac_Header=\$ac_header_preproc"
19897 fi
19898 ac_res=`eval echo '${'$as_ac_Header'}'`
19899                { echo "$as_me:$LINENO: result: $ac_res" >&5
19900 echo "${ECHO_T}$ac_res" >&6; }
19901
19902 fi
19903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19904   cat >>confdefs.h <<_ACEOF
19905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19906 _ACEOF
19907
19908 fi
19909
19910 done
19911
19912
19913 for ac_func in getpagesize
19914 do
19915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19919   echo $ECHO_N "(cached) $ECHO_C" >&6
19920 else
19921   cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19929 #define $ac_func innocuous_$ac_func
19930
19931 /* System header to define __stub macros and hopefully few prototypes,
19932     which can conflict with char $ac_func (); below.
19933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19934     <limits.h> exists even on freestanding compilers.  */
19935
19936 #ifdef __STDC__
19937 # include <limits.h>
19938 #else
19939 # include <assert.h>
19940 #endif
19941
19942 #undef $ac_func
19943
19944 /* Override any GCC internal prototype to avoid an error.
19945    Use char because int might match the return type of a GCC
19946    builtin and then its argument prototype would still apply.  */
19947 #ifdef __cplusplus
19948 extern "C"
19949 #endif
19950 char $ac_func ();
19951 /* The GNU C library defines this for functions which it implements
19952     to always fail with ENOSYS.  Some functions are actually named
19953     something starting with __ and the normal name is an alias.  */
19954 #if defined __stub_$ac_func || defined __stub___$ac_func
19955 choke me
19956 #endif
19957
19958 int
19959 main ()
19960 {
19961 return $ac_func ();
19962   ;
19963   return 0;
19964 }
19965 _ACEOF
19966 rm -f conftest.$ac_objext conftest$ac_exeext
19967 if { (ac_try="$ac_link"
19968 case "(($ac_try" in
19969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970   *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973   (eval "$ac_link") 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981   { (case "(($ac_try" in
19982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983   *) ac_try_echo=$ac_try;;
19984 esac
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986   (eval "$ac_try") 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; } &&
19990          { ac_try='test -s conftest$ac_exeext'
19991   { (case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_try") 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }; }; then
20000   eval "$as_ac_var=yes"
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005         eval "$as_ac_var=no"
20006 fi
20007
20008 rm -f core conftest.err conftest.$ac_objext \
20009       conftest$ac_exeext conftest.$ac_ext
20010 fi
20011 ac_res=`eval echo '${'$as_ac_var'}'`
20012                { echo "$as_me:$LINENO: result: $ac_res" >&5
20013 echo "${ECHO_T}$ac_res" >&6; }
20014 if test `eval echo '${'$as_ac_var'}'` = yes; then
20015   cat >>confdefs.h <<_ACEOF
20016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20017 _ACEOF
20018
20019 fi
20020 done
20021
20022 { echo "$as_me:$LINENO: checking for working mmap" >&5
20023 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20024 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   if test "$cross_compiling" = yes; then
20028   ac_cv_func_mmap_fixed_mapped=no
20029 else
20030   cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h.  */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h.  */
20036 $ac_includes_default
20037 /* malloc might have been renamed as rpl_malloc. */
20038 #undef malloc
20039
20040 /* Thanks to Mike Haertel and Jim Avera for this test.
20041    Here is a matrix of mmap possibilities:
20042         mmap private not fixed
20043         mmap private fixed at somewhere currently unmapped
20044         mmap private fixed at somewhere already mapped
20045         mmap shared not fixed
20046         mmap shared fixed at somewhere currently unmapped
20047         mmap shared fixed at somewhere already mapped
20048    For private mappings, we should verify that changes cannot be read()
20049    back from the file, nor mmap's back from the file at a different
20050    address.  (There have been systems where private was not correctly
20051    implemented like the infamous i386 svr4.0, and systems where the
20052    VM page cache was not coherent with the file system buffer cache
20053    like early versions of FreeBSD and possibly contemporary NetBSD.)
20054    For shared mappings, we should conversely verify that changes get
20055    propagated back to all the places they're supposed to be.
20056
20057    Grep wants private fixed already mapped.
20058    The main things grep needs to know about mmap are:
20059    * does it exist and is it safe to write into the mmap'd area
20060    * how to use it (BSD variants)  */
20061
20062 #include <fcntl.h>
20063 #include <sys/mman.h>
20064
20065 #if !STDC_HEADERS && !HAVE_STDLIB_H
20066 char *malloc ();
20067 #endif
20068
20069 /* This mess was copied from the GNU getpagesize.h.  */
20070 #if !HAVE_GETPAGESIZE
20071 /* Assume that all systems that can run configure have sys/param.h.  */
20072 # if !HAVE_SYS_PARAM_H
20073 #  define HAVE_SYS_PARAM_H 1
20074 # endif
20075
20076 # ifdef _SC_PAGESIZE
20077 #  define getpagesize() sysconf(_SC_PAGESIZE)
20078 # else /* no _SC_PAGESIZE */
20079 #  if HAVE_SYS_PARAM_H
20080 #   include <sys/param.h>
20081 #   ifdef EXEC_PAGESIZE
20082 #    define getpagesize() EXEC_PAGESIZE
20083 #   else /* no EXEC_PAGESIZE */
20084 #    ifdef NBPG
20085 #     define getpagesize() NBPG * CLSIZE
20086 #     ifndef CLSIZE
20087 #      define CLSIZE 1
20088 #     endif /* no CLSIZE */
20089 #    else /* no NBPG */
20090 #     ifdef NBPC
20091 #      define getpagesize() NBPC
20092 #     else /* no NBPC */
20093 #      ifdef PAGESIZE
20094 #       define getpagesize() PAGESIZE
20095 #      endif /* PAGESIZE */
20096 #     endif /* no NBPC */
20097 #    endif /* no NBPG */
20098 #   endif /* no EXEC_PAGESIZE */
20099 #  else /* no HAVE_SYS_PARAM_H */
20100 #   define getpagesize() 8192   /* punt totally */
20101 #  endif /* no HAVE_SYS_PARAM_H */
20102 # endif /* no _SC_PAGESIZE */
20103
20104 #endif /* no HAVE_GETPAGESIZE */
20105
20106 int
20107 main ()
20108 {
20109   char *data, *data2, *data3;
20110   int i, pagesize;
20111   int fd;
20112
20113   pagesize = getpagesize ();
20114
20115   /* First, make a file with some known garbage in it. */
20116   data = (char *) malloc (pagesize);
20117   if (!data)
20118     return 1;
20119   for (i = 0; i < pagesize; ++i)
20120     *(data + i) = rand ();
20121   umask (0);
20122   fd = creat ("conftest.mmap", 0600);
20123   if (fd < 0)
20124     return 1;
20125   if (write (fd, data, pagesize) != pagesize)
20126     return 1;
20127   close (fd);
20128
20129   /* Next, try to mmap the file at a fixed address which already has
20130      something else allocated at it.  If we can, also make sure that
20131      we see the same garbage.  */
20132   fd = open ("conftest.mmap", O_RDWR);
20133   if (fd < 0)
20134     return 1;
20135   data2 = (char *) malloc (2 * pagesize);
20136   if (!data2)
20137     return 1;
20138   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20139   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20140                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20141     return 1;
20142   for (i = 0; i < pagesize; ++i)
20143     if (*(data + i) != *(data2 + i))
20144       return 1;
20145
20146   /* Finally, make sure that changes to the mapped area do not
20147      percolate back to the file as seen by read().  (This is a bug on
20148      some variants of i386 svr4.0.)  */
20149   for (i = 0; i < pagesize; ++i)
20150     *(data2 + i) = *(data2 + i) + 1;
20151   data3 = (char *) malloc (pagesize);
20152   if (!data3)
20153     return 1;
20154   if (read (fd, data3, pagesize) != pagesize)
20155     return 1;
20156   for (i = 0; i < pagesize; ++i)
20157     if (*(data + i) != *(data3 + i))
20158       return 1;
20159   close (fd);
20160   return 0;
20161 }
20162 _ACEOF
20163 rm -f conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_link") 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20174   { (case "(($ac_try" in
20175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176   *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179   (eval "$ac_try") 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; }; then
20183   ac_cv_func_mmap_fixed_mapped=yes
20184 else
20185   echo "$as_me: program exited with status $ac_status" >&5
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 ( exit $ac_status )
20190 ac_cv_func_mmap_fixed_mapped=no
20191 fi
20192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20193 fi
20194
20195
20196 fi
20197 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20198 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20199 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20200
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_MMAP 1
20203 _ACEOF
20204
20205 fi
20206 rm -f conftest.mmap
20207
20208   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20209 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_mmap_file+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213    ac_ext=c
20214 ac_cpp='$CPP $CPPFLAGS'
20215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20218
20219   if test "$cross_compiling" = yes; then
20220   ac_cv_func_mmap_file=no
20221 else
20222   cat >conftest.$ac_ext <<_ACEOF
20223
20224     /* confdefs.h.  */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h.  */
20229
20230 #include <sys/types.h>
20231 #include <sys/mman.h>
20232 #include <fcntl.h>
20233
20234 int
20235 main ()
20236 {
20237
20238   int fd;
20239   fd = creat ("foo",0777);
20240   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20241   unlink ("foo");
20242   return (fd != (int) MAP_FAILED);
20243   ;
20244   return 0;
20245 }
20246 _ACEOF
20247 rm -f conftest$ac_exeext
20248 if { (ac_try="$ac_link"
20249 case "(($ac_try" in
20250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251   *) ac_try_echo=$ac_try;;
20252 esac
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254   (eval "$ac_link") 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20258   { (case "(($ac_try" in
20259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260   *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263   (eval "$ac_try") 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; }; then
20267   ac_cv_func_mmap_file=yes
20268 else
20269   echo "$as_me: program exited with status $ac_status" >&5
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273 ( exit $ac_status )
20274 ac_cv_func_mmap_file=no
20275 fi
20276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20277 fi
20278
20279
20280   ac_ext=c
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20285
20286
20287 fi
20288 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20289 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20290 if test "$ac_cv_func_mmap_file" = yes; then
20291
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_MMAP_FILE
20294 _ACEOF
20295
20296    MMAP_FILE=yes
20297
20298 fi
20299
20300   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20301 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20302 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20303   echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305   if test "$llvm_cv_os_type" = "Interix" ; then
20306    ac_cv_need_dev_zero_for_mmap=yes
20307  else
20308    ac_cv_need_dev_zero_for_mmap=no
20309  fi
20310
20311 fi
20312 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20313 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20314 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20315
20316 cat >>confdefs.h <<\_ACEOF
20317 #define NEED_DEV_ZERO_FOR_MMAP 1
20318 _ACEOF
20319
20320 fi
20321
20322   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20323   then
20324     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20325 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20326   fi
20327   if test "$ac_cv_func_mmap_file" = "no"
20328   then
20329     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20330 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20331   fi
20332 fi
20333
20334 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20335 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20336 ac_ext=cpp
20337 ac_cpp='$CXXCPP $CPPFLAGS'
20338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20341
20342 cat >conftest.$ac_ext <<_ACEOF
20343 /* confdefs.h.  */
20344 _ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h.  */
20348 int main() {
20349         volatile unsigned long val = 1;
20350         __sync_synchronize();
20351         __sync_val_compare_and_swap(&val, 1, 0);
20352         __sync_add_and_fetch(&val, 1);
20353         __sync_sub_and_fetch(&val, 1);
20354         return 0;
20355       }
20356
20357 _ACEOF
20358 rm -f conftest.$ac_objext conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_link") 2>conftest.er1
20366   ac_status=$?
20367   grep -v '^ *+' conftest.er1 >conftest.err
20368   rm -f conftest.er1
20369   cat conftest.err >&5
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } &&
20372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20373   { (case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_try") 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; } &&
20382          { ac_try='test -s conftest$ac_exeext'
20383   { (case "(($ac_try" in
20384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385   *) ac_try_echo=$ac_try;;
20386 esac
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388   (eval "$ac_try") 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); }; }; then
20392   ac_ext=c
20393 ac_cpp='$CPP $CPPFLAGS'
20394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20397
20398   { echo "$as_me:$LINENO: result: yes" >&5
20399 echo "${ECHO_T}yes" >&6; }
20400
20401 cat >>confdefs.h <<\_ACEOF
20402 #define LLVM_HAS_ATOMICS 1
20403 _ACEOF
20404
20405 else
20406   echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409         { echo "$as_me:$LINENO: result: no" >&5
20410 echo "${ECHO_T}no" >&6; }
20411
20412 cat >>confdefs.h <<\_ACEOF
20413 #define LLVM_HAS_ATOMICS 0
20414 _ACEOF
20415
20416   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20417 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20418 fi
20419
20420 rm -f core conftest.err conftest.$ac_objext \
20421       conftest$ac_exeext conftest.$ac_ext
20422
20423
20424 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20425   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20426 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20427 if test "${llvm_cv_linux_mixed+set}" = set; then
20428   echo $ECHO_N "(cached) $ECHO_C" >&6
20429 else
20430    ac_ext=c
20431 ac_cpp='$CPP $CPPFLAGS'
20432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20435
20436   cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h.  */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h.  */
20442 #ifndef __x86_64__
20443        error: Not x86-64 even if uname says so!
20444       #endif
20445
20446 int
20447 main ()
20448 {
20449
20450   ;
20451   return 0;
20452 }
20453 _ACEOF
20454 rm -f conftest.$ac_objext
20455 if { (ac_try="$ac_compile"
20456 case "(($ac_try" in
20457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458   *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461   (eval "$ac_compile") 2>conftest.er1
20462   ac_status=$?
20463   grep -v '^ *+' conftest.er1 >conftest.err
20464   rm -f conftest.er1
20465   cat conftest.err >&5
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } &&
20468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20469   { (case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_try") 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; } &&
20478          { ac_try='test -s conftest.$ac_objext'
20479   { (case "(($ac_try" in
20480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481   *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484   (eval "$ac_try") 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; }; then
20488   llvm_cv_linux_mixed=no
20489 else
20490   echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493         llvm_cv_linux_mixed=yes
20494 fi
20495
20496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497   ac_ext=c
20498 ac_cpp='$CPP $CPPFLAGS'
20499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20502
20503
20504 fi
20505 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20506 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20507
20508   if test "$llvm_cv_linux_mixed" = "yes"; then
20509     llvm_cv_target_arch="x86"
20510     ARCH="x86"
20511   fi
20512 fi
20513
20514
20515 for ac_func in __dso_handle
20516 do
20517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20521   echo $ECHO_N "(cached) $ECHO_C" >&6
20522 else
20523   cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h.  */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h.  */
20529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20531 #define $ac_func innocuous_$ac_func
20532
20533 /* System header to define __stub macros and hopefully few prototypes,
20534     which can conflict with char $ac_func (); below.
20535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536     <limits.h> exists even on freestanding compilers.  */
20537
20538 #ifdef __STDC__
20539 # include <limits.h>
20540 #else
20541 # include <assert.h>
20542 #endif
20543
20544 #undef $ac_func
20545
20546 /* Override any GCC internal prototype to avoid an error.
20547    Use char because int might match the return type of a GCC
20548    builtin and then its argument prototype would still apply.  */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 char $ac_func ();
20553 /* The GNU C library defines this for functions which it implements
20554     to always fail with ENOSYS.  Some functions are actually named
20555     something starting with __ and the normal name is an alias.  */
20556 #if defined __stub_$ac_func || defined __stub___$ac_func
20557 choke me
20558 #endif
20559
20560 int
20561 main ()
20562 {
20563 return $ac_func ();
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_link") 2>conftest.er1
20576   ac_status=$?
20577   grep -v '^ *+' conftest.er1 >conftest.err
20578   rm -f conftest.er1
20579   cat conftest.err >&5
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } &&
20582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583   { (case "(($ac_try" in
20584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585   *) ac_try_echo=$ac_try;;
20586 esac
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588   (eval "$ac_try") 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); }; } &&
20592          { ac_try='test -s conftest$ac_exeext'
20593   { (case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598   (eval "$ac_try") 2>&5
20599   ac_status=$?
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); }; }; then
20602   eval "$as_ac_var=yes"
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607         eval "$as_ac_var=no"
20608 fi
20609
20610 rm -f core conftest.err conftest.$ac_objext \
20611       conftest$ac_exeext conftest.$ac_ext
20612 fi
20613 ac_res=`eval echo '${'$as_ac_var'}'`
20614                { echo "$as_me:$LINENO: result: $ac_res" >&5
20615 echo "${ECHO_T}$ac_res" >&6; }
20616 if test `eval echo '${'$as_ac_var'}'` = yes; then
20617   cat >>confdefs.h <<_ACEOF
20618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20619 _ACEOF
20620
20621 fi
20622 done
20623
20624
20625 SHLIBEXT=$libltdl_cv_shlibext
20626
20627
20628 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20629
20630
20631 # Translate the various configuration directories and other basic
20632 # information into substitutions that will end up in Makefile.config.in
20633 # that these configured values can be used by the makefiles
20634 if test "${prefix}" = "NONE" ; then
20635   prefix="/usr/local"
20636 fi
20637 eval LLVM_PREFIX="${prefix}";
20638 eval LLVM_BINDIR="${prefix}/bin";
20639 eval LLVM_LIBDIR="${prefix}/lib";
20640 eval LLVM_DATADIR="${prefix}/share/llvm";
20641 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20642 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20643 eval LLVM_INCLUDEDIR="${prefix}/include";
20644 eval LLVM_INFODIR="${prefix}/info";
20645 eval LLVM_MANDIR="${prefix}/man";
20646 LLVM_CONFIGTIME=`date`
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658 # Place the various directores into the config.h file as #defines so that we
20659 # can know about the installation paths within LLVM.
20660
20661 cat >>confdefs.h <<_ACEOF
20662 #define LLVM_PREFIX "$LLVM_PREFIX"
20663 _ACEOF
20664
20665
20666 cat >>confdefs.h <<_ACEOF
20667 #define LLVM_BINDIR "$LLVM_BINDIR"
20668 _ACEOF
20669
20670
20671 cat >>confdefs.h <<_ACEOF
20672 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20673 _ACEOF
20674
20675
20676 cat >>confdefs.h <<_ACEOF
20677 #define LLVM_DATADIR "$LLVM_DATADIR"
20678 _ACEOF
20679
20680
20681 cat >>confdefs.h <<_ACEOF
20682 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20683 _ACEOF
20684
20685
20686 cat >>confdefs.h <<_ACEOF
20687 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20688 _ACEOF
20689
20690
20691 cat >>confdefs.h <<_ACEOF
20692 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20693 _ACEOF
20694
20695
20696 cat >>confdefs.h <<_ACEOF
20697 #define LLVM_INFODIR "$LLVM_INFODIR"
20698 _ACEOF
20699
20700
20701 cat >>confdefs.h <<_ACEOF
20702 #define LLVM_MANDIR "$LLVM_MANDIR"
20703 _ACEOF
20704
20705
20706 cat >>confdefs.h <<_ACEOF
20707 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20708 _ACEOF
20709
20710
20711 cat >>confdefs.h <<_ACEOF
20712 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20713 _ACEOF
20714
20715
20716 # Determine which bindings to build.
20717 if test "$BINDINGS_TO_BUILD" = auto ; then
20718   BINDINGS_TO_BUILD=""
20719   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20720     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20721   fi
20722 fi
20723 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20724
20725
20726 # This isn't really configurey, but it avoids having to repeat the list in
20727 # other files.
20728 ALL_BINDINGS=ocaml
20729
20730
20731 # Do any work necessary to ensure that bindings have what they need.
20732 binding_prereqs_failed=0
20733 for a_binding in $BINDINGS_TO_BUILD ; do
20734   case "$a_binding" in
20735   ocaml)
20736     if test "x$OCAMLC" = x ; then
20737       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20738 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20739       binding_prereqs_failed=1
20740     fi
20741     if test "x$OCAMLDEP" = x ; then
20742       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20743 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20744       binding_prereqs_failed=1
20745     fi
20746     if test "x$OCAMLOPT" = x ; then
20747       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20748 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20749           fi
20750     if test "x$with_ocaml_libdir" != xauto ; then
20751       OCAML_LIBDIR=$with_ocaml_libdir
20752
20753     else
20754       ocaml_stdlib="`"$OCAMLC" -where`"
20755       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20756       then
20757         # ocaml stdlib is beneath our prefix; use stdlib
20758         OCAML_LIBDIR=$ocaml_stdlib
20759
20760       else
20761         # ocaml stdlib is outside our prefix; use libdir/ocaml
20762         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20763
20764       fi
20765     fi
20766     ;;
20767   esac
20768 done
20769 if test "$binding_prereqs_failed" = 1 ; then
20770   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20771 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20772    { (exit 1); exit 1; }; }
20773 fi
20774
20775 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20776 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20777 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20778   echo $ECHO_N "(cached) $ECHO_C" >&6
20779 else
20780    ac_ext=cpp
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20785
20786   oldcxxflags="$CXXFLAGS"
20787   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20788   cat >conftest.$ac_ext <<_ACEOF
20789 /* confdefs.h.  */
20790 _ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h.  */
20794
20795 int
20796 main ()
20797 {
20798
20799   ;
20800   return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext
20804 if { (ac_try="$ac_compile"
20805 case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810   (eval "$ac_compile") 2>conftest.er1
20811   ac_status=$?
20812   grep -v '^ *+' conftest.er1 >conftest.err
20813   rm -f conftest.er1
20814   cat conftest.err >&5
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } &&
20817          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20818   { (case "(($ac_try" in
20819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820   *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823   (eval "$ac_try") 2>&5
20824   ac_status=$?
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); }; } &&
20827          { ac_try='test -s conftest.$ac_objext'
20828   { (case "(($ac_try" in
20829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830   *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833   (eval "$ac_try") 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; }; then
20837   llvm_cv_cxx_visibility_inlines_hidden=yes
20838 else
20839   echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842         llvm_cv_cxx_visibility_inlines_hidden=no
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846   CXXFLAGS="$oldcxxflags"
20847   ac_ext=c
20848 ac_cpp='$CPP $CPPFLAGS'
20849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853
20854 fi
20855 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20856 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20857 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20858   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20859
20860 else
20861   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20862
20863 fi
20864
20865
20866 if test "$llvm_cv_link_use_r" = "yes" ; then
20867   RPATH="-Wl,-R"
20868 else
20869   RPATH="-Wl,-rpath"
20870 fi
20871
20872
20873 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20874   RDYNAMIC="-Wl,-export-dynamic"
20875 else
20876   RDYNAMIC=""
20877 fi
20878
20879
20880
20881
20882 ac_config_files="$ac_config_files Makefile.common"
20883
20884 ac_config_files="$ac_config_files Makefile.llvm.config"
20885
20886
20887 ac_config_commands="$ac_config_commands Makefile"
20888
20889
20890 ac_config_commands="$ac_config_commands lib/Makefile"
20891
20892
20893 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20894
20895
20896 ac_config_commands="$ac_config_commands tools/Makefile"
20897
20898
20899 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20900
20901
20902
20903 cat >confcache <<\_ACEOF
20904 # This file is a shell script that caches the results of configure
20905 # tests run on this system so they can be shared between configure
20906 # scripts and configure runs, see configure's option --config-cache.
20907 # It is not useful on other systems.  If it contains results you don't
20908 # want to keep, you may remove or edit it.
20909 #
20910 # config.status only pays attention to the cache file if you give it
20911 # the --recheck option to rerun configure.
20912 #
20913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20915 # following values.
20916
20917 _ACEOF
20918
20919 # The following way of writing the cache mishandles newlines in values,
20920 # but we know of no workaround that is simple, portable, and efficient.
20921 # So, we kill variables containing newlines.
20922 # Ultrix sh set writes to stderr and can't be redirected directly,
20923 # and sets the high bit in the cache file unless we assign to the vars.
20924 (
20925   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20926     eval ac_val=\$$ac_var
20927     case $ac_val in #(
20928     *${as_nl}*)
20929       case $ac_var in #(
20930       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20931 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20932       esac
20933       case $ac_var in #(
20934       _ | IFS | as_nl) ;; #(
20935       *) $as_unset $ac_var ;;
20936       esac ;;
20937     esac
20938   done
20939
20940   (set) 2>&1 |
20941     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20942     *${as_nl}ac_space=\ *)
20943       # `set' does not quote correctly, so add quotes (double-quote
20944       # substitution turns \\\\ into \\, and sed turns \\ into \).
20945       sed -n \
20946         "s/'/'\\\\''/g;
20947           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20948       ;; #(
20949     *)
20950       # `set' quotes correctly as required by POSIX, so do not add quotes.
20951       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20952       ;;
20953     esac |
20954     sort
20955 ) |
20956   sed '
20957      /^ac_cv_env_/b end
20958      t clear
20959      :clear
20960      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20961      t end
20962      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20963      :end' >>confcache
20964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20965   if test -w "$cache_file"; then
20966     test "x$cache_file" != "x/dev/null" &&
20967       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20968 echo "$as_me: updating cache $cache_file" >&6;}
20969     cat confcache >$cache_file
20970   else
20971     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20972 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20973   fi
20974 fi
20975 rm -f confcache
20976
20977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20978 # Let make expand exec_prefix.
20979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20980
20981 # Transform confdefs.h into DEFS.
20982 # Protect against shell expansion while executing Makefile rules.
20983 # Protect against Makefile macro expansion.
20984 #
20985 # If the first sed substitution is executed (which looks for macros that
20986 # take arguments), then branch to the quote section.  Otherwise,
20987 # look for a macro that doesn't take arguments.
20988 ac_script='
20989 t clear
20990 :clear
20991 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
20992 t quote
20993 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
20994 t quote
20995 b any
20996 :quote
20997 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20998 s/\[/\\&/g
20999 s/\]/\\&/g
21000 s/\$/$$/g
21001 H
21002 :any
21003 ${
21004         g
21005         s/^\n//
21006         s/\n/ /g
21007         p
21008 }
21009 '
21010 DEFS=`sed -n "$ac_script" confdefs.h`
21011
21012
21013 ac_libobjs=
21014 ac_ltlibobjs=
21015 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21016   # 1. Remove the extension, and $U if already installed.
21017   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21018   ac_i=`echo "$ac_i" | sed "$ac_script"`
21019   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21020   #    will be set to the directory where LIBOBJS objects are built.
21021   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21022   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21023 done
21024 LIBOBJS=$ac_libobjs
21025
21026 LTLIBOBJS=$ac_ltlibobjs
21027
21028
21029 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21030   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21031 Usually this means the macro was only invoked conditionally." >&5
21032 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21033 Usually this means the macro was only invoked conditionally." >&2;}
21034    { (exit 1); exit 1; }; }
21035 fi
21036 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21037   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21038 Usually this means the macro was only invoked conditionally." >&5
21039 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21040 Usually this means the macro was only invoked conditionally." >&2;}
21041    { (exit 1); exit 1; }; }
21042 fi
21043
21044 : ${CONFIG_STATUS=./config.status}
21045 ac_clean_files_save=$ac_clean_files
21046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21047 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21048 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21049 cat >$CONFIG_STATUS <<_ACEOF
21050 #! $SHELL
21051 # Generated by $as_me.
21052 # Run this file to recreate the current configuration.
21053 # Compiler output produced by configure, useful for debugging
21054 # configure, is in config.log if it exists.
21055
21056 debug=false
21057 ac_cs_recheck=false
21058 ac_cs_silent=false
21059 SHELL=\${CONFIG_SHELL-$SHELL}
21060 _ACEOF
21061
21062 cat >>$CONFIG_STATUS <<\_ACEOF
21063 ## --------------------- ##
21064 ## M4sh Initialization.  ##
21065 ## --------------------- ##
21066
21067 # Be Bourne compatible
21068 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21069   emulate sh
21070   NULLCMD=:
21071   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21072   # is contrary to our usage.  Disable this feature.
21073   alias -g '${1+"$@"}'='"$@"'
21074   setopt NO_GLOB_SUBST
21075 else
21076   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21077 fi
21078 BIN_SH=xpg4; export BIN_SH # for Tru64
21079 DUALCASE=1; export DUALCASE # for MKS sh
21080
21081
21082 # PATH needs CR
21083 # Avoid depending upon Character Ranges.
21084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21087 as_cr_digits='0123456789'
21088 as_cr_alnum=$as_cr_Letters$as_cr_digits
21089
21090 # The user is always right.
21091 if test "${PATH_SEPARATOR+set}" != set; then
21092   echo "#! /bin/sh" >conf$$.sh
21093   echo  "exit 0"   >>conf$$.sh
21094   chmod +x conf$$.sh
21095   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21096     PATH_SEPARATOR=';'
21097   else
21098     PATH_SEPARATOR=:
21099   fi
21100   rm -f conf$$.sh
21101 fi
21102
21103 # Support unset when possible.
21104 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21105   as_unset=unset
21106 else
21107   as_unset=false
21108 fi
21109
21110
21111 # IFS
21112 # We need space, tab and new line, in precisely that order.  Quoting is
21113 # there to prevent editors from complaining about space-tab.
21114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21115 # splitting by setting IFS to empty value.)
21116 as_nl='
21117 '
21118 IFS=" ""        $as_nl"
21119
21120 # Find who we are.  Look in the path if we contain no directory separator.
21121 case $0 in
21122   *[\\/]* ) as_myself=$0 ;;
21123   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21124 for as_dir in $PATH
21125 do
21126   IFS=$as_save_IFS
21127   test -z "$as_dir" && as_dir=.
21128   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21129 done
21130 IFS=$as_save_IFS
21131
21132      ;;
21133 esac
21134 # We did not find ourselves, most probably we were run as `sh COMMAND'
21135 # in which case we are not to be found in the path.
21136 if test "x$as_myself" = x; then
21137   as_myself=$0
21138 fi
21139 if test ! -f "$as_myself"; then
21140   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21141   { (exit 1); exit 1; }
21142 fi
21143
21144 # Work around bugs in pre-3.0 UWIN ksh.
21145 for as_var in ENV MAIL MAILPATH
21146 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21147 done
21148 PS1='$ '
21149 PS2='> '
21150 PS4='+ '
21151
21152 # NLS nuisances.
21153 for as_var in \
21154   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21155   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21156   LC_TELEPHONE LC_TIME
21157 do
21158   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21159     eval $as_var=C; export $as_var
21160   else
21161     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21162   fi
21163 done
21164
21165 # Required to use basename.
21166 if expr a : '\(a\)' >/dev/null 2>&1 &&
21167    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21168   as_expr=expr
21169 else
21170   as_expr=false
21171 fi
21172
21173 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21174   as_basename=basename
21175 else
21176   as_basename=false
21177 fi
21178
21179
21180 # Name of the executable.
21181 as_me=`$as_basename -- "$0" ||
21182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21183          X"$0" : 'X\(//\)$' \| \
21184          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21185 echo X/"$0" |
21186     sed '/^.*\/\([^/][^/]*\)\/*$/{
21187             s//\1/
21188             q
21189           }
21190           /^X\/\(\/\/\)$/{
21191             s//\1/
21192             q
21193           }
21194           /^X\/\(\/\).*/{
21195             s//\1/
21196             q
21197           }
21198           s/.*/./; q'`
21199
21200 # CDPATH.
21201 $as_unset CDPATH
21202
21203
21204
21205   as_lineno_1=$LINENO
21206   as_lineno_2=$LINENO
21207   test "x$as_lineno_1" != "x$as_lineno_2" &&
21208   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21209
21210   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21211   # uniformly replaced by the line number.  The first 'sed' inserts a
21212   # line-number line after each line using $LINENO; the second 'sed'
21213   # does the real work.  The second script uses 'N' to pair each
21214   # line-number line with the line containing $LINENO, and appends
21215   # trailing '-' during substitution so that $LINENO is not a special
21216   # case at line end.
21217   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21218   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21219   # E. McMahon (1931-1989) for sed's syntax.  :-)
21220   sed -n '
21221     p
21222     /[$]LINENO/=
21223   ' <$as_myself |
21224     sed '
21225       s/[$]LINENO.*/&-/
21226       t lineno
21227       b
21228       :lineno
21229       N
21230       :loop
21231       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21232       t loop
21233       s/-\n.*//
21234     ' >$as_me.lineno &&
21235   chmod +x "$as_me.lineno" ||
21236     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21237    { (exit 1); exit 1; }; }
21238
21239   # Don't try to exec as it changes $[0], causing all sort of problems
21240   # (the dirname of $[0] is not the place where we might find the
21241   # original and so on.  Autoconf is especially sensitive to this).
21242   . "./$as_me.lineno"
21243   # Exit status is that of the last command.
21244   exit
21245 }
21246
21247
21248 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21249   as_dirname=dirname
21250 else
21251   as_dirname=false
21252 fi
21253
21254 ECHO_C= ECHO_N= ECHO_T=
21255 case `echo -n x` in
21256 -n*)
21257   case `echo 'x\c'` in
21258   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21259   *)   ECHO_C='\c';;
21260   esac;;
21261 *)
21262   ECHO_N='-n';;
21263 esac
21264
21265 if expr a : '\(a\)' >/dev/null 2>&1 &&
21266    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21267   as_expr=expr
21268 else
21269   as_expr=false
21270 fi
21271
21272 rm -f conf$$ conf$$.exe conf$$.file
21273 if test -d conf$$.dir; then
21274   rm -f conf$$.dir/conf$$.file
21275 else
21276   rm -f conf$$.dir
21277   mkdir conf$$.dir
21278 fi
21279 echo >conf$$.file
21280 if ln -s conf$$.file conf$$ 2>/dev/null; then
21281   as_ln_s='ln -s'
21282   # ... but there are two gotchas:
21283   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21284   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21285   # In both cases, we have to default to `cp -p'.
21286   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21287     as_ln_s='cp -p'
21288 elif ln conf$$.file conf$$ 2>/dev/null; then
21289   as_ln_s=ln
21290 else
21291   as_ln_s='cp -p'
21292 fi
21293 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21294 rmdir conf$$.dir 2>/dev/null
21295
21296 if mkdir -p . 2>/dev/null; then
21297   as_mkdir_p=:
21298 else
21299   test -d ./-p && rmdir ./-p
21300   as_mkdir_p=false
21301 fi
21302
21303 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21304 # systems may use methods other than mode bits to determine executability.
21305 cat >conf$$.file <<_ASEOF
21306 #! /bin/sh
21307 exit 0
21308 _ASEOF
21309 chmod +x conf$$.file
21310 if test -x conf$$.file >/dev/null 2>&1; then
21311   as_executable_p="test -x"
21312 else
21313   as_executable_p=:
21314 fi
21315 rm -f conf$$.file
21316
21317 # Sed expression to map a string onto a valid CPP name.
21318 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21319
21320 # Sed expression to map a string onto a valid variable name.
21321 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21322
21323
21324 exec 6>&1
21325
21326 # Save the log message, to keep $[0] and so on meaningful, and to
21327 # report actual input values of CONFIG_FILES etc. instead of their
21328 # values after options handling.
21329 ac_log="
21330 This file was extended by [SAMPLE] $as_me [x.xx], which was
21331 generated by GNU Autoconf 2.60.  Invocation command line was
21332
21333   CONFIG_FILES    = $CONFIG_FILES
21334   CONFIG_HEADERS  = $CONFIG_HEADERS
21335   CONFIG_LINKS    = $CONFIG_LINKS
21336   CONFIG_COMMANDS = $CONFIG_COMMANDS
21337   $ $0 $@
21338
21339 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21340 "
21341
21342 _ACEOF
21343
21344 cat >>$CONFIG_STATUS <<_ACEOF
21345 # Files that config.status was made for.
21346 config_files="$ac_config_files"
21347 config_commands="$ac_config_commands"
21348
21349 _ACEOF
21350
21351 cat >>$CONFIG_STATUS <<\_ACEOF
21352 ac_cs_usage="\
21353 \`$as_me' instantiates files from templates according to the
21354 current configuration.
21355
21356 Usage: $0 [OPTIONS] [FILE]...
21357
21358   -h, --help       print this help, then exit
21359   -V, --version    print version number, then exit
21360   -q, --quiet      do not print progress messages
21361   -d, --debug      don't remove temporary files
21362       --recheck    update $as_me by reconfiguring in the same conditions
21363   --file=FILE[:TEMPLATE]
21364                    instantiate the configuration file FILE
21365
21366 Configuration files:
21367 $config_files
21368
21369 Configuration commands:
21370 $config_commands
21371
21372 Report bugs to <bug-autoconf@gnu.org>."
21373
21374 _ACEOF
21375 cat >>$CONFIG_STATUS <<_ACEOF
21376 ac_cs_version="\\
21377 [SAMPLE] config.status [x.xx]
21378 configured by $0, generated by GNU Autoconf 2.60,
21379   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21380
21381 Copyright (C) 2006 Free Software Foundation, Inc.
21382 This config.status script is free software; the Free Software Foundation
21383 gives unlimited permission to copy, distribute and modify it."
21384
21385 ac_pwd='$ac_pwd'
21386 srcdir='$srcdir'
21387 INSTALL='$INSTALL'
21388 _ACEOF
21389
21390 cat >>$CONFIG_STATUS <<\_ACEOF
21391 # If no file are specified by the user, then we need to provide default
21392 # value.  By we need to know if files were specified by the user.
21393 ac_need_defaults=:
21394 while test $# != 0
21395 do
21396   case $1 in
21397   --*=*)
21398     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21399     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21400     ac_shift=:
21401     ;;
21402   *)
21403     ac_option=$1
21404     ac_optarg=$2
21405     ac_shift=shift
21406     ;;
21407   esac
21408
21409   case $ac_option in
21410   # Handling of the options.
21411   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21412     ac_cs_recheck=: ;;
21413   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21414     echo "$ac_cs_version"; exit ;;
21415   --debug | --debu | --deb | --de | --d | -d )
21416     debug=: ;;
21417   --file | --fil | --fi | --f )
21418     $ac_shift
21419     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21420     ac_need_defaults=false;;
21421   --he | --h |  --help | --hel | -h )
21422     echo "$ac_cs_usage"; exit ;;
21423   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21424   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21425     ac_cs_silent=: ;;
21426
21427   # This is an error.
21428   -*) { echo "$as_me: error: unrecognized option: $1
21429 Try \`$0 --help' for more information." >&2
21430    { (exit 1); exit 1; }; } ;;
21431
21432   *) ac_config_targets="$ac_config_targets $1"
21433      ac_need_defaults=false ;;
21434
21435   esac
21436   shift
21437 done
21438
21439 ac_configure_extra_args=
21440
21441 if $ac_cs_silent; then
21442   exec 6>/dev/null
21443   ac_configure_extra_args="$ac_configure_extra_args --silent"
21444 fi
21445
21446 _ACEOF
21447 cat >>$CONFIG_STATUS <<_ACEOF
21448 if \$ac_cs_recheck; then
21449   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21450   CONFIG_SHELL=$SHELL
21451   export CONFIG_SHELL
21452   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21453 fi
21454
21455 _ACEOF
21456 cat >>$CONFIG_STATUS <<\_ACEOF
21457 exec 5>>config.log
21458 {
21459   echo
21460   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21461 ## Running $as_me. ##
21462 _ASBOX
21463   echo "$ac_log"
21464 } >&5
21465
21466 _ACEOF
21467 cat >>$CONFIG_STATUS <<_ACEOF
21468 #
21469 # INIT-COMMANDS
21470 #
21471 llvm_src="${LLVM_SRC}"
21472
21473 _ACEOF
21474
21475 cat >>$CONFIG_STATUS <<\_ACEOF
21476
21477 # Handling of arguments.
21478 for ac_config_target in $ac_config_targets
21479 do
21480   case $ac_config_target in
21481     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21482     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21483     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21484     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21485     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21486     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21487     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21488     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21489
21490   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21492    { (exit 1); exit 1; }; };;
21493   esac
21494 done
21495
21496
21497 # If the user did not use the arguments to specify the items to instantiate,
21498 # then the envvar interface is used.  Set only those that are not.
21499 # We use the long form for the default assignment because of an extremely
21500 # bizarre bug on SunOS 4.1.3.
21501 if $ac_need_defaults; then
21502   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21503   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21504 fi
21505
21506 # Have a temporary directory for convenience.  Make it in the build tree
21507 # simply because there is no reason against having it here, and in addition,
21508 # creating and moving files from /tmp can sometimes cause problems.
21509 # Hook for its removal unless debugging.
21510 # Note that there is a small window in which the directory will not be cleaned:
21511 # after its creation but before its name has been assigned to `$tmp'.
21512 $debug ||
21513 {
21514   tmp=
21515   trap 'exit_status=$?
21516   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21517 ' 0
21518   trap '{ (exit 1); exit 1; }' 1 2 13 15
21519 }
21520 # Create a (secure) tmp directory for tmp files.
21521
21522 {
21523   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21524   test -n "$tmp" && test -d "$tmp"
21525 }  ||
21526 {
21527   tmp=./conf$$-$RANDOM
21528   (umask 077 && mkdir "$tmp")
21529 } ||
21530 {
21531    echo "$me: cannot create a temporary directory in ." >&2
21532    { (exit 1); exit 1; }
21533 }
21534
21535 #
21536 # Set up the sed scripts for CONFIG_FILES section.
21537 #
21538
21539 # No need to generate the scripts if there are no CONFIG_FILES.
21540 # This happens for instance when ./config.status config.h
21541 if test -n "$CONFIG_FILES"; then
21542
21543 _ACEOF
21544
21545
21546
21547 ac_delim='%!_!# '
21548 for ac_last_try in false false false false false :; do
21549   cat >conf$$subs.sed <<_ACEOF
21550 SHELL!$SHELL$ac_delim
21551 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21552 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21553 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21554 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21555 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21556 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21557 exec_prefix!$exec_prefix$ac_delim
21558 prefix!$prefix$ac_delim
21559 program_transform_name!$program_transform_name$ac_delim
21560 bindir!$bindir$ac_delim
21561 sbindir!$sbindir$ac_delim
21562 libexecdir!$libexecdir$ac_delim
21563 datarootdir!$datarootdir$ac_delim
21564 datadir!$datadir$ac_delim
21565 sysconfdir!$sysconfdir$ac_delim
21566 sharedstatedir!$sharedstatedir$ac_delim
21567 localstatedir!$localstatedir$ac_delim
21568 includedir!$includedir$ac_delim
21569 oldincludedir!$oldincludedir$ac_delim
21570 docdir!$docdir$ac_delim
21571 infodir!$infodir$ac_delim
21572 htmldir!$htmldir$ac_delim
21573 dvidir!$dvidir$ac_delim
21574 pdfdir!$pdfdir$ac_delim
21575 psdir!$psdir$ac_delim
21576 libdir!$libdir$ac_delim
21577 localedir!$localedir$ac_delim
21578 mandir!$mandir$ac_delim
21579 DEFS!$DEFS$ac_delim
21580 ECHO_C!$ECHO_C$ac_delim
21581 ECHO_N!$ECHO_N$ac_delim
21582 ECHO_T!$ECHO_T$ac_delim
21583 LIBS!$LIBS$ac_delim
21584 build_alias!$build_alias$ac_delim
21585 host_alias!$host_alias$ac_delim
21586 target_alias!$target_alias$ac_delim
21587 LLVM_SRC!$LLVM_SRC$ac_delim
21588 LLVM_OBJ!$LLVM_OBJ$ac_delim
21589 LLVM_VERSION!$LLVM_VERSION$ac_delim
21590 CC!$CC$ac_delim
21591 CFLAGS!$CFLAGS$ac_delim
21592 LDFLAGS!$LDFLAGS$ac_delim
21593 CPPFLAGS!$CPPFLAGS$ac_delim
21594 ac_ct_CC!$ac_ct_CC$ac_delim
21595 EXEEXT!$EXEEXT$ac_delim
21596 OBJEXT!$OBJEXT$ac_delim
21597 CXX!$CXX$ac_delim
21598 CXXFLAGS!$CXXFLAGS$ac_delim
21599 ac_ct_CXX!$ac_ct_CXX$ac_delim
21600 CPP!$CPP$ac_delim
21601 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21602 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21603 subdirs!$subdirs$ac_delim
21604 build!$build$ac_delim
21605 build_cpu!$build_cpu$ac_delim
21606 build_vendor!$build_vendor$ac_delim
21607 build_os!$build_os$ac_delim
21608 host!$host$ac_delim
21609 host_cpu!$host_cpu$ac_delim
21610 host_vendor!$host_vendor$ac_delim
21611 host_os!$host_os$ac_delim
21612 target!$target$ac_delim
21613 target_cpu!$target_cpu$ac_delim
21614 target_vendor!$target_vendor$ac_delim
21615 target_os!$target_os$ac_delim
21616 OS!$OS$ac_delim
21617 HOST_OS!$HOST_OS$ac_delim
21618 TARGET_OS!$TARGET_OS$ac_delim
21619 LINKALL!$LINKALL$ac_delim
21620 NOLINKALL!$NOLINKALL$ac_delim
21621 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21622 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21623 ARCH!$ARCH$ac_delim
21624 ENDIAN!$ENDIAN$ac_delim
21625 GREP!$GREP$ac_delim
21626 EGREP!$EGREP$ac_delim
21627 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21628 BUILD_CC!$BUILD_CC$ac_delim
21629 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21630 BUILD_CXX!$BUILD_CXX$ac_delim
21631 CVSBUILD!$CVSBUILD$ac_delim
21632 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21633 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21634 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21635 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21636 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21637 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21638 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21639 JIT!$JIT$ac_delim
21640 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21641 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21642 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21643 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21644 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21645 ENABLE_PIC!$ENABLE_PIC$ac_delim
21646 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21647 _ACEOF
21648
21649   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21650     break
21651   elif $ac_last_try; then
21652     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21653 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21654    { (exit 1); exit 1; }; }
21655   else
21656     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21657   fi
21658 done
21659
21660 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21661 if test -n "$ac_eof"; then
21662   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21663   ac_eof=`expr $ac_eof + 1`
21664 fi
21665
21666 cat >>$CONFIG_STATUS <<_ACEOF
21667 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21669 _ACEOF
21670 sed '
21671 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21672 s/^/s,@/; s/!/@,|#_!!_#|/
21673 :n
21674 t n
21675 s/'"$ac_delim"'$/,g/; t
21676 s/$/\\/; p
21677 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21678 ' >>$CONFIG_STATUS <conf$$subs.sed
21679 rm -f conf$$subs.sed
21680 cat >>$CONFIG_STATUS <<_ACEOF
21681 CEOF$ac_eof
21682 _ACEOF
21683
21684
21685 ac_delim='%!_!# '
21686 for ac_last_try in false false false false false :; do
21687   cat >conf$$subs.sed <<_ACEOF
21688 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21689 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21690 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21691 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21692 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21693 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21694 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21695 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21696 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21697 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21698 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21699 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21700 NM!$NM$ac_delim
21701 ifGNUmake!$ifGNUmake$ac_delim
21702 LN_S!$LN_S$ac_delim
21703 CMP!$CMP$ac_delim
21704 CP!$CP$ac_delim
21705 DATE!$DATE$ac_delim
21706 FIND!$FIND$ac_delim
21707 MKDIR!$MKDIR$ac_delim
21708 MV!$MV$ac_delim
21709 RANLIB!$RANLIB$ac_delim
21710 AR!$AR$ac_delim
21711 RM!$RM$ac_delim
21712 SED!$SED$ac_delim
21713 TAR!$TAR$ac_delim
21714 BINPWD!$BINPWD$ac_delim
21715 GRAPHVIZ!$GRAPHVIZ$ac_delim
21716 DOT!$DOT$ac_delim
21717 FDP!$FDP$ac_delim
21718 NEATO!$NEATO$ac_delim
21719 TWOPI!$TWOPI$ac_delim
21720 CIRCO!$CIRCO$ac_delim
21721 GV!$GV$ac_delim
21722 DOTTY!$DOTTY$ac_delim
21723 XDOT_PY!$XDOT_PY$ac_delim
21724 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21725 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21726 INSTALL_DATA!$INSTALL_DATA$ac_delim
21727 BZIP2!$BZIP2$ac_delim
21728 CAT!$CAT$ac_delim
21729 DOXYGEN!$DOXYGEN$ac_delim
21730 GROFF!$GROFF$ac_delim
21731 GZIPBIN!$GZIPBIN$ac_delim
21732 POD2HTML!$POD2HTML$ac_delim
21733 POD2MAN!$POD2MAN$ac_delim
21734 PDFROFF!$PDFROFF$ac_delim
21735 RUNTEST!$RUNTEST$ac_delim
21736 TCLSH!$TCLSH$ac_delim
21737 ZIP!$ZIP$ac_delim
21738 OCAMLC!$OCAMLC$ac_delim
21739 OCAMLOPT!$OCAMLOPT$ac_delim
21740 OCAMLDEP!$OCAMLDEP$ac_delim
21741 OCAMLDOC!$OCAMLDOC$ac_delim
21742 GAS!$GAS$ac_delim
21743 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21744 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21745 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21746 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21747 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21748 LIBADD_DL!$LIBADD_DL$ac_delim
21749 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21750 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21751 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21752 USE_UDIS86!$USE_UDIS86$ac_delim
21753 USE_OPROFILE!$USE_OPROFILE$ac_delim
21754 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21755 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21756 MMAP_FILE!$MMAP_FILE$ac_delim
21757 SHLIBEXT!$SHLIBEXT$ac_delim
21758 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21759 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21760 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21761 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21762 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21763 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21764 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21765 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21766 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21767 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21768 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21769 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21770 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21771 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21772 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21773 RPATH!$RPATH$ac_delim
21774 RDYNAMIC!$RDYNAMIC$ac_delim
21775 LIBOBJS!$LIBOBJS$ac_delim
21776 LTLIBOBJS!$LTLIBOBJS$ac_delim
21777 _ACEOF
21778
21779   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
21780     break
21781   elif $ac_last_try; then
21782     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21783 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21784    { (exit 1); exit 1; }; }
21785   else
21786     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21787   fi
21788 done
21789
21790 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21791 if test -n "$ac_eof"; then
21792   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21793   ac_eof=`expr $ac_eof + 1`
21794 fi
21795
21796 cat >>$CONFIG_STATUS <<_ACEOF
21797 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21799 _ACEOF
21800 sed '
21801 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21802 s/^/s,@/; s/!/@,|#_!!_#|/
21803 :n
21804 t n
21805 s/'"$ac_delim"'$/,g/; t
21806 s/$/\\/; p
21807 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21808 ' >>$CONFIG_STATUS <conf$$subs.sed
21809 rm -f conf$$subs.sed
21810 cat >>$CONFIG_STATUS <<_ACEOF
21811 :end
21812 s/|#_!!_#|//g
21813 CEOF$ac_eof
21814 _ACEOF
21815
21816
21817 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21819 # trailing colons and then remove the whole line if VPATH becomes empty
21820 # (actually we leave an empty line to preserve line numbers).
21821 if test "x$srcdir" = x.; then
21822   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21823 s/:*\$(srcdir):*/:/
21824 s/:*\${srcdir}:*/:/
21825 s/:*@srcdir@:*/:/
21826 s/^\([^=]*=[     ]*\):*/\1/
21827 s/:*$//
21828 s/^[^=]*=[       ]*$//
21829 }'
21830 fi
21831
21832 cat >>$CONFIG_STATUS <<\_ACEOF
21833 fi # test -n "$CONFIG_FILES"
21834
21835
21836 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21837 do
21838   case $ac_tag in
21839   :[FHLC]) ac_mode=$ac_tag; continue;;
21840   esac
21841   case $ac_mode$ac_tag in
21842   :[FHL]*:*);;
21843   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21844 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21845    { (exit 1); exit 1; }; };;
21846   :[FH]-) ac_tag=-:-;;
21847   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21848   esac
21849   ac_save_IFS=$IFS
21850   IFS=:
21851   set x $ac_tag
21852   IFS=$ac_save_IFS
21853   shift
21854   ac_file=$1
21855   shift
21856
21857   case $ac_mode in
21858   :L) ac_source=$1;;
21859   :[FH])
21860     ac_file_inputs=
21861     for ac_f
21862     do
21863       case $ac_f in
21864       -) ac_f="$tmp/stdin";;
21865       *) # Look for the file first in the build tree, then in the source tree
21866          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21867          # because $ac_f cannot contain `:'.
21868          test -f "$ac_f" ||
21869            case $ac_f in
21870            [\\/$]*) false;;
21871            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21872            esac ||
21873            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21874 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21875    { (exit 1); exit 1; }; };;
21876       esac
21877       ac_file_inputs="$ac_file_inputs $ac_f"
21878     done
21879
21880     # Let's still pretend it is `configure' which instantiates (i.e., don't
21881     # use $as_me), people would be surprised to read:
21882     #    /* config.h.  Generated by config.status.  */
21883     configure_input="Generated from "`IFS=:
21884           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21885     if test x"$ac_file" != x-; then
21886       configure_input="$ac_file.  $configure_input"
21887       { echo "$as_me:$LINENO: creating $ac_file" >&5
21888 echo "$as_me: creating $ac_file" >&6;}
21889     fi
21890
21891     case $ac_tag in
21892     *:-:* | *:-) cat >"$tmp/stdin";;
21893     esac
21894     ;;
21895   esac
21896
21897   ac_dir=`$as_dirname -- "$ac_file" ||
21898 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899          X"$ac_file" : 'X\(//\)[^/]' \| \
21900          X"$ac_file" : 'X\(//\)$' \| \
21901          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21902 echo X"$ac_file" |
21903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21904             s//\1/
21905             q
21906           }
21907           /^X\(\/\/\)[^/].*/{
21908             s//\1/
21909             q
21910           }
21911           /^X\(\/\/\)$/{
21912             s//\1/
21913             q
21914           }
21915           /^X\(\/\).*/{
21916             s//\1/
21917             q
21918           }
21919           s/.*/./; q'`
21920   { as_dir="$ac_dir"
21921   case $as_dir in #(
21922   -*) as_dir=./$as_dir;;
21923   esac
21924   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21925     as_dirs=
21926     while :; do
21927       case $as_dir in #(
21928       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21929       *) as_qdir=$as_dir;;
21930       esac
21931       as_dirs="'$as_qdir' $as_dirs"
21932       as_dir=`$as_dirname -- "$as_dir" ||
21933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21934          X"$as_dir" : 'X\(//\)[^/]' \| \
21935          X"$as_dir" : 'X\(//\)$' \| \
21936          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21937 echo X"$as_dir" |
21938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21939             s//\1/
21940             q
21941           }
21942           /^X\(\/\/\)[^/].*/{
21943             s//\1/
21944             q
21945           }
21946           /^X\(\/\/\)$/{
21947             s//\1/
21948             q
21949           }
21950           /^X\(\/\).*/{
21951             s//\1/
21952             q
21953           }
21954           s/.*/./; q'`
21955       test -d "$as_dir" && break
21956     done
21957     test -z "$as_dirs" || eval "mkdir $as_dirs"
21958   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21959 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21960    { (exit 1); exit 1; }; }; }
21961   ac_builddir=.
21962
21963 case "$ac_dir" in
21964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21965 *)
21966   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21967   # A ".." for each directory in $ac_dir_suffix.
21968   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21969   case $ac_top_builddir_sub in
21970   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21971   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21972   esac ;;
21973 esac
21974 ac_abs_top_builddir=$ac_pwd
21975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21976 # for backward compatibility:
21977 ac_top_builddir=$ac_top_build_prefix
21978
21979 case $srcdir in
21980   .)  # We are building in place.
21981     ac_srcdir=.
21982     ac_top_srcdir=$ac_top_builddir_sub
21983     ac_abs_top_srcdir=$ac_pwd ;;
21984   [\\/]* | ?:[\\/]* )  # Absolute name.
21985     ac_srcdir=$srcdir$ac_dir_suffix;
21986     ac_top_srcdir=$srcdir
21987     ac_abs_top_srcdir=$srcdir ;;
21988   *) # Relative name.
21989     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21990     ac_top_srcdir=$ac_top_build_prefix$srcdir
21991     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21992 esac
21993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21994
21995
21996   case $ac_mode in
21997   :F)
21998   #
21999   # CONFIG_FILE
22000   #
22001
22002   case $INSTALL in
22003   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22004   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22005   esac
22006 _ACEOF
22007
22008 cat >>$CONFIG_STATUS <<\_ACEOF
22009 # If the template does not know about datarootdir, expand it.
22010 # FIXME: This hack should be removed a few years after 2.60.
22011 ac_datarootdir_hack=; ac_datarootdir_seen=
22012
22013 case `sed -n '/datarootdir/ {
22014   p
22015   q
22016 }
22017 /@datadir@/p
22018 /@docdir@/p
22019 /@infodir@/p
22020 /@localedir@/p
22021 /@mandir@/p
22022 ' $ac_file_inputs` in
22023 *datarootdir*) ac_datarootdir_seen=yes;;
22024 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22025   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22026 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22027 _ACEOF
22028 cat >>$CONFIG_STATUS <<_ACEOF
22029   ac_datarootdir_hack='
22030   s&@datadir@&$datadir&g
22031   s&@docdir@&$docdir&g
22032   s&@infodir@&$infodir&g
22033   s&@localedir@&$localedir&g
22034   s&@mandir@&$mandir&g
22035     s&\\\${datarootdir}&$datarootdir&g' ;;
22036 esac
22037 _ACEOF
22038
22039 # Neutralize VPATH when `$srcdir' = `.'.
22040 # Shell code in configure.ac might set extrasub.
22041 # FIXME: do we really want to maintain this feature?
22042 cat >>$CONFIG_STATUS <<_ACEOF
22043   sed "$ac_vpsub
22044 $extrasub
22045 _ACEOF
22046 cat >>$CONFIG_STATUS <<\_ACEOF
22047 :t
22048 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22049 s&@configure_input@&$configure_input&;t t
22050 s&@top_builddir@&$ac_top_builddir_sub&;t t
22051 s&@srcdir@&$ac_srcdir&;t t
22052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22053 s&@top_srcdir@&$ac_top_srcdir&;t t
22054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22055 s&@builddir@&$ac_builddir&;t t
22056 s&@abs_builddir@&$ac_abs_builddir&;t t
22057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22058 s&@INSTALL@&$ac_INSTALL&;t t
22059 $ac_datarootdir_hack
22060 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22061
22062 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22063   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22064   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22065   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22066 which seems to be undefined.  Please make sure it is defined." >&5
22067 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22068 which seems to be undefined.  Please make sure it is defined." >&2;}
22069
22070   rm -f "$tmp/stdin"
22071   case $ac_file in
22072   -) cat "$tmp/out"; rm -f "$tmp/out";;
22073   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22074   esac
22075  ;;
22076
22077
22078   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22079 echo "$as_me: executing $ac_file commands" >&6;}
22080  ;;
22081   esac
22082
22083
22084   case $ac_file$ac_mode in
22085     "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22086    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22087     "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22088    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22089     "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22090    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22091     "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22092    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22093     "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22094    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22095
22096   esac
22097 done # for ac_tag
22098
22099
22100 { (exit 0); exit 0; }
22101 _ACEOF
22102 chmod +x $CONFIG_STATUS
22103 ac_clean_files=$ac_clean_files_save
22104
22105
22106 # configure is writing to config.log, and then calls config.status.
22107 # config.status does its own redirection, appending to config.log.
22108 # Unfortunately, on DOS this fails, as config.log is still kept open
22109 # by configure, so config.status won't be able to write to it; its
22110 # output is simply discarded.  So we exec the FD to /dev/null,
22111 # effectively closing config.log, so it can be properly (re)opened and
22112 # appended to by config.status.  When coming back to configure, we
22113 # need to make the FD available again.
22114 if test "$no_create" != yes; then
22115   ac_cs_success=:
22116   ac_config_status_args=
22117   test "$silent" = yes &&
22118     ac_config_status_args="$ac_config_status_args --quiet"
22119   exec 5>/dev/null
22120   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22121   exec 5>>config.log
22122   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22123   # would make configure fail if this is the last instruction.
22124   $ac_cs_success || { (exit 1); exit 1; }
22125 fi
22126
22127 #
22128 # CONFIG_SUBDIRS section.
22129 #
22130 if test "$no_recursion" != yes; then
22131
22132   # Remove --cache-file and --srcdir arguments so they do not pile up.
22133   ac_sub_configure_args=
22134   ac_prev=
22135   eval "set x $ac_configure_args"
22136   shift
22137   for ac_arg
22138   do
22139     if test -n "$ac_prev"; then
22140       ac_prev=
22141       continue
22142     fi
22143     case $ac_arg in
22144     -cache-file | --cache-file | --cache-fil | --cache-fi \
22145     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22146       ac_prev=cache_file ;;
22147     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22148     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22149     | --c=*)
22150       ;;
22151     --config-cache | -C)
22152       ;;
22153     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22154       ac_prev=srcdir ;;
22155     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22156       ;;
22157     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22158       ac_prev=prefix ;;
22159     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22160       ;;
22161     *)
22162       case $ac_arg in
22163       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22164       esac
22165       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22166     esac
22167   done
22168
22169   # Always prepend --prefix to ensure using the same prefix
22170   # in subdir configurations.
22171   ac_arg="--prefix=$prefix"
22172   case $ac_arg in
22173   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22174   esac
22175   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22176
22177   ac_popdir=`pwd`
22178   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22179
22180     # Do not complain, so a configure script can configure whichever
22181     # parts of a large source tree are present.
22182     test -d "$srcdir/$ac_dir" || continue
22183
22184     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22185     echo "$as_me:$LINENO: $ac_msg" >&5
22186     echo "$ac_msg" >&6
22187     { as_dir="$ac_dir"
22188   case $as_dir in #(
22189   -*) as_dir=./$as_dir;;
22190   esac
22191   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22192     as_dirs=
22193     while :; do
22194       case $as_dir in #(
22195       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22196       *) as_qdir=$as_dir;;
22197       esac
22198       as_dirs="'$as_qdir' $as_dirs"
22199       as_dir=`$as_dirname -- "$as_dir" ||
22200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201          X"$as_dir" : 'X\(//\)[^/]' \| \
22202          X"$as_dir" : 'X\(//\)$' \| \
22203          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22204 echo X"$as_dir" |
22205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22206             s//\1/
22207             q
22208           }
22209           /^X\(\/\/\)[^/].*/{
22210             s//\1/
22211             q
22212           }
22213           /^X\(\/\/\)$/{
22214             s//\1/
22215             q
22216           }
22217           /^X\(\/\).*/{
22218             s//\1/
22219             q
22220           }
22221           s/.*/./; q'`
22222       test -d "$as_dir" && break
22223     done
22224     test -z "$as_dirs" || eval "mkdir $as_dirs"
22225   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22226 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22227    { (exit 1); exit 1; }; }; }
22228     ac_builddir=.
22229
22230 case "$ac_dir" in
22231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22232 *)
22233   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22234   # A ".." for each directory in $ac_dir_suffix.
22235   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22236   case $ac_top_builddir_sub in
22237   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22238   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22239   esac ;;
22240 esac
22241 ac_abs_top_builddir=$ac_pwd
22242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22243 # for backward compatibility:
22244 ac_top_builddir=$ac_top_build_prefix
22245
22246 case $srcdir in
22247   .)  # We are building in place.
22248     ac_srcdir=.
22249     ac_top_srcdir=$ac_top_builddir_sub
22250     ac_abs_top_srcdir=$ac_pwd ;;
22251   [\\/]* | ?:[\\/]* )  # Absolute name.
22252     ac_srcdir=$srcdir$ac_dir_suffix;
22253     ac_top_srcdir=$srcdir
22254     ac_abs_top_srcdir=$srcdir ;;
22255   *) # Relative name.
22256     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22257     ac_top_srcdir=$ac_top_build_prefix$srcdir
22258     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22259 esac
22260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22261
22262
22263     cd "$ac_dir"
22264
22265     # Check for guested configure; otherwise get Cygnus style configure.
22266     if test -f "$ac_srcdir/configure.gnu"; then
22267       ac_sub_configure=$ac_srcdir/configure.gnu
22268     elif test -f "$ac_srcdir/configure"; then
22269       ac_sub_configure=$ac_srcdir/configure
22270     elif test -f "$ac_srcdir/configure.in"; then
22271       # This should be Cygnus configure.
22272       ac_sub_configure=$ac_aux_dir/configure
22273     else
22274       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22275 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22276       ac_sub_configure=
22277     fi
22278
22279     # The recursion is here.
22280     if test -n "$ac_sub_configure"; then
22281       # Make the cache file name correct relative to the subdirectory.
22282       case $cache_file in
22283       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22284       *) # Relative name.
22285         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22286       esac
22287
22288       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22289 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22290       # The eval makes quoting arguments work.
22291       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22292            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22293         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22294 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22295    { (exit 1); exit 1; }; }
22296     fi
22297
22298     cd "$ac_popdir"
22299   done
22300 fi
22301