Add support for linking librt and using clock_gettime to the sample
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_CXX11
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_WERROR
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 ENABLE_THREADS
700 ENABLE_PTHREADS
701 ENABLE_PIC
702 ENABLE_SHARED
703 ENABLE_EMBED_STDCXX
704 ENABLE_TIMESTAMPS
705 TARGETS_TO_BUILD
706 LLVM_ENUM_TARGETS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
710 OPTIMIZE_OPTION
711 EXTRA_OPTIONS
712 EXTRA_LD_OPTIONS
713 BINUTILS_INCDIR
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_DATADIR
776 LLVM_DOCSDIR
777 LLVM_ETCDIR
778 LLVM_INCLUDEDIR
779 LLVM_INFODIR
780 LLVM_MANDIR
781 LLVM_CONFIGTIME
782 BINDINGS_TO_BUILD
783 ALL_BINDINGS
784 OCAML_LIBDIR
785 ENABLE_VISIBILITY_INLINES_HIDDEN
786 RPATH
787 RDYNAMIC
788 LIBOBJS
789 LTLIBOBJS'
790 ac_subst_files=''
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP'
802 ac_subdirs_all='tools/polly'
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854   # If the previous option needs an argument, assign it.
855   if test -n "$ac_prev"; then
856     eval $ac_prev=\$ac_option
857     ac_prev=
858     continue
859   fi
860
861   case $ac_option in
862   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911     eval enable_$ac_feature=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package| sed 's/-/_/g'`
1127     eval with_$ac_package=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133       { echo "$as_me: error: invalid package name: $ac_package" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_package=`echo $ac_package | sed 's/-/_/g'`
1136     eval with_$ac_package=no ;;
1137
1138   --x)
1139     # Obsolete; use --with-x.
1140     with_x=yes ;;
1141
1142   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143   | --x-incl | --x-inc | --x-in | --x-i)
1144     ac_prev=x_includes ;;
1145   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147     x_includes=$ac_optarg ;;
1148
1149   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151     ac_prev=x_libraries ;;
1152   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154     x_libraries=$ac_optarg ;;
1155
1156   -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158    { (exit 1); exit 1; }; }
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166    { (exit 1); exit 1; }; }
1167     eval $ac_envvar=\$ac_optarg
1168     export $ac_envvar ;;
1169
1170   *)
1171     # FIXME: should be removed in autoconf 3.0.
1172     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176     ;;
1177
1178   esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183   { echo "$as_me: error: missing argument to $ac_option" >&2
1184    { (exit 1); exit 1; }; }
1185 fi
1186
1187 # Be sure to have absolute directory names.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199    { (exit 1); exit 1; }; }
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used." >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   { echo "$as_me: error: Working directory cannot be determined" >&2
1230    { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232   { echo "$as_me: error: pwd does not report name of working directory" >&2
1233    { (exit 1); exit 1; }; }
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238   ac_srcdir_defaulted=yes
1239   # Try the directory containing this script, then the parent directory.
1240   ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242          X"$0" : 'X\(//\)[^/]' \| \
1243          X"$0" : 'X\(//\)$' \| \
1244          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 echo X"$0" |
1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)[^/].*/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\).*/{
1259             s//\1/
1260             q
1261           }
1262           s/.*/./; q'`
1263   srcdir=$ac_confdir
1264   if test ! -r "$srcdir/$ac_unique_file"; then
1265     srcdir=..
1266   fi
1267 else
1268   ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278    { (exit 1); exit 1; }; }
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR           user executables [EPREFIX/bin]
1339   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR       program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR           object code libraries [EPREFIX/lib]
1345   --includedir=DIR       C header files [PREFIX/include]
1346   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR          info documentation [DATAROOTDIR/info]
1350   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR           man documentation [DATAROOTDIR/man]
1352   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1353   --htmldir=DIR          html documentation [DOCDIR]
1354   --dvidir=DIR           dvi documentation [DOCDIR]
1355   --pdfdir=DIR           pdf documentation [DOCDIR]
1356   --psdir=DIR            ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364   --target=TARGET   configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --enable-polly          Use polly if available (default is YES)
1378   --enable-libcpp         Use libc++ if available (default is NO)
1379   --enable-cxx11          Use c++11 if available (default is NO)
1380   --enable-optimized      Compile with optimizations enabled (default is NO)
1381   --enable-profiling      Compile with profiling enabled (default is NO)
1382   --enable-assertions     Compile with assertion checks enabled (default is
1383                           YES)
1384   --enable-werror         Compile with -Werror enabled (default is NO)
1385   --enable-expensive-checks
1386                           Compile with expensive debug checks enabled (default
1387                           is NO)
1388   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1389                           NO)
1390   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1391                           optimization is on and YES if it's off)
1392   --enable-jit            Enable Just In Time Compiling (default is YES)
1393   --enable-docs           Build documents (default is YES)
1394   --enable-doxygen        Build doxygen documentation (default is NO)
1395   --enable-threads        Use threads if available (default is YES)
1396   --enable-pthreads       Use pthreads if available (default is YES)
1397   --enable-pic            Build LLVM with Position Independent Code (default
1398                           is YES)
1399   --enable-shared         Build a shared library and link tools against it
1400                           (default is NO)
1401   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1402                           Win32 DLL (default is YES)
1403   --enable-timestamps     Enable embedding timestamp information in build
1404                           (default is YES)
1405   --enable-targets        Build specific host targets: all or
1406                           target1,target2,... Valid targets are: host, x86,
1407                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1408                           xcore, msp430, nvptx, systemz, r600, and cpp
1409                           (default=all)
1410   --enable-bindings       Build specific language bindings:
1411                           all,auto,none,{binding-name} (default=auto)
1412   --enable-terminfo       Query the terminfo database if available (default is
1413                           YES)
1414   --enable-libffi         Check for the presence of libffi (default is NO)
1415   --enable-ltdl-install   install libltdl
1416
1417 Optional Packages:
1418   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1419   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1420   --with-llvmsrc          Location of LLVM Source Code
1421   --with-llvmobj          Location of LLVM Object Code
1422   --with-optimize-option  Select the compiler options to use for optimized
1423                           builds
1424   --with-extra-options    Specify additional options to compile LLVM with
1425   --with-extra-ld-options Specify additional options to link LLVM with
1426   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1427                           is stdlib)
1428   --with-clang-resource-dir
1429                           Relative directory from the Clang binary for
1430                           resource files
1431   --with-c-include-dirs   Colon separated list of directories clang will
1432                           search for headers
1433   --with-gcc-toolchain    Directory where gcc is installed.
1434   --with-binutils-include Specify path to binutils/include/ containing
1435                           plugin-api.h file for gold plugin.
1436   --with-bug-report-url   Specify the URL where bug reports should be
1437                           submitted (default=http://llvm.org/bugs/)
1438   --with-tclinclude       directory where tcl headers are
1439   --with-udis86=<path>    Use udis86 external x86 disassembler library
1440   --with-oprofile=<prefix>
1441                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1442
1443 Some influential environment variables:
1444   CC          C compiler command
1445   CFLAGS      C compiler flags
1446   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447               nonstandard directory <lib dir>
1448   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449               you have headers in a nonstandard directory <include dir>
1450   CXX         C++ compiler command
1451   CXXFLAGS    C++ compiler flags
1452   CPP         C preprocessor
1453
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1456
1457 Report bugs to <bugs@yourdomain>.
1458 _ACEOF
1459 ac_status=$?
1460 fi
1461
1462 if test "$ac_init_help" = "recursive"; then
1463   # If there are subdirs, report their specific --help.
1464   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465     test -d "$ac_dir" || continue
1466     ac_builddir=.
1467
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *)
1471   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1472   # A ".." for each directory in $ac_dir_suffix.
1473   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1474   case $ac_top_builddir_sub in
1475   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477   esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1483
1484 case $srcdir in
1485   .)  # We are building in place.
1486     ac_srcdir=.
1487     ac_top_srcdir=$ac_top_builddir_sub
1488     ac_abs_top_srcdir=$ac_pwd ;;
1489   [\\/]* | ?:[\\/]* )  # Absolute name.
1490     ac_srcdir=$srcdir$ac_dir_suffix;
1491     ac_top_srcdir=$srcdir
1492     ac_abs_top_srcdir=$srcdir ;;
1493   *) # Relative name.
1494     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495     ac_top_srcdir=$ac_top_build_prefix$srcdir
1496     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500     cd "$ac_dir" || { ac_status=$?; continue; }
1501     # Check for guested configure.
1502     if test -f "$ac_srcdir/configure.gnu"; then
1503       echo &&
1504       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505     elif test -f "$ac_srcdir/configure"; then
1506       echo &&
1507       $SHELL "$ac_srcdir/configure" --help=recursive
1508     else
1509       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510     fi || ac_status=$?
1511     cd "$ac_pwd" || { ac_status=$?; break; }
1512   done
1513 fi
1514
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517   cat <<\_ACEOF
1518 [SAMPLE] configure [x.xx]
1519 generated by GNU Autoconf 2.60
1520
1521 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1522 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526   exit
1527 fi
1528 cat >config.log <<_ACEOF
1529 This file contains any messages produced by compilers while
1530 running configure, to aid debugging if configure makes a mistake.
1531
1532 It was created by [SAMPLE] $as_me [x.xx], which was
1533 generated by GNU Autoconf 2.60.  Invocation command line was
1534
1535   $ $0 $@
1536
1537 _ACEOF
1538 exec 5>>config.log
1539 {
1540 cat <<_ASUNAME
1541 ## --------- ##
1542 ## Platform. ##
1543 ## --------- ##
1544
1545 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1546 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1547 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1548 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1549 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1550
1551 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1552 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1553
1554 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1555 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1556 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1557 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1558 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1559 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1560 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1561
1562 _ASUNAME
1563
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   echo "PATH: $as_dir"
1570 done
1571 IFS=$as_save_IFS
1572
1573 } >&5
1574
1575 cat >&5 <<_ACEOF
1576
1577
1578 ## ----------- ##
1579 ## Core tests. ##
1580 ## ----------- ##
1581
1582 _ACEOF
1583
1584
1585 # Keep a trace of the command line.
1586 # Strip out --no-create and --no-recursion so they do not pile up.
1587 # Strip out --silent because we don't want to record it for future runs.
1588 # Also quote any args containing shell meta-characters.
1589 # Make two passes to allow for proper duplicate-argument suppression.
1590 ac_configure_args=
1591 ac_configure_args0=
1592 ac_configure_args1=
1593 ac_must_keep_next=false
1594 for ac_pass in 1 2
1595 do
1596   for ac_arg
1597   do
1598     case $ac_arg in
1599     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1600     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1601     | -silent | --silent | --silen | --sile | --sil)
1602       continue ;;
1603     *\'*)
1604       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1605     esac
1606     case $ac_pass in
1607     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1608     2)
1609       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1610       if test $ac_must_keep_next = true; then
1611         ac_must_keep_next=false # Got value, back to normal.
1612       else
1613         case $ac_arg in
1614           *=* | --config-cache | -C | -disable-* | --disable-* \
1615           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1616           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1617           | -with-* | --with-* | -without-* | --without-* | --x)
1618             case "$ac_configure_args0 " in
1619               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1620             esac
1621             ;;
1622           -* ) ac_must_keep_next=true ;;
1623         esac
1624       fi
1625       ac_configure_args="$ac_configure_args '$ac_arg'"
1626       ;;
1627     esac
1628   done
1629 done
1630 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1631 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1632
1633 # When interrupted or exit'd, cleanup temporary files, and complete
1634 # config.log.  We remove comments because anyway the quotes in there
1635 # would cause problems or look ugly.
1636 # WARNING: Use '\'' to represent an apostrophe within the trap.
1637 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1638 trap 'exit_status=$?
1639   # Save into config.log some information that might help in debugging.
1640   {
1641     echo
1642
1643     cat <<\_ASBOX
1644 ## ---------------- ##
1645 ## Cache variables. ##
1646 ## ---------------- ##
1647 _ASBOX
1648     echo
1649     # The following way of writing the cache mishandles newlines in values,
1650 (
1651   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1652     eval ac_val=\$$ac_var
1653     case $ac_val in #(
1654     *${as_nl}*)
1655       case $ac_var in #(
1656       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1657 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1658       esac
1659       case $ac_var in #(
1660       _ | IFS | as_nl) ;; #(
1661       *) $as_unset $ac_var ;;
1662       esac ;;
1663     esac
1664   done
1665   (set) 2>&1 |
1666     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1667     *${as_nl}ac_space=\ *)
1668       sed -n \
1669         "s/'\''/'\''\\\\'\'''\''/g;
1670           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1671       ;; #(
1672     *)
1673       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1674       ;;
1675     esac |
1676     sort
1677 )
1678     echo
1679
1680     cat <<\_ASBOX
1681 ## ----------------- ##
1682 ## Output variables. ##
1683 ## ----------------- ##
1684 _ASBOX
1685     echo
1686     for ac_var in $ac_subst_vars
1687     do
1688       eval ac_val=\$$ac_var
1689       case $ac_val in
1690       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1691       esac
1692       echo "$ac_var='\''$ac_val'\''"
1693     done | sort
1694     echo
1695
1696     if test -n "$ac_subst_files"; then
1697       cat <<\_ASBOX
1698 ## ------------------- ##
1699 ## File substitutions. ##
1700 ## ------------------- ##
1701 _ASBOX
1702       echo
1703       for ac_var in $ac_subst_files
1704       do
1705         eval ac_val=\$$ac_var
1706         case $ac_val in
1707         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708         esac
1709         echo "$ac_var='\''$ac_val'\''"
1710       done | sort
1711       echo
1712     fi
1713
1714     if test -s confdefs.h; then
1715       cat <<\_ASBOX
1716 ## ----------- ##
1717 ## confdefs.h. ##
1718 ## ----------- ##
1719 _ASBOX
1720       echo
1721       cat confdefs.h
1722       echo
1723     fi
1724     test "$ac_signal" != 0 &&
1725       echo "$as_me: caught signal $ac_signal"
1726     echo "$as_me: exit $exit_status"
1727   } >&5
1728   rm -f core *.core core.conftest.* &&
1729     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1730     exit $exit_status
1731 ' 0
1732 for ac_signal in 1 2 13 15; do
1733   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1734 done
1735 ac_signal=0
1736
1737 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1738 rm -f -r conftest* confdefs.h
1739
1740 # Predefined preprocessor variables.
1741
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_NAME "$PACKAGE_NAME"
1744 _ACEOF
1745
1746
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1749 _ACEOF
1750
1751
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1754 _ACEOF
1755
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_STRING "$PACKAGE_STRING"
1759 _ACEOF
1760
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1764 _ACEOF
1765
1766
1767 # Let the site file select an alternate cache file if it wants to.
1768 # Prefer explicitly selected file to automatically selected ones.
1769 if test -n "$CONFIG_SITE"; then
1770   set x "$CONFIG_SITE"
1771 elif test "x$prefix" != xNONE; then
1772   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1773 else
1774   set x "$ac_default_prefix/share/config.site" \
1775         "$ac_default_prefix/etc/config.site"
1776 fi
1777 shift
1778 for ac_site_file
1779 do
1780   if test -r "$ac_site_file"; then
1781     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1782 echo "$as_me: loading site script $ac_site_file" >&6;}
1783     sed 's/^/| /' "$ac_site_file" >&5
1784     . "$ac_site_file"
1785   fi
1786 done
1787
1788 if test -r "$cache_file"; then
1789   # Some versions of bash will fail to source /dev/null (special
1790   # files actually), so we avoid doing that.
1791   if test -f "$cache_file"; then
1792     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1793 echo "$as_me: loading cache $cache_file" >&6;}
1794     case $cache_file in
1795       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1796       *)                      . "./$cache_file";;
1797     esac
1798   fi
1799 else
1800   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1801 echo "$as_me: creating cache $cache_file" >&6;}
1802   >$cache_file
1803 fi
1804
1805 # Check that the precious variables saved in the cache have kept the same
1806 # value.
1807 ac_cache_corrupted=false
1808 for ac_var in $ac_precious_vars; do
1809   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1810   eval ac_new_set=\$ac_env_${ac_var}_set
1811   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1812   eval ac_new_val=\$ac_env_${ac_var}_value
1813   case $ac_old_set,$ac_new_set in
1814     set,)
1815       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1816 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1817       ac_cache_corrupted=: ;;
1818     ,set)
1819       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1820 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1821       ac_cache_corrupted=: ;;
1822     ,);;
1823     *)
1824       if test "x$ac_old_val" != "x$ac_new_val"; then
1825         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1826 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1827         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1828 echo "$as_me:   former value:  $ac_old_val" >&2;}
1829         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1830 echo "$as_me:   current value: $ac_new_val" >&2;}
1831         ac_cache_corrupted=:
1832       fi;;
1833   esac
1834   # Pass precious variables to config.status.
1835   if test "$ac_new_set" = set; then
1836     case $ac_new_val in
1837     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1838     *) ac_arg=$ac_var=$ac_new_val ;;
1839     esac
1840     case " $ac_configure_args " in
1841       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1842       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1843     esac
1844   fi
1845 done
1846 if $ac_cache_corrupted; then
1847   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1848 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1849   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1850 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1851    { (exit 1); exit 1; }; }
1852 fi
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878 ac_ext=c
1879 ac_cpp='$CPP $CPPFLAGS'
1880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883
1884
1885
1886 LLVM_SRC_ROOT="../.."
1887 LLVM_OBJ_ROOT="../.."
1888
1889 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1890 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1891
1892
1893 # Check whether --with-llvmsrc was given.
1894 if test "${with_llvmsrc+set}" = set; then
1895   withval=$with_llvmsrc; llvm_src="$withval"
1896 else
1897   llvm_src="$LLVM_ABS_SRC_ROOT"
1898 fi
1899
1900   LLVM_SRC=$llvm_src
1901
1902
1903 # Check whether --with-llvmobj was given.
1904 if test "${with_llvmobj+set}" = set; then
1905   withval=$with_llvmobj; llvm_obj="$withval"
1906 else
1907   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1908 fi
1909
1910   LLVM_OBJ=$llvm_obj
1911
1912   ac_config_commands="$ac_config_commands setup"
1913
1914
1915
1916 { echo "$as_me:$LINENO: checking llvm-config" >&5
1917 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1918 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1919 if ! test -f "$llvm_config_path" ; then
1920    llvm_config_path="no"
1921 fi
1922 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1923 echo "${ECHO_T}$llvm_config_path" >&6; }
1924
1925 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1926 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1927 if test "$llvm_config_path" != no ; then
1928   llvm_package_version=`$llvm_config_path --version`
1929 else
1930   llvm_package_version="unknown";
1931 fi
1932 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1933 echo "${ECHO_T}$llvm_package_version" >&6; }
1934 LLVM_VERSION=$llvm_package_version
1935
1936
1937
1938
1939 ac_aux_dir=
1940 for ac_dir in autoconf "$srcdir"/autoconf; do
1941   if test -f "$ac_dir/install-sh"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/install-sh -c"
1944     break
1945   elif test -f "$ac_dir/install.sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install.sh -c"
1948     break
1949   elif test -f "$ac_dir/shtool"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/shtool install -c"
1952     break
1953   fi
1954 done
1955 if test -z "$ac_aux_dir"; then
1956   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1968
1969
1970
1971
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977 if test -n "$ac_tool_prefix"; then
1978   for ac_prog in clang llvm-gcc gcc
1979   do
1980     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$CC"; then
1988   ac_cv_prog_CC="$CC" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995   for ac_exec_ext in '' $ac_executable_extensions; do
1996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1997     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003 IFS=$as_save_IFS
2004
2005 fi
2006 fi
2007 CC=$ac_cv_prog_CC
2008 if test -n "$CC"; then
2009   { echo "$as_me:$LINENO: result: $CC" >&5
2010 echo "${ECHO_T}$CC" >&6; }
2011 else
2012   { echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6; }
2014 fi
2015
2016
2017     test -n "$CC" && break
2018   done
2019 fi
2020 if test -z "$CC"; then
2021   ac_ct_CC=$CC
2022   for ac_prog in clang llvm-gcc gcc
2023 do
2024   # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   if test -n "$ac_ct_CC"; then
2032   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039   for ac_exec_ext in '' $ac_executable_extensions; do
2040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2041     ac_cv_prog_ac_ct_CC="$ac_prog"
2042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043     break 2
2044   fi
2045 done
2046 done
2047 IFS=$as_save_IFS
2048
2049 fi
2050 fi
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6; }
2055 else
2056   { echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6; }
2058 fi
2059
2060
2061   test -n "$ac_ct_CC" && break
2062 done
2063
2064   if test "x$ac_ct_CC" = x; then
2065     CC=""
2066   else
2067     case $cross_compiling:$ac_tool_warned in
2068 yes:)
2069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet.  If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&5
2072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2073 whose name does not start with the host triplet.  If you think this
2074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2075 ac_tool_warned=yes ;;
2076 esac
2077     CC=$ac_ct_CC
2078   fi
2079 fi
2080
2081
2082 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&2;}
2086    { (exit 1); exit 1; }; }
2087
2088 # Provide some information about the compiler.
2089 echo "$as_me:$LINENO: checking for C compiler version" >&5
2090 ac_compiler=`set X $ac_compile; echo $2`
2091 { (ac_try="$ac_compiler --version >&5"
2092 case "(($ac_try" in
2093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094   *) ac_try_echo=$ac_try;;
2095 esac
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097   (eval "$ac_compiler --version >&5") 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }
2101 { (ac_try="$ac_compiler -v >&5"
2102 case "(($ac_try" in
2103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104   *) ac_try_echo=$ac_try;;
2105 esac
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107   (eval "$ac_compiler -v >&5") 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }
2111 { (ac_try="$ac_compiler -V >&5"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2117   (eval "$ac_compiler -V >&5") 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }
2121
2122 cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 ac_clean_files_save=$ac_clean_files
2138 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2139 # Try to create an executable without -o first, disregard a.out.
2140 # It will help us diagnose broken compilers, and finding out an intuition
2141 # of exeext.
2142 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2143 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2144 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2145 #
2146 # List of possible output files, starting from the most likely.
2147 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2148 # only as a last resort.  b.out is created by i960 compilers.
2149 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2150 #
2151 # The IRIX 6 linker writes into existing files which may not be
2152 # executable, retaining their permissions.  Remove them first so a
2153 # subsequent execution test works.
2154 ac_rmfiles=
2155 for ac_file in $ac_files
2156 do
2157   case $ac_file in
2158     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2159     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2160   esac
2161 done
2162 rm -f $ac_rmfiles
2163
2164 if { (ac_try="$ac_link_default"
2165 case "(($ac_try" in
2166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167   *) ac_try_echo=$ac_try;;
2168 esac
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170   (eval "$ac_link_default") 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; then
2174   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2175 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2176 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2177 # so that the user can short-circuit this test for compilers unknown to
2178 # Autoconf.
2179 for ac_file in $ac_files
2180 do
2181   test -f "$ac_file" || continue
2182   case $ac_file in
2183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2184         ;;
2185     [ab].out )
2186         # We found the default executable, but exeext='' is most
2187         # certainly right.
2188         break;;
2189     *.* )
2190         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2191         then :; else
2192            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193         fi
2194         # We set ac_cv_exeext here because the later test for it is not
2195         # safe: cross compilers may not add the suffix if given an `-o'
2196         # argument, so we may need to know it at that point already.
2197         # Even if this section looks crufty: it has the advantage of
2198         # actually working.
2199         break;;
2200     * )
2201         break;;
2202   esac
2203 done
2204 test "$ac_cv_exeext" = no && ac_cv_exeext=
2205
2206 else
2207   echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&2;}
2214    { (exit 77); exit 77; }; }
2215 fi
2216
2217 ac_exeext=$ac_cv_exeext
2218 { echo "$as_me:$LINENO: result: $ac_file" >&5
2219 echo "${ECHO_T}$ac_file" >&6; }
2220
2221 # Check that the compiler produces executables we can run.  If not, either
2222 # the compiler is broken, or we cross compile.
2223 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226 # If not cross compiling, check that we can run a simple program.
2227 if test "$cross_compiling" != yes; then
2228   if { ac_try='./$ac_file'
2229   { (case "(($ac_try" in
2230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231   *) ac_try_echo=$ac_try;;
2232 esac
2233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234   (eval "$ac_try") 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; }; then
2238     cross_compiling=no
2239   else
2240     if test "$cross_compiling" = maybe; then
2241         cross_compiling=yes
2242     else
2243         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&5
2246 echo "$as_me: error: cannot run C compiled programs.
2247 If you meant to cross compile, use \`--host'.
2248 See \`config.log' for more details." >&2;}
2249    { (exit 1); exit 1; }; }
2250     fi
2251   fi
2252 fi
2253 { echo "$as_me:$LINENO: result: yes" >&5
2254 echo "${ECHO_T}yes" >&6; }
2255
2256 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2257 ac_clean_files=$ac_clean_files_save
2258 # Check that the compiler produces executables we can run.  If not, either
2259 # the compiler is broken, or we cross compile.
2260 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2261 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2262 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2263 echo "${ECHO_T}$cross_compiling" >&6; }
2264
2265 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2266 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2267 if { (ac_try="$ac_link"
2268 case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273   (eval "$ac_link") 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; then
2277   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2279 # work properly (i.e., refer to `conftest.exe'), while it won't with
2280 # `rm'.
2281 for ac_file in conftest.exe conftest conftest.*; do
2282   test -f "$ac_file" || continue
2283   case $ac_file in
2284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2285     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286           break;;
2287     * ) break;;
2288   esac
2289 done
2290 else
2291   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&2;}
2295    { (exit 1); exit 1; }; }
2296 fi
2297
2298 rm -f conftest$ac_cv_exeext
2299 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2301
2302 rm -f conftest.$ac_ext
2303 EXEEXT=$ac_cv_exeext
2304 ac_exeext=$EXEEXT
2305 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2307 if test "${ac_cv_objext+set}" = set; then
2308   echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310   cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h.  */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h.  */
2316
2317 int
2318 main ()
2319 {
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 rm -f conftest.o conftest.obj
2326 if { (ac_try="$ac_compile"
2327 case "(($ac_try" in
2328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329   *) ac_try_echo=$ac_try;;
2330 esac
2331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2332   (eval "$ac_compile") 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; then
2336   for ac_file in conftest.o conftest.obj conftest.*; do
2337   test -f "$ac_file" || continue;
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2340     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2341        break;;
2342   esac
2343 done
2344 else
2345   echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&2;}
2352    { (exit 1); exit 1; }; }
2353 fi
2354
2355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356 fi
2357 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358 echo "${ECHO_T}$ac_cv_objext" >&6; }
2359 OBJEXT=$ac_cv_objext
2360 ac_objext=$OBJEXT
2361 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376 #ifndef __GNUC__
2377        choke me
2378 #endif
2379
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 rm -f conftest.$ac_objext
2385 if { (ac_try="$ac_compile"
2386 case "(($ac_try" in
2387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388   *) ac_try_echo=$ac_try;;
2389 esac
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391   (eval "$ac_compile") 2>conftest.er1
2392   ac_status=$?
2393   grep -v '^ *+' conftest.er1 >conftest.err
2394   rm -f conftest.er1
2395   cat conftest.err >&5
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); } &&
2398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2399   { (case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404   (eval "$ac_try") 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; } &&
2408          { ac_try='test -s conftest.$ac_objext'
2409   { (case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414   (eval "$ac_try") 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; }; then
2418   ac_compiler_gnu=yes
2419 else
2420   echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423         ac_compiler_gnu=no
2424 fi
2425
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428
2429 fi
2430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2432 GCC=`test $ac_compiler_gnu = yes && echo yes`
2433 ac_test_CFLAGS=${CFLAGS+set}
2434 ac_save_CFLAGS=$CFLAGS
2435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_cc_g+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   ac_save_c_werror_flag=$ac_c_werror_flag
2441    ac_c_werror_flag=yes
2442    ac_cv_prog_cc_g=no
2443    CFLAGS="-g"
2444    cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h.  */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h.  */
2450
2451 int
2452 main ()
2453 {
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (ac_try="$ac_compile"
2461 case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_compile") 2>conftest.er1
2467   ac_status=$?
2468   grep -v '^ *+' conftest.er1 >conftest.err
2469   rm -f conftest.er1
2470   cat conftest.err >&5
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); } &&
2473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2474   { (case "(($ac_try" in
2475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476   *) ac_try_echo=$ac_try;;
2477 esac
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479   (eval "$ac_try") 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_try") 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; }; then
2493   ac_cv_prog_cc_g=yes
2494 else
2495   echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2497
2498         CFLAGS=""
2499       cat >conftest.$ac_ext <<_ACEOF
2500 /* confdefs.h.  */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h.  */
2505
2506 int
2507 main ()
2508 {
2509
2510   ;
2511   return 0;
2512 }
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (ac_try="$ac_compile"
2516 case "(($ac_try" in
2517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518   *) ac_try_echo=$ac_try;;
2519 esac
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521   (eval "$ac_compile") 2>conftest.er1
2522   ac_status=$?
2523   grep -v '^ *+' conftest.er1 >conftest.err
2524   rm -f conftest.er1
2525   cat conftest.err >&5
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); } &&
2528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2529   { (case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534   (eval "$ac_try") 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; } &&
2538          { ac_try='test -s conftest.$ac_objext'
2539   { (case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544   (eval "$ac_try") 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548   :
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553         ac_c_werror_flag=$ac_save_c_werror_flag
2554          CFLAGS="-g"
2555          cat >conftest.$ac_ext <<_ACEOF
2556 /* confdefs.h.  */
2557 _ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h.  */
2561
2562 int
2563 main ()
2564 {
2565
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (ac_try="$ac_compile"
2572 case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_compile") 2>conftest.er1
2578   ac_status=$?
2579   grep -v '^ *+' conftest.er1 >conftest.err
2580   rm -f conftest.er1
2581   cat conftest.err >&5
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } &&
2584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2585   { (case "(($ac_try" in
2586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587   *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590   (eval "$ac_try") 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (case "(($ac_try" in
2596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597   *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600   (eval "$ac_try") 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   ac_cv_prog_cc_g=yes
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609
2610 fi
2611
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 fi
2617
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619    ac_c_werror_flag=$ac_save_c_werror_flag
2620 fi
2621 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2622 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2623 if test "$ac_test_CFLAGS" = set; then
2624   CFLAGS=$ac_save_CFLAGS
2625 elif test $ac_cv_prog_cc_g = yes; then
2626   if test "$GCC" = yes; then
2627     CFLAGS="-g -O2"
2628   else
2629     CFLAGS="-g"
2630   fi
2631 else
2632   if test "$GCC" = yes; then
2633     CFLAGS="-O2"
2634   else
2635     CFLAGS=
2636   fi
2637 fi
2638 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2639 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_cc_c89+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   ac_cv_prog_cc_c89=no
2644 ac_save_CC=$CC
2645 cat >conftest.$ac_ext <<_ACEOF
2646 /* confdefs.h.  */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h.  */
2651 #include <stdarg.h>
2652 #include <stdio.h>
2653 #include <sys/types.h>
2654 #include <sys/stat.h>
2655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2656 struct buf { int x; };
2657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2658 static char *e (p, i)
2659      char **p;
2660      int i;
2661 {
2662   return p[i];
2663 }
2664 static char *f (char * (*g) (char **, int), char **p, ...)
2665 {
2666   char *s;
2667   va_list v;
2668   va_start (v,p);
2669   s = g (p, va_arg (v,int));
2670   va_end (v);
2671   return s;
2672 }
2673
2674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2675    function prototypes and stuff, but not '\xHH' hex character constants.
2676    These don't provoke an error unfortunately, instead are silently treated
2677    as 'x'.  The following induces an error, until -std is added to get
2678    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2679    array size at least.  It's necessary to write '\x00'==0 to get something
2680    that's true only with -std.  */
2681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2682
2683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2684    inside strings and character constants.  */
2685 #define FOO(x) 'x'
2686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2687
2688 int test (int i, double x);
2689 struct s1 {int (*f) (int a);};
2690 struct s2 {int (*f) (double a);};
2691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2692 int argc;
2693 char **argv;
2694 int
2695 main ()
2696 {
2697 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2703         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2704 do
2705   CC="$ac_save_CC $ac_arg"
2706   rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_compile") 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721   { (case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_try") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; } &&
2730          { ac_try='test -s conftest.$ac_objext'
2731   { (case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_try") 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   ac_cv_prog_cc_c89=$ac_arg
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745
2746 fi
2747
2748 rm -f core conftest.err conftest.$ac_objext
2749   test "x$ac_cv_prog_cc_c89" != "xno" && break
2750 done
2751 rm -f conftest.$ac_ext
2752 CC=$ac_save_CC
2753
2754 fi
2755 # AC_CACHE_VAL
2756 case "x$ac_cv_prog_cc_c89" in
2757   x)
2758     { echo "$as_me:$LINENO: result: none needed" >&5
2759 echo "${ECHO_T}none needed" >&6; } ;;
2760   xno)
2761     { echo "$as_me:$LINENO: result: unsupported" >&5
2762 echo "${ECHO_T}unsupported" >&6; } ;;
2763   *)
2764     CC="$CC $ac_cv_prog_cc_c89"
2765     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2766 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2767 esac
2768
2769
2770 ac_ext=c
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775
2776 ac_ext=cpp
2777 ac_cpp='$CXXCPP $CPPFLAGS'
2778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2781 if test -z "$CXX"; then
2782   if test -n "$CCC"; then
2783     CXX=$CCC
2784   else
2785     if test -n "$ac_tool_prefix"; then
2786   for ac_prog in clang++ llvm-g++ g++
2787   do
2788     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_CXX+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   if test -n "$CXX"; then
2796   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803   for ac_exec_ext in '' $ac_executable_extensions; do
2804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2805     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807     break 2
2808   fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 CXX=$ac_cv_prog_CXX
2816 if test -n "$CXX"; then
2817   { echo "$as_me:$LINENO: result: $CXX" >&5
2818 echo "${ECHO_T}$CXX" >&6; }
2819 else
2820   { echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6; }
2822 fi
2823
2824
2825     test -n "$CXX" && break
2826   done
2827 fi
2828 if test -z "$CXX"; then
2829   ac_ct_CXX=$CXX
2830   for ac_prog in clang++ llvm-g++ g++
2831 do
2832   # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2837   echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839   if test -n "$ac_ct_CXX"; then
2840   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847   for ac_exec_ext in '' $ac_executable_extensions; do
2848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2849     ac_cv_prog_ac_ct_CXX="$ac_prog"
2850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851     break 2
2852   fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2860 if test -n "$ac_ct_CXX"; then
2861   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2862 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2863 else
2864   { echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6; }
2866 fi
2867
2868
2869   test -n "$ac_ct_CXX" && break
2870 done
2871
2872   if test "x$ac_ct_CXX" = x; then
2873     CXX="g++"
2874   else
2875     case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet.  If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&5
2880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet.  If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885     CXX=$ac_ct_CXX
2886   fi
2887 fi
2888
2889   fi
2890 fi
2891 # Provide some information about the compiler.
2892 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2893 ac_compiler=`set X $ac_compile; echo $2`
2894 { (ac_try="$ac_compiler --version >&5"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compiler --version >&5") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }
2904 { (ac_try="$ac_compiler -v >&5"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compiler -v >&5") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }
2914 { (ac_try="$ac_compiler -V >&5"
2915 case "(($ac_try" in
2916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917   *) ac_try_echo=$ac_try;;
2918 esac
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920   (eval "$ac_compiler -V >&5") 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); }
2924
2925 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2926 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2927 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h.  */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h.  */
2936
2937 int
2938 main ()
2939 {
2940 #ifndef __GNUC__
2941        choke me
2942 #endif
2943
2944   ;
2945   return 0;
2946 }
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (ac_try="$ac_compile"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_compile") 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } &&
2962          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2963   { (case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_try") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; } &&
2972          { ac_try='test -s conftest.$ac_objext'
2973   { (case "(($ac_try" in
2974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975   *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978   (eval "$ac_try") 2>&5
2979   ac_status=$?
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); }; }; then
2982   ac_compiler_gnu=yes
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987         ac_compiler_gnu=no
2988 fi
2989
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2992
2993 fi
2994 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2995 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2996 GXX=`test $ac_compiler_gnu = yes && echo yes`
2997 ac_test_CXXFLAGS=${CXXFLAGS+set}
2998 ac_save_CXXFLAGS=$CXXFLAGS
2999 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3000 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_cxx_g+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3005    ac_cxx_werror_flag=yes
3006    ac_cv_prog_cxx_g=no
3007    CXXFLAGS="-g"
3008    cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h.  */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h.  */
3014
3015 int
3016 main ()
3017 {
3018
3019   ;
3020   return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_compile") 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } &&
3037          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3038   { (case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_try") 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; } &&
3047          { ac_try='test -s conftest.$ac_objext'
3048   { (case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_try") 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; }; then
3057   ac_cv_prog_cxx_g=yes
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062         CXXFLAGS=""
3063       cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_compile") 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } &&
3092          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3093   { (case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098   (eval "$ac_try") 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; } &&
3102          { ac_try='test -s conftest.$ac_objext'
3103   { (case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_try") 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }; }; then
3112   :
3113 else
3114   echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3118          CXXFLAGS="-g"
3119          cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_compile") 2>conftest.er1
3142   ac_status=$?
3143   grep -v '^ *+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
3145   cat conftest.err >&5
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } &&
3148          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; } &&
3158          { ac_try='test -s conftest.$ac_objext'
3159   { (case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_try") 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; }; then
3168   ac_cv_prog_cxx_g=yes
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 fi
3181
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3184 fi
3185 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3186 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3187 if test "$ac_test_CXXFLAGS" = set; then
3188   CXXFLAGS=$ac_save_CXXFLAGS
3189 elif test $ac_cv_prog_cxx_g = yes; then
3190   if test "$GXX" = yes; then
3191     CXXFLAGS="-g -O2"
3192   else
3193     CXXFLAGS="-g"
3194   fi
3195 else
3196   if test "$GXX" = yes; then
3197     CXXFLAGS="-O2"
3198   else
3199     CXXFLAGS=
3200   fi
3201 fi
3202 ac_ext=c
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3214 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3215 # On Suns, sometimes $CPP names a directory.
3216 if test -n "$CPP" && test -d "$CPP"; then
3217   CPP=
3218 fi
3219 if test -z "$CPP"; then
3220   if test "${ac_cv_prog_CPP+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223       # Double quotes because CPP needs to be expanded
3224     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225     do
3226       ac_preproc_ok=false
3227 for ac_c_preproc_warn_flag in '' yes
3228 do
3229   # Use a header file that comes with gcc, so configuring glibc
3230   # with a fresh cross-compiler works.
3231   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232   # <limits.h> exists even on freestanding compilers.
3233   # On the NeXT, cc -E runs the code through the compiler's parser,
3234   # not just through cpp. "Syntax error" is here to catch this case.
3235   cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h.  */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h.  */
3241 #ifdef __STDC__
3242 # include <limits.h>
3243 #else
3244 # include <assert.h>
3245 #endif
3246                      Syntax error
3247 _ACEOF
3248 if { (ac_try="$ac_cpp conftest.$ac_ext"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } >/dev/null; then
3261   if test -s conftest.err; then
3262     ac_cpp_err=$ac_c_preproc_warn_flag
3263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264   else
3265     ac_cpp_err=
3266   fi
3267 else
3268   ac_cpp_err=yes
3269 fi
3270 if test -z "$ac_cpp_err"; then
3271   :
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276   # Broken: fails on valid input.
3277 continue
3278 fi
3279
3280 rm -f conftest.err conftest.$ac_ext
3281
3282   # OK, works on sane cases.  Now check whether nonexistent headers
3283   # can be detected and how.
3284   cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h.  */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h.  */
3290 #include <ac_nonexistent.h>
3291 _ACEOF
3292 if { (ac_try="$ac_cpp conftest.$ac_ext"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } >/dev/null; then
3305   if test -s conftest.err; then
3306     ac_cpp_err=$ac_c_preproc_warn_flag
3307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3308   else
3309     ac_cpp_err=
3310   fi
3311 else
3312   ac_cpp_err=yes
3313 fi
3314 if test -z "$ac_cpp_err"; then
3315   # Broken: success on invalid input.
3316 continue
3317 else
3318   echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321   # Passes both tests.
3322 ac_preproc_ok=:
3323 break
3324 fi
3325
3326 rm -f conftest.err conftest.$ac_ext
3327
3328 done
3329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3330 rm -f conftest.err conftest.$ac_ext
3331 if $ac_preproc_ok; then
3332   break
3333 fi
3334
3335     done
3336     ac_cv_prog_CPP=$CPP
3337
3338 fi
3339   CPP=$ac_cv_prog_CPP
3340 else
3341   ac_cv_prog_CPP=$CPP
3342 fi
3343 { echo "$as_me:$LINENO: result: $CPP" >&5
3344 echo "${ECHO_T}$CPP" >&6; }
3345 ac_preproc_ok=false
3346 for ac_c_preproc_warn_flag in '' yes
3347 do
3348   # Use a header file that comes with gcc, so configuring glibc
3349   # with a fresh cross-compiler works.
3350   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351   # <limits.h> exists even on freestanding compilers.
3352   # On the NeXT, cc -E runs the code through the compiler's parser,
3353   # not just through cpp. "Syntax error" is here to catch this case.
3354   cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h.  */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h.  */
3360 #ifdef __STDC__
3361 # include <limits.h>
3362 #else
3363 # include <assert.h>
3364 #endif
3365                      Syntax error
3366 _ACEOF
3367 if { (ac_try="$ac_cpp conftest.$ac_ext"
3368 case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374   ac_status=$?
3375   grep -v '^ *+' conftest.er1 >conftest.err
3376   rm -f conftest.er1
3377   cat conftest.err >&5
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); } >/dev/null; then
3380   if test -s conftest.err; then
3381     ac_cpp_err=$ac_c_preproc_warn_flag
3382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3383   else
3384     ac_cpp_err=
3385   fi
3386 else
3387   ac_cpp_err=yes
3388 fi
3389 if test -z "$ac_cpp_err"; then
3390   :
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395   # Broken: fails on valid input.
3396 continue
3397 fi
3398
3399 rm -f conftest.err conftest.$ac_ext
3400
3401   # OK, works on sane cases.  Now check whether nonexistent headers
3402   # can be detected and how.
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } >/dev/null; then
3424   if test -s conftest.err; then
3425     ac_cpp_err=$ac_c_preproc_warn_flag
3426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427   else
3428     ac_cpp_err=
3429   fi
3430 else
3431   ac_cpp_err=yes
3432 fi
3433 if test -z "$ac_cpp_err"; then
3434   # Broken: success on invalid input.
3435 continue
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440   # Passes both tests.
3441 ac_preproc_ok=:
3442 break
3443 fi
3444
3445 rm -f conftest.err conftest.$ac_ext
3446
3447 done
3448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3449 rm -f conftest.err conftest.$ac_ext
3450 if $ac_preproc_ok; then
3451   :
3452 else
3453   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&2;}
3457    { (exit 1); exit 1; }; }
3458 fi
3459
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467
3468
3469 # Check whether --enable-polly was given.
3470 if test "${enable_polly+set}" = set; then
3471   enableval=$enable_polly;
3472 else
3473   enableval=default
3474 fi
3475
3476 case "$enableval" in
3477   yes) ENABLE_POLLY=1
3478  ;;
3479   no)  ENABLE_POLLY=0
3480  ;;
3481   default) ENABLE_POLLY=1
3482  ;;
3483   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3484 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3485    { (exit 1); exit 1; }; } ;;
3486 esac
3487
3488
3489 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3490   LLVM_HAS_POLLY=1
3491
3492   subdirs="$subdirs tools/polly"
3493
3494 fi
3495
3496
3497 # Make sure we can run config.sub.
3498 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3499   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3500 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3501    { (exit 1); exit 1; }; }
3502
3503 { echo "$as_me:$LINENO: checking build system type" >&5
3504 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3505 if test "${ac_cv_build+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   ac_build_alias=$build_alias
3509 test "x$ac_build_alias" = x &&
3510   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3511 test "x$ac_build_alias" = x &&
3512   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3514    { (exit 1); exit 1; }; }
3515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3516   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3517 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3518    { (exit 1); exit 1; }; }
3519
3520 fi
3521 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3522 echo "${ECHO_T}$ac_cv_build" >&6; }
3523 case $ac_cv_build in
3524 *-*-*) ;;
3525 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3526 echo "$as_me: error: invalid value of canonical build" >&2;}
3527    { (exit 1); exit 1; }; };;
3528 esac
3529 build=$ac_cv_build
3530 ac_save_IFS=$IFS; IFS='-'
3531 set x $ac_cv_build
3532 shift
3533 build_cpu=$1
3534 build_vendor=$2
3535 shift; shift
3536 # Remember, the first character of IFS is used to create $*,
3537 # except with old shells:
3538 build_os=$*
3539 IFS=$ac_save_IFS
3540 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541
3542
3543 { echo "$as_me:$LINENO: checking host system type" >&5
3544 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3545 if test "${ac_cv_host+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   if test "x$host_alias" = x; then
3549   ac_cv_host=$ac_cv_build
3550 else
3551   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3552     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3553 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3554    { (exit 1); exit 1; }; }
3555 fi
3556
3557 fi
3558 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3559 echo "${ECHO_T}$ac_cv_host" >&6; }
3560 case $ac_cv_host in
3561 *-*-*) ;;
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3563 echo "$as_me: error: invalid value of canonical host" >&2;}
3564    { (exit 1); exit 1; }; };;
3565 esac
3566 host=$ac_cv_host
3567 ac_save_IFS=$IFS; IFS='-'
3568 set x $ac_cv_host
3569 shift
3570 host_cpu=$1
3571 host_vendor=$2
3572 shift; shift
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3575 host_os=$*
3576 IFS=$ac_save_IFS
3577 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3578
3579
3580 { echo "$as_me:$LINENO: checking target system type" >&5
3581 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_target+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   if test "x$target_alias" = x; then
3586   ac_cv_target=$ac_cv_host
3587 else
3588   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3589     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3591    { (exit 1); exit 1; }; }
3592 fi
3593
3594 fi
3595 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3596 echo "${ECHO_T}$ac_cv_target" >&6; }
3597 case $ac_cv_target in
3598 *-*-*) ;;
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3600 echo "$as_me: error: invalid value of canonical target" >&2;}
3601    { (exit 1); exit 1; }; };;
3602 esac
3603 target=$ac_cv_target
3604 ac_save_IFS=$IFS; IFS='-'
3605 set x $ac_cv_target
3606 shift
3607 target_cpu=$1
3608 target_vendor=$2
3609 shift; shift
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3612 target_os=$*
3613 IFS=$ac_save_IFS
3614 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3615
3616
3617 # The aliases save the names the user supplied, while $host etc.
3618 # will get canonicalized.
3619 test -n "$target_alias" &&
3620   test "$program_prefix$program_suffix$program_transform_name" = \
3621     NONENONEs,x,x, &&
3622   program_prefix=${target_alias}-
3623
3624 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3625 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3626 if test "${llvm_cv_os_type+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   case $host in
3630   *-*-aix*)
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="AIX"
3634     llvm_cv_platform_type="Unix" ;;
3635   *-*-irix*)
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="IRIX"
3639     llvm_cv_platform_type="Unix" ;;
3640   *-*-cygwin*)
3641     llvm_cv_link_all_option="-Wl,--whole-archive"
3642     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3643     llvm_cv_os_type="Cygwin"
3644     llvm_cv_platform_type="Unix" ;;
3645   *-*-darwin*)
3646     llvm_cv_link_all_option="-Wl,-all_load"
3647     llvm_cv_no_link_all_option="-Wl,-noall_load"
3648     llvm_cv_os_type="Darwin"
3649     llvm_cv_platform_type="Unix" ;;
3650   *-*-minix*)
3651     llvm_cv_link_all_option="-Wl,-all_load"
3652     llvm_cv_no_link_all_option="-Wl,-noall_load"
3653     llvm_cv_os_type="Minix"
3654     llvm_cv_platform_type="Unix" ;;
3655   *-*-freebsd* | *-*-kfreebsd-gnu)
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="FreeBSD"
3659     llvm_cv_platform_type="Unix" ;;
3660   *-*-openbsd*)
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="OpenBSD"
3664     llvm_cv_platform_type="Unix" ;;
3665   *-*-netbsd*)
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="NetBSD"
3669     llvm_cv_platform_type="Unix" ;;
3670   *-*-dragonfly*)
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="DragonFly"
3674     llvm_cv_platform_type="Unix" ;;
3675   *-*-hpux*)
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="HP-UX"
3679     llvm_cv_platform_type="Unix" ;;
3680   *-*-interix*)
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="Interix"
3684     llvm_cv_platform_type="Unix" ;;
3685   *-*-linux*)
3686     llvm_cv_link_all_option="-Wl,--whole-archive"
3687     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688     llvm_cv_os_type="Linux"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-gnu*)
3691     llvm_cv_link_all_option="-Wl,--whole-archive"
3692     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693     llvm_cv_os_type="GNU"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-solaris*)
3696     llvm_cv_link_all_option="-Wl,-z,allextract"
3697     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3698     llvm_cv_os_type="SunOS"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-auroraux*)
3701     llvm_cv_link_all_option="-Wl,-z,allextract"
3702     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3703     llvm_cv_os_type="AuroraUX"
3704     llvm_cv_platform_type="Unix" ;;
3705   *-*-win32*)
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="Win32"
3709     llvm_cv_platform_type="Win32" ;;
3710   *-*-mingw*)
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="MingW"
3714     llvm_cv_platform_type="Win32" ;;
3715   *-*-haiku*)
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="Haiku"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-unknown-eabi*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="Freestanding"
3724     llvm_cv_platform_type="Unix" ;;
3725   *-unknown-elf*)
3726     llvm_cv_link_all_option="-Wl,--whole-archive"
3727     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728     llvm_cv_os_type="Freestanding"
3729     llvm_cv_platform_type="Unix" ;;
3730   *)
3731     llvm_cv_link_all_option=""
3732     llvm_cv_no_link_all_option=""
3733     llvm_cv_os_type="Unknown"
3734     llvm_cv_platform_type="Unknown" ;;
3735 esac
3736 fi
3737 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3738 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3739
3740 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3741 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3742 if test "${llvm_cv_target_os_type+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $target in
3746   *-*-aix*)
3747     llvm_cv_target_os_type="AIX" ;;
3748   *-*-irix*)
3749     llvm_cv_target_os_type="IRIX" ;;
3750   *-*-cygwin*)
3751     llvm_cv_target_os_type="Cygwin" ;;
3752   *-*-darwin*)
3753     llvm_cv_target_os_type="Darwin" ;;
3754   *-*-minix*)
3755     llvm_cv_target_os_type="Minix" ;;
3756   *-*-freebsd* | *-*-kfreebsd-gnu)
3757     llvm_cv_target_os_type="FreeBSD" ;;
3758   *-*-openbsd*)
3759     llvm_cv_target_os_type="OpenBSD" ;;
3760   *-*-netbsd*)
3761     llvm_cv_target_os_type="NetBSD" ;;
3762   *-*-dragonfly*)
3763     llvm_cv_target_os_type="DragonFly" ;;
3764   *-*-hpux*)
3765     llvm_cv_target_os_type="HP-UX" ;;
3766   *-*-interix*)
3767     llvm_cv_target_os_type="Interix" ;;
3768   *-*-linux*)
3769     llvm_cv_target_os_type="Linux" ;;
3770   *-*-gnu*)
3771     llvm_cv_target_os_type="GNU" ;;
3772   *-*-solaris*)
3773     llvm_cv_target_os_type="SunOS" ;;
3774   *-*-auroraux*)
3775     llvm_cv_target_os_type="AuroraUX" ;;
3776   *-*-win32*)
3777     llvm_cv_target_os_type="Win32" ;;
3778   *-*-mingw*)
3779     llvm_cv_target_os_type="MingW" ;;
3780   *-*-haiku*)
3781     llvm_cv_target_os_type="Haiku" ;;
3782   *-*-rtems*)
3783     llvm_cv_target_os_type="RTEMS" ;;
3784   *-*-nacl*)
3785     llvm_cv_target_os_type="NativeClient" ;;
3786   *-unknown-eabi*)
3787     llvm_cv_target_os_type="Freestanding" ;;
3788   *)
3789     llvm_cv_target_os_type="Unknown" ;;
3790 esac
3791 fi
3792 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3793 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3794
3795 if test "$llvm_cv_os_type" = "Unknown" ; then
3796   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3797 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3798    { (exit 1); exit 1; }; }
3799 fi
3800
3801 OS=$llvm_cv_os_type
3802
3803 HOST_OS=$llvm_cv_os_type
3804
3805 TARGET_OS=$llvm_cv_target_os_type
3806
3807
3808 LINKALL=$llvm_cv_link_all_option
3809
3810 NOLINKALL=$llvm_cv_no_link_all_option
3811
3812
3813 case $llvm_cv_platform_type in
3814   Unix)
3815
3816 cat >>confdefs.h <<\_ACEOF
3817 #define LLVM_ON_UNIX 1
3818 _ACEOF
3819
3820     LLVM_ON_UNIX=1
3821
3822     LLVM_ON_WIN32=0
3823
3824     ;;
3825   Win32)
3826
3827 cat >>confdefs.h <<\_ACEOF
3828 #define LLVM_ON_WIN32 1
3829 _ACEOF
3830
3831     LLVM_ON_UNIX=0
3832
3833     LLVM_ON_WIN32=1
3834
3835     ;;
3836 esac
3837
3838 { echo "$as_me:$LINENO: checking target architecture" >&5
3839 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3840 if test "${llvm_cv_target_arch+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   case $target in
3844   i?86-*)                 llvm_cv_target_arch="x86" ;;
3845   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3846   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3847   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3848   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3849   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
3850   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3851   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3852   xcore-*)                llvm_cv_target_arch="XCore" ;;
3853   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3854   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3855   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3856   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3857   *)                      llvm_cv_target_arch="Unknown" ;;
3858 esac
3859 fi
3860 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3861 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3862
3863 if test "$llvm_cv_target_arch" = "Unknown" ; then
3864   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3865 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3866 fi
3867
3868 # Determine the LLVM native architecture for the target
3869 case "$llvm_cv_target_arch" in
3870     x86)     LLVM_NATIVE_ARCH="X86" ;;
3871     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3872     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3873 esac
3874
3875 ARCH=$llvm_cv_target_arch
3876
3877
3878
3879
3880 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3881 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3882 if test "${ac_cv_path_GREP+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   # Extract the first word of "grep ggrep" to use in msg output
3886 if test -z "$GREP"; then
3887 set dummy grep ggrep; ac_prog_name=$2
3888 if test "${ac_cv_path_GREP+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   ac_path_GREP_found=false
3892 # Loop through the user's path and test for each of PROGNAME-LIST
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898   for ac_prog in grep ggrep; do
3899   for ac_exec_ext in '' $ac_executable_extensions; do
3900     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3901     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3902     # Check for GNU ac_path_GREP and select it if it is found.
3903   # Check for GNU $ac_path_GREP
3904 case `"$ac_path_GREP" --version 2>&1` in
3905 *GNU*)
3906   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3907 *)
3908   ac_count=0
3909   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3910   while :
3911   do
3912     cat "conftest.in" "conftest.in" >"conftest.tmp"
3913     mv "conftest.tmp" "conftest.in"
3914     cp "conftest.in" "conftest.nl"
3915     echo 'GREP' >> "conftest.nl"
3916     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918     ac_count=`expr $ac_count + 1`
3919     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3920       # Best one so far, save it but keep looking for a better one
3921       ac_cv_path_GREP="$ac_path_GREP"
3922       ac_path_GREP_max=$ac_count
3923     fi
3924     # 10*(2^10) chars as input seems more than enough
3925     test $ac_count -gt 10 && break
3926   done
3927   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928 esac
3929
3930
3931     $ac_path_GREP_found && break 3
3932   done
3933 done
3934
3935 done
3936 IFS=$as_save_IFS
3937
3938
3939 fi
3940
3941 GREP="$ac_cv_path_GREP"
3942 if test -z "$GREP"; then
3943   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3944 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3945    { (exit 1); exit 1; }; }
3946 fi
3947
3948 else
3949   ac_cv_path_GREP=$GREP
3950 fi
3951
3952
3953 fi
3954 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3955 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3956  GREP="$ac_cv_path_GREP"
3957
3958
3959 { echo "$as_me:$LINENO: checking for egrep" >&5
3960 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_EGREP+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3965    then ac_cv_path_EGREP="$GREP -E"
3966    else
3967      # Extract the first word of "egrep" to use in msg output
3968 if test -z "$EGREP"; then
3969 set dummy egrep; ac_prog_name=$2
3970 if test "${ac_cv_path_EGREP+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   ac_path_EGREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_prog in egrep; do
3981   for ac_exec_ext in '' $ac_executable_extensions; do
3982     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3983     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3984     # Check for GNU ac_path_EGREP and select it if it is found.
3985   # Check for GNU $ac_path_EGREP
3986 case `"$ac_path_EGREP" --version 2>&1` in
3987 *GNU*)
3988   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989 *)
3990   ac_count=0
3991   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992   while :
3993   do
3994     cat "conftest.in" "conftest.in" >"conftest.tmp"
3995     mv "conftest.tmp" "conftest.in"
3996     cp "conftest.in" "conftest.nl"
3997     echo 'EGREP' >> "conftest.nl"
3998     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000     ac_count=`expr $ac_count + 1`
4001     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4002       # Best one so far, save it but keep looking for a better one
4003       ac_cv_path_EGREP="$ac_path_EGREP"
4004       ac_path_EGREP_max=$ac_count
4005     fi
4006     # 10*(2^10) chars as input seems more than enough
4007     test $ac_count -gt 10 && break
4008   done
4009   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 esac
4011
4012
4013     $ac_path_EGREP_found && break 3
4014   done
4015 done
4016
4017 done
4018 IFS=$as_save_IFS
4019
4020
4021 fi
4022
4023 EGREP="$ac_cv_path_EGREP"
4024 if test -z "$EGREP"; then
4025   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027    { (exit 1); exit 1; }; }
4028 fi
4029
4030 else
4031   ac_cv_path_EGREP=$EGREP
4032 fi
4033
4034
4035    fi
4036 fi
4037 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4038 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4039  EGREP="$ac_cv_path_EGREP"
4040
4041
4042 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4044 if test "${ac_cv_header_stdc+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053 #include <stdlib.h>
4054 #include <stdarg.h>
4055 #include <string.h>
4056 #include <float.h>
4057
4058 int
4059 main ()
4060 {
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_compile") 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } &&
4080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4081   { (case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_try") 2>&5
4087   ac_status=$?
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); }; } &&
4090          { ac_try='test -s conftest.$ac_objext'
4091   { (case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096   (eval "$ac_try") 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   ac_cv_header_stdc=yes
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105         ac_cv_header_stdc=no
4106 fi
4107
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109
4110 if test $ac_cv_header_stdc = yes; then
4111   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4112   cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118 #include <string.h>
4119
4120 _ACEOF
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122   $EGREP "memchr" >/dev/null 2>&1; then
4123   :
4124 else
4125   ac_cv_header_stdc=no
4126 fi
4127 rm -f conftest*
4128
4129 fi
4130
4131 if test $ac_cv_header_stdc = yes; then
4132   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4133   cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h.  */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h.  */
4139 #include <stdlib.h>
4140
4141 _ACEOF
4142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4143   $EGREP "free" >/dev/null 2>&1; then
4144   :
4145 else
4146   ac_cv_header_stdc=no
4147 fi
4148 rm -f conftest*
4149
4150 fi
4151
4152 if test $ac_cv_header_stdc = yes; then
4153   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4154   if test "$cross_compiling" = yes; then
4155   :
4156 else
4157   cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163 #include <ctype.h>
4164 #include <stdlib.h>
4165 #if ((' ' & 0x0FF) == 0x020)
4166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168 #else
4169 # define ISLOWER(c) \
4170                    (('a' <= (c) && (c) <= 'i') \
4171                      || ('j' <= (c) && (c) <= 'r') \
4172                      || ('s' <= (c) && (c) <= 'z'))
4173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4174 #endif
4175
4176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4177 int
4178 main ()
4179 {
4180   int i;
4181   for (i = 0; i < 256; i++)
4182     if (XOR (islower (i), ISLOWER (i))
4183         || toupper (i) != TOUPPER (i))
4184       return 2;
4185   return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest$ac_exeext
4189 if { (ac_try="$ac_link"
4190 case "(($ac_try" in
4191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192   *) ac_try_echo=$ac_try;;
4193 esac
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195   (eval "$ac_link") 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199   { (case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204   (eval "$ac_try") 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }; }; then
4208   :
4209 else
4210   echo "$as_me: program exited with status $ac_status" >&5
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 ( exit $ac_status )
4215 ac_cv_header_stdc=no
4216 fi
4217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218 fi
4219
4220
4221 fi
4222 fi
4223 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4224 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4225 if test $ac_cv_header_stdc = yes; then
4226
4227 cat >>confdefs.h <<\_ACEOF
4228 #define STDC_HEADERS 1
4229 _ACEOF
4230
4231 fi
4232
4233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4244                   inttypes.h stdint.h unistd.h
4245 do
4246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4250   echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252   cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 $ac_includes_default
4259
4260 #include <$ac_header>
4261 _ACEOF
4262 rm -f conftest.$ac_objext
4263 if { (ac_try="$ac_compile"
4264 case "(($ac_try" in
4265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266   *) ac_try_echo=$ac_try;;
4267 esac
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269   (eval "$ac_compile") 2>conftest.er1
4270   ac_status=$?
4271   grep -v '^ *+' conftest.er1 >conftest.err
4272   rm -f conftest.er1
4273   cat conftest.err >&5
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } &&
4276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277   { (case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_try") 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; } &&
4286          { ac_try='test -s conftest.$ac_objext'
4287   { (case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; }; then
4296   eval "$as_ac_Header=yes"
4297 else
4298   echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301         eval "$as_ac_Header=no"
4302 fi
4303
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 ac_res=`eval echo '${'$as_ac_Header'}'`
4307                { echo "$as_me:$LINENO: result: $ac_res" >&5
4308 echo "${ECHO_T}$ac_res" >&6; }
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310   cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 _ACEOF
4313
4314 fi
4315
4316 done
4317
4318
4319 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4320 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4321 if test "${ac_cv_c_bigendian+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   # See if sys/param.h defines the BYTE_ORDER macro.
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 #include <sys/types.h>
4332 #include <sys/param.h>
4333
4334 int
4335 main ()
4336 {
4337 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4338  bogus endian macros
4339 #endif
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 rm -f conftest.$ac_objext
4346 if { (ac_try="$ac_compile"
4347 case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352   (eval "$ac_compile") 2>conftest.er1
4353   ac_status=$?
4354   grep -v '^ *+' conftest.er1 >conftest.err
4355   rm -f conftest.er1
4356   cat conftest.err >&5
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); } &&
4359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4360   { (case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365   (eval "$ac_try") 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); }; } &&
4369          { ac_try='test -s conftest.$ac_objext'
4370   { (case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375   (eval "$ac_try") 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   # It does; now see whether it defined to BIG_ENDIAN or not.
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h.  */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h.  */
4386 #include <sys/types.h>
4387 #include <sys/param.h>
4388
4389 int
4390 main ()
4391 {
4392 #if BYTE_ORDER != BIG_ENDIAN
4393  not big endian
4394 #endif
4395
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (ac_try="$ac_compile"
4402 case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407   (eval "$ac_compile") 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } &&
4414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4415   { (case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420   (eval "$ac_try") 2>&5
4421   ac_status=$?
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); }; } &&
4424          { ac_try='test -s conftest.$ac_objext'
4425   { (case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430   (eval "$ac_try") 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; }; then
4434   ac_cv_c_bigendian=yes
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439         ac_cv_c_bigendian=no
4440 fi
4441
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 else
4444   echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4446
4447         # It does not; compile a test program.
4448 if test "$cross_compiling" = yes; then
4449   # try to guess the endianness by grepping values into an object file
4450   ac_cv_c_bigendian=unknown
4451   cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h.  */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h.  */
4457 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4458 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4459 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4460 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4461 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4462 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4463 int
4464 main ()
4465 {
4466  _ascii (); _ebcdic ();
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext
4472 if { (ac_try="$ac_compile"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_compile") 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } &&
4485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4486   { (case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_try") 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }; } &&
4495          { ac_try='test -s conftest.$ac_objext'
4496   { (case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501   (eval "$ac_try") 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4506   ac_cv_c_bigendian=yes
4507 fi
4508 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4509   if test "$ac_cv_c_bigendian" = unknown; then
4510     ac_cv_c_bigendian=no
4511   else
4512     # finding both strings is unlikely to happen, but who knows?
4513     ac_cv_c_bigendian=unknown
4514   fi
4515 fi
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520
4521 fi
4522
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 else
4525   cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4531 $ac_includes_default
4532 int
4533 main ()
4534 {
4535
4536   /* Are we little or big endian?  From Harbison&Steele.  */
4537   union
4538   {
4539     long int l;
4540     char c[sizeof (long int)];
4541   } u;
4542   u.l = 1;
4543   return u.c[sizeof (long int) - 1] == 1;
4544
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest$ac_exeext
4550 if { (ac_try="$ac_link"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556   (eval "$ac_link") 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4560   { (case "(($ac_try" in
4561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562   *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565   (eval "$ac_try") 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; }; then
4569   ac_cv_c_bigendian=no
4570 else
4571   echo "$as_me: program exited with status $ac_status" >&5
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 ( exit $ac_status )
4576 ac_cv_c_bigendian=yes
4577 fi
4578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4579 fi
4580
4581
4582 fi
4583
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 fi
4586 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4587 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4588 case $ac_cv_c_bigendian in
4589   yes)
4590     ENDIAN=big
4591  ;;
4592   no)
4593     ENDIAN=little
4594  ;;
4595   *)
4596     { { echo "$as_me:$LINENO: error: unknown endianness
4597 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4598 echo "$as_me: error: unknown endianness
4599 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4600    { (exit 1); exit 1; }; } ;;
4601 esac
4602
4603
4604 if test "$cross_compiling" = yes; then
4605   LLVM_CROSS_COMPILING=1
4606
4607
4608 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4609 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4610 if test "${ac_cv_build_exeext+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4614   ac_cv_build_exeext=.exe
4615 else
4616   ac_build_prefix=${build_alias}-
4617
4618   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4619 set dummy ${ac_build_prefix}gcc; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$BUILD_CC"; then
4626   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 BUILD_CC=$ac_cv_prog_BUILD_CC
4646 if test -n "$BUILD_CC"; then
4647   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4648 echo "${ECHO_T}$BUILD_CC" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654
4655   if test -z "$BUILD_CC"; then
4656      # Extract the first word of "gcc", so it can be a program name with args.
4657 set dummy gcc; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   if test -n "$BUILD_CC"; then
4664   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_BUILD_CC="gcc"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 BUILD_CC=$ac_cv_prog_BUILD_CC
4684 if test -n "$BUILD_CC"; then
4685   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686 echo "${ECHO_T}$BUILD_CC" >&6; }
4687 else
4688   { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4690 fi
4691
4692
4693      if test -z "$BUILD_CC"; then
4694        # Extract the first word of "cc", so it can be a program name with args.
4695 set dummy cc; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   if test -n "$BUILD_CC"; then
4702   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4703 else
4704   ac_prog_rejected=no
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4713        ac_prog_rejected=yes
4714        continue
4715      fi
4716     ac_cv_prog_BUILD_CC="cc"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 if test $ac_prog_rejected = yes; then
4725   # We found a bogon in the path, so make sure we never use it.
4726   set dummy $ac_cv_prog_BUILD_CC
4727   shift
4728   if test $# != 0; then
4729     # We chose a different compiler from the bogus one.
4730     # However, it has the same basename, so the bogon will be chosen
4731     # first if we set BUILD_CC to just the basename; use the full file name.
4732     shift
4733     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4734   fi
4735 fi
4736 fi
4737 fi
4738 BUILD_CC=$ac_cv_prog_BUILD_CC
4739 if test -n "$BUILD_CC"; then
4740   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4741 echo "${ECHO_T}$BUILD_CC" >&6; }
4742 else
4743   { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4745 fi
4746
4747
4748      fi
4749   fi
4750   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4751 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4752    { (exit 1); exit 1; }; }
4753   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4754   rm -f conftest*
4755   echo 'int main () { return 0; }' > conftest.$ac_ext
4756   ac_cv_build_exeext=
4757   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4758   (eval $ac_build_link) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); }; then
4762     for file in conftest.*; do
4763       case $file in
4764       *.c | *.o | *.obj | *.dSYM) ;;
4765       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4766       esac
4767     done
4768   else
4769     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4770 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4771    { (exit 1); exit 1; }; }
4772   fi
4773   rm -f conftest*
4774   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4775 fi
4776 fi
4777
4778 BUILD_EXEEXT=""
4779 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4780 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4781 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4782 ac_build_exeext=$BUILD_EXEEXT
4783
4784   ac_build_prefix=${build_alias}-
4785   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4786 set dummy ${ac_build_prefix}g++; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   if test -n "$BUILD_CXX"; then
4793   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4802     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809
4810 fi
4811 fi
4812 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4813 if test -n "$BUILD_CXX"; then
4814   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4815 echo "${ECHO_T}$BUILD_CXX" >&6; }
4816 else
4817   { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4819 fi
4820
4821
4822   if test -z "$BUILD_CXX"; then
4823      # Extract the first word of "g++", so it can be a program name with args.
4824 set dummy g++; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   if test -n "$BUILD_CXX"; then
4831   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840     ac_cv_prog_BUILD_CXX="g++"
4841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845 done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851 if test -n "$BUILD_CXX"; then
4852   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853 echo "${ECHO_T}$BUILD_CXX" >&6; }
4854 else
4855   { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4857 fi
4858
4859
4860      if test -z "$BUILD_CXX"; then
4861        # Extract the first word of "c++", so it can be a program name with args.
4862 set dummy c++; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   if test -n "$BUILD_CXX"; then
4869   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4870 else
4871   ac_prog_rejected=no
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4880        ac_prog_rejected=yes
4881        continue
4882      fi
4883     ac_cv_prog_BUILD_CXX="c++"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 if test $ac_prog_rejected = yes; then
4892   # We found a bogon in the path, so make sure we never use it.
4893   set dummy $ac_cv_prog_BUILD_CXX
4894   shift
4895   if test $# != 0; then
4896     # We chose a different compiler from the bogus one.
4897     # However, it has the same basename, so the bogon will be chosen
4898     # first if we set BUILD_CXX to just the basename; use the full file name.
4899     shift
4900     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4901   fi
4902 fi
4903 fi
4904 fi
4905 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4906 if test -n "$BUILD_CXX"; then
4907   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4908 echo "${ECHO_T}$BUILD_CXX" >&6; }
4909 else
4910   { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4912 fi
4913
4914
4915      fi
4916   fi
4917 else
4918   LLVM_CROSS_COMPILING=0
4919
4920 fi
4921
4922 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4923   cvsbuild="yes"
4924   optimize="no"
4925   CVSBUILD=CVSBUILD=1
4926
4927 else
4928   cvsbuild="no"
4929   optimize="yes"
4930 fi
4931
4932
4933 # Check whether --enable-libcpp was given.
4934 if test "${enable_libcpp+set}" = set; then
4935   enableval=$enable_libcpp;
4936 else
4937   enableval=default
4938 fi
4939
4940 case "$enableval" in
4941   yes) ENABLE_LIBCPP=1
4942  ;;
4943   no)  ENABLE_LIBCPP=0
4944  ;;
4945   default) ENABLE_LIBCPP=0
4946 ;;
4947   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4948 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4949    { (exit 1); exit 1; }; } ;;
4950 esac
4951
4952 # Check whether --enable-cxx11 was given.
4953 if test "${enable_cxx11+set}" = set; then
4954   enableval=$enable_cxx11;
4955 else
4956   enableval=default
4957 fi
4958
4959 case "$enableval" in
4960   yes) ENABLE_CXX11=1
4961  ;;
4962   no)  ENABLE_CXX11=0
4963  ;;
4964   default) ENABLE_CXX11=0
4965 ;;
4966   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4967 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4968    { (exit 1); exit 1; }; } ;;
4969 esac
4970
4971 # Check whether --enable-optimized was given.
4972 if test "${enable_optimized+set}" = set; then
4973   enableval=$enable_optimized;
4974 else
4975   enableval=$optimize
4976 fi
4977
4978 if test ${enableval} = "no" ; then
4979   ENABLE_OPTIMIZED=
4980
4981 else
4982   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4983
4984 fi
4985
4986 # Check whether --enable-profiling was given.
4987 if test "${enable_profiling+set}" = set; then
4988   enableval=$enable_profiling;
4989 else
4990   enableval="no"
4991 fi
4992
4993 if test ${enableval} = "no" ; then
4994   ENABLE_PROFILING=
4995
4996 else
4997   ENABLE_PROFILING=ENABLE_PROFILING=1
4998
4999 fi
5000
5001 # Check whether --enable-assertions was given.
5002 if test "${enable_assertions+set}" = set; then
5003   enableval=$enable_assertions;
5004 else
5005   enableval="yes"
5006 fi
5007
5008 if test ${enableval} = "yes" ; then
5009   DISABLE_ASSERTIONS=
5010
5011 else
5012   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013
5014 fi
5015
5016 # Check whether --enable-werror was given.
5017 if test "${enable_werror+set}" = set; then
5018   enableval=$enable_werror;
5019 else
5020   enableval="no"
5021 fi
5022
5023 case "$enableval" in
5024   yes) ENABLE_WERROR=1
5025  ;;
5026   no)  ENABLE_WERROR=0
5027  ;;
5028   default) ENABLE_WERROR=0
5029 ;;
5030   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5031 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5032    { (exit 1); exit 1; }; } ;;
5033 esac
5034
5035 # Check whether --enable-expensive-checks was given.
5036 if test "${enable_expensive_checks+set}" = set; then
5037   enableval=$enable_expensive_checks;
5038 else
5039   enableval="no"
5040 fi
5041
5042 if test ${enableval} = "yes" ; then
5043   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5044
5045   EXPENSIVE_CHECKS=yes
5046
5047 else
5048   ENABLE_EXPENSIVE_CHECKS=
5049
5050   EXPENSIVE_CHECKS=no
5051
5052 fi
5053
5054 # Check whether --enable-debug-runtime was given.
5055 if test "${enable_debug_runtime+set}" = set; then
5056   enableval=$enable_debug_runtime;
5057 else
5058   enableval=no
5059 fi
5060
5061 if test ${enableval} = "no" ; then
5062   DEBUG_RUNTIME=
5063
5064 else
5065   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5066
5067 fi
5068
5069 # Check whether --enable-debug-symbols was given.
5070 if test "${enable_debug_symbols+set}" = set; then
5071   enableval=$enable_debug_symbols;
5072 else
5073   enableval=no
5074 fi
5075
5076 if test ${enableval} = "no" ; then
5077   DEBUG_SYMBOLS=
5078
5079 else
5080   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5081
5082 fi
5083
5084 # Check whether --enable-jit was given.
5085 if test "${enable_jit+set}" = set; then
5086   enableval=$enable_jit;
5087 else
5088   enableval=default
5089 fi
5090
5091 if test ${enableval} = "no"
5092 then
5093   JIT=
5094
5095 else
5096   case "$llvm_cv_target_arch" in
5097     x86)         TARGET_HAS_JIT=1
5098  ;;
5099     Sparc)       TARGET_HAS_JIT=0
5100  ;;
5101     PowerPC)     TARGET_HAS_JIT=1
5102  ;;
5103     x86_64)      TARGET_HAS_JIT=1
5104  ;;
5105     ARM)         TARGET_HAS_JIT=1
5106  ;;
5107     AArch64)     TARGET_HAS_JIT=0
5108  ;;
5109     Mips)        TARGET_HAS_JIT=1
5110  ;;
5111     XCore)       TARGET_HAS_JIT=0
5112  ;;
5113     MSP430)      TARGET_HAS_JIT=0
5114  ;;
5115     Hexagon)     TARGET_HAS_JIT=0
5116  ;;
5117     NVPTX)       TARGET_HAS_JIT=0
5118  ;;
5119     SystemZ)     TARGET_HAS_JIT=1
5120  ;;
5121     *)           TARGET_HAS_JIT=0
5122  ;;
5123   esac
5124 fi
5125
5126 # Check whether --enable-docs was given.
5127 if test "${enable_docs+set}" = set; then
5128   enableval=$enable_docs;
5129 else
5130   enableval=default
5131 fi
5132
5133 case "$enableval" in
5134   yes) ENABLE_DOCS=1
5135  ;;
5136   no)  ENABLE_DOCS=0
5137  ;;
5138   default) ENABLE_DOCS=1
5139  ;;
5140   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5142    { (exit 1); exit 1; }; } ;;
5143 esac
5144
5145 # Check whether --enable-doxygen was given.
5146 if test "${enable_doxygen+set}" = set; then
5147   enableval=$enable_doxygen;
5148 else
5149   enableval=default
5150 fi
5151
5152 case "$enableval" in
5153   yes) ENABLE_DOXYGEN=1
5154  ;;
5155   no)  ENABLE_DOXYGEN=0
5156  ;;
5157   default) ENABLE_DOXYGEN=0
5158  ;;
5159   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5160 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5161    { (exit 1); exit 1; }; } ;;
5162 esac
5163
5164 # Check whether --enable-threads was given.
5165 if test "${enable_threads+set}" = set; then
5166   enableval=$enable_threads;
5167 else
5168   enableval=default
5169 fi
5170
5171 case "$enableval" in
5172   yes) ENABLE_THREADS=1
5173  ;;
5174   no)  ENABLE_THREADS=0
5175  ;;
5176   default) ENABLE_THREADS=1
5177  ;;
5178   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5180    { (exit 1); exit 1; }; } ;;
5181 esac
5182
5183 cat >>confdefs.h <<_ACEOF
5184 #define ENABLE_THREADS $ENABLE_THREADS
5185 _ACEOF
5186
5187
5188 # Check whether --enable-pthreads was given.
5189 if test "${enable_pthreads+set}" = set; then
5190   enableval=$enable_pthreads;
5191 else
5192   enableval=default
5193 fi
5194
5195 case "$enableval" in
5196   yes) ENABLE_PTHREADS=1
5197  ;;
5198   no)  ENABLE_PTHREADS=0
5199  ;;
5200   default) ENABLE_PTHREADS=1
5201  ;;
5202   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5204    { (exit 1); exit 1; }; } ;;
5205 esac
5206
5207 # Check whether --enable-pic was given.
5208 if test "${enable_pic+set}" = set; then
5209   enableval=$enable_pic;
5210 else
5211   enableval=default
5212 fi
5213
5214 case "$enableval" in
5215   yes) ENABLE_PIC=1
5216  ;;
5217   no)  ENABLE_PIC=0
5218  ;;
5219   default) ENABLE_PIC=1
5220  ;;
5221   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5223    { (exit 1); exit 1; }; } ;;
5224 esac
5225
5226 cat >>confdefs.h <<_ACEOF
5227 #define ENABLE_PIC $ENABLE_PIC
5228 _ACEOF
5229
5230
5231 # Check whether --enable-shared was given.
5232 if test "${enable_shared+set}" = set; then
5233   enableval=$enable_shared;
5234 else
5235   enableval=default
5236 fi
5237
5238 case "$enableval" in
5239   yes) ENABLE_SHARED=1
5240  ;;
5241   no)  ENABLE_SHARED=0
5242  ;;
5243   default) ENABLE_SHARED=0
5244  ;;
5245   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5246 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5247    { (exit 1); exit 1; }; } ;;
5248 esac
5249
5250 # Check whether --enable-embed-stdcxx was given.
5251 if test "${enable_embed_stdcxx+set}" = set; then
5252   enableval=$enable_embed_stdcxx;
5253 else
5254   enableval=default
5255 fi
5256
5257 case "$enableval" in
5258   yes) ENABLE_EMBED_STDCXX=1
5259  ;;
5260   no)  ENABLE_EMBED_STDCXX=0
5261  ;;
5262   default) ENABLE_EMBED_STDCXX=1
5263  ;;
5264   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5265 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5266    { (exit 1); exit 1; }; } ;;
5267 esac
5268
5269 # Check whether --enable-timestamps was given.
5270 if test "${enable_timestamps+set}" = set; then
5271   enableval=$enable_timestamps;
5272 else
5273   enableval=default
5274 fi
5275
5276 case "$enableval" in
5277   yes) ENABLE_TIMESTAMPS=1
5278  ;;
5279   no)  ENABLE_TIMESTAMPS=0
5280  ;;
5281   default) ENABLE_TIMESTAMPS=1
5282  ;;
5283   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5284 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5285    { (exit 1); exit 1; }; } ;;
5286 esac
5287
5288 cat >>confdefs.h <<_ACEOF
5289 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5290 _ACEOF
5291
5292
5293 TARGETS_TO_BUILD=""
5294 # Check whether --enable-targets was given.
5295 if test "${enable_targets+set}" = set; then
5296   enableval=$enable_targets;
5297 else
5298   enableval=all
5299 fi
5300
5301 if test "$enableval" = host-only ; then
5302   enableval=host
5303 fi
5304 case "$enableval" in
5305   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5306   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5307       case "$a_target" in
5308         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5313         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5318         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5319         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5320         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5321         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5322         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5323         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5324         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5325         host) case "$llvm_cv_target_arch" in
5326             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5333             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5334             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5335             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5336             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5337             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5338             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5339 echo "$as_me: error: Can not set target to build" >&2;}
5340    { (exit 1); exit 1; }; } ;;
5341           esac ;;
5342         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5343 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5344    { (exit 1); exit 1; }; } ;;
5345       esac
5346   done
5347   ;;
5348 esac
5349 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5350
5351
5352 # Determine whether we are building LLVM support for the native architecture.
5353 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5354 for a_target in $TARGETS_TO_BUILD; do
5355   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5356
5357 cat >>confdefs.h <<_ACEOF
5358 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5359 _ACEOF
5360
5361     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5362     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5363     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5364     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5365     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5366       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5367     fi
5368     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5369       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5370     fi
5371
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5374 _ACEOF
5375
5376
5377 cat >>confdefs.h <<_ACEOF
5378 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5379 _ACEOF
5380
5381
5382 cat >>confdefs.h <<_ACEOF
5383 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5384 _ACEOF
5385
5386
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5389 _ACEOF
5390
5391     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5395 _ACEOF
5396
5397     fi
5398     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5402 _ACEOF
5403
5404     fi
5405   fi
5406 done
5407
5408 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5409 # target feature def files.
5410 LLVM_ENUM_TARGETS=""
5411 LLVM_ENUM_ASM_PRINTERS=""
5412 LLVM_ENUM_ASM_PARSERS=""
5413 LLVM_ENUM_DISASSEMBLERS=""
5414 for target_to_build in $TARGETS_TO_BUILD; do
5415   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5416   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5417     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5418   fi
5419   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5420     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5421   fi
5422   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5423     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5424   fi
5425 done
5426
5427
5428
5429
5430
5431
5432 # Check whether --with-optimize-option was given.
5433 if test "${with_optimize_option+set}" = set; then
5434   withval=$with_optimize_option;
5435 else
5436   withval=default
5437 fi
5438
5439 { echo "$as_me:$LINENO: checking optimization flags" >&5
5440 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5441 case "$withval" in
5442   default)
5443     case "$llvm_cv_os_type" in
5444     FreeBSD) optimize_option=-O2 ;;
5445     MingW) optimize_option=-O2 ;;
5446     *)     optimize_option=-O3 ;;
5447     esac ;;
5448   *) optimize_option="$withval" ;;
5449 esac
5450 OPTIMIZE_OPTION=$optimize_option
5451
5452 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5453 echo "${ECHO_T}$optimize_option" >&6; }
5454
5455
5456 # Check whether --with-extra-options was given.
5457 if test "${with_extra_options+set}" = set; then
5458   withval=$with_extra_options;
5459 else
5460   withval=default
5461 fi
5462
5463 case "$withval" in
5464   default) EXTRA_OPTIONS= ;;
5465   *) EXTRA_OPTIONS=$withval ;;
5466 esac
5467 EXTRA_OPTIONS=$EXTRA_OPTIONS
5468
5469
5470
5471 # Check whether --with-extra-ld-options was given.
5472 if test "${with_extra_ld_options+set}" = set; then
5473   withval=$with_extra_ld_options;
5474 else
5475   withval=default
5476 fi
5477
5478 case "$withval" in
5479   default) EXTRA_LD_OPTIONS= ;;
5480   *) EXTRA_LD_OPTIONS=$withval ;;
5481 esac
5482 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5483
5484
5485 # Check whether --enable-bindings was given.
5486 if test "${enable_bindings+set}" = set; then
5487   enableval=$enable_bindings;
5488 else
5489   enableval=default
5490 fi
5491
5492 BINDINGS_TO_BUILD=""
5493 case "$enableval" in
5494   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5495   all ) BINDINGS_TO_BUILD="ocaml" ;;
5496   none | no) BINDINGS_TO_BUILD="" ;;
5497   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5498       case "$a_binding" in
5499         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5500         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5501 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5502    { (exit 1); exit 1; }; } ;;
5503       esac
5504   done
5505   ;;
5506 esac
5507
5508
5509 # Check whether --with-ocaml-libdir was given.
5510 if test "${with_ocaml_libdir+set}" = set; then
5511   withval=$with_ocaml_libdir;
5512 else
5513   withval=auto
5514 fi
5515
5516 case "$withval" in
5517   auto) with_ocaml_libdir="$withval" ;;
5518   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5519   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5520 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5521    { (exit 1); exit 1; }; } ;;
5522 esac
5523
5524
5525 # Check whether --with-clang-resource-dir was given.
5526 if test "${with_clang_resource_dir+set}" = set; then
5527   withval=$with_clang_resource_dir;
5528 else
5529   withval=""
5530 fi
5531
5532
5533 cat >>confdefs.h <<_ACEOF
5534 #define CLANG_RESOURCE_DIR "$withval"
5535 _ACEOF
5536
5537
5538
5539 # Check whether --with-c-include-dirs was given.
5540 if test "${with_c_include_dirs+set}" = set; then
5541   withval=$with_c_include_dirs;
5542 else
5543   withval=""
5544 fi
5545
5546
5547 cat >>confdefs.h <<_ACEOF
5548 #define C_INCLUDE_DIRS "$withval"
5549 _ACEOF
5550
5551
5552 # Clang normally uses the system c++ headers and libraries. With this option,
5553 # clang will use the ones provided by a gcc installation instead. This option should
5554 # be passed the same value that was used with --prefix when configuring gcc.
5555
5556 # Check whether --with-gcc-toolchain was given.
5557 if test "${with_gcc_toolchain+set}" = set; then
5558   withval=$with_gcc_toolchain;
5559 else
5560   withval=""
5561 fi
5562
5563
5564 cat >>confdefs.h <<_ACEOF
5565 #define GCC_INSTALL_PREFIX "$withval"
5566 _ACEOF
5567
5568
5569
5570 # Check whether --with-binutils-include was given.
5571 if test "${with_binutils_include+set}" = set; then
5572   withval=$with_binutils_include;
5573 else
5574   withval=default
5575 fi
5576
5577 case "$withval" in
5578   default) WITH_BINUTILS_INCDIR=default ;;
5579   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5580   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5581 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5582    { (exit 1); exit 1; }; } ;;
5583 esac
5584 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5585   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5586
5587   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5588      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5589      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5590 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5591    { (exit 1); exit 1; }; };
5592   fi
5593 fi
5594
5595
5596 # Check whether --with-bug-report-url was given.
5597 if test "${with_bug_report_url+set}" = set; then
5598   withval=$with_bug_report_url;
5599 else
5600   withval="http://llvm.org/bugs/"
5601 fi
5602
5603
5604 cat >>confdefs.h <<_ACEOF
5605 #define BUG_REPORT_URL "$withval"
5606 _ACEOF
5607
5608
5609 # Check whether --enable-terminfo was given.
5610 if test "${enable_terminfo+set}" = set; then
5611   enableval=$enable_terminfo; case "$enableval" in
5612     yes) llvm_cv_enable_terminfo="yes" ;;
5613     no)  llvm_cv_enable_terminfo="no"  ;;
5614     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5615 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5616    { (exit 1); exit 1; }; } ;;
5617   esac
5618 else
5619   llvm_cv_enable_terminfo="yes"
5620 fi
5621
5622
5623 # Check whether --enable-libffi was given.
5624 if test "${enable_libffi+set}" = set; then
5625   enableval=$enable_libffi; case "$enableval" in
5626     yes) llvm_cv_enable_libffi="yes" ;;
5627     no)  llvm_cv_enable_libffi="no"  ;;
5628     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5629 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5630    { (exit 1); exit 1; }; } ;;
5631   esac
5632 else
5633   llvm_cv_enable_libffi=no
5634 fi
5635
5636
5637
5638 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5639 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5640 if test "${lt_cv_path_NM+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   if test -n "$NM"; then
5644   # Let the user override the test.
5645   lt_cv_path_NM="$NM"
5646 else
5647   lt_nm_to_check="${ac_tool_prefix}nm"
5648   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5649     lt_nm_to_check="$lt_nm_to_check nm"
5650   fi
5651   for lt_tmp_nm in $lt_nm_to_check; do
5652     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5653     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5654       IFS="$lt_save_ifs"
5655       test -z "$ac_dir" && ac_dir=.
5656       tmp_nm="$ac_dir/$lt_tmp_nm"
5657       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5658         # Check to see if the nm accepts a BSD-compat flag.
5659         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5660         #   nm: unknown option "B" ignored
5661         # Tru64's nm complains that /dev/null is an invalid object file
5662         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5663         */dev/null* | *'Invalid file or object type'*)
5664           lt_cv_path_NM="$tmp_nm -B"
5665           break
5666           ;;
5667         *)
5668           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5669           */dev/null*)
5670             lt_cv_path_NM="$tmp_nm -p"
5671             break
5672             ;;
5673           *)
5674             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5675             continue # so that we can try to find one that supports BSD flags
5676             ;;
5677           esac
5678           ;;
5679         esac
5680       fi
5681     done
5682     IFS="$lt_save_ifs"
5683   done
5684   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5685 fi
5686 fi
5687 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5688 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5689 NM="$lt_cv_path_NM"
5690
5691
5692
5693 { echo "$as_me:$LINENO: checking for GNU make" >&5
5694 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5695 if test "${llvm_cv_gnu_make_command+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   llvm_cv_gnu_make_command=''
5699  for a in "$MAKE" make gmake gnumake ; do
5700   if test -z "$a" ; then continue ; fi ;
5701   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5702   then
5703    llvm_cv_gnu_make_command=$a ;
5704    break;
5705   fi
5706  done
5707 fi
5708 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5709 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5710  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5711    ifGNUmake='' ;
5712  else
5713    ifGNUmake='#' ;
5714    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5715 echo "${ECHO_T}\"Not found\"" >&6; };
5716  fi
5717
5718
5719 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5720 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5721 LN_S=$as_ln_s
5722 if test "$LN_S" = "ln -s"; then
5723   { echo "$as_me:$LINENO: result: yes" >&5
5724 echo "${ECHO_T}yes" >&6; }
5725 else
5726   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5727 echo "${ECHO_T}no, using $LN_S" >&6; }
5728 fi
5729
5730 # Extract the first word of "cmp", so it can be a program name with args.
5731 set dummy cmp; ac_word=$2
5732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5734 if test "${ac_cv_path_CMP+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   case $CMP in
5738   [\\/]* | ?:[\\/]*)
5739   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5740   ;;
5741   *)
5742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747   for ac_exec_ext in '' $ac_executable_extensions; do
5748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5749     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754 done
5755 IFS=$as_save_IFS
5756
5757   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5758   ;;
5759 esac
5760 fi
5761 CMP=$ac_cv_path_CMP
5762 if test -n "$CMP"; then
5763   { echo "$as_me:$LINENO: result: $CMP" >&5
5764 echo "${ECHO_T}$CMP" >&6; }
5765 else
5766   { echo "$as_me:$LINENO: result: no" >&5
5767 echo "${ECHO_T}no" >&6; }
5768 fi
5769
5770
5771 # Extract the first word of "cp", so it can be a program name with args.
5772 set dummy cp; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_path_CP+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   case $CP in
5779   [\\/]* | ?:[\\/]*)
5780   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5781   ;;
5782   *)
5783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788   for ac_exec_ext in '' $ac_executable_extensions; do
5789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5790     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792     break 2
5793   fi
5794 done
5795 done
5796 IFS=$as_save_IFS
5797
5798   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5799   ;;
5800 esac
5801 fi
5802 CP=$ac_cv_path_CP
5803 if test -n "$CP"; then
5804   { echo "$as_me:$LINENO: result: $CP" >&5
5805 echo "${ECHO_T}$CP" >&6; }
5806 else
5807   { echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6; }
5809 fi
5810
5811
5812 # Extract the first word of "date", so it can be a program name with args.
5813 set dummy date; ac_word=$2
5814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5816 if test "${ac_cv_path_DATE+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   case $DATE in
5820   [\\/]* | ?:[\\/]*)
5821   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5822   ;;
5823   *)
5824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827   IFS=$as_save_IFS
5828   test -z "$as_dir" && as_dir=.
5829   for ac_exec_ext in '' $ac_executable_extensions; do
5830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5831     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833     break 2
5834   fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5840   ;;
5841 esac
5842 fi
5843 DATE=$ac_cv_path_DATE
5844 if test -n "$DATE"; then
5845   { echo "$as_me:$LINENO: result: $DATE" >&5
5846 echo "${ECHO_T}$DATE" >&6; }
5847 else
5848   { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5850 fi
5851
5852
5853 # Extract the first word of "find", so it can be a program name with args.
5854 set dummy find; ac_word=$2
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5857 if test "${ac_cv_path_FIND+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   case $FIND in
5861   [\\/]* | ?:[\\/]*)
5862   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5863   ;;
5864   *)
5865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870   for ac_exec_ext in '' $ac_executable_extensions; do
5871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5872     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877 done
5878 IFS=$as_save_IFS
5879
5880   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5881   ;;
5882 esac
5883 fi
5884 FIND=$ac_cv_path_FIND
5885 if test -n "$FIND"; then
5886   { echo "$as_me:$LINENO: result: $FIND" >&5
5887 echo "${ECHO_T}$FIND" >&6; }
5888 else
5889   { echo "$as_me:$LINENO: result: no" >&5
5890 echo "${ECHO_T}no" >&6; }
5891 fi
5892
5893
5894 # Extract the first word of "grep", so it can be a program name with args.
5895 set dummy grep; ac_word=$2
5896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5898 if test "${ac_cv_path_GREP+set}" = set; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901   case $GREP in
5902   [\\/]* | ?:[\\/]*)
5903   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5904   ;;
5905   *)
5906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909   IFS=$as_save_IFS
5910   test -z "$as_dir" && as_dir=.
5911   for ac_exec_ext in '' $ac_executable_extensions; do
5912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5913     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915     break 2
5916   fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5922   ;;
5923 esac
5924 fi
5925 GREP=$ac_cv_path_GREP
5926 if test -n "$GREP"; then
5927   { echo "$as_me:$LINENO: result: $GREP" >&5
5928 echo "${ECHO_T}$GREP" >&6; }
5929 else
5930   { echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6; }
5932 fi
5933
5934
5935 # Extract the first word of "mkdir", so it can be a program name with args.
5936 set dummy mkdir; ac_word=$2
5937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939 if test "${ac_cv_path_MKDIR+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   case $MKDIR in
5943   [\\/]* | ?:[\\/]*)
5944   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5945   ;;
5946   *)
5947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952   for ac_exec_ext in '' $ac_executable_extensions; do
5953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5954     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959 done
5960 IFS=$as_save_IFS
5961
5962   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5963   ;;
5964 esac
5965 fi
5966 MKDIR=$ac_cv_path_MKDIR
5967 if test -n "$MKDIR"; then
5968   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5969 echo "${ECHO_T}$MKDIR" >&6; }
5970 else
5971   { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973 fi
5974
5975
5976 # Extract the first word of "mv", so it can be a program name with args.
5977 set dummy mv; ac_word=$2
5978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5980 if test "${ac_cv_path_MV+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   case $MV in
5984   [\\/]* | ?:[\\/]*)
5985   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5986   ;;
5987   *)
5988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991   IFS=$as_save_IFS
5992   test -z "$as_dir" && as_dir=.
5993   for ac_exec_ext in '' $ac_executable_extensions; do
5994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5995     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997     break 2
5998   fi
5999 done
6000 done
6001 IFS=$as_save_IFS
6002
6003   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6004   ;;
6005 esac
6006 fi
6007 MV=$ac_cv_path_MV
6008 if test -n "$MV"; then
6009   { echo "$as_me:$LINENO: result: $MV" >&5
6010 echo "${ECHO_T}$MV" >&6; }
6011 else
6012   { echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6; }
6014 fi
6015
6016
6017 if test -n "$ac_tool_prefix"; then
6018   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6019 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6022 if test "${ac_cv_prog_RANLIB+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   if test -n "$RANLIB"; then
6026   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031   IFS=$as_save_IFS
6032   test -z "$as_dir" && as_dir=.
6033   for ac_exec_ext in '' $ac_executable_extensions; do
6034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6035     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037     break 2
6038   fi
6039 done
6040 done
6041 IFS=$as_save_IFS
6042
6043 fi
6044 fi
6045 RANLIB=$ac_cv_prog_RANLIB
6046 if test -n "$RANLIB"; then
6047   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6048 echo "${ECHO_T}$RANLIB" >&6; }
6049 else
6050   { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6052 fi
6053
6054
6055 fi
6056 if test -z "$ac_cv_prog_RANLIB"; then
6057   ac_ct_RANLIB=$RANLIB
6058   # Extract the first word of "ranlib", so it can be a program name with args.
6059 set dummy ranlib; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6063   echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065   if test -n "$ac_ct_RANLIB"; then
6066   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073   for ac_exec_ext in '' $ac_executable_extensions; do
6074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6075     ac_cv_prog_ac_ct_RANLIB="ranlib"
6076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077     break 2
6078   fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6086 if test -n "$ac_ct_RANLIB"; then
6087   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6088 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6089 else
6090   { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6092 fi
6093
6094   if test "x$ac_ct_RANLIB" = x; then
6095     RANLIB=":"
6096   else
6097     case $cross_compiling:$ac_tool_warned in
6098 yes:)
6099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6100 whose name does not start with the host triplet.  If you think this
6101 configuration is useful to you, please write to autoconf@gnu.org." >&5
6102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6103 whose name does not start with the host triplet.  If you think this
6104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107     RANLIB=$ac_ct_RANLIB
6108   fi
6109 else
6110   RANLIB="$ac_cv_prog_RANLIB"
6111 fi
6112
6113 if test -n "$ac_tool_prefix"; then
6114   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ar; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_AR+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   if test -n "$AR"; then
6122   ac_cv_prog_AR="$AR" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129   for ac_exec_ext in '' $ac_executable_extensions; do
6130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6131     ac_cv_prog_AR="${ac_tool_prefix}ar"
6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 AR=$ac_cv_prog_AR
6142 if test -n "$AR"; then
6143   { echo "$as_me:$LINENO: result: $AR" >&5
6144 echo "${ECHO_T}$AR" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6148 fi
6149
6150
6151 fi
6152 if test -z "$ac_cv_prog_AR"; then
6153   ac_ct_AR=$AR
6154   # Extract the first word of "ar", so it can be a program name with args.
6155 set dummy ar; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   if test -n "$ac_ct_AR"; then
6162   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169   for ac_exec_ext in '' $ac_executable_extensions; do
6170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6171     ac_cv_prog_ac_ct_AR="ar"
6172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173     break 2
6174   fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6182 if test -n "$ac_ct_AR"; then
6183   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6184 echo "${ECHO_T}$ac_ct_AR" >&6; }
6185 else
6186   { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6188 fi
6189
6190   if test "x$ac_ct_AR" = x; then
6191     AR="false"
6192   else
6193     case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet.  If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet.  If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203     AR=$ac_ct_AR
6204   fi
6205 else
6206   AR="$ac_cv_prog_AR"
6207 fi
6208
6209 # Extract the first word of "rm", so it can be a program name with args.
6210 set dummy rm; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_path_RM+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   case $RM in
6217   [\\/]* | ?:[\\/]*)
6218   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6219   ;;
6220   *)
6221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224   IFS=$as_save_IFS
6225   test -z "$as_dir" && as_dir=.
6226   for ac_exec_ext in '' $ac_executable_extensions; do
6227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230     break 2
6231   fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6237   ;;
6238 esac
6239 fi
6240 RM=$ac_cv_path_RM
6241 if test -n "$RM"; then
6242   { echo "$as_me:$LINENO: result: $RM" >&5
6243 echo "${ECHO_T}$RM" >&6; }
6244 else
6245   { echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6; }
6247 fi
6248
6249
6250 # Extract the first word of "sed", so it can be a program name with args.
6251 set dummy sed; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_path_SED+set}" = set; then
6255   echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257   case $SED in
6258   [\\/]* | ?:[\\/]*)
6259   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6260   ;;
6261   *)
6262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267   for ac_exec_ext in '' $ac_executable_extensions; do
6268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6269     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6278   ;;
6279 esac
6280 fi
6281 SED=$ac_cv_path_SED
6282 if test -n "$SED"; then
6283   { echo "$as_me:$LINENO: result: $SED" >&5
6284 echo "${ECHO_T}$SED" >&6; }
6285 else
6286   { echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6; }
6288 fi
6289
6290
6291 # Extract the first word of "tar", so it can be a program name with args.
6292 set dummy tar; ac_word=$2
6293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295 if test "${ac_cv_path_TAR+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   case $TAR in
6299   [\\/]* | ?:[\\/]*)
6300   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6301   ;;
6302   *)
6303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306   IFS=$as_save_IFS
6307   test -z "$as_dir" && as_dir=.
6308   for ac_exec_ext in '' $ac_executable_extensions; do
6309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6310     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312     break 2
6313   fi
6314 done
6315 done
6316 IFS=$as_save_IFS
6317
6318   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6319   ;;
6320 esac
6321 fi
6322 TAR=$ac_cv_path_TAR
6323 if test -n "$TAR"; then
6324   { echo "$as_me:$LINENO: result: $TAR" >&5
6325 echo "${ECHO_T}$TAR" >&6; }
6326 else
6327   { echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6; }
6329 fi
6330
6331
6332 # Extract the first word of "pwd", so it can be a program name with args.
6333 set dummy pwd; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_path_BINPWD+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   case $BINPWD in
6340   [\\/]* | ?:[\\/]*)
6341   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6342   ;;
6343   *)
6344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347   IFS=$as_save_IFS
6348   test -z "$as_dir" && as_dir=.
6349   for ac_exec_ext in '' $ac_executable_extensions; do
6350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6351     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353     break 2
6354   fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6360   ;;
6361 esac
6362 fi
6363 BINPWD=$ac_cv_path_BINPWD
6364 if test -n "$BINPWD"; then
6365   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6366 echo "${ECHO_T}$BINPWD" >&6; }
6367 else
6368   { echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6; }
6370 fi
6371
6372
6373
6374 # Extract the first word of "Graphviz", so it can be a program name with args.
6375 set dummy Graphviz; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   case $GRAPHVIZ in
6382   [\\/]* | ?:[\\/]*)
6383   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6384   ;;
6385   *)
6386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391   for ac_exec_ext in '' $ac_executable_extensions; do
6392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6393     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6402   ;;
6403 esac
6404 fi
6405 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6406 if test -n "$GRAPHVIZ"; then
6407   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6408 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6409 else
6410   { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6412 fi
6413
6414
6415 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6416
6417 cat >>confdefs.h <<\_ACEOF
6418 #define HAVE_GRAPHVIZ 1
6419 _ACEOF
6420
6421     if test "$llvm_cv_os_type" = "MingW" ; then
6422     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6423   fi
6424
6425 cat >>confdefs.h <<_ACEOF
6426 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6427 _ACEOF
6428
6429 fi
6430 # Extract the first word of "dot", so it can be a program name with args.
6431 set dummy dot; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_path_DOT+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   case $DOT in
6438   [\\/]* | ?:[\\/]*)
6439   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6440   ;;
6441   *)
6442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447   for ac_exec_ext in '' $ac_executable_extensions; do
6448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6458   ;;
6459 esac
6460 fi
6461 DOT=$ac_cv_path_DOT
6462 if test -n "$DOT"; then
6463   { echo "$as_me:$LINENO: result: $DOT" >&5
6464 echo "${ECHO_T}$DOT" >&6; }
6465 else
6466   { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468 fi
6469
6470
6471 if test "$DOT" != "echo dot" ; then
6472
6473 cat >>confdefs.h <<\_ACEOF
6474 #define HAVE_DOT 1
6475 _ACEOF
6476
6477     if test "$llvm_cv_os_type" = "MingW" ; then
6478     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6479   fi
6480
6481 cat >>confdefs.h <<_ACEOF
6482 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6483 _ACEOF
6484
6485 fi
6486 # Extract the first word of "fdp", so it can be a program name with args.
6487 set dummy fdp; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_path_FDP+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   case $FDP in
6494   [\\/]* | ?:[\\/]*)
6495   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6496   ;;
6497   *)
6498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503   for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6514   ;;
6515 esac
6516 fi
6517 FDP=$ac_cv_path_FDP
6518 if test -n "$FDP"; then
6519   { echo "$as_me:$LINENO: result: $FDP" >&5
6520 echo "${ECHO_T}$FDP" >&6; }
6521 else
6522   { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6524 fi
6525
6526
6527 if test "$FDP" != "echo fdp" ; then
6528
6529 cat >>confdefs.h <<\_ACEOF
6530 #define HAVE_FDP 1
6531 _ACEOF
6532
6533     if test "$llvm_cv_os_type" = "MingW" ; then
6534     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6535   fi
6536
6537 cat >>confdefs.h <<_ACEOF
6538 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6539 _ACEOF
6540
6541 fi
6542 # Extract the first word of "neato", so it can be a program name with args.
6543 set dummy neato; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_path_NEATO+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   case $NEATO in
6550   [\\/]* | ?:[\\/]*)
6551   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6552   ;;
6553   *)
6554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559   for ac_exec_ext in '' $ac_executable_extensions; do
6560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6570   ;;
6571 esac
6572 fi
6573 NEATO=$ac_cv_path_NEATO
6574 if test -n "$NEATO"; then
6575   { echo "$as_me:$LINENO: result: $NEATO" >&5
6576 echo "${ECHO_T}$NEATO" >&6; }
6577 else
6578   { echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6; }
6580 fi
6581
6582
6583 if test "$NEATO" != "echo neato" ; then
6584
6585 cat >>confdefs.h <<\_ACEOF
6586 #define HAVE_NEATO 1
6587 _ACEOF
6588
6589     if test "$llvm_cv_os_type" = "MingW" ; then
6590     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6591   fi
6592
6593 cat >>confdefs.h <<_ACEOF
6594 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6595 _ACEOF
6596
6597 fi
6598 # Extract the first word of "twopi", so it can be a program name with args.
6599 set dummy twopi; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_path_TWOPI+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   case $TWOPI in
6606   [\\/]* | ?:[\\/]*)
6607   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6608   ;;
6609   *)
6610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615   for ac_exec_ext in '' $ac_executable_extensions; do
6616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6617     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6626   ;;
6627 esac
6628 fi
6629 TWOPI=$ac_cv_path_TWOPI
6630 if test -n "$TWOPI"; then
6631   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6632 echo "${ECHO_T}$TWOPI" >&6; }
6633 else
6634   { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6636 fi
6637
6638
6639 if test "$TWOPI" != "echo twopi" ; then
6640
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_TWOPI 1
6643 _ACEOF
6644
6645     if test "$llvm_cv_os_type" = "MingW" ; then
6646     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6647   fi
6648
6649 cat >>confdefs.h <<_ACEOF
6650 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6651 _ACEOF
6652
6653 fi
6654 # Extract the first word of "circo", so it can be a program name with args.
6655 set dummy circo; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_CIRCO+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   case $CIRCO in
6662   [\\/]* | ?:[\\/]*)
6663   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6664   ;;
6665   *)
6666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671   for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6682   ;;
6683 esac
6684 fi
6685 CIRCO=$ac_cv_path_CIRCO
6686 if test -n "$CIRCO"; then
6687   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6688 echo "${ECHO_T}$CIRCO" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6693
6694
6695 if test "$CIRCO" != "echo circo" ; then
6696
6697 cat >>confdefs.h <<\_ACEOF
6698 #define HAVE_CIRCO 1
6699 _ACEOF
6700
6701     if test "$llvm_cv_os_type" = "MingW" ; then
6702     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6703   fi
6704
6705 cat >>confdefs.h <<_ACEOF
6706 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6707 _ACEOF
6708
6709 fi
6710 for ac_prog in gv gsview32
6711 do
6712   # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6716 if test "${ac_cv_path_GV+set}" = set; then
6717   echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719   case $GV in
6720   [\\/]* | ?:[\\/]*)
6721   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6722   ;;
6723   *)
6724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729   for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739   ;;
6740 esac
6741 fi
6742 GV=$ac_cv_path_GV
6743 if test -n "$GV"; then
6744   { echo "$as_me:$LINENO: result: $GV" >&5
6745 echo "${ECHO_T}$GV" >&6; }
6746 else
6747   { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6749 fi
6750
6751
6752   test -n "$GV" && break
6753 done
6754 test -n "$GV" || GV="echo gv"
6755
6756 if test "$GV" != "echo gv" ; then
6757
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_GV 1
6760 _ACEOF
6761
6762     if test "$llvm_cv_os_type" = "MingW" ; then
6763     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6764   fi
6765
6766 cat >>confdefs.h <<_ACEOF
6767 #define LLVM_PATH_GV "$GV${EXEEXT}"
6768 _ACEOF
6769
6770 fi
6771 # Extract the first word of "dotty", so it can be a program name with args.
6772 set dummy dotty; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_DOTTY+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   case $DOTTY in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6799   ;;
6800 esac
6801 fi
6802 DOTTY=$ac_cv_path_DOTTY
6803 if test -n "$DOTTY"; then
6804   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6805 echo "${ECHO_T}$DOTTY" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811
6812 if test "$DOTTY" != "echo dotty" ; then
6813
6814 cat >>confdefs.h <<\_ACEOF
6815 #define HAVE_DOTTY 1
6816 _ACEOF
6817
6818     if test "$llvm_cv_os_type" = "MingW" ; then
6819     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6820   fi
6821
6822 cat >>confdefs.h <<_ACEOF
6823 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6824 _ACEOF
6825
6826 fi
6827 # Extract the first word of "xdot.py", so it can be a program name with args.
6828 set dummy xdot.py; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   case $XDOT_PY in
6835   [\\/]* | ?:[\\/]*)
6836   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6837   ;;
6838   *)
6839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842   IFS=$as_save_IFS
6843   test -z "$as_dir" && as_dir=.
6844   for ac_exec_ext in '' $ac_executable_extensions; do
6845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848     break 2
6849   fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6855   ;;
6856 esac
6857 fi
6858 XDOT_PY=$ac_cv_path_XDOT_PY
6859 if test -n "$XDOT_PY"; then
6860   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6861 echo "${ECHO_T}$XDOT_PY" >&6; }
6862 else
6863   { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6865 fi
6866
6867
6868 if test "$XDOT_PY" != "echo xdot.py" ; then
6869
6870 cat >>confdefs.h <<\_ACEOF
6871 #define HAVE_XDOT_PY 1
6872 _ACEOF
6873
6874     if test "$llvm_cv_os_type" = "MingW" ; then
6875     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6876   fi
6877
6878 cat >>confdefs.h <<_ACEOF
6879 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6880 _ACEOF
6881
6882 fi
6883
6884 # Find a good install program.  We prefer a C program (faster),
6885 # so one script is as good as another.  But avoid the broken or
6886 # incompatible versions:
6887 # SysV /etc/install, /usr/sbin/install
6888 # SunOS /usr/etc/install
6889 # IRIX /sbin/install
6890 # AIX /bin/install
6891 # AmigaOS /C/install, which installs bootblocks on floppy discs
6892 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6893 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6894 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6895 # OS/2's system install, which has a completely different semantic
6896 # ./install, which can be erroneously created by make from ./install.sh.
6897 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6898 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6899 if test -z "$INSTALL"; then
6900 if test "${ac_cv_path_install+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906   IFS=$as_save_IFS
6907   test -z "$as_dir" && as_dir=.
6908   # Account for people who put trailing slashes in PATH elements.
6909 case $as_dir/ in
6910   ./ | .// | /cC/* | \
6911   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6912   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6913   /usr/ucb/* ) ;;
6914   *)
6915     # OSF1 and SCO ODT 3.0 have their own names for install.
6916     # Don't use installbsd from OSF since it installs stuff as root
6917     # by default.
6918     for ac_prog in ginstall scoinst install; do
6919       for ac_exec_ext in '' $ac_executable_extensions; do
6920         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6921           if test $ac_prog = install &&
6922             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6923             # AIX install.  It has an incompatible calling convention.
6924             :
6925           elif test $ac_prog = install &&
6926             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6927             # program-specific install script used by HP pwplus--don't use.
6928             :
6929           else
6930             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6931             break 3
6932           fi
6933         fi
6934       done
6935     done
6936     ;;
6937 esac
6938 done
6939 IFS=$as_save_IFS
6940
6941
6942 fi
6943   if test "${ac_cv_path_install+set}" = set; then
6944     INSTALL=$ac_cv_path_install
6945   else
6946     # As a last resort, use the slow shell script.  Don't cache a
6947     # value for INSTALL within a source directory, because that will
6948     # break other packages using the cache if that directory is
6949     # removed, or if the value is a relative name.
6950     INSTALL=$ac_install_sh
6951   fi
6952 fi
6953 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6954 echo "${ECHO_T}$INSTALL" >&6; }
6955
6956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6957 # It thinks the first close brace ends the variable substitution.
6958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6959
6960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6961
6962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6963
6964 case "$INSTALL" in
6965  [\\/$]* | ?:[\\/]* ) ;;
6966  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6967 esac
6968
6969 # Extract the first word of "bzip2", so it can be a program name with args.
6970 set dummy bzip2; ac_word=$2
6971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973 if test "${ac_cv_path_BZIP2+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   case $BZIP2 in
6977   [\\/]* | ?:[\\/]*)
6978   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6979   ;;
6980   *)
6981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984   IFS=$as_save_IFS
6985   test -z "$as_dir" && as_dir=.
6986   for ac_exec_ext in '' $ac_executable_extensions; do
6987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6988     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990     break 2
6991   fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996   ;;
6997 esac
6998 fi
6999 BZIP2=$ac_cv_path_BZIP2
7000 if test -n "$BZIP2"; then
7001   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7002 echo "${ECHO_T}$BZIP2" >&6; }
7003 else
7004   { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7006 fi
7007
7008
7009 # Extract the first word of "cat", so it can be a program name with args.
7010 set dummy cat; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_path_CAT+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   case $CAT in
7017   [\\/]* | ?:[\\/]*)
7018   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7019   ;;
7020   *)
7021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026   for ac_exec_ext in '' $ac_executable_extensions; do
7027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033 done
7034 IFS=$as_save_IFS
7035
7036   ;;
7037 esac
7038 fi
7039 CAT=$ac_cv_path_CAT
7040 if test -n "$CAT"; then
7041   { echo "$as_me:$LINENO: result: $CAT" >&5
7042 echo "${ECHO_T}$CAT" >&6; }
7043 else
7044   { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7046 fi
7047
7048
7049 # Extract the first word of "doxygen", so it can be a program name with args.
7050 set dummy doxygen; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   case $DOXYGEN in
7057   [\\/]* | ?:[\\/]*)
7058   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7059   ;;
7060   *)
7061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066   for ac_exec_ext in '' $ac_executable_extensions; do
7067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076   ;;
7077 esac
7078 fi
7079 DOXYGEN=$ac_cv_path_DOXYGEN
7080 if test -n "$DOXYGEN"; then
7081   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7082 echo "${ECHO_T}$DOXYGEN" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7087
7088
7089 # Extract the first word of "groff", so it can be a program name with args.
7090 set dummy groff; ac_word=$2
7091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093 if test "${ac_cv_path_GROFF+set}" = set; then
7094   echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096   case $GROFF in
7097   [\\/]* | ?:[\\/]*)
7098   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7099   ;;
7100   *)
7101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_exec_ext in '' $ac_executable_extensions; do
7107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7108     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113 done
7114 IFS=$as_save_IFS
7115
7116   ;;
7117 esac
7118 fi
7119 GROFF=$ac_cv_path_GROFF
7120 if test -n "$GROFF"; then
7121   { echo "$as_me:$LINENO: result: $GROFF" >&5
7122 echo "${ECHO_T}$GROFF" >&6; }
7123 else
7124   { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7126 fi
7127
7128
7129 # Extract the first word of "gzip", so it can be a program name with args.
7130 set dummy gzip; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   case $GZIPBIN in
7137   [\\/]* | ?:[\\/]*)
7138   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7139   ;;
7140   *)
7141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146   for ac_exec_ext in '' $ac_executable_extensions; do
7147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156   ;;
7157 esac
7158 fi
7159 GZIPBIN=$ac_cv_path_GZIPBIN
7160 if test -n "$GZIPBIN"; then
7161   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7162 echo "${ECHO_T}$GZIPBIN" >&6; }
7163 else
7164   { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7166 fi
7167
7168
7169 # Extract the first word of "pod2html", so it can be a program name with args.
7170 set dummy pod2html; ac_word=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_path_POD2HTML+set}" = set; then
7174   echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176   case $POD2HTML in
7177   [\\/]* | ?:[\\/]*)
7178   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7179   ;;
7180   *)
7181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186   for ac_exec_ext in '' $ac_executable_extensions; do
7187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7188     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193 done
7194 IFS=$as_save_IFS
7195
7196   ;;
7197 esac
7198 fi
7199 POD2HTML=$ac_cv_path_POD2HTML
7200 if test -n "$POD2HTML"; then
7201   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7202 echo "${ECHO_T}$POD2HTML" >&6; }
7203 else
7204   { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7206 fi
7207
7208
7209 # Extract the first word of "pod2man", so it can be a program name with args.
7210 set dummy pod2man; ac_word=$2
7211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213 if test "${ac_cv_path_POD2MAN+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   case $POD2MAN in
7217   [\\/]* | ?:[\\/]*)
7218   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7219   ;;
7220   *)
7221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226   for ac_exec_ext in '' $ac_executable_extensions; do
7227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233 done
7234 IFS=$as_save_IFS
7235
7236   ;;
7237 esac
7238 fi
7239 POD2MAN=$ac_cv_path_POD2MAN
7240 if test -n "$POD2MAN"; then
7241   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7242 echo "${ECHO_T}$POD2MAN" >&6; }
7243 else
7244   { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7246 fi
7247
7248
7249 # Extract the first word of "pdfroff", so it can be a program name with args.
7250 set dummy pdfroff; ac_word=$2
7251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253 if test "${ac_cv_path_PDFROFF+set}" = set; then
7254   echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256   case $PDFROFF in
7257   [\\/]* | ?:[\\/]*)
7258   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7259   ;;
7260   *)
7261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266   for ac_exec_ext in '' $ac_executable_extensions; do
7267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7268     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276   ;;
7277 esac
7278 fi
7279 PDFROFF=$ac_cv_path_PDFROFF
7280 if test -n "$PDFROFF"; then
7281   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7282 echo "${ECHO_T}$PDFROFF" >&6; }
7283 else
7284   { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7286 fi
7287
7288
7289 # Extract the first word of "runtest", so it can be a program name with args.
7290 set dummy runtest; ac_word=$2
7291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7293 if test "${ac_cv_path_RUNTEST+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   case $RUNTEST in
7297   [\\/]* | ?:[\\/]*)
7298   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7299   ;;
7300   *)
7301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306   for ac_exec_ext in '' $ac_executable_extensions; do
7307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7308     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316   ;;
7317 esac
7318 fi
7319 RUNTEST=$ac_cv_path_RUNTEST
7320 if test -n "$RUNTEST"; then
7321   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7322 echo "${ECHO_T}$RUNTEST" >&6; }
7323 else
7324   { echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6; }
7326 fi
7327
7328
7329
7330 no_itcl=true
7331 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7332 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7333
7334 # Check whether --with-tclinclude was given.
7335 if test "${with_tclinclude+set}" = set; then
7336   withval=$with_tclinclude; with_tclinclude=${withval}
7337 else
7338   with_tclinclude=''
7339 fi
7340
7341 if test "${ac_cv_path_tclsh+set}" = set; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344
7345 if test x"${with_tclinclude}" != x ; then
7346   if test -f ${with_tclinclude}/tclsh ; then
7347     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7348   elif test -f ${with_tclinclude}/src/tclsh ; then
7349     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7350   else
7351     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7352 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7353    { (exit 1); exit 1; }; }
7354   fi
7355 fi
7356 fi
7357
7358
7359 if test x"${ac_cv_path_tclsh}" = x ; then
7360   { echo "$as_me:$LINENO: result: none" >&5
7361 echo "${ECHO_T}none" >&6; }
7362   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
7363 do
7364   # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_TCLSH+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   case $TCLSH in
7372   [\\/]* | ?:[\\/]*)
7373   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7374   ;;
7375   *)
7376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381   for ac_exec_ext in '' $ac_executable_extensions; do
7382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388 done
7389 IFS=$as_save_IFS
7390
7391   ;;
7392 esac
7393 fi
7394 TCLSH=$ac_cv_path_TCLSH
7395 if test -n "$TCLSH"; then
7396   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7397 echo "${ECHO_T}$TCLSH" >&6; }
7398 else
7399   { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7401 fi
7402
7403
7404   test -n "$TCLSH" && break
7405 done
7406
7407   if test x"${TCLSH}" = x ; then
7408     ac_cv_path_tclsh='';
7409   else
7410     ac_cv_path_tclsh="${TCLSH}";
7411   fi
7412 else
7413   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7414 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7415   TCLSH="${ac_cv_path_tclsh}"
7416
7417 fi
7418
7419 # Extract the first word of "zip", so it can be a program name with args.
7420 set dummy zip; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_ZIP+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   case $ZIP in
7427   [\\/]* | ?:[\\/]*)
7428   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7429   ;;
7430   *)
7431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446   ;;
7447 esac
7448 fi
7449 ZIP=$ac_cv_path_ZIP
7450 if test -n "$ZIP"; then
7451   { echo "$as_me:$LINENO: result: $ZIP" >&5
7452 echo "${ECHO_T}$ZIP" >&6; }
7453 else
7454   { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7456 fi
7457
7458
7459 for ac_prog in ocamlc
7460 do
7461   # Extract the first word of "$ac_prog", so it can be a program name with args.
7462 set dummy $ac_prog; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_OCAMLC+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   case $OCAMLC in
7469   [\\/]* | ?:[\\/]*)
7470   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7471   ;;
7472   *)
7473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478   for ac_exec_ext in '' $ac_executable_extensions; do
7479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488   ;;
7489 esac
7490 fi
7491 OCAMLC=$ac_cv_path_OCAMLC
7492 if test -n "$OCAMLC"; then
7493   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7494 echo "${ECHO_T}$OCAMLC" >&6; }
7495 else
7496   { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7498 fi
7499
7500
7501   test -n "$OCAMLC" && break
7502 done
7503
7504 for ac_prog in ocamlopt
7505 do
7506   # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   case $OCAMLOPT in
7514   [\\/]* | ?:[\\/]*)
7515   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7516   ;;
7517   *)
7518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521   IFS=$as_save_IFS
7522   test -z "$as_dir" && as_dir=.
7523   for ac_exec_ext in '' $ac_executable_extensions; do
7524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7525     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527     break 2
7528   fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533   ;;
7534 esac
7535 fi
7536 OCAMLOPT=$ac_cv_path_OCAMLOPT
7537 if test -n "$OCAMLOPT"; then
7538   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7539 echo "${ECHO_T}$OCAMLOPT" >&6; }
7540 else
7541   { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7543 fi
7544
7545
7546   test -n "$OCAMLOPT" && break
7547 done
7548
7549 for ac_prog in ocamldep
7550 do
7551   # Extract the first word of "$ac_prog", so it can be a program name with args.
7552 set dummy $ac_prog; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   case $OCAMLDEP in
7559   [\\/]* | ?:[\\/]*)
7560   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7561   ;;
7562   *)
7563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568   for ac_exec_ext in '' $ac_executable_extensions; do
7569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578   ;;
7579 esac
7580 fi
7581 OCAMLDEP=$ac_cv_path_OCAMLDEP
7582 if test -n "$OCAMLDEP"; then
7583   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7584 echo "${ECHO_T}$OCAMLDEP" >&6; }
7585 else
7586   { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7588 fi
7589
7590
7591   test -n "$OCAMLDEP" && break
7592 done
7593
7594 for ac_prog in ocamldoc
7595 do
7596   # Extract the first word of "$ac_prog", so it can be a program name with args.
7597 set dummy $ac_prog; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   case $OCAMLDOC in
7604   [\\/]* | ?:[\\/]*)
7605   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7606   ;;
7607   *)
7608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613   for ac_exec_ext in '' $ac_executable_extensions; do
7614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623   ;;
7624 esac
7625 fi
7626 OCAMLDOC=$ac_cv_path_OCAMLDOC
7627 if test -n "$OCAMLDOC"; then
7628   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7629 echo "${ECHO_T}$OCAMLDOC" >&6; }
7630 else
7631   { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7633 fi
7634
7635
7636   test -n "$OCAMLDOC" && break
7637 done
7638
7639 for ac_prog in gas as
7640 do
7641   # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_GAS+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   case $GAS in
7649   [\\/]* | ?:[\\/]*)
7650   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7651   ;;
7652   *)
7653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668   ;;
7669 esac
7670 fi
7671 GAS=$ac_cv_path_GAS
7672 if test -n "$GAS"; then
7673   { echo "$as_me:$LINENO: result: $GAS" >&5
7674 echo "${ECHO_T}$GAS" >&6; }
7675 else
7676   { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7678 fi
7679
7680
7681   test -n "$GAS" && break
7682 done
7683
7684
7685 { echo "$as_me:$LINENO: checking for linker version" >&5
7686 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7687 if test "${llvm_cv_link_version+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690
7691    version_string="$(ld -v 2>&1 | head -1)"
7692
7693    # Check for ld64.
7694    if (echo "$version_string" | grep -q "ld64"); then
7695      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7696    else
7697      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7698    fi
7699
7700 fi
7701 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7702 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7703
7704 cat >>confdefs.h <<_ACEOF
7705 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7706 _ACEOF
7707
7708
7709
7710 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7711 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7712 if test "${llvm_cv_link_use_r+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715    ac_ext=c
7716 ac_cpp='$CPP $CPPFLAGS'
7717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7720
7721   oldcflags="$CFLAGS"
7722   CFLAGS="$CFLAGS -Wl,-R."
7723   cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h.  */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h.  */
7729
7730 int
7731 main ()
7732 {
7733
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (ac_try="$ac_link"
7740 case "(($ac_try" in
7741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742   *) ac_try_echo=$ac_try;;
7743 esac
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745   (eval "$ac_link") 2>conftest.er1
7746   ac_status=$?
7747   grep -v '^ *+' conftest.er1 >conftest.err
7748   rm -f conftest.er1
7749   cat conftest.err >&5
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } &&
7752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7753   { (case "(($ac_try" in
7754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755   *) ac_try_echo=$ac_try;;
7756 esac
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758   (eval "$ac_try") 2>&5
7759   ac_status=$?
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); }; } &&
7762          { ac_try='test -s conftest$ac_exeext'
7763   { (case "(($ac_try" in
7764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765   *) ac_try_echo=$ac_try;;
7766 esac
7767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768   (eval "$ac_try") 2>&5
7769   ac_status=$?
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); }; }; then
7772   llvm_cv_link_use_r=yes
7773 else
7774   echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7776
7777         llvm_cv_link_use_r=no
7778 fi
7779
7780 rm -f core conftest.err conftest.$ac_objext \
7781       conftest$ac_exeext conftest.$ac_ext
7782   CFLAGS="$oldcflags"
7783   ac_ext=c
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788
7789
7790 fi
7791 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7792 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7793 if test "$llvm_cv_link_use_r" = yes ; then
7794
7795 cat >>confdefs.h <<\_ACEOF
7796 #define HAVE_LINK_R 1
7797 _ACEOF
7798
7799   fi
7800
7801
7802 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7803 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7804 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807    ac_ext=c
7808 ac_cpp='$CPP $CPPFLAGS'
7809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812
7813   oldcflags="$CFLAGS"
7814   CFLAGS="$CFLAGS -rdynamic"
7815   cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h.  */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h.  */
7821
7822 int
7823 main ()
7824 {
7825
7826   ;
7827   return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (ac_try="$ac_link"
7832 case "(($ac_try" in
7833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834   *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837   (eval "$ac_link") 2>conftest.er1
7838   ac_status=$?
7839   grep -v '^ *+' conftest.er1 >conftest.err
7840   rm -f conftest.er1
7841   cat conftest.err >&5
7842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); } &&
7844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7845   { (case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_try") 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; } &&
7854          { ac_try='test -s conftest$ac_exeext'
7855   { (case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_try") 2>&5
7861   ac_status=$?
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); }; }; then
7864   llvm_cv_link_use_export_dynamic=yes
7865 else
7866   echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869         llvm_cv_link_use_export_dynamic=no
7870 fi
7871
7872 rm -f core conftest.err conftest.$ac_objext \
7873       conftest$ac_exeext conftest.$ac_ext
7874   CFLAGS="$oldcflags"
7875   ac_ext=c
7876 ac_cpp='$CPP $CPPFLAGS'
7877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7880
7881
7882 fi
7883 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7884 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7885 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_LINK_EXPORT_DYNAMIC 1
7889 _ACEOF
7890
7891   fi
7892
7893
7894 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7895 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7896 if test "${llvm_cv_link_use_version_script+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899    ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905   oldcflags="$CFLAGS"
7906
7907   # The following code is from the autoconf manual,
7908   # "11.13: Limitations of Usual Tools".
7909   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7910   # Use mktemp if possible; otherwise fall back on mkdir,
7911   # with $RANDOM to make collisions less likely.
7912   : ${TMPDIR=/tmp}
7913   {
7914     tmp=`
7915       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7916     ` &&
7917     test -n "$tmp" && test -d "$tmp"
7918   } || {
7919     tmp=$TMPDIR/foo$$-$RANDOM
7920     (umask 077 && mkdir "$tmp")
7921   } || exit $?
7922
7923   echo "{" > "$tmp/export.map"
7924   echo "  global: main;" >> "$tmp/export.map"
7925   echo "  local: *;" >> "$tmp/export.map"
7926   echo "};" >> "$tmp/export.map"
7927
7928   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7929   cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935
7936 int
7937 main ()
7938 {
7939
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7946 case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_link") 2>conftest.er1
7952   ac_status=$?
7953   grep -v '^ *+' conftest.er1 >conftest.err
7954   rm -f conftest.er1
7955   cat conftest.err >&5
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959   { (case "(($ac_try" in
7960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961   *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964   (eval "$ac_try") 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; } &&
7968          { ac_try='test -s conftest$ac_exeext'
7969   { (case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_try") 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; }; then
7978   llvm_cv_link_use_version_script=yes
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983         llvm_cv_link_use_version_script=no
7984 fi
7985
7986 rm -f core conftest.err conftest.$ac_objext \
7987       conftest$ac_exeext conftest.$ac_ext
7988   rm "$tmp/export.map"
7989   rmdir "$tmp"
7990   CFLAGS="$oldcflags"
7991   ac_ext=c
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997
7998 fi
7999 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8000 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8001 if test "$llvm_cv_link_use_version_script" = yes ; then
8002   HAVE_LINK_VERSION_SCRIPT=1
8003
8004   fi
8005
8006
8007
8008
8009 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8010 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8011 if test "${ac_cv_c_const+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h.  */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h.  */
8020
8021 int
8022 main ()
8023 {
8024 /* FIXME: Include the comments suggested by Paul. */
8025 #ifndef __cplusplus
8026   /* Ultrix mips cc rejects this.  */
8027   typedef int charset[2];
8028   const charset x;
8029   /* SunOS 4.1.1 cc rejects this.  */
8030   char const *const *ccp;
8031   char **p;
8032   /* NEC SVR4.0.2 mips cc rejects this.  */
8033   struct point {int x, y;};
8034   static struct point const zero = {0,0};
8035   /* AIX XL C 1.02.0.0 rejects this.
8036      It does not let you subtract one const X* pointer from another in
8037      an arm of an if-expression whose if-part is not a constant
8038      expression */
8039   const char *g = "string";
8040   ccp = &g + (g ? g-g : 0);
8041   /* HPUX 7.0 cc rejects these. */
8042   ++ccp;
8043   p = (char**) ccp;
8044   ccp = (char const *const *) p;
8045   { /* SCO 3.2v4 cc rejects this.  */
8046     char *t;
8047     char const *s = 0 ? (char *) 0 : (char const *) 0;
8048
8049     *t++ = 0;
8050     if (s) return 0;
8051   }
8052   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8053     int x[] = {25, 17};
8054     const int *foo = &x[0];
8055     ++foo;
8056   }
8057   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8058     typedef const int *iptr;
8059     iptr p = 0;
8060     ++p;
8061   }
8062   { /* AIX XL C 1.02.0.0 rejects this saying
8063        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8064     struct s { int j; const int *ap[3]; };
8065     struct s *b; b->j = 5;
8066   }
8067   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8068     const int foo = 10;
8069     if (!foo) return 0;
8070   }
8071   return !x[0] && !zero.x;
8072 #endif
8073
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8080 case "(($ac_try" in
8081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082   *) ac_try_echo=$ac_try;;
8083 esac
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085   (eval "$ac_compile") 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } &&
8092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8093   { (case "(($ac_try" in
8094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095   *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098   (eval "$ac_try") 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; } &&
8102          { ac_try='test -s conftest.$ac_objext'
8103   { (case "(($ac_try" in
8104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105   *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108   (eval "$ac_try") 2>&5
8109   ac_status=$?
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); }; }; then
8112   ac_cv_c_const=yes
8113 else
8114   echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8116
8117         ac_cv_c_const=no
8118 fi
8119
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 fi
8122 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8123 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8124 if test $ac_cv_c_const = no; then
8125
8126 cat >>confdefs.h <<\_ACEOF
8127 #define const
8128 _ACEOF
8129
8130 fi
8131
8132
8133
8134
8135
8136
8137 ac_header_dirent=no
8138 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8139   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8140 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8141 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h.  */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h.  */
8151 #include <sys/types.h>
8152 #include <$ac_hdr>
8153
8154 int
8155 main ()
8156 {
8157 if ((DIR *) 0)
8158 return 0;
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext
8164 if { (ac_try="$ac_compile"
8165 case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_compile") 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8178   { (case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183   (eval "$ac_try") 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; } &&
8187          { ac_try='test -s conftest.$ac_objext'
8188   { (case "(($ac_try" in
8189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190   *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193   (eval "$ac_try") 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; }; then
8197   eval "$as_ac_Header=yes"
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202         eval "$as_ac_Header=no"
8203 fi
8204
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 fi
8207 ac_res=`eval echo '${'$as_ac_Header'}'`
8208                { echo "$as_me:$LINENO: result: $ac_res" >&5
8209 echo "${ECHO_T}$ac_res" >&6; }
8210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8211   cat >>confdefs.h <<_ACEOF
8212 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8213 _ACEOF
8214
8215 ac_header_dirent=$ac_hdr; break
8216 fi
8217
8218 done
8219 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8220 if test $ac_header_dirent = dirent.h; then
8221   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8223 if test "${ac_cv_search_opendir+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   ac_func_search_save_LIBS=$LIBS
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h.  */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h.  */
8233
8234 /* Override any GCC internal prototype to avoid an error.
8235    Use char because int might match the return type of a GCC
8236    builtin and then its argument prototype would still apply.  */
8237 #ifdef __cplusplus
8238 extern "C"
8239 #endif
8240 char opendir ();
8241 int
8242 main ()
8243 {
8244 return opendir ();
8245   ;
8246   return 0;
8247 }
8248 _ACEOF
8249 for ac_lib in '' dir; do
8250   if test -z "$ac_lib"; then
8251     ac_res="none required"
8252   else
8253     ac_res=-l$ac_lib
8254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8255   fi
8256   rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (ac_try="$ac_link"
8258 case "(($ac_try" in
8259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260   *) ac_try_echo=$ac_try;;
8261 esac
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263   (eval "$ac_link") 2>conftest.er1
8264   ac_status=$?
8265   grep -v '^ *+' conftest.er1 >conftest.err
8266   rm -f conftest.er1
8267   cat conftest.err >&5
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } &&
8270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8271   { (case "(($ac_try" in
8272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273   *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276   (eval "$ac_try") 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; } &&
8280          { ac_try='test -s conftest$ac_exeext'
8281   { (case "(($ac_try" in
8282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283   *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286   (eval "$ac_try") 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_cv_search_opendir=$ac_res
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295
8296 fi
8297
8298 rm -f core conftest.err conftest.$ac_objext \
8299       conftest$ac_exeext
8300   if test "${ac_cv_search_opendir+set}" = set; then
8301   break
8302 fi
8303 done
8304 if test "${ac_cv_search_opendir+set}" = set; then
8305   :
8306 else
8307   ac_cv_search_opendir=no
8308 fi
8309 rm conftest.$ac_ext
8310 LIBS=$ac_func_search_save_LIBS
8311 fi
8312 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8313 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8314 ac_res=$ac_cv_search_opendir
8315 if test "$ac_res" != no; then
8316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8317
8318 fi
8319
8320 else
8321   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8322 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8323 if test "${ac_cv_search_opendir+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   ac_func_search_save_LIBS=$LIBS
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h.  */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h.  */
8333
8334 /* Override any GCC internal prototype to avoid an error.
8335    Use char because int might match the return type of a GCC
8336    builtin and then its argument prototype would still apply.  */
8337 #ifdef __cplusplus
8338 extern "C"
8339 #endif
8340 char opendir ();
8341 int
8342 main ()
8343 {
8344 return opendir ();
8345   ;
8346   return 0;
8347 }
8348 _ACEOF
8349 for ac_lib in '' x; do
8350   if test -z "$ac_lib"; then
8351     ac_res="none required"
8352   else
8353     ac_res=-l$ac_lib
8354     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8355   fi
8356   rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (ac_try="$ac_link"
8358 case "(($ac_try" in
8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360   *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363   (eval "$ac_link") 2>conftest.er1
8364   ac_status=$?
8365   grep -v '^ *+' conftest.er1 >conftest.err
8366   rm -f conftest.er1
8367   cat conftest.err >&5
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); } &&
8370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8371   { (case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_try") 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; } &&
8380          { ac_try='test -s conftest$ac_exeext'
8381   { (case "(($ac_try" in
8382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383   *) ac_try_echo=$ac_try;;
8384 esac
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386   (eval "$ac_try") 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; }; then
8390   ac_cv_search_opendir=$ac_res
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395
8396 fi
8397
8398 rm -f core conftest.err conftest.$ac_objext \
8399       conftest$ac_exeext
8400   if test "${ac_cv_search_opendir+set}" = set; then
8401   break
8402 fi
8403 done
8404 if test "${ac_cv_search_opendir+set}" = set; then
8405   :
8406 else
8407   ac_cv_search_opendir=no
8408 fi
8409 rm conftest.$ac_ext
8410 LIBS=$ac_func_search_save_LIBS
8411 fi
8412 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8413 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8414 ac_res=$ac_cv_search_opendir
8415 if test "$ac_res" != no; then
8416   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8417
8418 fi
8419
8420 fi
8421
8422
8423 for ac_header in dlfcn.h
8424 do
8425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8427   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 fi
8432 ac_res=`eval echo '${'$as_ac_Header'}'`
8433                { echo "$as_me:$LINENO: result: $ac_res" >&5
8434 echo "${ECHO_T}$ac_res" >&6; }
8435 else
8436   # Is the header compilable?
8437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445 $ac_includes_default
8446 #include <$ac_header>
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8450 case "(($ac_try" in
8451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452   *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455   (eval "$ac_compile") 2>conftest.er1
8456   ac_status=$?
8457   grep -v '^ *+' conftest.er1 >conftest.err
8458   rm -f conftest.er1
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } &&
8462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8463   { (case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468   (eval "$ac_try") 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }; } &&
8472          { ac_try='test -s conftest.$ac_objext'
8473   { (case "(($ac_try" in
8474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475   *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478   (eval "$ac_try") 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   ac_header_compiler=yes
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487         ac_header_compiler=no
8488 fi
8489
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8492 echo "${ECHO_T}$ac_header_compiler" >&6; }
8493
8494 # Is the header present?
8495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503 #include <$ac_header>
8504 _ACEOF
8505 if { (ac_try="$ac_cpp conftest.$ac_ext"
8506 case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8512   ac_status=$?
8513   grep -v '^ *+' conftest.er1 >conftest.err
8514   rm -f conftest.er1
8515   cat conftest.err >&5
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } >/dev/null; then
8518   if test -s conftest.err; then
8519     ac_cpp_err=$ac_c_preproc_warn_flag
8520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8521   else
8522     ac_cpp_err=
8523   fi
8524 else
8525   ac_cpp_err=yes
8526 fi
8527 if test -z "$ac_cpp_err"; then
8528   ac_header_preproc=yes
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533   ac_header_preproc=no
8534 fi
8535
8536 rm -f conftest.err conftest.$ac_ext
8537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8538 echo "${ECHO_T}$ac_header_preproc" >&6; }
8539
8540 # So?  What about this header?
8541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8542   yes:no: )
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8547     ac_header_preproc=yes
8548     ;;
8549   no:yes:* )
8550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8562     ( cat <<\_ASBOX
8563 ## ------------------------------ ##
8564 ## Report this to bugs@yourdomain ##
8565 ## ------------------------------ ##
8566 _ASBOX
8567      ) | sed "s/^/$as_me: WARNING:     /" >&2
8568     ;;
8569 esac
8570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   eval "$as_ac_Header=\$ac_header_preproc"
8576 fi
8577 ac_res=`eval echo '${'$as_ac_Header'}'`
8578                { echo "$as_me:$LINENO: result: $ac_res" >&5
8579 echo "${ECHO_T}$ac_res" >&6; }
8580
8581 fi
8582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8583   cat >>confdefs.h <<_ACEOF
8584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8585 _ACEOF
8586
8587 fi
8588
8589 done
8590
8591 # Check whether --enable-ltdl-install was given.
8592 if test "${enable_ltdl_install+set}" = set; then
8593   enableval=$enable_ltdl_install;
8594 fi
8595
8596
8597
8598
8599 if test x"${enable_ltdl_install-no}" != xno; then
8600   INSTALL_LTDL_TRUE=
8601   INSTALL_LTDL_FALSE='#'
8602 else
8603   INSTALL_LTDL_TRUE='#'
8604   INSTALL_LTDL_FALSE=
8605 fi
8606
8607
8608
8609 if test x"${enable_ltdl_convenience-no}" != xno; then
8610   CONVENIENCE_LTDL_TRUE=
8611   CONVENIENCE_LTDL_FALSE='#'
8612 else
8613   CONVENIENCE_LTDL_TRUE='#'
8614   CONVENIENCE_LTDL_FALSE=
8615 fi
8616
8617
8618 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8619 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8620 library_names_spec=
8621 libname_spec='lib$name'
8622 soname_spec=
8623 shrext_cmds=".so"
8624 postinstall_cmds=
8625 postuninstall_cmds=
8626 finish_cmds=
8627 finish_eval=
8628 shlibpath_var=
8629 shlibpath_overrides_runpath=unknown
8630 version_type=none
8631 dynamic_linker="$host_os ld.so"
8632 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8633 if test "$GCC" = yes; then
8634   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8635   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8636     # if the path contains ";" then we assume it to be the separator
8637     # otherwise default to the standard path separator (i.e. ":") - it is
8638     # assumed that no part of a normal pathname contains ";" but that should
8639     # okay in the real world where ";" in dirpaths is itself problematic.
8640     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8641   else
8642     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8643   fi
8644 else
8645   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8646 fi
8647 need_lib_prefix=unknown
8648 hardcode_into_libs=no
8649
8650 # when you set need_version to no, make sure it does not cause -set_version
8651 # flags to be left without arguments
8652 need_version=unknown
8653
8654 case $host_os in
8655 aix3*)
8656   version_type=linux
8657   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8658   shlibpath_var=LIBPATH
8659
8660   # AIX 3 has no versioning support, so we append a major version to the name.
8661   soname_spec='${libname}${release}${shared_ext}$major'
8662   ;;
8663
8664 aix4* | aix5*)
8665   version_type=linux
8666   need_lib_prefix=no
8667   need_version=no
8668   hardcode_into_libs=yes
8669   if test "$host_cpu" = ia64; then
8670     # AIX 5 supports IA64
8671     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8672     shlibpath_var=LD_LIBRARY_PATH
8673   else
8674     # With GCC up to 2.95.x, collect2 would create an import file
8675     # for dependence libraries.  The import file would start with
8676     # the line `#! .'.  This would cause the generated library to
8677     # depend on `.', always an invalid library.  This was fixed in
8678     # development snapshots of GCC prior to 3.0.
8679     case $host_os in
8680       aix4 | aix4.[01] | aix4.[01].*)
8681       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8682            echo ' yes '
8683            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8684         :
8685       else
8686         can_build_shared=no
8687       fi
8688       ;;
8689     esac
8690     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8691     # soname into executable. Probably we can add versioning support to
8692     # collect2, so additional links can be useful in future.
8693     if test "$aix_use_runtimelinking" = yes; then
8694       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8695       # instead of lib<name>.a to let people know that these are not
8696       # typical AIX shared libraries.
8697       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698     else
8699       # We preserve .a as extension for shared libraries through AIX4.2
8700       # and later when we are not doing run time linking.
8701       library_names_spec='${libname}${release}.a $libname.a'
8702       soname_spec='${libname}${release}${shared_ext}$major'
8703     fi
8704     shlibpath_var=LIBPATH
8705   fi
8706   ;;
8707
8708 amigaos*)
8709   library_names_spec='$libname.ixlibrary $libname.a'
8710   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8711   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'
8712   ;;
8713
8714 beos*)
8715   library_names_spec='${libname}${shared_ext}'
8716   dynamic_linker="$host_os ld.so"
8717   shlibpath_var=LIBRARY_PATH
8718   ;;
8719
8720 bsdi[45]*)
8721   version_type=linux
8722   need_version=no
8723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8724   soname_spec='${libname}${release}${shared_ext}$major'
8725   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8726   shlibpath_var=LD_LIBRARY_PATH
8727   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8728   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8729   # the default ld.so.conf also contains /usr/contrib/lib and
8730   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8731   # libtool to hard-code these into programs
8732   ;;
8733
8734 cygwin* | mingw* | pw32*)
8735   version_type=windows
8736   shrext_cmds=".dll"
8737   need_version=no
8738   need_lib_prefix=no
8739
8740   case $GCC,$host_os in
8741   yes,cygwin* | yes,mingw* | yes,pw32*)
8742     library_names_spec='$libname.dll.a'
8743     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8744     postinstall_cmds='base_file=`basename \${file}`~
8745       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8746       dldir=$destdir/`dirname \$dlpath`~
8747       test -d \$dldir || mkdir -p \$dldir~
8748       $install_prog $dir/$dlname \$dldir/$dlname~
8749       chmod a+x \$dldir/$dlname'
8750     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8751       dlpath=$dir/\$dldll~
8752        $rm \$dlpath'
8753     shlibpath_overrides_runpath=yes
8754
8755     case $host_os in
8756     cygwin*)
8757       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8758       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8759       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8760       ;;
8761     mingw*)
8762       # MinGW DLLs use traditional 'lib' prefix
8763       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8764       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8765       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8766         # It is most probably a Windows format PATH printed by
8767         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8768         # path with ; separators, and with drive letters. We can handle the
8769         # drive letters (cygwin fileutils understands them), so leave them,
8770         # especially as we might pass files found there to a mingw objdump,
8771         # which wouldn't understand a cygwinified path. Ahh.
8772         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8773       else
8774         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8775       fi
8776       ;;
8777     pw32*)
8778       # pw32 DLLs use 'pw' prefix rather than 'lib'
8779       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8780       ;;
8781     esac
8782     ;;
8783
8784   *)
8785     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8786     ;;
8787   esac
8788   dynamic_linker='Win32 ld.exe'
8789   # FIXME: first we should search . and the directory the executable is in
8790   shlibpath_var=PATH
8791   ;;
8792
8793 darwin* | rhapsody*)
8794   dynamic_linker="$host_os dyld"
8795   version_type=darwin
8796   need_lib_prefix=no
8797   need_version=no
8798   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8799   soname_spec='${libname}${release}${major}$shared_ext'
8800   shlibpath_overrides_runpath=yes
8801   shlibpath_var=DYLD_LIBRARY_PATH
8802   shrext_cmds='.dylib'
8803   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8804   if test "$GCC" = yes; then
8805     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"`
8806   else
8807     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8808   fi
8809   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8810   ;;
8811
8812 dgux*)
8813   version_type=linux
8814   need_lib_prefix=no
8815   need_version=no
8816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8817   soname_spec='${libname}${release}${shared_ext}$major'
8818   shlibpath_var=LD_LIBRARY_PATH
8819   ;;
8820
8821 freebsd1.*)
8822   dynamic_linker=no
8823   ;;
8824
8825 kfreebsd*-gnu)
8826   version_type=linux
8827   need_lib_prefix=no
8828   need_version=no
8829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8830   soname_spec='${libname}${release}${shared_ext}$major'
8831   shlibpath_var=LD_LIBRARY_PATH
8832   shlibpath_overrides_runpath=no
8833   hardcode_into_libs=yes
8834   dynamic_linker='GNU ld.so'
8835   ;;
8836
8837 freebsd* | dragonfly*)
8838   # DragonFly does not have aout.  When/if they implement a new
8839   # versioning mechanism, adjust this.
8840   if test -x /usr/bin/objformat; then
8841     objformat=`/usr/bin/objformat`
8842   else
8843     case $host_os in
8844     freebsd[123].*) objformat=aout ;;
8845     *) objformat=elf ;;
8846     esac
8847   fi
8848   version_type=freebsd-$objformat
8849   case $version_type in
8850     freebsd-elf*)
8851       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8852       need_version=no
8853       need_lib_prefix=no
8854       ;;
8855     freebsd-*)
8856       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8857       need_version=yes
8858       ;;
8859   esac
8860   shlibpath_var=LD_LIBRARY_PATH
8861   case $host_os in
8862   freebsd2.*)
8863     shlibpath_overrides_runpath=yes
8864     ;;
8865   freebsd3.[01]* | freebsdelf3.[01]*)
8866     shlibpath_overrides_runpath=yes
8867     hardcode_into_libs=yes
8868     ;;
8869   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8870   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8871     shlibpath_overrides_runpath=no
8872     hardcode_into_libs=yes
8873     ;;
8874   freebsd*) # from 4.6 on
8875     shlibpath_overrides_runpath=yes
8876     hardcode_into_libs=yes
8877     ;;
8878   esac
8879   ;;
8880
8881 gnu*)
8882   version_type=linux
8883   need_lib_prefix=no
8884   need_version=no
8885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8886   soname_spec='${libname}${release}${shared_ext}$major'
8887   shlibpath_var=LD_LIBRARY_PATH
8888   hardcode_into_libs=yes
8889   ;;
8890
8891 hpux9* | hpux10* | hpux11*)
8892   # Give a soname corresponding to the major version so that dld.sl refuses to
8893   # link against other versions.
8894   version_type=sunos
8895   need_lib_prefix=no
8896   need_version=no
8897   case $host_cpu in
8898   ia64*)
8899     shrext_cmds='.so'
8900     hardcode_into_libs=yes
8901     dynamic_linker="$host_os dld.so"
8902     shlibpath_var=LD_LIBRARY_PATH
8903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905     soname_spec='${libname}${release}${shared_ext}$major'
8906     if test "X$HPUX_IA64_MODE" = X32; then
8907       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8908     else
8909       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8910     fi
8911     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8912     ;;
8913    hppa*64*)
8914      shrext_cmds='.sl'
8915      hardcode_into_libs=yes
8916      dynamic_linker="$host_os dld.sl"
8917      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8918      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8919      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920      soname_spec='${libname}${release}${shared_ext}$major'
8921      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8922      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8923      ;;
8924    *)
8925     shrext_cmds='.sl'
8926     dynamic_linker="$host_os dld.sl"
8927     shlibpath_var=SHLIB_PATH
8928     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930     soname_spec='${libname}${release}${shared_ext}$major'
8931     ;;
8932   esac
8933   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8934   postinstall_cmds='chmod 555 $lib'
8935   ;;
8936
8937 interix3*)
8938   version_type=linux
8939   need_lib_prefix=no
8940   need_version=no
8941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942   soname_spec='${libname}${release}${shared_ext}$major'
8943   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8944   shlibpath_var=LD_LIBRARY_PATH
8945   shlibpath_overrides_runpath=no
8946   hardcode_into_libs=yes
8947   ;;
8948
8949 irix5* | irix6* | nonstopux*)
8950   case $host_os in
8951     nonstopux*) version_type=nonstopux ;;
8952     *)
8953         if test "$lt_cv_prog_gnu_ld" = yes; then
8954                 version_type=linux
8955         else
8956                 version_type=irix
8957         fi ;;
8958   esac
8959   need_lib_prefix=no
8960   need_version=no
8961   soname_spec='${libname}${release}${shared_ext}$major'
8962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8963   case $host_os in
8964   irix5* | nonstopux*)
8965     libsuff= shlibsuff=
8966     ;;
8967   *)
8968     case $LD in # libtool.m4 will add one of these switches to LD
8969     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8970       libsuff= shlibsuff= libmagic=32-bit;;
8971     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8972       libsuff=32 shlibsuff=N32 libmagic=N32;;
8973     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8974       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8975     *) libsuff= shlibsuff= libmagic=never-match;;
8976     esac
8977     ;;
8978   esac
8979   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8980   shlibpath_overrides_runpath=no
8981   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8982   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8983   hardcode_into_libs=yes
8984   ;;
8985
8986 # No shared lib support for Linux oldld, aout, or coff.
8987 linux*oldld* | linux*aout* | linux*coff*)
8988   dynamic_linker=no
8989   ;;
8990
8991 # This must be Linux ELF.
8992 linux*)
8993   version_type=linux
8994   need_lib_prefix=no
8995   need_version=no
8996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997   soname_spec='${libname}${release}${shared_ext}$major'
8998   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8999   shlibpath_var=LD_LIBRARY_PATH
9000   shlibpath_overrides_runpath=no
9001   # This implies no fast_install, which is unacceptable.
9002   # Some rework will be needed to allow for fast_install
9003   # before this can be enabled.
9004   hardcode_into_libs=yes
9005
9006   # Append ld.so.conf contents to the search path
9007   if test -f /etc/ld.so.conf; then
9008     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' ' '`
9009     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9010   fi
9011
9012   # We used to test for /lib/ld.so.1 and disable shared libraries on
9013   # powerpc, because MkLinux only supported shared libraries with the
9014   # GNU dynamic linker.  Since this was broken with cross compilers,
9015   # most powerpc-linux boxes support dynamic linking these days and
9016   # people can always --disable-shared, the test was removed, and we
9017   # assume the GNU/Linux dynamic linker is in use.
9018   dynamic_linker='GNU/Linux ld.so'
9019   ;;
9020
9021 knetbsd*-gnu)
9022   version_type=linux
9023   need_lib_prefix=no
9024   need_version=no
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026   soname_spec='${libname}${release}${shared_ext}$major'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   shlibpath_overrides_runpath=no
9029   hardcode_into_libs=yes
9030   dynamic_linker='GNU ld.so'
9031   ;;
9032
9033 netbsd*)
9034   version_type=sunos
9035   need_lib_prefix=no
9036   need_version=no
9037   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9039     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9040     dynamic_linker='NetBSD (a.out) ld.so'
9041   else
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     dynamic_linker='NetBSD ld.elf_so'
9045   fi
9046   shlibpath_var=LD_LIBRARY_PATH
9047   shlibpath_overrides_runpath=yes
9048   hardcode_into_libs=yes
9049   ;;
9050
9051 newsos6)
9052   version_type=linux
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054   shlibpath_var=LD_LIBRARY_PATH
9055   shlibpath_overrides_runpath=yes
9056   ;;
9057
9058 nto-qnx*)
9059   version_type=linux
9060   need_lib_prefix=no
9061   need_version=no
9062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063   soname_spec='${libname}${release}${shared_ext}$major'
9064   shlibpath_var=LD_LIBRARY_PATH
9065   shlibpath_overrides_runpath=yes
9066   ;;
9067
9068 openbsd*)
9069   version_type=sunos
9070   sys_lib_dlsearch_path_spec="/usr/lib"
9071   need_lib_prefix=no
9072   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9073   case $host_os in
9074     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9075     *)                         need_version=no  ;;
9076   esac
9077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9079   shlibpath_var=LD_LIBRARY_PATH
9080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9081     case $host_os in
9082       openbsd2.[89] | openbsd2.[89].*)
9083         shlibpath_overrides_runpath=no
9084         ;;
9085       *)
9086         shlibpath_overrides_runpath=yes
9087         ;;
9088       esac
9089   else
9090     shlibpath_overrides_runpath=yes
9091   fi
9092   ;;
9093
9094 os2*)
9095   libname_spec='$name'
9096   shrext_cmds=".dll"
9097   need_lib_prefix=no
9098   library_names_spec='$libname${shared_ext} $libname.a'
9099   dynamic_linker='OS/2 ld.exe'
9100   shlibpath_var=LIBPATH
9101   ;;
9102
9103 osf3* | osf4* | osf5*)
9104   version_type=osf
9105   need_lib_prefix=no
9106   need_version=no
9107   soname_spec='${libname}${release}${shared_ext}$major'
9108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109   shlibpath_var=LD_LIBRARY_PATH
9110   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9111   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9112   ;;
9113
9114 solaris*)
9115   version_type=linux
9116   need_lib_prefix=no
9117   need_version=no
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119   soname_spec='${libname}${release}${shared_ext}$major'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   shlibpath_overrides_runpath=yes
9122   hardcode_into_libs=yes
9123   # ldd complains unless libraries are executable
9124   postinstall_cmds='chmod +x $lib'
9125   ;;
9126
9127 sunos4*)
9128   version_type=sunos
9129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9131   shlibpath_var=LD_LIBRARY_PATH
9132   shlibpath_overrides_runpath=yes
9133   if test "$with_gnu_ld" = yes; then
9134     need_lib_prefix=no
9135   fi
9136   need_version=yes
9137   ;;
9138
9139 sysv4 | sysv4.3*)
9140   version_type=linux
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142   soname_spec='${libname}${release}${shared_ext}$major'
9143   shlibpath_var=LD_LIBRARY_PATH
9144   case $host_vendor in
9145     sni)
9146       shlibpath_overrides_runpath=no
9147       need_lib_prefix=no
9148       export_dynamic_flag_spec='${wl}-Blargedynsym'
9149       runpath_var=LD_RUN_PATH
9150       ;;
9151     siemens)
9152       need_lib_prefix=no
9153       ;;
9154     motorola)
9155       need_lib_prefix=no
9156       need_version=no
9157       shlibpath_overrides_runpath=no
9158       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9159       ;;
9160   esac
9161   ;;
9162
9163 sysv4*MP*)
9164   if test -d /usr/nec ;then
9165     version_type=linux
9166     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9167     soname_spec='$libname${shared_ext}.$major'
9168     shlibpath_var=LD_LIBRARY_PATH
9169   fi
9170   ;;
9171
9172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9173   version_type=freebsd-elf
9174   need_lib_prefix=no
9175   need_version=no
9176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9177   soname_spec='${libname}${release}${shared_ext}$major'
9178   shlibpath_var=LD_LIBRARY_PATH
9179   hardcode_into_libs=yes
9180   if test "$with_gnu_ld" = yes; then
9181     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9182     shlibpath_overrides_runpath=no
9183   else
9184     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9185     shlibpath_overrides_runpath=yes
9186     case $host_os in
9187       sco3.2v5*)
9188         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9189         ;;
9190     esac
9191   fi
9192   sys_lib_dlsearch_path_spec='/usr/lib'
9193   ;;
9194
9195 uts4*)
9196   version_type=linux
9197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198   soname_spec='${libname}${release}${shared_ext}$major'
9199   shlibpath_var=LD_LIBRARY_PATH
9200   ;;
9201
9202 *)
9203   dynamic_linker=no
9204   ;;
9205 esac
9206 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9207 echo "${ECHO_T}$dynamic_linker" >&6; }
9208 test "$dynamic_linker" = no && can_build_shared=no
9209
9210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9211 if test "$GCC" = yes; then
9212   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9213 fi
9214
9215
9216 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9217 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9218 if test "${libltdl_cv_shlibext+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221
9222 module=yes
9223 eval libltdl_cv_shlibext=$shrext_cmds
9224
9225 fi
9226 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9227 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9228 if test -n "$libltdl_cv_shlibext"; then
9229
9230 cat >>confdefs.h <<_ACEOF
9231 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9232 _ACEOF
9233
9234 fi
9235
9236
9237 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9238 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9239 if test "${libltdl_cv_sys_search_path+set}" = set; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9243 fi
9244 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9245 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9246 if test -n "$libltdl_cv_sys_search_path"; then
9247   sys_search_path=
9248   for dir in $libltdl_cv_sys_search_path; do
9249     if test -z "$sys_search_path"; then
9250       sys_search_path="$dir"
9251     else
9252       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9253     fi
9254   done
9255
9256 cat >>confdefs.h <<_ACEOF
9257 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9258 _ACEOF
9259
9260 fi
9261
9262 { echo "$as_me:$LINENO: checking for objdir" >&5
9263 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9264 if test "${libltdl_cv_objdir+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   libltdl_cv_objdir="$objdir"
9268   if test -n "$objdir"; then
9269     :
9270   else
9271     rm -f .libs 2>/dev/null
9272     mkdir .libs 2>/dev/null
9273     if test -d .libs; then
9274       libltdl_cv_objdir=.libs
9275     else
9276       # MS-DOS does not allow filenames that begin with a dot.
9277       libltdl_cv_objdir=_libs
9278     fi
9279   rmdir .libs 2>/dev/null
9280   fi
9281
9282 fi
9283 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9284 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9285
9286 cat >>confdefs.h <<_ACEOF
9287 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9288 _ACEOF
9289
9290
9291
9292
9293
9294
9295 # Check for command to grab the raw symbol name followed by C symbol from nm.
9296 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9297 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9298 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301
9302 # These are sane defaults that work on at least a few old systems.
9303 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9304
9305 # Character class describing NM global symbol codes.
9306 symcode='[BCDEGRST]'
9307
9308 # Regexp to match symbols that can be accessed directly from C.
9309 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9310
9311 # Transform an extracted symbol line into a proper C declaration
9312 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9313
9314 # Transform an extracted symbol line into symbol name and symbol address
9315 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'"
9316
9317 # Define system-specific variables.
9318 case $host_os in
9319 aix*)
9320   symcode='[BCDT]'
9321   ;;
9322 cygwin* | mingw* | pw32*)
9323   symcode='[ABCDGISTW]'
9324   ;;
9325 hpux*) # Its linker distinguishes data from code symbols
9326   if test "$host_cpu" = ia64; then
9327     symcode='[ABCDEGRST]'
9328   fi
9329   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9330   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'"
9331   ;;
9332 linux*)
9333   if test "$host_cpu" = ia64; then
9334     symcode='[ABCDGIRSTW]'
9335     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9336     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'"
9337   fi
9338   ;;
9339 irix* | nonstopux*)
9340   symcode='[BCDEGRST]'
9341   ;;
9342 osf*)
9343   symcode='[BCDEGQRST]'
9344   ;;
9345 solaris*)
9346   symcode='[BDRT]'
9347   ;;
9348 sco3.2v5*)
9349   symcode='[DT]'
9350   ;;
9351 sysv4.2uw2*)
9352   symcode='[DT]'
9353   ;;
9354 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9355   symcode='[ABDT]'
9356   ;;
9357 sysv4)
9358   symcode='[DFNSTU]'
9359   ;;
9360 esac
9361
9362 # Handle CRLF in mingw tool chain
9363 opt_cr=
9364 case $build_os in
9365 mingw*)
9366   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9367   ;;
9368 esac
9369
9370 # If we're using GNU nm, then use its standard symbol codes.
9371 case `$NM -V 2>&1` in
9372 *GNU* | *'with BFD'*)
9373   symcode='[ABCDGIRSTW]' ;;
9374 esac
9375
9376 # Try without a prefix undercore, then with it.
9377 for ac_symprfx in "" "_"; do
9378
9379   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9380   symxfrm="\\1 $ac_symprfx\\2 \\2"
9381
9382   # Write the raw and C identifiers.
9383   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9384
9385   # Check to see that the pipe works correctly.
9386   pipe_works=no
9387
9388   rm -f conftest*
9389   cat > conftest.$ac_ext <<EOF
9390 #ifdef __cplusplus
9391 extern "C" {
9392 #endif
9393 char nm_test_var;
9394 void nm_test_func(){}
9395 #ifdef __cplusplus
9396 }
9397 #endif
9398 int main(){nm_test_var='a';nm_test_func();return(0);}
9399 EOF
9400
9401   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9402   (eval $ac_compile) 2>&5
9403   ac_status=$?
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); }; then
9406     # Now try to grab the symbols.
9407     nlist=conftest.nm
9408     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9409   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } && test -s "$nlist"; then
9413       # Try sorting and uniquifying the output.
9414       if sort "$nlist" | uniq > "$nlist"T; then
9415         mv -f "$nlist"T "$nlist"
9416       else
9417         rm -f "$nlist"T
9418       fi
9419
9420       # Make sure that we snagged all the symbols we need.
9421       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9422         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9423           cat <<EOF > conftest.$ac_ext
9424 #ifdef __cplusplus
9425 extern "C" {
9426 #endif
9427
9428 EOF
9429           # Now generate the symbol file.
9430           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9431
9432           cat <<EOF >> conftest.$ac_ext
9433 #if defined (__STDC__) && __STDC__
9434 # define lt_ptr_t void *
9435 #else
9436 # define lt_ptr_t char *
9437 # define const
9438 #endif
9439
9440 /* The mapping between symbol names and symbols. */
9441 const struct {
9442   const char *name;
9443   lt_ptr_t address;
9444 }
9445 lt_preloaded_symbols[] =
9446 {
9447 EOF
9448           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9449           cat <<\EOF >> conftest.$ac_ext
9450   {0, (lt_ptr_t) 0}
9451 };
9452
9453 #ifdef __cplusplus
9454 }
9455 #endif
9456 EOF
9457           # Now try linking the two files.
9458           mv conftest.$ac_objext conftstm.$ac_objext
9459           lt_save_LIBS="$LIBS"
9460           lt_save_CFLAGS="$CFLAGS"
9461           LIBS="conftstm.$ac_objext"
9462           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9463           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464   (eval $ac_link) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9468             pipe_works=yes
9469           fi
9470           LIBS="$lt_save_LIBS"
9471           CFLAGS="$lt_save_CFLAGS"
9472         else
9473           echo "cannot find nm_test_func in $nlist" >&5
9474         fi
9475       else
9476         echo "cannot find nm_test_var in $nlist" >&5
9477       fi
9478     else
9479       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9480     fi
9481   else
9482     echo "$progname: failed program was:" >&5
9483     cat conftest.$ac_ext >&5
9484   fi
9485   rm -f conftest* conftst*
9486
9487   # Do not use the global_symbol_pipe unless it works.
9488   if test "$pipe_works" = yes; then
9489     break
9490   else
9491     lt_cv_sys_global_symbol_pipe=
9492   fi
9493 done
9494
9495 fi
9496
9497 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9498   lt_cv_sys_global_symbol_to_cdecl=
9499 fi
9500 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9501   { echo "$as_me:$LINENO: result: failed" >&5
9502 echo "${ECHO_T}failed" >&6; }
9503 else
9504   { echo "$as_me:$LINENO: result: ok" >&5
9505 echo "${ECHO_T}ok" >&6; }
9506 fi
9507
9508
9509 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9510 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9511 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9512   echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9515     libltdl_cv_preloaded_symbols=yes
9516   else
9517     libltdl_cv_preloaded_symbols=no
9518   fi
9519
9520 fi
9521 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9522 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9523 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_PRELOADED_SYMBOLS 1
9527 _ACEOF
9528
9529 fi
9530
9531 LIBADD_DL=
9532
9533 ac_ext=c
9534 ac_cpp='$CPP $CPPFLAGS'
9535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9538
9539
9540 { echo "$as_me:$LINENO: checking for shl_load" >&5
9541 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9542 if test "${ac_cv_func_shl_load+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h.  */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h.  */
9551 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9553 #define shl_load innocuous_shl_load
9554
9555 /* System header to define __stub macros and hopefully few prototypes,
9556     which can conflict with char shl_load (); below.
9557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9558     <limits.h> exists even on freestanding compilers.  */
9559
9560 #ifdef __STDC__
9561 # include <limits.h>
9562 #else
9563 # include <assert.h>
9564 #endif
9565
9566 #undef shl_load
9567
9568 /* Override any GCC internal prototype to avoid an error.
9569    Use char because int might match the return type of a GCC
9570    builtin and then its argument prototype would still apply.  */
9571 #ifdef __cplusplus
9572 extern "C"
9573 #endif
9574 char shl_load ();
9575 /* The GNU C library defines this for functions which it implements
9576     to always fail with ENOSYS.  Some functions are actually named
9577     something starting with __ and the normal name is an alias.  */
9578 #if defined __stub_shl_load || defined __stub___shl_load
9579 choke me
9580 #endif
9581
9582 int
9583 main ()
9584 {
9585 return shl_load ();
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9592 case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597   (eval "$ac_link") 2>conftest.er1
9598   ac_status=$?
9599   grep -v '^ *+' conftest.er1 >conftest.err
9600   rm -f conftest.er1
9601   cat conftest.err >&5
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } &&
9604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9605   { (case "(($ac_try" in
9606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607   *) ac_try_echo=$ac_try;;
9608 esac
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610   (eval "$ac_try") 2>&5
9611   ac_status=$?
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); }; } &&
9614          { ac_try='test -s conftest$ac_exeext'
9615   { (case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620   (eval "$ac_try") 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; }; then
9624   ac_cv_func_shl_load=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629         ac_cv_func_shl_load=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext \
9633       conftest$ac_exeext conftest.$ac_ext
9634 fi
9635 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9636 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9637 if test $ac_cv_func_shl_load = yes; then
9638
9639 cat >>confdefs.h <<\_ACEOF
9640 #define HAVE_SHL_LOAD 1
9641 _ACEOF
9642
9643 else
9644   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9645 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-ldld  $LIBS"
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h.  */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h.  */
9657
9658 /* Override any GCC internal prototype to avoid an error.
9659    Use char because int might match the return type of a GCC
9660    builtin and then its argument prototype would still apply.  */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 char shl_load ();
9665 int
9666 main ()
9667 {
9668 return shl_load ();
9669   ;
9670   return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677   *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680   (eval "$ac_link") 2>conftest.er1
9681   ac_status=$?
9682   grep -v '^ *+' conftest.er1 >conftest.err
9683   rm -f conftest.er1
9684   cat conftest.err >&5
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); } &&
9687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688   { (case "(($ac_try" in
9689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690   *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693   (eval "$ac_try") 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; } &&
9697          { ac_try='test -s conftest$ac_exeext'
9698   { (case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703   (eval "$ac_try") 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); }; }; then
9707   ac_cv_lib_dld_shl_load=yes
9708 else
9709   echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712         ac_cv_lib_dld_shl_load=no
9713 fi
9714
9715 rm -f core conftest.err conftest.$ac_objext \
9716       conftest$ac_exeext conftest.$ac_ext
9717 LIBS=$ac_check_lib_save_LIBS
9718 fi
9719 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9720 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9721 if test $ac_cv_lib_dld_shl_load = yes; then
9722
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_SHL_LOAD 1
9725 _ACEOF
9726
9727         LIBADD_DL="$LIBADD_DL -ldld"
9728 else
9729   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   ac_check_lib_save_LIBS=$LIBS
9735 LIBS="-ldl  $LIBS"
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742
9743 /* Override any GCC internal prototype to avoid an error.
9744    Use char because int might match the return type of a GCC
9745    builtin and then its argument prototype would still apply.  */
9746 #ifdef __cplusplus
9747 extern "C"
9748 #endif
9749 char dlopen ();
9750 int
9751 main ()
9752 {
9753 return dlopen ();
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (ac_try="$ac_link"
9760 case "(($ac_try" in
9761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762   *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765   (eval "$ac_link") 2>conftest.er1
9766   ac_status=$?
9767   grep -v '^ *+' conftest.er1 >conftest.err
9768   rm -f conftest.er1
9769   cat conftest.err >&5
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); } &&
9772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773   { (case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_try") 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest$ac_exeext'
9783   { (case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_try") 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; }; then
9792   ac_cv_lib_dl_dlopen=yes
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797         ac_cv_lib_dl_dlopen=no
9798 fi
9799
9800 rm -f core conftest.err conftest.$ac_objext \
9801       conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9803 fi
9804 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9805 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9806 if test $ac_cv_lib_dl_dlopen = yes; then
9807
9808 cat >>confdefs.h <<\_ACEOF
9809 #define HAVE_LIBDL 1
9810 _ACEOF
9811
9812                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9813 else
9814   cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820 #if HAVE_DLFCN_H
9821 #  include <dlfcn.h>
9822 #endif
9823
9824 int
9825 main ()
9826 {
9827 dlopen(0, 0);
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9834 case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_link") 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9847   { (case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_try") 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; } &&
9856          { ac_try='test -s conftest$ac_exeext'
9857   { (case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_try") 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866
9867 cat >>confdefs.h <<\_ACEOF
9868 #define HAVE_LIBDL 1
9869 _ACEOF
9870  libltdl_cv_func_dlopen="yes"
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9876 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9877 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9878   echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880   ac_check_lib_save_LIBS=$LIBS
9881 LIBS="-lsvld  $LIBS"
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888
9889 /* Override any GCC internal prototype to avoid an error.
9890    Use char because int might match the return type of a GCC
9891    builtin and then its argument prototype would still apply.  */
9892 #ifdef __cplusplus
9893 extern "C"
9894 #endif
9895 char dlopen ();
9896 int
9897 main ()
9898 {
9899 return dlopen ();
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (ac_try="$ac_link"
9906 case "(($ac_try" in
9907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908   *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911   (eval "$ac_link") 2>conftest.er1
9912   ac_status=$?
9913   grep -v '^ *+' conftest.er1 >conftest.err
9914   rm -f conftest.er1
9915   cat conftest.err >&5
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } &&
9918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9919   { (case "(($ac_try" in
9920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921   *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924   (eval "$ac_try") 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; } &&
9928          { ac_try='test -s conftest$ac_exeext'
9929   { (case "(($ac_try" in
9930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931   *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934   (eval "$ac_try") 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; }; then
9938   ac_cv_lib_svld_dlopen=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943         ac_cv_lib_svld_dlopen=no
9944 fi
9945
9946 rm -f core conftest.err conftest.$ac_objext \
9947       conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9949 fi
9950 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9951 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9952 if test $ac_cv_lib_svld_dlopen = yes; then
9953
9954 cat >>confdefs.h <<\_ACEOF
9955 #define HAVE_LIBDL 1
9956 _ACEOF
9957
9958                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9959 else
9960   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9963   echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965   ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-ldld  $LIBS"
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973
9974 /* Override any GCC internal prototype to avoid an error.
9975    Use char because int might match the return type of a GCC
9976    builtin and then its argument prototype would still apply.  */
9977 #ifdef __cplusplus
9978 extern "C"
9979 #endif
9980 char dld_link ();
9981 int
9982 main ()
9983 {
9984 return dld_link ();
9985   ;
9986   return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9991 case "(($ac_try" in
9992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993   *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996   (eval "$ac_link") 2>conftest.er1
9997   ac_status=$?
9998   grep -v '^ *+' conftest.er1 >conftest.err
9999   rm -f conftest.er1
10000   cat conftest.err >&5
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } &&
10003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004   { (case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_try") 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; } &&
10013          { ac_try='test -s conftest$ac_exeext'
10014   { (case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_try") 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; }; then
10023   ac_cv_lib_dld_dld_link=yes
10024 else
10025   echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028         ac_cv_lib_dld_dld_link=no
10029 fi
10030
10031 rm -f core conftest.err conftest.$ac_objext \
10032       conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10034 fi
10035 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10036 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10037 if test $ac_cv_lib_dld_dld_link = yes; then
10038
10039 cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_DLD 1
10041 _ACEOF
10042
10043                 LIBADD_DL="$LIBADD_DL -ldld"
10044 else
10045   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10046 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10047 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10048   echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050   cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h.  */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h.  */
10056 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10058 #define _dyld_func_lookup innocuous__dyld_func_lookup
10059
10060 /* System header to define __stub macros and hopefully few prototypes,
10061     which can conflict with char _dyld_func_lookup (); below.
10062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10063     <limits.h> exists even on freestanding compilers.  */
10064
10065 #ifdef __STDC__
10066 # include <limits.h>
10067 #else
10068 # include <assert.h>
10069 #endif
10070
10071 #undef _dyld_func_lookup
10072
10073 /* Override any GCC internal prototype to avoid an error.
10074    Use char because int might match the return type of a GCC
10075    builtin and then its argument prototype would still apply.  */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char _dyld_func_lookup ();
10080 /* The GNU C library defines this for functions which it implements
10081     to always fail with ENOSYS.  Some functions are actually named
10082     something starting with __ and the normal name is an alias.  */
10083 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10084 choke me
10085 #endif
10086
10087 int
10088 main ()
10089 {
10090 return _dyld_func_lookup ();
10091   ;
10092   return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102   (eval "$ac_link") 2>conftest.er1
10103   ac_status=$?
10104   grep -v '^ *+' conftest.er1 >conftest.err
10105   rm -f conftest.er1
10106   cat conftest.err >&5
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); } &&
10109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110   { (case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_try") 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; } &&
10119          { ac_try='test -s conftest$ac_exeext'
10120   { (case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125   (eval "$ac_try") 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_func__dyld_func_lookup=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134         ac_cv_func__dyld_func_lookup=no
10135 fi
10136
10137 rm -f core conftest.err conftest.$ac_objext \
10138       conftest$ac_exeext conftest.$ac_ext
10139 fi
10140 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10141 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10142 if test $ac_cv_func__dyld_func_lookup = yes; then
10143
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_DYLD 1
10146 _ACEOF
10147
10148 fi
10149
10150
10151 fi
10152
10153
10154 fi
10155
10156
10157 fi
10158
10159 rm -f core conftest.err conftest.$ac_objext \
10160       conftest$ac_exeext conftest.$ac_ext
10161
10162 fi
10163
10164
10165 fi
10166
10167
10168 fi
10169
10170
10171 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10172 then
10173   lt_save_LIBS="$LIBS"
10174   LIBS="$LIBS $LIBADD_DL"
10175
10176 for ac_func in dlerror
10177 do
10178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10182   echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184   cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h.  */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h.  */
10190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10192 #define $ac_func innocuous_$ac_func
10193
10194 /* System header to define __stub macros and hopefully few prototypes,
10195     which can conflict with char $ac_func (); below.
10196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197     <limits.h> exists even on freestanding compilers.  */
10198
10199 #ifdef __STDC__
10200 # include <limits.h>
10201 #else
10202 # include <assert.h>
10203 #endif
10204
10205 #undef $ac_func
10206
10207 /* Override any GCC internal prototype to avoid an error.
10208    Use char because int might match the return type of a GCC
10209    builtin and then its argument prototype would still apply.  */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char $ac_func ();
10214 /* The GNU C library defines this for functions which it implements
10215     to always fail with ENOSYS.  Some functions are actually named
10216     something starting with __ and the normal name is an alias.  */
10217 #if defined __stub_$ac_func || defined __stub___$ac_func
10218 choke me
10219 #endif
10220
10221 int
10222 main ()
10223 {
10224 return $ac_func ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_link") 2>conftest.er1
10237   ac_status=$?
10238   grep -v '^ *+' conftest.er1 >conftest.err
10239   rm -f conftest.er1
10240   cat conftest.err >&5
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); } &&
10243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244   { (case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_try") 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; } &&
10253          { ac_try='test -s conftest$ac_exeext'
10254   { (case "(($ac_try" in
10255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256   *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259   (eval "$ac_try") 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; }; then
10263   eval "$as_ac_var=yes"
10264 else
10265   echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268         eval "$as_ac_var=no"
10269 fi
10270
10271 rm -f core conftest.err conftest.$ac_objext \
10272       conftest$ac_exeext conftest.$ac_ext
10273 fi
10274 ac_res=`eval echo '${'$as_ac_var'}'`
10275                { echo "$as_me:$LINENO: result: $ac_res" >&5
10276 echo "${ECHO_T}$ac_res" >&6; }
10277 if test `eval echo '${'$as_ac_var'}'` = yes; then
10278   cat >>confdefs.h <<_ACEOF
10279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10280 _ACEOF
10281
10282 fi
10283 done
10284
10285   LIBS="$lt_save_LIBS"
10286 fi
10287 ac_ext=c
10288 ac_cpp='$CPP $CPPFLAGS'
10289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10292
10293
10294
10295 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10296 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10297 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300   ac_cv_sys_symbol_underscore=no
10301   cat > conftest.$ac_ext <<EOF
10302 void nm_test_func(){}
10303 int main(){nm_test_func;return 0;}
10304 EOF
10305   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306   (eval $ac_compile) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); }; then
10310     # Now try to grab the symbols.
10311     ac_nlist=conftest.nm
10312     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10313   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } && test -s "$ac_nlist"; then
10317       # See whether the symbols have a leading underscore.
10318       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10319         ac_cv_sys_symbol_underscore=yes
10320       else
10321         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10322           :
10323         else
10324           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10325         fi
10326       fi
10327     else
10328       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10329     fi
10330   else
10331     echo "configure: failed program was:" >&5
10332     cat conftest.c >&5
10333   fi
10334   rm -rf conftest*
10335
10336 fi
10337 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10338 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10339
10340
10341 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10342   if test x"$libltdl_cv_func_dlopen" = xyes ||
10343      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10344         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10345 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10346 if test "${libltdl_cv_need_uscore+set}" = set; then
10347   echo $ECHO_N "(cached) $ECHO_C" >&6
10348 else
10349   libltdl_cv_need_uscore=unknown
10350           save_LIBS="$LIBS"
10351           LIBS="$LIBS $LIBADD_DL"
10352           if test "$cross_compiling" = yes; then :
10353   libltdl_cv_need_uscore=cross
10354 else
10355   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10356   lt_status=$lt_dlunknown
10357   cat > conftest.$ac_ext <<EOF
10358 #line 10358 "configure"
10359 #include "confdefs.h"
10360
10361 #if HAVE_DLFCN_H
10362 #include <dlfcn.h>
10363 #endif
10364
10365 #include <stdio.h>
10366
10367 #ifdef RTLD_GLOBAL
10368 #  define LT_DLGLOBAL           RTLD_GLOBAL
10369 #else
10370 #  ifdef DL_GLOBAL
10371 #    define LT_DLGLOBAL         DL_GLOBAL
10372 #  else
10373 #    define LT_DLGLOBAL         0
10374 #  endif
10375 #endif
10376
10377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10378    find out it does not work in some platform. */
10379 #ifndef LT_DLLAZY_OR_NOW
10380 #  ifdef RTLD_LAZY
10381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10382 #  else
10383 #    ifdef DL_LAZY
10384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10385 #    else
10386 #      ifdef RTLD_NOW
10387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10388 #      else
10389 #        ifdef DL_NOW
10390 #          define LT_DLLAZY_OR_NOW      DL_NOW
10391 #        else
10392 #          define LT_DLLAZY_OR_NOW      0
10393 #        endif
10394 #      endif
10395 #    endif
10396 #  endif
10397 #endif
10398
10399 #ifdef __cplusplus
10400 extern "C" void exit (int);
10401 #endif
10402
10403 void fnord() { int i=42;}
10404 int main ()
10405 {
10406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10407   int status = $lt_dlunknown;
10408
10409   if (self)
10410     {
10411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10412       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10413       /* dlclose (self); */
10414     }
10415   else
10416     puts (dlerror ());
10417
10418     exit (status);
10419 }
10420 EOF
10421   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422   (eval $ac_link) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10426     (./conftest; exit; ) >&5 2>/dev/null
10427     lt_status=$?
10428     case x$lt_status in
10429       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10430       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10431       x$lt_dlunknown|x*)  ;;
10432     esac
10433   else :
10434     # compilation failed
10435
10436   fi
10437 fi
10438 rm -fr conftest*
10439
10440           LIBS="$save_LIBS"
10441
10442 fi
10443 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10444 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10445   fi
10446 fi
10447
10448 if test x"$libltdl_cv_need_uscore" = xyes; then
10449
10450 cat >>confdefs.h <<\_ACEOF
10451 #define NEED_USCORE 1
10452 _ACEOF
10453
10454 fi
10455
10456
10457 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10458 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10459 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462   # PORTME does your system automatically load deplibs for dlopen?
10463   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10464   # For now, we just catch OSes we know something about -- in the
10465   # future, we'll try test this programmatically.
10466   libltdl_cv_sys_dlopen_deplibs=unknown
10467   case "$host_os" in
10468   aix3*|aix4.1.*|aix4.2.*)
10469     # Unknown whether this is true for these versions of AIX, but
10470     # we want this `case' here to explicitly catch those versions.
10471     libltdl_cv_sys_dlopen_deplibs=unknown
10472     ;;
10473   aix[45]*)
10474     libltdl_cv_sys_dlopen_deplibs=yes
10475     ;;
10476   darwin*)
10477     # Assuming the user has installed a libdl from somewhere, this is true
10478     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10479     libltdl_cv_sys_dlopen_deplibs=yes
10480     ;;
10481   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10482     # GNU and its variants, using gnu ld.so (Glibc)
10483     libltdl_cv_sys_dlopen_deplibs=yes
10484     ;;
10485   hpux10*|hpux11*)
10486     libltdl_cv_sys_dlopen_deplibs=yes
10487     ;;
10488   interix*)
10489     libltdl_cv_sys_dlopen_deplibs=yes
10490     ;;
10491   irix[12345]*|irix6.[01]*)
10492     # Catch all versions of IRIX before 6.2, and indicate that we don't
10493     # know how it worked for any of those versions.
10494     libltdl_cv_sys_dlopen_deplibs=unknown
10495     ;;
10496   irix*)
10497     # The case above catches anything before 6.2, and it's known that
10498     # at 6.2 and later dlopen does load deplibs.
10499     libltdl_cv_sys_dlopen_deplibs=yes
10500     ;;
10501   netbsd*)
10502     libltdl_cv_sys_dlopen_deplibs=yes
10503     ;;
10504   openbsd*)
10505     libltdl_cv_sys_dlopen_deplibs=yes
10506     ;;
10507   osf[1234]*)
10508     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10509     # it did *not* use an RPATH in a shared library to find objects the
10510     # library depends on, so we explicitly say `no'.
10511     libltdl_cv_sys_dlopen_deplibs=no
10512     ;;
10513   osf5.0|osf5.0a|osf5.1)
10514     # dlopen *does* load deplibs and with the right loader patch applied
10515     # it even uses RPATH in a shared library to search for shared objects
10516     # that the library depends on, but there's no easy way to know if that
10517     # patch is installed.  Since this is the case, all we can really
10518     # say is unknown -- it depends on the patch being installed.  If
10519     # it is, this changes to `yes'.  Without it, it would be `no'.
10520     libltdl_cv_sys_dlopen_deplibs=unknown
10521     ;;
10522   osf*)
10523     # the two cases above should catch all versions of osf <= 5.1.  Read
10524     # the comments above for what we know about them.
10525     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10526     # is used to find them so we can finally say `yes'.
10527     libltdl_cv_sys_dlopen_deplibs=yes
10528     ;;
10529   solaris*)
10530     libltdl_cv_sys_dlopen_deplibs=yes
10531     ;;
10532   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10533     libltdl_cv_sys_dlopen_deplibs=yes
10534     ;;
10535   esac
10536
10537 fi
10538 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10539 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10540 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10541
10542 cat >>confdefs.h <<\_ACEOF
10543 #define LTDL_DLOPEN_DEPLIBS 1
10544 _ACEOF
10545
10546 fi
10547
10548
10549 for ac_header in argz.h
10550 do
10551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10553   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 fi
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559                { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10561 else
10562   # Is the header compilable?
10563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10564 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10572 #include <$ac_header>
10573 _ACEOF
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578   *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581   (eval "$ac_compile") 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } &&
10588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10589   { (case "(($ac_try" in
10590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591   *) ac_try_echo=$ac_try;;
10592 esac
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594   (eval "$ac_try") 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); }; } &&
10598          { ac_try='test -s conftest.$ac_objext'
10599   { (case "(($ac_try" in
10600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601   *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604   (eval "$ac_try") 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; }; then
10608   ac_header_compiler=yes
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613         ac_header_compiler=no
10614 fi
10615
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10618 echo "${ECHO_T}$ac_header_compiler" >&6; }
10619
10620 # Is the header present?
10621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10623 cat >conftest.$ac_ext <<_ACEOF
10624 /* confdefs.h.  */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h.  */
10629 #include <$ac_header>
10630 _ACEOF
10631 if { (ac_try="$ac_cpp conftest.$ac_ext"
10632 case "(($ac_try" in
10633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634   *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } >/dev/null; then
10644   if test -s conftest.err; then
10645     ac_cpp_err=$ac_c_preproc_warn_flag
10646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10647   else
10648     ac_cpp_err=
10649   fi
10650 else
10651   ac_cpp_err=yes
10652 fi
10653 if test -z "$ac_cpp_err"; then
10654   ac_header_preproc=yes
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659   ac_header_preproc=no
10660 fi
10661
10662 rm -f conftest.err conftest.$ac_ext
10663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10664 echo "${ECHO_T}$ac_header_preproc" >&6; }
10665
10666 # So?  What about this header?
10667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10668   yes:no: )
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10673     ac_header_preproc=yes
10674     ;;
10675   no:yes:* )
10676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10688     ( cat <<\_ASBOX
10689 ## ------------------------------ ##
10690 ## Report this to bugs@yourdomain ##
10691 ## ------------------------------ ##
10692 _ASBOX
10693      ) | sed "s/^/$as_me: WARNING:     /" >&2
10694     ;;
10695 esac
10696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10699   echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701   eval "$as_ac_Header=\$ac_header_preproc"
10702 fi
10703 ac_res=`eval echo '${'$as_ac_Header'}'`
10704                { echo "$as_me:$LINENO: result: $ac_res" >&5
10705 echo "${ECHO_T}$ac_res" >&6; }
10706
10707 fi
10708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10709   cat >>confdefs.h <<_ACEOF
10710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10711 _ACEOF
10712
10713 fi
10714
10715 done
10716
10717
10718 { echo "$as_me:$LINENO: checking for error_t" >&5
10719 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10720 if test "${ac_cv_type_error_t+set}" = set; then
10721   echo $ECHO_N "(cached) $ECHO_C" >&6
10722 else
10723   cat >conftest.$ac_ext <<_ACEOF
10724 /* confdefs.h.  */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h.  */
10729 #if HAVE_ARGZ_H
10730 #  include <argz.h>
10731 #endif
10732
10733 typedef error_t ac__type_new_;
10734 int
10735 main ()
10736 {
10737 if ((ac__type_new_ *) 0)
10738   return 0;
10739 if (sizeof (ac__type_new_))
10740   return 0;
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749   *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752   (eval "$ac_compile") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760   { (case "(($ac_try" in
10761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762   *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765   (eval "$ac_try") 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest.$ac_objext'
10770   { (case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_try") 2>&5
10776   ac_status=$?
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); }; }; then
10779   ac_cv_type_error_t=yes
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784         ac_cv_type_error_t=no
10785 fi
10786
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 fi
10789 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10790 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10791 if test $ac_cv_type_error_t = yes; then
10792
10793 cat >>confdefs.h <<_ACEOF
10794 #define HAVE_ERROR_T 1
10795 _ACEOF
10796
10797
10798 else
10799
10800 cat >>confdefs.h <<\_ACEOF
10801 #define error_t int
10802 _ACEOF
10803
10804 fi
10805
10806
10807
10808
10809
10810
10811
10812 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10813 do
10814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10818   echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820   cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h.  */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h.  */
10826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10828 #define $ac_func innocuous_$ac_func
10829
10830 /* System header to define __stub macros and hopefully few prototypes,
10831     which can conflict with char $ac_func (); below.
10832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10833     <limits.h> exists even on freestanding compilers.  */
10834
10835 #ifdef __STDC__
10836 # include <limits.h>
10837 #else
10838 # include <assert.h>
10839 #endif
10840
10841 #undef $ac_func
10842
10843 /* Override any GCC internal prototype to avoid an error.
10844    Use char because int might match the return type of a GCC
10845    builtin and then its argument prototype would still apply.  */
10846 #ifdef __cplusplus
10847 extern "C"
10848 #endif
10849 char $ac_func ();
10850 /* The GNU C library defines this for functions which it implements
10851     to always fail with ENOSYS.  Some functions are actually named
10852     something starting with __ and the normal name is an alias.  */
10853 #if defined __stub_$ac_func || defined __stub___$ac_func
10854 choke me
10855 #endif
10856
10857 int
10858 main ()
10859 {
10860 return $ac_func ();
10861   ;
10862   return 0;
10863 }
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869   *) ac_try_echo=$ac_try;;
10870 esac
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872   (eval "$ac_link") 2>conftest.er1
10873   ac_status=$?
10874   grep -v '^ *+' conftest.er1 >conftest.err
10875   rm -f conftest.er1
10876   cat conftest.err >&5
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); } &&
10879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10880   { (case "(($ac_try" in
10881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882   *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885   (eval "$ac_try") 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; } &&
10889          { ac_try='test -s conftest$ac_exeext'
10890   { (case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_try") 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); }; }; then
10899   eval "$as_ac_var=yes"
10900 else
10901   echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904         eval "$as_ac_var=no"
10905 fi
10906
10907 rm -f core conftest.err conftest.$ac_objext \
10908       conftest$ac_exeext conftest.$ac_ext
10909 fi
10910 ac_res=`eval echo '${'$as_ac_var'}'`
10911                { echo "$as_me:$LINENO: result: $ac_res" >&5
10912 echo "${ECHO_T}$ac_res" >&6; }
10913 if test `eval echo '${'$as_ac_var'}'` = yes; then
10914   cat >>confdefs.h <<_ACEOF
10915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10916 _ACEOF
10917
10918 fi
10919 done
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10948                   stdio.h unistd.h
10949 do
10950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10952   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955   echo $ECHO_N "(cached) $ECHO_C" >&6
10956 fi
10957 ac_res=`eval echo '${'$as_ac_Header'}'`
10958                { echo "$as_me:$LINENO: result: $ac_res" >&5
10959 echo "${ECHO_T}$ac_res" >&6; }
10960 else
10961   # Is the header compilable?
10962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 $ac_includes_default
10971 #include <$ac_header>
10972 _ACEOF
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_compile") 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } &&
10987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10988   { (case "(($ac_try" in
10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990   *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993   (eval "$ac_try") 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; } &&
10997          { ac_try='test -s conftest.$ac_objext'
10998   { (case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_try") 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; }; then
11007   ac_header_compiler=yes
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012         ac_header_compiler=no
11013 fi
11014
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11017 echo "${ECHO_T}$ac_header_compiler" >&6; }
11018
11019 # Is the header present?
11020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h.  */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h.  */
11028 #include <$ac_header>
11029 _ACEOF
11030 if { (ac_try="$ac_cpp conftest.$ac_ext"
11031 case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } >/dev/null; then
11043   if test -s conftest.err; then
11044     ac_cpp_err=$ac_c_preproc_warn_flag
11045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11046   else
11047     ac_cpp_err=
11048   fi
11049 else
11050   ac_cpp_err=yes
11051 fi
11052 if test -z "$ac_cpp_err"; then
11053   ac_header_preproc=yes
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058   ac_header_preproc=no
11059 fi
11060
11061 rm -f conftest.err conftest.$ac_ext
11062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11063 echo "${ECHO_T}$ac_header_preproc" >&6; }
11064
11065 # So?  What about this header?
11066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11067   yes:no: )
11068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11072     ac_header_preproc=yes
11073     ;;
11074   no:yes:* )
11075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11087     ( cat <<\_ASBOX
11088 ## ------------------------------ ##
11089 ## Report this to bugs@yourdomain ##
11090 ## ------------------------------ ##
11091 _ASBOX
11092      ) | sed "s/^/$as_me: WARNING:     /" >&2
11093     ;;
11094 esac
11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100   eval "$as_ac_Header=\$ac_header_preproc"
11101 fi
11102 ac_res=`eval echo '${'$as_ac_Header'}'`
11103                { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11105
11106 fi
11107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11108   cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11110 _ACEOF
11111
11112 fi
11113
11114 done
11115
11116
11117
11118
11119
11120 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11121 do
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 fi
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130                { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11132 else
11133   # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 $ac_includes_default
11143 #include <$ac_header>
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_compile") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest.$ac_objext'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ac_header_compiler=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11183
11184         ac_header_compiler=no
11185 fi
11186
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11190
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <$ac_header>
11201 _ACEOF
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
11203 case "(($ac_try" in
11204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205   *) ac_try_echo=$ac_try;;
11206 esac
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } >/dev/null; then
11215   if test -s conftest.err; then
11216     ac_cpp_err=$ac_c_preproc_warn_flag
11217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218   else
11219     ac_cpp_err=
11220   fi
11221 else
11222   ac_cpp_err=yes
11223 fi
11224 if test -z "$ac_cpp_err"; then
11225   ac_header_preproc=yes
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11229
11230   ac_header_preproc=no
11231 fi
11232
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11236
11237 # So?  What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11239   yes:no: )
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244     ac_header_preproc=yes
11245     ;;
11246   no:yes:* )
11247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259     ( cat <<\_ASBOX
11260 ## ------------------------------ ##
11261 ## Report this to bugs@yourdomain ##
11262 ## ------------------------------ ##
11263 _ASBOX
11264      ) | sed "s/^/$as_me: WARNING:     /" >&2
11265     ;;
11266 esac
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   eval "$as_ac_Header=\$ac_header_preproc"
11273 fi
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275                { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11277
11278 fi
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280   cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 _ACEOF
11283
11284 fi
11285
11286 done
11287
11288
11289
11290 for ac_header in string.h strings.h
11291 do
11292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11294   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 fi
11299 ac_res=`eval echo '${'$as_ac_Header'}'`
11300                { echo "$as_me:$LINENO: result: $ac_res" >&5
11301 echo "${ECHO_T}$ac_res" >&6; }
11302 else
11303   # Is the header compilable?
11304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312 $ac_includes_default
11313 #include <$ac_header>
11314 _ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (ac_try="$ac_compile"
11317 case "(($ac_try" in
11318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319   *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322   (eval "$ac_compile") 2>conftest.er1
11323   ac_status=$?
11324   grep -v '^ *+' conftest.er1 >conftest.err
11325   rm -f conftest.er1
11326   cat conftest.err >&5
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); } &&
11329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11330   { (case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_try") 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; } &&
11339          { ac_try='test -s conftest.$ac_objext'
11340   { (case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345   (eval "$ac_try") 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; }; then
11349   ac_header_compiler=yes
11350 else
11351   echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354         ac_header_compiler=no
11355 fi
11356
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11359 echo "${ECHO_T}$ac_header_compiler" >&6; }
11360
11361 # Is the header present?
11362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 #include <$ac_header>
11371 _ACEOF
11372 if { (ac_try="$ac_cpp conftest.$ac_ext"
11373 case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } >/dev/null; then
11385   if test -s conftest.err; then
11386     ac_cpp_err=$ac_c_preproc_warn_flag
11387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11388   else
11389     ac_cpp_err=
11390   fi
11391 else
11392   ac_cpp_err=yes
11393 fi
11394 if test -z "$ac_cpp_err"; then
11395   ac_header_preproc=yes
11396 else
11397   echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400   ac_header_preproc=no
11401 fi
11402
11403 rm -f conftest.err conftest.$ac_ext
11404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11405 echo "${ECHO_T}$ac_header_preproc" >&6; }
11406
11407 # So?  What about this header?
11408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11409   yes:no: )
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11414     ac_header_preproc=yes
11415     ;;
11416   no:yes:* )
11417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11419     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11420 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11421     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11424 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11429     ( cat <<\_ASBOX
11430 ## ------------------------------ ##
11431 ## Report this to bugs@yourdomain ##
11432 ## ------------------------------ ##
11433 _ASBOX
11434      ) | sed "s/^/$as_me: WARNING:     /" >&2
11435     ;;
11436 esac
11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442   eval "$as_ac_Header=\$ac_header_preproc"
11443 fi
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445                { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11447
11448 fi
11449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11450   cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11452 _ACEOF
11453  break
11454 fi
11455
11456 done
11457
11458
11459
11460
11461 for ac_func in strchr index
11462 do
11463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h.  */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h.  */
11475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11477 #define $ac_func innocuous_$ac_func
11478
11479 /* System header to define __stub macros and hopefully few prototypes,
11480     which can conflict with char $ac_func (); below.
11481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11482     <limits.h> exists even on freestanding compilers.  */
11483
11484 #ifdef __STDC__
11485 # include <limits.h>
11486 #else
11487 # include <assert.h>
11488 #endif
11489
11490 #undef $ac_func
11491
11492 /* Override any GCC internal prototype to avoid an error.
11493    Use char because int might match the return type of a GCC
11494    builtin and then its argument prototype would still apply.  */
11495 #ifdef __cplusplus
11496 extern "C"
11497 #endif
11498 char $ac_func ();
11499 /* The GNU C library defines this for functions which it implements
11500     to always fail with ENOSYS.  Some functions are actually named
11501     something starting with __ and the normal name is an alias.  */
11502 #if defined __stub_$ac_func || defined __stub___$ac_func
11503 choke me
11504 #endif
11505
11506 int
11507 main ()
11508 {
11509 return $ac_func ();
11510   ;
11511   return 0;
11512 }
11513 _ACEOF
11514 rm -f conftest.$ac_objext conftest$ac_exeext
11515 if { (ac_try="$ac_link"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_link") 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } &&
11528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11529   { (case "(($ac_try" in
11530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531   *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534   (eval "$ac_try") 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; } &&
11538          { ac_try='test -s conftest$ac_exeext'
11539   { (case "(($ac_try" in
11540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541   *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544   (eval "$ac_try") 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; }; then
11548   eval "$as_ac_var=yes"
11549 else
11550   echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553         eval "$as_ac_var=no"
11554 fi
11555
11556 rm -f core conftest.err conftest.$ac_objext \
11557       conftest$ac_exeext conftest.$ac_ext
11558 fi
11559 ac_res=`eval echo '${'$as_ac_var'}'`
11560                { echo "$as_me:$LINENO: result: $ac_res" >&5
11561 echo "${ECHO_T}$ac_res" >&6; }
11562 if test `eval echo '${'$as_ac_var'}'` = yes; then
11563   cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11565 _ACEOF
11566  break
11567 fi
11568 done
11569
11570
11571
11572 for ac_func in strrchr rindex
11573 do
11574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11588 #define $ac_func innocuous_$ac_func
11589
11590 /* System header to define __stub macros and hopefully few prototypes,
11591     which can conflict with char $ac_func (); below.
11592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11593     <limits.h> exists even on freestanding compilers.  */
11594
11595 #ifdef __STDC__
11596 # include <limits.h>
11597 #else
11598 # include <assert.h>
11599 #endif
11600
11601 #undef $ac_func
11602
11603 /* Override any GCC internal prototype to avoid an error.
11604    Use char because int might match the return type of a GCC
11605    builtin and then its argument prototype would still apply.  */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 char $ac_func ();
11610 /* The GNU C library defines this for functions which it implements
11611     to always fail with ENOSYS.  Some functions are actually named
11612     something starting with __ and the normal name is an alias.  */
11613 #if defined __stub_$ac_func || defined __stub___$ac_func
11614 choke me
11615 #endif
11616
11617 int
11618 main ()
11619 {
11620 return $ac_func ();
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629   *) ac_try_echo=$ac_try;;
11630 esac
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632   (eval "$ac_link") 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11640   { (case "(($ac_try" in
11641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642   *) ac_try_echo=$ac_try;;
11643 esac
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645   (eval "$ac_try") 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; } &&
11649          { ac_try='test -s conftest$ac_exeext'
11650   { (case "(($ac_try" in
11651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652   *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655   (eval "$ac_try") 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); }; }; then
11659   eval "$as_ac_var=yes"
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664         eval "$as_ac_var=no"
11665 fi
11666
11667 rm -f core conftest.err conftest.$ac_objext \
11668       conftest$ac_exeext conftest.$ac_ext
11669 fi
11670 ac_res=`eval echo '${'$as_ac_var'}'`
11671                { echo "$as_me:$LINENO: result: $ac_res" >&5
11672 echo "${ECHO_T}$ac_res" >&6; }
11673 if test `eval echo '${'$as_ac_var'}'` = yes; then
11674   cat >>confdefs.h <<_ACEOF
11675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11676 _ACEOF
11677  break
11678 fi
11679 done
11680
11681
11682
11683 for ac_func in memcpy bcopy
11684 do
11685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11689   echo $ECHO_N "(cached) $ECHO_C" >&6
11690 else
11691   cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h.  */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h.  */
11697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11699 #define $ac_func innocuous_$ac_func
11700
11701 /* System header to define __stub macros and hopefully few prototypes,
11702     which can conflict with char $ac_func (); below.
11703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11704     <limits.h> exists even on freestanding compilers.  */
11705
11706 #ifdef __STDC__
11707 # include <limits.h>
11708 #else
11709 # include <assert.h>
11710 #endif
11711
11712 #undef $ac_func
11713
11714 /* Override any GCC internal prototype to avoid an error.
11715    Use char because int might match the return type of a GCC
11716    builtin and then its argument prototype would still apply.  */
11717 #ifdef __cplusplus
11718 extern "C"
11719 #endif
11720 char $ac_func ();
11721 /* The GNU C library defines this for functions which it implements
11722     to always fail with ENOSYS.  Some functions are actually named
11723     something starting with __ and the normal name is an alias.  */
11724 #if defined __stub_$ac_func || defined __stub___$ac_func
11725 choke me
11726 #endif
11727
11728 int
11729 main ()
11730 {
11731 return $ac_func ();
11732   ;
11733   return 0;
11734 }
11735 _ACEOF
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (ac_try="$ac_link"
11738 case "(($ac_try" in
11739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740   *) ac_try_echo=$ac_try;;
11741 esac
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743   (eval "$ac_link") 2>conftest.er1
11744   ac_status=$?
11745   grep -v '^ *+' conftest.er1 >conftest.err
11746   rm -f conftest.er1
11747   cat conftest.err >&5
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } &&
11750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11751   { (case "(($ac_try" in
11752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753   *) ac_try_echo=$ac_try;;
11754 esac
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756   (eval "$ac_try") 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; } &&
11760          { ac_try='test -s conftest$ac_exeext'
11761   { (case "(($ac_try" in
11762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763   *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766   (eval "$ac_try") 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); }; }; then
11770   eval "$as_ac_var=yes"
11771 else
11772   echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11774
11775         eval "$as_ac_var=no"
11776 fi
11777
11778 rm -f core conftest.err conftest.$ac_objext \
11779       conftest$ac_exeext conftest.$ac_ext
11780 fi
11781 ac_res=`eval echo '${'$as_ac_var'}'`
11782                { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11784 if test `eval echo '${'$as_ac_var'}'` = yes; then
11785   cat >>confdefs.h <<_ACEOF
11786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11787 _ACEOF
11788  break
11789 fi
11790 done
11791
11792
11793
11794 for ac_func in memmove strcmp
11795 do
11796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11810 #define $ac_func innocuous_$ac_func
11811
11812 /* System header to define __stub macros and hopefully few prototypes,
11813     which can conflict with char $ac_func (); below.
11814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815     <limits.h> exists even on freestanding compilers.  */
11816
11817 #ifdef __STDC__
11818 # include <limits.h>
11819 #else
11820 # include <assert.h>
11821 #endif
11822
11823 #undef $ac_func
11824
11825 /* Override any GCC internal prototype to avoid an error.
11826    Use char because int might match the return type of a GCC
11827    builtin and then its argument prototype would still apply.  */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char $ac_func ();
11832 /* The GNU C library defines this for functions which it implements
11833     to always fail with ENOSYS.  Some functions are actually named
11834     something starting with __ and the normal name is an alias.  */
11835 #if defined __stub_$ac_func || defined __stub___$ac_func
11836 choke me
11837 #endif
11838
11839 int
11840 main ()
11841 {
11842 return $ac_func ();
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (ac_try="$ac_link"
11849 case "(($ac_try" in
11850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851   *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854   (eval "$ac_link") 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } &&
11861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11862   { (case "(($ac_try" in
11863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864   *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867   (eval "$ac_try") 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; } &&
11871          { ac_try='test -s conftest$ac_exeext'
11872   { (case "(($ac_try" in
11873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874   *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877   (eval "$ac_try") 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); }; }; then
11881   eval "$as_ac_var=yes"
11882 else
11883   echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11885
11886         eval "$as_ac_var=no"
11887 fi
11888
11889 rm -f core conftest.err conftest.$ac_objext \
11890       conftest$ac_exeext conftest.$ac_ext
11891 fi
11892 ac_res=`eval echo '${'$as_ac_var'}'`
11893                { echo "$as_me:$LINENO: result: $ac_res" >&5
11894 echo "${ECHO_T}$ac_res" >&6; }
11895 if test `eval echo '${'$as_ac_var'}'` = yes; then
11896   cat >>confdefs.h <<_ACEOF
11897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11898 _ACEOF
11899
11900 fi
11901 done
11902
11903
11904
11905
11906 for ac_func in closedir opendir readdir
11907 do
11908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11922 #define $ac_func innocuous_$ac_func
11923
11924 /* System header to define __stub macros and hopefully few prototypes,
11925     which can conflict with char $ac_func (); below.
11926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927     <limits.h> exists even on freestanding compilers.  */
11928
11929 #ifdef __STDC__
11930 # include <limits.h>
11931 #else
11932 # include <assert.h>
11933 #endif
11934
11935 #undef $ac_func
11936
11937 /* Override any GCC internal prototype to avoid an error.
11938    Use char because int might match the return type of a GCC
11939    builtin and then its argument prototype would still apply.  */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 char $ac_func ();
11944 /* The GNU C library defines this for functions which it implements
11945     to always fail with ENOSYS.  Some functions are actually named
11946     something starting with __ and the normal name is an alias.  */
11947 #if defined __stub_$ac_func || defined __stub___$ac_func
11948 choke me
11949 #endif
11950
11951 int
11952 main ()
11953 {
11954 return $ac_func ();
11955   ;
11956   return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (ac_try="$ac_link"
11961 case "(($ac_try" in
11962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963   *) ac_try_echo=$ac_try;;
11964 esac
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966   (eval "$ac_link") 2>conftest.er1
11967   ac_status=$?
11968   grep -v '^ *+' conftest.er1 >conftest.err
11969   rm -f conftest.er1
11970   cat conftest.err >&5
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974   { (case "(($ac_try" in
11975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976   *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979   (eval "$ac_try") 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (case "(($ac_try" in
11985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986   *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989   (eval "$ac_try") 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; }; then
11993   eval "$as_ac_var=yes"
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998         eval "$as_ac_var=no"
11999 fi
12000
12001 rm -f core conftest.err conftest.$ac_objext \
12002       conftest$ac_exeext conftest.$ac_ext
12003 fi
12004 ac_res=`eval echo '${'$as_ac_var'}'`
12005                { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12007 if test `eval echo '${'$as_ac_var'}'` = yes; then
12008   cat >>confdefs.h <<_ACEOF
12009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12010 _ACEOF
12011
12012 fi
12013 done
12014
12015
12016
12017 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12018 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12019
12020 ICC=no
12021 IXX=no
12022 case $CC in
12023   icc*|icpc*)
12024     ICC=yes
12025     IXX=yes
12026     ;;
12027    *)
12028     ;;
12029 esac
12030
12031 if test "$GCC" != "yes" && test "$ICC" != "yes"
12032 then
12033   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12034 echo "$as_me: error: gcc|icc required but not found" >&2;}
12035    { (exit 1); exit 1; }; }
12036 fi
12037
12038 if test "$GXX" != "yes" && test "$IXX" != "yes"
12039 then
12040   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12041 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12042    { (exit 1); exit 1; }; }
12043 fi
12044
12045 if test "$GCC" = "yes"
12046 then
12047   cat >conftest.$ac_ext <<_ACEOF
12048 #if !defined(__GNUC__) || __GNUC__ < 3
12049 #error Unsupported GCC version
12050 #endif
12051
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_compile") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068   { (case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_try") 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest.$ac_objext'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; }; then
12087   :
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12093 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12094    { (exit 1); exit 1; }; }
12095 fi
12096
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 fi
12099
12100 if test -z "$llvm_cv_gnu_make_command"
12101 then
12102   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12103 echo "$as_me: error: GNU Make required but not found" >&2;}
12104    { (exit 1); exit 1; }; }
12105 fi
12106
12107 { echo "$as_me:$LINENO: result: ok" >&5
12108 echo "${ECHO_T}ok" >&6; }
12109
12110 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12111 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12112 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12113
12114 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12115
12116 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12117
12118 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12119 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12120
12121
12122
12123 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12124 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12125 if test "${ac_cv_lib_m_sin+set}" = set; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128   ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lm  $LIBS"
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136
12137 /* Override any GCC internal prototype to avoid an error.
12138    Use char because int might match the return type of a GCC
12139    builtin and then its argument prototype would still apply.  */
12140 #ifdef __cplusplus
12141 extern "C"
12142 #endif
12143 char sin ();
12144 int
12145 main ()
12146 {
12147 return sin ();
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (ac_try="$ac_link"
12154 case "(($ac_try" in
12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156   *) ac_try_echo=$ac_try;;
12157 esac
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159   (eval "$ac_link") 2>conftest.er1
12160   ac_status=$?
12161   grep -v '^ *+' conftest.er1 >conftest.err
12162   rm -f conftest.er1
12163   cat conftest.err >&5
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } &&
12166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167   { (case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172   (eval "$ac_try") 2>&5
12173   ac_status=$?
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); }; } &&
12176          { ac_try='test -s conftest$ac_exeext'
12177   { (case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_try") 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; }; then
12186   ac_cv_lib_m_sin=yes
12187 else
12188   echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12190
12191         ac_cv_lib_m_sin=no
12192 fi
12193
12194 rm -f core conftest.err conftest.$ac_objext \
12195       conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12199 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12200 if test $ac_cv_lib_m_sin = yes; then
12201   cat >>confdefs.h <<_ACEOF
12202 #define HAVE_LIBM 1
12203 _ACEOF
12204
12205   LIBS="-lm $LIBS"
12206
12207 fi
12208
12209 if test "$llvm_cv_os_type" = "MingW" ; then
12210
12211 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12212 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12213 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12214   echo $ECHO_N "(cached) $ECHO_C" >&6
12215 else
12216   ac_check_lib_save_LIBS=$LIBS
12217 LIBS="-limagehlp  $LIBS"
12218 cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h.  */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h.  */
12224
12225
12226 int
12227 main ()
12228 {
12229 return main ();
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241   (eval "$ac_link") 2>conftest.er1
12242   ac_status=$?
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } &&
12248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12249   { (case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_try") 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; } &&
12258          { ac_try='test -s conftest$ac_exeext'
12259   { (case "(($ac_try" in
12260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261   *) ac_try_echo=$ac_try;;
12262 esac
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264   (eval "$ac_try") 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; }; then
12268   ac_cv_lib_imagehlp_main=yes
12269 else
12270   echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273         ac_cv_lib_imagehlp_main=no
12274 fi
12275
12276 rm -f core conftest.err conftest.$ac_objext \
12277       conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12279 fi
12280 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12281 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12282 if test $ac_cv_lib_imagehlp_main = yes; then
12283   cat >>confdefs.h <<_ACEOF
12284 #define HAVE_LIBIMAGEHLP 1
12285 _ACEOF
12286
12287   LIBS="-limagehlp $LIBS"
12288
12289 fi
12290
12291
12292 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12293 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12294 if test "${ac_cv_lib_psapi_main+set}" = set; then
12295   echo $ECHO_N "(cached) $ECHO_C" >&6
12296 else
12297   ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lpsapi  $LIBS"
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h.  */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h.  */
12305
12306
12307 int
12308 main ()
12309 {
12310 return main ();
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319   *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322   (eval "$ac_link") 2>conftest.er1
12323   ac_status=$?
12324   grep -v '^ *+' conftest.er1 >conftest.err
12325   rm -f conftest.er1
12326   cat conftest.err >&5
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); } &&
12329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12330   { (case "(($ac_try" in
12331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332   *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335   (eval "$ac_try") 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; } &&
12339          { ac_try='test -s conftest$ac_exeext'
12340   { (case "(($ac_try" in
12341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342   *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345   (eval "$ac_try") 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); }; }; then
12349   ac_cv_lib_psapi_main=yes
12350 else
12351   echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354         ac_cv_lib_psapi_main=no
12355 fi
12356
12357 rm -f core conftest.err conftest.$ac_objext \
12358       conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12360 fi
12361 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12362 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12363 if test $ac_cv_lib_psapi_main = yes; then
12364   cat >>confdefs.h <<_ACEOF
12365 #define HAVE_LIBPSAPI 1
12366 _ACEOF
12367
12368   LIBS="-lpsapi $LIBS"
12369
12370 fi
12371
12372 fi
12373
12374 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12375 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12376 if test "${ac_cv_search_dlopen+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   ac_func_search_save_LIBS=$LIBS
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h.  */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h.  */
12386
12387 /* Override any GCC internal prototype to avoid an error.
12388    Use char because int might match the return type of a GCC
12389    builtin and then its argument prototype would still apply.  */
12390 #ifdef __cplusplus
12391 extern "C"
12392 #endif
12393 char dlopen ();
12394 int
12395 main ()
12396 {
12397 return dlopen ();
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 for ac_lib in '' dl; do
12403   if test -z "$ac_lib"; then
12404     ac_res="none required"
12405   else
12406     ac_res=-l$ac_lib
12407     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12408   fi
12409   rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (ac_try="$ac_link"
12411 case "(($ac_try" in
12412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413   *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416   (eval "$ac_link") 2>conftest.er1
12417   ac_status=$?
12418   grep -v '^ *+' conftest.er1 >conftest.err
12419   rm -f conftest.er1
12420   cat conftest.err >&5
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); } &&
12423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12424   { (case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_try") 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; } &&
12433          { ac_try='test -s conftest$ac_exeext'
12434   { (case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439   (eval "$ac_try") 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; }; then
12443   ac_cv_search_dlopen=$ac_res
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext \
12452       conftest$ac_exeext
12453   if test "${ac_cv_search_dlopen+set}" = set; then
12454   break
12455 fi
12456 done
12457 if test "${ac_cv_search_dlopen+set}" = set; then
12458   :
12459 else
12460   ac_cv_search_dlopen=no
12461 fi
12462 rm conftest.$ac_ext
12463 LIBS=$ac_func_search_save_LIBS
12464 fi
12465 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12466 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12467 ac_res=$ac_cv_search_dlopen
12468 if test "$ac_res" != no; then
12469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_DLOPEN 1
12473 _ACEOF
12474
12475 else
12476   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12477 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12478 fi
12479
12480
12481 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12482 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12483 if test "${ac_cv_search_clock_gettime+set}" = set; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486   ac_func_search_save_LIBS=$LIBS
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494 /* Override any GCC internal prototype to avoid an error.
12495    Use char because int might match the return type of a GCC
12496    builtin and then its argument prototype would still apply.  */
12497 #ifdef __cplusplus
12498 extern "C"
12499 #endif
12500 char clock_gettime ();
12501 int
12502 main ()
12503 {
12504 return clock_gettime ();
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 for ac_lib in '' rt; do
12510   if test -z "$ac_lib"; then
12511     ac_res="none required"
12512   else
12513     ac_res=-l$ac_lib
12514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12515   fi
12516   rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_link") 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_try") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_cv_search_clock_gettime=$ac_res
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555
12556 fi
12557
12558 rm -f core conftest.err conftest.$ac_objext \
12559       conftest$ac_exeext
12560   if test "${ac_cv_search_clock_gettime+set}" = set; then
12561   break
12562 fi
12563 done
12564 if test "${ac_cv_search_clock_gettime+set}" = set; then
12565   :
12566 else
12567   ac_cv_search_clock_gettime=no
12568 fi
12569 rm conftest.$ac_ext
12570 LIBS=$ac_func_search_save_LIBS
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12573 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12574 ac_res=$ac_cv_search_clock_gettime
12575 if test "$ac_res" != no; then
12576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12577
12578 fi
12579
12580
12581 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12582     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12583 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12584 if test "${ac_cv_search_setupterm+set}" = set; then
12585   echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587   ac_func_search_save_LIBS=$LIBS
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594
12595 /* Override any GCC internal prototype to avoid an error.
12596    Use char because int might match the return type of a GCC
12597    builtin and then its argument prototype would still apply.  */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char setupterm ();
12602 int
12603 main ()
12604 {
12605 return setupterm ();
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 for ac_lib in '' tinfo curses ncurses ncursesw; do
12611   if test -z "$ac_lib"; then
12612     ac_res="none required"
12613   else
12614     ac_res=-l$ac_lib
12615     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12616   fi
12617   rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624   (eval "$ac_link") 2>conftest.er1
12625   ac_status=$?
12626   grep -v '^ *+' conftest.er1 >conftest.err
12627   rm -f conftest.er1
12628   cat conftest.err >&5
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); } &&
12631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12632   { (case "(($ac_try" in
12633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634   *) ac_try_echo=$ac_try;;
12635 esac
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637   (eval "$ac_try") 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; } &&
12641          { ac_try='test -s conftest$ac_exeext'
12642   { (case "(($ac_try" in
12643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644   *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647   (eval "$ac_try") 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; }; then
12651   ac_cv_search_setupterm=$ac_res
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656
12657 fi
12658
12659 rm -f core conftest.err conftest.$ac_objext \
12660       conftest$ac_exeext
12661   if test "${ac_cv_search_setupterm+set}" = set; then
12662   break
12663 fi
12664 done
12665 if test "${ac_cv_search_setupterm+set}" = set; then
12666   :
12667 else
12668   ac_cv_search_setupterm=no
12669 fi
12670 rm conftest.$ac_ext
12671 LIBS=$ac_func_search_save_LIBS
12672 fi
12673 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12674 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12675 ac_res=$ac_cv_search_setupterm
12676 if test "$ac_res" != no; then
12677   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12678
12679 cat >>confdefs.h <<\_ACEOF
12680 #define HAVE_TERMINFO 1
12681 _ACEOF
12682
12683 fi
12684
12685 fi
12686
12687 if test "$llvm_cv_enable_libffi" = "yes" ; then
12688   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12689 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12690 if test "${ac_cv_search_ffi_call+set}" = set; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   ac_func_search_save_LIBS=$LIBS
12694 cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700
12701 /* Override any GCC internal prototype to avoid an error.
12702    Use char because int might match the return type of a GCC
12703    builtin and then its argument prototype would still apply.  */
12704 #ifdef __cplusplus
12705 extern "C"
12706 #endif
12707 char ffi_call ();
12708 int
12709 main ()
12710 {
12711 return ffi_call ();
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 for ac_lib in '' ffi; do
12717   if test -z "$ac_lib"; then
12718     ac_res="none required"
12719   else
12720     ac_res=-l$ac_lib
12721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12722   fi
12723   rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727   *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730   (eval "$ac_link") 2>conftest.er1
12731   ac_status=$?
12732   grep -v '^ *+' conftest.er1 >conftest.err
12733   rm -f conftest.er1
12734   cat conftest.err >&5
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } &&
12737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12738   { (case "(($ac_try" in
12739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740   *) ac_try_echo=$ac_try;;
12741 esac
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743   (eval "$ac_try") 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); }; } &&
12747          { ac_try='test -s conftest$ac_exeext'
12748   { (case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753   (eval "$ac_try") 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; }; then
12757   ac_cv_search_ffi_call=$ac_res
12758 else
12759   echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762
12763 fi
12764
12765 rm -f core conftest.err conftest.$ac_objext \
12766       conftest$ac_exeext
12767   if test "${ac_cv_search_ffi_call+set}" = set; then
12768   break
12769 fi
12770 done
12771 if test "${ac_cv_search_ffi_call+set}" = set; then
12772   :
12773 else
12774   ac_cv_search_ffi_call=no
12775 fi
12776 rm conftest.$ac_ext
12777 LIBS=$ac_func_search_save_LIBS
12778 fi
12779 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12780 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12781 ac_res=$ac_cv_search_ffi_call
12782 if test "$ac_res" != no; then
12783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12784
12785 cat >>confdefs.h <<\_ACEOF
12786 #define HAVE_FFI_CALL 1
12787 _ACEOF
12788
12789 else
12790   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12791 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12792    { (exit 1); exit 1; }; }
12793 fi
12794
12795 fi
12796
12797 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12798 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12799 if test "${ac_cv_search_mallinfo+set}" = set; then
12800   echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802   ac_func_search_save_LIBS=$LIBS
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char mallinfo ();
12817 int
12818 main ()
12819 {
12820 return mallinfo ();
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 for ac_lib in '' malloc; do
12826   if test -z "$ac_lib"; then
12827     ac_res="none required"
12828   else
12829     ac_res=-l$ac_lib
12830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12831   fi
12832   rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836   *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839   (eval "$ac_link") 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } &&
12846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847   { (case "(($ac_try" in
12848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849   *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852   (eval "$ac_try") 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; } &&
12856          { ac_try='test -s conftest$ac_exeext'
12857   { (case "(($ac_try" in
12858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859   *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862   (eval "$ac_try") 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; }; then
12866   ac_cv_search_mallinfo=$ac_res
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871
12872 fi
12873
12874 rm -f core conftest.err conftest.$ac_objext \
12875       conftest$ac_exeext
12876   if test "${ac_cv_search_mallinfo+set}" = set; then
12877   break
12878 fi
12879 done
12880 if test "${ac_cv_search_mallinfo+set}" = set; then
12881   :
12882 else
12883   ac_cv_search_mallinfo=no
12884 fi
12885 rm conftest.$ac_ext
12886 LIBS=$ac_func_search_save_LIBS
12887 fi
12888 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12889 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12890 ac_res=$ac_cv_search_mallinfo
12891 if test "$ac_res" != no; then
12892   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12893
12894 cat >>confdefs.h <<\_ACEOF
12895 #define HAVE_MALLINFO 1
12896 _ACEOF
12897
12898 fi
12899
12900
12901 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12902
12903 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12904 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12905 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12906   echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908   ac_check_lib_save_LIBS=$LIBS
12909 LIBS="-lpthread  $LIBS"
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h.  */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h.  */
12916
12917 /* Override any GCC internal prototype to avoid an error.
12918    Use char because int might match the return type of a GCC
12919    builtin and then its argument prototype would still apply.  */
12920 #ifdef __cplusplus
12921 extern "C"
12922 #endif
12923 char pthread_mutex_init ();
12924 int
12925 main ()
12926 {
12927 return pthread_mutex_init ();
12928   ;
12929   return 0;
12930 }
12931 _ACEOF
12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (ac_try="$ac_link"
12934 case "(($ac_try" in
12935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936   *) ac_try_echo=$ac_try;;
12937 esac
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939   (eval "$ac_link") 2>conftest.er1
12940   ac_status=$?
12941   grep -v '^ *+' conftest.er1 >conftest.err
12942   rm -f conftest.er1
12943   cat conftest.err >&5
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); } &&
12946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12947   { (case "(($ac_try" in
12948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949   *) ac_try_echo=$ac_try;;
12950 esac
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952   (eval "$ac_try") 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); }; } &&
12956          { ac_try='test -s conftest$ac_exeext'
12957   { (case "(($ac_try" in
12958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959   *) ac_try_echo=$ac_try;;
12960 esac
12961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962   (eval "$ac_try") 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; }; then
12966   ac_cv_lib_pthread_pthread_mutex_init=yes
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971         ac_cv_lib_pthread_pthread_mutex_init=no
12972 fi
12973
12974 rm -f core conftest.err conftest.$ac_objext \
12975       conftest$ac_exeext conftest.$ac_ext
12976 LIBS=$ac_check_lib_save_LIBS
12977 fi
12978 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12979 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12980 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12981   cat >>confdefs.h <<_ACEOF
12982 #define HAVE_LIBPTHREAD 1
12983 _ACEOF
12984
12985   LIBS="-lpthread $LIBS"
12986
12987 fi
12988
12989   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12990 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12991 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994   ac_func_search_save_LIBS=$LIBS
12995 cat >conftest.$ac_ext <<_ACEOF
12996 /* confdefs.h.  */
12997 _ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h.  */
13001
13002 /* Override any GCC internal prototype to avoid an error.
13003    Use char because int might match the return type of a GCC
13004    builtin and then its argument prototype would still apply.  */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 char pthread_mutex_lock ();
13009 int
13010 main ()
13011 {
13012 return pthread_mutex_lock ();
13013   ;
13014   return 0;
13015 }
13016 _ACEOF
13017 for ac_lib in '' pthread; do
13018   if test -z "$ac_lib"; then
13019     ac_res="none required"
13020   else
13021     ac_res=-l$ac_lib
13022     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13023   fi
13024   rm -f conftest.$ac_objext conftest$ac_exeext
13025 if { (ac_try="$ac_link"
13026 case "(($ac_try" in
13027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028   *) ac_try_echo=$ac_try;;
13029 esac
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031   (eval "$ac_link") 2>conftest.er1
13032   ac_status=$?
13033   grep -v '^ *+' conftest.er1 >conftest.err
13034   rm -f conftest.er1
13035   cat conftest.err >&5
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); } &&
13038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13039   { (case "(($ac_try" in
13040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041   *) ac_try_echo=$ac_try;;
13042 esac
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044   (eval "$ac_try") 2>&5
13045   ac_status=$?
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); }; } &&
13048          { ac_try='test -s conftest$ac_exeext'
13049   { (case "(($ac_try" in
13050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051   *) ac_try_echo=$ac_try;;
13052 esac
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054   (eval "$ac_try") 2>&5
13055   ac_status=$?
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); }; }; then
13058   ac_cv_search_pthread_mutex_lock=$ac_res
13059 else
13060   echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13062
13063
13064 fi
13065
13066 rm -f core conftest.err conftest.$ac_objext \
13067       conftest$ac_exeext
13068   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13069   break
13070 fi
13071 done
13072 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13073   :
13074 else
13075   ac_cv_search_pthread_mutex_lock=no
13076 fi
13077 rm conftest.$ac_ext
13078 LIBS=$ac_func_search_save_LIBS
13079 fi
13080 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13081 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13082 ac_res=$ac_cv_search_pthread_mutex_lock
13083 if test "$ac_res" != no; then
13084   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13085
13086 cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_PTHREAD_MUTEX_LOCK 1
13088 _ACEOF
13089
13090 fi
13091
13092   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13093 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13094 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097   ac_func_search_save_LIBS=$LIBS
13098 cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104
13105 /* Override any GCC internal prototype to avoid an error.
13106    Use char because int might match the return type of a GCC
13107    builtin and then its argument prototype would still apply.  */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 char pthread_rwlock_init ();
13112 int
13113 main ()
13114 {
13115 return pthread_rwlock_init ();
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 for ac_lib in '' pthread; do
13121   if test -z "$ac_lib"; then
13122     ac_res="none required"
13123   else
13124     ac_res=-l$ac_lib
13125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13126   fi
13127   rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_link") 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } &&
13141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142   { (case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_try") 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; } &&
13151          { ac_try='test -s conftest$ac_exeext'
13152   { (case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_try") 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; }; then
13161   ac_cv_search_pthread_rwlock_init=$ac_res
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166
13167 fi
13168
13169 rm -f core conftest.err conftest.$ac_objext \
13170       conftest$ac_exeext
13171   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13172   break
13173 fi
13174 done
13175 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13176   :
13177 else
13178   ac_cv_search_pthread_rwlock_init=no
13179 fi
13180 rm conftest.$ac_ext
13181 LIBS=$ac_func_search_save_LIBS
13182 fi
13183 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13184 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13185 ac_res=$ac_cv_search_pthread_rwlock_init
13186 if test "$ac_res" != no; then
13187   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13188
13189 cat >>confdefs.h <<\_ACEOF
13190 #define HAVE_PTHREAD_RWLOCK_INIT 1
13191 _ACEOF
13192
13193 fi
13194
13195   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13196 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13197 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200   ac_func_search_save_LIBS=$LIBS
13201 cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h.  */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h.  */
13207
13208 /* Override any GCC internal prototype to avoid an error.
13209    Use char because int might match the return type of a GCC
13210    builtin and then its argument prototype would still apply.  */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char pthread_getspecific ();
13215 int
13216 main ()
13217 {
13218 return pthread_getspecific ();
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 for ac_lib in '' pthread; do
13224   if test -z "$ac_lib"; then
13225     ac_res="none required"
13226   else
13227     ac_res=-l$ac_lib
13228     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13229   fi
13230   rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234   *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237   (eval "$ac_link") 2>conftest.er1
13238   ac_status=$?
13239   grep -v '^ *+' conftest.er1 >conftest.err
13240   rm -f conftest.er1
13241   cat conftest.err >&5
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } &&
13244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245   { (case "(($ac_try" in
13246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247   *) ac_try_echo=$ac_try;;
13248 esac
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250   (eval "$ac_try") 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; } &&
13254          { ac_try='test -s conftest$ac_exeext'
13255   { (case "(($ac_try" in
13256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257   *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260   (eval "$ac_try") 2>&5
13261   ac_status=$?
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); }; }; then
13264   ac_cv_search_pthread_getspecific=$ac_res
13265 else
13266   echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269
13270 fi
13271
13272 rm -f core conftest.err conftest.$ac_objext \
13273       conftest$ac_exeext
13274   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13275   break
13276 fi
13277 done
13278 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13279   :
13280 else
13281   ac_cv_search_pthread_getspecific=no
13282 fi
13283 rm conftest.$ac_ext
13284 LIBS=$ac_func_search_save_LIBS
13285 fi
13286 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13287 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13288 ac_res=$ac_cv_search_pthread_getspecific
13289 if test "$ac_res" != no; then
13290   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13291
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_PTHREAD_GETSPECIFIC 1
13294 _ACEOF
13295
13296 fi
13297
13298 fi
13299
13300
13301 # Check whether --with-udis86 was given.
13302 if test "${with_udis86+set}" = set; then
13303   withval=$with_udis86;
13304       USE_UDIS86=1
13305
13306       case "$withval" in
13307         /usr/lib|yes) ;;
13308         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13309       esac
13310
13311 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13312 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13313 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13314   echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316   ac_check_lib_save_LIBS=$LIBS
13317 LIBS="-ludis86  $LIBS"
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324
13325 /* Override any GCC internal prototype to avoid an error.
13326    Use char because int might match the return type of a GCC
13327    builtin and then its argument prototype would still apply.  */
13328 #ifdef __cplusplus
13329 extern "C"
13330 #endif
13331 char ud_init ();
13332 int
13333 main ()
13334 {
13335 return ud_init ();
13336   ;
13337   return 0;
13338 }
13339 _ACEOF
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (ac_try="$ac_link"
13342 case "(($ac_try" in
13343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344   *) ac_try_echo=$ac_try;;
13345 esac
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347   (eval "$ac_link") 2>conftest.er1
13348   ac_status=$?
13349   grep -v '^ *+' conftest.er1 >conftest.err
13350   rm -f conftest.er1
13351   cat conftest.err >&5
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); } &&
13354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355   { (case "(($ac_try" in
13356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357   *) ac_try_echo=$ac_try;;
13358 esac
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360   (eval "$ac_try") 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; } &&
13364          { ac_try='test -s conftest$ac_exeext'
13365   { (case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_try") 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; }; then
13374   ac_cv_lib_udis86_ud_init=yes
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379         ac_cv_lib_udis86_ud_init=no
13380 fi
13381
13382 rm -f core conftest.err conftest.$ac_objext \
13383       conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13385 fi
13386 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13387 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13388 if test $ac_cv_lib_udis86_ud_init = yes; then
13389   cat >>confdefs.h <<_ACEOF
13390 #define HAVE_LIBUDIS86 1
13391 _ACEOF
13392
13393   LIBS="-ludis86 $LIBS"
13394
13395 else
13396
13397         echo "Error! You need to have libudis86 around."
13398         exit -1
13399
13400 fi
13401
13402
13403 else
13404   USE_UDIS86=0
13405
13406 fi
13407
13408
13409 cat >>confdefs.h <<_ACEOF
13410 #define USE_UDIS86 $USE_UDIS86
13411 _ACEOF
13412
13413
13414
13415 # Check whether --with-oprofile was given.
13416 if test "${with_oprofile+set}" = set; then
13417   withval=$with_oprofile;
13418       USE_OPROFILE=1
13419
13420       case "$withval" in
13421         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13422         no) llvm_cv_oppath=
13423             USE_OPROFILE=0
13424  ;;
13425         *) llvm_cv_oppath="${withval}/lib/oprofile"
13426            CPPFLAGS="-I${withval}/include";;
13427       esac
13428       if test -n "$llvm_cv_oppath" ; then
13429         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13430                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13431 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13432 if test "${ac_cv_search_bfd_init+set}" = set; then
13433   echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435   ac_func_search_save_LIBS=$LIBS
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442
13443 /* Override any GCC internal prototype to avoid an error.
13444    Use char because int might match the return type of a GCC
13445    builtin and then its argument prototype would still apply.  */
13446 #ifdef __cplusplus
13447 extern "C"
13448 #endif
13449 char bfd_init ();
13450 int
13451 main ()
13452 {
13453 return bfd_init ();
13454   ;
13455   return 0;
13456 }
13457 _ACEOF
13458 for ac_lib in '' bfd; do
13459   if test -z "$ac_lib"; then
13460     ac_res="none required"
13461   else
13462     ac_res=-l$ac_lib
13463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13464   fi
13465   rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_link") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } &&
13479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13480   { (case "(($ac_try" in
13481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482   *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485   (eval "$ac_try") 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); }; } &&
13489          { ac_try='test -s conftest$ac_exeext'
13490   { (case "(($ac_try" in
13491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492   *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495   (eval "$ac_try") 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; }; then
13499   ac_cv_search_bfd_init=$ac_res
13500 else
13501   echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504
13505 fi
13506
13507 rm -f core conftest.err conftest.$ac_objext \
13508       conftest$ac_exeext
13509   if test "${ac_cv_search_bfd_init+set}" = set; then
13510   break
13511 fi
13512 done
13513 if test "${ac_cv_search_bfd_init+set}" = set; then
13514   :
13515 else
13516   ac_cv_search_bfd_init=no
13517 fi
13518 rm conftest.$ac_ext
13519 LIBS=$ac_func_search_save_LIBS
13520 fi
13521 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13522 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13523 ac_res=$ac_cv_search_bfd_init
13524 if test "$ac_res" != no; then
13525   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13526
13527 fi
13528
13529         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13530 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13531 if test "${ac_cv_search_op_open_agent+set}" = set; then
13532   echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534   ac_func_search_save_LIBS=$LIBS
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h.  */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h.  */
13541
13542 /* Override any GCC internal prototype to avoid an error.
13543    Use char because int might match the return type of a GCC
13544    builtin and then its argument prototype would still apply.  */
13545 #ifdef __cplusplus
13546 extern "C"
13547 #endif
13548 char op_open_agent ();
13549 int
13550 main ()
13551 {
13552 return op_open_agent ();
13553   ;
13554   return 0;
13555 }
13556 _ACEOF
13557 for ac_lib in '' opagent; do
13558   if test -z "$ac_lib"; then
13559     ac_res="none required"
13560   else
13561     ac_res=-l$ac_lib
13562     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13563   fi
13564   rm -f conftest.$ac_objext conftest$ac_exeext
13565 if { (ac_try="$ac_link"
13566 case "(($ac_try" in
13567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568   *) ac_try_echo=$ac_try;;
13569 esac
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571   (eval "$ac_link") 2>conftest.er1
13572   ac_status=$?
13573   grep -v '^ *+' conftest.er1 >conftest.err
13574   rm -f conftest.er1
13575   cat conftest.err >&5
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } &&
13578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13579   { (case "(($ac_try" in
13580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581   *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584   (eval "$ac_try") 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; } &&
13588          { ac_try='test -s conftest$ac_exeext'
13589   { (case "(($ac_try" in
13590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591   *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594   (eval "$ac_try") 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; }; then
13598   ac_cv_search_op_open_agent=$ac_res
13599 else
13600   echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603
13604 fi
13605
13606 rm -f core conftest.err conftest.$ac_objext \
13607       conftest$ac_exeext
13608   if test "${ac_cv_search_op_open_agent+set}" = set; then
13609   break
13610 fi
13611 done
13612 if test "${ac_cv_search_op_open_agent+set}" = set; then
13613   :
13614 else
13615   ac_cv_search_op_open_agent=no
13616 fi
13617 rm conftest.$ac_ext
13618 LIBS=$ac_func_search_save_LIBS
13619 fi
13620 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13621 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13622 ac_res=$ac_cv_search_op_open_agent
13623 if test "$ac_res" != no; then
13624   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13625
13626 else
13627
13628           echo "Error! You need to have libopagent around."
13629           exit -1
13630
13631 fi
13632
13633         if test "${ac_cv_header_opagent_h+set}" = set; then
13634   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13635 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13636 if test "${ac_cv_header_opagent_h+set}" = set; then
13637   echo $ECHO_N "(cached) $ECHO_C" >&6
13638 fi
13639 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13640 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13641 else
13642   # Is the header compilable?
13643 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13644 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
13652 #include <opagent.h>
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (ac_try="$ac_compile"
13656 case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661   (eval "$ac_compile") 2>conftest.er1
13662   ac_status=$?
13663   grep -v '^ *+' conftest.er1 >conftest.err
13664   rm -f conftest.er1
13665   cat conftest.err >&5
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); } &&
13668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669   { (case "(($ac_try" in
13670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671   *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674   (eval "$ac_try") 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; } &&
13678          { ac_try='test -s conftest.$ac_objext'
13679   { (case "(($ac_try" in
13680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681   *) ac_try_echo=$ac_try;;
13682 esac
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684   (eval "$ac_try") 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688   ac_header_compiler=yes
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693         ac_header_compiler=no
13694 fi
13695
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13698 echo "${ECHO_T}$ac_header_compiler" >&6; }
13699
13700 # Is the header present?
13701 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13702 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 #include <opagent.h>
13710 _ACEOF
13711 if { (ac_try="$ac_cpp conftest.$ac_ext"
13712 case "(($ac_try" in
13713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714   *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13718   ac_status=$?
13719   grep -v '^ *+' conftest.er1 >conftest.err
13720   rm -f conftest.er1
13721   cat conftest.err >&5
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); } >/dev/null; then
13724   if test -s conftest.err; then
13725     ac_cpp_err=$ac_c_preproc_warn_flag
13726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13727   else
13728     ac_cpp_err=
13729   fi
13730 else
13731   ac_cpp_err=yes
13732 fi
13733 if test -z "$ac_cpp_err"; then
13734   ac_header_preproc=yes
13735 else
13736   echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739   ac_header_preproc=no
13740 fi
13741
13742 rm -f conftest.err conftest.$ac_ext
13743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13744 echo "${ECHO_T}$ac_header_preproc" >&6; }
13745
13746 # So?  What about this header?
13747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13748   yes:no: )
13749     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13750 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13751     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13752 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13753     ac_header_preproc=yes
13754     ;;
13755   no:yes:* )
13756     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13757 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13758     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13759 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13760     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13761 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13762     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13763 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13764     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13765 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13766     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13767 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13768     ( cat <<\_ASBOX
13769 ## ------------------------------ ##
13770 ## Report this to bugs@yourdomain ##
13771 ## ------------------------------ ##
13772 _ASBOX
13773      ) | sed "s/^/$as_me: WARNING:     /" >&2
13774     ;;
13775 esac
13776 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13777 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13778 if test "${ac_cv_header_opagent_h+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   ac_cv_header_opagent_h=$ac_header_preproc
13782 fi
13783 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13785
13786 fi
13787 if test $ac_cv_header_opagent_h = yes; then
13788   :
13789 else
13790
13791           echo "Error! You need to have opagent.h around."
13792           exit -1
13793
13794 fi
13795
13796
13797       fi
13798
13799 else
13800
13801       USE_OPROFILE=0
13802
13803
13804 fi
13805
13806
13807 cat >>confdefs.h <<_ACEOF
13808 #define USE_OPROFILE $USE_OPROFILE
13809 _ACEOF
13810
13811
13812
13813
13814
13815
13816
13817
13818 ac_header_dirent=no
13819 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13820   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13821 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13822 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13824   echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826   cat >conftest.$ac_ext <<_ACEOF
13827 /* confdefs.h.  */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h.  */
13832 #include <sys/types.h>
13833 #include <$ac_hdr>
13834
13835 int
13836 main ()
13837 {
13838 if ((DIR *) 0)
13839 return 0;
13840   ;
13841   return 0;
13842 }
13843 _ACEOF
13844 rm -f conftest.$ac_objext
13845 if { (ac_try="$ac_compile"
13846 case "(($ac_try" in
13847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848   *) ac_try_echo=$ac_try;;
13849 esac
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851   (eval "$ac_compile") 2>conftest.er1
13852   ac_status=$?
13853   grep -v '^ *+' conftest.er1 >conftest.err
13854   rm -f conftest.er1
13855   cat conftest.err >&5
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); } &&
13858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13859   { (case "(($ac_try" in
13860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861   *) ac_try_echo=$ac_try;;
13862 esac
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864   (eval "$ac_try") 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; } &&
13868          { ac_try='test -s conftest.$ac_objext'
13869   { (case "(($ac_try" in
13870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871   *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874   (eval "$ac_try") 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); }; }; then
13878   eval "$as_ac_Header=yes"
13879 else
13880   echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13882
13883         eval "$as_ac_Header=no"
13884 fi
13885
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 fi
13888 ac_res=`eval echo '${'$as_ac_Header'}'`
13889                { echo "$as_me:$LINENO: result: $ac_res" >&5
13890 echo "${ECHO_T}$ac_res" >&6; }
13891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13892   cat >>confdefs.h <<_ACEOF
13893 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13894 _ACEOF
13895
13896 ac_header_dirent=$ac_hdr; break
13897 fi
13898
13899 done
13900 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13901 if test $ac_header_dirent = dirent.h; then
13902   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13903 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13904 if test "${ac_cv_search_opendir+set}" = set; then
13905   echo $ECHO_N "(cached) $ECHO_C" >&6
13906 else
13907   ac_func_search_save_LIBS=$LIBS
13908 cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914
13915 /* Override any GCC internal prototype to avoid an error.
13916    Use char because int might match the return type of a GCC
13917    builtin and then its argument prototype would still apply.  */
13918 #ifdef __cplusplus
13919 extern "C"
13920 #endif
13921 char opendir ();
13922 int
13923 main ()
13924 {
13925 return opendir ();
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 for ac_lib in '' dir; do
13931   if test -z "$ac_lib"; then
13932     ac_res="none required"
13933   else
13934     ac_res=-l$ac_lib
13935     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13936   fi
13937   rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (ac_try="$ac_link"
13939 case "(($ac_try" in
13940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941   *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944   (eval "$ac_link") 2>conftest.er1
13945   ac_status=$?
13946   grep -v '^ *+' conftest.er1 >conftest.err
13947   rm -f conftest.er1
13948   cat conftest.err >&5
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } &&
13951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13952   { (case "(($ac_try" in
13953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954   *) ac_try_echo=$ac_try;;
13955 esac
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957   (eval "$ac_try") 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); }; } &&
13961          { ac_try='test -s conftest$ac_exeext'
13962   { (case "(($ac_try" in
13963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964   *) ac_try_echo=$ac_try;;
13965 esac
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967   (eval "$ac_try") 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   ac_cv_search_opendir=$ac_res
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976
13977 fi
13978
13979 rm -f core conftest.err conftest.$ac_objext \
13980       conftest$ac_exeext
13981   if test "${ac_cv_search_opendir+set}" = set; then
13982   break
13983 fi
13984 done
13985 if test "${ac_cv_search_opendir+set}" = set; then
13986   :
13987 else
13988   ac_cv_search_opendir=no
13989 fi
13990 rm conftest.$ac_ext
13991 LIBS=$ac_func_search_save_LIBS
13992 fi
13993 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13994 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13995 ac_res=$ac_cv_search_opendir
13996 if test "$ac_res" != no; then
13997   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13998
13999 fi
14000
14001 else
14002   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14004 if test "${ac_cv_search_opendir+set}" = set; then
14005   echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007   ac_func_search_save_LIBS=$LIBS
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014
14015 /* Override any GCC internal prototype to avoid an error.
14016    Use char because int might match the return type of a GCC
14017    builtin and then its argument prototype would still apply.  */
14018 #ifdef __cplusplus
14019 extern "C"
14020 #endif
14021 char opendir ();
14022 int
14023 main ()
14024 {
14025 return opendir ();
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 for ac_lib in '' x; do
14031   if test -z "$ac_lib"; then
14032     ac_res="none required"
14033   else
14034     ac_res=-l$ac_lib
14035     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14036   fi
14037   rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (ac_try="$ac_link"
14039 case "(($ac_try" in
14040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041   *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044   (eval "$ac_link") 2>conftest.er1
14045   ac_status=$?
14046   grep -v '^ *+' conftest.er1 >conftest.err
14047   rm -f conftest.er1
14048   cat conftest.err >&5
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052   { (case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_try") 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); }; } &&
14061          { ac_try='test -s conftest$ac_exeext'
14062   { (case "(($ac_try" in
14063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064   *) ac_try_echo=$ac_try;;
14065 esac
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067   (eval "$ac_try") 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071   ac_cv_search_opendir=$ac_res
14072 else
14073   echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076
14077 fi
14078
14079 rm -f core conftest.err conftest.$ac_objext \
14080       conftest$ac_exeext
14081   if test "${ac_cv_search_opendir+set}" = set; then
14082   break
14083 fi
14084 done
14085 if test "${ac_cv_search_opendir+set}" = set; then
14086   :
14087 else
14088   ac_cv_search_opendir=no
14089 fi
14090 rm conftest.$ac_ext
14091 LIBS=$ac_func_search_save_LIBS
14092 fi
14093 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14094 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14095 ac_res=$ac_cv_search_opendir
14096 if test "$ac_res" != no; then
14097   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14098
14099 fi
14100
14101 fi
14102
14103 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14104 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14105 if test "${ac_cv_header_mmap_anon+set}" = set; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108    ac_ext=c
14109 ac_cpp='$CPP $CPPFLAGS'
14110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14113
14114   cat >conftest.$ac_ext <<_ACEOF
14115 /* confdefs.h.  */
14116 _ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h.  */
14120 #include <sys/mman.h>
14121 #include <unistd.h>
14122 #include <fcntl.h>
14123 int
14124 main ()
14125 {
14126 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14127   ;
14128   return 0;
14129 }
14130 _ACEOF
14131 rm -f conftest.$ac_objext
14132 if { (ac_try="$ac_compile"
14133 case "(($ac_try" in
14134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135   *) ac_try_echo=$ac_try;;
14136 esac
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138   (eval "$ac_compile") 2>conftest.er1
14139   ac_status=$?
14140   grep -v '^ *+' conftest.er1 >conftest.err
14141   rm -f conftest.er1
14142   cat conftest.err >&5
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); } &&
14145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14146   { (case "(($ac_try" in
14147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148   *) ac_try_echo=$ac_try;;
14149 esac
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151   (eval "$ac_try") 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; } &&
14155          { ac_try='test -s conftest.$ac_objext'
14156   { (case "(($ac_try" in
14157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158   *) ac_try_echo=$ac_try;;
14159 esac
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161   (eval "$ac_try") 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; }; then
14165   ac_cv_header_mmap_anon=yes
14166 else
14167   echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14169
14170         ac_cv_header_mmap_anon=no
14171 fi
14172
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174   ac_ext=c
14175 ac_cpp='$CPP $CPPFLAGS'
14176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14179
14180
14181 fi
14182 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14183 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14184 if test "$ac_cv_header_mmap_anon" = yes; then
14185
14186 cat >>confdefs.h <<\_ACEOF
14187 #define HAVE_MMAP_ANONYMOUS 1
14188 _ACEOF
14189
14190 fi
14191
14192 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14193 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14194 if test "${ac_cv_header_stat_broken+set}" = set; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h.  */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h.  */
14203 #include <sys/types.h>
14204 #include <sys/stat.h>
14205
14206 #if defined S_ISBLK && defined S_IFDIR
14207 # if S_ISBLK (S_IFDIR)
14208 You lose.
14209 # endif
14210 #endif
14211
14212 #if defined S_ISBLK && defined S_IFCHR
14213 # if S_ISBLK (S_IFCHR)
14214 You lose.
14215 # endif
14216 #endif
14217
14218 #if defined S_ISLNK && defined S_IFREG
14219 # if S_ISLNK (S_IFREG)
14220 You lose.
14221 # endif
14222 #endif
14223
14224 #if defined S_ISSOCK && defined S_IFREG
14225 # if S_ISSOCK (S_IFREG)
14226 You lose.
14227 # endif
14228 #endif
14229
14230 _ACEOF
14231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14232   $EGREP "You lose" >/dev/null 2>&1; then
14233   ac_cv_header_stat_broken=yes
14234 else
14235   ac_cv_header_stat_broken=no
14236 fi
14237 rm -f conftest*
14238
14239 fi
14240 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14241 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14242 if test $ac_cv_header_stat_broken = yes; then
14243
14244 cat >>confdefs.h <<\_ACEOF
14245 #define STAT_MACROS_BROKEN 1
14246 _ACEOF
14247
14248 fi
14249
14250 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14251 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14252 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14253   echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255   cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h.  */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h.  */
14261 #include <sys/types.h>
14262 #include <sys/wait.h>
14263 #ifndef WEXITSTATUS
14264 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14265 #endif
14266 #ifndef WIFEXITED
14267 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14268 #endif
14269
14270 int
14271 main ()
14272 {
14273   int s;
14274   wait (&s);
14275   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14276   ;
14277   return 0;
14278 }
14279 _ACEOF
14280 rm -f conftest.$ac_objext
14281 if { (ac_try="$ac_compile"
14282 case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_compile") 2>conftest.er1
14288   ac_status=$?
14289   grep -v '^ *+' conftest.er1 >conftest.err
14290   rm -f conftest.er1
14291   cat conftest.err >&5
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); } &&
14294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14295   { (case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_try") 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); }; } &&
14304          { ac_try='test -s conftest.$ac_objext'
14305   { (case "(($ac_try" in
14306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307   *) ac_try_echo=$ac_try;;
14308 esac
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310   (eval "$ac_try") 2>&5
14311   ac_status=$?
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); }; }; then
14314   ac_cv_header_sys_wait_h=yes
14315 else
14316   echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319         ac_cv_header_sys_wait_h=no
14320 fi
14321
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 fi
14324 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14325 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14326 if test $ac_cv_header_sys_wait_h = yes; then
14327
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_SYS_WAIT_H 1
14330 _ACEOF
14331
14332 fi
14333
14334 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14335 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14336 if test "${ac_cv_header_time+set}" = set; then
14337   echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339   cat >conftest.$ac_ext <<_ACEOF
14340 /* confdefs.h.  */
14341 _ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h.  */
14345 #include <sys/types.h>
14346 #include <sys/time.h>
14347 #include <time.h>
14348
14349 int
14350 main ()
14351 {
14352 if ((struct tm *) 0)
14353 return 0;
14354   ;
14355   return 0;
14356 }
14357 _ACEOF
14358 rm -f conftest.$ac_objext
14359 if { (ac_try="$ac_compile"
14360 case "(($ac_try" in
14361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362   *) ac_try_echo=$ac_try;;
14363 esac
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365   (eval "$ac_compile") 2>conftest.er1
14366   ac_status=$?
14367   grep -v '^ *+' conftest.er1 >conftest.err
14368   rm -f conftest.er1
14369   cat conftest.err >&5
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); } &&
14372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14373   { (case "(($ac_try" in
14374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375   *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378   (eval "$ac_try") 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; } &&
14382          { ac_try='test -s conftest.$ac_objext'
14383   { (case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_try") 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; }; then
14392   ac_cv_header_time=yes
14393 else
14394   echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397         ac_cv_header_time=no
14398 fi
14399
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 fi
14402 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14403 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14404 if test $ac_cv_header_time = yes; then
14405
14406 cat >>confdefs.h <<\_ACEOF
14407 #define TIME_WITH_SYS_TIME 1
14408 _ACEOF
14409
14410 fi
14411
14412
14413
14414
14415
14416
14417
14418
14419 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14420 do
14421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 fi
14428 ac_res=`eval echo '${'$as_ac_Header'}'`
14429                { echo "$as_me:$LINENO: result: $ac_res" >&5
14430 echo "${ECHO_T}$ac_res" >&6; }
14431 else
14432   # Is the header compilable?
14433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441 $ac_includes_default
14442 #include <$ac_header>
14443 _ACEOF
14444 rm -f conftest.$ac_objext
14445 if { (ac_try="$ac_compile"
14446 case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_compile") 2>conftest.er1
14452   ac_status=$?
14453   grep -v '^ *+' conftest.er1 >conftest.err
14454   rm -f conftest.er1
14455   cat conftest.err >&5
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } &&
14458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14459   { (case "(($ac_try" in
14460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461   *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464   (eval "$ac_try") 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; } &&
14468          { ac_try='test -s conftest.$ac_objext'
14469   { (case "(($ac_try" in
14470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471   *) ac_try_echo=$ac_try;;
14472 esac
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474   (eval "$ac_try") 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); }; }; then
14478   ac_header_compiler=yes
14479 else
14480   echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483         ac_header_compiler=no
14484 fi
14485
14486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14488 echo "${ECHO_T}$ac_header_compiler" >&6; }
14489
14490 # Is the header present?
14491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 #include <$ac_header>
14500 _ACEOF
14501 if { (ac_try="$ac_cpp conftest.$ac_ext"
14502 case "(($ac_try" in
14503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504   *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14508   ac_status=$?
14509   grep -v '^ *+' conftest.er1 >conftest.err
14510   rm -f conftest.er1
14511   cat conftest.err >&5
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); } >/dev/null; then
14514   if test -s conftest.err; then
14515     ac_cpp_err=$ac_c_preproc_warn_flag
14516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14517   else
14518     ac_cpp_err=
14519   fi
14520 else
14521   ac_cpp_err=yes
14522 fi
14523 if test -z "$ac_cpp_err"; then
14524   ac_header_preproc=yes
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529   ac_header_preproc=no
14530 fi
14531
14532 rm -f conftest.err conftest.$ac_ext
14533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14534 echo "${ECHO_T}$ac_header_preproc" >&6; }
14535
14536 # So?  What about this header?
14537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14538   yes:no: )
14539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14543     ac_header_preproc=yes
14544     ;;
14545   no:yes:* )
14546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14558     ( cat <<\_ASBOX
14559 ## ------------------------------ ##
14560 ## Report this to bugs@yourdomain ##
14561 ## ------------------------------ ##
14562 _ASBOX
14563      ) | sed "s/^/$as_me: WARNING:     /" >&2
14564     ;;
14565 esac
14566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   eval "$as_ac_Header=\$ac_header_preproc"
14572 fi
14573 ac_res=`eval echo '${'$as_ac_Header'}'`
14574                { echo "$as_me:$LINENO: result: $ac_res" >&5
14575 echo "${ECHO_T}$ac_res" >&6; }
14576
14577 fi
14578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14579   cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14581 _ACEOF
14582
14583 fi
14584
14585 done
14586
14587
14588
14589
14590
14591
14592
14593 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14594 do
14595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14597   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14600   echo $ECHO_N "(cached) $ECHO_C" >&6
14601 fi
14602 ac_res=`eval echo '${'$as_ac_Header'}'`
14603                { echo "$as_me:$LINENO: result: $ac_res" >&5
14604 echo "${ECHO_T}$ac_res" >&6; }
14605 else
14606   # Is the header compilable?
14607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14609 cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615 $ac_includes_default
14616 #include <$ac_header>
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (ac_try="$ac_compile"
14620 case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625   (eval "$ac_compile") 2>conftest.er1
14626   ac_status=$?
14627   grep -v '^ *+' conftest.er1 >conftest.err
14628   rm -f conftest.er1
14629   cat conftest.err >&5
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14633   { (case "(($ac_try" in
14634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635   *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638   (eval "$ac_try") 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; } &&
14642          { ac_try='test -s conftest.$ac_objext'
14643   { (case "(($ac_try" in
14644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645   *) ac_try_echo=$ac_try;;
14646 esac
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648   (eval "$ac_try") 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652   ac_header_compiler=yes
14653 else
14654   echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657         ac_header_compiler=no
14658 fi
14659
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14662 echo "${ECHO_T}$ac_header_compiler" >&6; }
14663
14664 # Is the header present?
14665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h.  */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h.  */
14673 #include <$ac_header>
14674 _ACEOF
14675 if { (ac_try="$ac_cpp conftest.$ac_ext"
14676 case "(($ac_try" in
14677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678   *) ac_try_echo=$ac_try;;
14679 esac
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14682   ac_status=$?
14683   grep -v '^ *+' conftest.er1 >conftest.err
14684   rm -f conftest.er1
14685   cat conftest.err >&5
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); } >/dev/null; then
14688   if test -s conftest.err; then
14689     ac_cpp_err=$ac_c_preproc_warn_flag
14690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14691   else
14692     ac_cpp_err=
14693   fi
14694 else
14695   ac_cpp_err=yes
14696 fi
14697 if test -z "$ac_cpp_err"; then
14698   ac_header_preproc=yes
14699 else
14700   echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703   ac_header_preproc=no
14704 fi
14705
14706 rm -f conftest.err conftest.$ac_ext
14707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14708 echo "${ECHO_T}$ac_header_preproc" >&6; }
14709
14710 # So?  What about this header?
14711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14712   yes:no: )
14713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14717     ac_header_preproc=yes
14718     ;;
14719   no:yes:* )
14720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14732     ( cat <<\_ASBOX
14733 ## ------------------------------ ##
14734 ## Report this to bugs@yourdomain ##
14735 ## ------------------------------ ##
14736 _ASBOX
14737      ) | sed "s/^/$as_me: WARNING:     /" >&2
14738     ;;
14739 esac
14740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745   eval "$as_ac_Header=\$ac_header_preproc"
14746 fi
14747 ac_res=`eval echo '${'$as_ac_Header'}'`
14748                { echo "$as_me:$LINENO: result: $ac_res" >&5
14749 echo "${ECHO_T}$ac_res" >&6; }
14750
14751 fi
14752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14753   cat >>confdefs.h <<_ACEOF
14754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14755 _ACEOF
14756
14757 fi
14758
14759 done
14760
14761
14762
14763 for ac_header in utime.h windows.h
14764 do
14765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14770   echo $ECHO_N "(cached) $ECHO_C" >&6
14771 fi
14772 ac_res=`eval echo '${'$as_ac_Header'}'`
14773                { echo "$as_me:$LINENO: result: $ac_res" >&5
14774 echo "${ECHO_T}$ac_res" >&6; }
14775 else
14776   # Is the header compilable?
14777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h.  */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h.  */
14785 $ac_includes_default
14786 #include <$ac_header>
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792   *) ac_try_echo=$ac_try;;
14793 esac
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795   (eval "$ac_compile") 2>conftest.er1
14796   ac_status=$?
14797   grep -v '^ *+' conftest.er1 >conftest.err
14798   rm -f conftest.er1
14799   cat conftest.err >&5
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); } &&
14802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14803   { (case "(($ac_try" in
14804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805   *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808   (eval "$ac_try") 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); }; } &&
14812          { ac_try='test -s conftest.$ac_objext'
14813   { (case "(($ac_try" in
14814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815   *) ac_try_echo=$ac_try;;
14816 esac
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818   (eval "$ac_try") 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; }; then
14822   ac_header_compiler=yes
14823 else
14824   echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14826
14827         ac_header_compiler=no
14828 fi
14829
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14832 echo "${ECHO_T}$ac_header_compiler" >&6; }
14833
14834 # Is the header present?
14835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14837 cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843 #include <$ac_header>
14844 _ACEOF
14845 if { (ac_try="$ac_cpp conftest.$ac_ext"
14846 case "(($ac_try" in
14847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848   *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14852   ac_status=$?
14853   grep -v '^ *+' conftest.er1 >conftest.err
14854   rm -f conftest.er1
14855   cat conftest.err >&5
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } >/dev/null; then
14858   if test -s conftest.err; then
14859     ac_cpp_err=$ac_c_preproc_warn_flag
14860     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14861   else
14862     ac_cpp_err=
14863   fi
14864 else
14865   ac_cpp_err=yes
14866 fi
14867 if test -z "$ac_cpp_err"; then
14868   ac_header_preproc=yes
14869 else
14870   echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14872
14873   ac_header_preproc=no
14874 fi
14875
14876 rm -f conftest.err conftest.$ac_ext
14877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14878 echo "${ECHO_T}$ac_header_preproc" >&6; }
14879
14880 # So?  What about this header?
14881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14882   yes:no: )
14883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14887     ac_header_preproc=yes
14888     ;;
14889   no:yes:* )
14890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14902     ( cat <<\_ASBOX
14903 ## ------------------------------ ##
14904 ## Report this to bugs@yourdomain ##
14905 ## ------------------------------ ##
14906 _ASBOX
14907      ) | sed "s/^/$as_me: WARNING:     /" >&2
14908     ;;
14909 esac
14910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14913   echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915   eval "$as_ac_Header=\$ac_header_preproc"
14916 fi
14917 ac_res=`eval echo '${'$as_ac_Header'}'`
14918                { echo "$as_me:$LINENO: result: $ac_res" >&5
14919 echo "${ECHO_T}$ac_res" >&6; }
14920
14921 fi
14922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14923   cat >>confdefs.h <<_ACEOF
14924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14925 _ACEOF
14926
14927 fi
14928
14929 done
14930
14931
14932
14933
14934
14935
14936 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14937 do
14938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 fi
14945 ac_res=`eval echo '${'$as_ac_Header'}'`
14946                { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14948 else
14949   # Is the header compilable?
14950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958 $ac_includes_default
14959 #include <$ac_header>
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_compile") 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } &&
14975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14976   { (case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981   (eval "$ac_try") 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; } &&
14985          { ac_try='test -s conftest.$ac_objext'
14986   { (case "(($ac_try" in
14987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988   *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991   (eval "$ac_try") 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995   ac_header_compiler=yes
14996 else
14997   echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000         ac_header_compiler=no
15001 fi
15002
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6; }
15006
15007 # Is the header present?
15008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h.  */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h.  */
15016 #include <$ac_header>
15017 _ACEOF
15018 if { (ac_try="$ac_cpp conftest.$ac_ext"
15019 case "(($ac_try" in
15020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021   *) ac_try_echo=$ac_try;;
15022 esac
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } >/dev/null; then
15031   if test -s conftest.err; then
15032     ac_cpp_err=$ac_c_preproc_warn_flag
15033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15034   else
15035     ac_cpp_err=
15036   fi
15037 else
15038   ac_cpp_err=yes
15039 fi
15040 if test -z "$ac_cpp_err"; then
15041   ac_header_preproc=yes
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15045
15046   ac_header_preproc=no
15047 fi
15048
15049 rm -f conftest.err conftest.$ac_ext
15050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15051 echo "${ECHO_T}$ac_header_preproc" >&6; }
15052
15053 # So?  What about this header?
15054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15055   yes:no: )
15056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15060     ac_header_preproc=yes
15061     ;;
15062   no:yes:* )
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15075     ( cat <<\_ASBOX
15076 ## ------------------------------ ##
15077 ## Report this to bugs@yourdomain ##
15078 ## ------------------------------ ##
15079 _ASBOX
15080      ) | sed "s/^/$as_me: WARNING:     /" >&2
15081     ;;
15082 esac
15083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086   echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088   eval "$as_ac_Header=\$ac_header_preproc"
15089 fi
15090 ac_res=`eval echo '${'$as_ac_Header'}'`
15091                { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15093
15094 fi
15095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15096   cat >>confdefs.h <<_ACEOF
15097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15098 _ACEOF
15099
15100 fi
15101
15102 done
15103
15104
15105
15106
15107
15108 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15109 do
15110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 fi
15117 ac_res=`eval echo '${'$as_ac_Header'}'`
15118                { echo "$as_me:$LINENO: result: $ac_res" >&5
15119 echo "${ECHO_T}$ac_res" >&6; }
15120 else
15121   # Is the header compilable?
15122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h.  */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h.  */
15130 $ac_includes_default
15131 #include <$ac_header>
15132 _ACEOF
15133 rm -f conftest.$ac_objext
15134 if { (ac_try="$ac_compile"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_compile") 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148   { (case "(($ac_try" in
15149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150   *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153   (eval "$ac_try") 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; } &&
15157          { ac_try='test -s conftest.$ac_objext'
15158   { (case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_try") 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167   ac_header_compiler=yes
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172         ac_header_compiler=no
15173 fi
15174
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15177 echo "${ECHO_T}$ac_header_compiler" >&6; }
15178
15179 # Is the header present?
15180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188 #include <$ac_header>
15189 _ACEOF
15190 if { (ac_try="$ac_cpp conftest.$ac_ext"
15191 case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15197   ac_status=$?
15198   grep -v '^ *+' conftest.er1 >conftest.err
15199   rm -f conftest.er1
15200   cat conftest.err >&5
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } >/dev/null; then
15203   if test -s conftest.err; then
15204     ac_cpp_err=$ac_c_preproc_warn_flag
15205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15206   else
15207     ac_cpp_err=
15208   fi
15209 else
15210   ac_cpp_err=yes
15211 fi
15212 if test -z "$ac_cpp_err"; then
15213   ac_header_preproc=yes
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218   ac_header_preproc=no
15219 fi
15220
15221 rm -f conftest.err conftest.$ac_ext
15222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223 echo "${ECHO_T}$ac_header_preproc" >&6; }
15224
15225 # So?  What about this header?
15226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15227   yes:no: )
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15232     ac_header_preproc=yes
15233     ;;
15234   no:yes:* )
15235     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15238 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15242 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15245     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15247     ( cat <<\_ASBOX
15248 ## ------------------------------ ##
15249 ## Report this to bugs@yourdomain ##
15250 ## ------------------------------ ##
15251 _ASBOX
15252      ) | sed "s/^/$as_me: WARNING:     /" >&2
15253     ;;
15254 esac
15255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   eval "$as_ac_Header=\$ac_header_preproc"
15261 fi
15262 ac_res=`eval echo '${'$as_ac_Header'}'`
15263                { echo "$as_me:$LINENO: result: $ac_res" >&5
15264 echo "${ECHO_T}$ac_res" >&6; }
15265
15266 fi
15267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15268   cat >>confdefs.h <<_ACEOF
15269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15270 _ACEOF
15271
15272 fi
15273
15274 done
15275
15276
15277 for ac_header in valgrind/valgrind.h
15278 do
15279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 fi
15286 ac_res=`eval echo '${'$as_ac_Header'}'`
15287                { echo "$as_me:$LINENO: result: $ac_res" >&5
15288 echo "${ECHO_T}$ac_res" >&6; }
15289 else
15290   # Is the header compilable?
15291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299 $ac_includes_default
15300 #include <$ac_header>
15301 _ACEOF
15302 rm -f conftest.$ac_objext
15303 if { (ac_try="$ac_compile"
15304 case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_compile") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317   { (case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_try") 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); }; } &&
15326          { ac_try='test -s conftest.$ac_objext'
15327   { (case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_try") 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; }; then
15336   ac_header_compiler=yes
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341         ac_header_compiler=no
15342 fi
15343
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15346 echo "${ECHO_T}$ac_header_compiler" >&6; }
15347
15348 # Is the header present?
15349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h.  */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h.  */
15357 #include <$ac_header>
15358 _ACEOF
15359 if { (ac_try="$ac_cpp conftest.$ac_ext"
15360 case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15366   ac_status=$?
15367   grep -v '^ *+' conftest.er1 >conftest.err
15368   rm -f conftest.er1
15369   cat conftest.err >&5
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } >/dev/null; then
15372   if test -s conftest.err; then
15373     ac_cpp_err=$ac_c_preproc_warn_flag
15374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15375   else
15376     ac_cpp_err=
15377   fi
15378 else
15379   ac_cpp_err=yes
15380 fi
15381 if test -z "$ac_cpp_err"; then
15382   ac_header_preproc=yes
15383 else
15384   echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387   ac_header_preproc=no
15388 fi
15389
15390 rm -f conftest.err conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15392 echo "${ECHO_T}$ac_header_preproc" >&6; }
15393
15394 # So?  What about this header?
15395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15396   yes:no: )
15397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15401     ac_header_preproc=yes
15402     ;;
15403   no:yes:* )
15404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15416     ( cat <<\_ASBOX
15417 ## ------------------------------ ##
15418 ## Report this to bugs@yourdomain ##
15419 ## ------------------------------ ##
15420 _ASBOX
15421      ) | sed "s/^/$as_me: WARNING:     /" >&2
15422     ;;
15423 esac
15424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15427   echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429   eval "$as_ac_Header=\$ac_header_preproc"
15430 fi
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432                { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15434
15435 fi
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437   cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15439 _ACEOF
15440
15441 fi
15442
15443 done
15444
15445
15446 for ac_header in fenv.h
15447 do
15448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453   echo $ECHO_N "(cached) $ECHO_C" >&6
15454 fi
15455 ac_res=`eval echo '${'$as_ac_Header'}'`
15456                { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15458 else
15459   # Is the header compilable?
15460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468 $ac_includes_default
15469 #include <$ac_header>
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
15473 case "(($ac_try" in
15474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475   *) ac_try_echo=$ac_try;;
15476 esac
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478   (eval "$ac_compile") 2>conftest.er1
15479   ac_status=$?
15480   grep -v '^ *+' conftest.er1 >conftest.err
15481   rm -f conftest.er1
15482   cat conftest.err >&5
15483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484   (exit $ac_status); } &&
15485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15486   { (case "(($ac_try" in
15487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488   *) ac_try_echo=$ac_try;;
15489 esac
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491   (eval "$ac_try") 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; } &&
15495          { ac_try='test -s conftest.$ac_objext'
15496   { (case "(($ac_try" in
15497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498   *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501   (eval "$ac_try") 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); }; }; then
15505   ac_header_compiler=yes
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510         ac_header_compiler=no
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15515 echo "${ECHO_T}$ac_header_compiler" >&6; }
15516
15517 # Is the header present?
15518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15520 cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h.  */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h.  */
15526 #include <$ac_header>
15527 _ACEOF
15528 if { (ac_try="$ac_cpp conftest.$ac_ext"
15529 case "(($ac_try" in
15530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531   *) ac_try_echo=$ac_try;;
15532 esac
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15535   ac_status=$?
15536   grep -v '^ *+' conftest.er1 >conftest.err
15537   rm -f conftest.er1
15538   cat conftest.err >&5
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); } >/dev/null; then
15541   if test -s conftest.err; then
15542     ac_cpp_err=$ac_c_preproc_warn_flag
15543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15544   else
15545     ac_cpp_err=
15546   fi
15547 else
15548   ac_cpp_err=yes
15549 fi
15550 if test -z "$ac_cpp_err"; then
15551   ac_header_preproc=yes
15552 else
15553   echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15555
15556   ac_header_preproc=no
15557 fi
15558
15559 rm -f conftest.err conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6; }
15562
15563 # So?  What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15565   yes:no: )
15566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570     ac_header_preproc=yes
15571     ;;
15572   no:yes:* )
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15585     ( cat <<\_ASBOX
15586 ## ------------------------------ ##
15587 ## Report this to bugs@yourdomain ##
15588 ## ------------------------------ ##
15589 _ASBOX
15590      ) | sed "s/^/$as_me: WARNING:     /" >&2
15591     ;;
15592 esac
15593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596   echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598   eval "$as_ac_Header=\$ac_header_preproc"
15599 fi
15600 ac_res=`eval echo '${'$as_ac_Header'}'`
15601                { echo "$as_me:$LINENO: result: $ac_res" >&5
15602 echo "${ECHO_T}$ac_res" >&6; }
15603
15604 fi
15605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15606   cat >>confdefs.h <<_ACEOF
15607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608 _ACEOF
15609
15610 fi
15611
15612 done
15613
15614 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15615
15616 for ac_header in pthread.h
15617 do
15618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623   echo $ECHO_N "(cached) $ECHO_C" >&6
15624 fi
15625 ac_res=`eval echo '${'$as_ac_Header'}'`
15626                { echo "$as_me:$LINENO: result: $ac_res" >&5
15627 echo "${ECHO_T}$ac_res" >&6; }
15628 else
15629   # Is the header compilable?
15630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h.  */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h.  */
15638 $ac_includes_default
15639 #include <$ac_header>
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_compile") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } &&
15655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656   { (case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_try") 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest.$ac_objext'
15666   { (case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_try") 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_header_compiler=yes
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680         ac_header_compiler=no
15681 fi
15682
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15685 echo "${ECHO_T}$ac_header_compiler" >&6; }
15686
15687 # Is the header present?
15688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h.  */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h.  */
15696 #include <$ac_header>
15697 _ACEOF
15698 if { (ac_try="$ac_cpp conftest.$ac_ext"
15699 case "(($ac_try" in
15700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701   *) ac_try_echo=$ac_try;;
15702 esac
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15705   ac_status=$?
15706   grep -v '^ *+' conftest.er1 >conftest.err
15707   rm -f conftest.er1
15708   cat conftest.err >&5
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); } >/dev/null; then
15711   if test -s conftest.err; then
15712     ac_cpp_err=$ac_c_preproc_warn_flag
15713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15714   else
15715     ac_cpp_err=
15716   fi
15717 else
15718   ac_cpp_err=yes
15719 fi
15720 if test -z "$ac_cpp_err"; then
15721   ac_header_preproc=yes
15722 else
15723   echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15725
15726   ac_header_preproc=no
15727 fi
15728
15729 rm -f conftest.err conftest.$ac_ext
15730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15731 echo "${ECHO_T}$ac_header_preproc" >&6; }
15732
15733 # So?  What about this header?
15734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15735   yes:no: )
15736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15740     ac_header_preproc=yes
15741     ;;
15742   no:yes:* )
15743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15755     ( cat <<\_ASBOX
15756 ## ------------------------------ ##
15757 ## Report this to bugs@yourdomain ##
15758 ## ------------------------------ ##
15759 _ASBOX
15760      ) | sed "s/^/$as_me: WARNING:     /" >&2
15761     ;;
15762 esac
15763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15766   echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768   eval "$as_ac_Header=\$ac_header_preproc"
15769 fi
15770 ac_res=`eval echo '${'$as_ac_Header'}'`
15771                { echo "$as_me:$LINENO: result: $ac_res" >&5
15772 echo "${ECHO_T}$ac_res" >&6; }
15773
15774 fi
15775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15776   cat >>confdefs.h <<_ACEOF
15777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15778 _ACEOF
15779  HAVE_PTHREAD=1
15780
15781 else
15782   HAVE_PTHREAD=0
15783
15784 fi
15785
15786 done
15787
15788 else
15789   HAVE_PTHREAD=0
15790
15791 fi
15792
15793 if test "$llvm_cv_enable_libffi" = "yes" ; then
15794
15795
15796 for ac_header in ffi.h ffi/ffi.h
15797 do
15798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15803   echo $ECHO_N "(cached) $ECHO_C" >&6
15804 fi
15805 ac_res=`eval echo '${'$as_ac_Header'}'`
15806                { echo "$as_me:$LINENO: result: $ac_res" >&5
15807 echo "${ECHO_T}$ac_res" >&6; }
15808 else
15809   # Is the header compilable?
15810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818 $ac_includes_default
15819 #include <$ac_header>
15820 _ACEOF
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_compile") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } &&
15835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836   { (case "(($ac_try" in
15837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838   *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841   (eval "$ac_try") 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest.$ac_objext'
15846   { (case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_try") 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; }; then
15855   ac_header_compiler=yes
15856 else
15857   echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15859
15860         ac_header_compiler=no
15861 fi
15862
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15865 echo "${ECHO_T}$ac_header_compiler" >&6; }
15866
15867 # Is the header present?
15868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h.  */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h.  */
15876 #include <$ac_header>
15877 _ACEOF
15878 if { (ac_try="$ac_cpp conftest.$ac_ext"
15879 case "(($ac_try" in
15880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881   *) ac_try_echo=$ac_try;;
15882 esac
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15885   ac_status=$?
15886   grep -v '^ *+' conftest.er1 >conftest.err
15887   rm -f conftest.er1
15888   cat conftest.err >&5
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); } >/dev/null; then
15891   if test -s conftest.err; then
15892     ac_cpp_err=$ac_c_preproc_warn_flag
15893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15894   else
15895     ac_cpp_err=
15896   fi
15897 else
15898   ac_cpp_err=yes
15899 fi
15900 if test -z "$ac_cpp_err"; then
15901   ac_header_preproc=yes
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906   ac_header_preproc=no
15907 fi
15908
15909 rm -f conftest.err conftest.$ac_ext
15910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15911 echo "${ECHO_T}$ac_header_preproc" >&6; }
15912
15913 # So?  What about this header?
15914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15915   yes:no: )
15916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15920     ac_header_preproc=yes
15921     ;;
15922   no:yes:* )
15923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15935     ( cat <<\_ASBOX
15936 ## ------------------------------ ##
15937 ## Report this to bugs@yourdomain ##
15938 ## ------------------------------ ##
15939 _ASBOX
15940      ) | sed "s/^/$as_me: WARNING:     /" >&2
15941     ;;
15942 esac
15943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15946   echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948   eval "$as_ac_Header=\$ac_header_preproc"
15949 fi
15950 ac_res=`eval echo '${'$as_ac_Header'}'`
15951                { echo "$as_me:$LINENO: result: $ac_res" >&5
15952 echo "${ECHO_T}$ac_res" >&6; }
15953
15954 fi
15955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15956   cat >>confdefs.h <<_ACEOF
15957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15958 _ACEOF
15959
15960 fi
15961
15962 done
15963
15964 fi
15965
15966
15967 for ac_header in CrashReporterClient.h
15968 do
15969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15971   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15974   echo $ECHO_N "(cached) $ECHO_C" >&6
15975 fi
15976 ac_res=`eval echo '${'$as_ac_Header'}'`
15977                { echo "$as_me:$LINENO: result: $ac_res" >&5
15978 echo "${ECHO_T}$ac_res" >&6; }
15979 else
15980   # Is the header compilable?
15981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15983 cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h.  */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h.  */
15989 $ac_includes_default
15990 #include <$ac_header>
15991 _ACEOF
15992 rm -f conftest.$ac_objext
15993 if { (ac_try="$ac_compile"
15994 case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999   (eval "$ac_compile") 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } &&
16006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16007   { (case "(($ac_try" in
16008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009   *) ac_try_echo=$ac_try;;
16010 esac
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012   (eval "$ac_try") 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); }; } &&
16016          { ac_try='test -s conftest.$ac_objext'
16017   { (case "(($ac_try" in
16018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019   *) ac_try_echo=$ac_try;;
16020 esac
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022   (eval "$ac_try") 2>&5
16023   ac_status=$?
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); }; }; then
16026   ac_header_compiler=yes
16027 else
16028   echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031         ac_header_compiler=no
16032 fi
16033
16034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16036 echo "${ECHO_T}$ac_header_compiler" >&6; }
16037
16038 # Is the header present?
16039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h.  */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h.  */
16047 #include <$ac_header>
16048 _ACEOF
16049 if { (ac_try="$ac_cpp conftest.$ac_ext"
16050 case "(($ac_try" in
16051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052   *) ac_try_echo=$ac_try;;
16053 esac
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } >/dev/null; then
16062   if test -s conftest.err; then
16063     ac_cpp_err=$ac_c_preproc_warn_flag
16064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16065   else
16066     ac_cpp_err=
16067   fi
16068 else
16069   ac_cpp_err=yes
16070 fi
16071 if test -z "$ac_cpp_err"; then
16072   ac_header_preproc=yes
16073 else
16074   echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16076
16077   ac_header_preproc=no
16078 fi
16079
16080 rm -f conftest.err conftest.$ac_ext
16081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16082 echo "${ECHO_T}$ac_header_preproc" >&6; }
16083
16084 # So?  What about this header?
16085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16086   yes:no: )
16087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16091     ac_header_preproc=yes
16092     ;;
16093   no:yes:* )
16094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16106     ( cat <<\_ASBOX
16107 ## ------------------------------ ##
16108 ## Report this to bugs@yourdomain ##
16109 ## ------------------------------ ##
16110 _ASBOX
16111      ) | sed "s/^/$as_me: WARNING:     /" >&2
16112     ;;
16113 esac
16114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16117   echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119   eval "$as_ac_Header=\$ac_header_preproc"
16120 fi
16121 ac_res=`eval echo '${'$as_ac_Header'}'`
16122                { echo "$as_me:$LINENO: result: $ac_res" >&5
16123 echo "${ECHO_T}$ac_res" >&6; }
16124
16125 fi
16126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16127   cat >>confdefs.h <<_ACEOF
16128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16129 _ACEOF
16130
16131 fi
16132
16133 done
16134
16135
16136 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16137 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h.  */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h.  */
16144 extern const char *__crashreporter_info__;
16145       int main() {
16146         __crashreporter_info__ = "test";
16147         return 0;
16148       }
16149
16150 _ACEOF
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (ac_try="$ac_link"
16153 case "(($ac_try" in
16154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155   *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158   (eval "$ac_link") 2>conftest.er1
16159   ac_status=$?
16160   grep -v '^ *+' conftest.er1 >conftest.err
16161   rm -f conftest.er1
16162   cat conftest.err >&5
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); } &&
16165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16166   { (case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171   (eval "$ac_try") 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; } &&
16175          { ac_try='test -s conftest$ac_exeext'
16176   { (case "(($ac_try" in
16177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178   *) ac_try_echo=$ac_try;;
16179 esac
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181   (eval "$ac_try") 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); }; }; then
16185   { echo "$as_me:$LINENO: result: yes" >&5
16186 echo "${ECHO_T}yes" >&6; }
16187
16188 cat >>confdefs.h <<\_ACEOF
16189 #define HAVE_CRASHREPORTER_INFO 1
16190 _ACEOF
16191
16192 else
16193   echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196         { echo "$as_me:$LINENO: result: no" >&5
16197 echo "${ECHO_T}no" >&6; }
16198
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_CRASHREPORTER_INFO 0
16201 _ACEOF
16202
16203 fi
16204
16205 rm -f core conftest.err conftest.$ac_objext \
16206       conftest$ac_exeext conftest.$ac_ext
16207
16208
16209
16210
16211   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16212 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16213 if test "${ac_cv_huge_val_sanity+set}" = set; then
16214   echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216
16217     ac_ext=cpp
16218 ac_cpp='$CXXCPP $CPPFLAGS'
16219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16222
16223     ac_save_CXXFLAGS=$CXXFLAGS
16224     CXXFLAGS="$CXXFLAGS -pedantic"
16225     if test "$cross_compiling" = yes; then
16226   ac_cv_huge_val_sanity=yes
16227 else
16228   cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h.  */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h.  */
16234 #include <math.h>
16235 int
16236 main ()
16237 {
16238 double x = HUGE_VAL; return x != x;
16239   ;
16240   return 0;
16241 }
16242 _ACEOF
16243 rm -f conftest$ac_exeext
16244 if { (ac_try="$ac_link"
16245 case "(($ac_try" in
16246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247   *) ac_try_echo=$ac_try;;
16248 esac
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250   (eval "$ac_link") 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16254   { (case "(($ac_try" in
16255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256   *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259   (eval "$ac_try") 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); }; }; then
16263   ac_cv_huge_val_sanity=yes
16264 else
16265   echo "$as_me: program exited with status $ac_status" >&5
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 ( exit $ac_status )
16270 ac_cv_huge_val_sanity=no
16271 fi
16272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16273 fi
16274
16275
16276     CXXFLAGS=$ac_save_CXXFLAGS
16277     ac_ext=c
16278 ac_cpp='$CPP $CPPFLAGS'
16279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16282
16283
16284 fi
16285 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16286 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16287   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16288
16289
16290 { echo "$as_me:$LINENO: checking for pid_t" >&5
16291 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16292 if test "${ac_cv_type_pid_t+set}" = set; then
16293   echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295   cat >conftest.$ac_ext <<_ACEOF
16296 /* confdefs.h.  */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h.  */
16301 $ac_includes_default
16302 typedef pid_t ac__type_new_;
16303 int
16304 main ()
16305 {
16306 if ((ac__type_new_ *) 0)
16307   return 0;
16308 if (sizeof (ac__type_new_))
16309   return 0;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (ac_try="$ac_compile"
16316 case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321   (eval "$ac_compile") 2>conftest.er1
16322   ac_status=$?
16323   grep -v '^ *+' conftest.er1 >conftest.err
16324   rm -f conftest.er1
16325   cat conftest.err >&5
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); } &&
16328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16329   { (case "(($ac_try" in
16330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331   *) ac_try_echo=$ac_try;;
16332 esac
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334   (eval "$ac_try") 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; } &&
16338          { ac_try='test -s conftest.$ac_objext'
16339   { (case "(($ac_try" in
16340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341   *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344   (eval "$ac_try") 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); }; }; then
16348   ac_cv_type_pid_t=yes
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353         ac_cv_type_pid_t=no
16354 fi
16355
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 fi
16358 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16359 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16360 if test $ac_cv_type_pid_t = yes; then
16361   :
16362 else
16363
16364 cat >>confdefs.h <<_ACEOF
16365 #define pid_t int
16366 _ACEOF
16367
16368 fi
16369
16370 { echo "$as_me:$LINENO: checking for size_t" >&5
16371 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16372 if test "${ac_cv_type_size_t+set}" = set; then
16373   echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375   cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h.  */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h.  */
16381 $ac_includes_default
16382 typedef size_t ac__type_new_;
16383 int
16384 main ()
16385 {
16386 if ((ac__type_new_ *) 0)
16387   return 0;
16388 if (sizeof (ac__type_new_))
16389   return 0;
16390   ;
16391   return 0;
16392 }
16393 _ACEOF
16394 rm -f conftest.$ac_objext
16395 if { (ac_try="$ac_compile"
16396 case "(($ac_try" in
16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398   *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401   (eval "$ac_compile") 2>conftest.er1
16402   ac_status=$?
16403   grep -v '^ *+' conftest.er1 >conftest.err
16404   rm -f conftest.er1
16405   cat conftest.err >&5
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); } &&
16408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16409   { (case "(($ac_try" in
16410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411   *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414   (eval "$ac_try") 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; } &&
16418          { ac_try='test -s conftest.$ac_objext'
16419   { (case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_try") 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; }; then
16428   ac_cv_type_size_t=yes
16429 else
16430   echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433         ac_cv_type_size_t=no
16434 fi
16435
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437 fi
16438 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16439 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16440 if test $ac_cv_type_size_t = yes; then
16441   :
16442 else
16443
16444 cat >>confdefs.h <<_ACEOF
16445 #define size_t unsigned int
16446 _ACEOF
16447
16448 fi
16449
16450
16451 cat >>confdefs.h <<_ACEOF
16452 #define RETSIGTYPE void
16453 _ACEOF
16454
16455 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16456 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16457 if test "${ac_cv_struct_tm+set}" = set; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466 #include <sys/types.h>
16467 #include <time.h>
16468
16469 int
16470 main ()
16471 {
16472 struct tm *tp; tp->tm_sec;
16473   ;
16474   return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext
16478 if { (ac_try="$ac_compile"
16479 case "(($ac_try" in
16480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481   *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484   (eval "$ac_compile") 2>conftest.er1
16485   ac_status=$?
16486   grep -v '^ *+' conftest.er1 >conftest.err
16487   rm -f conftest.er1
16488   cat conftest.err >&5
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); } &&
16491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16492   { (case "(($ac_try" in
16493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494   *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497   (eval "$ac_try") 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; } &&
16501          { ac_try='test -s conftest.$ac_objext'
16502   { (case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507   (eval "$ac_try") 2>&5
16508   ac_status=$?
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); }; }; then
16511   ac_cv_struct_tm=time.h
16512 else
16513   echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16515
16516         ac_cv_struct_tm=sys/time.h
16517 fi
16518
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16522 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16523 if test $ac_cv_struct_tm = sys/time.h; then
16524
16525 cat >>confdefs.h <<\_ACEOF
16526 #define TM_IN_SYS_TIME 1
16527 _ACEOF
16528
16529 fi
16530
16531 { echo "$as_me:$LINENO: checking for int64_t" >&5
16532 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16533 if test "${ac_cv_type_int64_t+set}" = set; then
16534   echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536   cat >conftest.$ac_ext <<_ACEOF
16537 /* confdefs.h.  */
16538 _ACEOF
16539 cat confdefs.h >>conftest.$ac_ext
16540 cat >>conftest.$ac_ext <<_ACEOF
16541 /* end confdefs.h.  */
16542 $ac_includes_default
16543 typedef int64_t ac__type_new_;
16544 int
16545 main ()
16546 {
16547 if ((ac__type_new_ *) 0)
16548   return 0;
16549 if (sizeof (ac__type_new_))
16550   return 0;
16551   ;
16552   return 0;
16553 }
16554 _ACEOF
16555 rm -f conftest.$ac_objext
16556 if { (ac_try="$ac_compile"
16557 case "(($ac_try" in
16558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559   *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562   (eval "$ac_compile") 2>conftest.er1
16563   ac_status=$?
16564   grep -v '^ *+' conftest.er1 >conftest.err
16565   rm -f conftest.er1
16566   cat conftest.err >&5
16567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); } &&
16569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16570   { (case "(($ac_try" in
16571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572   *) ac_try_echo=$ac_try;;
16573 esac
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575   (eval "$ac_try") 2>&5
16576   ac_status=$?
16577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); }; } &&
16579          { ac_try='test -s conftest.$ac_objext'
16580   { (case "(($ac_try" in
16581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582   *) ac_try_echo=$ac_try;;
16583 esac
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585   (eval "$ac_try") 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); }; }; then
16589   ac_cv_type_int64_t=yes
16590 else
16591   echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16593
16594         ac_cv_type_int64_t=no
16595 fi
16596
16597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598 fi
16599 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16600 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16601 if test $ac_cv_type_int64_t = yes; then
16602
16603 cat >>confdefs.h <<_ACEOF
16604 #define HAVE_INT64_T 1
16605 _ACEOF
16606
16607
16608 else
16609   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16610 echo "$as_me: error: Type int64_t required but not found" >&2;}
16611    { (exit 1); exit 1; }; }
16612 fi
16613
16614 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16615 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16616 if test "${ac_cv_type_uint64_t+set}" = set; then
16617   echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619   cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625 $ac_includes_default
16626 typedef uint64_t ac__type_new_;
16627 int
16628 main ()
16629 {
16630 if ((ac__type_new_ *) 0)
16631   return 0;
16632 if (sizeof (ac__type_new_))
16633   return 0;
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 rm -f conftest.$ac_objext
16639 if { (ac_try="$ac_compile"
16640 case "(($ac_try" in
16641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642   *) ac_try_echo=$ac_try;;
16643 esac
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645   (eval "$ac_compile") 2>conftest.er1
16646   ac_status=$?
16647   grep -v '^ *+' conftest.er1 >conftest.err
16648   rm -f conftest.er1
16649   cat conftest.err >&5
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); } &&
16652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653   { (case "(($ac_try" in
16654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655   *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658   (eval "$ac_try") 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; } &&
16662          { ac_try='test -s conftest.$ac_objext'
16663   { (case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_try") 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; }; then
16672   ac_cv_type_uint64_t=yes
16673 else
16674   echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677         ac_cv_type_uint64_t=no
16678 fi
16679
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 fi
16682 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16683 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16684 if test $ac_cv_type_uint64_t = yes; then
16685
16686 cat >>confdefs.h <<_ACEOF
16687 #define HAVE_UINT64_T 1
16688 _ACEOF
16689
16690
16691 else
16692   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16693 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16694 if test "${ac_cv_type_u_int64_t+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697   cat >conftest.$ac_ext <<_ACEOF
16698 /* confdefs.h.  */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h.  */
16703 $ac_includes_default
16704 typedef u_int64_t ac__type_new_;
16705 int
16706 main ()
16707 {
16708 if ((ac__type_new_ *) 0)
16709   return 0;
16710 if (sizeof (ac__type_new_))
16711   return 0;
16712   ;
16713   return 0;
16714 }
16715 _ACEOF
16716 rm -f conftest.$ac_objext
16717 if { (ac_try="$ac_compile"
16718 case "(($ac_try" in
16719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720   *) ac_try_echo=$ac_try;;
16721 esac
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723   (eval "$ac_compile") 2>conftest.er1
16724   ac_status=$?
16725   grep -v '^ *+' conftest.er1 >conftest.err
16726   rm -f conftest.er1
16727   cat conftest.err >&5
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); } &&
16730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16731   { (case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_try") 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; } &&
16740          { ac_try='test -s conftest.$ac_objext'
16741   { (case "(($ac_try" in
16742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743   *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746   (eval "$ac_try") 2>&5
16747   ac_status=$?
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); }; }; then
16750   ac_cv_type_u_int64_t=yes
16751 else
16752   echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755         ac_cv_type_u_int64_t=no
16756 fi
16757
16758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 fi
16760 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16761 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16762 if test $ac_cv_type_u_int64_t = yes; then
16763
16764 cat >>confdefs.h <<_ACEOF
16765 #define HAVE_U_INT64_T 1
16766 _ACEOF
16767
16768
16769 else
16770   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16771 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16772    { (exit 1); exit 1; }; }
16773 fi
16774
16775 fi
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16787 do
16788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16792   echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794   cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h.  */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h.  */
16800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16802 #define $ac_func innocuous_$ac_func
16803
16804 /* System header to define __stub macros and hopefully few prototypes,
16805     which can conflict with char $ac_func (); below.
16806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16807     <limits.h> exists even on freestanding compilers.  */
16808
16809 #ifdef __STDC__
16810 # include <limits.h>
16811 #else
16812 # include <assert.h>
16813 #endif
16814
16815 #undef $ac_func
16816
16817 /* Override any GCC internal prototype to avoid an error.
16818    Use char because int might match the return type of a GCC
16819    builtin and then its argument prototype would still apply.  */
16820 #ifdef __cplusplus
16821 extern "C"
16822 #endif
16823 char $ac_func ();
16824 /* The GNU C library defines this for functions which it implements
16825     to always fail with ENOSYS.  Some functions are actually named
16826     something starting with __ and the normal name is an alias.  */
16827 #if defined __stub_$ac_func || defined __stub___$ac_func
16828 choke me
16829 #endif
16830
16831 int
16832 main ()
16833 {
16834 return $ac_func ();
16835   ;
16836   return 0;
16837 }
16838 _ACEOF
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846   (eval "$ac_link") 2>conftest.er1
16847   ac_status=$?
16848   grep -v '^ *+' conftest.er1 >conftest.err
16849   rm -f conftest.er1
16850   cat conftest.err >&5
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); } &&
16853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16854   { (case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_try") 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; } &&
16863          { ac_try='test -s conftest$ac_exeext'
16864   { (case "(($ac_try" in
16865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866   *) ac_try_echo=$ac_try;;
16867 esac
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869   (eval "$ac_try") 2>&5
16870   ac_status=$?
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); }; }; then
16873   eval "$as_ac_var=yes"
16874 else
16875   echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16877
16878         eval "$as_ac_var=no"
16879 fi
16880
16881 rm -f core conftest.err conftest.$ac_objext \
16882       conftest$ac_exeext conftest.$ac_ext
16883 fi
16884 ac_res=`eval echo '${'$as_ac_var'}'`
16885                { echo "$as_me:$LINENO: result: $ac_res" >&5
16886 echo "${ECHO_T}$ac_res" >&6; }
16887 if test `eval echo '${'$as_ac_var'}'` = yes; then
16888   cat >>confdefs.h <<_ACEOF
16889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16890 _ACEOF
16891
16892 fi
16893 done
16894
16895
16896
16897
16898
16899 for ac_func in powf fmodf strtof round
16900 do
16901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16905   echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907   cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h.  */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h.  */
16913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16915 #define $ac_func innocuous_$ac_func
16916
16917 /* System header to define __stub macros and hopefully few prototypes,
16918     which can conflict with char $ac_func (); below.
16919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16920     <limits.h> exists even on freestanding compilers.  */
16921
16922 #ifdef __STDC__
16923 # include <limits.h>
16924 #else
16925 # include <assert.h>
16926 #endif
16927
16928 #undef $ac_func
16929
16930 /* Override any GCC internal prototype to avoid an error.
16931    Use char because int might match the return type of a GCC
16932    builtin and then its argument prototype would still apply.  */
16933 #ifdef __cplusplus
16934 extern "C"
16935 #endif
16936 char $ac_func ();
16937 /* The GNU C library defines this for functions which it implements
16938     to always fail with ENOSYS.  Some functions are actually named
16939     something starting with __ and the normal name is an alias.  */
16940 #if defined __stub_$ac_func || defined __stub___$ac_func
16941 choke me
16942 #endif
16943
16944 int
16945 main ()
16946 {
16947 return $ac_func ();
16948   ;
16949   return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (ac_try="$ac_link"
16954 case "(($ac_try" in
16955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956   *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959   (eval "$ac_link") 2>conftest.er1
16960   ac_status=$?
16961   grep -v '^ *+' conftest.er1 >conftest.err
16962   rm -f conftest.er1
16963   cat conftest.err >&5
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } &&
16966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16967   { (case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_try") 2>&5
16973   ac_status=$?
16974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); }; } &&
16976          { ac_try='test -s conftest$ac_exeext'
16977   { (case "(($ac_try" in
16978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979   *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982   (eval "$ac_try") 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; }; then
16986   eval "$as_ac_var=yes"
16987 else
16988   echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16990
16991         eval "$as_ac_var=no"
16992 fi
16993
16994 rm -f core conftest.err conftest.$ac_objext \
16995       conftest$ac_exeext conftest.$ac_ext
16996 fi
16997 ac_res=`eval echo '${'$as_ac_var'}'`
16998                { echo "$as_me:$LINENO: result: $ac_res" >&5
16999 echo "${ECHO_T}$ac_res" >&6; }
17000 if test `eval echo '${'$as_ac_var'}'` = yes; then
17001   cat >>confdefs.h <<_ACEOF
17002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17003 _ACEOF
17004
17005 fi
17006 done
17007
17008
17009
17010
17011
17012
17013 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17014 do
17015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17019   echo $ECHO_N "(cached) $ECHO_C" >&6
17020 else
17021   cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17029 #define $ac_func innocuous_$ac_func
17030
17031 /* System header to define __stub macros and hopefully few prototypes,
17032     which can conflict with char $ac_func (); below.
17033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17034     <limits.h> exists even on freestanding compilers.  */
17035
17036 #ifdef __STDC__
17037 # include <limits.h>
17038 #else
17039 # include <assert.h>
17040 #endif
17041
17042 #undef $ac_func
17043
17044 /* Override any GCC internal prototype to avoid an error.
17045    Use char because int might match the return type of a GCC
17046    builtin and then its argument prototype would still apply.  */
17047 #ifdef __cplusplus
17048 extern "C"
17049 #endif
17050 char $ac_func ();
17051 /* The GNU C library defines this for functions which it implements
17052     to always fail with ENOSYS.  Some functions are actually named
17053     something starting with __ and the normal name is an alias.  */
17054 #if defined __stub_$ac_func || defined __stub___$ac_func
17055 choke me
17056 #endif
17057
17058 int
17059 main ()
17060 {
17061 return $ac_func ();
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073   (eval "$ac_link") 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } &&
17080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17081   { (case "(($ac_try" in
17082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083   *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086   (eval "$ac_try") 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); }; } &&
17090          { ac_try='test -s conftest$ac_exeext'
17091   { (case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_try") 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   eval "$as_ac_var=yes"
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105         eval "$as_ac_var=no"
17106 fi
17107
17108 rm -f core conftest.err conftest.$ac_objext \
17109       conftest$ac_exeext conftest.$ac_ext
17110 fi
17111 ac_res=`eval echo '${'$as_ac_var'}'`
17112                { echo "$as_me:$LINENO: result: $ac_res" >&5
17113 echo "${ECHO_T}$ac_res" >&6; }
17114 if test `eval echo '${'$as_ac_var'}'` = yes; then
17115   cat >>confdefs.h <<_ACEOF
17116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17117 _ACEOF
17118
17119 fi
17120 done
17121
17122
17123
17124
17125 for ac_func in isatty mkdtemp mkstemp
17126 do
17127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17131   echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133   cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h.  */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h.  */
17139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17141 #define $ac_func innocuous_$ac_func
17142
17143 /* System header to define __stub macros and hopefully few prototypes,
17144     which can conflict with char $ac_func (); below.
17145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17146     <limits.h> exists even on freestanding compilers.  */
17147
17148 #ifdef __STDC__
17149 # include <limits.h>
17150 #else
17151 # include <assert.h>
17152 #endif
17153
17154 #undef $ac_func
17155
17156 /* Override any GCC internal prototype to avoid an error.
17157    Use char because int might match the return type of a GCC
17158    builtin and then its argument prototype would still apply.  */
17159 #ifdef __cplusplus
17160 extern "C"
17161 #endif
17162 char $ac_func ();
17163 /* The GNU C library defines this for functions which it implements
17164     to always fail with ENOSYS.  Some functions are actually named
17165     something starting with __ and the normal name is an alias.  */
17166 #if defined __stub_$ac_func || defined __stub___$ac_func
17167 choke me
17168 #endif
17169
17170 int
17171 main ()
17172 {
17173 return $ac_func ();
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_link") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } &&
17192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193   { (case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198   (eval "$ac_try") 2>&5
17199   ac_status=$?
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); }; } &&
17202          { ac_try='test -s conftest$ac_exeext'
17203   { (case "(($ac_try" in
17204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205   *) ac_try_echo=$ac_try;;
17206 esac
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208   (eval "$ac_try") 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; }; then
17212   eval "$as_ac_var=yes"
17213 else
17214   echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217         eval "$as_ac_var=no"
17218 fi
17219
17220 rm -f core conftest.err conftest.$ac_objext \
17221       conftest$ac_exeext conftest.$ac_ext
17222 fi
17223 ac_res=`eval echo '${'$as_ac_var'}'`
17224                { echo "$as_me:$LINENO: result: $ac_res" >&5
17225 echo "${ECHO_T}$ac_res" >&6; }
17226 if test `eval echo '${'$as_ac_var'}'` = yes; then
17227   cat >>confdefs.h <<_ACEOF
17228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17229 _ACEOF
17230
17231 fi
17232 done
17233
17234
17235
17236
17237
17238
17239
17240 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17241 do
17242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17256 #define $ac_func innocuous_$ac_func
17257
17258 /* System header to define __stub macros and hopefully few prototypes,
17259     which can conflict with char $ac_func (); below.
17260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261     <limits.h> exists even on freestanding compilers.  */
17262
17263 #ifdef __STDC__
17264 # include <limits.h>
17265 #else
17266 # include <assert.h>
17267 #endif
17268
17269 #undef $ac_func
17270
17271 /* Override any GCC internal prototype to avoid an error.
17272    Use char because int might match the return type of a GCC
17273    builtin and then its argument prototype would still apply.  */
17274 #ifdef __cplusplus
17275 extern "C"
17276 #endif
17277 char $ac_func ();
17278 /* The GNU C library defines this for functions which it implements
17279     to always fail with ENOSYS.  Some functions are actually named
17280     something starting with __ and the normal name is an alias.  */
17281 #if defined __stub_$ac_func || defined __stub___$ac_func
17282 choke me
17283 #endif
17284
17285 int
17286 main ()
17287 {
17288 return $ac_func ();
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_link") 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } &&
17307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308   { (case "(($ac_try" in
17309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310   *) ac_try_echo=$ac_try;;
17311 esac
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313   (eval "$ac_try") 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; } &&
17317          { ac_try='test -s conftest$ac_exeext'
17318   { (case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_try") 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   eval "$as_ac_var=yes"
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332         eval "$as_ac_var=no"
17333 fi
17334
17335 rm -f core conftest.err conftest.$ac_objext \
17336       conftest$ac_exeext conftest.$ac_ext
17337 fi
17338 ac_res=`eval echo '${'$as_ac_var'}'`
17339                { echo "$as_me:$LINENO: result: $ac_res" >&5
17340 echo "${ECHO_T}$ac_res" >&6; }
17341 if test `eval echo '${'$as_ac_var'}'` = yes; then
17342   cat >>confdefs.h <<_ACEOF
17343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17344 _ACEOF
17345
17346 fi
17347 done
17348
17349
17350
17351
17352 for ac_func in strerror strerror_r setenv
17353 do
17354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17358   echo $ECHO_N "(cached) $ECHO_C" >&6
17359 else
17360   cat >conftest.$ac_ext <<_ACEOF
17361 /* confdefs.h.  */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h.  */
17366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17368 #define $ac_func innocuous_$ac_func
17369
17370 /* System header to define __stub macros and hopefully few prototypes,
17371     which can conflict with char $ac_func (); below.
17372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17373     <limits.h> exists even on freestanding compilers.  */
17374
17375 #ifdef __STDC__
17376 # include <limits.h>
17377 #else
17378 # include <assert.h>
17379 #endif
17380
17381 #undef $ac_func
17382
17383 /* Override any GCC internal prototype to avoid an error.
17384    Use char because int might match the return type of a GCC
17385    builtin and then its argument prototype would still apply.  */
17386 #ifdef __cplusplus
17387 extern "C"
17388 #endif
17389 char $ac_func ();
17390 /* The GNU C library defines this for functions which it implements
17391     to always fail with ENOSYS.  Some functions are actually named
17392     something starting with __ and the normal name is an alias.  */
17393 #if defined __stub_$ac_func || defined __stub___$ac_func
17394 choke me
17395 #endif
17396
17397 int
17398 main ()
17399 {
17400 return $ac_func ();
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412   (eval "$ac_link") 2>conftest.er1
17413   ac_status=$?
17414   grep -v '^ *+' conftest.er1 >conftest.err
17415   rm -f conftest.er1
17416   cat conftest.err >&5
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); } &&
17419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17420   { (case "(($ac_try" in
17421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422   *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425   (eval "$ac_try") 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); }; } &&
17429          { ac_try='test -s conftest$ac_exeext'
17430   { (case "(($ac_try" in
17431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432   *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435   (eval "$ac_try") 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; }; then
17439   eval "$as_ac_var=yes"
17440 else
17441   echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444         eval "$as_ac_var=no"
17445 fi
17446
17447 rm -f core conftest.err conftest.$ac_objext \
17448       conftest$ac_exeext conftest.$ac_ext
17449 fi
17450 ac_res=`eval echo '${'$as_ac_var'}'`
17451                { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_var'}'` = yes; then
17454   cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17456 _ACEOF
17457
17458 fi
17459 done
17460
17461
17462
17463
17464
17465 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17466 do
17467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17471   echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473   cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h.  */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h.  */
17479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17481 #define $ac_func innocuous_$ac_func
17482
17483 /* System header to define __stub macros and hopefully few prototypes,
17484     which can conflict with char $ac_func (); below.
17485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17486     <limits.h> exists even on freestanding compilers.  */
17487
17488 #ifdef __STDC__
17489 # include <limits.h>
17490 #else
17491 # include <assert.h>
17492 #endif
17493
17494 #undef $ac_func
17495
17496 /* Override any GCC internal prototype to avoid an error.
17497    Use char because int might match the return type of a GCC
17498    builtin and then its argument prototype would still apply.  */
17499 #ifdef __cplusplus
17500 extern "C"
17501 #endif
17502 char $ac_func ();
17503 /* The GNU C library defines this for functions which it implements
17504     to always fail with ENOSYS.  Some functions are actually named
17505     something starting with __ and the normal name is an alias.  */
17506 #if defined __stub_$ac_func || defined __stub___$ac_func
17507 choke me
17508 #endif
17509
17510 int
17511 main ()
17512 {
17513 return $ac_func ();
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_link") 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17533   { (case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_try") 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest$ac_exeext'
17543   { (case "(($ac_try" in
17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545   *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548   (eval "$ac_try") 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   eval "$as_ac_var=yes"
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557         eval "$as_ac_var=no"
17558 fi
17559
17560 rm -f core conftest.err conftest.$ac_objext \
17561       conftest$ac_exeext conftest.$ac_ext
17562 fi
17563 ac_res=`eval echo '${'$as_ac_var'}'`
17564                { echo "$as_me:$LINENO: result: $ac_res" >&5
17565 echo "${ECHO_T}$ac_res" >&6; }
17566 if test `eval echo '${'$as_ac_var'}'` = yes; then
17567   cat >>confdefs.h <<_ACEOF
17568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17569 _ACEOF
17570
17571 fi
17572 done
17573
17574
17575
17576
17577
17578
17579 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17580 do
17581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587   cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17595 #define $ac_func innocuous_$ac_func
17596
17597 /* System header to define __stub macros and hopefully few prototypes,
17598     which can conflict with char $ac_func (); below.
17599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600     <limits.h> exists even on freestanding compilers.  */
17601
17602 #ifdef __STDC__
17603 # include <limits.h>
17604 #else
17605 # include <assert.h>
17606 #endif
17607
17608 #undef $ac_func
17609
17610 /* Override any GCC internal prototype to avoid an error.
17611    Use char because int might match the return type of a GCC
17612    builtin and then its argument prototype would still apply.  */
17613 #ifdef __cplusplus
17614 extern "C"
17615 #endif
17616 char $ac_func ();
17617 /* The GNU C library defines this for functions which it implements
17618     to always fail with ENOSYS.  Some functions are actually named
17619     something starting with __ and the normal name is an alias.  */
17620 #if defined __stub_$ac_func || defined __stub___$ac_func
17621 choke me
17622 #endif
17623
17624 int
17625 main ()
17626 {
17627 return $ac_func ();
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
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_link") 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_exeext'
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   eval "$as_ac_var=yes"
17667 else
17668   echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671         eval "$as_ac_var=no"
17672 fi
17673
17674 rm -f core conftest.err conftest.$ac_objext \
17675       conftest$ac_exeext conftest.$ac_ext
17676 fi
17677 ac_res=`eval echo '${'$as_ac_var'}'`
17678                { echo "$as_me:$LINENO: result: $ac_res" >&5
17679 echo "${ECHO_T}$ac_res" >&6; }
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681   cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683 _ACEOF
17684
17685 fi
17686 done
17687
17688 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17689 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17690 if test "${llvm_cv_c_printf_a+set}" = set; then
17691   echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693   ac_ext=c
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698
17699  if test "$cross_compiling" = yes; then
17700   llvmac_cv_c_printf_a=no
17701 else
17702   cat >conftest.$ac_ext <<_ACEOF
17703
17704   /* confdefs.h.  */
17705 _ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h.  */
17709
17710 #include <stdio.h>
17711 #include <stdlib.h>
17712
17713 int
17714 main ()
17715 {
17716
17717 volatile double A, B;
17718 char Buffer[100];
17719 A = 1;
17720 A /= 10.0;
17721 sprintf(Buffer, "%a", A);
17722 B = atof(Buffer);
17723 if (A != B)
17724   return (1);
17725 if (A != 0x1.999999999999ap-4)
17726   return (1);
17727 return (0);
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_link") 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17743   { (case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_try") 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   llvm_cv_c_printf_a=yes
17753 else
17754   echo "$as_me: program exited with status $ac_status" >&5
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17757
17758 ( exit $ac_status )
17759 llvmac_cv_c_printf_a=no
17760 fi
17761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17762 fi
17763
17764
17765  ac_ext=c
17766 ac_cpp='$CPP $CPPFLAGS'
17767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17770
17771 fi
17772 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17773 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17774  if test "$llvm_cv_c_printf_a" = "yes"; then
17775
17776 cat >>confdefs.h <<\_ACEOF
17777 #define HAVE_PRINTF_A 1
17778 _ACEOF
17779
17780  fi
17781
17782
17783 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17784 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17785 if test "${ac_cv_func_rand48+set}" = set; then
17786   echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788   ac_ext=cpp
17789 ac_cpp='$CXXCPP $CPPFLAGS'
17790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17793
17794    cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h.  */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h.  */
17800 #include <stdlib.h>
17801 int
17802 main ()
17803 {
17804 srand48(0);lrand48();drand48();
17805   ;
17806   return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813   *) ac_try_echo=$ac_try;;
17814 esac
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816   (eval "$ac_compile") 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17824   { (case "(($ac_try" in
17825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826   *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829   (eval "$ac_try") 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; } &&
17833          { ac_try='test -s conftest.$ac_objext'
17834   { (case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_try") 2>&5
17840   ac_status=$?
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); }; }; then
17843   ac_cv_func_rand48=yes
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848         ac_cv_func_rand48=no
17849 fi
17850
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852   ac_ext=c
17853 ac_cpp='$CPP $CPPFLAGS'
17854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17857
17858 fi
17859 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17860 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17861
17862 if test "$ac_cv_func_rand48" = "yes" ; then
17863
17864 cat >>confdefs.h <<\_ACEOF
17865 #define HAVE_RAND48 1
17866 _ACEOF
17867
17868 fi
17869
17870
17871 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17872 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17873 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17874   echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876   cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h.  */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h.  */
17882 $ac_includes_default
17883 int
17884 main ()
17885 {
17886 #ifndef strerror_s
17887   char *p = (char *) strerror_s;
17888   return !p;
17889 #endif
17890
17891   ;
17892   return 0;
17893 }
17894 _ACEOF
17895 rm -f conftest.$ac_objext
17896 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_have_decl_strerror_s=yes
17930 else
17931   echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934         ac_cv_have_decl_strerror_s=no
17935 fi
17936
17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938 fi
17939 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17940 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17941 if test $ac_cv_have_decl_strerror_s = yes; then
17942
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_DECL_STRERROR_S 1
17945 _ACEOF
17946
17947
17948 else
17949   cat >>confdefs.h <<_ACEOF
17950 #define HAVE_DECL_STRERROR_S 0
17951 _ACEOF
17952
17953
17954 fi
17955
17956
17957
17958 if test "$llvm_cv_os_type" = "MingW" ; then
17959   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17960 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17961 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964   ac_check_lib_save_LIBS=$LIBS
17965 LIBS="-lgcc  $LIBS"
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h.  */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h.  */
17972
17973 /* Override any GCC internal prototype to avoid an error.
17974    Use char because int might match the return type of a GCC
17975    builtin and then its argument prototype would still apply.  */
17976 #ifdef __cplusplus
17977 extern "C"
17978 #endif
17979 char _alloca ();
17980 int
17981 main ()
17982 {
17983 return _alloca ();
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (ac_try="$ac_link"
17990 case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_link") 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } &&
18002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18003   { (case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_try") 2>&5
18009   ac_status=$?
18010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011   (exit $ac_status); }; } &&
18012          { ac_try='test -s conftest$ac_exeext'
18013   { (case "(($ac_try" in
18014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015   *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018   (eval "$ac_try") 2>&5
18019   ac_status=$?
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); }; }; then
18022   ac_cv_lib_gcc__alloca=yes
18023 else
18024   echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027         ac_cv_lib_gcc__alloca=no
18028 fi
18029
18030 rm -f core conftest.err conftest.$ac_objext \
18031       conftest$ac_exeext conftest.$ac_ext
18032 LIBS=$ac_check_lib_save_LIBS
18033 fi
18034 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18035 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18036 if test $ac_cv_lib_gcc__alloca = yes; then
18037
18038 cat >>confdefs.h <<\_ACEOF
18039 #define HAVE__ALLOCA 1
18040 _ACEOF
18041
18042 fi
18043
18044   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18045 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18046 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18047   echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049   ac_check_lib_save_LIBS=$LIBS
18050 LIBS="-lgcc  $LIBS"
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h.  */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h.  */
18057
18058 /* Override any GCC internal prototype to avoid an error.
18059    Use char because int might match the return type of a GCC
18060    builtin and then its argument prototype would still apply.  */
18061 #ifdef __cplusplus
18062 extern "C"
18063 #endif
18064 char __alloca ();
18065 int
18066 main ()
18067 {
18068 return __alloca ();
18069   ;
18070   return 0;
18071 }
18072 _ACEOF
18073 rm -f conftest.$ac_objext conftest$ac_exeext
18074 if { (ac_try="$ac_link"
18075 case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_link") 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } &&
18087          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18088   { (case "(($ac_try" in
18089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090   *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093   (eval "$ac_try") 2>&5
18094   ac_status=$?
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); }; } &&
18097          { ac_try='test -s conftest$ac_exeext'
18098   { (case "(($ac_try" in
18099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100   *) ac_try_echo=$ac_try;;
18101 esac
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103   (eval "$ac_try") 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; }; then
18107   ac_cv_lib_gcc___alloca=yes
18108 else
18109   echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112         ac_cv_lib_gcc___alloca=no
18113 fi
18114
18115 rm -f core conftest.err conftest.$ac_objext \
18116       conftest$ac_exeext conftest.$ac_ext
18117 LIBS=$ac_check_lib_save_LIBS
18118 fi
18119 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18120 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18121 if test $ac_cv_lib_gcc___alloca = yes; then
18122
18123 cat >>confdefs.h <<\_ACEOF
18124 #define HAVE___ALLOCA 1
18125 _ACEOF
18126
18127 fi
18128
18129   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18130 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18131 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18132   echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134   ac_check_lib_save_LIBS=$LIBS
18135 LIBS="-lgcc  $LIBS"
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h.  */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h.  */
18142
18143 /* Override any GCC internal prototype to avoid an error.
18144    Use char because int might match the return type of a GCC
18145    builtin and then its argument prototype would still apply.  */
18146 #ifdef __cplusplus
18147 extern "C"
18148 #endif
18149 char __chkstk ();
18150 int
18151 main ()
18152 {
18153 return __chkstk ();
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (ac_try="$ac_link"
18160 case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165   (eval "$ac_link") 2>conftest.er1
18166   ac_status=$?
18167   grep -v '^ *+' conftest.er1 >conftest.err
18168   rm -f conftest.er1
18169   cat conftest.err >&5
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); } &&
18172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173   { (case "(($ac_try" in
18174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175   *) ac_try_echo=$ac_try;;
18176 esac
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178   (eval "$ac_try") 2>&5
18179   ac_status=$?
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); }; } &&
18182          { ac_try='test -s conftest$ac_exeext'
18183   { (case "(($ac_try" in
18184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185   *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188   (eval "$ac_try") 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); }; }; then
18192   ac_cv_lib_gcc___chkstk=yes
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197         ac_cv_lib_gcc___chkstk=no
18198 fi
18199
18200 rm -f core conftest.err conftest.$ac_objext \
18201       conftest$ac_exeext conftest.$ac_ext
18202 LIBS=$ac_check_lib_save_LIBS
18203 fi
18204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18205 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18206 if test $ac_cv_lib_gcc___chkstk = yes; then
18207
18208 cat >>confdefs.h <<\_ACEOF
18209 #define HAVE___CHKSTK 1
18210 _ACEOF
18211
18212 fi
18213
18214   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18215 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18216 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18217   echo $ECHO_N "(cached) $ECHO_C" >&6
18218 else
18219   ac_check_lib_save_LIBS=$LIBS
18220 LIBS="-lgcc  $LIBS"
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227
18228 /* Override any GCC internal prototype to avoid an error.
18229    Use char because int might match the return type of a GCC
18230    builtin and then its argument prototype would still apply.  */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char ___chkstk ();
18235 int
18236 main ()
18237 {
18238 return ___chkstk ();
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247   *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250   (eval "$ac_link") 2>conftest.er1
18251   ac_status=$?
18252   grep -v '^ *+' conftest.er1 >conftest.err
18253   rm -f conftest.er1
18254   cat conftest.err >&5
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); } &&
18257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18258   { (case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263   (eval "$ac_try") 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); }; } &&
18267          { ac_try='test -s conftest$ac_exeext'
18268   { (case "(($ac_try" in
18269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270   *) ac_try_echo=$ac_try;;
18271 esac
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273   (eval "$ac_try") 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; }; then
18277   ac_cv_lib_gcc____chkstk=yes
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282         ac_cv_lib_gcc____chkstk=no
18283 fi
18284
18285 rm -f core conftest.err conftest.$ac_objext \
18286       conftest$ac_exeext conftest.$ac_ext
18287 LIBS=$ac_check_lib_save_LIBS
18288 fi
18289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18290 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18291 if test $ac_cv_lib_gcc____chkstk = yes; then
18292
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE____CHKSTK 1
18295 _ACEOF
18296
18297 fi
18298
18299
18300   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18301 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18302 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18303   echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305   ac_check_lib_save_LIBS=$LIBS
18306 LIBS="-lgcc  $LIBS"
18307 cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h.  */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h.  */
18313
18314 /* Override any GCC internal prototype to avoid an error.
18315    Use char because int might match the return type of a GCC
18316    builtin and then its argument prototype would still apply.  */
18317 #ifdef __cplusplus
18318 extern "C"
18319 #endif
18320 char __ashldi3 ();
18321 int
18322 main ()
18323 {
18324 return __ashldi3 ();
18325   ;
18326   return 0;
18327 }
18328 _ACEOF
18329 rm -f conftest.$ac_objext conftest$ac_exeext
18330 if { (ac_try="$ac_link"
18331 case "(($ac_try" in
18332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333   *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336   (eval "$ac_link") 2>conftest.er1
18337   ac_status=$?
18338   grep -v '^ *+' conftest.er1 >conftest.err
18339   rm -f conftest.er1
18340   cat conftest.err >&5
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); } &&
18343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18344   { (case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_try") 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; } &&
18353          { ac_try='test -s conftest$ac_exeext'
18354   { (case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359   (eval "$ac_try") 2>&5
18360   ac_status=$?
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); }; }; then
18363   ac_cv_lib_gcc___ashldi3=yes
18364 else
18365   echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368         ac_cv_lib_gcc___ashldi3=no
18369 fi
18370
18371 rm -f core conftest.err conftest.$ac_objext \
18372       conftest$ac_exeext conftest.$ac_ext
18373 LIBS=$ac_check_lib_save_LIBS
18374 fi
18375 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18376 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18377 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18378
18379 cat >>confdefs.h <<\_ACEOF
18380 #define HAVE___ASHLDI3 1
18381 _ACEOF
18382
18383 fi
18384
18385   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18386 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18387 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18388   echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390   ac_check_lib_save_LIBS=$LIBS
18391 LIBS="-lgcc  $LIBS"
18392 cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h.  */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h.  */
18398
18399 /* Override any GCC internal prototype to avoid an error.
18400    Use char because int might match the return type of a GCC
18401    builtin and then its argument prototype would still apply.  */
18402 #ifdef __cplusplus
18403 extern "C"
18404 #endif
18405 char __ashrdi3 ();
18406 int
18407 main ()
18408 {
18409 return __ashrdi3 ();
18410   ;
18411   return 0;
18412 }
18413 _ACEOF
18414 rm -f conftest.$ac_objext conftest$ac_exeext
18415 if { (ac_try="$ac_link"
18416 case "(($ac_try" in
18417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418   *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421   (eval "$ac_link") 2>conftest.er1
18422   ac_status=$?
18423   grep -v '^ *+' conftest.er1 >conftest.err
18424   rm -f conftest.er1
18425   cat conftest.err >&5
18426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427   (exit $ac_status); } &&
18428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18429   { (case "(($ac_try" in
18430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431   *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434   (eval "$ac_try") 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); }; } &&
18438          { ac_try='test -s conftest$ac_exeext'
18439   { (case "(($ac_try" in
18440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441   *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444   (eval "$ac_try") 2>&5
18445   ac_status=$?
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); }; }; then
18448   ac_cv_lib_gcc___ashrdi3=yes
18449 else
18450   echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453         ac_cv_lib_gcc___ashrdi3=no
18454 fi
18455
18456 rm -f core conftest.err conftest.$ac_objext \
18457       conftest$ac_exeext conftest.$ac_ext
18458 LIBS=$ac_check_lib_save_LIBS
18459 fi
18460 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18461 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18462 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18463
18464 cat >>confdefs.h <<\_ACEOF
18465 #define HAVE___ASHRDI3 1
18466 _ACEOF
18467
18468 fi
18469
18470   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18471 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18472 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475   ac_check_lib_save_LIBS=$LIBS
18476 LIBS="-lgcc  $LIBS"
18477 cat >conftest.$ac_ext <<_ACEOF
18478 /* confdefs.h.  */
18479 _ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h.  */
18483
18484 /* Override any GCC internal prototype to avoid an error.
18485    Use char because int might match the return type of a GCC
18486    builtin and then its argument prototype would still apply.  */
18487 #ifdef __cplusplus
18488 extern "C"
18489 #endif
18490 char __divdi3 ();
18491 int
18492 main ()
18493 {
18494 return __divdi3 ();
18495   ;
18496   return 0;
18497 }
18498 _ACEOF
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503   *) ac_try_echo=$ac_try;;
18504 esac
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506   (eval "$ac_link") 2>conftest.er1
18507   ac_status=$?
18508   grep -v '^ *+' conftest.er1 >conftest.err
18509   rm -f conftest.er1
18510   cat conftest.err >&5
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } &&
18513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18514   { (case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519   (eval "$ac_try") 2>&5
18520   ac_status=$?
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); }; } &&
18523          { ac_try='test -s conftest$ac_exeext'
18524   { (case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_try") 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533   ac_cv_lib_gcc___divdi3=yes
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538         ac_cv_lib_gcc___divdi3=no
18539 fi
18540
18541 rm -f core conftest.err conftest.$ac_objext \
18542       conftest$ac_exeext conftest.$ac_ext
18543 LIBS=$ac_check_lib_save_LIBS
18544 fi
18545 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18546 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18547 if test $ac_cv_lib_gcc___divdi3 = yes; then
18548
18549 cat >>confdefs.h <<\_ACEOF
18550 #define HAVE___DIVDI3 1
18551 _ACEOF
18552
18553 fi
18554
18555   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18556 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18557 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18558   echo $ECHO_N "(cached) $ECHO_C" >&6
18559 else
18560   ac_check_lib_save_LIBS=$LIBS
18561 LIBS="-lgcc  $LIBS"
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h.  */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h.  */
18568
18569 /* Override any GCC internal prototype to avoid an error.
18570    Use char because int might match the return type of a GCC
18571    builtin and then its argument prototype would still apply.  */
18572 #ifdef __cplusplus
18573 extern "C"
18574 #endif
18575 char __fixdfdi ();
18576 int
18577 main ()
18578 {
18579 return __fixdfdi ();
18580   ;
18581   return 0;
18582 }
18583 _ACEOF
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588   *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591   (eval "$ac_link") 2>conftest.er1
18592   ac_status=$?
18593   grep -v '^ *+' conftest.er1 >conftest.err
18594   rm -f conftest.er1
18595   cat conftest.err >&5
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); } &&
18598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18599   { (case "(($ac_try" in
18600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601   *) ac_try_echo=$ac_try;;
18602 esac
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604   (eval "$ac_try") 2>&5
18605   ac_status=$?
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); }; } &&
18608          { ac_try='test -s conftest$ac_exeext'
18609   { (case "(($ac_try" in
18610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611   *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614   (eval "$ac_try") 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   ac_cv_lib_gcc___fixdfdi=yes
18619 else
18620   echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623         ac_cv_lib_gcc___fixdfdi=no
18624 fi
18625
18626 rm -f core conftest.err conftest.$ac_objext \
18627       conftest$ac_exeext conftest.$ac_ext
18628 LIBS=$ac_check_lib_save_LIBS
18629 fi
18630 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18631 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18632 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18633
18634 cat >>confdefs.h <<\_ACEOF
18635 #define HAVE___FIXDFDI 1
18636 _ACEOF
18637
18638 fi
18639
18640   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18641 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18642 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18643   echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645   ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lgcc  $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653
18654 /* Override any GCC internal prototype to avoid an error.
18655    Use char because int might match the return type of a GCC
18656    builtin and then its argument prototype would still apply.  */
18657 #ifdef __cplusplus
18658 extern "C"
18659 #endif
18660 char __fixsfdi ();
18661 int
18662 main ()
18663 {
18664 return __fixsfdi ();
18665   ;
18666   return 0;
18667 }
18668 _ACEOF
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (ac_try="$ac_link"
18671 case "(($ac_try" in
18672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673   *) ac_try_echo=$ac_try;;
18674 esac
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676   (eval "$ac_link") 2>conftest.er1
18677   ac_status=$?
18678   grep -v '^ *+' conftest.er1 >conftest.err
18679   rm -f conftest.er1
18680   cat conftest.err >&5
18681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682   (exit $ac_status); } &&
18683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18684   { (case "(($ac_try" in
18685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686   *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689   (eval "$ac_try") 2>&5
18690   ac_status=$?
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); }; } &&
18693          { ac_try='test -s conftest$ac_exeext'
18694   { (case "(($ac_try" in
18695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696   *) ac_try_echo=$ac_try;;
18697 esac
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699   (eval "$ac_try") 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); }; }; then
18703   ac_cv_lib_gcc___fixsfdi=yes
18704 else
18705   echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708         ac_cv_lib_gcc___fixsfdi=no
18709 fi
18710
18711 rm -f core conftest.err conftest.$ac_objext \
18712       conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18714 fi
18715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18716 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18717 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18718
18719 cat >>confdefs.h <<\_ACEOF
18720 #define HAVE___FIXSFDI 1
18721 _ACEOF
18722
18723 fi
18724
18725   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18726 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18727 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18728   echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730   ac_check_lib_save_LIBS=$LIBS
18731 LIBS="-lgcc  $LIBS"
18732 cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h.  */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h.  */
18738
18739 /* Override any GCC internal prototype to avoid an error.
18740    Use char because int might match the return type of a GCC
18741    builtin and then its argument prototype would still apply.  */
18742 #ifdef __cplusplus
18743 extern "C"
18744 #endif
18745 char __floatdidf ();
18746 int
18747 main ()
18748 {
18749 return __floatdidf ();
18750   ;
18751   return 0;
18752 }
18753 _ACEOF
18754 rm -f conftest.$ac_objext conftest$ac_exeext
18755 if { (ac_try="$ac_link"
18756 case "(($ac_try" in
18757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758   *) ac_try_echo=$ac_try;;
18759 esac
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761   (eval "$ac_link") 2>conftest.er1
18762   ac_status=$?
18763   grep -v '^ *+' conftest.er1 >conftest.err
18764   rm -f conftest.er1
18765   cat conftest.err >&5
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); } &&
18768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18769   { (case "(($ac_try" in
18770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771   *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774   (eval "$ac_try") 2>&5
18775   ac_status=$?
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); }; } &&
18778          { ac_try='test -s conftest$ac_exeext'
18779   { (case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_try") 2>&5
18785   ac_status=$?
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); }; }; then
18788   ac_cv_lib_gcc___floatdidf=yes
18789 else
18790   echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18792
18793         ac_cv_lib_gcc___floatdidf=no
18794 fi
18795
18796 rm -f core conftest.err conftest.$ac_objext \
18797       conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_lib_save_LIBS
18799 fi
18800 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18801 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18802 if test $ac_cv_lib_gcc___floatdidf = yes; then
18803
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE___FLOATDIDF 1
18806 _ACEOF
18807
18808 fi
18809
18810   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18811 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18812 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18813   echo $ECHO_N "(cached) $ECHO_C" >&6
18814 else
18815   ac_check_lib_save_LIBS=$LIBS
18816 LIBS="-lgcc  $LIBS"
18817 cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h.  */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h.  */
18823
18824 /* Override any GCC internal prototype to avoid an error.
18825    Use char because int might match the return type of a GCC
18826    builtin and then its argument prototype would still apply.  */
18827 #ifdef __cplusplus
18828 extern "C"
18829 #endif
18830 char __lshrdi3 ();
18831 int
18832 main ()
18833 {
18834 return __lshrdi3 ();
18835   ;
18836   return 0;
18837 }
18838 _ACEOF
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_link") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } &&
18853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18854   { (case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_try") 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; } &&
18863          { ac_try='test -s conftest$ac_exeext'
18864   { (case "(($ac_try" in
18865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866   *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869   (eval "$ac_try") 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; }; then
18873   ac_cv_lib_gcc___lshrdi3=yes
18874 else
18875   echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878         ac_cv_lib_gcc___lshrdi3=no
18879 fi
18880
18881 rm -f core conftest.err conftest.$ac_objext \
18882       conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18884 fi
18885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18886 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18887 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18888
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE___LSHRDI3 1
18891 _ACEOF
18892
18893 fi
18894
18895   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18896 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18897 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18898   echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900   ac_check_lib_save_LIBS=$LIBS
18901 LIBS="-lgcc  $LIBS"
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908
18909 /* Override any GCC internal prototype to avoid an error.
18910    Use char because int might match the return type of a GCC
18911    builtin and then its argument prototype would still apply.  */
18912 #ifdef __cplusplus
18913 extern "C"
18914 #endif
18915 char __moddi3 ();
18916 int
18917 main ()
18918 {
18919 return __moddi3 ();
18920   ;
18921   return 0;
18922 }
18923 _ACEOF
18924 rm -f conftest.$ac_objext conftest$ac_exeext
18925 if { (ac_try="$ac_link"
18926 case "(($ac_try" in
18927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928   *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931   (eval "$ac_link") 2>conftest.er1
18932   ac_status=$?
18933   grep -v '^ *+' conftest.er1 >conftest.err
18934   rm -f conftest.er1
18935   cat conftest.err >&5
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); } &&
18938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18939   { (case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944   (eval "$ac_try") 2>&5
18945   ac_status=$?
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); }; } &&
18948          { ac_try='test -s conftest$ac_exeext'
18949   { (case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_try") 2>&5
18955   ac_status=$?
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); }; }; then
18958   ac_cv_lib_gcc___moddi3=yes
18959 else
18960   echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18962
18963         ac_cv_lib_gcc___moddi3=no
18964 fi
18965
18966 rm -f core conftest.err conftest.$ac_objext \
18967       conftest$ac_exeext conftest.$ac_ext
18968 LIBS=$ac_check_lib_save_LIBS
18969 fi
18970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18971 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18972 if test $ac_cv_lib_gcc___moddi3 = yes; then
18973
18974 cat >>confdefs.h <<\_ACEOF
18975 #define HAVE___MODDI3 1
18976 _ACEOF
18977
18978 fi
18979
18980   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18981 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18982 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18983   echo $ECHO_N "(cached) $ECHO_C" >&6
18984 else
18985   ac_check_lib_save_LIBS=$LIBS
18986 LIBS="-lgcc  $LIBS"
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993
18994 /* Override any GCC internal prototype to avoid an error.
18995    Use char because int might match the return type of a GCC
18996    builtin and then its argument prototype would still apply.  */
18997 #ifdef __cplusplus
18998 extern "C"
18999 #endif
19000 char __udivdi3 ();
19001 int
19002 main ()
19003 {
19004 return __udivdi3 ();
19005   ;
19006   return 0;
19007 }
19008 _ACEOF
19009 rm -f conftest.$ac_objext conftest$ac_exeext
19010 if { (ac_try="$ac_link"
19011 case "(($ac_try" in
19012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013   *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016   (eval "$ac_link") 2>conftest.er1
19017   ac_status=$?
19018   grep -v '^ *+' conftest.er1 >conftest.err
19019   rm -f conftest.er1
19020   cat conftest.err >&5
19021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022   (exit $ac_status); } &&
19023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19024   { (case "(($ac_try" in
19025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026   *) ac_try_echo=$ac_try;;
19027 esac
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029   (eval "$ac_try") 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; } &&
19033          { ac_try='test -s conftest$ac_exeext'
19034   { (case "(($ac_try" in
19035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036   *) ac_try_echo=$ac_try;;
19037 esac
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039   (eval "$ac_try") 2>&5
19040   ac_status=$?
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); }; }; then
19043   ac_cv_lib_gcc___udivdi3=yes
19044 else
19045   echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19047
19048         ac_cv_lib_gcc___udivdi3=no
19049 fi
19050
19051 rm -f core conftest.err conftest.$ac_objext \
19052       conftest$ac_exeext conftest.$ac_ext
19053 LIBS=$ac_check_lib_save_LIBS
19054 fi
19055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19056 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19057 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19058
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE___UDIVDI3 1
19061 _ACEOF
19062
19063 fi
19064
19065   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19066 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19067 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   ac_check_lib_save_LIBS=$LIBS
19071 LIBS="-lgcc  $LIBS"
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 /* Override any GCC internal prototype to avoid an error.
19080    Use char because int might match the return type of a GCC
19081    builtin and then its argument prototype would still apply.  */
19082 #ifdef __cplusplus
19083 extern "C"
19084 #endif
19085 char __umoddi3 ();
19086 int
19087 main ()
19088 {
19089 return __umoddi3 ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098   *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101   (eval "$ac_link") 2>conftest.er1
19102   ac_status=$?
19103   grep -v '^ *+' conftest.er1 >conftest.err
19104   rm -f conftest.er1
19105   cat conftest.err >&5
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } &&
19108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109   { (case "(($ac_try" in
19110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111   *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114   (eval "$ac_try") 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); }; } &&
19118          { ac_try='test -s conftest$ac_exeext'
19119   { (case "(($ac_try" in
19120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121   *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124   (eval "$ac_try") 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; }; then
19128   ac_cv_lib_gcc___umoddi3=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         ac_cv_lib_gcc___umoddi3=no
19134 fi
19135
19136 rm -f core conftest.err conftest.$ac_objext \
19137       conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19139 fi
19140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19141 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19142 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19143
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE___UMODDI3 1
19146 _ACEOF
19147
19148 fi
19149
19150
19151   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19152 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19153 if test "${ac_cv_lib_gcc___main+set}" = set; then
19154   echo $ECHO_N "(cached) $ECHO_C" >&6
19155 else
19156   ac_check_lib_save_LIBS=$LIBS
19157 LIBS="-lgcc  $LIBS"
19158 cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h.  */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h.  */
19164
19165 /* Override any GCC internal prototype to avoid an error.
19166    Use char because int might match the return type of a GCC
19167    builtin and then its argument prototype would still apply.  */
19168 #ifdef __cplusplus
19169 extern "C"
19170 #endif
19171 char __main ();
19172 int
19173 main ()
19174 {
19175 return __main ();
19176   ;
19177   return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (ac_try="$ac_link"
19182 case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_link") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } &&
19194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19195   { (case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_try") 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; } &&
19204          { ac_try='test -s conftest$ac_exeext'
19205   { (case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_try") 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; }; then
19214   ac_cv_lib_gcc___main=yes
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219         ac_cv_lib_gcc___main=no
19220 fi
19221
19222 rm -f core conftest.err conftest.$ac_objext \
19223       conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19225 fi
19226 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19227 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19228 if test $ac_cv_lib_gcc___main = yes; then
19229
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE___MAIN 1
19232 _ACEOF
19233
19234 fi
19235
19236   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19237 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19238 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19239   echo $ECHO_N "(cached) $ECHO_C" >&6
19240 else
19241   ac_check_lib_save_LIBS=$LIBS
19242 LIBS="-lgcc  $LIBS"
19243 cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h.  */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h.  */
19249
19250 /* Override any GCC internal prototype to avoid an error.
19251    Use char because int might match the return type of a GCC
19252    builtin and then its argument prototype would still apply.  */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 char __cmpdi2 ();
19257 int
19258 main ()
19259 {
19260 return __cmpdi2 ();
19261   ;
19262   return 0;
19263 }
19264 _ACEOF
19265 rm -f conftest.$ac_objext conftest$ac_exeext
19266 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19273   ac_status=$?
19274   grep -v '^ *+' conftest.er1 >conftest.err
19275   rm -f conftest.er1
19276   cat conftest.err >&5
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); } &&
19279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19280   { (case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_try") 2>&5
19286   ac_status=$?
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); }; } &&
19289          { ac_try='test -s conftest$ac_exeext'
19290   { (case "(($ac_try" in
19291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292   *) ac_try_echo=$ac_try;;
19293 esac
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295   (eval "$ac_try") 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   ac_cv_lib_gcc___cmpdi2=yes
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304         ac_cv_lib_gcc___cmpdi2=no
19305 fi
19306
19307 rm -f core conftest.err conftest.$ac_objext \
19308       conftest$ac_exeext conftest.$ac_ext
19309 LIBS=$ac_check_lib_save_LIBS
19310 fi
19311 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19312 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19313 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19314
19315 cat >>confdefs.h <<\_ACEOF
19316 #define HAVE___CMPDI2 1
19317 _ACEOF
19318
19319 fi
19320
19321 fi
19322
19323 if test "$llvm_cv_os_type" = "MingW" ; then
19324   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19325 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19326   cat >conftest.$ac_ext <<_ACEOF
19327 #include <windows.h>
19328 #include <imagehlp.h>
19329 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19330 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19331 _ACEOF
19332 rm -f conftest.$ac_objext
19333 if { (ac_try="$ac_compile"
19334 case "(($ac_try" in
19335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336   *) ac_try_echo=$ac_try;;
19337 esac
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339   (eval "$ac_compile") 2>conftest.er1
19340   ac_status=$?
19341   grep -v '^ *+' conftest.er1 >conftest.err
19342   rm -f conftest.er1
19343   cat conftest.err >&5
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); } &&
19346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19347   { (case "(($ac_try" in
19348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349   *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352   (eval "$ac_try") 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; } &&
19356          { ac_try='test -s conftest.$ac_objext'
19357   { (case "(($ac_try" in
19358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359   *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362   (eval "$ac_try") 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; }; then
19366
19367   { echo "$as_me:$LINENO: result: yes" >&5
19368 echo "${ECHO_T}yes" >&6; }
19369   llvm_cv_win32_elmcb_pcstr="PCSTR"
19370
19371 else
19372   echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375
19376   { echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6; }
19378   llvm_cv_win32_elmcb_pcstr="PSTR"
19379
19380 fi
19381
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383
19384 cat >>confdefs.h <<_ACEOF
19385 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19386 _ACEOF
19387
19388 fi
19389
19390
19391 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19392 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19393 if test "${ac_cv_func_isnan_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; isnan(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_isnan_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_isnan_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_isnan_in_math_h" >&5
19468 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19469
19470
19471 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19472
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_ISNAN_IN_MATH_H 1
19475 _ACEOF
19476
19477 fi
19478
19479 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19480 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19481 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19482   echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484   ac_ext=cpp
19485 ac_cpp='$CXXCPP $CPPFLAGS'
19486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19489
19490    cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h.  */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h.  */
19496 #include <cmath>
19497 int
19498 main ()
19499 {
19500 float f; isnan(f);
19501   ;
19502   return 0;
19503 }
19504 _ACEOF
19505 rm -f conftest.$ac_objext
19506 if { (ac_try="$ac_compile"
19507 case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_compile") 2>conftest.er1
19513   ac_status=$?
19514   grep -v '^ *+' conftest.er1 >conftest.err
19515   rm -f conftest.er1
19516   cat conftest.err >&5
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19520   { (case "(($ac_try" in
19521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522   *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525   (eval "$ac_try") 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; } &&
19529          { ac_try='test -s conftest.$ac_objext'
19530   { (case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_try") 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; }; then
19539   ac_cv_func_isnan_in_cmath=yes
19540 else
19541   echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19543
19544         ac_cv_func_isnan_in_cmath=no
19545 fi
19546
19547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548   ac_ext=c
19549 ac_cpp='$CPP $CPPFLAGS'
19550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19553
19554 fi
19555 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19556 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19557
19558 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19559
19560 cat >>confdefs.h <<\_ACEOF
19561 #define HAVE_ISNAN_IN_CMATH 1
19562 _ACEOF
19563
19564 fi
19565
19566 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19567 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19568 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19569   echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571   ac_ext=cpp
19572 ac_cpp='$CXXCPP $CPPFLAGS'
19573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19576
19577    cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583 #include <cmath>
19584 int
19585 main ()
19586 {
19587 float f; std::isnan(f);
19588   ;
19589   return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext
19593 if { (ac_try="$ac_compile"
19594 case "(($ac_try" in
19595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596   *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599   (eval "$ac_compile") 2>conftest.er1
19600   ac_status=$?
19601   grep -v '^ *+' conftest.er1 >conftest.err
19602   rm -f conftest.er1
19603   cat conftest.err >&5
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); } &&
19606          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19607   { (case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_try") 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; } &&
19616          { ac_try='test -s conftest.$ac_objext'
19617   { (case "(($ac_try" in
19618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619   *) ac_try_echo=$ac_try;;
19620 esac
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622   (eval "$ac_try") 2>&5
19623   ac_status=$?
19624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625   (exit $ac_status); }; }; then
19626   ac_cv_func_std_isnan_in_cmath=yes
19627 else
19628   echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19630
19631         ac_cv_func_std_isnan_in_cmath=no
19632 fi
19633
19634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635   ac_ext=c
19636 ac_cpp='$CPP $CPPFLAGS'
19637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19640
19641 fi
19642 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19643 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19644
19645 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19646
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_STD_ISNAN_IN_CMATH 1
19649 _ACEOF
19650
19651 fi
19652
19653
19654 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19655 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19656 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19657   echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659   ac_ext=cpp
19660 ac_cpp='$CXXCPP $CPPFLAGS'
19661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19664
19665    cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h.  */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h.  */
19671 #include <math.h>
19672 int
19673 main ()
19674 {
19675 float f; isinf(f);
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 rm -f conftest.$ac_objext
19681 if { (ac_try="$ac_compile"
19682 case "(($ac_try" in
19683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684   *) ac_try_echo=$ac_try;;
19685 esac
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687   (eval "$ac_compile") 2>conftest.er1
19688   ac_status=$?
19689   grep -v '^ *+' conftest.er1 >conftest.err
19690   rm -f conftest.er1
19691   cat conftest.err >&5
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); } &&
19694          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19695   { (case "(($ac_try" in
19696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697   *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700   (eval "$ac_try") 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; } &&
19704          { ac_try='test -s conftest.$ac_objext'
19705   { (case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_try") 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }; }; then
19714   ac_cv_func_isinf_in_math_h=yes
19715 else
19716   echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719         ac_cv_func_isinf_in_math_h=no
19720 fi
19721
19722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723   ac_ext=c
19724 ac_cpp='$CPP $CPPFLAGS'
19725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19728
19729 fi
19730 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19731 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19732
19733 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19734
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_ISINF_IN_MATH_H 1
19737 _ACEOF
19738
19739 fi
19740
19741 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19742 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19743 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19744   echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746   ac_ext=cpp
19747 ac_cpp='$CXXCPP $CPPFLAGS'
19748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19751
19752    cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h.  */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h.  */
19758 #include <cmath>
19759 int
19760 main ()
19761 {
19762 float f; isinf(f);
19763   ;
19764   return 0;
19765 }
19766 _ACEOF
19767 rm -f conftest.$ac_objext
19768 if { (ac_try="$ac_compile"
19769 case "(($ac_try" in
19770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771   *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774   (eval "$ac_compile") 2>conftest.er1
19775   ac_status=$?
19776   grep -v '^ *+' conftest.er1 >conftest.err
19777   rm -f conftest.er1
19778   cat conftest.err >&5
19779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780   (exit $ac_status); } &&
19781          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19782   { (case "(($ac_try" in
19783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784   *) ac_try_echo=$ac_try;;
19785 esac
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787   (eval "$ac_try") 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; } &&
19791          { ac_try='test -s conftest.$ac_objext'
19792   { (case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_try") 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; }; then
19801   ac_cv_func_isinf_in_cmath=yes
19802 else
19803   echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19805
19806         ac_cv_func_isinf_in_cmath=no
19807 fi
19808
19809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19810   ac_ext=c
19811 ac_cpp='$CPP $CPPFLAGS'
19812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19815
19816 fi
19817 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19818 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19819
19820 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19821
19822 cat >>confdefs.h <<\_ACEOF
19823 #define HAVE_ISINF_IN_CMATH 1
19824 _ACEOF
19825
19826 fi
19827
19828 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19829 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19830 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   ac_ext=cpp
19834 ac_cpp='$CXXCPP $CPPFLAGS'
19835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19838
19839    cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845 #include <cmath>
19846 int
19847 main ()
19848 {
19849 float f; std::isinf(f);
19850   ;
19851   return 0;
19852 }
19853 _ACEOF
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_compile") 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } &&
19868          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19869   { (case "(($ac_try" in
19870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871   *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874   (eval "$ac_try") 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; } &&
19878          { ac_try='test -s conftest.$ac_objext'
19879   { (case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_try") 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   ac_cv_func_std_isinf_in_cmath=yes
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893         ac_cv_func_std_isinf_in_cmath=no
19894 fi
19895
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897   ac_ext=c
19898 ac_cpp='$CPP $CPPFLAGS'
19899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19902
19903 fi
19904 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19905 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19906
19907 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19908
19909 cat >>confdefs.h <<\_ACEOF
19910 #define HAVE_STD_ISINF_IN_CMATH 1
19911 _ACEOF
19912
19913 fi
19914
19915 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19916 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19917 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19918   echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920   ac_ext=cpp
19921 ac_cpp='$CXXCPP $CPPFLAGS'
19922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19925
19926    cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h.  */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h.  */
19932 #include <ieeefp.h>
19933 int
19934 main ()
19935 {
19936 float f; finite(f);
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_compile") 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } &&
19955          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19956   { (case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_try") 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; } &&
19965          { ac_try='test -s conftest.$ac_objext'
19966   { (case "(($ac_try" in
19967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968   *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971   (eval "$ac_try") 2>&5
19972   ac_status=$?
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); }; }; then
19975   ac_cv_func_finite_in_ieeefp_h=yes
19976 else
19977   echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980         ac_cv_func_finite_in_ieeefp_h=no
19981 fi
19982
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984   ac_ext=c
19985 ac_cpp='$CPP $CPPFLAGS'
19986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19989
19990 fi
19991 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19992 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19993
19994 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19995
19996 cat >>confdefs.h <<\_ACEOF
19997 #define HAVE_FINITE_IN_IEEEFP_H 1
19998 _ACEOF
19999
20000 fi
20001
20002
20003
20004 if test "$llvm_cv_platform_type" = "Unix" ; then
20005
20006
20007 for ac_header in stdlib.h unistd.h
20008 do
20009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20011   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20014   echo $ECHO_N "(cached) $ECHO_C" >&6
20015 fi
20016 ac_res=`eval echo '${'$as_ac_Header'}'`
20017                { echo "$as_me:$LINENO: result: $ac_res" >&5
20018 echo "${ECHO_T}$ac_res" >&6; }
20019 else
20020   # Is the header compilable?
20021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h.  */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h.  */
20029 $ac_includes_default
20030 #include <$ac_header>
20031 _ACEOF
20032 rm -f conftest.$ac_objext
20033 if { (ac_try="$ac_compile"
20034 case "(($ac_try" in
20035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036   *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039   (eval "$ac_compile") 2>conftest.er1
20040   ac_status=$?
20041   grep -v '^ *+' conftest.er1 >conftest.err
20042   rm -f conftest.er1
20043   cat conftest.err >&5
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } &&
20046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20047   { (case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052   (eval "$ac_try") 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); }; } &&
20056          { ac_try='test -s conftest.$ac_objext'
20057   { (case "(($ac_try" in
20058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059   *) ac_try_echo=$ac_try;;
20060 esac
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062   (eval "$ac_try") 2>&5
20063   ac_status=$?
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); }; }; then
20066   ac_header_compiler=yes
20067 else
20068   echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20070
20071         ac_header_compiler=no
20072 fi
20073
20074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20076 echo "${ECHO_T}$ac_header_compiler" >&6; }
20077
20078 # Is the header present?
20079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20081 cat >conftest.$ac_ext <<_ACEOF
20082 /* confdefs.h.  */
20083 _ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h.  */
20087 #include <$ac_header>
20088 _ACEOF
20089 if { (ac_try="$ac_cpp conftest.$ac_ext"
20090 case "(($ac_try" in
20091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092   *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } >/dev/null; then
20102   if test -s conftest.err; then
20103     ac_cpp_err=$ac_c_preproc_warn_flag
20104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20105   else
20106     ac_cpp_err=
20107   fi
20108 else
20109   ac_cpp_err=yes
20110 fi
20111 if test -z "$ac_cpp_err"; then
20112   ac_header_preproc=yes
20113 else
20114   echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117   ac_header_preproc=no
20118 fi
20119
20120 rm -f conftest.err conftest.$ac_ext
20121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20122 echo "${ECHO_T}$ac_header_preproc" >&6; }
20123
20124 # So?  What about this header?
20125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20126   yes:no: )
20127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20131     ac_header_preproc=yes
20132     ;;
20133   no:yes:* )
20134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20146     ( cat <<\_ASBOX
20147 ## ------------------------------ ##
20148 ## Report this to bugs@yourdomain ##
20149 ## ------------------------------ ##
20150 _ASBOX
20151      ) | sed "s/^/$as_me: WARNING:     /" >&2
20152     ;;
20153 esac
20154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159   eval "$as_ac_Header=\$ac_header_preproc"
20160 fi
20161 ac_res=`eval echo '${'$as_ac_Header'}'`
20162                { echo "$as_me:$LINENO: result: $ac_res" >&5
20163 echo "${ECHO_T}$ac_res" >&6; }
20164
20165 fi
20166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20167   cat >>confdefs.h <<_ACEOF
20168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20169 _ACEOF
20170
20171 fi
20172
20173 done
20174
20175
20176 for ac_func in getpagesize
20177 do
20178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20182   echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20184   cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h.  */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h.  */
20190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20192 #define $ac_func innocuous_$ac_func
20193
20194 /* System header to define __stub macros and hopefully few prototypes,
20195     which can conflict with char $ac_func (); below.
20196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20197     <limits.h> exists even on freestanding compilers.  */
20198
20199 #ifdef __STDC__
20200 # include <limits.h>
20201 #else
20202 # include <assert.h>
20203 #endif
20204
20205 #undef $ac_func
20206
20207 /* Override any GCC internal prototype to avoid an error.
20208    Use char because int might match the return type of a GCC
20209    builtin and then its argument prototype would still apply.  */
20210 #ifdef __cplusplus
20211 extern "C"
20212 #endif
20213 char $ac_func ();
20214 /* The GNU C library defines this for functions which it implements
20215     to always fail with ENOSYS.  Some functions are actually named
20216     something starting with __ and the normal name is an alias.  */
20217 #if defined __stub_$ac_func || defined __stub___$ac_func
20218 choke me
20219 #endif
20220
20221 int
20222 main ()
20223 {
20224 return $ac_func ();
20225   ;
20226   return 0;
20227 }
20228 _ACEOF
20229 rm -f conftest.$ac_objext conftest$ac_exeext
20230 if { (ac_try="$ac_link"
20231 case "(($ac_try" in
20232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233   *) ac_try_echo=$ac_try;;
20234 esac
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236   (eval "$ac_link") 2>conftest.er1
20237   ac_status=$?
20238   grep -v '^ *+' conftest.er1 >conftest.err
20239   rm -f conftest.er1
20240   cat conftest.err >&5
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); } &&
20243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20244   { (case "(($ac_try" in
20245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246   *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249   (eval "$ac_try") 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; } &&
20253          { ac_try='test -s conftest$ac_exeext'
20254   { (case "(($ac_try" in
20255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256   *) ac_try_echo=$ac_try;;
20257 esac
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259   (eval "$ac_try") 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); }; }; then
20263   eval "$as_ac_var=yes"
20264 else
20265   echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268         eval "$as_ac_var=no"
20269 fi
20270
20271 rm -f core conftest.err conftest.$ac_objext \
20272       conftest$ac_exeext conftest.$ac_ext
20273 fi
20274 ac_res=`eval echo '${'$as_ac_var'}'`
20275                { echo "$as_me:$LINENO: result: $ac_res" >&5
20276 echo "${ECHO_T}$ac_res" >&6; }
20277 if test `eval echo '${'$as_ac_var'}'` = yes; then
20278   cat >>confdefs.h <<_ACEOF
20279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20280 _ACEOF
20281
20282 fi
20283 done
20284
20285 { echo "$as_me:$LINENO: checking for working mmap" >&5
20286 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20287 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   if test "$cross_compiling" = yes; then
20291   ac_cv_func_mmap_fixed_mapped=no
20292 else
20293   cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h.  */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h.  */
20299 $ac_includes_default
20300 /* malloc might have been renamed as rpl_malloc. */
20301 #undef malloc
20302
20303 /* Thanks to Mike Haertel and Jim Avera for this test.
20304    Here is a matrix of mmap possibilities:
20305         mmap private not fixed
20306         mmap private fixed at somewhere currently unmapped
20307         mmap private fixed at somewhere already mapped
20308         mmap shared not fixed
20309         mmap shared fixed at somewhere currently unmapped
20310         mmap shared fixed at somewhere already mapped
20311    For private mappings, we should verify that changes cannot be read()
20312    back from the file, nor mmap's back from the file at a different
20313    address.  (There have been systems where private was not correctly
20314    implemented like the infamous i386 svr4.0, and systems where the
20315    VM page cache was not coherent with the file system buffer cache
20316    like early versions of FreeBSD and possibly contemporary NetBSD.)
20317    For shared mappings, we should conversely verify that changes get
20318    propagated back to all the places they're supposed to be.
20319
20320    Grep wants private fixed already mapped.
20321    The main things grep needs to know about mmap are:
20322    * does it exist and is it safe to write into the mmap'd area
20323    * how to use it (BSD variants)  */
20324
20325 #include <fcntl.h>
20326 #include <sys/mman.h>
20327
20328 #if !STDC_HEADERS && !HAVE_STDLIB_H
20329 char *malloc ();
20330 #endif
20331
20332 /* This mess was copied from the GNU getpagesize.h.  */
20333 #if !HAVE_GETPAGESIZE
20334 /* Assume that all systems that can run configure have sys/param.h.  */
20335 # if !HAVE_SYS_PARAM_H
20336 #  define HAVE_SYS_PARAM_H 1
20337 # endif
20338
20339 # ifdef _SC_PAGESIZE
20340 #  define getpagesize() sysconf(_SC_PAGESIZE)
20341 # else /* no _SC_PAGESIZE */
20342 #  if HAVE_SYS_PARAM_H
20343 #   include <sys/param.h>
20344 #   ifdef EXEC_PAGESIZE
20345 #    define getpagesize() EXEC_PAGESIZE
20346 #   else /* no EXEC_PAGESIZE */
20347 #    ifdef NBPG
20348 #     define getpagesize() NBPG * CLSIZE
20349 #     ifndef CLSIZE
20350 #      define CLSIZE 1
20351 #     endif /* no CLSIZE */
20352 #    else /* no NBPG */
20353 #     ifdef NBPC
20354 #      define getpagesize() NBPC
20355 #     else /* no NBPC */
20356 #      ifdef PAGESIZE
20357 #       define getpagesize() PAGESIZE
20358 #      endif /* PAGESIZE */
20359 #     endif /* no NBPC */
20360 #    endif /* no NBPG */
20361 #   endif /* no EXEC_PAGESIZE */
20362 #  else /* no HAVE_SYS_PARAM_H */
20363 #   define getpagesize() 8192   /* punt totally */
20364 #  endif /* no HAVE_SYS_PARAM_H */
20365 # endif /* no _SC_PAGESIZE */
20366
20367 #endif /* no HAVE_GETPAGESIZE */
20368
20369 int
20370 main ()
20371 {
20372   char *data, *data2, *data3;
20373   int i, pagesize;
20374   int fd;
20375
20376   pagesize = getpagesize ();
20377
20378   /* First, make a file with some known garbage in it. */
20379   data = (char *) malloc (pagesize);
20380   if (!data)
20381     return 1;
20382   for (i = 0; i < pagesize; ++i)
20383     *(data + i) = rand ();
20384   umask (0);
20385   fd = creat ("conftest.mmap", 0600);
20386   if (fd < 0)
20387     return 1;
20388   if (write (fd, data, pagesize) != pagesize)
20389     return 1;
20390   close (fd);
20391
20392   /* Next, try to mmap the file at a fixed address which already has
20393      something else allocated at it.  If we can, also make sure that
20394      we see the same garbage.  */
20395   fd = open ("conftest.mmap", O_RDWR);
20396   if (fd < 0)
20397     return 1;
20398   data2 = (char *) malloc (2 * pagesize);
20399   if (!data2)
20400     return 1;
20401   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20402   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20403                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20404     return 1;
20405   for (i = 0; i < pagesize; ++i)
20406     if (*(data + i) != *(data2 + i))
20407       return 1;
20408
20409   /* Finally, make sure that changes to the mapped area do not
20410      percolate back to the file as seen by read().  (This is a bug on
20411      some variants of i386 svr4.0.)  */
20412   for (i = 0; i < pagesize; ++i)
20413     *(data2 + i) = *(data2 + i) + 1;
20414   data3 = (char *) malloc (pagesize);
20415   if (!data3)
20416     return 1;
20417   if (read (fd, data3, pagesize) != pagesize)
20418     return 1;
20419   for (i = 0; i < pagesize; ++i)
20420     if (*(data + i) != *(data3 + i))
20421       return 1;
20422   close (fd);
20423   return 0;
20424 }
20425 _ACEOF
20426 rm -f conftest$ac_exeext
20427 if { (ac_try="$ac_link"
20428 case "(($ac_try" in
20429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430   *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433   (eval "$ac_link") 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20437   { (case "(($ac_try" in
20438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439   *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442   (eval "$ac_try") 2>&5
20443   ac_status=$?
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); }; }; then
20446   ac_cv_func_mmap_fixed_mapped=yes
20447 else
20448   echo "$as_me: program exited with status $ac_status" >&5
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 ( exit $ac_status )
20453 ac_cv_func_mmap_fixed_mapped=no
20454 fi
20455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20456 fi
20457
20458
20459 fi
20460 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20461 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20462 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20463
20464 cat >>confdefs.h <<\_ACEOF
20465 #define HAVE_MMAP 1
20466 _ACEOF
20467
20468 fi
20469 rm -f conftest.mmap
20470
20471   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20472 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20473 if test "${ac_cv_func_mmap_file+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476    ac_ext=c
20477 ac_cpp='$CPP $CPPFLAGS'
20478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20481
20482   if test "$cross_compiling" = yes; then
20483   ac_cv_func_mmap_file=no
20484 else
20485   cat >conftest.$ac_ext <<_ACEOF
20486
20487     /* confdefs.h.  */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h.  */
20492
20493 #include <sys/types.h>
20494 #include <sys/mman.h>
20495 #include <fcntl.h>
20496
20497 int
20498 main ()
20499 {
20500
20501   int fd;
20502   fd = creat ("foo",0777);
20503   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20504   unlink ("foo");
20505   return (fd != (int) MAP_FAILED);
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest$ac_exeext
20511 if { (ac_try="$ac_link"
20512 case "(($ac_try" in
20513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514   *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517   (eval "$ac_link") 2>&5
20518   ac_status=$?
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20521   { (case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_try") 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; }; then
20530   ac_cv_func_mmap_file=yes
20531 else
20532   echo "$as_me: program exited with status $ac_status" >&5
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536 ( exit $ac_status )
20537 ac_cv_func_mmap_file=no
20538 fi
20539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20540 fi
20541
20542
20543   ac_ext=c
20544 ac_cpp='$CPP $CPPFLAGS'
20545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20548
20549
20550 fi
20551 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20552 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20553 if test "$ac_cv_func_mmap_file" = yes; then
20554
20555 cat >>confdefs.h <<\_ACEOF
20556 #define HAVE_MMAP_FILE
20557 _ACEOF
20558
20559    MMAP_FILE=yes
20560
20561 fi
20562
20563   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20564 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20565 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568   if test "$llvm_cv_os_type" = "Interix" ; then
20569    ac_cv_need_dev_zero_for_mmap=yes
20570  else
20571    ac_cv_need_dev_zero_for_mmap=no
20572  fi
20573
20574 fi
20575 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20576 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20577 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20578
20579 cat >>confdefs.h <<\_ACEOF
20580 #define NEED_DEV_ZERO_FOR_MMAP 1
20581 _ACEOF
20582
20583 fi
20584
20585   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20586   then
20587     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20588 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20589   fi
20590   if test "$ac_cv_func_mmap_file" = "no"
20591   then
20592     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20593 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20594   fi
20595 fi
20596
20597 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20598 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20599 ac_ext=cpp
20600 ac_cpp='$CXXCPP $CPPFLAGS'
20601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20604
20605 cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h.  */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h.  */
20611 int main() {
20612         volatile unsigned long val = 1;
20613         __sync_synchronize();
20614         __sync_val_compare_and_swap(&val, 1, 0);
20615         __sync_add_and_fetch(&val, 1);
20616         __sync_sub_and_fetch(&val, 1);
20617         return 0;
20618       }
20619
20620 _ACEOF
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_link") 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } &&
20635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20636   { (case "(($ac_try" in
20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638   *) ac_try_echo=$ac_try;;
20639 esac
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641   (eval "$ac_try") 2>&5
20642   ac_status=$?
20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); }; } &&
20645          { ac_try='test -s conftest$ac_exeext'
20646   { (case "(($ac_try" in
20647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648   *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651   (eval "$ac_try") 2>&5
20652   ac_status=$?
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); }; }; then
20655   ac_ext=c
20656 ac_cpp='$CPP $CPPFLAGS'
20657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20660
20661   { echo "$as_me:$LINENO: result: yes" >&5
20662 echo "${ECHO_T}yes" >&6; }
20663
20664 cat >>confdefs.h <<\_ACEOF
20665 #define LLVM_HAS_ATOMICS 1
20666 _ACEOF
20667
20668 else
20669   echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672         { echo "$as_me:$LINENO: result: no" >&5
20673 echo "${ECHO_T}no" >&6; }
20674
20675 cat >>confdefs.h <<\_ACEOF
20676 #define LLVM_HAS_ATOMICS 0
20677 _ACEOF
20678
20679   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20680 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20681 fi
20682
20683 rm -f core conftest.err conftest.$ac_objext \
20684       conftest$ac_exeext conftest.$ac_ext
20685
20686
20687 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20688   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20689 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20690 if test "${llvm_cv_linux_mixed+set}" = set; then
20691   echo $ECHO_N "(cached) $ECHO_C" >&6
20692 else
20693    ac_ext=c
20694 ac_cpp='$CPP $CPPFLAGS'
20695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20698
20699   cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h.  */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h.  */
20705 #ifndef __x86_64__
20706        error: Not x86-64 even if uname says so!
20707       #endif
20708
20709 int
20710 main ()
20711 {
20712
20713   ;
20714   return 0;
20715 }
20716 _ACEOF
20717 rm -f conftest.$ac_objext
20718 if { (ac_try="$ac_compile"
20719 case "(($ac_try" in
20720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721   *) ac_try_echo=$ac_try;;
20722 esac
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724   (eval "$ac_compile") 2>conftest.er1
20725   ac_status=$?
20726   grep -v '^ *+' conftest.er1 >conftest.err
20727   rm -f conftest.er1
20728   cat conftest.err >&5
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); } &&
20731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732   { (case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_try") 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; } &&
20741          { ac_try='test -s conftest.$ac_objext'
20742   { (case "(($ac_try" in
20743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744   *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747   (eval "$ac_try") 2>&5
20748   ac_status=$?
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; }; then
20751   llvm_cv_linux_mixed=no
20752 else
20753   echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756         llvm_cv_linux_mixed=yes
20757 fi
20758
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760   ac_ext=c
20761 ac_cpp='$CPP $CPPFLAGS'
20762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20765
20766
20767 fi
20768 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20769 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20770
20771   if test "$llvm_cv_linux_mixed" = "yes"; then
20772     llvm_cv_target_arch="x86"
20773     ARCH="x86"
20774   fi
20775 fi
20776
20777
20778 for ac_func in __dso_handle
20779 do
20780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20784   echo $ECHO_N "(cached) $ECHO_C" >&6
20785 else
20786   cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h.  */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h.  */
20792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20794 #define $ac_func innocuous_$ac_func
20795
20796 /* System header to define __stub macros and hopefully few prototypes,
20797     which can conflict with char $ac_func (); below.
20798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20799     <limits.h> exists even on freestanding compilers.  */
20800
20801 #ifdef __STDC__
20802 # include <limits.h>
20803 #else
20804 # include <assert.h>
20805 #endif
20806
20807 #undef $ac_func
20808
20809 /* Override any GCC internal prototype to avoid an error.
20810    Use char because int might match the return type of a GCC
20811    builtin and then its argument prototype would still apply.  */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 char $ac_func ();
20816 /* The GNU C library defines this for functions which it implements
20817     to always fail with ENOSYS.  Some functions are actually named
20818     something starting with __ and the normal name is an alias.  */
20819 #if defined __stub_$ac_func || defined __stub___$ac_func
20820 choke me
20821 #endif
20822
20823 int
20824 main ()
20825 {
20826 return $ac_func ();
20827   ;
20828   return 0;
20829 }
20830 _ACEOF
20831 rm -f conftest.$ac_objext conftest$ac_exeext
20832 if { (ac_try="$ac_link"
20833 case "(($ac_try" in
20834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835   *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838   (eval "$ac_link") 2>conftest.er1
20839   ac_status=$?
20840   grep -v '^ *+' conftest.er1 >conftest.err
20841   rm -f conftest.er1
20842   cat conftest.err >&5
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); } &&
20845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20846   { (case "(($ac_try" in
20847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848   *) ac_try_echo=$ac_try;;
20849 esac
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851   (eval "$ac_try") 2>&5
20852   ac_status=$?
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); }; } &&
20855          { ac_try='test -s conftest$ac_exeext'
20856   { (case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_try") 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); }; }; then
20865   eval "$as_ac_var=yes"
20866 else
20867   echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870         eval "$as_ac_var=no"
20871 fi
20872
20873 rm -f core conftest.err conftest.$ac_objext \
20874       conftest$ac_exeext conftest.$ac_ext
20875 fi
20876 ac_res=`eval echo '${'$as_ac_var'}'`
20877                { echo "$as_me:$LINENO: result: $ac_res" >&5
20878 echo "${ECHO_T}$ac_res" >&6; }
20879 if test `eval echo '${'$as_ac_var'}'` = yes; then
20880   cat >>confdefs.h <<_ACEOF
20881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20882 _ACEOF
20883
20884 fi
20885 done
20886
20887
20888 SHLIBEXT=$libltdl_cv_shlibext
20889
20890
20891 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20892
20893
20894 # Translate the various configuration directories and other basic
20895 # information into substitutions that will end up in Makefile.config.in
20896 # that these configured values can be used by the makefiles
20897 if test "${prefix}" = "NONE" ; then
20898   prefix="/usr/local"
20899 fi
20900 eval LLVM_PREFIX="${prefix}";
20901 eval LLVM_BINDIR="${prefix}/bin";
20902 eval LLVM_DATADIR="${prefix}/share/llvm";
20903 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20904 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20905 eval LLVM_INCLUDEDIR="${prefix}/include";
20906 eval LLVM_INFODIR="${prefix}/info";
20907 eval LLVM_MANDIR="${prefix}/man";
20908 LLVM_CONFIGTIME=`date`
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919 # Place the various directores into the config.h file as #defines so that we
20920 # can know about the installation paths within LLVM.
20921
20922 cat >>confdefs.h <<_ACEOF
20923 #define LLVM_PREFIX "$LLVM_PREFIX"
20924 _ACEOF
20925
20926
20927 cat >>confdefs.h <<_ACEOF
20928 #define LLVM_BINDIR "$LLVM_BINDIR"
20929 _ACEOF
20930
20931
20932 cat >>confdefs.h <<_ACEOF
20933 #define LLVM_DATADIR "$LLVM_DATADIR"
20934 _ACEOF
20935
20936
20937 cat >>confdefs.h <<_ACEOF
20938 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20939 _ACEOF
20940
20941
20942 cat >>confdefs.h <<_ACEOF
20943 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20944 _ACEOF
20945
20946
20947 cat >>confdefs.h <<_ACEOF
20948 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20949 _ACEOF
20950
20951
20952 cat >>confdefs.h <<_ACEOF
20953 #define LLVM_INFODIR "$LLVM_INFODIR"
20954 _ACEOF
20955
20956
20957 cat >>confdefs.h <<_ACEOF
20958 #define LLVM_MANDIR "$LLVM_MANDIR"
20959 _ACEOF
20960
20961
20962 cat >>confdefs.h <<_ACEOF
20963 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20964 _ACEOF
20965
20966
20967 cat >>confdefs.h <<_ACEOF
20968 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20969 _ACEOF
20970
20971
20972 # Determine which bindings to build.
20973 if test "$BINDINGS_TO_BUILD" = auto ; then
20974   BINDINGS_TO_BUILD=""
20975   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20976     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20977   fi
20978 fi
20979 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20980
20981
20982 # This isn't really configurey, but it avoids having to repeat the list in
20983 # other files.
20984 ALL_BINDINGS=ocaml
20985
20986
20987 # Do any work necessary to ensure that bindings have what they need.
20988 binding_prereqs_failed=0
20989 for a_binding in $BINDINGS_TO_BUILD ; do
20990   case "$a_binding" in
20991   ocaml)
20992     if test "x$OCAMLC" = x ; then
20993       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20994 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20995       binding_prereqs_failed=1
20996     fi
20997     if test "x$OCAMLDEP" = x ; then
20998       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20999 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21000       binding_prereqs_failed=1
21001     fi
21002     if test "x$OCAMLOPT" = x ; then
21003       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21004 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21005           fi
21006     if test "x$with_ocaml_libdir" != xauto ; then
21007       OCAML_LIBDIR=$with_ocaml_libdir
21008
21009     else
21010       ocaml_stdlib="`"$OCAMLC" -where`"
21011       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21012       then
21013         # ocaml stdlib is beneath our prefix; use stdlib
21014         OCAML_LIBDIR=$ocaml_stdlib
21015
21016       else
21017         # ocaml stdlib is outside our prefix; use libdir/ocaml
21018         OCAML_LIBDIR=${prefix}/lib/ocaml
21019
21020       fi
21021     fi
21022     ;;
21023   esac
21024 done
21025 if test "$binding_prereqs_failed" = 1 ; then
21026   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21027 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21028    { (exit 1); exit 1; }; }
21029 fi
21030
21031 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21032 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21033 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21034   echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036    ac_ext=cpp
21037 ac_cpp='$CXXCPP $CPPFLAGS'
21038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21041
21042   oldcxxflags="$CXXFLAGS"
21043   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21044   cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h.  */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h.  */
21050 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21051 int
21052 main ()
21053 {
21054 X<int>().f();
21055   ;
21056   return 0;
21057 }
21058 _ACEOF
21059 rm -f conftest.$ac_objext
21060 if { (ac_try="$ac_compile"
21061 case "(($ac_try" in
21062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063   *) ac_try_echo=$ac_try;;
21064 esac
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066   (eval "$ac_compile") 2>conftest.er1
21067   ac_status=$?
21068   grep -v '^ *+' conftest.er1 >conftest.err
21069   rm -f conftest.er1
21070   cat conftest.err >&5
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); } &&
21073          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21074   { (case "(($ac_try" in
21075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076   *) ac_try_echo=$ac_try;;
21077 esac
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079   (eval "$ac_try") 2>&5
21080   ac_status=$?
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); }; } &&
21083          { ac_try='test -s conftest.$ac_objext'
21084   { (case "(($ac_try" in
21085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086   *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089   (eval "$ac_try") 2>&5
21090   ac_status=$?
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); }; }; then
21093   llvm_cv_cxx_visibility_inlines_hidden=yes
21094 else
21095   echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098         llvm_cv_cxx_visibility_inlines_hidden=no
21099 fi
21100
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102   CXXFLAGS="$oldcxxflags"
21103   ac_ext=c
21104 ac_cpp='$CPP $CPPFLAGS'
21105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21108
21109
21110 fi
21111 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21112 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21113 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21114   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21115
21116 else
21117   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21118
21119 fi
21120
21121
21122 if test "$llvm_cv_link_use_r" = "yes" ; then
21123   RPATH="-Wl,-R"
21124 else
21125   RPATH="-Wl,-rpath"
21126 fi
21127
21128
21129 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21130   RDYNAMIC="-rdynamic"
21131 else
21132   RDYNAMIC=""
21133 fi
21134
21135
21136
21137
21138 ac_config_files="$ac_config_files Makefile.common"
21139
21140 ac_config_files="$ac_config_files Makefile.llvm.config"
21141
21142
21143 ac_config_commands="$ac_config_commands Makefile"
21144
21145
21146 ac_config_commands="$ac_config_commands lib/Makefile"
21147
21148
21149 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21150
21151
21152 ac_config_commands="$ac_config_commands tools/Makefile"
21153
21154
21155 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21156
21157
21158
21159 cat >confcache <<\_ACEOF
21160 # This file is a shell script that caches the results of configure
21161 # tests run on this system so they can be shared between configure
21162 # scripts and configure runs, see configure's option --config-cache.
21163 # It is not useful on other systems.  If it contains results you don't
21164 # want to keep, you may remove or edit it.
21165 #
21166 # config.status only pays attention to the cache file if you give it
21167 # the --recheck option to rerun configure.
21168 #
21169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21171 # following values.
21172
21173 _ACEOF
21174
21175 # The following way of writing the cache mishandles newlines in values,
21176 # but we know of no workaround that is simple, portable, and efficient.
21177 # So, we kill variables containing newlines.
21178 # Ultrix sh set writes to stderr and can't be redirected directly,
21179 # and sets the high bit in the cache file unless we assign to the vars.
21180 (
21181   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21182     eval ac_val=\$$ac_var
21183     case $ac_val in #(
21184     *${as_nl}*)
21185       case $ac_var in #(
21186       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21187 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21188       esac
21189       case $ac_var in #(
21190       _ | IFS | as_nl) ;; #(
21191       *) $as_unset $ac_var ;;
21192       esac ;;
21193     esac
21194   done
21195
21196   (set) 2>&1 |
21197     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21198     *${as_nl}ac_space=\ *)
21199       # `set' does not quote correctly, so add quotes (double-quote
21200       # substitution turns \\\\ into \\, and sed turns \\ into \).
21201       sed -n \
21202         "s/'/'\\\\''/g;
21203           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21204       ;; #(
21205     *)
21206       # `set' quotes correctly as required by POSIX, so do not add quotes.
21207       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21208       ;;
21209     esac |
21210     sort
21211 ) |
21212   sed '
21213      /^ac_cv_env_/b end
21214      t clear
21215      :clear
21216      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21217      t end
21218      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21219      :end' >>confcache
21220 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21221   if test -w "$cache_file"; then
21222     test "x$cache_file" != "x/dev/null" &&
21223       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21224 echo "$as_me: updating cache $cache_file" >&6;}
21225     cat confcache >$cache_file
21226   else
21227     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21228 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21229   fi
21230 fi
21231 rm -f confcache
21232
21233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21234 # Let make expand exec_prefix.
21235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21236
21237 # Transform confdefs.h into DEFS.
21238 # Protect against shell expansion while executing Makefile rules.
21239 # Protect against Makefile macro expansion.
21240 #
21241 # If the first sed substitution is executed (which looks for macros that
21242 # take arguments), then branch to the quote section.  Otherwise,
21243 # look for a macro that doesn't take arguments.
21244 ac_script='
21245 t clear
21246 :clear
21247 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21248 t quote
21249 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21250 t quote
21251 b any
21252 :quote
21253 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21254 s/\[/\\&/g
21255 s/\]/\\&/g
21256 s/\$/$$/g
21257 H
21258 :any
21259 ${
21260         g
21261         s/^\n//
21262         s/\n/ /g
21263         p
21264 }
21265 '
21266 DEFS=`sed -n "$ac_script" confdefs.h`
21267
21268
21269 ac_libobjs=
21270 ac_ltlibobjs=
21271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21272   # 1. Remove the extension, and $U if already installed.
21273   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21274   ac_i=`echo "$ac_i" | sed "$ac_script"`
21275   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21276   #    will be set to the directory where LIBOBJS objects are built.
21277   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21278   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21279 done
21280 LIBOBJS=$ac_libobjs
21281
21282 LTLIBOBJS=$ac_ltlibobjs
21283
21284
21285 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21286   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21287 Usually this means the macro was only invoked conditionally." >&5
21288 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21289 Usually this means the macro was only invoked conditionally." >&2;}
21290    { (exit 1); exit 1; }; }
21291 fi
21292 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21293   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21294 Usually this means the macro was only invoked conditionally." >&5
21295 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21296 Usually this means the macro was only invoked conditionally." >&2;}
21297    { (exit 1); exit 1; }; }
21298 fi
21299
21300 : ${CONFIG_STATUS=./config.status}
21301 ac_clean_files_save=$ac_clean_files
21302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21303 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21304 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21305 cat >$CONFIG_STATUS <<_ACEOF
21306 #! $SHELL
21307 # Generated by $as_me.
21308 # Run this file to recreate the current configuration.
21309 # Compiler output produced by configure, useful for debugging
21310 # configure, is in config.log if it exists.
21311
21312 debug=false
21313 ac_cs_recheck=false
21314 ac_cs_silent=false
21315 SHELL=\${CONFIG_SHELL-$SHELL}
21316 _ACEOF
21317
21318 cat >>$CONFIG_STATUS <<\_ACEOF
21319 ## --------------------- ##
21320 ## M4sh Initialization.  ##
21321 ## --------------------- ##
21322
21323 # Be Bourne compatible
21324 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21325   emulate sh
21326   NULLCMD=:
21327   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21328   # is contrary to our usage.  Disable this feature.
21329   alias -g '${1+"$@"}'='"$@"'
21330   setopt NO_GLOB_SUBST
21331 else
21332   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21333 fi
21334 BIN_SH=xpg4; export BIN_SH # for Tru64
21335 DUALCASE=1; export DUALCASE # for MKS sh
21336
21337
21338 # PATH needs CR
21339 # Avoid depending upon Character Ranges.
21340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21343 as_cr_digits='0123456789'
21344 as_cr_alnum=$as_cr_Letters$as_cr_digits
21345
21346 # The user is always right.
21347 if test "${PATH_SEPARATOR+set}" != set; then
21348   echo "#! /bin/sh" >conf$$.sh
21349   echo  "exit 0"   >>conf$$.sh
21350   chmod +x conf$$.sh
21351   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21352     PATH_SEPARATOR=';'
21353   else
21354     PATH_SEPARATOR=:
21355   fi
21356   rm -f conf$$.sh
21357 fi
21358
21359 # Support unset when possible.
21360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21361   as_unset=unset
21362 else
21363   as_unset=false
21364 fi
21365
21366
21367 # IFS
21368 # We need space, tab and new line, in precisely that order.  Quoting is
21369 # there to prevent editors from complaining about space-tab.
21370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21371 # splitting by setting IFS to empty value.)
21372 as_nl='
21373 '
21374 IFS=" ""        $as_nl"
21375
21376 # Find who we are.  Look in the path if we contain no directory separator.
21377 case $0 in
21378   *[\\/]* ) as_myself=$0 ;;
21379   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21380 for as_dir in $PATH
21381 do
21382   IFS=$as_save_IFS
21383   test -z "$as_dir" && as_dir=.
21384   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21385 done
21386 IFS=$as_save_IFS
21387
21388      ;;
21389 esac
21390 # We did not find ourselves, most probably we were run as `sh COMMAND'
21391 # in which case we are not to be found in the path.
21392 if test "x$as_myself" = x; then
21393   as_myself=$0
21394 fi
21395 if test ! -f "$as_myself"; then
21396   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21397   { (exit 1); exit 1; }
21398 fi
21399
21400 # Work around bugs in pre-3.0 UWIN ksh.
21401 for as_var in ENV MAIL MAILPATH
21402 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21403 done
21404 PS1='$ '
21405 PS2='> '
21406 PS4='+ '
21407
21408 # NLS nuisances.
21409 for as_var in \
21410   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21411   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21412   LC_TELEPHONE LC_TIME
21413 do
21414   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21415     eval $as_var=C; export $as_var
21416   else
21417     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21418   fi
21419 done
21420
21421 # Required to use basename.
21422 if expr a : '\(a\)' >/dev/null 2>&1 &&
21423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21424   as_expr=expr
21425 else
21426   as_expr=false
21427 fi
21428
21429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21430   as_basename=basename
21431 else
21432   as_basename=false
21433 fi
21434
21435
21436 # Name of the executable.
21437 as_me=`$as_basename -- "$0" ||
21438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21439          X"$0" : 'X\(//\)$' \| \
21440          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21441 echo X/"$0" |
21442     sed '/^.*\/\([^/][^/]*\)\/*$/{
21443             s//\1/
21444             q
21445           }
21446           /^X\/\(\/\/\)$/{
21447             s//\1/
21448             q
21449           }
21450           /^X\/\(\/\).*/{
21451             s//\1/
21452             q
21453           }
21454           s/.*/./; q'`
21455
21456 # CDPATH.
21457 $as_unset CDPATH
21458
21459
21460
21461   as_lineno_1=$LINENO
21462   as_lineno_2=$LINENO
21463   test "x$as_lineno_1" != "x$as_lineno_2" &&
21464   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21465
21466   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21467   # uniformly replaced by the line number.  The first 'sed' inserts a
21468   # line-number line after each line using $LINENO; the second 'sed'
21469   # does the real work.  The second script uses 'N' to pair each
21470   # line-number line with the line containing $LINENO, and appends
21471   # trailing '-' during substitution so that $LINENO is not a special
21472   # case at line end.
21473   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21474   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21475   # E. McMahon (1931-1989) for sed's syntax.  :-)
21476   sed -n '
21477     p
21478     /[$]LINENO/=
21479   ' <$as_myself |
21480     sed '
21481       s/[$]LINENO.*/&-/
21482       t lineno
21483       b
21484       :lineno
21485       N
21486       :loop
21487       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21488       t loop
21489       s/-\n.*//
21490     ' >$as_me.lineno &&
21491   chmod +x "$as_me.lineno" ||
21492     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21493    { (exit 1); exit 1; }; }
21494
21495   # Don't try to exec as it changes $[0], causing all sort of problems
21496   # (the dirname of $[0] is not the place where we might find the
21497   # original and so on.  Autoconf is especially sensitive to this).
21498   . "./$as_me.lineno"
21499   # Exit status is that of the last command.
21500   exit
21501 }
21502
21503
21504 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21505   as_dirname=dirname
21506 else
21507   as_dirname=false
21508 fi
21509
21510 ECHO_C= ECHO_N= ECHO_T=
21511 case `echo -n x` in
21512 -n*)
21513   case `echo 'x\c'` in
21514   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21515   *)   ECHO_C='\c';;
21516   esac;;
21517 *)
21518   ECHO_N='-n';;
21519 esac
21520
21521 if expr a : '\(a\)' >/dev/null 2>&1 &&
21522    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21523   as_expr=expr
21524 else
21525   as_expr=false
21526 fi
21527
21528 rm -f conf$$ conf$$.exe conf$$.file
21529 if test -d conf$$.dir; then
21530   rm -f conf$$.dir/conf$$.file
21531 else
21532   rm -f conf$$.dir
21533   mkdir conf$$.dir
21534 fi
21535 echo >conf$$.file
21536 if ln -s conf$$.file conf$$ 2>/dev/null; then
21537   as_ln_s='ln -s'
21538   # ... but there are two gotchas:
21539   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21540   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21541   # In both cases, we have to default to `cp -p'.
21542   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21543     as_ln_s='cp -p'
21544 elif ln conf$$.file conf$$ 2>/dev/null; then
21545   as_ln_s=ln
21546 else
21547   as_ln_s='cp -p'
21548 fi
21549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21550 rmdir conf$$.dir 2>/dev/null
21551
21552 if mkdir -p . 2>/dev/null; then
21553   as_mkdir_p=:
21554 else
21555   test -d ./-p && rmdir ./-p
21556   as_mkdir_p=false
21557 fi
21558
21559 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21560 # systems may use methods other than mode bits to determine executability.
21561 cat >conf$$.file <<_ASEOF
21562 #! /bin/sh
21563 exit 0
21564 _ASEOF
21565 chmod +x conf$$.file
21566 if test -x conf$$.file >/dev/null 2>&1; then
21567   as_executable_p="test -x"
21568 else
21569   as_executable_p=:
21570 fi
21571 rm -f conf$$.file
21572
21573 # Sed expression to map a string onto a valid CPP name.
21574 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21575
21576 # Sed expression to map a string onto a valid variable name.
21577 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21578
21579
21580 exec 6>&1
21581
21582 # Save the log message, to keep $[0] and so on meaningful, and to
21583 # report actual input values of CONFIG_FILES etc. instead of their
21584 # values after options handling.
21585 ac_log="
21586 This file was extended by [SAMPLE] $as_me [x.xx], which was
21587 generated by GNU Autoconf 2.60.  Invocation command line was
21588
21589   CONFIG_FILES    = $CONFIG_FILES
21590   CONFIG_HEADERS  = $CONFIG_HEADERS
21591   CONFIG_LINKS    = $CONFIG_LINKS
21592   CONFIG_COMMANDS = $CONFIG_COMMANDS
21593   $ $0 $@
21594
21595 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21596 "
21597
21598 _ACEOF
21599
21600 cat >>$CONFIG_STATUS <<_ACEOF
21601 # Files that config.status was made for.
21602 config_files="$ac_config_files"
21603 config_commands="$ac_config_commands"
21604
21605 _ACEOF
21606
21607 cat >>$CONFIG_STATUS <<\_ACEOF
21608 ac_cs_usage="\
21609 \`$as_me' instantiates files from templates according to the
21610 current configuration.
21611
21612 Usage: $0 [OPTIONS] [FILE]...
21613
21614   -h, --help       print this help, then exit
21615   -V, --version    print version number, then exit
21616   -q, --quiet      do not print progress messages
21617   -d, --debug      don't remove temporary files
21618       --recheck    update $as_me by reconfiguring in the same conditions
21619   --file=FILE[:TEMPLATE]
21620                    instantiate the configuration file FILE
21621
21622 Configuration files:
21623 $config_files
21624
21625 Configuration commands:
21626 $config_commands
21627
21628 Report bugs to <bug-autoconf@gnu.org>."
21629
21630 _ACEOF
21631 cat >>$CONFIG_STATUS <<_ACEOF
21632 ac_cs_version="\\
21633 [SAMPLE] config.status [x.xx]
21634 configured by $0, generated by GNU Autoconf 2.60,
21635   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21636
21637 Copyright (C) 2006 Free Software Foundation, Inc.
21638 This config.status script is free software; the Free Software Foundation
21639 gives unlimited permission to copy, distribute and modify it."
21640
21641 ac_pwd='$ac_pwd'
21642 srcdir='$srcdir'
21643 INSTALL='$INSTALL'
21644 _ACEOF
21645
21646 cat >>$CONFIG_STATUS <<\_ACEOF
21647 # If no file are specified by the user, then we need to provide default
21648 # value.  By we need to know if files were specified by the user.
21649 ac_need_defaults=:
21650 while test $# != 0
21651 do
21652   case $1 in
21653   --*=*)
21654     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21655     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21656     ac_shift=:
21657     ;;
21658   *)
21659     ac_option=$1
21660     ac_optarg=$2
21661     ac_shift=shift
21662     ;;
21663   esac
21664
21665   case $ac_option in
21666   # Handling of the options.
21667   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21668     ac_cs_recheck=: ;;
21669   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21670     echo "$ac_cs_version"; exit ;;
21671   --debug | --debu | --deb | --de | --d | -d )
21672     debug=: ;;
21673   --file | --fil | --fi | --f )
21674     $ac_shift
21675     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21676     ac_need_defaults=false;;
21677   --he | --h |  --help | --hel | -h )
21678     echo "$ac_cs_usage"; exit ;;
21679   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21680   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21681     ac_cs_silent=: ;;
21682
21683   # This is an error.
21684   -*) { echo "$as_me: error: unrecognized option: $1
21685 Try \`$0 --help' for more information." >&2
21686    { (exit 1); exit 1; }; } ;;
21687
21688   *) ac_config_targets="$ac_config_targets $1"
21689      ac_need_defaults=false ;;
21690
21691   esac
21692   shift
21693 done
21694
21695 ac_configure_extra_args=
21696
21697 if $ac_cs_silent; then
21698   exec 6>/dev/null
21699   ac_configure_extra_args="$ac_configure_extra_args --silent"
21700 fi
21701
21702 _ACEOF
21703 cat >>$CONFIG_STATUS <<_ACEOF
21704 if \$ac_cs_recheck; then
21705   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21706   CONFIG_SHELL=$SHELL
21707   export CONFIG_SHELL
21708   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21709 fi
21710
21711 _ACEOF
21712 cat >>$CONFIG_STATUS <<\_ACEOF
21713 exec 5>>config.log
21714 {
21715   echo
21716   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21717 ## Running $as_me. ##
21718 _ASBOX
21719   echo "$ac_log"
21720 } >&5
21721
21722 _ACEOF
21723 cat >>$CONFIG_STATUS <<_ACEOF
21724 #
21725 # INIT-COMMANDS
21726 #
21727 llvm_src="${LLVM_SRC}"
21728
21729 _ACEOF
21730
21731 cat >>$CONFIG_STATUS <<\_ACEOF
21732
21733 # Handling of arguments.
21734 for ac_config_target in $ac_config_targets
21735 do
21736   case $ac_config_target in
21737     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21738     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21739     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21740     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21741     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21742     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21743     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21744     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21745
21746   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21747 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21748    { (exit 1); exit 1; }; };;
21749   esac
21750 done
21751
21752
21753 # If the user did not use the arguments to specify the items to instantiate,
21754 # then the envvar interface is used.  Set only those that are not.
21755 # We use the long form for the default assignment because of an extremely
21756 # bizarre bug on SunOS 4.1.3.
21757 if $ac_need_defaults; then
21758   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21759   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21760 fi
21761
21762 # Have a temporary directory for convenience.  Make it in the build tree
21763 # simply because there is no reason against having it here, and in addition,
21764 # creating and moving files from /tmp can sometimes cause problems.
21765 # Hook for its removal unless debugging.
21766 # Note that there is a small window in which the directory will not be cleaned:
21767 # after its creation but before its name has been assigned to `$tmp'.
21768 $debug ||
21769 {
21770   tmp=
21771   trap 'exit_status=$?
21772   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21773 ' 0
21774   trap '{ (exit 1); exit 1; }' 1 2 13 15
21775 }
21776 # Create a (secure) tmp directory for tmp files.
21777
21778 {
21779   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21780   test -n "$tmp" && test -d "$tmp"
21781 }  ||
21782 {
21783   tmp=./conf$$-$RANDOM
21784   (umask 077 && mkdir "$tmp")
21785 } ||
21786 {
21787    echo "$me: cannot create a temporary directory in ." >&2
21788    { (exit 1); exit 1; }
21789 }
21790
21791 #
21792 # Set up the sed scripts for CONFIG_FILES section.
21793 #
21794
21795 # No need to generate the scripts if there are no CONFIG_FILES.
21796 # This happens for instance when ./config.status config.h
21797 if test -n "$CONFIG_FILES"; then
21798
21799 _ACEOF
21800
21801
21802
21803 ac_delim='%!_!# '
21804 for ac_last_try in false false false false false :; do
21805   cat >conf$$subs.sed <<_ACEOF
21806 SHELL!$SHELL$ac_delim
21807 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21808 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21809 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21810 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21811 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21812 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21813 exec_prefix!$exec_prefix$ac_delim
21814 prefix!$prefix$ac_delim
21815 program_transform_name!$program_transform_name$ac_delim
21816 bindir!$bindir$ac_delim
21817 sbindir!$sbindir$ac_delim
21818 libexecdir!$libexecdir$ac_delim
21819 datarootdir!$datarootdir$ac_delim
21820 datadir!$datadir$ac_delim
21821 sysconfdir!$sysconfdir$ac_delim
21822 sharedstatedir!$sharedstatedir$ac_delim
21823 localstatedir!$localstatedir$ac_delim
21824 includedir!$includedir$ac_delim
21825 oldincludedir!$oldincludedir$ac_delim
21826 docdir!$docdir$ac_delim
21827 infodir!$infodir$ac_delim
21828 htmldir!$htmldir$ac_delim
21829 dvidir!$dvidir$ac_delim
21830 pdfdir!$pdfdir$ac_delim
21831 psdir!$psdir$ac_delim
21832 libdir!$libdir$ac_delim
21833 localedir!$localedir$ac_delim
21834 mandir!$mandir$ac_delim
21835 DEFS!$DEFS$ac_delim
21836 ECHO_C!$ECHO_C$ac_delim
21837 ECHO_N!$ECHO_N$ac_delim
21838 ECHO_T!$ECHO_T$ac_delim
21839 LIBS!$LIBS$ac_delim
21840 build_alias!$build_alias$ac_delim
21841 host_alias!$host_alias$ac_delim
21842 target_alias!$target_alias$ac_delim
21843 LLVM_SRC!$LLVM_SRC$ac_delim
21844 LLVM_OBJ!$LLVM_OBJ$ac_delim
21845 LLVM_VERSION!$LLVM_VERSION$ac_delim
21846 CC!$CC$ac_delim
21847 CFLAGS!$CFLAGS$ac_delim
21848 LDFLAGS!$LDFLAGS$ac_delim
21849 CPPFLAGS!$CPPFLAGS$ac_delim
21850 ac_ct_CC!$ac_ct_CC$ac_delim
21851 EXEEXT!$EXEEXT$ac_delim
21852 OBJEXT!$OBJEXT$ac_delim
21853 CXX!$CXX$ac_delim
21854 CXXFLAGS!$CXXFLAGS$ac_delim
21855 ac_ct_CXX!$ac_ct_CXX$ac_delim
21856 CPP!$CPP$ac_delim
21857 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21858 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21859 subdirs!$subdirs$ac_delim
21860 build!$build$ac_delim
21861 build_cpu!$build_cpu$ac_delim
21862 build_vendor!$build_vendor$ac_delim
21863 build_os!$build_os$ac_delim
21864 host!$host$ac_delim
21865 host_cpu!$host_cpu$ac_delim
21866 host_vendor!$host_vendor$ac_delim
21867 host_os!$host_os$ac_delim
21868 target!$target$ac_delim
21869 target_cpu!$target_cpu$ac_delim
21870 target_vendor!$target_vendor$ac_delim
21871 target_os!$target_os$ac_delim
21872 OS!$OS$ac_delim
21873 HOST_OS!$HOST_OS$ac_delim
21874 TARGET_OS!$TARGET_OS$ac_delim
21875 LINKALL!$LINKALL$ac_delim
21876 NOLINKALL!$NOLINKALL$ac_delim
21877 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21878 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21879 ARCH!$ARCH$ac_delim
21880 ENDIAN!$ENDIAN$ac_delim
21881 GREP!$GREP$ac_delim
21882 EGREP!$EGREP$ac_delim
21883 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21884 BUILD_CC!$BUILD_CC$ac_delim
21885 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21886 BUILD_CXX!$BUILD_CXX$ac_delim
21887 CVSBUILD!$CVSBUILD$ac_delim
21888 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21889 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21890 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21891 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21892 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21893 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21894 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21895 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21896 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21897 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21898 JIT!$JIT$ac_delim
21899 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21900 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21901 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21902 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21903 _ACEOF
21904
21905   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21906     break
21907   elif $ac_last_try; then
21908     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21909 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21910    { (exit 1); exit 1; }; }
21911   else
21912     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21913   fi
21914 done
21915
21916 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21917 if test -n "$ac_eof"; then
21918   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21919   ac_eof=`expr $ac_eof + 1`
21920 fi
21921
21922 cat >>$CONFIG_STATUS <<_ACEOF
21923 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21925 _ACEOF
21926 sed '
21927 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21928 s/^/s,@/; s/!/@,|#_!!_#|/
21929 :n
21930 t n
21931 s/'"$ac_delim"'$/,g/; t
21932 s/$/\\/; p
21933 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21934 ' >>$CONFIG_STATUS <conf$$subs.sed
21935 rm -f conf$$subs.sed
21936 cat >>$CONFIG_STATUS <<_ACEOF
21937 CEOF$ac_eof
21938 _ACEOF
21939
21940
21941 ac_delim='%!_!# '
21942 for ac_last_try in false false false false false :; do
21943   cat >conf$$subs.sed <<_ACEOF
21944 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21945 ENABLE_PIC!$ENABLE_PIC$ac_delim
21946 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21947 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21948 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21949 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21950 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21951 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21952 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21953 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21954 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21955 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21956 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21957 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21958 NM!$NM$ac_delim
21959 ifGNUmake!$ifGNUmake$ac_delim
21960 LN_S!$LN_S$ac_delim
21961 CMP!$CMP$ac_delim
21962 CP!$CP$ac_delim
21963 DATE!$DATE$ac_delim
21964 FIND!$FIND$ac_delim
21965 MKDIR!$MKDIR$ac_delim
21966 MV!$MV$ac_delim
21967 RANLIB!$RANLIB$ac_delim
21968 AR!$AR$ac_delim
21969 RM!$RM$ac_delim
21970 SED!$SED$ac_delim
21971 TAR!$TAR$ac_delim
21972 BINPWD!$BINPWD$ac_delim
21973 GRAPHVIZ!$GRAPHVIZ$ac_delim
21974 DOT!$DOT$ac_delim
21975 FDP!$FDP$ac_delim
21976 NEATO!$NEATO$ac_delim
21977 TWOPI!$TWOPI$ac_delim
21978 CIRCO!$CIRCO$ac_delim
21979 GV!$GV$ac_delim
21980 DOTTY!$DOTTY$ac_delim
21981 XDOT_PY!$XDOT_PY$ac_delim
21982 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21983 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21984 INSTALL_DATA!$INSTALL_DATA$ac_delim
21985 BZIP2!$BZIP2$ac_delim
21986 CAT!$CAT$ac_delim
21987 DOXYGEN!$DOXYGEN$ac_delim
21988 GROFF!$GROFF$ac_delim
21989 GZIPBIN!$GZIPBIN$ac_delim
21990 POD2HTML!$POD2HTML$ac_delim
21991 POD2MAN!$POD2MAN$ac_delim
21992 PDFROFF!$PDFROFF$ac_delim
21993 RUNTEST!$RUNTEST$ac_delim
21994 TCLSH!$TCLSH$ac_delim
21995 ZIP!$ZIP$ac_delim
21996 OCAMLC!$OCAMLC$ac_delim
21997 OCAMLOPT!$OCAMLOPT$ac_delim
21998 OCAMLDEP!$OCAMLDEP$ac_delim
21999 OCAMLDOC!$OCAMLDOC$ac_delim
22000 GAS!$GAS$ac_delim
22001 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22002 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22003 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22004 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22005 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22006 LIBADD_DL!$LIBADD_DL$ac_delim
22007 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22008 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22009 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22010 USE_UDIS86!$USE_UDIS86$ac_delim
22011 USE_OPROFILE!$USE_OPROFILE$ac_delim
22012 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22013 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22014 MMAP_FILE!$MMAP_FILE$ac_delim
22015 SHLIBEXT!$SHLIBEXT$ac_delim
22016 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22017 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22018 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22019 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22020 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22021 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22022 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22023 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22024 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22025 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22026 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22027 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22028 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22029 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22030 RPATH!$RPATH$ac_delim
22031 RDYNAMIC!$RDYNAMIC$ac_delim
22032 LIBOBJS!$LIBOBJS$ac_delim
22033 LTLIBOBJS!$LTLIBOBJS$ac_delim
22034 _ACEOF
22035
22036   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22037     break
22038   elif $ac_last_try; then
22039     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22040 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22041    { (exit 1); exit 1; }; }
22042   else
22043     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22044   fi
22045 done
22046
22047 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22048 if test -n "$ac_eof"; then
22049   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22050   ac_eof=`expr $ac_eof + 1`
22051 fi
22052
22053 cat >>$CONFIG_STATUS <<_ACEOF
22054 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22056 _ACEOF
22057 sed '
22058 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22059 s/^/s,@/; s/!/@,|#_!!_#|/
22060 :n
22061 t n
22062 s/'"$ac_delim"'$/,g/; t
22063 s/$/\\/; p
22064 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22065 ' >>$CONFIG_STATUS <conf$$subs.sed
22066 rm -f conf$$subs.sed
22067 cat >>$CONFIG_STATUS <<_ACEOF
22068 :end
22069 s/|#_!!_#|//g
22070 CEOF$ac_eof
22071 _ACEOF
22072
22073
22074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22076 # trailing colons and then remove the whole line if VPATH becomes empty
22077 # (actually we leave an empty line to preserve line numbers).
22078 if test "x$srcdir" = x.; then
22079   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22080 s/:*\$(srcdir):*/:/
22081 s/:*\${srcdir}:*/:/
22082 s/:*@srcdir@:*/:/
22083 s/^\([^=]*=[     ]*\):*/\1/
22084 s/:*$//
22085 s/^[^=]*=[       ]*$//
22086 }'
22087 fi
22088
22089 cat >>$CONFIG_STATUS <<\_ACEOF
22090 fi # test -n "$CONFIG_FILES"
22091
22092
22093 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
22094 do
22095   case $ac_tag in
22096   :[FHLC]) ac_mode=$ac_tag; continue;;
22097   esac
22098   case $ac_mode$ac_tag in
22099   :[FHL]*:*);;
22100   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22101 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22102    { (exit 1); exit 1; }; };;
22103   :[FH]-) ac_tag=-:-;;
22104   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22105   esac
22106   ac_save_IFS=$IFS
22107   IFS=:
22108   set x $ac_tag
22109   IFS=$ac_save_IFS
22110   shift
22111   ac_file=$1
22112   shift
22113
22114   case $ac_mode in
22115   :L) ac_source=$1;;
22116   :[FH])
22117     ac_file_inputs=
22118     for ac_f
22119     do
22120       case $ac_f in
22121       -) ac_f="$tmp/stdin";;
22122       *) # Look for the file first in the build tree, then in the source tree
22123          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22124          # because $ac_f cannot contain `:'.
22125          test -f "$ac_f" ||
22126            case $ac_f in
22127            [\\/$]*) false;;
22128            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22129            esac ||
22130            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22131 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22132    { (exit 1); exit 1; }; };;
22133       esac
22134       ac_file_inputs="$ac_file_inputs $ac_f"
22135     done
22136
22137     # Let's still pretend it is `configure' which instantiates (i.e., don't
22138     # use $as_me), people would be surprised to read:
22139     #    /* config.h.  Generated by config.status.  */
22140     configure_input="Generated from "`IFS=:
22141           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22142     if test x"$ac_file" != x-; then
22143       configure_input="$ac_file.  $configure_input"
22144       { echo "$as_me:$LINENO: creating $ac_file" >&5
22145 echo "$as_me: creating $ac_file" >&6;}
22146     fi
22147
22148     case $ac_tag in
22149     *:-:* | *:-) cat >"$tmp/stdin";;
22150     esac
22151     ;;
22152   esac
22153
22154   ac_dir=`$as_dirname -- "$ac_file" ||
22155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156          X"$ac_file" : 'X\(//\)[^/]' \| \
22157          X"$ac_file" : 'X\(//\)$' \| \
22158          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22159 echo X"$ac_file" |
22160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22161             s//\1/
22162             q
22163           }
22164           /^X\(\/\/\)[^/].*/{
22165             s//\1/
22166             q
22167           }
22168           /^X\(\/\/\)$/{
22169             s//\1/
22170             q
22171           }
22172           /^X\(\/\).*/{
22173             s//\1/
22174             q
22175           }
22176           s/.*/./; q'`
22177   { as_dir="$ac_dir"
22178   case $as_dir in #(
22179   -*) as_dir=./$as_dir;;
22180   esac
22181   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22182     as_dirs=
22183     while :; do
22184       case $as_dir in #(
22185       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186       *) as_qdir=$as_dir;;
22187       esac
22188       as_dirs="'$as_qdir' $as_dirs"
22189       as_dir=`$as_dirname -- "$as_dir" ||
22190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191          X"$as_dir" : 'X\(//\)[^/]' \| \
22192          X"$as_dir" : 'X\(//\)$' \| \
22193          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22194 echo X"$as_dir" |
22195     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196             s//\1/
22197             q
22198           }
22199           /^X\(\/\/\)[^/].*/{
22200             s//\1/
22201             q
22202           }
22203           /^X\(\/\/\)$/{
22204             s//\1/
22205             q
22206           }
22207           /^X\(\/\).*/{
22208             s//\1/
22209             q
22210           }
22211           s/.*/./; q'`
22212       test -d "$as_dir" && break
22213     done
22214     test -z "$as_dirs" || eval "mkdir $as_dirs"
22215   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22217    { (exit 1); exit 1; }; }; }
22218   ac_builddir=.
22219
22220 case "$ac_dir" in
22221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222 *)
22223   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22224   # A ".." for each directory in $ac_dir_suffix.
22225   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22226   case $ac_top_builddir_sub in
22227   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22228   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22229   esac ;;
22230 esac
22231 ac_abs_top_builddir=$ac_pwd
22232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22233 # for backward compatibility:
22234 ac_top_builddir=$ac_top_build_prefix
22235
22236 case $srcdir in
22237   .)  # We are building in place.
22238     ac_srcdir=.
22239     ac_top_srcdir=$ac_top_builddir_sub
22240     ac_abs_top_srcdir=$ac_pwd ;;
22241   [\\/]* | ?:[\\/]* )  # Absolute name.
22242     ac_srcdir=$srcdir$ac_dir_suffix;
22243     ac_top_srcdir=$srcdir
22244     ac_abs_top_srcdir=$srcdir ;;
22245   *) # Relative name.
22246     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22247     ac_top_srcdir=$ac_top_build_prefix$srcdir
22248     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22249 esac
22250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22251
22252
22253   case $ac_mode in
22254   :F)
22255   #
22256   # CONFIG_FILE
22257   #
22258
22259   case $INSTALL in
22260   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22261   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22262   esac
22263 _ACEOF
22264
22265 cat >>$CONFIG_STATUS <<\_ACEOF
22266 # If the template does not know about datarootdir, expand it.
22267 # FIXME: This hack should be removed a few years after 2.60.
22268 ac_datarootdir_hack=; ac_datarootdir_seen=
22269
22270 case `sed -n '/datarootdir/ {
22271   p
22272   q
22273 }
22274 /@datadir@/p
22275 /@docdir@/p
22276 /@infodir@/p
22277 /@localedir@/p
22278 /@mandir@/p
22279 ' $ac_file_inputs` in
22280 *datarootdir*) ac_datarootdir_seen=yes;;
22281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22282   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22283 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22284 _ACEOF
22285 cat >>$CONFIG_STATUS <<_ACEOF
22286   ac_datarootdir_hack='
22287   s&@datadir@&$datadir&g
22288   s&@docdir@&$docdir&g
22289   s&@infodir@&$infodir&g
22290   s&@localedir@&$localedir&g
22291   s&@mandir@&$mandir&g
22292     s&\\\${datarootdir}&$datarootdir&g' ;;
22293 esac
22294 _ACEOF
22295
22296 # Neutralize VPATH when `$srcdir' = `.'.
22297 # Shell code in configure.ac might set extrasub.
22298 # FIXME: do we really want to maintain this feature?
22299 cat >>$CONFIG_STATUS <<_ACEOF
22300   sed "$ac_vpsub
22301 $extrasub
22302 _ACEOF
22303 cat >>$CONFIG_STATUS <<\_ACEOF
22304 :t
22305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22306 s&@configure_input@&$configure_input&;t t
22307 s&@top_builddir@&$ac_top_builddir_sub&;t t
22308 s&@srcdir@&$ac_srcdir&;t t
22309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22310 s&@top_srcdir@&$ac_top_srcdir&;t t
22311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22312 s&@builddir@&$ac_builddir&;t t
22313 s&@abs_builddir@&$ac_abs_builddir&;t t
22314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22315 s&@INSTALL@&$ac_INSTALL&;t t
22316 $ac_datarootdir_hack
22317 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22318
22319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22322   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined.  Please make sure it is defined." >&5
22324 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22325 which seems to be undefined.  Please make sure it is defined." >&2;}
22326
22327   rm -f "$tmp/stdin"
22328   case $ac_file in
22329   -) cat "$tmp/out"; rm -f "$tmp/out";;
22330   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22331   esac
22332  ;;
22333
22334
22335   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22336 echo "$as_me: executing $ac_file commands" >&6;}
22337  ;;
22338   esac
22339
22340
22341   case $ac_file$ac_mode in
22342     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22343    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22344     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22345    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22346     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22347    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22348     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22349    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22350     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22351    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22352
22353   esac
22354 done # for ac_tag
22355
22356
22357 { (exit 0); exit 0; }
22358 _ACEOF
22359 chmod +x $CONFIG_STATUS
22360 ac_clean_files=$ac_clean_files_save
22361
22362
22363 # configure is writing to config.log, and then calls config.status.
22364 # config.status does its own redirection, appending to config.log.
22365 # Unfortunately, on DOS this fails, as config.log is still kept open
22366 # by configure, so config.status won't be able to write to it; its
22367 # output is simply discarded.  So we exec the FD to /dev/null,
22368 # effectively closing config.log, so it can be properly (re)opened and
22369 # appended to by config.status.  When coming back to configure, we
22370 # need to make the FD available again.
22371 if test "$no_create" != yes; then
22372   ac_cs_success=:
22373   ac_config_status_args=
22374   test "$silent" = yes &&
22375     ac_config_status_args="$ac_config_status_args --quiet"
22376   exec 5>/dev/null
22377   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22378   exec 5>>config.log
22379   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22380   # would make configure fail if this is the last instruction.
22381   $ac_cs_success || { (exit 1); exit 1; }
22382 fi
22383
22384 #
22385 # CONFIG_SUBDIRS section.
22386 #
22387 if test "$no_recursion" != yes; then
22388
22389   # Remove --cache-file and --srcdir arguments so they do not pile up.
22390   ac_sub_configure_args=
22391   ac_prev=
22392   eval "set x $ac_configure_args"
22393   shift
22394   for ac_arg
22395   do
22396     if test -n "$ac_prev"; then
22397       ac_prev=
22398       continue
22399     fi
22400     case $ac_arg in
22401     -cache-file | --cache-file | --cache-fil | --cache-fi \
22402     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22403       ac_prev=cache_file ;;
22404     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22405     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22406     | --c=*)
22407       ;;
22408     --config-cache | -C)
22409       ;;
22410     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22411       ac_prev=srcdir ;;
22412     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22413       ;;
22414     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22415       ac_prev=prefix ;;
22416     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22417       ;;
22418     *)
22419       case $ac_arg in
22420       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22421       esac
22422       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22423     esac
22424   done
22425
22426   # Always prepend --prefix to ensure using the same prefix
22427   # in subdir configurations.
22428   ac_arg="--prefix=$prefix"
22429   case $ac_arg in
22430   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22431   esac
22432   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22433
22434   ac_popdir=`pwd`
22435   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22436
22437     # Do not complain, so a configure script can configure whichever
22438     # parts of a large source tree are present.
22439     test -d "$srcdir/$ac_dir" || continue
22440
22441     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22442     echo "$as_me:$LINENO: $ac_msg" >&5
22443     echo "$ac_msg" >&6
22444     { as_dir="$ac_dir"
22445   case $as_dir in #(
22446   -*) as_dir=./$as_dir;;
22447   esac
22448   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22449     as_dirs=
22450     while :; do
22451       case $as_dir in #(
22452       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22453       *) as_qdir=$as_dir;;
22454       esac
22455       as_dirs="'$as_qdir' $as_dirs"
22456       as_dir=`$as_dirname -- "$as_dir" ||
22457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22458          X"$as_dir" : 'X\(//\)[^/]' \| \
22459          X"$as_dir" : 'X\(//\)$' \| \
22460          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22461 echo X"$as_dir" |
22462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22463             s//\1/
22464             q
22465           }
22466           /^X\(\/\/\)[^/].*/{
22467             s//\1/
22468             q
22469           }
22470           /^X\(\/\/\)$/{
22471             s//\1/
22472             q
22473           }
22474           /^X\(\/\).*/{
22475             s//\1/
22476             q
22477           }
22478           s/.*/./; q'`
22479       test -d "$as_dir" && break
22480     done
22481     test -z "$as_dirs" || eval "mkdir $as_dirs"
22482   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22483 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22484    { (exit 1); exit 1; }; }; }
22485     ac_builddir=.
22486
22487 case "$ac_dir" in
22488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22489 *)
22490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22491   # A ".." for each directory in $ac_dir_suffix.
22492   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22493   case $ac_top_builddir_sub in
22494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22496   esac ;;
22497 esac
22498 ac_abs_top_builddir=$ac_pwd
22499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22500 # for backward compatibility:
22501 ac_top_builddir=$ac_top_build_prefix
22502
22503 case $srcdir in
22504   .)  # We are building in place.
22505     ac_srcdir=.
22506     ac_top_srcdir=$ac_top_builddir_sub
22507     ac_abs_top_srcdir=$ac_pwd ;;
22508   [\\/]* | ?:[\\/]* )  # Absolute name.
22509     ac_srcdir=$srcdir$ac_dir_suffix;
22510     ac_top_srcdir=$srcdir
22511     ac_abs_top_srcdir=$srcdir ;;
22512   *) # Relative name.
22513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22514     ac_top_srcdir=$ac_top_build_prefix$srcdir
22515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22516 esac
22517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22518
22519
22520     cd "$ac_dir"
22521
22522     # Check for guested configure; otherwise get Cygnus style configure.
22523     if test -f "$ac_srcdir/configure.gnu"; then
22524       ac_sub_configure=$ac_srcdir/configure.gnu
22525     elif test -f "$ac_srcdir/configure"; then
22526       ac_sub_configure=$ac_srcdir/configure
22527     elif test -f "$ac_srcdir/configure.in"; then
22528       # This should be Cygnus configure.
22529       ac_sub_configure=$ac_aux_dir/configure
22530     else
22531       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22533       ac_sub_configure=
22534     fi
22535
22536     # The recursion is here.
22537     if test -n "$ac_sub_configure"; then
22538       # Make the cache file name correct relative to the subdirectory.
22539       case $cache_file in
22540       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22541       *) # Relative name.
22542         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22543       esac
22544
22545       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22546 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22547       # The eval makes quoting arguments work.
22548       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22549            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22550         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22551 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22552    { (exit 1); exit 1; }; }
22553     fi
22554
22555     cd "$ac_popdir"
22556   done
22557 fi
22558