1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for LLVM 3.5.0svn.
4#
5# Report bugs to <http://llvm.org/bugs/>.
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# Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible.
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257  CONFIG_SHELL=$as_shell
258	       as_have_required=yes
259	       if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276  (exit $1)
277}
278as_func_success () {
279  as_func_return 0
280}
281as_func_failure () {
282  as_func_return 1
283}
284as_func_ret_success () {
285  return 0
286}
287as_func_ret_failure () {
288  return 1
289}
290
291exitcode=0
292if as_func_success; then
293  :
294else
295  exitcode=1
296  echo as_func_success failed.
297fi
298
299if as_func_failure; then
300  exitcode=1
301  echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305  :
306else
307  exitcode=1
308  echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312  exitcode=1
313  echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317  :
318else
319  exitcode=1
320  echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326  as_lineno_1=$LINENO
327  as_lineno_2=$LINENO
328  test "x$as_lineno_1" != "x$as_lineno_2" &&
329  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333  break
334fi
335
336fi
337
338      done
339
340      if test "x$CONFIG_SHELL" != x; then
341  for as_var in BASH_ENV ENV
342        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343        done
344        export CONFIG_SHELL
345        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349    if test $as_have_required = no; then
350  echo This script requires a shell more modern than all the
351      echo shells that I found on your system.  Please install a
352      echo modern shell, or manually run the script under such a
353      echo shell if you do have one.
354      { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365  (exit \$1)
366}
367as_func_success () {
368  as_func_return 0
369}
370as_func_failure () {
371  as_func_return 1
372}
373as_func_ret_success () {
374  return 0
375}
376as_func_ret_failure () {
377  return 1
378}
379
380exitcode=0
381if as_func_success; then
382  :
383else
384  exitcode=1
385  echo as_func_success failed.
386fi
387
388if as_func_failure; then
389  exitcode=1
390  echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394  :
395else
396  exitcode=1
397  echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401  exitcode=1
402  echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406  :
407else
408  exitcode=1
409  echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413  echo No shell found that supports shell functions.
414  echo Please tell autoconf@gnu.org about your system,
415  echo including any error possibly output before this
416  echo message
417}
418
419
420
421  as_lineno_1=$LINENO
422  as_lineno_2=$LINENO
423  test "x$as_lineno_1" != "x$as_lineno_2" &&
424  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427  # uniformly replaced by the line number.  The first 'sed' inserts a
428  # line-number line after each line using $LINENO; the second 'sed'
429  # does the real work.  The second script uses 'N' to pair each
430  # line-number line with the line containing $LINENO, and appends
431  # trailing '-' during substitution so that $LINENO is not a special
432  # case at line end.
433  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434  # scripts with optimization help from Paolo Bonzini.  Blame Lee
435  # E. McMahon (1931-1989) for sed's syntax.  :-)
436  sed -n '
437    p
438    /[$]LINENO/=
439  ' <$as_myself |
440    sed '
441      s/[$]LINENO.*/&-/
442      t lineno
443      b
444      :lineno
445      N
446      :loop
447      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448      t loop
449      s/-\n.*//
450    ' >$as_me.lineno &&
451  chmod +x "$as_me.lineno" ||
452    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453   { (exit 1); exit 1; }; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473  case `echo 'x\c'` in
474  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
475  *)   ECHO_C='\c';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482   test "X`expr 00001 : '.*\(...\)'`" = X001; then
483  as_expr=expr
484else
485  as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490  rm -f conf$$.dir/conf$$.file
491else
492  rm -f conf$$.dir
493  mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497  as_ln_s='ln -s'
498  # ... but there are two gotchas:
499  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501  # In both cases, we have to default to `cp -p'.
502  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503    as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505  as_ln_s=ln
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p=:
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527  as_executable_p="test -x"
528else
529  as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541exec 7<&0 </dev/null 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561# Identity of this package.
562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
564PACKAGE_VERSION='3.5.0svn'
565PACKAGE_STRING='LLVM 3.5.0svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568ac_unique_file="lib/IR/Module.cpp"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#if HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#if HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#if STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# if HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#if HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#if HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#if HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#if HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='SHELL
606PATH_SEPARATOR
607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_VERSION_MAJOR
643LLVM_VERSION_MINOR
644LLVM_VERSION_PATCH
645LLVM_VERSION_SUFFIX
646LLVM_COPYRIGHT
647CC
648CFLAGS
649LDFLAGS
650CPPFLAGS
651ac_ct_CC
652EXEEXT
653OBJEXT
654CXX
655CXXFLAGS
656ac_ct_CXX
657CPP
658subdirs
659ENABLE_POLLY
660LLVM_HAS_POLLY
661build
662build_cpu
663build_vendor
664build_os
665host
666host_cpu
667host_vendor
668host_os
669target
670target_cpu
671target_vendor
672target_os
673OS
674HOST_OS
675TARGET_OS
676LINKALL
677NOLINKALL
678LLVM_ON_UNIX
679LLVM_ON_WIN32
680ARCH
681LLVM_NATIVE_ARCH
682HOST_ARCH
683LLVM_CROSS_COMPILING
684BUILD_CC
685BUILD_EXEEXT
686BUILD_CXX
687CVSBUILD
688ENABLE_LIBCPP
689ENABLE_CXX1Y
690ENABLE_SPLIT_DWARF
691ENABLE_CLANG_ARCMT
692CLANG_PLUGIN_SUPPORT
693ENABLE_CLANG_STATIC_ANALYZER
694ENABLE_CLANG_REWRITER
695ENABLE_OPTIMIZED
696ENABLE_PROFILING
697DISABLE_ASSERTIONS
698ENABLE_WERROR
699ENABLE_EXPENSIVE_CHECKS
700EXPENSIVE_CHECKS
701DEBUG_RUNTIME
702DEBUG_SYMBOLS
703KEEP_SYMBOLS
704JIT
705TARGET_HAS_JIT
706TARGETS_WITH_JIT
707ENABLE_DOCS
708ENABLE_DOXYGEN
709LLVM_ENABLE_THREADS
710ENABLE_PTHREADS
711LLVM_ENABLE_ZLIB
712ENABLE_PIC
713ENABLE_SHARED
714ENABLE_EMBED_STDCXX
715ENABLE_TIMESTAMPS
716ALL_TARGETS
717TARGETS_TO_BUILD
718LLVM_ENUM_TARGETS
719LLVM_ENUM_ASM_PRINTERS
720LLVM_ENUM_ASM_PARSERS
721LLVM_ENUM_DISASSEMBLERS
722OPTIMIZE_OPTION
723EXTRA_OPTIONS
724EXTRA_LD_OPTIONS
725CLANG_SRC_ROOT
726BINUTILS_INCDIR
727ENABLE_TERMINFO
728INTERNAL_PREFIX
729ifGNUmake
730LN_S
731NM
732CMP
733CP
734DATE
735FIND
736GREP
737MKDIR
738MV
739RANLIB
740AR
741RM
742SED
743TAR
744BINPWD
745GRAPHVIZ
746DOT
747FDP
748NEATO
749TWOPI
750CIRCO
751GV
752DOTTY
753XDOT
754INSTALL_PROGRAM
755INSTALL_SCRIPT
756INSTALL_DATA
757BZIP2
758CAT
759DOXYGEN
760GROFF
761GZIPBIN
762PDFROFF
763ZIP
764OCAMLC
765OCAMLOPT
766OCAMLDEP
767OCAMLDOC
768GAS
769HAVE_LINK_VERSION_SCRIPT
770EGREP
771NO_VARIADIC_MACROS
772NO_MISSING_FIELD_INITIALIZERS
773COVERED_SWITCH_DEFAULT
774NO_MAYBE_UNINITIALIZED
775NO_UNINITIALIZED
776PYTHON
777HAVE_DLOPEN
778HAVE_TERMINFO
779USE_UDIS86
780USE_OPROFILE
781USE_INTEL_JITEVENTS
782XML2CONFIG
783LIBXML2_LIBS
784LIBXML2_INC
785CXXCPP
786HAVE_PTHREAD
787HAVE_LIBZ
788HUGE_VAL_SANITY
789MMAP_FILE
790SHLIBEXT
791LLVM_PREFIX
792LLVM_BINDIR
793LLVM_DATADIR
794LLVM_DOCSDIR
795LLVM_ETCDIR
796LLVM_INCLUDEDIR
797LLVM_INFODIR
798LLVM_MANDIR
799LLVM_CONFIGTIME
800BINDINGS_TO_BUILD
801ALL_BINDINGS
802OCAML_LIBDIR
803ENABLE_VISIBILITY_INLINES_HIDDEN
804RPATH
805RDYNAMIC
806program_prefix
807LIBOBJS
808LTLIBOBJS'
809ac_subst_files=''
810      ac_precious_vars='build_alias
811host_alias
812target_alias
813CC
814CFLAGS
815LDFLAGS
816CPPFLAGS
817CXX
818CXXFLAGS
819CCC
820CPP
821CXXCPP'
822ac_subdirs_all='projects/test-suite
823projects/llvm-test
824projects/poolalloc
825projects/llvm-poolalloc
826projects/safecode
827tools/polly'
828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
854# (The list follows the same order as the GNU Coding Standards.)
855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
863includedir='${prefix}/include'
864oldincludedir='/usr/include'
865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
874
875ac_prev=
876ac_dashdash=
877for ac_option
878do
879  # If the previous option needs an argument, assign it.
880  if test -n "$ac_prev"; then
881    eval $ac_prev=\$ac_option
882    ac_prev=
883    continue
884  fi
885
886  case $ac_option in
887  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888  *)	ac_optarg=yes ;;
889  esac
890
891  # Accept the important Cygnus configure options, so we can diagnose typos.
892
893  case $ac_dashdash$ac_option in
894  --)
895    ac_dashdash=yes ;;
896
897  -bindir | --bindir | --bindi | --bind | --bin | --bi)
898    ac_prev=bindir ;;
899  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900    bindir=$ac_optarg ;;
901
902  -build | --build | --buil | --bui | --bu)
903    ac_prev=build_alias ;;
904  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905    build_alias=$ac_optarg ;;
906
907  -cache-file | --cache-file | --cache-fil | --cache-fi \
908  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909    ac_prev=cache_file ;;
910  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912    cache_file=$ac_optarg ;;
913
914  --config-cache | -C)
915    cache_file=config.cache ;;
916
917  -datadir | --datadir | --datadi | --datad)
918    ac_prev=datadir ;;
919  -datadir=* | --datadir=* | --datadi=* | --datad=*)
920    datadir=$ac_optarg ;;
921
922  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923  | --dataroo | --dataro | --datar)
924    ac_prev=datarootdir ;;
925  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927    datarootdir=$ac_optarg ;;
928
929  -disable-* | --disable-*)
930    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934   { (exit 1); exit 1; }; }
935    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936    eval enable_$ac_feature=no ;;
937
938  -docdir | --docdir | --docdi | --doc | --do)
939    ac_prev=docdir ;;
940  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941    docdir=$ac_optarg ;;
942
943  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944    ac_prev=dvidir ;;
945  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946    dvidir=$ac_optarg ;;
947
948  -enable-* | --enable-*)
949    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950    # Reject names that are not valid shell variable names.
951    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953   { (exit 1); exit 1; }; }
954    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955    eval enable_$ac_feature=\$ac_optarg ;;
956
957  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959  | --exec | --exe | --ex)
960    ac_prev=exec_prefix ;;
961  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963  | --exec=* | --exe=* | --ex=*)
964    exec_prefix=$ac_optarg ;;
965
966  -gas | --gas | --ga | --g)
967    # Obsolete; use --with-gas.
968    with_gas=yes ;;
969
970  -help | --help | --hel | --he | -h)
971    ac_init_help=long ;;
972  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973    ac_init_help=recursive ;;
974  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975    ac_init_help=short ;;
976
977  -host | --host | --hos | --ho)
978    ac_prev=host_alias ;;
979  -host=* | --host=* | --hos=* | --ho=*)
980    host_alias=$ac_optarg ;;
981
982  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983    ac_prev=htmldir ;;
984  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985  | --ht=*)
986    htmldir=$ac_optarg ;;
987
988  -includedir | --includedir | --includedi | --included | --include \
989  | --includ | --inclu | --incl | --inc)
990    ac_prev=includedir ;;
991  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992  | --includ=* | --inclu=* | --incl=* | --inc=*)
993    includedir=$ac_optarg ;;
994
995  -infodir | --infodir | --infodi | --infod | --info | --inf)
996    ac_prev=infodir ;;
997  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998    infodir=$ac_optarg ;;
999
1000  -libdir | --libdir | --libdi | --libd)
1001    ac_prev=libdir ;;
1002  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003    libdir=$ac_optarg ;;
1004
1005  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006  | --libexe | --libex | --libe)
1007    ac_prev=libexecdir ;;
1008  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009  | --libexe=* | --libex=* | --libe=*)
1010    libexecdir=$ac_optarg ;;
1011
1012  -localedir | --localedir | --localedi | --localed | --locale)
1013    ac_prev=localedir ;;
1014  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015    localedir=$ac_optarg ;;
1016
1017  -localstatedir | --localstatedir | --localstatedi | --localstated \
1018  | --localstate | --localstat | --localsta | --localst | --locals)
1019    ac_prev=localstatedir ;;
1020  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022    localstatedir=$ac_optarg ;;
1023
1024  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025    ac_prev=mandir ;;
1026  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027    mandir=$ac_optarg ;;
1028
1029  -nfp | --nfp | --nf)
1030    # Obsolete; use --without-fp.
1031    with_fp=no ;;
1032
1033  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034  | --no-cr | --no-c | -n)
1035    no_create=yes ;;
1036
1037  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039    no_recursion=yes ;;
1040
1041  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043  | --oldin | --oldi | --old | --ol | --o)
1044    ac_prev=oldincludedir ;;
1045  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048    oldincludedir=$ac_optarg ;;
1049
1050  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051    ac_prev=prefix ;;
1052  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053    prefix=$ac_optarg ;;
1054
1055  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056  | --program-pre | --program-pr | --program-p)
1057    ac_prev=program_prefix ;;
1058  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060    program_prefix=$ac_optarg ;;
1061
1062  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063  | --program-suf | --program-su | --program-s)
1064    ac_prev=program_suffix ;;
1065  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067    program_suffix=$ac_optarg ;;
1068
1069  -program-transform-name | --program-transform-name \
1070  | --program-transform-nam | --program-transform-na \
1071  | --program-transform-n | --program-transform- \
1072  | --program-transform | --program-transfor \
1073  | --program-transfo | --program-transf \
1074  | --program-trans | --program-tran \
1075  | --progr-tra | --program-tr | --program-t)
1076    ac_prev=program_transform_name ;;
1077  -program-transform-name=* | --program-transform-name=* \
1078  | --program-transform-nam=* | --program-transform-na=* \
1079  | --program-transform-n=* | --program-transform-=* \
1080  | --program-transform=* | --program-transfor=* \
1081  | --program-transfo=* | --program-transf=* \
1082  | --program-trans=* | --program-tran=* \
1083  | --progr-tra=* | --program-tr=* | --program-t=*)
1084    program_transform_name=$ac_optarg ;;
1085
1086  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087    ac_prev=pdfdir ;;
1088  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089    pdfdir=$ac_optarg ;;
1090
1091  -psdir | --psdir | --psdi | --psd | --ps)
1092    ac_prev=psdir ;;
1093  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094    psdir=$ac_optarg ;;
1095
1096  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097  | -silent | --silent | --silen | --sile | --sil)
1098    silent=yes ;;
1099
1100  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101    ac_prev=sbindir ;;
1102  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103  | --sbi=* | --sb=*)
1104    sbindir=$ac_optarg ;;
1105
1106  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108  | --sharedst | --shareds | --shared | --share | --shar \
1109  | --sha | --sh)
1110    ac_prev=sharedstatedir ;;
1111  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114  | --sha=* | --sh=*)
1115    sharedstatedir=$ac_optarg ;;
1116
1117  -site | --site | --sit)
1118    ac_prev=site ;;
1119  -site=* | --site=* | --sit=*)
1120    site=$ac_optarg ;;
1121
1122  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123    ac_prev=srcdir ;;
1124  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125    srcdir=$ac_optarg ;;
1126
1127  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128  | --syscon | --sysco | --sysc | --sys | --sy)
1129    ac_prev=sysconfdir ;;
1130  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132    sysconfdir=$ac_optarg ;;
1133
1134  -target | --target | --targe | --targ | --tar | --ta | --t)
1135    ac_prev=target_alias ;;
1136  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137    target_alias=$ac_optarg ;;
1138
1139  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140    verbose=yes ;;
1141
1142  -version | --version | --versio | --versi | --vers | -V)
1143    ac_init_version=: ;;
1144
1145  -with-* | --with-*)
1146    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149      { echo "$as_me: error: invalid package name: $ac_package" >&2
1150   { (exit 1); exit 1; }; }
1151    ac_package=`echo $ac_package| sed 's/-/_/g'`
1152    eval with_$ac_package=\$ac_optarg ;;
1153
1154  -without-* | --without-*)
1155    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158      { echo "$as_me: error: invalid package name: $ac_package" >&2
1159   { (exit 1); exit 1; }; }
1160    ac_package=`echo $ac_package | sed 's/-/_/g'`
1161    eval with_$ac_package=no ;;
1162
1163  --x)
1164    # Obsolete; use --with-x.
1165    with_x=yes ;;
1166
1167  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168  | --x-incl | --x-inc | --x-in | --x-i)
1169    ac_prev=x_includes ;;
1170  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172    x_includes=$ac_optarg ;;
1173
1174  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176    ac_prev=x_libraries ;;
1177  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179    x_libraries=$ac_optarg ;;
1180
1181  -*) { echo "$as_me: error: unrecognized option: $ac_option
1182Try \`$0 --help' for more information." >&2
1183   { (exit 1); exit 1; }; }
1184    ;;
1185
1186  *=*)
1187    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191   { (exit 1); exit 1; }; }
1192    eval $ac_envvar=\$ac_optarg
1193    export $ac_envvar ;;
1194
1195  *)
1196    # FIXME: should be removed in autoconf 3.0.
1197    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201    ;;
1202
1203  esac
1204done
1205
1206if test -n "$ac_prev"; then
1207  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208  { echo "$as_me: error: missing argument to $ac_option" >&2
1209   { (exit 1); exit 1; }; }
1210fi
1211
1212# Be sure to have absolute directory names.
1213for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214		datadir sysconfdir sharedstatedir localstatedir includedir \
1215		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216		libdir localedir mandir
1217do
1218  eval ac_val=\$$ac_var
1219  case $ac_val in
1220    [\\/$]* | ?:[\\/]* )  continue;;
1221    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222  esac
1223  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224   { (exit 1); exit 1; }; }
1225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236  if test "x$build_alias" = x; then
1237    cross_compiling=maybe
1238    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239    If a cross compiler is detected then cross compile mode will be used." >&2
1240  elif test "x$build_alias" != "x$host_alias"; then
1241    cross_compiling=yes
1242  fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
1251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254  { echo "$as_me: error: Working directory cannot be determined" >&2
1255   { (exit 1); exit 1; }; }
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257  { echo "$as_me: error: pwd does not report name of working directory" >&2
1258   { (exit 1); exit 1; }; }
1259
1260
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263  ac_srcdir_defaulted=yes
1264  # Try the directory containing this script, then the parent directory.
1265  ac_confdir=`$as_dirname -- "$0" ||
1266$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267	 X"$0" : 'X\(//\)[^/]' \| \
1268	 X"$0" : 'X\(//\)$' \| \
1269	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270echo X"$0" |
1271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\/\)[^/].*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\).*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  s/.*/./; q'`
1288  srcdir=$ac_confdir
1289  if test ! -r "$srcdir/$ac_unique_file"; then
1290    srcdir=..
1291  fi
1292else
1293  ac_srcdir_defaulted=no
1294fi
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298   { (exit 1); exit 1; }; }
1299fi
1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
1302	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303   { (exit 1); exit 1; }; }
1304	pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307  srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_env_${ac_var}_value=\$${ac_var}
1318  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
1321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326  # Omit some internal or obsolete options to make the list less imposing.
1327  # This message is too long to be a string in the A/UX 3.1 sh.
1328  cat <<_ACEOF
1329\`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
1330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339  -h, --help              display this help and exit
1340      --help=short        display options specific to this package
1341      --help=recursive    display the short help of all the included packages
1342  -V, --version           display version information and exit
1343  -q, --quiet, --silent   do not print \`checking...' messages
1344      --cache-file=FILE   cache test results in FILE [disabled]
1345  -C, --config-cache      alias for \`--cache-file=config.cache'
1346  -n, --no-create         do not create output files
1347      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349Installation directories:
1350  --prefix=PREFIX         install architecture-independent files in PREFIX
1351			  [$ac_default_prefix]
1352  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353			  [PREFIX]
1354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
1363  --bindir=DIR           user executables [EPREFIX/bin]
1364  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1365  --libexecdir=DIR       program executables [EPREFIX/libexec]
1366  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1367  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1368  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1369  --libdir=DIR           object code libraries [EPREFIX/lib]
1370  --includedir=DIR       C header files [PREFIX/include]
1371  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1372  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1373  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1374  --infodir=DIR          info documentation [DATAROOTDIR/info]
1375  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1376  --mandir=DIR           man documentation [DATAROOTDIR/man]
1377  --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1378  --htmldir=DIR          html documentation [DOCDIR]
1379  --dvidir=DIR           dvi documentation [DOCDIR]
1380  --pdfdir=DIR           pdf documentation [DOCDIR]
1381  --psdir=DIR            ps documentation [DOCDIR]
1382_ACEOF
1383
1384  cat <<\_ACEOF
1385
1386System types:
1387  --build=BUILD     configure for building on BUILD [guessed]
1388  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389  --target=TARGET   configure for building compilers for TARGET [HOST]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394  case $ac_init_help in
1395     short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
1396   esac
1397  cat <<\_ACEOF
1398
1399Optional Features:
1400  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402  --enable-polly          Use polly if available (default is YES)
1403  --enable-libcpp         Use libc++ if available (default is NO)
1404  --enable-compiler-version-checks
1405                          Check the version of the host compiler (default is
1406                          YES)
1407  --enable-cxx1y          Use c++1y if available (default is NO)
1408  --enable-split-dwarf    Use split-dwarf if available (default is NO)
1409  --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1410  --enable-clang-plugin-support
1411                          Enable plugin support in clang (default is YES)
1412  --enable-clang-static-analyzer
1413                          Enable building of clang Static Analyzer (default is
1414                          YES)
1415  --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416  --enable-optimized      Compile with optimizations enabled (default is NO)
1417  --enable-profiling      Compile with profiling enabled (default is NO)
1418  --enable-assertions     Compile with assertion checks enabled (default is
1419                          YES)
1420  --enable-werror         Compile with -Werror enabled (default is NO)
1421  --enable-expensive-checks
1422                          Compile with expensive debug checks enabled (default
1423                          is NO)
1424  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                          NO)
1426  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                          optimization is on and YES if it's off)
1428  --enable-keep-symbols   Do not strip installed executables)
1429  --enable-jit            Enable Just In Time Compiling (default is YES)
1430  --enable-docs           Build documents (default is YES)
1431  --enable-doxygen        Build doxygen documentation (default is NO)
1432  --enable-threads        Use threads if available (default is YES)
1433  --enable-pthreads       Use pthreads if available (default is YES)
1434  --enable-zlib           Use zlib for compression/decompression if available
1435                          (default is YES)
1436  --enable-pic            Build LLVM with Position Independent Code (default
1437                          is YES)
1438  --enable-shared         Build a shared library and link tools against it
1439                          (default is NO)
1440  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                          Win32 DLL (default is NO)
1442  --enable-timestamps     Enable embedding timestamp information in build
1443                          (default is YES)
1444  --enable-backtraces     Enable embedding backtraces on crash (default is
1445                          YES)
1446  --enable-crash-overrides
1447                          Enable crash handling overrides (default is YES)
1448  --enable-targets        Build specific host targets: all or
1449                          target1,target2,... Valid targets are: host, x86,
1450                          x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1451                          hexagon, xcore, msp430, nvptx, systemz, r600, and
1452                          cpp (default=all)
1453  --enable-experimental-targets
1454                          Build experimental host targets: disable or
1455                          target1,target2,... (default=disable)
1456  --enable-bindings       Build specific language bindings:
1457                          all,auto,none,{binding-name} (default=auto)
1458  --enable-terminfo       Query the terminfo database if available (default is
1459                          YES)
1460  --enable-libedit        Use libedit if available (default is YES)
1461  --enable-libffi         Check for the presence of libffi (default is NO)
1462
1463Optional Packages:
1464  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466  --with-optimize-option  Select the compiler options to use for optimized
1467                          builds
1468  --with-extra-options    Specify additional options to compile LLVM with
1469  --with-extra-ld-options Specify additional options to link LLVM with
1470  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1471                          is stdlib)
1472  --with-clang-srcdir     Directory to the out-of-tree Clang source
1473  --with-clang-resource-dir
1474                          Relative directory from the Clang binary for
1475                          resource files
1476  --with-c-include-dirs   Colon separated list of directories clang will
1477                          search for headers
1478  --with-gcc-toolchain    Directory where gcc is installed.
1479  --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1480  --with-binutils-include Specify path to binutils/include/ containing
1481                          plugin-api.h file for gold plugin.
1482  --with-bug-report-url   Specify the URL where bug reports should be
1483                          submitted (default=http://llvm.org/bugs/)
1484  --with-internal-prefix  Installation directory for internal files
1485  --with-python           path to python
1486  --with-udis86=<path>    Use udis86 external x86 disassembler library
1487  --with-oprofile=<prefix>
1488                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1489  --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1490
1491
1492Some influential environment variables:
1493  CC          C compiler command
1494  CFLAGS      C compiler flags
1495  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496              nonstandard directory <lib dir>
1497  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498              you have headers in a nonstandard directory <include dir>
1499  CXX         C++ compiler command
1500  CXXFLAGS    C++ compiler flags
1501  CPP         C preprocessor
1502  CXXCPP      C++ preprocessor
1503
1504Use these variables to override the choices made by `configure' or to help
1505it to find libraries and programs with nonstandard names/locations.
1506
1507Report bugs to <http://llvm.org/bugs/>.
1508_ACEOF
1509ac_status=$?
1510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513  # If there are subdirs, report their specific --help.
1514  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515    test -d "$ac_dir" || continue
1516    ac_builddir=.
1517
1518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
1521  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1522  # A ".." for each directory in $ac_dir_suffix.
1523  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524  case $ac_top_builddir_sub in
1525  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527  esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
1533
1534case $srcdir in
1535  .)  # We are building in place.
1536    ac_srcdir=.
1537    ac_top_srcdir=$ac_top_builddir_sub
1538    ac_abs_top_srcdir=$ac_pwd ;;
1539  [\\/]* | ?:[\\/]* )  # Absolute name.
1540    ac_srcdir=$srcdir$ac_dir_suffix;
1541    ac_top_srcdir=$srcdir
1542    ac_abs_top_srcdir=$srcdir ;;
1543  *) # Relative name.
1544    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545    ac_top_srcdir=$ac_top_build_prefix$srcdir
1546    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547esac
1548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550    cd "$ac_dir" || { ac_status=$?; continue; }
1551    # Check for guested configure.
1552    if test -f "$ac_srcdir/configure.gnu"; then
1553      echo &&
1554      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555    elif test -f "$ac_srcdir/configure"; then
1556      echo &&
1557      $SHELL "$ac_srcdir/configure" --help=recursive
1558    else
1559      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560    fi || ac_status=$?
1561    cd "$ac_pwd" || { ac_status=$?; break; }
1562  done
1563fi
1564
1565test -n "$ac_init_help" && exit $ac_status
1566if $ac_init_version; then
1567  cat <<\_ACEOF
1568LLVM configure 3.5.0svn
1569generated by GNU Autoconf 2.60
1570
1571Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573This configure script is free software; the Free Software Foundation
1574gives unlimited permission to copy, distribute and modify it.
1575
1576Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1577_ACEOF
1578  exit
1579fi
1580cat >config.log <<_ACEOF
1581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
1584It was created by LLVM $as_me 3.5.0svn, which was
1585generated by GNU Autoconf 2.60.  Invocation command line was
1586
1587  $ $0 $@
1588
1589_ACEOF
1590exec 5>>config.log
1591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1605
1606/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1607/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1610/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1611/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1612/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619  IFS=$as_save_IFS
1620  test -z "$as_dir" && as_dir=.
1621  echo "PATH: $as_dir"
1622done
1623IFS=$as_save_IFS
1624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
1645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648  for ac_arg
1649  do
1650    case $ac_arg in
1651    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653    | -silent | --silent | --silen | --sile | --sil)
1654      continue ;;
1655    *\'*)
1656      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657    esac
1658    case $ac_pass in
1659    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660    2)
1661      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662      if test $ac_must_keep_next = true; then
1663	ac_must_keep_next=false # Got value, back to normal.
1664      else
1665	case $ac_arg in
1666	  *=* | --config-cache | -C | -disable-* | --disable-* \
1667	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669	  | -with-* | --with-* | -without-* | --without-* | --x)
1670	    case "$ac_configure_args0 " in
1671	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672	    esac
1673	    ;;
1674	  -* ) ac_must_keep_next=true ;;
1675	esac
1676      fi
1677      ac_configure_args="$ac_configure_args '$ac_arg'"
1678      ;;
1679    esac
1680  done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log.  We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
1688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690trap 'exit_status=$?
1691  # Save into config.log some information that might help in debugging.
1692  {
1693    echo
1694
1695    cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700    echo
1701    # The following way of writing the cache mishandles newlines in values,
1702(
1703  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704    eval ac_val=\$$ac_var
1705    case $ac_val in #(
1706    *${as_nl}*)
1707      case $ac_var in #(
1708      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710      esac
1711      case $ac_var in #(
1712      _ | IFS | as_nl) ;; #(
1713      *) $as_unset $ac_var ;;
1714      esac ;;
1715    esac
1716  done
1717  (set) 2>&1 |
1718    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719    *${as_nl}ac_space=\ *)
1720      sed -n \
1721	"s/'\''/'\''\\\\'\'''\''/g;
1722	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723      ;; #(
1724    *)
1725      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726      ;;
1727    esac |
1728    sort
1729)
1730    echo
1731
1732    cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737    echo
1738    for ac_var in $ac_subst_vars
1739    do
1740      eval ac_val=\$$ac_var
1741      case $ac_val in
1742      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743      esac
1744      echo "$ac_var='\''$ac_val'\''"
1745    done | sort
1746    echo
1747
1748    if test -n "$ac_subst_files"; then
1749      cat <<\_ASBOX
1750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
1753_ASBOX
1754      echo
1755      for ac_var in $ac_subst_files
1756      do
1757	eval ac_val=\$$ac_var
1758	case $ac_val in
1759	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760	esac
1761	echo "$ac_var='\''$ac_val'\''"
1762      done | sort
1763      echo
1764    fi
1765
1766    if test -s confdefs.h; then
1767      cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772      echo
1773      cat confdefs.h
1774      echo
1775    fi
1776    test "$ac_signal" != 0 &&
1777      echo "$as_me: caught signal $ac_signal"
1778    echo "$as_me: exit $exit_status"
1779  } >&5
1780  rm -f core *.core core.conftest.* &&
1781    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782    exit $exit_status
1783' 0
1784for ac_signal in 1 2 13 15; do
1785  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
1790rm -f -r conftest* confdefs.h
1791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
1821if test -n "$CONFIG_SITE"; then
1822  set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826  set x "$ac_default_prefix/share/config.site" \
1827	"$ac_default_prefix/etc/config.site"
1828fi
1829shift
1830for ac_site_file
1831do
1832  if test -r "$ac_site_file"; then
1833    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835    sed 's/^/| /' "$ac_site_file" >&5
1836    . "$ac_site_file"
1837  fi
1838done
1839
1840if test -r "$cache_file"; then
1841  # Some versions of bash will fail to source /dev/null (special
1842  # files actually), so we avoid doing that.
1843  if test -f "$cache_file"; then
1844    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846    case $cache_file in
1847      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848      *)                      . "./$cache_file";;
1849    esac
1850  fi
1851else
1852  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854  >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
1860for ac_var in $ac_precious_vars; do
1861  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862  eval ac_new_set=\$ac_env_${ac_var}_set
1863  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864  eval ac_new_val=\$ac_env_${ac_var}_value
1865  case $ac_old_set,$ac_new_set in
1866    set,)
1867      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869      ac_cache_corrupted=: ;;
1870    ,set)
1871      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873      ac_cache_corrupted=: ;;
1874    ,);;
1875    *)
1876      if test "x$ac_old_val" != "x$ac_new_val"; then
1877	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1880echo "$as_me:   former value:  $ac_old_val" >&2;}
1881	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1882echo "$as_me:   current value: $ac_new_val" >&2;}
1883	ac_cache_corrupted=:
1884      fi;;
1885  esac
1886  # Pass precious variables to config.status.
1887  if test "$ac_new_set" = set; then
1888    case $ac_new_val in
1889    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890    *) ac_arg=$ac_var=$ac_new_val ;;
1891    esac
1892    case " $ac_configure_args " in
1893      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1894      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895    esac
1896  fi
1897done
1898if $ac_cache_corrupted; then
1899  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903   { (exit 1); exit 1; }; }
1904fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938LLVM_VERSION_MAJOR=3
1939LLVM_VERSION_MINOR=5
1940LLVM_VERSION_PATCH=0
1941LLVM_VERSION_SUFFIX=svn
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1946_ACEOF
1947
1948
1949cat >>confdefs.h <<_ACEOF
1950#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1951_ACEOF
1952
1953
1954cat >>confdefs.h <<_ACEOF
1955#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1956_ACEOF
1957
1958
1959
1960
1961
1962
1963
1964LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1965
1966
1967
1968
1969
1970
1971
1972ac_aux_dir=
1973for ac_dir in autoconf "$srcdir"/autoconf; do
1974  if test -f "$ac_dir/install-sh"; then
1975    ac_aux_dir=$ac_dir
1976    ac_install_sh="$ac_aux_dir/install-sh -c"
1977    break
1978  elif test -f "$ac_dir/install.sh"; then
1979    ac_aux_dir=$ac_dir
1980    ac_install_sh="$ac_aux_dir/install.sh -c"
1981    break
1982  elif test -f "$ac_dir/shtool"; then
1983    ac_aux_dir=$ac_dir
1984    ac_install_sh="$ac_aux_dir/shtool install -c"
1985    break
1986  fi
1987done
1988if test -z "$ac_aux_dir"; then
1989  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1990echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1991   { (exit 1); exit 1; }; }
1992fi
1993
1994# These three variables are undocumented and unsupported,
1995# and are intended to be withdrawn in a future Autoconf release.
1996# They can cause serious problems if a builder's source tree is in a directory
1997# whose full name contains unusual characters.
1998ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1999ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2000ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2001
2002
2003
2004if test ${srcdir} != "." ; then
2005  if test -f ${srcdir}/include/llvm/Config/config.h ; then
2006    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2007echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2008   { (exit 1); exit 1; }; }
2009  fi
2010fi
2011
2012: ${CFLAGS=}
2013: ${CXXFLAGS=}
2014
2015ac_ext=c
2016ac_cpp='$CPP $CPPFLAGS'
2017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020if test -n "$ac_tool_prefix"; then
2021  for ac_prog in clang gcc
2022  do
2023    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027if test "${ac_cv_prog_CC+set}" = set; then
2028  echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030  if test -n "$CC"; then
2031  ac_cv_prog_CC="$CC" # Let the user override the test.
2032else
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036  IFS=$as_save_IFS
2037  test -z "$as_dir" && as_dir=.
2038  for ac_exec_ext in '' $ac_executable_extensions; do
2039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042    break 2
2043  fi
2044done
2045done
2046IFS=$as_save_IFS
2047
2048fi
2049fi
2050CC=$ac_cv_prog_CC
2051if test -n "$CC"; then
2052  { echo "$as_me:$LINENO: result: $CC" >&5
2053echo "${ECHO_T}$CC" >&6; }
2054else
2055  { echo "$as_me:$LINENO: result: no" >&5
2056echo "${ECHO_T}no" >&6; }
2057fi
2058
2059
2060    test -n "$CC" && break
2061  done
2062fi
2063if test -z "$CC"; then
2064  ac_ct_CC=$CC
2065  for ac_prog in clang gcc
2066do
2067  # Extract the first word of "$ac_prog", so it can be a program name with args.
2068set dummy $ac_prog; ac_word=$2
2069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072  echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074  if test -n "$ac_ct_CC"; then
2075  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076else
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080  IFS=$as_save_IFS
2081  test -z "$as_dir" && as_dir=.
2082  for ac_exec_ext in '' $ac_executable_extensions; do
2083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084    ac_cv_prog_ac_ct_CC="$ac_prog"
2085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086    break 2
2087  fi
2088done
2089done
2090IFS=$as_save_IFS
2091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6; }
2098else
2099  { echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6; }
2101fi
2102
2103
2104  test -n "$ac_ct_CC" && break
2105done
2106
2107  if test "x$ac_ct_CC" = x; then
2108    CC=""
2109  else
2110    case $cross_compiling:$ac_tool_warned in
2111yes:)
2112{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2113whose name does not start with the host triplet.  If you think this
2114configuration is useful to you, please write to autoconf@gnu.org." >&5
2115echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2116whose name does not start with the host triplet.  If you think this
2117configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2118ac_tool_warned=yes ;;
2119esac
2120    CC=$ac_ct_CC
2121  fi
2122fi
2123
2124
2125test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: no acceptable C compiler found in \$PATH
2128See \`config.log' for more details." >&2;}
2129   { (exit 1); exit 1; }; }
2130
2131# Provide some information about the compiler.
2132echo "$as_me:$LINENO: checking for C compiler version" >&5
2133ac_compiler=`set X $ac_compile; echo $2`
2134{ (ac_try="$ac_compiler --version >&5"
2135case "(($ac_try" in
2136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137  *) ac_try_echo=$ac_try;;
2138esac
2139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140  (eval "$ac_compiler --version >&5") 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }
2144{ (ac_try="$ac_compiler -v >&5"
2145case "(($ac_try" in
2146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147  *) ac_try_echo=$ac_try;;
2148esac
2149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150  (eval "$ac_compiler -v >&5") 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }
2154{ (ac_try="$ac_compiler -V >&5"
2155case "(($ac_try" in
2156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157  *) ac_try_echo=$ac_try;;
2158esac
2159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160  (eval "$ac_compiler -V >&5") 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }
2164
2165cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h.  */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h.  */
2171
2172int
2173main ()
2174{
2175
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180ac_clean_files_save=$ac_clean_files
2181ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182# Try to create an executable without -o first, disregard a.out.
2183# It will help us diagnose broken compilers, and finding out an intuition
2184# of exeext.
2185{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2187ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188#
2189# List of possible output files, starting from the most likely.
2190# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2191# only as a last resort.  b.out is created by i960 compilers.
2192ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2193#
2194# The IRIX 6 linker writes into existing files which may not be
2195# executable, retaining their permissions.  Remove them first so a
2196# subsequent execution test works.
2197ac_rmfiles=
2198for ac_file in $ac_files
2199do
2200  case $ac_file in
2201    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2202    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2203  esac
2204done
2205rm -f $ac_rmfiles
2206
2207if { (ac_try="$ac_link_default"
2208case "(($ac_try" in
2209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210  *) ac_try_echo=$ac_try;;
2211esac
2212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213  (eval "$ac_link_default") 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; then
2217  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2218# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2219# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2220# so that the user can short-circuit this test for compilers unknown to
2221# Autoconf.
2222for ac_file in $ac_files
2223do
2224  test -f "$ac_file" || continue
2225  case $ac_file in
2226    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2227	;;
2228    [ab].out )
2229	# We found the default executable, but exeext='' is most
2230	# certainly right.
2231	break;;
2232    *.* )
2233        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2234	then :; else
2235	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236	fi
2237	# We set ac_cv_exeext here because the later test for it is not
2238	# safe: cross compilers may not add the suffix if given an `-o'
2239	# argument, so we may need to know it at that point already.
2240	# Even if this section looks crufty: it has the advantage of
2241	# actually working.
2242	break;;
2243    * )
2244	break;;
2245  esac
2246done
2247test "$ac_cv_exeext" = no && ac_cv_exeext=
2248
2249else
2250  echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: C compiler cannot create executables
2256See \`config.log' for more details." >&2;}
2257   { (exit 77); exit 77; }; }
2258fi
2259
2260ac_exeext=$ac_cv_exeext
2261{ echo "$as_me:$LINENO: result: $ac_file" >&5
2262echo "${ECHO_T}$ac_file" >&6; }
2263
2264# Check that the compiler produces executables we can run.  If not, either
2265# the compiler is broken, or we cross compile.
2266{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269# If not cross compiling, check that we can run a simple program.
2270if test "$cross_compiling" != yes; then
2271  if { ac_try='./$ac_file'
2272  { (case "(($ac_try" in
2273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274  *) ac_try_echo=$ac_try;;
2275esac
2276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277  (eval "$ac_try") 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281    cross_compiling=no
2282  else
2283    if test "$cross_compiling" = maybe; then
2284	cross_compiling=yes
2285    else
2286	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&5
2289echo "$as_me: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&2;}
2292   { (exit 1); exit 1; }; }
2293    fi
2294  fi
2295fi
2296{ echo "$as_me:$LINENO: result: yes" >&5
2297echo "${ECHO_T}yes" >&6; }
2298
2299rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300ac_clean_files=$ac_clean_files_save
2301# Check that the compiler produces executables we can run.  If not, either
2302# the compiler is broken, or we cross compile.
2303{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306echo "${ECHO_T}$cross_compiling" >&6; }
2307
2308{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310if { (ac_try="$ac_link"
2311case "(($ac_try" in
2312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313  *) ac_try_echo=$ac_try;;
2314esac
2315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316  (eval "$ac_link") 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; then
2320  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2322# work properly (i.e., refer to `conftest.exe'), while it won't with
2323# `rm'.
2324for ac_file in conftest.exe conftest conftest.*; do
2325  test -f "$ac_file" || continue
2326  case $ac_file in
2327    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329	  break;;
2330    * ) break;;
2331  esac
2332done
2333else
2334  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337See \`config.log' for more details." >&2;}
2338   { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest$ac_cv_exeext
2342{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343echo "${ECHO_T}$ac_cv_exeext" >&6; }
2344
2345rm -f conftest.$ac_ext
2346EXEEXT=$ac_cv_exeext
2347ac_exeext=$EXEEXT
2348{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350if test "${ac_cv_objext+set}" = set; then
2351  echo $ECHO_N "(cached) $ECHO_C" >&6
2352else
2353  cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h.  */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h.  */
2359
2360int
2361main ()
2362{
2363
2364  ;
2365  return 0;
2366}
2367_ACEOF
2368rm -f conftest.o conftest.obj
2369if { (ac_try="$ac_compile"
2370case "(($ac_try" in
2371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372  *) ac_try_echo=$ac_try;;
2373esac
2374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375  (eval "$ac_compile") 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; then
2379  for ac_file in conftest.o conftest.obj conftest.*; do
2380  test -f "$ac_file" || continue;
2381  case $ac_file in
2382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384       break;;
2385  esac
2386done
2387else
2388  echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392See \`config.log' for more details." >&5
2393echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394See \`config.log' for more details." >&2;}
2395   { (exit 1); exit 1; }; }
2396fi
2397
2398rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399fi
2400{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401echo "${ECHO_T}$ac_cv_objext" >&6; }
2402OBJEXT=$ac_cv_objext
2403ac_objext=$OBJEXT
2404{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407  echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409  cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h.  */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h.  */
2415
2416int
2417main ()
2418{
2419#ifndef __GNUC__
2420       choke me
2421#endif
2422
2423  ;
2424  return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (ac_try="$ac_compile"
2429case "(($ac_try" in
2430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431  *) ac_try_echo=$ac_try;;
2432esac
2433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434  (eval "$ac_compile") 2>conftest.er1
2435  ac_status=$?
2436  grep -v '^ *+' conftest.er1 >conftest.err
2437  rm -f conftest.er1
2438  cat conftest.err >&5
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2442  { (case "(($ac_try" in
2443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444  *) ac_try_echo=$ac_try;;
2445esac
2446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447  (eval "$ac_try") 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }; } &&
2451	 { ac_try='test -s conftest.$ac_objext'
2452  { (case "(($ac_try" in
2453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454  *) ac_try_echo=$ac_try;;
2455esac
2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457  (eval "$ac_try") 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; }; then
2461  ac_compiler_gnu=yes
2462else
2463  echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466	ac_compiler_gnu=no
2467fi
2468
2469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470ac_cv_c_compiler_gnu=$ac_compiler_gnu
2471
2472fi
2473{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2474echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2475GCC=`test $ac_compiler_gnu = yes && echo yes`
2476ac_test_CFLAGS=${CFLAGS+set}
2477ac_save_CFLAGS=$CFLAGS
2478{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2479echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2480if test "${ac_cv_prog_cc_g+set}" = set; then
2481  echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483  ac_save_c_werror_flag=$ac_c_werror_flag
2484   ac_c_werror_flag=yes
2485   ac_cv_prog_cc_g=no
2486   CFLAGS="-g"
2487   cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493
2494int
2495main ()
2496{
2497
2498  ;
2499  return 0;
2500}
2501_ACEOF
2502rm -f conftest.$ac_objext
2503if { (ac_try="$ac_compile"
2504case "(($ac_try" in
2505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506  *) ac_try_echo=$ac_try;;
2507esac
2508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509  (eval "$ac_compile") 2>conftest.er1
2510  ac_status=$?
2511  grep -v '^ *+' conftest.er1 >conftest.err
2512  rm -f conftest.er1
2513  cat conftest.err >&5
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); } &&
2516	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517  { (case "(($ac_try" in
2518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519  *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522  (eval "$ac_try") 2>&5
2523  ac_status=$?
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); }; } &&
2526	 { ac_try='test -s conftest.$ac_objext'
2527  { (case "(($ac_try" in
2528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529  *) ac_try_echo=$ac_try;;
2530esac
2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532  (eval "$ac_try") 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; }; then
2536  ac_cv_prog_cc_g=yes
2537else
2538  echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541	CFLAGS=""
2542      cat >conftest.$ac_ext <<_ACEOF
2543/* confdefs.h.  */
2544_ACEOF
2545cat confdefs.h >>conftest.$ac_ext
2546cat >>conftest.$ac_ext <<_ACEOF
2547/* end confdefs.h.  */
2548
2549int
2550main ()
2551{
2552
2553  ;
2554  return 0;
2555}
2556_ACEOF
2557rm -f conftest.$ac_objext
2558if { (ac_try="$ac_compile"
2559case "(($ac_try" in
2560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561  *) ac_try_echo=$ac_try;;
2562esac
2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564  (eval "$ac_compile") 2>conftest.er1
2565  ac_status=$?
2566  grep -v '^ *+' conftest.er1 >conftest.err
2567  rm -f conftest.er1
2568  cat conftest.err >&5
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); } &&
2571	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572  { (case "(($ac_try" in
2573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574  *) ac_try_echo=$ac_try;;
2575esac
2576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577  (eval "$ac_try") 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581	 { ac_try='test -s conftest.$ac_objext'
2582  { (case "(($ac_try" in
2583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584  *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587  (eval "$ac_try") 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; }; then
2591  :
2592else
2593  echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596	ac_c_werror_flag=$ac_save_c_werror_flag
2597	 CFLAGS="-g"
2598	 cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h.  */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h.  */
2604
2605int
2606main ()
2607{
2608
2609  ;
2610  return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext
2614if { (ac_try="$ac_compile"
2615case "(($ac_try" in
2616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617  *) ac_try_echo=$ac_try;;
2618esac
2619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620  (eval "$ac_compile") 2>conftest.er1
2621  ac_status=$?
2622  grep -v '^ *+' conftest.er1 >conftest.err
2623  rm -f conftest.er1
2624  cat conftest.err >&5
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); } &&
2627	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628  { (case "(($ac_try" in
2629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630  *) ac_try_echo=$ac_try;;
2631esac
2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633  (eval "$ac_try") 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); }; } &&
2637	 { ac_try='test -s conftest.$ac_objext'
2638  { (case "(($ac_try" in
2639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640  *) ac_try_echo=$ac_try;;
2641esac
2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643  (eval "$ac_try") 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; }; then
2647  ac_cv_prog_cc_g=yes
2648else
2649  echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652
2653fi
2654
2655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656fi
2657
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659fi
2660
2661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662   ac_c_werror_flag=$ac_save_c_werror_flag
2663fi
2664{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2666if test "$ac_test_CFLAGS" = set; then
2667  CFLAGS=$ac_save_CFLAGS
2668elif test $ac_cv_prog_cc_g = yes; then
2669  if test "$GCC" = yes; then
2670    CFLAGS="-g -O2"
2671  else
2672    CFLAGS="-g"
2673  fi
2674else
2675  if test "$GCC" = yes; then
2676    CFLAGS="-O2"
2677  else
2678    CFLAGS=
2679  fi
2680fi
2681{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683if test "${ac_cv_prog_cc_c89+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  ac_cv_prog_cc_c89=no
2687ac_save_CC=$CC
2688cat >conftest.$ac_ext <<_ACEOF
2689/* confdefs.h.  */
2690_ACEOF
2691cat confdefs.h >>conftest.$ac_ext
2692cat >>conftest.$ac_ext <<_ACEOF
2693/* end confdefs.h.  */
2694#include <stdarg.h>
2695#include <stdio.h>
2696#include <sys/types.h>
2697#include <sys/stat.h>
2698/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2699struct buf { int x; };
2700FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701static char *e (p, i)
2702     char **p;
2703     int i;
2704{
2705  return p[i];
2706}
2707static char *f (char * (*g) (char **, int), char **p, ...)
2708{
2709  char *s;
2710  va_list v;
2711  va_start (v,p);
2712  s = g (p, va_arg (v,int));
2713  va_end (v);
2714  return s;
2715}
2716
2717/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2718   function prototypes and stuff, but not '\xHH' hex character constants.
2719   These don't provoke an error unfortunately, instead are silently treated
2720   as 'x'.  The following induces an error, until -std is added to get
2721   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2722   array size at least.  It's necessary to write '\x00'==0 to get something
2723   that's true only with -std.  */
2724int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2725
2726/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727   inside strings and character constants.  */
2728#define FOO(x) 'x'
2729int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2730
2731int test (int i, double x);
2732struct s1 {int (*f) (int a);};
2733struct s2 {int (*f) (double a);};
2734int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735int argc;
2736char **argv;
2737int
2738main ()
2739{
2740return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2741  ;
2742  return 0;
2743}
2744_ACEOF
2745for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2747do
2748  CC="$ac_save_CC $ac_arg"
2749  rm -f conftest.$ac_objext
2750if { (ac_try="$ac_compile"
2751case "(($ac_try" in
2752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753  *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756  (eval "$ac_compile") 2>conftest.er1
2757  ac_status=$?
2758  grep -v '^ *+' conftest.er1 >conftest.err
2759  rm -f conftest.er1
2760  cat conftest.err >&5
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); } &&
2763	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2764  { (case "(($ac_try" in
2765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766  *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769  (eval "$ac_try") 2>&5
2770  ac_status=$?
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); }; } &&
2773	 { ac_try='test -s conftest.$ac_objext'
2774  { (case "(($ac_try" in
2775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776  *) ac_try_echo=$ac_try;;
2777esac
2778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779  (eval "$ac_try") 2>&5
2780  ac_status=$?
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); }; }; then
2783  ac_cv_prog_cc_c89=$ac_arg
2784else
2785  echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788
2789fi
2790
2791rm -f core conftest.err conftest.$ac_objext
2792  test "x$ac_cv_prog_cc_c89" != "xno" && break
2793done
2794rm -f conftest.$ac_ext
2795CC=$ac_save_CC
2796
2797fi
2798# AC_CACHE_VAL
2799case "x$ac_cv_prog_cc_c89" in
2800  x)
2801    { echo "$as_me:$LINENO: result: none needed" >&5
2802echo "${ECHO_T}none needed" >&6; } ;;
2803  xno)
2804    { echo "$as_me:$LINENO: result: unsupported" >&5
2805echo "${ECHO_T}unsupported" >&6; } ;;
2806  *)
2807    CC="$CC $ac_cv_prog_cc_c89"
2808    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2810esac
2811
2812
2813ac_ext=c
2814ac_cpp='$CPP $CPPFLAGS'
2815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819ac_ext=cpp
2820ac_cpp='$CXXCPP $CPPFLAGS'
2821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2824if test -z "$CXX"; then
2825  if test -n "$CCC"; then
2826    CXX=$CCC
2827  else
2828    if test -n "$ac_tool_prefix"; then
2829  for ac_prog in clang++ g++
2830  do
2831    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835if test "${ac_cv_prog_CXX+set}" = set; then
2836  echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838  if test -n "$CXX"; then
2839  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846  for ac_exec_ext in '' $ac_executable_extensions; do
2847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858CXX=$ac_cv_prog_CXX
2859if test -n "$CXX"; then
2860  { echo "$as_me:$LINENO: result: $CXX" >&5
2861echo "${ECHO_T}$CXX" >&6; }
2862else
2863  { echo "$as_me:$LINENO: result: no" >&5
2864echo "${ECHO_T}no" >&6; }
2865fi
2866
2867
2868    test -n "$CXX" && break
2869  done
2870fi
2871if test -z "$CXX"; then
2872  ac_ct_CXX=$CXX
2873  for ac_prog in clang++ g++
2874do
2875  # Extract the first word of "$ac_prog", so it can be a program name with args.
2876set dummy $ac_prog; ac_word=$2
2877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880  echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882  if test -n "$ac_ct_CXX"; then
2883  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888  IFS=$as_save_IFS
2889  test -z "$as_dir" && as_dir=.
2890  for ac_exec_ext in '' $ac_executable_extensions; do
2891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892    ac_cv_prog_ac_ct_CXX="$ac_prog"
2893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894    break 2
2895  fi
2896done
2897done
2898IFS=$as_save_IFS
2899
2900fi
2901fi
2902ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2903if test -n "$ac_ct_CXX"; then
2904  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2905echo "${ECHO_T}$ac_ct_CXX" >&6; }
2906else
2907  { echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6; }
2909fi
2910
2911
2912  test -n "$ac_ct_CXX" && break
2913done
2914
2915  if test "x$ac_ct_CXX" = x; then
2916    CXX="g++"
2917  else
2918    case $cross_compiling:$ac_tool_warned in
2919yes:)
2920{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2921whose name does not start with the host triplet.  If you think this
2922configuration is useful to you, please write to autoconf@gnu.org." >&5
2923echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2924whose name does not start with the host triplet.  If you think this
2925configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2926ac_tool_warned=yes ;;
2927esac
2928    CXX=$ac_ct_CXX
2929  fi
2930fi
2931
2932  fi
2933fi
2934# Provide some information about the compiler.
2935echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2936ac_compiler=`set X $ac_compile; echo $2`
2937{ (ac_try="$ac_compiler --version >&5"
2938case "(($ac_try" in
2939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940  *) ac_try_echo=$ac_try;;
2941esac
2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943  (eval "$ac_compiler --version >&5") 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }
2947{ (ac_try="$ac_compiler -v >&5"
2948case "(($ac_try" in
2949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950  *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953  (eval "$ac_compiler -v >&5") 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }
2957{ (ac_try="$ac_compiler -V >&5"
2958case "(($ac_try" in
2959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960  *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963  (eval "$ac_compiler -V >&5") 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }
2967
2968{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2969echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2970if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2971  echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973  cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h.  */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h.  */
2979
2980int
2981main ()
2982{
2983#ifndef __GNUC__
2984       choke me
2985#endif
2986
2987  ;
2988  return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext
2992if { (ac_try="$ac_compile"
2993case "(($ac_try" in
2994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995  *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998  (eval "$ac_compile") 2>conftest.er1
2999  ac_status=$?
3000  grep -v '^ *+' conftest.er1 >conftest.err
3001  rm -f conftest.er1
3002  cat conftest.err >&5
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); } &&
3005	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006  { (case "(($ac_try" in
3007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008  *) ac_try_echo=$ac_try;;
3009esac
3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011  (eval "$ac_try") 2>&5
3012  ac_status=$?
3013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); }; } &&
3015	 { ac_try='test -s conftest.$ac_objext'
3016  { (case "(($ac_try" in
3017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018  *) ac_try_echo=$ac_try;;
3019esac
3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021  (eval "$ac_try") 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }; }; then
3025  ac_compiler_gnu=yes
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030	ac_compiler_gnu=no
3031fi
3032
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3035
3036fi
3037{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3038echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3039GXX=`test $ac_compiler_gnu = yes && echo yes`
3040ac_test_CXXFLAGS=${CXXFLAGS+set}
3041ac_save_CXXFLAGS=$CXXFLAGS
3042{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3043echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3044if test "${ac_cv_prog_cxx_g+set}" = set; then
3045  echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
3047  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3048   ac_cxx_werror_flag=yes
3049   ac_cv_prog_cxx_g=no
3050   CXXFLAGS="-g"
3051   cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext
3067if { (ac_try="$ac_compile"
3068case "(($ac_try" in
3069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070  *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073  (eval "$ac_compile") 2>conftest.er1
3074  ac_status=$?
3075  grep -v '^ *+' conftest.er1 >conftest.err
3076  rm -f conftest.er1
3077  cat conftest.err >&5
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); } &&
3080	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081  { (case "(($ac_try" in
3082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083  *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086  (eval "$ac_try") 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; } &&
3090	 { ac_try='test -s conftest.$ac_objext'
3091  { (case "(($ac_try" in
3092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093  *) ac_try_echo=$ac_try;;
3094esac
3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096  (eval "$ac_try") 2>&5
3097  ac_status=$?
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); }; }; then
3100  ac_cv_prog_cxx_g=yes
3101else
3102  echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105	CXXFLAGS=""
3106      cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h.  */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h.  */
3112
3113int
3114main ()
3115{
3116
3117  ;
3118  return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128  (eval "$ac_compile") 2>conftest.er1
3129  ac_status=$?
3130  grep -v '^ *+' conftest.er1 >conftest.err
3131  rm -f conftest.er1
3132  cat conftest.err >&5
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } &&
3135	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136  { (case "(($ac_try" in
3137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138  *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141  (eval "$ac_try") 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }; } &&
3145	 { ac_try='test -s conftest.$ac_objext'
3146  { (case "(($ac_try" in
3147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148  *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151  (eval "$ac_try") 2>&5
3152  ac_status=$?
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); }; }; then
3155  :
3156else
3157  echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3161	 CXXFLAGS="-g"
3162	 cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h.  */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h.  */
3168
3169int
3170main ()
3171{
3172
3173  ;
3174  return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext
3178if { (ac_try="$ac_compile"
3179case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184  (eval "$ac_compile") 2>conftest.er1
3185  ac_status=$?
3186  grep -v '^ *+' conftest.er1 >conftest.err
3187  rm -f conftest.er1
3188  cat conftest.err >&5
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); } &&
3191	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3192  { (case "(($ac_try" in
3193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194  *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197  (eval "$ac_try") 2>&5
3198  ac_status=$?
3199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200  (exit $ac_status); }; } &&
3201	 { ac_try='test -s conftest.$ac_objext'
3202  { (case "(($ac_try" in
3203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204  *) ac_try_echo=$ac_try;;
3205esac
3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207  (eval "$ac_try") 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }; }; then
3211  ac_cv_prog_cxx_g=yes
3212else
3213  echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216
3217fi
3218
3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220fi
3221
3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223fi
3224
3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3227fi
3228{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3229echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3230if test "$ac_test_CXXFLAGS" = set; then
3231  CXXFLAGS=$ac_save_CXXFLAGS
3232elif test $ac_cv_prog_cxx_g = yes; then
3233  if test "$GXX" = yes; then
3234    CXXFLAGS="-g -O2"
3235  else
3236    CXXFLAGS="-g"
3237  fi
3238else
3239  if test "$GXX" = yes; then
3240    CXXFLAGS="-O2"
3241  else
3242    CXXFLAGS=
3243  fi
3244fi
3245ac_ext=c
3246ac_cpp='$CPP $CPPFLAGS'
3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251ac_ext=c
3252ac_cpp='$CPP $CPPFLAGS'
3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3257echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3258# On Suns, sometimes $CPP names a directory.
3259if test -n "$CPP" && test -d "$CPP"; then
3260  CPP=
3261fi
3262if test -z "$CPP"; then
3263  if test "${ac_cv_prog_CPP+set}" = set; then
3264  echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266      # Double quotes because CPP needs to be expanded
3267    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3268    do
3269      ac_preproc_ok=false
3270for ac_c_preproc_warn_flag in '' yes
3271do
3272  # Use a header file that comes with gcc, so configuring glibc
3273  # with a fresh cross-compiler works.
3274  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275  # <limits.h> exists even on freestanding compilers.
3276  # On the NeXT, cc -E runs the code through the compiler's parser,
3277  # not just through cpp. "Syntax error" is here to catch this case.
3278  cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h.  */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h.  */
3284#ifdef __STDC__
3285# include <limits.h>
3286#else
3287# include <assert.h>
3288#endif
3289		     Syntax error
3290_ACEOF
3291if { (ac_try="$ac_cpp conftest.$ac_ext"
3292case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298  ac_status=$?
3299  grep -v '^ *+' conftest.er1 >conftest.err
3300  rm -f conftest.er1
3301  cat conftest.err >&5
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); } >/dev/null; then
3304  if test -s conftest.err; then
3305    ac_cpp_err=$ac_c_preproc_warn_flag
3306    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307  else
3308    ac_cpp_err=
3309  fi
3310else
3311  ac_cpp_err=yes
3312fi
3313if test -z "$ac_cpp_err"; then
3314  :
3315else
3316  echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319  # Broken: fails on valid input.
3320continue
3321fi
3322
3323rm -f conftest.err conftest.$ac_ext
3324
3325  # OK, works on sane cases.  Now check whether nonexistent headers
3326  # can be detected and how.
3327  cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h.  */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h.  */
3333#include <ac_nonexistent.h>
3334_ACEOF
3335if { (ac_try="$ac_cpp conftest.$ac_ext"
3336case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342  ac_status=$?
3343  grep -v '^ *+' conftest.er1 >conftest.err
3344  rm -f conftest.er1
3345  cat conftest.err >&5
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); } >/dev/null; then
3348  if test -s conftest.err; then
3349    ac_cpp_err=$ac_c_preproc_warn_flag
3350    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351  else
3352    ac_cpp_err=
3353  fi
3354else
3355  ac_cpp_err=yes
3356fi
3357if test -z "$ac_cpp_err"; then
3358  # Broken: success on invalid input.
3359continue
3360else
3361  echo "$as_me: failed program was:" >&5
3362sed 's/^/| /' conftest.$ac_ext >&5
3363
3364  # Passes both tests.
3365ac_preproc_ok=:
3366break
3367fi
3368
3369rm -f conftest.err conftest.$ac_ext
3370
3371done
3372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373rm -f conftest.err conftest.$ac_ext
3374if $ac_preproc_ok; then
3375  break
3376fi
3377
3378    done
3379    ac_cv_prog_CPP=$CPP
3380
3381fi
3382  CPP=$ac_cv_prog_CPP
3383else
3384  ac_cv_prog_CPP=$CPP
3385fi
3386{ echo "$as_me:$LINENO: result: $CPP" >&5
3387echo "${ECHO_T}$CPP" >&6; }
3388ac_preproc_ok=false
3389for ac_c_preproc_warn_flag in '' yes
3390do
3391  # Use a header file that comes with gcc, so configuring glibc
3392  # with a fresh cross-compiler works.
3393  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394  # <limits.h> exists even on freestanding compilers.
3395  # On the NeXT, cc -E runs the code through the compiler's parser,
3396  # not just through cpp. "Syntax error" is here to catch this case.
3397  cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h.  */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h.  */
3403#ifdef __STDC__
3404# include <limits.h>
3405#else
3406# include <assert.h>
3407#endif
3408		     Syntax error
3409_ACEOF
3410if { (ac_try="$ac_cpp conftest.$ac_ext"
3411case "(($ac_try" in
3412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413  *) ac_try_echo=$ac_try;;
3414esac
3415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417  ac_status=$?
3418  grep -v '^ *+' conftest.er1 >conftest.err
3419  rm -f conftest.er1
3420  cat conftest.err >&5
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); } >/dev/null; then
3423  if test -s conftest.err; then
3424    ac_cpp_err=$ac_c_preproc_warn_flag
3425    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426  else
3427    ac_cpp_err=
3428  fi
3429else
3430  ac_cpp_err=yes
3431fi
3432if test -z "$ac_cpp_err"; then
3433  :
3434else
3435  echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438  # Broken: fails on valid input.
3439continue
3440fi
3441
3442rm -f conftest.err conftest.$ac_ext
3443
3444  # OK, works on sane cases.  Now check whether nonexistent headers
3445  # can be detected and how.
3446  cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h.  */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h.  */
3452#include <ac_nonexistent.h>
3453_ACEOF
3454if { (ac_try="$ac_cpp conftest.$ac_ext"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461  ac_status=$?
3462  grep -v '^ *+' conftest.er1 >conftest.err
3463  rm -f conftest.er1
3464  cat conftest.err >&5
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); } >/dev/null; then
3467  if test -s conftest.err; then
3468    ac_cpp_err=$ac_c_preproc_warn_flag
3469    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470  else
3471    ac_cpp_err=
3472  fi
3473else
3474  ac_cpp_err=yes
3475fi
3476if test -z "$ac_cpp_err"; then
3477  # Broken: success on invalid input.
3478continue
3479else
3480  echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483  # Passes both tests.
3484ac_preproc_ok=:
3485break
3486fi
3487
3488rm -f conftest.err conftest.$ac_ext
3489
3490done
3491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492rm -f conftest.err conftest.$ac_ext
3493if $ac_preproc_ok; then
3494  :
3495else
3496  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497See \`config.log' for more details." >&5
3498echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499See \`config.log' for more details." >&2;}
3500   { (exit 1); exit 1; }; }
3501fi
3502
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510if test "$CXX" = "clang++" ; then
3511  { echo "$as_me:$LINENO: checking whether clang works" >&5
3512echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3513  ac_ext=cpp
3514ac_cpp='$CXXCPP $CPPFLAGS'
3515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3518
3519
3520cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h.  */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h.  */
3526#include <limits>
3527#if __has_include (<cxxabi.h>)
3528#include <cxxabi.h>
3529#endif
3530#if __has_include (<unwind.h>)
3531#include <unwind.h>
3532#endif
3533
3534int
3535main ()
3536{
3537
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542rm -f conftest.$ac_objext
3543if { (ac_try="$ac_compile"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549  (eval "$ac_compile") 2>conftest.er1
3550  ac_status=$?
3551  grep -v '^ *+' conftest.er1 >conftest.err
3552  rm -f conftest.er1
3553  cat conftest.err >&5
3554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555  (exit $ac_status); } &&
3556	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3557  { (case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562  (eval "$ac_try") 2>&5
3563  ac_status=$?
3564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565  (exit $ac_status); }; } &&
3566	 { ac_try='test -s conftest.$ac_objext'
3567  { (case "(($ac_try" in
3568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569  *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572  (eval "$ac_try") 2>&5
3573  ac_status=$?
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); }; }; then
3576
3577  { echo "$as_me:$LINENO: result: yes" >&5
3578echo "${ECHO_T}yes" >&6; }
3579
3580else
3581  echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584
3585  { echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6; }
3587  { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3588echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3589   { (exit 1); exit 1; }; }
3590
3591fi
3592
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594  ac_ext=c
3595ac_cpp='$CPP $CPPFLAGS'
3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599
3600fi
3601
3602{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3603echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3604ac_ext=cpp
3605ac_cpp='$CXXCPP $CPPFLAGS'
3606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3609
3610llvm_cv_cxx_compiler=unknown
3611cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h.  */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h.  */
3617#if ! __clang__
3618                                    #error
3619                                    #endif
3620
3621_ACEOF
3622rm -f conftest.$ac_objext
3623if { (ac_try="$ac_compile"
3624case "(($ac_try" in
3625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626  *) ac_try_echo=$ac_try;;
3627esac
3628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629  (eval "$ac_compile") 2>conftest.er1
3630  ac_status=$?
3631  grep -v '^ *+' conftest.er1 >conftest.err
3632  rm -f conftest.er1
3633  cat conftest.err >&5
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); } &&
3636	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3637  { (case "(($ac_try" in
3638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639  *) ac_try_echo=$ac_try;;
3640esac
3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642  (eval "$ac_try") 2>&5
3643  ac_status=$?
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); }; } &&
3646	 { ac_try='test -s conftest.$ac_objext'
3647  { (case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652  (eval "$ac_try") 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; }; then
3656  llvm_cv_cxx_compiler=clang
3657else
3658  echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661	cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h.  */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h.  */
3667#if ! __GNUC__
3668                                                       #error
3669                                                       #endif
3670
3671_ACEOF
3672rm -f conftest.$ac_objext
3673if { (ac_try="$ac_compile"
3674case "(($ac_try" in
3675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676  *) ac_try_echo=$ac_try;;
3677esac
3678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679  (eval "$ac_compile") 2>conftest.er1
3680  ac_status=$?
3681  grep -v '^ *+' conftest.er1 >conftest.err
3682  rm -f conftest.er1
3683  cat conftest.err >&5
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); } &&
3686	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3687  { (case "(($ac_try" in
3688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689  *) ac_try_echo=$ac_try;;
3690esac
3691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692  (eval "$ac_try") 2>&5
3693  ac_status=$?
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); }; } &&
3696	 { ac_try='test -s conftest.$ac_objext'
3697  { (case "(($ac_try" in
3698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699  *) ac_try_echo=$ac_try;;
3700esac
3701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702  (eval "$ac_try") 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; }; then
3706  llvm_cv_cxx_compiler=gcc
3707else
3708  echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711
3712fi
3713
3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715fi
3716
3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718ac_ext=c
3719ac_cpp='$CPP $CPPFLAGS'
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3725echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3726
3727
3728
3729if test -d ${srcdir}/projects/test-suite ; then
3730  subdirs="$subdirs projects/test-suite"
3731
3732fi
3733
3734if test -d ${srcdir}/projects/llvm-test ; then
3735  subdirs="$subdirs projects/llvm-test"
3736
3737fi
3738
3739if test -d ${srcdir}/projects/poolalloc ; then
3740  subdirs="$subdirs projects/poolalloc"
3741
3742fi
3743
3744if test -d ${srcdir}/projects/llvm-poolalloc ; then
3745  subdirs="$subdirs projects/llvm-poolalloc"
3746
3747fi
3748
3749for i in `ls ${srcdir}/projects`
3750do
3751  if test -d ${srcdir}/projects/${i} ; then
3752    case ${i} in
3753      safecode)     subdirs="$subdirs projects/safecode"
3754 ;;
3755      compiler-rt)       ;;
3756      test-suite)     ;;
3757      llvm-test)      ;;
3758      poolalloc)      ;;
3759      llvm-poolalloc) ;;
3760      *)
3761        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3762echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3763        ;;
3764    esac
3765  fi
3766done
3767
3768# Check whether --enable-polly was given.
3769if test "${enable_polly+set}" = set; then
3770  enableval=$enable_polly;
3771else
3772  enableval=default
3773fi
3774
3775case "$enableval" in
3776  yes) ENABLE_POLLY=1
3777 ;;
3778  no)  ENABLE_POLLY=0
3779 ;;
3780  default) ENABLE_POLLY=1
3781 ;;
3782  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3783echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3784   { (exit 1); exit 1; }; } ;;
3785esac
3786
3787
3788if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3789  LLVM_HAS_POLLY=1
3790
3791  subdirs="$subdirs tools/polly"
3792
3793fi
3794
3795
3796# Make sure we can run config.sub.
3797$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800   { (exit 1); exit 1; }; }
3801
3802{ echo "$as_me:$LINENO: checking build system type" >&5
3803echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804if test "${ac_cv_build+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807  ac_build_alias=$build_alias
3808test "x$ac_build_alias" = x &&
3809  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810test "x$ac_build_alias" = x &&
3811  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813   { (exit 1); exit 1; }; }
3814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817   { (exit 1); exit 1; }; }
3818
3819fi
3820{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821echo "${ECHO_T}$ac_cv_build" >&6; }
3822case $ac_cv_build in
3823*-*-*) ;;
3824*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825echo "$as_me: error: invalid value of canonical build" >&2;}
3826   { (exit 1); exit 1; }; };;
3827esac
3828build=$ac_cv_build
3829ac_save_IFS=$IFS; IFS='-'
3830set x $ac_cv_build
3831shift
3832build_cpu=$1
3833build_vendor=$2
3834shift; shift
3835# Remember, the first character of IFS is used to create $*,
3836# except with old shells:
3837build_os=$*
3838IFS=$ac_save_IFS
3839case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3840
3841
3842{ echo "$as_me:$LINENO: checking host system type" >&5
3843echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844if test "${ac_cv_host+set}" = set; then
3845  echo $ECHO_N "(cached) $ECHO_C" >&6
3846else
3847  if test "x$host_alias" = x; then
3848  ac_cv_host=$ac_cv_build
3849else
3850  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853   { (exit 1); exit 1; }; }
3854fi
3855
3856fi
3857{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858echo "${ECHO_T}$ac_cv_host" >&6; }
3859case $ac_cv_host in
3860*-*-*) ;;
3861*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862echo "$as_me: error: invalid value of canonical host" >&2;}
3863   { (exit 1); exit 1; }; };;
3864esac
3865host=$ac_cv_host
3866ac_save_IFS=$IFS; IFS='-'
3867set x $ac_cv_host
3868shift
3869host_cpu=$1
3870host_vendor=$2
3871shift; shift
3872# Remember, the first character of IFS is used to create $*,
3873# except with old shells:
3874host_os=$*
3875IFS=$ac_save_IFS
3876case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879{ echo "$as_me:$LINENO: checking target system type" >&5
3880echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3881if test "${ac_cv_target+set}" = set; then
3882  echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884  if test "x$target_alias" = x; then
3885  ac_cv_target=$ac_cv_host
3886else
3887  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3888    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3889echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3890   { (exit 1); exit 1; }; }
3891fi
3892
3893fi
3894{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3895echo "${ECHO_T}$ac_cv_target" >&6; }
3896case $ac_cv_target in
3897*-*-*) ;;
3898*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3899echo "$as_me: error: invalid value of canonical target" >&2;}
3900   { (exit 1); exit 1; }; };;
3901esac
3902target=$ac_cv_target
3903ac_save_IFS=$IFS; IFS='-'
3904set x $ac_cv_target
3905shift
3906target_cpu=$1
3907target_vendor=$2
3908shift; shift
3909# Remember, the first character of IFS is used to create $*,
3910# except with old shells:
3911target_os=$*
3912IFS=$ac_save_IFS
3913case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3914
3915
3916# The aliases save the names the user supplied, while $host etc.
3917# will get canonicalized.
3918test -n "$target_alias" &&
3919  test "$program_prefix$program_suffix$program_transform_name" = \
3920    NONENONEs,x,x, &&
3921  program_prefix=${target_alias}-
3922
3923{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3924echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3925if test "${llvm_cv_os_type+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  case $host in
3929  *-*-aix*)
3930    llvm_cv_link_all_option="-Wl,--whole-archive"
3931    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932    llvm_cv_os_type="AIX"
3933    llvm_cv_platform_type="Unix" ;;
3934  *-*-irix*)
3935    llvm_cv_link_all_option="-Wl,--whole-archive"
3936    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937    llvm_cv_os_type="IRIX"
3938    llvm_cv_platform_type="Unix" ;;
3939  *-*-cygwin*)
3940    llvm_cv_link_all_option="-Wl,--whole-archive"
3941    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942    llvm_cv_os_type="Cygwin"
3943    llvm_cv_platform_type="Unix" ;;
3944  *-*-darwin*)
3945    llvm_cv_link_all_option="-Wl,-all_load"
3946    llvm_cv_no_link_all_option="-Wl,-noall_load"
3947    llvm_cv_os_type="Darwin"
3948    llvm_cv_platform_type="Unix" ;;
3949  *-*-minix*)
3950    llvm_cv_link_all_option="-Wl,-all_load"
3951    llvm_cv_no_link_all_option="-Wl,-noall_load"
3952    llvm_cv_os_type="Minix"
3953    llvm_cv_platform_type="Unix" ;;
3954  *-*-freebsd*)
3955    llvm_cv_link_all_option="-Wl,--whole-archive"
3956    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957    llvm_cv_os_type="FreeBSD"
3958    llvm_cv_platform_type="Unix" ;;
3959  *-*-kfreebsd-gnu)
3960    llvm_cv_link_all_option="-Wl,--whole-archive"
3961    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962    llvm_cv_os_type="GNU/kFreeBSD"
3963    llvm_cv_platform_type="Unix" ;;
3964  *-*-openbsd*)
3965    llvm_cv_link_all_option="-Wl,--whole-archive"
3966    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967    llvm_cv_os_type="OpenBSD"
3968    llvm_cv_platform_type="Unix" ;;
3969  *-*-netbsd*)
3970    llvm_cv_link_all_option="-Wl,--whole-archive"
3971    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972    llvm_cv_os_type="NetBSD"
3973    llvm_cv_platform_type="Unix" ;;
3974  *-*-dragonfly*)
3975    llvm_cv_link_all_option="-Wl,--whole-archive"
3976    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977    llvm_cv_os_type="DragonFly"
3978    llvm_cv_platform_type="Unix" ;;
3979  *-*-hpux*)
3980    llvm_cv_link_all_option="-Wl,--whole-archive"
3981    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982    llvm_cv_os_type="HP-UX"
3983    llvm_cv_platform_type="Unix" ;;
3984  *-*-interix*)
3985    llvm_cv_link_all_option="-Wl,--whole-archive"
3986    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987    llvm_cv_os_type="Interix"
3988    llvm_cv_platform_type="Unix" ;;
3989  *-*-linux*)
3990    llvm_cv_link_all_option="-Wl,--whole-archive"
3991    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992    llvm_cv_os_type="Linux"
3993    llvm_cv_platform_type="Unix" ;;
3994  *-*-gnu*)
3995    llvm_cv_link_all_option="-Wl,--whole-archive"
3996    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997    llvm_cv_os_type="GNU"
3998    llvm_cv_platform_type="Unix" ;;
3999  *-*-solaris*)
4000    llvm_cv_link_all_option="-Wl,-z,allextract"
4001    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4002    llvm_cv_os_type="SunOS"
4003    llvm_cv_platform_type="Unix" ;;
4004  *-*-auroraux*)
4005    llvm_cv_link_all_option="-Wl,-z,allextract"
4006    llvm_cv_link_all_option="-Wl,-z,defaultextract"
4007    llvm_cv_os_type="AuroraUX"
4008    llvm_cv_platform_type="Unix" ;;
4009  *-*-win32*)
4010    llvm_cv_link_all_option="-Wl,--whole-archive"
4011    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012    llvm_cv_os_type="Win32"
4013    llvm_cv_platform_type="Win32" ;;
4014  *-*-mingw*)
4015    llvm_cv_link_all_option="-Wl,--whole-archive"
4016    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017    llvm_cv_os_type="MingW"
4018    llvm_cv_platform_type="Win32" ;;
4019  *-*-haiku*)
4020    llvm_cv_link_all_option="-Wl,--whole-archive"
4021    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022    llvm_cv_os_type="Haiku"
4023    llvm_cv_platform_type="Unix" ;;
4024  *-unknown-eabi*)
4025    llvm_cv_link_all_option="-Wl,--whole-archive"
4026    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4027    llvm_cv_os_type="Freestanding"
4028    llvm_cv_platform_type="Unix" ;;
4029  *-unknown-elf*)
4030    llvm_cv_link_all_option="-Wl,--whole-archive"
4031    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032    llvm_cv_os_type="Freestanding"
4033    llvm_cv_platform_type="Unix" ;;
4034  *)
4035    llvm_cv_link_all_option=""
4036    llvm_cv_no_link_all_option=""
4037    llvm_cv_os_type="Unknown"
4038    llvm_cv_platform_type="Unknown" ;;
4039esac
4040fi
4041{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4042echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4043
4044{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4045echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4046if test "${llvm_cv_target_os_type+set}" = set; then
4047  echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049  case $target in
4050  *-*-aix*)
4051    llvm_cv_target_os_type="AIX" ;;
4052  *-*-irix*)
4053    llvm_cv_target_os_type="IRIX" ;;
4054  *-*-cygwin*)
4055    llvm_cv_target_os_type="Cygwin" ;;
4056  *-*-darwin*)
4057    llvm_cv_target_os_type="Darwin" ;;
4058  *-*-minix*)
4059    llvm_cv_target_os_type="Minix" ;;
4060  *-*-freebsd*)
4061    llvm_cv_target_os_type="FreeBSD" ;;
4062  *-*-kfreebsd-gnu)
4063    llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4064  *-*-openbsd*)
4065    llvm_cv_target_os_type="OpenBSD" ;;
4066  *-*-netbsd*)
4067    llvm_cv_target_os_type="NetBSD" ;;
4068  *-*-dragonfly*)
4069    llvm_cv_target_os_type="DragonFly" ;;
4070  *-*-hpux*)
4071    llvm_cv_target_os_type="HP-UX" ;;
4072  *-*-interix*)
4073    llvm_cv_target_os_type="Interix" ;;
4074  *-*-linux*)
4075    llvm_cv_target_os_type="Linux" ;;
4076  *-*-gnu*)
4077    llvm_cv_target_os_type="GNU" ;;
4078  *-*-solaris*)
4079    llvm_cv_target_os_type="SunOS" ;;
4080  *-*-auroraux*)
4081    llvm_cv_target_os_type="AuroraUX" ;;
4082  *-*-win32*)
4083    llvm_cv_target_os_type="Win32" ;;
4084  *-*-mingw*)
4085    llvm_cv_target_os_type="MingW" ;;
4086  *-*-haiku*)
4087    llvm_cv_target_os_type="Haiku" ;;
4088  *-*-rtems*)
4089    llvm_cv_target_os_type="RTEMS" ;;
4090  *-*-nacl*)
4091    llvm_cv_target_os_type="NativeClient" ;;
4092  *-unknown-eabi*)
4093    llvm_cv_target_os_type="Freestanding" ;;
4094  *)
4095    llvm_cv_target_os_type="Unknown" ;;
4096esac
4097fi
4098{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4099echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4100
4101if test "$llvm_cv_os_type" = "Unknown" ; then
4102  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4103echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4104   { (exit 1); exit 1; }; }
4105fi
4106
4107OS=$llvm_cv_os_type
4108
4109HOST_OS=$llvm_cv_os_type
4110
4111TARGET_OS=$llvm_cv_target_os_type
4112
4113
4114LINKALL=$llvm_cv_link_all_option
4115
4116NOLINKALL=$llvm_cv_no_link_all_option
4117
4118
4119case $llvm_cv_platform_type in
4120  Unix)
4121
4122cat >>confdefs.h <<\_ACEOF
4123#define LLVM_ON_UNIX 1
4124_ACEOF
4125
4126    LLVM_ON_UNIX=1
4127
4128    LLVM_ON_WIN32=0
4129
4130    ;;
4131  Win32)
4132
4133cat >>confdefs.h <<\_ACEOF
4134#define LLVM_ON_WIN32 1
4135_ACEOF
4136
4137    LLVM_ON_UNIX=0
4138
4139    LLVM_ON_WIN32=1
4140
4141    ;;
4142esac
4143
4144{ echo "$as_me:$LINENO: checking target architecture" >&5
4145echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4146if test "${llvm_cv_target_arch+set}" = set; then
4147  echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149  case $target in
4150  i?86-*)                 llvm_cv_target_arch="x86" ;;
4151  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4152  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4153  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4154  arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4155  arm*-*)                 llvm_cv_target_arch="ARM" ;;
4156  aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4157  mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4158  mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4159  xcore-*)                llvm_cv_target_arch="XCore" ;;
4160  msp430-*)               llvm_cv_target_arch="MSP430" ;;
4161  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4162  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4163  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4164  *)                      llvm_cv_target_arch="Unknown" ;;
4165esac
4166fi
4167{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4168echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4169
4170if test "$llvm_cv_target_arch" = "Unknown" ; then
4171  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4172echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4173fi
4174
4175case "$llvm_cv_target_arch" in
4176    x86)     LLVM_NATIVE_ARCH="X86" ;;
4177    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4178    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4179esac
4180
4181ARCH=$llvm_cv_target_arch
4182
4183LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4184
4185
4186case $host in
4187  i?86-*)                 host_arch="x86" ;;
4188  amd64-* | x86_64-*)     host_arch="x86_64" ;;
4189  sparc*-*)               host_arch="Sparc" ;;
4190  powerpc*-*)             host_arch="PowerPC" ;;
4191  arm64*-*)               host_arch="AArch64" ;;
4192  arm*-*)                 host_arch="ARM" ;;
4193  aarch64*-*)             host_arch="AArch64" ;;
4194  mips-* | mips64-*)      host_arch="Mips" ;;
4195  mipsel-* | mips64el-*)  host_arch="Mips" ;;
4196  xcore-*)                host_arch="XCore" ;;
4197  msp430-*)               host_arch="MSP430" ;;
4198  hexagon-*)              host_arch="Hexagon" ;;
4199  s390x-*)                host_arch="SystemZ" ;;
4200  *)                      host_arch="Unknown" ;;
4201esac
4202
4203if test "$host_arch" = "Unknown" ; then
4204  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4205echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4206fi
4207
4208HOST_ARCH=$host_arch
4209
4210
4211if test "$cross_compiling" = yes; then
4212  LLVM_CROSS_COMPILING=1
4213
4214
4215{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4216echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4217if test "${ac_cv_build_exeext+set}" = set; then
4218  echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4221  ac_cv_build_exeext=.exe
4222else
4223  ac_build_prefix=${build_alias}-
4224
4225  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4226set dummy ${ac_build_prefix}gcc; ac_word=$2
4227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4230  echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
4232  if test -n "$BUILD_CC"; then
4233  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240  for ac_exec_ext in '' $ac_executable_extensions; do
4241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4242    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244    break 2
4245  fi
4246done
4247done
4248IFS=$as_save_IFS
4249
4250fi
4251fi
4252BUILD_CC=$ac_cv_prog_BUILD_CC
4253if test -n "$BUILD_CC"; then
4254  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4255echo "${ECHO_T}$BUILD_CC" >&6; }
4256else
4257  { echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6; }
4259fi
4260
4261
4262  if test -z "$BUILD_CC"; then
4263     # Extract the first word of "gcc", so it can be a program name with args.
4264set dummy gcc; ac_word=$2
4265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4268  echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
4270  if test -n "$BUILD_CC"; then
4271  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278  for ac_exec_ext in '' $ac_executable_extensions; do
4279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4280    ac_cv_prog_BUILD_CC="gcc"
4281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282    break 2
4283  fi
4284done
4285done
4286IFS=$as_save_IFS
4287
4288fi
4289fi
4290BUILD_CC=$ac_cv_prog_BUILD_CC
4291if test -n "$BUILD_CC"; then
4292  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4293echo "${ECHO_T}$BUILD_CC" >&6; }
4294else
4295  { echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6; }
4297fi
4298
4299
4300     if test -z "$BUILD_CC"; then
4301       # Extract the first word of "cc", so it can be a program name with args.
4302set dummy cc; ac_word=$2
4303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4306  echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308  if test -n "$BUILD_CC"; then
4309  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4310else
4311  ac_prog_rejected=no
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315  IFS=$as_save_IFS
4316  test -z "$as_dir" && as_dir=.
4317  for ac_exec_ext in '' $ac_executable_extensions; do
4318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4319    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4320       ac_prog_rejected=yes
4321       continue
4322     fi
4323    ac_cv_prog_BUILD_CC="cc"
4324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325    break 2
4326  fi
4327done
4328done
4329IFS=$as_save_IFS
4330
4331if test $ac_prog_rejected = yes; then
4332  # We found a bogon in the path, so make sure we never use it.
4333  set dummy $ac_cv_prog_BUILD_CC
4334  shift
4335  if test $# != 0; then
4336    # We chose a different compiler from the bogus one.
4337    # However, it has the same basename, so the bogon will be chosen
4338    # first if we set BUILD_CC to just the basename; use the full file name.
4339    shift
4340    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4341  fi
4342fi
4343fi
4344fi
4345BUILD_CC=$ac_cv_prog_BUILD_CC
4346if test -n "$BUILD_CC"; then
4347  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4348echo "${ECHO_T}$BUILD_CC" >&6; }
4349else
4350  { echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6; }
4352fi
4353
4354
4355     fi
4356  fi
4357  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4358echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4359   { (exit 1); exit 1; }; }
4360  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4361  rm -f conftest*
4362  echo 'int main () { return 0; }' > conftest.$ac_ext
4363  ac_cv_build_exeext=
4364  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4365  (eval $ac_build_link) 2>&5
4366  ac_status=$?
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); }; then
4369    for file in conftest.*; do
4370      case $file in
4371      *.c | *.o | *.obj | *.dSYM) ;;
4372      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4373      esac
4374    done
4375  else
4376    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4377echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4378   { (exit 1); exit 1; }; }
4379  fi
4380  rm -f conftest*
4381  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4382fi
4383fi
4384
4385BUILD_EXEEXT=""
4386test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4387{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4388echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4389ac_build_exeext=$BUILD_EXEEXT
4390
4391  ac_build_prefix=${build_alias}-
4392  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4393set dummy ${ac_build_prefix}g++; ac_word=$2
4394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399  if test -n "$BUILD_CXX"; then
4400  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405  IFS=$as_save_IFS
4406  test -z "$as_dir" && as_dir=.
4407  for ac_exec_ext in '' $ac_executable_extensions; do
4408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411    break 2
4412  fi
4413done
4414done
4415IFS=$as_save_IFS
4416
4417fi
4418fi
4419BUILD_CXX=$ac_cv_prog_BUILD_CXX
4420if test -n "$BUILD_CXX"; then
4421  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4422echo "${ECHO_T}$BUILD_CXX" >&6; }
4423else
4424  { echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6; }
4426fi
4427
4428
4429  if test -z "$BUILD_CXX"; then
4430     # Extract the first word of "g++", so it can be a program name with args.
4431set dummy g++; ac_word=$2
4432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4435  echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437  if test -n "$BUILD_CXX"; then
4438  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4439else
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443  IFS=$as_save_IFS
4444  test -z "$as_dir" && as_dir=.
4445  for ac_exec_ext in '' $ac_executable_extensions; do
4446  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447    ac_cv_prog_BUILD_CXX="g++"
4448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449    break 2
4450  fi
4451done
4452done
4453IFS=$as_save_IFS
4454
4455fi
4456fi
4457BUILD_CXX=$ac_cv_prog_BUILD_CXX
4458if test -n "$BUILD_CXX"; then
4459  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4460echo "${ECHO_T}$BUILD_CXX" >&6; }
4461else
4462  { echo "$as_me:$LINENO: result: no" >&5
4463echo "${ECHO_T}no" >&6; }
4464fi
4465
4466
4467     if test -z "$BUILD_CXX"; then
4468       # Extract the first word of "c++", so it can be a program name with args.
4469set dummy c++; ac_word=$2
4470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4473  echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475  if test -n "$BUILD_CXX"; then
4476  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4477else
4478  ac_prog_rejected=no
4479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482  IFS=$as_save_IFS
4483  test -z "$as_dir" && as_dir=.
4484  for ac_exec_ext in '' $ac_executable_extensions; do
4485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4486    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4487       ac_prog_rejected=yes
4488       continue
4489     fi
4490    ac_cv_prog_BUILD_CXX="c++"
4491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492    break 2
4493  fi
4494done
4495done
4496IFS=$as_save_IFS
4497
4498if test $ac_prog_rejected = yes; then
4499  # We found a bogon in the path, so make sure we never use it.
4500  set dummy $ac_cv_prog_BUILD_CXX
4501  shift
4502  if test $# != 0; then
4503    # We chose a different compiler from the bogus one.
4504    # However, it has the same basename, so the bogon will be chosen
4505    # first if we set BUILD_CXX to just the basename; use the full file name.
4506    shift
4507    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4508  fi
4509fi
4510fi
4511fi
4512BUILD_CXX=$ac_cv_prog_BUILD_CXX
4513if test -n "$BUILD_CXX"; then
4514  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4515echo "${ECHO_T}$BUILD_CXX" >&6; }
4516else
4517  { echo "$as_me:$LINENO: result: no" >&5
4518echo "${ECHO_T}no" >&6; }
4519fi
4520
4521
4522     fi
4523  fi
4524else
4525  LLVM_CROSS_COMPILING=0
4526
4527fi
4528
4529if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4530  cvsbuild="yes"
4531  optimize="no"
4532  CVSBUILD=CVSBUILD=1
4533
4534else
4535  cvsbuild="no"
4536  optimize="yes"
4537fi
4538
4539
4540# Check whether --enable-libcpp was given.
4541if test "${enable_libcpp+set}" = set; then
4542  enableval=$enable_libcpp;
4543else
4544  enableval=default
4545fi
4546
4547case "$enableval" in
4548  yes) ENABLE_LIBCPP=1
4549 ;;
4550  no)  ENABLE_LIBCPP=0
4551 ;;
4552  default) ENABLE_LIBCPP=0
4553;;
4554  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4555echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4556   { (exit 1); exit 1; }; } ;;
4557esac
4558
4559# Check whether --enable-compiler-version-checks was given.
4560if test "${enable_compiler_version_checks+set}" = set; then
4561  enableval=$enable_compiler_version_checks;
4562else
4563  enableval=default
4564fi
4565
4566case "$enableval" in
4567  no)
4568    ;;
4569  yes|default)
4570    ac_ext=cpp
4571ac_cpp='$CXXCPP $CPPFLAGS'
4572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575
4576    case "$llvm_cv_cxx_compiler" in
4577    clang)
4578      { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4579echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4580      cat >conftest.$ac_ext <<_ACEOF
4581/* confdefs.h.  */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
4585/* end confdefs.h.  */
4586
4587#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4588#error This version of Clang is too old to build LLVM
4589#endif
4590
4591_ACEOF
4592rm -f conftest.$ac_objext
4593if { (ac_try="$ac_compile"
4594case "(($ac_try" in
4595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596  *) ac_try_echo=$ac_try;;
4597esac
4598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599  (eval "$ac_compile") 2>conftest.er1
4600  ac_status=$?
4601  grep -v '^ *+' conftest.er1 >conftest.err
4602  rm -f conftest.er1
4603  cat conftest.err >&5
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); } &&
4606	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4607  { (case "(($ac_try" in
4608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609  *) ac_try_echo=$ac_try;;
4610esac
4611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612  (eval "$ac_try") 2>&5
4613  ac_status=$?
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); }; } &&
4616	 { ac_try='test -s conftest.$ac_objext'
4617  { (case "(($ac_try" in
4618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619  *) ac_try_echo=$ac_try;;
4620esac
4621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622  (eval "$ac_try") 2>&5
4623  ac_status=$?
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); }; }; then
4626  { echo "$as_me:$LINENO: result: yes" >&5
4627echo "${ECHO_T}yes" >&6; }
4628else
4629  echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632	{ echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6; }
4634           { { echo "$as_me:$LINENO: error:
4635The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4636Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4637bypass these sanity checks." >&5
4638echo "$as_me: error:
4639The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4640Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4641bypass these sanity checks." >&2;}
4642   { (exit 1); exit 1; }; }
4643fi
4644
4645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646
4647                                          if test "$ENABLE_LIBCPP" -eq 0 ; then
4648        { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4649echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4650        llvm_cv_old_cxxflags="$CXXFLAGS"
4651        CXXFLAGS="$CXXFLAGS -std=c++0x"
4652        cat >conftest.$ac_ext <<_ACEOF
4653/* confdefs.h.  */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h.  */
4658
4659#include <atomic>
4660std::atomic<float> x(0.0f);
4661int main() { return (float)x; }
4662
4663_ACEOF
4664rm -f conftest.$ac_objext conftest$ac_exeext
4665if { (ac_try="$ac_link"
4666case "(($ac_try" in
4667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668  *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671  (eval "$ac_link") 2>conftest.er1
4672  ac_status=$?
4673  grep -v '^ *+' conftest.er1 >conftest.err
4674  rm -f conftest.er1
4675  cat conftest.err >&5
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); } &&
4678	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4679  { (case "(($ac_try" in
4680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681  *) ac_try_echo=$ac_try;;
4682esac
4683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684  (eval "$ac_try") 2>&5
4685  ac_status=$?
4686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687  (exit $ac_status); }; } &&
4688	 { ac_try='test -s conftest$ac_exeext'
4689  { (case "(($ac_try" in
4690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691  *) ac_try_echo=$ac_try;;
4692esac
4693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694  (eval "$ac_try") 2>&5
4695  ac_status=$?
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); }; }; then
4698  { echo "$as_me:$LINENO: result: yes" >&5
4699echo "${ECHO_T}yes" >&6; }
4700else
4701  echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704	{ echo "$as_me:$LINENO: result: no" >&5
4705echo "${ECHO_T}no" >&6; }
4706             { { echo "$as_me:$LINENO: error:
4707We detected a missing feature in the standard C++ library that was known to be
4708missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4709C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4710than 4.7. You will need to update your system and ensure Clang uses the newer
4711standard library.
4712
4713If this error is incorrect or you need to force things to work, you may pass
4714'--disable-compiler-version-checks' to configure to bypass this test." >&5
4715echo "$as_me: error:
4716We detected a missing feature in the standard C++ library that was known to be
4717missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4718C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4719than 4.7. You will need to update your system and ensure Clang uses the newer
4720standard library.
4721
4722If this error is incorrect or you need to force things to work, you may pass
4723'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4724   { (exit 1); exit 1; }; }
4725fi
4726
4727rm -f core conftest.err conftest.$ac_objext \
4728      conftest$ac_exeext conftest.$ac_ext
4729        CXXFLAGS="$llvm_cv_old_cxxflags"
4730      fi
4731      ;;
4732    gcc)
4733      { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4734echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4735      cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h.  */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h.  */
4741
4742#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4743#error This version of GCC is too old to build LLVM
4744#endif
4745
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (ac_try="$ac_compile"
4749case "(($ac_try" in
4750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751  *) ac_try_echo=$ac_try;;
4752esac
4753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754  (eval "$ac_compile") 2>conftest.er1
4755  ac_status=$?
4756  grep -v '^ *+' conftest.er1 >conftest.err
4757  rm -f conftest.er1
4758  cat conftest.err >&5
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); } &&
4761	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4762  { (case "(($ac_try" in
4763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764  *) ac_try_echo=$ac_try;;
4765esac
4766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767  (eval "$ac_try") 2>&5
4768  ac_status=$?
4769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770  (exit $ac_status); }; } &&
4771	 { ac_try='test -s conftest.$ac_objext'
4772  { (case "(($ac_try" in
4773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774  *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777  (eval "$ac_try") 2>&5
4778  ac_status=$?
4779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780  (exit $ac_status); }; }; then
4781  { echo "$as_me:$LINENO: result: yes" >&5
4782echo "${ECHO_T}yes" >&6; }
4783else
4784  echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
4787	{ echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6; }
4789           { { echo "$as_me:$LINENO: error:
4790The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4791to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4792bypass these sanity checks." >&5
4793echo "$as_me: error:
4794The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4795to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4796bypass these sanity checks." >&2;}
4797   { (exit 1); exit 1; }; }
4798fi
4799
4800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801      ;;
4802    unknown)
4803      ;;
4804    esac
4805    ac_ext=c
4806ac_cpp='$CPP $CPPFLAGS'
4807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811    ;;
4812  *)
4813    { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4814echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4815   { (exit 1); exit 1; }; }
4816    ;;
4817esac
4818
4819# Check whether --enable-cxx1y was given.
4820if test "${enable_cxx1y+set}" = set; then
4821  enableval=$enable_cxx1y;
4822else
4823  enableval=default
4824fi
4825
4826case "$enableval" in
4827  yes) ENABLE_CXX1Y=1
4828 ;;
4829  no)  ENABLE_CXX1Y=0
4830 ;;
4831  default) ENABLE_CXX1Y=0
4832;;
4833  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4834echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4835   { (exit 1); exit 1; }; } ;;
4836esac
4837
4838# Check whether --enable-split-dwarf was given.
4839if test "${enable_split_dwarf+set}" = set; then
4840  enableval=$enable_split_dwarf;
4841else
4842  enableval=default
4843fi
4844
4845case "$enableval" in
4846  yes) ENABLE_SPLIT_DWARF=1
4847 ;;
4848  no)  ENABLE_SPLIT_DWARF=0
4849 ;;
4850  default) ENABLE_SPLIT_DWARF=0
4851;;
4852  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4853echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4854   { (exit 1); exit 1; }; } ;;
4855esac
4856
4857clang_arcmt="yes"
4858# Check whether --enable-clang-arcmt was given.
4859if test "${enable_clang_arcmt+set}" = set; then
4860  enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4861else
4862  enableval="yes"
4863fi
4864
4865case "$enableval" in
4866  yes) ENABLE_CLANG_ARCMT=1
4867 ;;
4868  no)  ENABLE_CLANG_ARCMT=0
4869 ;;
4870  default) ENABLE_CLANG_ARCMT=1
4871;;
4872  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4873echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4874   { (exit 1); exit 1; }; } ;;
4875esac
4876
4877clang_plugin_support="yes"
4878# Check whether --enable-clang-plugin-support was given.
4879if test "${enable_clang_plugin_support+set}" = set; then
4880  enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4881else
4882  enableval="yes"
4883fi
4884
4885case "$enableval" in
4886  yes) CLANG_PLUGIN_SUPPORT=1
4887 ;;
4888  no)  CLANG_PLUGIN_SUPPORT=0
4889 ;;
4890  default) CLANG_PLUGIN_SUPPORT=1
4891;;
4892  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4893echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4894   { (exit 1); exit 1; }; } ;;
4895esac
4896
4897clang_static_analyzer="yes"
4898# Check whether --enable-clang-static-analyzer was given.
4899if test "${enable_clang_static_analyzer+set}" = set; then
4900  enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4901else
4902  enableval="yes"
4903fi
4904
4905case "$enableval" in
4906  yes) ENABLE_CLANG_STATIC_ANALYZER=1
4907 ;;
4908  no)
4909    if test ${clang_arcmt} != "no" ; then
4910      { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4911echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4912   { (exit 1); exit 1; }; }
4913    fi
4914    ENABLE_CLANG_STATIC_ANALYZER=0
4915
4916    ;;
4917  default) ENABLE_CLANG_STATIC_ANALYZER=1
4918;;
4919  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4920echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4921   { (exit 1); exit 1; }; } ;;
4922esac
4923
4924# Check whether --enable-clang-rewriter was given.
4925if test "${enable_clang_rewriter+set}" = set; then
4926  enableval=$enable_clang_rewriter;
4927else
4928  enableval="yes"
4929fi
4930
4931case "$enableval" in
4932  yes) ENABLE_CLANG_REWRITER=1
4933 ;;
4934  no)
4935    if test ${clang_arcmt} != "no" ; then
4936      { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4937echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4938   { (exit 1); exit 1; }; }
4939    fi
4940    if test ${clang_static_analyzer} != "no" ; then
4941      { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4942echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4943   { (exit 1); exit 1; }; }
4944    fi
4945    ENABLE_CLANG_REWRITER=0
4946
4947    ;;
4948  default) ENABLE_CLANG_REWRITER=1
4949;;
4950  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4951echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4952   { (exit 1); exit 1; }; } ;;
4953esac
4954
4955# Check whether --enable-optimized was given.
4956if test "${enable_optimized+set}" = set; then
4957  enableval=$enable_optimized;
4958else
4959  enableval=$optimize
4960fi
4961
4962if test ${enableval} = "no" ; then
4963  ENABLE_OPTIMIZED=
4964
4965else
4966  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4967
4968fi
4969
4970# Check whether --enable-profiling was given.
4971if test "${enable_profiling+set}" = set; then
4972  enableval=$enable_profiling;
4973else
4974  enableval="no"
4975fi
4976
4977if test ${enableval} = "no" ; then
4978  ENABLE_PROFILING=
4979
4980else
4981  ENABLE_PROFILING=ENABLE_PROFILING=1
4982
4983fi
4984
4985# Check whether --enable-assertions was given.
4986if test "${enable_assertions+set}" = set; then
4987  enableval=$enable_assertions;
4988else
4989  enableval="yes"
4990fi
4991
4992if test ${enableval} = "yes" ; then
4993  DISABLE_ASSERTIONS=
4994
4995else
4996  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4997
4998fi
4999
5000# Check whether --enable-werror was given.
5001if test "${enable_werror+set}" = set; then
5002  enableval=$enable_werror;
5003else
5004  enableval="no"
5005fi
5006
5007case "$enableval" in
5008  yes) ENABLE_WERROR=1
5009 ;;
5010  no)  ENABLE_WERROR=0
5011 ;;
5012  default) ENABLE_WERROR=0
5013;;
5014  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5015echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5016   { (exit 1); exit 1; }; } ;;
5017esac
5018
5019# Check whether --enable-expensive-checks was given.
5020if test "${enable_expensive_checks+set}" = set; then
5021  enableval=$enable_expensive_checks;
5022else
5023  enableval="no"
5024fi
5025
5026if test ${enableval} = "yes" ; then
5027  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5028
5029  EXPENSIVE_CHECKS=yes
5030
5031else
5032  ENABLE_EXPENSIVE_CHECKS=
5033
5034  EXPENSIVE_CHECKS=no
5035
5036fi
5037
5038# Check whether --enable-debug-runtime was given.
5039if test "${enable_debug_runtime+set}" = set; then
5040  enableval=$enable_debug_runtime;
5041else
5042  enableval=no
5043fi
5044
5045if test ${enableval} = "no" ; then
5046  DEBUG_RUNTIME=
5047
5048else
5049  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5050
5051fi
5052
5053# Check whether --enable-debug-symbols was given.
5054if test "${enable_debug_symbols+set}" = set; then
5055  enableval=$enable_debug_symbols;
5056else
5057  enableval=no
5058fi
5059
5060if test ${enableval} = "no" ; then
5061  DEBUG_SYMBOLS=
5062
5063else
5064  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5065
5066fi
5067
5068# Check whether --enable-keep-symbols was given.
5069if test "${enable_keep_symbols+set}" = set; then
5070  enableval=$enable_keep_symbols;
5071else
5072  enableval=no
5073fi
5074
5075if test ${enableval} = "no" ; then
5076  KEEP_SYMBOLS=
5077
5078else
5079  KEEP_SYMBOLS=KEEP_SYMBOLS=1
5080
5081fi
5082
5083# Check whether --enable-jit was given.
5084if test "${enable_jit+set}" = set; then
5085  enableval=$enable_jit;
5086else
5087  enableval=default
5088fi
5089
5090if test ${enableval} = "no"
5091then
5092  JIT=
5093
5094else
5095  case "$llvm_cv_target_arch" in
5096    x86)         TARGET_HAS_JIT=1
5097 ;;
5098    Sparc)       TARGET_HAS_JIT=0
5099 ;;
5100    PowerPC)     TARGET_HAS_JIT=1
5101 ;;
5102    x86_64)      TARGET_HAS_JIT=1
5103 ;;
5104    ARM)         TARGET_HAS_JIT=1
5105 ;;
5106    Mips)        TARGET_HAS_JIT=1
5107 ;;
5108    XCore)       TARGET_HAS_JIT=0
5109 ;;
5110    MSP430)      TARGET_HAS_JIT=0
5111 ;;
5112    Hexagon)     TARGET_HAS_JIT=0
5113 ;;
5114    NVPTX)       TARGET_HAS_JIT=0
5115 ;;
5116    SystemZ)     TARGET_HAS_JIT=1
5117 ;;
5118    *)           TARGET_HAS_JIT=0
5119 ;;
5120  esac
5121fi
5122
5123TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5124TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5125
5126
5127# Check whether --enable-docs was given.
5128if test "${enable_docs+set}" = set; then
5129  enableval=$enable_docs;
5130else
5131  enableval=default
5132fi
5133
5134case "$enableval" in
5135  yes) ENABLE_DOCS=1
5136 ;;
5137  no)  ENABLE_DOCS=0
5138 ;;
5139  default) ENABLE_DOCS=1
5140 ;;
5141  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143   { (exit 1); exit 1; }; } ;;
5144esac
5145
5146# Check whether --enable-doxygen was given.
5147if test "${enable_doxygen+set}" = set; then
5148  enableval=$enable_doxygen;
5149else
5150  enableval=default
5151fi
5152
5153case "$enableval" in
5154  yes) ENABLE_DOXYGEN=1
5155 ;;
5156  no)  ENABLE_DOXYGEN=0
5157 ;;
5158  default) ENABLE_DOXYGEN=0
5159 ;;
5160  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162   { (exit 1); exit 1; }; } ;;
5163esac
5164
5165# Check whether --enable-threads was given.
5166if test "${enable_threads+set}" = set; then
5167  enableval=$enable_threads;
5168else
5169  enableval=default
5170fi
5171
5172case "$enableval" in
5173  yes) LLVM_ENABLE_THREADS=1
5174 ;;
5175  no)  LLVM_ENABLE_THREADS=0
5176 ;;
5177  default) LLVM_ENABLE_THREADS=1
5178 ;;
5179  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181   { (exit 1); exit 1; }; } ;;
5182esac
5183
5184cat >>confdefs.h <<_ACEOF
5185#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5186_ACEOF
5187
5188
5189# Check whether --enable-pthreads was given.
5190if test "${enable_pthreads+set}" = set; then
5191  enableval=$enable_pthreads;
5192else
5193  enableval=default
5194fi
5195
5196case "$enableval" in
5197  yes) ENABLE_PTHREADS=1
5198 ;;
5199  no)  ENABLE_PTHREADS=0
5200 ;;
5201  default) ENABLE_PTHREADS=1
5202 ;;
5203  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205   { (exit 1); exit 1; }; } ;;
5206esac
5207
5208# Check whether --enable-zlib was given.
5209if test "${enable_zlib+set}" = set; then
5210  enableval=$enable_zlib;
5211else
5212  enableval=default
5213fi
5214
5215case "$enableval" in
5216  yes) LLVM_ENABLE_ZLIB=1
5217 ;;
5218  no)  LLVM_ENABLE_ZLIB=0
5219 ;;
5220  default) LLVM_ENABLE_ZLIB=1
5221 ;;
5222  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5223echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5224   { (exit 1); exit 1; }; } ;;
5225esac
5226
5227cat >>confdefs.h <<_ACEOF
5228#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5229_ACEOF
5230
5231
5232# Check whether --enable-pic was given.
5233if test "${enable_pic+set}" = set; then
5234  enableval=$enable_pic;
5235else
5236  enableval=default
5237fi
5238
5239case "$enableval" in
5240  yes) ENABLE_PIC=1
5241 ;;
5242  no)  ENABLE_PIC=0
5243 ;;
5244  default) ENABLE_PIC=1
5245 ;;
5246  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5247echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5248   { (exit 1); exit 1; }; } ;;
5249esac
5250
5251cat >>confdefs.h <<_ACEOF
5252#define ENABLE_PIC $ENABLE_PIC
5253_ACEOF
5254
5255
5256# Check whether --enable-shared was given.
5257if test "${enable_shared+set}" = set; then
5258  enableval=$enable_shared;
5259else
5260  enableval=default
5261fi
5262
5263case "$enableval" in
5264  yes) ENABLE_SHARED=1
5265 ;;
5266  no)  ENABLE_SHARED=0
5267 ;;
5268  default) ENABLE_SHARED=0
5269 ;;
5270  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5271echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5272   { (exit 1); exit 1; }; } ;;
5273esac
5274
5275# Check whether --enable-embed-stdcxx was given.
5276if test "${enable_embed_stdcxx+set}" = set; then
5277  enableval=$enable_embed_stdcxx;
5278else
5279  enableval=default
5280fi
5281
5282case "$enableval" in
5283  yes) ENABLE_EMBED_STDCXX=1
5284 ;;
5285  no)  ENABLE_EMBED_STDCXX=0
5286 ;;
5287  default) ENABLE_EMBED_STDCXX=0
5288 ;;
5289  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5290echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5291   { (exit 1); exit 1; }; } ;;
5292esac
5293
5294# Check whether --enable-timestamps was given.
5295if test "${enable_timestamps+set}" = set; then
5296  enableval=$enable_timestamps;
5297else
5298  enableval=default
5299fi
5300
5301case "$enableval" in
5302  yes) ENABLE_TIMESTAMPS=1
5303 ;;
5304  no)  ENABLE_TIMESTAMPS=0
5305 ;;
5306  default) ENABLE_TIMESTAMPS=1
5307 ;;
5308  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5309echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5310   { (exit 1); exit 1; }; } ;;
5311esac
5312
5313cat >>confdefs.h <<_ACEOF
5314#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5315_ACEOF
5316
5317
5318# Check whether --enable-backtraces was given.
5319if test "${enable_backtraces+set}" = set; then
5320  enableval=$enable_backtraces; case "$enableval" in
5321    yes) llvm_cv_enable_backtraces="yes" ;;
5322    no)  llvm_cv_enable_backtraces="no"  ;;
5323    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5324echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5325   { (exit 1); exit 1; }; } ;;
5326  esac
5327else
5328  llvm_cv_enable_backtraces="yes"
5329fi
5330
5331if test "$llvm_cv_enable_backtraces" = "yes" ; then
5332
5333cat >>confdefs.h <<\_ACEOF
5334#define ENABLE_BACKTRACES 1
5335_ACEOF
5336
5337fi
5338
5339# Check whether --enable-crash-overrides was given.
5340if test "${enable_crash_overrides+set}" = set; then
5341  enableval=$enable_crash_overrides; case "$enableval" in
5342    yes) llvm_cv_enable_crash_overrides="yes" ;;
5343    no)  llvm_cv_enable_crash_overrides="no"  ;;
5344    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5345echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5346   { (exit 1); exit 1; }; } ;;
5347  esac
5348else
5349  llvm_cv_enable_crash_overrides="yes"
5350fi
5351
5352if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5353
5354cat >>confdefs.h <<\_ACEOF
5355#define ENABLE_CRASH_OVERRIDES 1
5356_ACEOF
5357
5358fi
5359
5360ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5361ALL_TARGETS=$ALL_TARGETS
5362
5363
5364TARGETS_TO_BUILD=""
5365# Check whether --enable-targets was given.
5366if test "${enable_targets+set}" = set; then
5367  enableval=$enable_targets;
5368else
5369  enableval=all
5370fi
5371
5372if test "$enableval" = host-only ; then
5373  enableval=host
5374fi
5375case "$enableval" in
5376  all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5377  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5378      case "$a_target" in
5379        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5380        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5381        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5382        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5383        aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5384        arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5385        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5386        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5387        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5388        mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389        mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5390        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5391        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5392        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5393        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5394        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5395        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5396        r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5397        host) case "$llvm_cv_target_arch" in
5398            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5400            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5401            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5402            AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5403            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5404            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5405            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5406            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5407            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5408            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5409            SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5410            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5411echo "$as_me: error: Can not set target to build" >&2;}
5412   { (exit 1); exit 1; }; } ;;
5413          esac ;;
5414        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5415echo "$as_me: error: Unrecognized target $a_target" >&2;}
5416   { (exit 1); exit 1; }; } ;;
5417      esac
5418  done
5419  ;;
5420esac
5421
5422# Check whether --enable-experimental-targets was given.
5423if test "${enable_experimental_targets+set}" = set; then
5424  enableval=$enable_experimental_targets;
5425else
5426  enableval=disable
5427fi
5428
5429
5430if test ${enableval} != "disable"
5431then
5432  TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5433fi
5434
5435TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5436
5437
5438for a_target in $TARGETS_TO_BUILD; do
5439  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5440
5441cat >>confdefs.h <<_ACEOF
5442#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5443_ACEOF
5444
5445    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5446    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5447    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5448    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5449    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5450      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5451    fi
5452    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5453      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5454    fi
5455
5456cat >>confdefs.h <<_ACEOF
5457#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5458_ACEOF
5459
5460
5461cat >>confdefs.h <<_ACEOF
5462#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5463_ACEOF
5464
5465
5466cat >>confdefs.h <<_ACEOF
5467#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5468_ACEOF
5469
5470
5471cat >>confdefs.h <<_ACEOF
5472#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5473_ACEOF
5474
5475    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5476
5477cat >>confdefs.h <<_ACEOF
5478#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5479_ACEOF
5480
5481    fi
5482    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5483
5484cat >>confdefs.h <<_ACEOF
5485#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5486_ACEOF
5487
5488    fi
5489  fi
5490done
5491
5492LLVM_ENUM_TARGETS=""
5493LLVM_ENUM_ASM_PRINTERS=""
5494LLVM_ENUM_ASM_PARSERS=""
5495LLVM_ENUM_DISASSEMBLERS=""
5496for target_to_build in $TARGETS_TO_BUILD; do
5497  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5498  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5499    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5500  fi
5501  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5502    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5503  fi
5504  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5505    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5506  fi
5507done
5508
5509
5510
5511
5512
5513
5514# Check whether --with-optimize-option was given.
5515if test "${with_optimize_option+set}" = set; then
5516  withval=$with_optimize_option;
5517else
5518  withval=default
5519fi
5520
5521{ echo "$as_me:$LINENO: checking optimization flags" >&5
5522echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5523case "$withval" in
5524  default)
5525    case "$llvm_cv_os_type" in
5526    FreeBSD) optimize_option=-O2 ;;
5527    MingW) optimize_option=-O2 ;;
5528    *)     optimize_option=-O3 ;;
5529    esac ;;
5530  *) optimize_option="$withval" ;;
5531esac
5532OPTIMIZE_OPTION=$optimize_option
5533
5534{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5535echo "${ECHO_T}$optimize_option" >&6; }
5536
5537
5538# Check whether --with-extra-options was given.
5539if test "${with_extra_options+set}" = set; then
5540  withval=$with_extra_options;
5541else
5542  withval=default
5543fi
5544
5545case "$withval" in
5546  default) EXTRA_OPTIONS= ;;
5547  *) EXTRA_OPTIONS=$withval ;;
5548esac
5549EXTRA_OPTIONS=$EXTRA_OPTIONS
5550
5551
5552
5553# Check whether --with-extra-ld-options was given.
5554if test "${with_extra_ld_options+set}" = set; then
5555  withval=$with_extra_ld_options;
5556else
5557  withval=default
5558fi
5559
5560case "$withval" in
5561  default) EXTRA_LD_OPTIONS= ;;
5562  *) EXTRA_LD_OPTIONS=$withval ;;
5563esac
5564EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5565
5566
5567# Check whether --enable-bindings was given.
5568if test "${enable_bindings+set}" = set; then
5569  enableval=$enable_bindings;
5570else
5571  enableval=default
5572fi
5573
5574BINDINGS_TO_BUILD=""
5575case "$enableval" in
5576  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5577  all ) BINDINGS_TO_BUILD="ocaml" ;;
5578  none | no) BINDINGS_TO_BUILD="" ;;
5579  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5580      case "$a_binding" in
5581        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5582        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5583echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5584   { (exit 1); exit 1; }; } ;;
5585      esac
5586  done
5587  ;;
5588esac
5589
5590
5591# Check whether --with-ocaml-libdir was given.
5592if test "${with_ocaml_libdir+set}" = set; then
5593  withval=$with_ocaml_libdir;
5594else
5595  withval=auto
5596fi
5597
5598case "$withval" in
5599  auto) with_ocaml_libdir="$withval" ;;
5600  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5601  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5602echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5603   { (exit 1); exit 1; }; } ;;
5604esac
5605
5606
5607# Check whether --with-clang-srcdir was given.
5608if test "${with_clang_srcdir+set}" = set; then
5609  withval=$with_clang_srcdir;
5610else
5611  withval="-"
5612fi
5613
5614case "$withval" in
5615  -) clang_src_root="" ;;
5616  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5617  *) clang_src_root="$ac_pwd/$withval" ;;
5618esac
5619CLANG_SRC_ROOT=$clang_src_root
5620
5621
5622
5623# Check whether --with-clang-resource-dir was given.
5624if test "${with_clang_resource_dir+set}" = set; then
5625  withval=$with_clang_resource_dir;
5626else
5627  withval=""
5628fi
5629
5630
5631cat >>confdefs.h <<_ACEOF
5632#define CLANG_RESOURCE_DIR "$withval"
5633_ACEOF
5634
5635
5636
5637# Check whether --with-c-include-dirs was given.
5638if test "${with_c_include_dirs+set}" = set; then
5639  withval=$with_c_include_dirs;
5640else
5641  withval=""
5642fi
5643
5644
5645cat >>confdefs.h <<_ACEOF
5646#define C_INCLUDE_DIRS "$withval"
5647_ACEOF
5648
5649
5650# Clang normally uses the system c++ headers and libraries. With this option,
5651# clang will use the ones provided by a gcc installation instead. This option should
5652# be passed the same value that was used with --prefix when configuring gcc.
5653
5654# Check whether --with-gcc-toolchain was given.
5655if test "${with_gcc_toolchain+set}" = set; then
5656  withval=$with_gcc_toolchain;
5657else
5658  withval=""
5659fi
5660
5661
5662cat >>confdefs.h <<_ACEOF
5663#define GCC_INSTALL_PREFIX "$withval"
5664_ACEOF
5665
5666
5667
5668# Check whether --with-default-sysroot was given.
5669if test "${with_default_sysroot+set}" = set; then
5670  withval=$with_default_sysroot;
5671else
5672  withval=""
5673fi
5674
5675
5676cat >>confdefs.h <<_ACEOF
5677#define DEFAULT_SYSROOT "$withval"
5678_ACEOF
5679
5680
5681
5682# Check whether --with-binutils-include was given.
5683if test "${with_binutils_include+set}" = set; then
5684  withval=$with_binutils_include;
5685else
5686  withval=default
5687fi
5688
5689case "$withval" in
5690  default) WITH_BINUTILS_INCDIR=default ;;
5691  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5692  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5693echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5694   { (exit 1); exit 1; }; } ;;
5695esac
5696if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5697  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5698
5699  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5700     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5701     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5702echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5703   { (exit 1); exit 1; }; };
5704  fi
5705fi
5706
5707
5708# Check whether --with-bug-report-url was given.
5709if test "${with_bug_report_url+set}" = set; then
5710  withval=$with_bug_report_url;
5711else
5712  withval="http://llvm.org/bugs/"
5713fi
5714
5715
5716cat >>confdefs.h <<_ACEOF
5717#define BUG_REPORT_URL "$withval"
5718_ACEOF
5719
5720
5721# Check whether --enable-terminfo was given.
5722if test "${enable_terminfo+set}" = set; then
5723  enableval=$enable_terminfo; case "$enableval" in
5724    yes) llvm_cv_enable_terminfo="yes" ;;
5725    no)  llvm_cv_enable_terminfo="no"  ;;
5726    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5727echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5728   { (exit 1); exit 1; }; } ;;
5729  esac
5730else
5731  llvm_cv_enable_terminfo="yes"
5732fi
5733
5734case "$llvm_cv_enable_terminfo" in
5735  yes) ENABLE_TERMINFO=1
5736 ;;
5737  no)  ENABLE_TERMINFO=0
5738 ;;
5739esac
5740
5741# Check whether --enable-libedit was given.
5742if test "${enable_libedit+set}" = set; then
5743  enableval=$enable_libedit; case "$enableval" in
5744    yes) llvm_cv_enable_libedit="yes" ;;
5745    no)  llvm_cv_enable_libedit="no"  ;;
5746    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5747echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5748   { (exit 1); exit 1; }; } ;;
5749  esac
5750else
5751  llvm_cv_enable_libedit="yes"
5752fi
5753
5754
5755# Check whether --enable-libffi was given.
5756if test "${enable_libffi+set}" = set; then
5757  enableval=$enable_libffi; case "$enableval" in
5758    yes) llvm_cv_enable_libffi="yes" ;;
5759    no)  llvm_cv_enable_libffi="no"  ;;
5760    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5761echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5762   { (exit 1); exit 1; }; } ;;
5763  esac
5764else
5765  llvm_cv_enable_libffi=no
5766fi
5767
5768
5769
5770# Check whether --with-internal-prefix was given.
5771if test "${with_internal_prefix+set}" = set; then
5772  withval=$with_internal_prefix;
5773else
5774  withval=""
5775fi
5776
5777INTERNAL_PREFIX=$withval
5778
5779
5780
5781{ echo "$as_me:$LINENO: checking for GNU make" >&5
5782echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5783if test "${llvm_cv_gnu_make_command+set}" = set; then
5784  echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786  llvm_cv_gnu_make_command=''
5787 for a in "$MAKE" make gmake gnumake ; do
5788  if test -z "$a" ; then continue ; fi ;
5789  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5790  then
5791   llvm_cv_gnu_make_command=$a ;
5792   break;
5793  fi
5794 done
5795fi
5796{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5797echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5798 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5799   ifGNUmake='' ;
5800 else
5801   ifGNUmake='#' ;
5802   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5803echo "${ECHO_T}\"Not found\"" >&6; };
5804 fi
5805
5806
5807{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5808echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5809LN_S=$as_ln_s
5810if test "$LN_S" = "ln -s"; then
5811  { echo "$as_me:$LINENO: result: yes" >&5
5812echo "${ECHO_T}yes" >&6; }
5813else
5814  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5815echo "${ECHO_T}no, using $LN_S" >&6; }
5816fi
5817
5818# Extract the first word of "nm", so it can be a program name with args.
5819set dummy nm; ac_word=$2
5820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822if test "${ac_cv_path_NM+set}" = set; then
5823  echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825  case $NM in
5826  [\\/]* | ?:[\\/]*)
5827  ac_cv_path_NM="$NM" # Let the user override the test with a path.
5828  ;;
5829  *)
5830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833  IFS=$as_save_IFS
5834  test -z "$as_dir" && as_dir=.
5835  for ac_exec_ext in '' $ac_executable_extensions; do
5836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839    break 2
5840  fi
5841done
5842done
5843IFS=$as_save_IFS
5844
5845  test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5846  ;;
5847esac
5848fi
5849NM=$ac_cv_path_NM
5850if test -n "$NM"; then
5851  { echo "$as_me:$LINENO: result: $NM" >&5
5852echo "${ECHO_T}$NM" >&6; }
5853else
5854  { echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6; }
5856fi
5857
5858
5859# Extract the first word of "cmp", so it can be a program name with args.
5860set dummy cmp; ac_word=$2
5861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863if test "${ac_cv_path_CMP+set}" = set; then
5864  echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866  case $CMP in
5867  [\\/]* | ?:[\\/]*)
5868  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5869  ;;
5870  *)
5871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874  IFS=$as_save_IFS
5875  test -z "$as_dir" && as_dir=.
5876  for ac_exec_ext in '' $ac_executable_extensions; do
5877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880    break 2
5881  fi
5882done
5883done
5884IFS=$as_save_IFS
5885
5886  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5887  ;;
5888esac
5889fi
5890CMP=$ac_cv_path_CMP
5891if test -n "$CMP"; then
5892  { echo "$as_me:$LINENO: result: $CMP" >&5
5893echo "${ECHO_T}$CMP" >&6; }
5894else
5895  { echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6; }
5897fi
5898
5899
5900# Extract the first word of "cp", so it can be a program name with args.
5901set dummy cp; ac_word=$2
5902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904if test "${ac_cv_path_CP+set}" = set; then
5905  echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907  case $CP in
5908  [\\/]* | ?:[\\/]*)
5909  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5910  ;;
5911  *)
5912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915  IFS=$as_save_IFS
5916  test -z "$as_dir" && as_dir=.
5917  for ac_exec_ext in '' $ac_executable_extensions; do
5918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921    break 2
5922  fi
5923done
5924done
5925IFS=$as_save_IFS
5926
5927  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5928  ;;
5929esac
5930fi
5931CP=$ac_cv_path_CP
5932if test -n "$CP"; then
5933  { echo "$as_me:$LINENO: result: $CP" >&5
5934echo "${ECHO_T}$CP" >&6; }
5935else
5936  { echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6; }
5938fi
5939
5940
5941# Extract the first word of "date", so it can be a program name with args.
5942set dummy date; ac_word=$2
5943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945if test "${ac_cv_path_DATE+set}" = set; then
5946  echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948  case $DATE in
5949  [\\/]* | ?:[\\/]*)
5950  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5951  ;;
5952  *)
5953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956  IFS=$as_save_IFS
5957  test -z "$as_dir" && as_dir=.
5958  for ac_exec_ext in '' $ac_executable_extensions; do
5959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5961    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962    break 2
5963  fi
5964done
5965done
5966IFS=$as_save_IFS
5967
5968  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5969  ;;
5970esac
5971fi
5972DATE=$ac_cv_path_DATE
5973if test -n "$DATE"; then
5974  { echo "$as_me:$LINENO: result: $DATE" >&5
5975echo "${ECHO_T}$DATE" >&6; }
5976else
5977  { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
5979fi
5980
5981
5982# Extract the first word of "find", so it can be a program name with args.
5983set dummy find; ac_word=$2
5984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986if test "${ac_cv_path_FIND+set}" = set; then
5987  echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989  case $FIND in
5990  [\\/]* | ?:[\\/]*)
5991  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5992  ;;
5993  *)
5994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997  IFS=$as_save_IFS
5998  test -z "$as_dir" && as_dir=.
5999  for ac_exec_ext in '' $ac_executable_extensions; do
6000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003    break 2
6004  fi
6005done
6006done
6007IFS=$as_save_IFS
6008
6009  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6010  ;;
6011esac
6012fi
6013FIND=$ac_cv_path_FIND
6014if test -n "$FIND"; then
6015  { echo "$as_me:$LINENO: result: $FIND" >&5
6016echo "${ECHO_T}$FIND" >&6; }
6017else
6018  { echo "$as_me:$LINENO: result: no" >&5
6019echo "${ECHO_T}no" >&6; }
6020fi
6021
6022
6023# Extract the first word of "grep", so it can be a program name with args.
6024set dummy grep; ac_word=$2
6025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027if test "${ac_cv_path_GREP+set}" = set; then
6028  echo $ECHO_N "(cached) $ECHO_C" >&6
6029else
6030  case $GREP in
6031  [\\/]* | ?:[\\/]*)
6032  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6033  ;;
6034  *)
6035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036for as_dir in $PATH
6037do
6038  IFS=$as_save_IFS
6039  test -z "$as_dir" && as_dir=.
6040  for ac_exec_ext in '' $ac_executable_extensions; do
6041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6042    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044    break 2
6045  fi
6046done
6047done
6048IFS=$as_save_IFS
6049
6050  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6051  ;;
6052esac
6053fi
6054GREP=$ac_cv_path_GREP
6055if test -n "$GREP"; then
6056  { echo "$as_me:$LINENO: result: $GREP" >&5
6057echo "${ECHO_T}$GREP" >&6; }
6058else
6059  { echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6; }
6061fi
6062
6063
6064# Extract the first word of "mkdir", so it can be a program name with args.
6065set dummy mkdir; ac_word=$2
6066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068if test "${ac_cv_path_MKDIR+set}" = set; then
6069  echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071  case $MKDIR in
6072  [\\/]* | ?:[\\/]*)
6073  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6074  ;;
6075  *)
6076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079  IFS=$as_save_IFS
6080  test -z "$as_dir" && as_dir=.
6081  for ac_exec_ext in '' $ac_executable_extensions; do
6082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085    break 2
6086  fi
6087done
6088done
6089IFS=$as_save_IFS
6090
6091  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6092  ;;
6093esac
6094fi
6095MKDIR=$ac_cv_path_MKDIR
6096if test -n "$MKDIR"; then
6097  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6098echo "${ECHO_T}$MKDIR" >&6; }
6099else
6100  { echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6; }
6102fi
6103
6104
6105# Extract the first word of "mv", so it can be a program name with args.
6106set dummy mv; ac_word=$2
6107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109if test "${ac_cv_path_MV+set}" = set; then
6110  echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112  case $MV in
6113  [\\/]* | ?:[\\/]*)
6114  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6115  ;;
6116  *)
6117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120  IFS=$as_save_IFS
6121  test -z "$as_dir" && as_dir=.
6122  for ac_exec_ext in '' $ac_executable_extensions; do
6123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126    break 2
6127  fi
6128done
6129done
6130IFS=$as_save_IFS
6131
6132  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6133  ;;
6134esac
6135fi
6136MV=$ac_cv_path_MV
6137if test -n "$MV"; then
6138  { echo "$as_me:$LINENO: result: $MV" >&5
6139echo "${ECHO_T}$MV" >&6; }
6140else
6141  { echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6; }
6143fi
6144
6145
6146if test -n "$ac_tool_prefix"; then
6147  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151if test "${ac_cv_prog_RANLIB+set}" = set; then
6152  echo $ECHO_N "(cached) $ECHO_C" >&6
6153else
6154  if test -n "$RANLIB"; then
6155  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156else
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160  IFS=$as_save_IFS
6161  test -z "$as_dir" && as_dir=.
6162  for ac_exec_ext in '' $ac_executable_extensions; do
6163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166    break 2
6167  fi
6168done
6169done
6170IFS=$as_save_IFS
6171
6172fi
6173fi
6174RANLIB=$ac_cv_prog_RANLIB
6175if test -n "$RANLIB"; then
6176  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177echo "${ECHO_T}$RANLIB" >&6; }
6178else
6179  { echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6; }
6181fi
6182
6183
6184fi
6185if test -z "$ac_cv_prog_RANLIB"; then
6186  ac_ct_RANLIB=$RANLIB
6187  # Extract the first word of "ranlib", so it can be a program name with args.
6188set dummy ranlib; ac_word=$2
6189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192  echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194  if test -n "$ac_ct_RANLIB"; then
6195  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200  IFS=$as_save_IFS
6201  test -z "$as_dir" && as_dir=.
6202  for ac_exec_ext in '' $ac_executable_extensions; do
6203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204    ac_cv_prog_ac_ct_RANLIB="ranlib"
6205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206    break 2
6207  fi
6208done
6209done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215if test -n "$ac_ct_RANLIB"; then
6216  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6218else
6219  { echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6; }
6221fi
6222
6223  if test "x$ac_ct_RANLIB" = x; then
6224    RANLIB=":"
6225  else
6226    case $cross_compiling:$ac_tool_warned in
6227yes:)
6228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229whose name does not start with the host triplet.  If you think this
6230configuration is useful to you, please write to autoconf@gnu.org." >&5
6231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232whose name does not start with the host triplet.  If you think this
6233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236    RANLIB=$ac_ct_RANLIB
6237  fi
6238else
6239  RANLIB="$ac_cv_prog_RANLIB"
6240fi
6241
6242if test -n "$ac_tool_prefix"; then
6243  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}ar; ac_word=$2
6245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247if test "${ac_cv_prog_AR+set}" = set; then
6248  echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250  if test -n "$AR"; then
6251  ac_cv_prog_AR="$AR" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256  IFS=$as_save_IFS
6257  test -z "$as_dir" && as_dir=.
6258  for ac_exec_ext in '' $ac_executable_extensions; do
6259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6260    ac_cv_prog_AR="${ac_tool_prefix}ar"
6261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262    break 2
6263  fi
6264done
6265done
6266IFS=$as_save_IFS
6267
6268fi
6269fi
6270AR=$ac_cv_prog_AR
6271if test -n "$AR"; then
6272  { echo "$as_me:$LINENO: result: $AR" >&5
6273echo "${ECHO_T}$AR" >&6; }
6274else
6275  { echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6; }
6277fi
6278
6279
6280fi
6281if test -z "$ac_cv_prog_AR"; then
6282  ac_ct_AR=$AR
6283  # Extract the first word of "ar", so it can be a program name with args.
6284set dummy ar; ac_word=$2
6285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6288  echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290  if test -n "$ac_ct_AR"; then
6291  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  test -z "$as_dir" && as_dir=.
6298  for ac_exec_ext in '' $ac_executable_extensions; do
6299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300    ac_cv_prog_ac_ct_AR="ar"
6301    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302    break 2
6303  fi
6304done
6305done
6306IFS=$as_save_IFS
6307
6308fi
6309fi
6310ac_ct_AR=$ac_cv_prog_ac_ct_AR
6311if test -n "$ac_ct_AR"; then
6312  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6313echo "${ECHO_T}$ac_ct_AR" >&6; }
6314else
6315  { echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6; }
6317fi
6318
6319  if test "x$ac_ct_AR" = x; then
6320    AR="false"
6321  else
6322    case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325whose name does not start with the host triplet.  If you think this
6326configuration is useful to you, please write to autoconf@gnu.org." >&5
6327echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328whose name does not start with the host triplet.  If you think this
6329configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330ac_tool_warned=yes ;;
6331esac
6332    AR=$ac_ct_AR
6333  fi
6334else
6335  AR="$ac_cv_prog_AR"
6336fi
6337
6338# Extract the first word of "rm", so it can be a program name with args.
6339set dummy rm; ac_word=$2
6340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342if test "${ac_cv_path_RM+set}" = set; then
6343  echo $ECHO_N "(cached) $ECHO_C" >&6
6344else
6345  case $RM in
6346  [\\/]* | ?:[\\/]*)
6347  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6348  ;;
6349  *)
6350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353  IFS=$as_save_IFS
6354  test -z "$as_dir" && as_dir=.
6355  for ac_exec_ext in '' $ac_executable_extensions; do
6356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6357    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359    break 2
6360  fi
6361done
6362done
6363IFS=$as_save_IFS
6364
6365  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6366  ;;
6367esac
6368fi
6369RM=$ac_cv_path_RM
6370if test -n "$RM"; then
6371  { echo "$as_me:$LINENO: result: $RM" >&5
6372echo "${ECHO_T}$RM" >&6; }
6373else
6374  { echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6; }
6376fi
6377
6378
6379# Extract the first word of "sed", so it can be a program name with args.
6380set dummy sed; ac_word=$2
6381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383if test "${ac_cv_path_SED+set}" = set; then
6384  echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386  case $SED in
6387  [\\/]* | ?:[\\/]*)
6388  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6389  ;;
6390  *)
6391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394  IFS=$as_save_IFS
6395  test -z "$as_dir" && as_dir=.
6396  for ac_exec_ext in '' $ac_executable_extensions; do
6397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400    break 2
6401  fi
6402done
6403done
6404IFS=$as_save_IFS
6405
6406  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6407  ;;
6408esac
6409fi
6410SED=$ac_cv_path_SED
6411if test -n "$SED"; then
6412  { echo "$as_me:$LINENO: result: $SED" >&5
6413echo "${ECHO_T}$SED" >&6; }
6414else
6415  { echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6; }
6417fi
6418
6419
6420# Extract the first word of "tar", so it can be a program name with args.
6421set dummy tar; ac_word=$2
6422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424if test "${ac_cv_path_TAR+set}" = set; then
6425  echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427  case $TAR in
6428  [\\/]* | ?:[\\/]*)
6429  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6430  ;;
6431  *)
6432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433for as_dir in $PATH
6434do
6435  IFS=$as_save_IFS
6436  test -z "$as_dir" && as_dir=.
6437  for ac_exec_ext in '' $ac_executable_extensions; do
6438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6439    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6440    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441    break 2
6442  fi
6443done
6444done
6445IFS=$as_save_IFS
6446
6447  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6448  ;;
6449esac
6450fi
6451TAR=$ac_cv_path_TAR
6452if test -n "$TAR"; then
6453  { echo "$as_me:$LINENO: result: $TAR" >&5
6454echo "${ECHO_T}$TAR" >&6; }
6455else
6456  { echo "$as_me:$LINENO: result: no" >&5
6457echo "${ECHO_T}no" >&6; }
6458fi
6459
6460
6461# Extract the first word of "pwd", so it can be a program name with args.
6462set dummy pwd; ac_word=$2
6463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_path_BINPWD+set}" = set; then
6466  echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468  case $BINPWD in
6469  [\\/]* | ?:[\\/]*)
6470  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6471  ;;
6472  *)
6473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478  for ac_exec_ext in '' $ac_executable_extensions; do
6479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485done
6486IFS=$as_save_IFS
6487
6488  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6489  ;;
6490esac
6491fi
6492BINPWD=$ac_cv_path_BINPWD
6493if test -n "$BINPWD"; then
6494  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6495echo "${ECHO_T}$BINPWD" >&6; }
6496else
6497  { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
6499fi
6500
6501
6502
6503# Extract the first word of "Graphviz", so it can be a program name with args.
6504set dummy Graphviz; ac_word=$2
6505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510  case $GRAPHVIZ in
6511  [\\/]* | ?:[\\/]*)
6512  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6513  ;;
6514  *)
6515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518  IFS=$as_save_IFS
6519  test -z "$as_dir" && as_dir=.
6520  for ac_exec_ext in '' $ac_executable_extensions; do
6521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6522    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527done
6528IFS=$as_save_IFS
6529
6530  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6531  ;;
6532esac
6533fi
6534GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6535if test -n "$GRAPHVIZ"; then
6536  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6537echo "${ECHO_T}$GRAPHVIZ" >&6; }
6538else
6539  { echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6; }
6541fi
6542
6543
6544if test "$GRAPHVIZ" != "echo Graphviz" ; then
6545
6546cat >>confdefs.h <<\_ACEOF
6547#define HAVE_GRAPHVIZ 1
6548_ACEOF
6549
6550    if test "$llvm_cv_os_type" = "MingW" ; then
6551    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6552  fi
6553
6554cat >>confdefs.h <<_ACEOF
6555#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6556_ACEOF
6557
6558fi
6559# Extract the first word of "dot", so it can be a program name with args.
6560set dummy dot; ac_word=$2
6561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563if test "${ac_cv_path_DOT+set}" = set; then
6564  echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566  case $DOT in
6567  [\\/]* | ?:[\\/]*)
6568  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6569  ;;
6570  *)
6571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574  IFS=$as_save_IFS
6575  test -z "$as_dir" && as_dir=.
6576  for ac_exec_ext in '' $ac_executable_extensions; do
6577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580    break 2
6581  fi
6582done
6583done
6584IFS=$as_save_IFS
6585
6586  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6587  ;;
6588esac
6589fi
6590DOT=$ac_cv_path_DOT
6591if test -n "$DOT"; then
6592  { echo "$as_me:$LINENO: result: $DOT" >&5
6593echo "${ECHO_T}$DOT" >&6; }
6594else
6595  { echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6; }
6597fi
6598
6599
6600if test "$DOT" != "echo dot" ; then
6601
6602cat >>confdefs.h <<\_ACEOF
6603#define HAVE_DOT 1
6604_ACEOF
6605
6606    if test "$llvm_cv_os_type" = "MingW" ; then
6607    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6608  fi
6609
6610cat >>confdefs.h <<_ACEOF
6611#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6612_ACEOF
6613
6614fi
6615# Extract the first word of "fdp", so it can be a program name with args.
6616set dummy fdp; ac_word=$2
6617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619if test "${ac_cv_path_FDP+set}" = set; then
6620  echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622  case $FDP in
6623  [\\/]* | ?:[\\/]*)
6624  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6625  ;;
6626  *)
6627  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630  IFS=$as_save_IFS
6631  test -z "$as_dir" && as_dir=.
6632  for ac_exec_ext in '' $ac_executable_extensions; do
6633  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636    break 2
6637  fi
6638done
6639done
6640IFS=$as_save_IFS
6641
6642  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6643  ;;
6644esac
6645fi
6646FDP=$ac_cv_path_FDP
6647if test -n "$FDP"; then
6648  { echo "$as_me:$LINENO: result: $FDP" >&5
6649echo "${ECHO_T}$FDP" >&6; }
6650else
6651  { echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6; }
6653fi
6654
6655
6656if test "$FDP" != "echo fdp" ; then
6657
6658cat >>confdefs.h <<\_ACEOF
6659#define HAVE_FDP 1
6660_ACEOF
6661
6662    if test "$llvm_cv_os_type" = "MingW" ; then
6663    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6664  fi
6665
6666cat >>confdefs.h <<_ACEOF
6667#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6668_ACEOF
6669
6670fi
6671# Extract the first word of "neato", so it can be a program name with args.
6672set dummy neato; ac_word=$2
6673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675if test "${ac_cv_path_NEATO+set}" = set; then
6676  echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678  case $NEATO in
6679  [\\/]* | ?:[\\/]*)
6680  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6681  ;;
6682  *)
6683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686  IFS=$as_save_IFS
6687  test -z "$as_dir" && as_dir=.
6688  for ac_exec_ext in '' $ac_executable_extensions; do
6689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6690    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692    break 2
6693  fi
6694done
6695done
6696IFS=$as_save_IFS
6697
6698  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6699  ;;
6700esac
6701fi
6702NEATO=$ac_cv_path_NEATO
6703if test -n "$NEATO"; then
6704  { echo "$as_me:$LINENO: result: $NEATO" >&5
6705echo "${ECHO_T}$NEATO" >&6; }
6706else
6707  { echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6; }
6709fi
6710
6711
6712if test "$NEATO" != "echo neato" ; then
6713
6714cat >>confdefs.h <<\_ACEOF
6715#define HAVE_NEATO 1
6716_ACEOF
6717
6718    if test "$llvm_cv_os_type" = "MingW" ; then
6719    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6720  fi
6721
6722cat >>confdefs.h <<_ACEOF
6723#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6724_ACEOF
6725
6726fi
6727# Extract the first word of "twopi", so it can be a program name with args.
6728set dummy twopi; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_TWOPI+set}" = set; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734  case $TWOPI in
6735  [\\/]* | ?:[\\/]*)
6736  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6737  ;;
6738  *)
6739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742  IFS=$as_save_IFS
6743  test -z "$as_dir" && as_dir=.
6744  for ac_exec_ext in '' $ac_executable_extensions; do
6745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748    break 2
6749  fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6755  ;;
6756esac
6757fi
6758TWOPI=$ac_cv_path_TWOPI
6759if test -n "$TWOPI"; then
6760  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6761echo "${ECHO_T}$TWOPI" >&6; }
6762else
6763  { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765fi
6766
6767
6768if test "$TWOPI" != "echo twopi" ; then
6769
6770cat >>confdefs.h <<\_ACEOF
6771#define HAVE_TWOPI 1
6772_ACEOF
6773
6774    if test "$llvm_cv_os_type" = "MingW" ; then
6775    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6776  fi
6777
6778cat >>confdefs.h <<_ACEOF
6779#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6780_ACEOF
6781
6782fi
6783# Extract the first word of "circo", so it can be a program name with args.
6784set dummy circo; ac_word=$2
6785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787if test "${ac_cv_path_CIRCO+set}" = set; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790  case $CIRCO in
6791  [\\/]* | ?:[\\/]*)
6792  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6793  ;;
6794  *)
6795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798  IFS=$as_save_IFS
6799  test -z "$as_dir" && as_dir=.
6800  for ac_exec_ext in '' $ac_executable_extensions; do
6801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804    break 2
6805  fi
6806done
6807done
6808IFS=$as_save_IFS
6809
6810  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6811  ;;
6812esac
6813fi
6814CIRCO=$ac_cv_path_CIRCO
6815if test -n "$CIRCO"; then
6816  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6817echo "${ECHO_T}$CIRCO" >&6; }
6818else
6819  { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
6821fi
6822
6823
6824if test "$CIRCO" != "echo circo" ; then
6825
6826cat >>confdefs.h <<\_ACEOF
6827#define HAVE_CIRCO 1
6828_ACEOF
6829
6830    if test "$llvm_cv_os_type" = "MingW" ; then
6831    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832  fi
6833
6834cat >>confdefs.h <<_ACEOF
6835#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6836_ACEOF
6837
6838fi
6839for ac_prog in gv gsview32
6840do
6841  # Extract the first word of "$ac_prog", so it can be a program name with args.
6842set dummy $ac_prog; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_GV+set}" = set; then
6846  echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848  case $GV in
6849  [\\/]* | ?:[\\/]*)
6850  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6851  ;;
6852  *)
6853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856  IFS=$as_save_IFS
6857  test -z "$as_dir" && as_dir=.
6858  for ac_exec_ext in '' $ac_executable_extensions; do
6859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862    break 2
6863  fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868  ;;
6869esac
6870fi
6871GV=$ac_cv_path_GV
6872if test -n "$GV"; then
6873  { echo "$as_me:$LINENO: result: $GV" >&5
6874echo "${ECHO_T}$GV" >&6; }
6875else
6876  { echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6; }
6878fi
6879
6880
6881  test -n "$GV" && break
6882done
6883test -n "$GV" || GV="echo gv"
6884
6885if test "$GV" != "echo gv" ; then
6886
6887cat >>confdefs.h <<\_ACEOF
6888#define HAVE_GV 1
6889_ACEOF
6890
6891    if test "$llvm_cv_os_type" = "MingW" ; then
6892    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6893  fi
6894
6895cat >>confdefs.h <<_ACEOF
6896#define LLVM_PATH_GV "$GV${EXEEXT}"
6897_ACEOF
6898
6899fi
6900# Extract the first word of "dotty", so it can be a program name with args.
6901set dummy dotty; ac_word=$2
6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_DOTTY+set}" = set; then
6905  echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907  case $DOTTY in
6908  [\\/]* | ?:[\\/]*)
6909  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6910  ;;
6911  *)
6912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915  IFS=$as_save_IFS
6916  test -z "$as_dir" && as_dir=.
6917  for ac_exec_ext in '' $ac_executable_extensions; do
6918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921    break 2
6922  fi
6923done
6924done
6925IFS=$as_save_IFS
6926
6927  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6928  ;;
6929esac
6930fi
6931DOTTY=$ac_cv_path_DOTTY
6932if test -n "$DOTTY"; then
6933  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934echo "${ECHO_T}$DOTTY" >&6; }
6935else
6936  { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
6938fi
6939
6940
6941if test "$DOTTY" != "echo dotty" ; then
6942
6943cat >>confdefs.h <<\_ACEOF
6944#define HAVE_DOTTY 1
6945_ACEOF
6946
6947    if test "$llvm_cv_os_type" = "MingW" ; then
6948    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6949  fi
6950
6951cat >>confdefs.h <<_ACEOF
6952#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6953_ACEOF
6954
6955fi
6956for ac_prog in xdot xdot.py
6957do
6958  # Extract the first word of "$ac_prog", so it can be a program name with args.
6959set dummy $ac_prog; ac_word=$2
6960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962if test "${ac_cv_path_XDOT+set}" = set; then
6963  echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965  case $XDOT in
6966  [\\/]* | ?:[\\/]*)
6967  ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6968  ;;
6969  *)
6970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973  IFS=$as_save_IFS
6974  test -z "$as_dir" && as_dir=.
6975  for ac_exec_ext in '' $ac_executable_extensions; do
6976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977    ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979    break 2
6980  fi
6981done
6982done
6983IFS=$as_save_IFS
6984
6985  ;;
6986esac
6987fi
6988XDOT=$ac_cv_path_XDOT
6989if test -n "$XDOT"; then
6990  { echo "$as_me:$LINENO: result: $XDOT" >&5
6991echo "${ECHO_T}$XDOT" >&6; }
6992else
6993  { echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6; }
6995fi
6996
6997
6998  test -n "$XDOT" && break
6999done
7000test -n "$XDOT" || XDOT="echo xdot"
7001
7002if test "$XDOT" != "echo xdot" ; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define HAVE_XDOT 1
7006_ACEOF
7007
7008    if test "$llvm_cv_os_type" = "MingW" ; then
7009    XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7010  fi
7011
7012cat >>confdefs.h <<_ACEOF
7013#define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7014_ACEOF
7015
7016fi
7017
7018# Find a good install program.  We prefer a C program (faster),
7019# so one script is as good as another.  But avoid the broken or
7020# incompatible versions:
7021# SysV /etc/install, /usr/sbin/install
7022# SunOS /usr/etc/install
7023# IRIX /sbin/install
7024# AIX /bin/install
7025# AmigaOS /C/install, which installs bootblocks on floppy discs
7026# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7027# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7028# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7029# OS/2's system install, which has a completely different semantic
7030# ./install, which can be erroneously created by make from ./install.sh.
7031{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7032echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7033if test -z "$INSTALL"; then
7034if test "${ac_cv_path_install+set}" = set; then
7035  echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040  IFS=$as_save_IFS
7041  test -z "$as_dir" && as_dir=.
7042  # Account for people who put trailing slashes in PATH elements.
7043case $as_dir/ in
7044  ./ | .// | /cC/* | \
7045  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7046  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7047  /usr/ucb/* ) ;;
7048  *)
7049    # OSF1 and SCO ODT 3.0 have their own names for install.
7050    # Don't use installbsd from OSF since it installs stuff as root
7051    # by default.
7052    for ac_prog in ginstall scoinst install; do
7053      for ac_exec_ext in '' $ac_executable_extensions; do
7054	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7055	  if test $ac_prog = install &&
7056	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7057	    # AIX install.  It has an incompatible calling convention.
7058	    :
7059	  elif test $ac_prog = install &&
7060	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7061	    # program-specific install script used by HP pwplus--don't use.
7062	    :
7063	  else
7064	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7065	    break 3
7066	  fi
7067	fi
7068      done
7069    done
7070    ;;
7071esac
7072done
7073IFS=$as_save_IFS
7074
7075
7076fi
7077  if test "${ac_cv_path_install+set}" = set; then
7078    INSTALL=$ac_cv_path_install
7079  else
7080    # As a last resort, use the slow shell script.  Don't cache a
7081    # value for INSTALL within a source directory, because that will
7082    # break other packages using the cache if that directory is
7083    # removed, or if the value is a relative name.
7084    INSTALL=$ac_install_sh
7085  fi
7086fi
7087{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7088echo "${ECHO_T}$INSTALL" >&6; }
7089
7090# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7091# It thinks the first close brace ends the variable substitution.
7092test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7093
7094test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7095
7096test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7097
7098case "$INSTALL" in
7099 [\\/$]* | ?:[\\/]* ) ;;
7100 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7101esac
7102
7103# Extract the first word of "bzip2", so it can be a program name with args.
7104set dummy bzip2; ac_word=$2
7105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107if test "${ac_cv_path_BZIP2+set}" = set; then
7108  echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110  case $BZIP2 in
7111  [\\/]* | ?:[\\/]*)
7112  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7113  ;;
7114  *)
7115  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118  IFS=$as_save_IFS
7119  test -z "$as_dir" && as_dir=.
7120  for ac_exec_ext in '' $ac_executable_extensions; do
7121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124    break 2
7125  fi
7126done
7127done
7128IFS=$as_save_IFS
7129
7130  ;;
7131esac
7132fi
7133BZIP2=$ac_cv_path_BZIP2
7134if test -n "$BZIP2"; then
7135  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7136echo "${ECHO_T}$BZIP2" >&6; }
7137else
7138  { echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6; }
7140fi
7141
7142
7143# Extract the first word of "cat", so it can be a program name with args.
7144set dummy cat; ac_word=$2
7145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147if test "${ac_cv_path_CAT+set}" = set; then
7148  echo $ECHO_N "(cached) $ECHO_C" >&6
7149else
7150  case $CAT in
7151  [\\/]* | ?:[\\/]*)
7152  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7153  ;;
7154  *)
7155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158  IFS=$as_save_IFS
7159  test -z "$as_dir" && as_dir=.
7160  for ac_exec_ext in '' $ac_executable_extensions; do
7161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164    break 2
7165  fi
7166done
7167done
7168IFS=$as_save_IFS
7169
7170  ;;
7171esac
7172fi
7173CAT=$ac_cv_path_CAT
7174if test -n "$CAT"; then
7175  { echo "$as_me:$LINENO: result: $CAT" >&5
7176echo "${ECHO_T}$CAT" >&6; }
7177else
7178  { echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6; }
7180fi
7181
7182
7183# Extract the first word of "doxygen", so it can be a program name with args.
7184set dummy doxygen; ac_word=$2
7185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187if test "${ac_cv_path_DOXYGEN+set}" = set; then
7188  echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190  case $DOXYGEN in
7191  [\\/]* | ?:[\\/]*)
7192  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7193  ;;
7194  *)
7195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198  IFS=$as_save_IFS
7199  test -z "$as_dir" && as_dir=.
7200  for ac_exec_ext in '' $ac_executable_extensions; do
7201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204    break 2
7205  fi
7206done
7207done
7208IFS=$as_save_IFS
7209
7210  ;;
7211esac
7212fi
7213DOXYGEN=$ac_cv_path_DOXYGEN
7214if test -n "$DOXYGEN"; then
7215  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7216echo "${ECHO_T}$DOXYGEN" >&6; }
7217else
7218  { echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6; }
7220fi
7221
7222
7223# Extract the first word of "groff", so it can be a program name with args.
7224set dummy groff; ac_word=$2
7225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227if test "${ac_cv_path_GROFF+set}" = set; then
7228  echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230  case $GROFF in
7231  [\\/]* | ?:[\\/]*)
7232  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7233  ;;
7234  *)
7235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238  IFS=$as_save_IFS
7239  test -z "$as_dir" && as_dir=.
7240  for ac_exec_ext in '' $ac_executable_extensions; do
7241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244    break 2
7245  fi
7246done
7247done
7248IFS=$as_save_IFS
7249
7250  ;;
7251esac
7252fi
7253GROFF=$ac_cv_path_GROFF
7254if test -n "$GROFF"; then
7255  { echo "$as_me:$LINENO: result: $GROFF" >&5
7256echo "${ECHO_T}$GROFF" >&6; }
7257else
7258  { echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6; }
7260fi
7261
7262
7263# Extract the first word of "gzip", so it can be a program name with args.
7264set dummy gzip; ac_word=$2
7265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7267if test "${ac_cv_path_GZIPBIN+set}" = set; then
7268  echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270  case $GZIPBIN in
7271  [\\/]* | ?:[\\/]*)
7272  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7273  ;;
7274  *)
7275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278  IFS=$as_save_IFS
7279  test -z "$as_dir" && as_dir=.
7280  for ac_exec_ext in '' $ac_executable_extensions; do
7281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7282    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284    break 2
7285  fi
7286done
7287done
7288IFS=$as_save_IFS
7289
7290  ;;
7291esac
7292fi
7293GZIPBIN=$ac_cv_path_GZIPBIN
7294if test -n "$GZIPBIN"; then
7295  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7296echo "${ECHO_T}$GZIPBIN" >&6; }
7297else
7298  { echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6; }
7300fi
7301
7302
7303# Extract the first word of "pdfroff", so it can be a program name with args.
7304set dummy pdfroff; ac_word=$2
7305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307if test "${ac_cv_path_PDFROFF+set}" = set; then
7308  echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310  case $PDFROFF in
7311  [\\/]* | ?:[\\/]*)
7312  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7313  ;;
7314  *)
7315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318  IFS=$as_save_IFS
7319  test -z "$as_dir" && as_dir=.
7320  for ac_exec_ext in '' $ac_executable_extensions; do
7321  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7323    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324    break 2
7325  fi
7326done
7327done
7328IFS=$as_save_IFS
7329
7330  ;;
7331esac
7332fi
7333PDFROFF=$ac_cv_path_PDFROFF
7334if test -n "$PDFROFF"; then
7335  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7336echo "${ECHO_T}$PDFROFF" >&6; }
7337else
7338  { echo "$as_me:$LINENO: result: no" >&5
7339echo "${ECHO_T}no" >&6; }
7340fi
7341
7342
7343# Extract the first word of "zip", so it can be a program name with args.
7344set dummy zip; ac_word=$2
7345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347if test "${ac_cv_path_ZIP+set}" = set; then
7348  echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350  case $ZIP in
7351  [\\/]* | ?:[\\/]*)
7352  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7353  ;;
7354  *)
7355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358  IFS=$as_save_IFS
7359  test -z "$as_dir" && as_dir=.
7360  for ac_exec_ext in '' $ac_executable_extensions; do
7361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364    break 2
7365  fi
7366done
7367done
7368IFS=$as_save_IFS
7369
7370  ;;
7371esac
7372fi
7373ZIP=$ac_cv_path_ZIP
7374if test -n "$ZIP"; then
7375  { echo "$as_me:$LINENO: result: $ZIP" >&5
7376echo "${ECHO_T}$ZIP" >&6; }
7377else
7378  { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
7380fi
7381
7382
7383for ac_prog in ocamlc
7384do
7385  # Extract the first word of "$ac_prog", so it can be a program name with args.
7386set dummy $ac_prog; ac_word=$2
7387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389if test "${ac_cv_path_OCAMLC+set}" = set; then
7390  echo $ECHO_N "(cached) $ECHO_C" >&6
7391else
7392  case $OCAMLC in
7393  [\\/]* | ?:[\\/]*)
7394  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7395  ;;
7396  *)
7397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402  for ac_exec_ext in '' $ac_executable_extensions; do
7403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409done
7410IFS=$as_save_IFS
7411
7412  ;;
7413esac
7414fi
7415OCAMLC=$ac_cv_path_OCAMLC
7416if test -n "$OCAMLC"; then
7417  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7418echo "${ECHO_T}$OCAMLC" >&6; }
7419else
7420  { echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6; }
7422fi
7423
7424
7425  test -n "$OCAMLC" && break
7426done
7427
7428for ac_prog in ocamlopt
7429do
7430  # Extract the first word of "$ac_prog", so it can be a program name with args.
7431set dummy $ac_prog; ac_word=$2
7432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7435  echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437  case $OCAMLOPT in
7438  [\\/]* | ?:[\\/]*)
7439  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7440  ;;
7441  *)
7442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445  IFS=$as_save_IFS
7446  test -z "$as_dir" && as_dir=.
7447  for ac_exec_ext in '' $ac_executable_extensions; do
7448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451    break 2
7452  fi
7453done
7454done
7455IFS=$as_save_IFS
7456
7457  ;;
7458esac
7459fi
7460OCAMLOPT=$ac_cv_path_OCAMLOPT
7461if test -n "$OCAMLOPT"; then
7462  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7463echo "${ECHO_T}$OCAMLOPT" >&6; }
7464else
7465  { echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6; }
7467fi
7468
7469
7470  test -n "$OCAMLOPT" && break
7471done
7472
7473for ac_prog in ocamldep
7474do
7475  # Extract the first word of "$ac_prog", so it can be a program name with args.
7476set dummy $ac_prog; ac_word=$2
7477{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7480  echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482  case $OCAMLDEP in
7483  [\\/]* | ?:[\\/]*)
7484  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7485  ;;
7486  *)
7487  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488for as_dir in $PATH
7489do
7490  IFS=$as_save_IFS
7491  test -z "$as_dir" && as_dir=.
7492  for ac_exec_ext in '' $ac_executable_extensions; do
7493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7495    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496    break 2
7497  fi
7498done
7499done
7500IFS=$as_save_IFS
7501
7502  ;;
7503esac
7504fi
7505OCAMLDEP=$ac_cv_path_OCAMLDEP
7506if test -n "$OCAMLDEP"; then
7507  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7508echo "${ECHO_T}$OCAMLDEP" >&6; }
7509else
7510  { echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6; }
7512fi
7513
7514
7515  test -n "$OCAMLDEP" && break
7516done
7517
7518for ac_prog in ocamldoc
7519do
7520  # Extract the first word of "$ac_prog", so it can be a program name with args.
7521set dummy $ac_prog; ac_word=$2
7522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7524if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7525  echo $ECHO_N "(cached) $ECHO_C" >&6
7526else
7527  case $OCAMLDOC in
7528  [\\/]* | ?:[\\/]*)
7529  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7530  ;;
7531  *)
7532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537  for ac_exec_ext in '' $ac_executable_extensions; do
7538  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7539    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544done
7545IFS=$as_save_IFS
7546
7547  ;;
7548esac
7549fi
7550OCAMLDOC=$ac_cv_path_OCAMLDOC
7551if test -n "$OCAMLDOC"; then
7552  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7553echo "${ECHO_T}$OCAMLDOC" >&6; }
7554else
7555  { echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6; }
7557fi
7558
7559
7560  test -n "$OCAMLDOC" && break
7561done
7562
7563for ac_prog in gas as
7564do
7565  # Extract the first word of "$ac_prog", so it can be a program name with args.
7566set dummy $ac_prog; ac_word=$2
7567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569if test "${ac_cv_path_GAS+set}" = set; then
7570  echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572  case $GAS in
7573  [\\/]* | ?:[\\/]*)
7574  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7575  ;;
7576  *)
7577  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578for as_dir in $PATH
7579do
7580  IFS=$as_save_IFS
7581  test -z "$as_dir" && as_dir=.
7582  for ac_exec_ext in '' $ac_executable_extensions; do
7583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7584    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586    break 2
7587  fi
7588done
7589done
7590IFS=$as_save_IFS
7591
7592  ;;
7593esac
7594fi
7595GAS=$ac_cv_path_GAS
7596if test -n "$GAS"; then
7597  { echo "$as_me:$LINENO: result: $GAS" >&5
7598echo "${ECHO_T}$GAS" >&6; }
7599else
7600  { echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6; }
7602fi
7603
7604
7605  test -n "$GAS" && break
7606done
7607
7608
7609{ echo "$as_me:$LINENO: checking for linker version" >&5
7610echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7611if test "${llvm_cv_link_version+set}" = set; then
7612  echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614
7615   version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7616
7617   # Check for ld64.
7618   if (echo "$version_string" | grep -q "ld64"); then
7619     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7620   else
7621     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7622   fi
7623
7624fi
7625{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7626echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7627
7628cat >>confdefs.h <<_ACEOF
7629#define HOST_LINK_VERSION "$llvm_cv_link_version"
7630_ACEOF
7631
7632
7633
7634
7635{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7636echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7637if test "${llvm_cv_link_use_r+set}" = set; then
7638  echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640   ac_ext=c
7641ac_cpp='$CPP $CPPFLAGS'
7642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645
7646  oldcflags="$CFLAGS"
7647  CFLAGS="$CFLAGS -Wl,-R."
7648  cat >conftest.$ac_ext <<_ACEOF
7649/* confdefs.h.  */
7650_ACEOF
7651cat confdefs.h >>conftest.$ac_ext
7652cat >>conftest.$ac_ext <<_ACEOF
7653/* end confdefs.h.  */
7654
7655int
7656main ()
7657{
7658
7659  ;
7660  return 0;
7661}
7662_ACEOF
7663rm -f conftest.$ac_objext conftest$ac_exeext
7664if { (ac_try="$ac_link"
7665case "(($ac_try" in
7666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667  *) ac_try_echo=$ac_try;;
7668esac
7669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670  (eval "$ac_link") 2>conftest.er1
7671  ac_status=$?
7672  grep -v '^ *+' conftest.er1 >conftest.err
7673  rm -f conftest.er1
7674  cat conftest.err >&5
7675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676  (exit $ac_status); } &&
7677	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7678  { (case "(($ac_try" in
7679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680  *) ac_try_echo=$ac_try;;
7681esac
7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683  (eval "$ac_try") 2>&5
7684  ac_status=$?
7685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686  (exit $ac_status); }; } &&
7687	 { ac_try='test -s conftest$ac_exeext'
7688  { (case "(($ac_try" in
7689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690  *) ac_try_echo=$ac_try;;
7691esac
7692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693  (eval "$ac_try") 2>&5
7694  ac_status=$?
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); }; }; then
7697  llvm_cv_link_use_r=yes
7698else
7699  echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702	llvm_cv_link_use_r=no
7703fi
7704
7705rm -f core conftest.err conftest.$ac_objext \
7706      conftest$ac_exeext conftest.$ac_ext
7707  CFLAGS="$oldcflags"
7708  ac_ext=c
7709ac_cpp='$CPP $CPPFLAGS'
7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714
7715fi
7716{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7717echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7718if test "$llvm_cv_link_use_r" = yes ; then
7719
7720cat >>confdefs.h <<\_ACEOF
7721#define HAVE_LINK_R 1
7722_ACEOF
7723
7724  fi
7725
7726
7727{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7728echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7729if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7730  echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732   ac_ext=c
7733ac_cpp='$CPP $CPPFLAGS'
7734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7736ac_compiler_gnu=$ac_cv_c_compiler_gnu
7737
7738  oldcflags="$CFLAGS"
7739  CFLAGS="$CFLAGS -rdynamic"
7740  cat >conftest.$ac_ext <<_ACEOF
7741/* confdefs.h.  */
7742_ACEOF
7743cat confdefs.h >>conftest.$ac_ext
7744cat >>conftest.$ac_ext <<_ACEOF
7745/* end confdefs.h.  */
7746
7747int
7748main ()
7749{
7750
7751  ;
7752  return 0;
7753}
7754_ACEOF
7755rm -f conftest.$ac_objext conftest$ac_exeext
7756if { (ac_try="$ac_link"
7757case "(($ac_try" in
7758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759  *) ac_try_echo=$ac_try;;
7760esac
7761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762  (eval "$ac_link") 2>conftest.er1
7763  ac_status=$?
7764  grep -v '^ *+' conftest.er1 >conftest.err
7765  rm -f conftest.er1
7766  cat conftest.err >&5
7767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768  (exit $ac_status); } &&
7769	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770  { (case "(($ac_try" in
7771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772  *) ac_try_echo=$ac_try;;
7773esac
7774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775  (eval "$ac_try") 2>&5
7776  ac_status=$?
7777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778  (exit $ac_status); }; } &&
7779	 { ac_try='test -s conftest$ac_exeext'
7780  { (case "(($ac_try" in
7781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782  *) ac_try_echo=$ac_try;;
7783esac
7784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785  (eval "$ac_try") 2>&5
7786  ac_status=$?
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); }; }; then
7789  llvm_cv_link_use_export_dynamic=yes
7790else
7791  echo "$as_me: failed program was:" >&5
7792sed 's/^/| /' conftest.$ac_ext >&5
7793
7794	llvm_cv_link_use_export_dynamic=no
7795fi
7796
7797rm -f core conftest.err conftest.$ac_objext \
7798      conftest$ac_exeext conftest.$ac_ext
7799  CFLAGS="$oldcflags"
7800  ac_ext=c
7801ac_cpp='$CPP $CPPFLAGS'
7802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806
7807fi
7808{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7809echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7810if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7811
7812cat >>confdefs.h <<\_ACEOF
7813#define HAVE_LINK_EXPORT_DYNAMIC 1
7814_ACEOF
7815
7816  fi
7817
7818
7819{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7820echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7821if test "${llvm_cv_link_use_version_script+set}" = set; then
7822  echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824   ac_ext=c
7825ac_cpp='$CPP $CPPFLAGS'
7826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829
7830  oldcflags="$CFLAGS"
7831
7832  # The following code is from the autoconf manual,
7833  # "11.13: Limitations of Usual Tools".
7834  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7835  # Use mktemp if possible; otherwise fall back on mkdir,
7836  # with $RANDOM to make collisions less likely.
7837  : ${TMPDIR=/tmp}
7838  {
7839    tmp=`
7840      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7841    ` &&
7842    test -n "$tmp" && test -d "$tmp"
7843  } || {
7844    tmp=$TMPDIR/foo$$-$RANDOM
7845    (umask 077 && mkdir "$tmp")
7846  } || exit $?
7847
7848  echo "{" > "$tmp/export.map"
7849  echo "  global: main;" >> "$tmp/export.map"
7850  echo "  local: *;" >> "$tmp/export.map"
7851  echo "};" >> "$tmp/export.map"
7852
7853  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7854  cat >conftest.$ac_ext <<_ACEOF
7855/* confdefs.h.  */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h.  */
7860
7861int
7862main ()
7863{
7864
7865  ;
7866  return 0;
7867}
7868_ACEOF
7869rm -f conftest.$ac_objext conftest$ac_exeext
7870if { (ac_try="$ac_link"
7871case "(($ac_try" in
7872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873  *) ac_try_echo=$ac_try;;
7874esac
7875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876  (eval "$ac_link") 2>conftest.er1
7877  ac_status=$?
7878  grep -v '^ *+' conftest.er1 >conftest.err
7879  rm -f conftest.er1
7880  cat conftest.err >&5
7881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882  (exit $ac_status); } &&
7883	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7884  { (case "(($ac_try" in
7885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886  *) ac_try_echo=$ac_try;;
7887esac
7888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889  (eval "$ac_try") 2>&5
7890  ac_status=$?
7891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892  (exit $ac_status); }; } &&
7893	 { ac_try='test -s conftest$ac_exeext'
7894  { (case "(($ac_try" in
7895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896  *) ac_try_echo=$ac_try;;
7897esac
7898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899  (eval "$ac_try") 2>&5
7900  ac_status=$?
7901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902  (exit $ac_status); }; }; then
7903  llvm_cv_link_use_version_script=yes
7904else
7905  echo "$as_me: failed program was:" >&5
7906sed 's/^/| /' conftest.$ac_ext >&5
7907
7908	llvm_cv_link_use_version_script=no
7909fi
7910
7911rm -f core conftest.err conftest.$ac_objext \
7912      conftest$ac_exeext conftest.$ac_ext
7913  rm "$tmp/export.map"
7914  rmdir "$tmp"
7915  CFLAGS="$oldcflags"
7916  ac_ext=c
7917ac_cpp='$CPP $CPPFLAGS'
7918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922
7923fi
7924{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7925echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7926if test "$llvm_cv_link_use_version_script" = yes ; then
7927  HAVE_LINK_VERSION_SCRIPT=1
7928
7929  fi
7930
7931
7932
7933{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7934echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7935if test "${ac_cv_path_GREP+set}" = set; then
7936  echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938  # Extract the first word of "grep ggrep" to use in msg output
7939if test -z "$GREP"; then
7940set dummy grep ggrep; ac_prog_name=$2
7941if test "${ac_cv_path_GREP+set}" = set; then
7942  echo $ECHO_N "(cached) $ECHO_C" >&6
7943else
7944  ac_path_GREP_found=false
7945# Loop through the user's path and test for each of PROGNAME-LIST
7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7948do
7949  IFS=$as_save_IFS
7950  test -z "$as_dir" && as_dir=.
7951  for ac_prog in grep ggrep; do
7952  for ac_exec_ext in '' $ac_executable_extensions; do
7953    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7954    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7955    # Check for GNU ac_path_GREP and select it if it is found.
7956  # Check for GNU $ac_path_GREP
7957case `"$ac_path_GREP" --version 2>&1` in
7958*GNU*)
7959  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7960*)
7961  ac_count=0
7962  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7963  while :
7964  do
7965    cat "conftest.in" "conftest.in" >"conftest.tmp"
7966    mv "conftest.tmp" "conftest.in"
7967    cp "conftest.in" "conftest.nl"
7968    echo 'GREP' >> "conftest.nl"
7969    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7970    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7971    ac_count=`expr $ac_count + 1`
7972    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7973      # Best one so far, save it but keep looking for a better one
7974      ac_cv_path_GREP="$ac_path_GREP"
7975      ac_path_GREP_max=$ac_count
7976    fi
7977    # 10*(2^10) chars as input seems more than enough
7978    test $ac_count -gt 10 && break
7979  done
7980  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7981esac
7982
7983
7984    $ac_path_GREP_found && break 3
7985  done
7986done
7987
7988done
7989IFS=$as_save_IFS
7990
7991
7992fi
7993
7994GREP="$ac_cv_path_GREP"
7995if test -z "$GREP"; then
7996  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7997echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7998   { (exit 1); exit 1; }; }
7999fi
8000
8001else
8002  ac_cv_path_GREP=$GREP
8003fi
8004
8005
8006fi
8007{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8008echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8009 GREP="$ac_cv_path_GREP"
8010
8011
8012{ echo "$as_me:$LINENO: checking for egrep" >&5
8013echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8014if test "${ac_cv_path_EGREP+set}" = set; then
8015  echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8018   then ac_cv_path_EGREP="$GREP -E"
8019   else
8020     # Extract the first word of "egrep" to use in msg output
8021if test -z "$EGREP"; then
8022set dummy egrep; ac_prog_name=$2
8023if test "${ac_cv_path_EGREP+set}" = set; then
8024  echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026  ac_path_EGREP_found=false
8027# Loop through the user's path and test for each of PROGNAME-LIST
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8030do
8031  IFS=$as_save_IFS
8032  test -z "$as_dir" && as_dir=.
8033  for ac_prog in egrep; do
8034  for ac_exec_ext in '' $ac_executable_extensions; do
8035    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8036    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8037    # Check for GNU ac_path_EGREP and select it if it is found.
8038  # Check for GNU $ac_path_EGREP
8039case `"$ac_path_EGREP" --version 2>&1` in
8040*GNU*)
8041  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8042*)
8043  ac_count=0
8044  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8045  while :
8046  do
8047    cat "conftest.in" "conftest.in" >"conftest.tmp"
8048    mv "conftest.tmp" "conftest.in"
8049    cp "conftest.in" "conftest.nl"
8050    echo 'EGREP' >> "conftest.nl"
8051    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8052    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8053    ac_count=`expr $ac_count + 1`
8054    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8055      # Best one so far, save it but keep looking for a better one
8056      ac_cv_path_EGREP="$ac_path_EGREP"
8057      ac_path_EGREP_max=$ac_count
8058    fi
8059    # 10*(2^10) chars as input seems more than enough
8060    test $ac_count -gt 10 && break
8061  done
8062  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8063esac
8064
8065
8066    $ac_path_EGREP_found && break 3
8067  done
8068done
8069
8070done
8071IFS=$as_save_IFS
8072
8073
8074fi
8075
8076EGREP="$ac_cv_path_EGREP"
8077if test -z "$EGREP"; then
8078  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8079echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8080   { (exit 1); exit 1; }; }
8081fi
8082
8083else
8084  ac_cv_path_EGREP=$EGREP
8085fi
8086
8087
8088   fi
8089fi
8090{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8091echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8092 EGREP="$ac_cv_path_EGREP"
8093
8094
8095{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8096echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8097if test "${ac_cv_header_stdc+set}" = set; then
8098  echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100  cat >conftest.$ac_ext <<_ACEOF
8101/* confdefs.h.  */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h.  */
8106#include <stdlib.h>
8107#include <stdarg.h>
8108#include <string.h>
8109#include <float.h>
8110
8111int
8112main ()
8113{
8114
8115  ;
8116  return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext
8120if { (ac_try="$ac_compile"
8121case "(($ac_try" in
8122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123  *) ac_try_echo=$ac_try;;
8124esac
8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126  (eval "$ac_compile") 2>conftest.er1
8127  ac_status=$?
8128  grep -v '^ *+' conftest.er1 >conftest.err
8129  rm -f conftest.er1
8130  cat conftest.err >&5
8131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132  (exit $ac_status); } &&
8133	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134  { (case "(($ac_try" in
8135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136  *) ac_try_echo=$ac_try;;
8137esac
8138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139  (eval "$ac_try") 2>&5
8140  ac_status=$?
8141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142  (exit $ac_status); }; } &&
8143	 { ac_try='test -s conftest.$ac_objext'
8144  { (case "(($ac_try" in
8145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146  *) ac_try_echo=$ac_try;;
8147esac
8148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149  (eval "$ac_try") 2>&5
8150  ac_status=$?
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); }; }; then
8153  ac_cv_header_stdc=yes
8154else
8155  echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158	ac_cv_header_stdc=no
8159fi
8160
8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162
8163if test $ac_cv_header_stdc = yes; then
8164  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8165  cat >conftest.$ac_ext <<_ACEOF
8166/* confdefs.h.  */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h.  */
8171#include <string.h>
8172
8173_ACEOF
8174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8175  $EGREP "memchr" >/dev/null 2>&1; then
8176  :
8177else
8178  ac_cv_header_stdc=no
8179fi
8180rm -f conftest*
8181
8182fi
8183
8184if test $ac_cv_header_stdc = yes; then
8185  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8186  cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h.  */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h.  */
8192#include <stdlib.h>
8193
8194_ACEOF
8195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8196  $EGREP "free" >/dev/null 2>&1; then
8197  :
8198else
8199  ac_cv_header_stdc=no
8200fi
8201rm -f conftest*
8202
8203fi
8204
8205if test $ac_cv_header_stdc = yes; then
8206  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8207  if test "$cross_compiling" = yes; then
8208  :
8209else
8210  cat >conftest.$ac_ext <<_ACEOF
8211/* confdefs.h.  */
8212_ACEOF
8213cat confdefs.h >>conftest.$ac_ext
8214cat >>conftest.$ac_ext <<_ACEOF
8215/* end confdefs.h.  */
8216#include <ctype.h>
8217#include <stdlib.h>
8218#if ((' ' & 0x0FF) == 0x020)
8219# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8220# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8221#else
8222# define ISLOWER(c) \
8223		   (('a' <= (c) && (c) <= 'i') \
8224		     || ('j' <= (c) && (c) <= 'r') \
8225		     || ('s' <= (c) && (c) <= 'z'))
8226# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8227#endif
8228
8229#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8230int
8231main ()
8232{
8233  int i;
8234  for (i = 0; i < 256; i++)
8235    if (XOR (islower (i), ISLOWER (i))
8236	|| toupper (i) != TOUPPER (i))
8237      return 2;
8238  return 0;
8239}
8240_ACEOF
8241rm -f conftest$ac_exeext
8242if { (ac_try="$ac_link"
8243case "(($ac_try" in
8244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245  *) ac_try_echo=$ac_try;;
8246esac
8247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248  (eval "$ac_link") 2>&5
8249  ac_status=$?
8250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8252  { (case "(($ac_try" in
8253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254  *) ac_try_echo=$ac_try;;
8255esac
8256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257  (eval "$ac_try") 2>&5
8258  ac_status=$?
8259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260  (exit $ac_status); }; }; then
8261  :
8262else
8263  echo "$as_me: program exited with status $ac_status" >&5
8264echo "$as_me: failed program was:" >&5
8265sed 's/^/| /' conftest.$ac_ext >&5
8266
8267( exit $ac_status )
8268ac_cv_header_stdc=no
8269fi
8270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8271fi
8272
8273
8274fi
8275fi
8276{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8277echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8278if test $ac_cv_header_stdc = yes; then
8279
8280cat >>confdefs.h <<\_ACEOF
8281#define STDC_HEADERS 1
8282_ACEOF
8283
8284fi
8285
8286# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8297		  inttypes.h stdint.h unistd.h
8298do
8299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8300{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8303  echo $ECHO_N "(cached) $ECHO_C" >&6
8304else
8305  cat >conftest.$ac_ext <<_ACEOF
8306/* confdefs.h.  */
8307_ACEOF
8308cat confdefs.h >>conftest.$ac_ext
8309cat >>conftest.$ac_ext <<_ACEOF
8310/* end confdefs.h.  */
8311$ac_includes_default
8312
8313#include <$ac_header>
8314_ACEOF
8315rm -f conftest.$ac_objext
8316if { (ac_try="$ac_compile"
8317case "(($ac_try" in
8318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319  *) ac_try_echo=$ac_try;;
8320esac
8321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322  (eval "$ac_compile") 2>conftest.er1
8323  ac_status=$?
8324  grep -v '^ *+' conftest.er1 >conftest.err
8325  rm -f conftest.er1
8326  cat conftest.err >&5
8327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328  (exit $ac_status); } &&
8329	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8330  { (case "(($ac_try" in
8331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332  *) ac_try_echo=$ac_try;;
8333esac
8334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335  (eval "$ac_try") 2>&5
8336  ac_status=$?
8337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338  (exit $ac_status); }; } &&
8339	 { ac_try='test -s conftest.$ac_objext'
8340  { (case "(($ac_try" in
8341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342  *) ac_try_echo=$ac_try;;
8343esac
8344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345  (eval "$ac_try") 2>&5
8346  ac_status=$?
8347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348  (exit $ac_status); }; }; then
8349  eval "$as_ac_Header=yes"
8350else
8351  echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354	eval "$as_ac_Header=no"
8355fi
8356
8357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358fi
8359ac_res=`eval echo '${'$as_ac_Header'}'`
8360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8361echo "${ECHO_T}$ac_res" >&6; }
8362if test `eval echo '${'$as_ac_Header'}'` = yes; then
8363  cat >>confdefs.h <<_ACEOF
8364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8365_ACEOF
8366
8367fi
8368
8369done
8370
8371
8372
8373for ac_header in errno.h
8374do
8375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380  echo $ECHO_N "(cached) $ECHO_C" >&6
8381fi
8382ac_res=`eval echo '${'$as_ac_Header'}'`
8383	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8384echo "${ECHO_T}$ac_res" >&6; }
8385else
8386  # Is the header compilable?
8387{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8388echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8389cat >conftest.$ac_ext <<_ACEOF
8390/* confdefs.h.  */
8391_ACEOF
8392cat confdefs.h >>conftest.$ac_ext
8393cat >>conftest.$ac_ext <<_ACEOF
8394/* end confdefs.h.  */
8395$ac_includes_default
8396#include <$ac_header>
8397_ACEOF
8398rm -f conftest.$ac_objext
8399if { (ac_try="$ac_compile"
8400case "(($ac_try" in
8401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402  *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405  (eval "$ac_compile") 2>conftest.er1
8406  ac_status=$?
8407  grep -v '^ *+' conftest.er1 >conftest.err
8408  rm -f conftest.er1
8409  cat conftest.err >&5
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); } &&
8412	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8413  { (case "(($ac_try" in
8414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415  *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418  (eval "$ac_try") 2>&5
8419  ac_status=$?
8420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421  (exit $ac_status); }; } &&
8422	 { ac_try='test -s conftest.$ac_objext'
8423  { (case "(($ac_try" in
8424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425  *) ac_try_echo=$ac_try;;
8426esac
8427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428  (eval "$ac_try") 2>&5
8429  ac_status=$?
8430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431  (exit $ac_status); }; }; then
8432  ac_header_compiler=yes
8433else
8434  echo "$as_me: failed program was:" >&5
8435sed 's/^/| /' conftest.$ac_ext >&5
8436
8437	ac_header_compiler=no
8438fi
8439
8440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8442echo "${ECHO_T}$ac_header_compiler" >&6; }
8443
8444# Is the header present?
8445{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8447cat >conftest.$ac_ext <<_ACEOF
8448/* confdefs.h.  */
8449_ACEOF
8450cat confdefs.h >>conftest.$ac_ext
8451cat >>conftest.$ac_ext <<_ACEOF
8452/* end confdefs.h.  */
8453#include <$ac_header>
8454_ACEOF
8455if { (ac_try="$ac_cpp conftest.$ac_ext"
8456case "(($ac_try" in
8457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458  *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8462  ac_status=$?
8463  grep -v '^ *+' conftest.er1 >conftest.err
8464  rm -f conftest.er1
8465  cat conftest.err >&5
8466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467  (exit $ac_status); } >/dev/null; then
8468  if test -s conftest.err; then
8469    ac_cpp_err=$ac_c_preproc_warn_flag
8470    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8471  else
8472    ac_cpp_err=
8473  fi
8474else
8475  ac_cpp_err=yes
8476fi
8477if test -z "$ac_cpp_err"; then
8478  ac_header_preproc=yes
8479else
8480  echo "$as_me: failed program was:" >&5
8481sed 's/^/| /' conftest.$ac_ext >&5
8482
8483  ac_header_preproc=no
8484fi
8485
8486rm -f conftest.err conftest.$ac_ext
8487{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8488echo "${ECHO_T}$ac_header_preproc" >&6; }
8489
8490# So?  What about this header?
8491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8492  yes:no: )
8493    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8494echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8495    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8496echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8497    ac_header_preproc=yes
8498    ;;
8499  no:yes:* )
8500    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8501echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8502    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8503echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8504    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8505echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8506    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8507echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8508    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8509echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8510    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8511echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8512    ( cat <<\_ASBOX
8513## ------------------------------------ ##
8514## Report this to http://llvm.org/bugs/ ##
8515## ------------------------------------ ##
8516_ASBOX
8517     ) | sed "s/^/$as_me: WARNING:     /" >&2
8518    ;;
8519esac
8520{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8523  echo $ECHO_N "(cached) $ECHO_C" >&6
8524else
8525  eval "$as_ac_Header=\$ac_header_preproc"
8526fi
8527ac_res=`eval echo '${'$as_ac_Header'}'`
8528	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8529echo "${ECHO_T}$ac_res" >&6; }
8530
8531fi
8532if test `eval echo '${'$as_ac_Header'}'` = yes; then
8533  cat >>confdefs.h <<_ACEOF
8534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8535_ACEOF
8536
8537fi
8538
8539done
8540
8541
8542case "$llvm_cv_os_type" in
8543  Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8544  Darwin) llvm_shlib_ext=.dylib ;;
8545  *) llvm_shlib_ext=.so ;;
8546esac
8547
8548
8549cat >>confdefs.h <<_ACEOF
8550#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8551_ACEOF
8552
8553
8554{ echo "$as_me:$LINENO: checking tool compatibility" >&5
8555echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8556
8557ICC=no
8558IXX=no
8559case $CC in
8560  icc*|icpc*)
8561    ICC=yes
8562    IXX=yes
8563    ;;
8564   *)
8565    ;;
8566esac
8567
8568if test "$GCC" != "yes" && test "$ICC" != "yes"
8569then
8570  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8571echo "$as_me: error: gcc|icc required but not found" >&2;}
8572   { (exit 1); exit 1; }; }
8573fi
8574
8575if test "$GXX" != "yes" && test "$IXX" != "yes"
8576then
8577  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8578echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8579   { (exit 1); exit 1; }; }
8580fi
8581
8582if test "$GCC" = "yes"
8583then
8584  cat >conftest.$ac_ext <<_ACEOF
8585
8586  /* confdefs.h.  */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h.  */
8591
8592    #if !defined(__GNUC__) || __GNUC__ < 3
8593    #error Unsupported GCC version
8594    #endif
8595
8596
8597_ACEOF
8598rm -f conftest.$ac_objext
8599if { (ac_try="$ac_compile"
8600case "(($ac_try" in
8601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602  *) ac_try_echo=$ac_try;;
8603esac
8604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605  (eval "$ac_compile") 2>conftest.er1
8606  ac_status=$?
8607  grep -v '^ *+' conftest.er1 >conftest.err
8608  rm -f conftest.er1
8609  cat conftest.err >&5
8610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611  (exit $ac_status); } &&
8612	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613  { (case "(($ac_try" in
8614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615  *) ac_try_echo=$ac_try;;
8616esac
8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618  (eval "$ac_try") 2>&5
8619  ac_status=$?
8620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621  (exit $ac_status); }; } &&
8622	 { ac_try='test -s conftest.$ac_objext'
8623  { (case "(($ac_try" in
8624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625  *) ac_try_echo=$ac_try;;
8626esac
8627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628  (eval "$ac_try") 2>&5
8629  ac_status=$?
8630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631  (exit $ac_status); }; }; then
8632  :
8633else
8634  echo "$as_me: failed program was:" >&5
8635sed 's/^/| /' conftest.$ac_ext >&5
8636
8637	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8638echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8639   { (exit 1); exit 1; }; }
8640fi
8641
8642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643fi
8644
8645if test -z "$llvm_cv_gnu_make_command"
8646then
8647  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8648echo "$as_me: error: GNU Make required but not found" >&2;}
8649   { (exit 1); exit 1; }; }
8650fi
8651
8652{ echo "$as_me:$LINENO: result: ok" >&5
8653echo "${ECHO_T}ok" >&6; }
8654
8655{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
8656echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8657NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8658
8659NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8660
8661COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8662
8663
8664NO_UNINITIALIZED=
8665NO_MAYBE_UNINITIALIZED=
8666if test "$GXX" = "yes"
8667then
8668  NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8669
8670        if test -z "$NO_MAYBE_UNINITIALIZED"
8671  then
8672    NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8673
8674  fi
8675fi
8676{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8677echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8678
8679
8680# Check whether --with-python was given.
8681if test "${with_python+set}" = set; then
8682  withval=$with_python; PYTHON="$withval"
8683fi
8684
8685
8686if test -n "$PYTHON" && test -x "$PYTHON" ; then
8687  { echo "$as_me:$LINENO: checking for python" >&5
8688echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8689  { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8690echo "${ECHO_T}user defined: $with_python" >&6; }
8691else
8692  if test -n "$PYTHON" ; then
8693    { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8694echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8695  fi
8696
8697  # Extract the first word of "python python2 python26", so it can be a program name with args.
8698set dummy python python2 python26; ac_word=$2
8699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8701if test "${ac_cv_path_PYTHON+set}" = set; then
8702  echo $ECHO_N "(cached) $ECHO_C" >&6
8703else
8704  case $PYTHON in
8705  [\\/]* | ?:[\\/]*)
8706  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8707  ;;
8708  *)
8709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710for as_dir in $PATH
8711do
8712  IFS=$as_save_IFS
8713  test -z "$as_dir" && as_dir=.
8714  for ac_exec_ext in '' $ac_executable_extensions; do
8715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8716    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718    break 2
8719  fi
8720done
8721done
8722IFS=$as_save_IFS
8723
8724  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8725echo "${ECHO_T}not found" >&6; }
8726                { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8727echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8728   { (exit 1); exit 1; }; }"
8729  ;;
8730esac
8731fi
8732PYTHON=$ac_cv_path_PYTHON
8733if test -n "$PYTHON"; then
8734  { echo "$as_me:$LINENO: result: $PYTHON" >&5
8735echo "${ECHO_T}$PYTHON" >&6; }
8736else
8737  { echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6; }
8739fi
8740
8741
8742fi
8743
8744{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8745echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8746ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8747ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8748ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8749ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8750if test "$ac_python_version_major" -gt "2" || \
8751   (test "$ac_python_version_major" -eq "2" && \
8752    test "$ac_python_version_minor" -ge "5") ; then
8753  { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8754echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8755else
8756  { echo "$as_me:$LINENO: result: not found" >&5
8757echo "${ECHO_T}not found" >&6; }
8758  { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8759See \`config.log' for more details." >&5
8760echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8761See \`config.log' for more details." >&2;}
8762   { (exit 1); exit 1; }; }
8763fi
8764
8765
8766
8767{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
8768echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8769if test "${ac_cv_lib_m_sin+set}" = set; then
8770  echo $ECHO_N "(cached) $ECHO_C" >&6
8771else
8772  ac_check_lib_save_LIBS=$LIBS
8773LIBS="-lm  $LIBS"
8774cat >conftest.$ac_ext <<_ACEOF
8775/* confdefs.h.  */
8776_ACEOF
8777cat confdefs.h >>conftest.$ac_ext
8778cat >>conftest.$ac_ext <<_ACEOF
8779/* end confdefs.h.  */
8780
8781/* Override any GCC internal prototype to avoid an error.
8782   Use char because int might match the return type of a GCC
8783   builtin and then its argument prototype would still apply.  */
8784#ifdef __cplusplus
8785extern "C"
8786#endif
8787char sin ();
8788int
8789main ()
8790{
8791return sin ();
8792  ;
8793  return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext conftest$ac_exeext
8797if { (ac_try="$ac_link"
8798case "(($ac_try" in
8799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800  *) ac_try_echo=$ac_try;;
8801esac
8802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803  (eval "$ac_link") 2>conftest.er1
8804  ac_status=$?
8805  grep -v '^ *+' conftest.er1 >conftest.err
8806  rm -f conftest.er1
8807  cat conftest.err >&5
8808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809  (exit $ac_status); } &&
8810	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8811  { (case "(($ac_try" in
8812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813  *) ac_try_echo=$ac_try;;
8814esac
8815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816  (eval "$ac_try") 2>&5
8817  ac_status=$?
8818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819  (exit $ac_status); }; } &&
8820	 { ac_try='test -s conftest$ac_exeext'
8821  { (case "(($ac_try" in
8822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823  *) ac_try_echo=$ac_try;;
8824esac
8825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826  (eval "$ac_try") 2>&5
8827  ac_status=$?
8828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829  (exit $ac_status); }; }; then
8830  ac_cv_lib_m_sin=yes
8831else
8832  echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
8834
8835	ac_cv_lib_m_sin=no
8836fi
8837
8838rm -f core conftest.err conftest.$ac_objext \
8839      conftest$ac_exeext conftest.$ac_ext
8840LIBS=$ac_check_lib_save_LIBS
8841fi
8842{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8843echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8844if test $ac_cv_lib_m_sin = yes; then
8845  cat >>confdefs.h <<_ACEOF
8846#define HAVE_LIBM 1
8847_ACEOF
8848
8849  LIBS="-lm $LIBS"
8850
8851fi
8852
8853if test "$llvm_cv_os_type" = "MingW" ; then
8854
8855{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8856echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8857if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8858  echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860  ac_check_lib_save_LIBS=$LIBS
8861LIBS="-limagehlp  $LIBS"
8862cat >conftest.$ac_ext <<_ACEOF
8863/* confdefs.h.  */
8864_ACEOF
8865cat confdefs.h >>conftest.$ac_ext
8866cat >>conftest.$ac_ext <<_ACEOF
8867/* end confdefs.h.  */
8868
8869
8870int
8871main ()
8872{
8873return main ();
8874  ;
8875  return 0;
8876}
8877_ACEOF
8878rm -f conftest.$ac_objext conftest$ac_exeext
8879if { (ac_try="$ac_link"
8880case "(($ac_try" in
8881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882  *) ac_try_echo=$ac_try;;
8883esac
8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885  (eval "$ac_link") 2>conftest.er1
8886  ac_status=$?
8887  grep -v '^ *+' conftest.er1 >conftest.err
8888  rm -f conftest.er1
8889  cat conftest.err >&5
8890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891  (exit $ac_status); } &&
8892	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8893  { (case "(($ac_try" in
8894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895  *) ac_try_echo=$ac_try;;
8896esac
8897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898  (eval "$ac_try") 2>&5
8899  ac_status=$?
8900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901  (exit $ac_status); }; } &&
8902	 { ac_try='test -s conftest$ac_exeext'
8903  { (case "(($ac_try" in
8904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905  *) ac_try_echo=$ac_try;;
8906esac
8907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908  (eval "$ac_try") 2>&5
8909  ac_status=$?
8910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911  (exit $ac_status); }; }; then
8912  ac_cv_lib_imagehlp_main=yes
8913else
8914  echo "$as_me: failed program was:" >&5
8915sed 's/^/| /' conftest.$ac_ext >&5
8916
8917	ac_cv_lib_imagehlp_main=no
8918fi
8919
8920rm -f core conftest.err conftest.$ac_objext \
8921      conftest$ac_exeext conftest.$ac_ext
8922LIBS=$ac_check_lib_save_LIBS
8923fi
8924{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8925echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8926if test $ac_cv_lib_imagehlp_main = yes; then
8927  cat >>confdefs.h <<_ACEOF
8928#define HAVE_LIBIMAGEHLP 1
8929_ACEOF
8930
8931  LIBS="-limagehlp $LIBS"
8932
8933fi
8934
8935
8936{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8937echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8938if test "${ac_cv_lib_psapi_main+set}" = set; then
8939  echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941  ac_check_lib_save_LIBS=$LIBS
8942LIBS="-lpsapi  $LIBS"
8943cat >conftest.$ac_ext <<_ACEOF
8944/* confdefs.h.  */
8945_ACEOF
8946cat confdefs.h >>conftest.$ac_ext
8947cat >>conftest.$ac_ext <<_ACEOF
8948/* end confdefs.h.  */
8949
8950
8951int
8952main ()
8953{
8954return main ();
8955  ;
8956  return 0;
8957}
8958_ACEOF
8959rm -f conftest.$ac_objext conftest$ac_exeext
8960if { (ac_try="$ac_link"
8961case "(($ac_try" in
8962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963  *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966  (eval "$ac_link") 2>conftest.er1
8967  ac_status=$?
8968  grep -v '^ *+' conftest.er1 >conftest.err
8969  rm -f conftest.er1
8970  cat conftest.err >&5
8971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972  (exit $ac_status); } &&
8973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974  { (case "(($ac_try" in
8975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976  *) ac_try_echo=$ac_try;;
8977esac
8978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979  (eval "$ac_try") 2>&5
8980  ac_status=$?
8981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982  (exit $ac_status); }; } &&
8983	 { ac_try='test -s conftest$ac_exeext'
8984  { (case "(($ac_try" in
8985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986  *) ac_try_echo=$ac_try;;
8987esac
8988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989  (eval "$ac_try") 2>&5
8990  ac_status=$?
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); }; }; then
8993  ac_cv_lib_psapi_main=yes
8994else
8995  echo "$as_me: failed program was:" >&5
8996sed 's/^/| /' conftest.$ac_ext >&5
8997
8998	ac_cv_lib_psapi_main=no
8999fi
9000
9001rm -f core conftest.err conftest.$ac_objext \
9002      conftest$ac_exeext conftest.$ac_ext
9003LIBS=$ac_check_lib_save_LIBS
9004fi
9005{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9006echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9007if test $ac_cv_lib_psapi_main = yes; then
9008  cat >>confdefs.h <<_ACEOF
9009#define HAVE_LIBPSAPI 1
9010_ACEOF
9011
9012  LIBS="-lpsapi $LIBS"
9013
9014fi
9015
9016
9017{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9018echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9019if test "${ac_cv_lib_shell32_main+set}" = set; then
9020  echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022  ac_check_lib_save_LIBS=$LIBS
9023LIBS="-lshell32  $LIBS"
9024cat >conftest.$ac_ext <<_ACEOF
9025/* confdefs.h.  */
9026_ACEOF
9027cat confdefs.h >>conftest.$ac_ext
9028cat >>conftest.$ac_ext <<_ACEOF
9029/* end confdefs.h.  */
9030
9031
9032int
9033main ()
9034{
9035return main ();
9036  ;
9037  return 0;
9038}
9039_ACEOF
9040rm -f conftest.$ac_objext conftest$ac_exeext
9041if { (ac_try="$ac_link"
9042case "(($ac_try" in
9043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044  *) ac_try_echo=$ac_try;;
9045esac
9046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047  (eval "$ac_link") 2>conftest.er1
9048  ac_status=$?
9049  grep -v '^ *+' conftest.er1 >conftest.err
9050  rm -f conftest.er1
9051  cat conftest.err >&5
9052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053  (exit $ac_status); } &&
9054	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9055  { (case "(($ac_try" in
9056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057  *) ac_try_echo=$ac_try;;
9058esac
9059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060  (eval "$ac_try") 2>&5
9061  ac_status=$?
9062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063  (exit $ac_status); }; } &&
9064	 { ac_try='test -s conftest$ac_exeext'
9065  { (case "(($ac_try" in
9066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067  *) ac_try_echo=$ac_try;;
9068esac
9069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070  (eval "$ac_try") 2>&5
9071  ac_status=$?
9072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073  (exit $ac_status); }; }; then
9074  ac_cv_lib_shell32_main=yes
9075else
9076  echo "$as_me: failed program was:" >&5
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079	ac_cv_lib_shell32_main=no
9080fi
9081
9082rm -f core conftest.err conftest.$ac_objext \
9083      conftest$ac_exeext conftest.$ac_ext
9084LIBS=$ac_check_lib_save_LIBS
9085fi
9086{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9087echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9088if test $ac_cv_lib_shell32_main = yes; then
9089  cat >>confdefs.h <<_ACEOF
9090#define HAVE_LIBSHELL32 1
9091_ACEOF
9092
9093  LIBS="-lshell32 $LIBS"
9094
9095fi
9096
9097fi
9098
9099{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9100echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9101if test "${ac_cv_search_dlopen+set}" = set; then
9102  echo $ECHO_N "(cached) $ECHO_C" >&6
9103else
9104  ac_func_search_save_LIBS=$LIBS
9105cat >conftest.$ac_ext <<_ACEOF
9106/* confdefs.h.  */
9107_ACEOF
9108cat confdefs.h >>conftest.$ac_ext
9109cat >>conftest.$ac_ext <<_ACEOF
9110/* end confdefs.h.  */
9111
9112/* Override any GCC internal prototype to avoid an error.
9113   Use char because int might match the return type of a GCC
9114   builtin and then its argument prototype would still apply.  */
9115#ifdef __cplusplus
9116extern "C"
9117#endif
9118char dlopen ();
9119int
9120main ()
9121{
9122return dlopen ();
9123  ;
9124  return 0;
9125}
9126_ACEOF
9127for ac_lib in '' dl; do
9128  if test -z "$ac_lib"; then
9129    ac_res="none required"
9130  else
9131    ac_res=-l$ac_lib
9132    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9133  fi
9134  rm -f conftest.$ac_objext conftest$ac_exeext
9135if { (ac_try="$ac_link"
9136case "(($ac_try" in
9137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138  *) ac_try_echo=$ac_try;;
9139esac
9140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141  (eval "$ac_link") 2>conftest.er1
9142  ac_status=$?
9143  grep -v '^ *+' conftest.er1 >conftest.err
9144  rm -f conftest.er1
9145  cat conftest.err >&5
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); } &&
9148	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149  { (case "(($ac_try" in
9150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151  *) ac_try_echo=$ac_try;;
9152esac
9153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154  (eval "$ac_try") 2>&5
9155  ac_status=$?
9156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); }; } &&
9158	 { ac_try='test -s conftest$ac_exeext'
9159  { (case "(($ac_try" in
9160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161  *) ac_try_echo=$ac_try;;
9162esac
9163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164  (eval "$ac_try") 2>&5
9165  ac_status=$?
9166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167  (exit $ac_status); }; }; then
9168  ac_cv_search_dlopen=$ac_res
9169else
9170  echo "$as_me: failed program was:" >&5
9171sed 's/^/| /' conftest.$ac_ext >&5
9172
9173
9174fi
9175
9176rm -f core conftest.err conftest.$ac_objext \
9177      conftest$ac_exeext
9178  if test "${ac_cv_search_dlopen+set}" = set; then
9179  break
9180fi
9181done
9182if test "${ac_cv_search_dlopen+set}" = set; then
9183  :
9184else
9185  ac_cv_search_dlopen=no
9186fi
9187rm conftest.$ac_ext
9188LIBS=$ac_func_search_save_LIBS
9189fi
9190{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9191echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9192ac_res=$ac_cv_search_dlopen
9193if test "$ac_res" != no; then
9194  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9195
9196
9197cat >>confdefs.h <<\_ACEOF
9198#define HAVE_DLOPEN 1
9199_ACEOF
9200
9201HAVE_DLOPEN='1'
9202
9203
9204else
9205  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9206echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9207fi
9208
9209
9210{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9211echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9212if test "${ac_cv_search_clock_gettime+set}" = set; then
9213  echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215  ac_func_search_save_LIBS=$LIBS
9216cat >conftest.$ac_ext <<_ACEOF
9217/* confdefs.h.  */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h.  */
9222
9223/* Override any GCC internal prototype to avoid an error.
9224   Use char because int might match the return type of a GCC
9225   builtin and then its argument prototype would still apply.  */
9226#ifdef __cplusplus
9227extern "C"
9228#endif
9229char clock_gettime ();
9230int
9231main ()
9232{
9233return clock_gettime ();
9234  ;
9235  return 0;
9236}
9237_ACEOF
9238for ac_lib in '' rt; do
9239  if test -z "$ac_lib"; then
9240    ac_res="none required"
9241  else
9242    ac_res=-l$ac_lib
9243    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9244  fi
9245  rm -f conftest.$ac_objext conftest$ac_exeext
9246if { (ac_try="$ac_link"
9247case "(($ac_try" in
9248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249  *) ac_try_echo=$ac_try;;
9250esac
9251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252  (eval "$ac_link") 2>conftest.er1
9253  ac_status=$?
9254  grep -v '^ *+' conftest.er1 >conftest.err
9255  rm -f conftest.er1
9256  cat conftest.err >&5
9257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258  (exit $ac_status); } &&
9259	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9260  { (case "(($ac_try" in
9261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262  *) ac_try_echo=$ac_try;;
9263esac
9264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265  (eval "$ac_try") 2>&5
9266  ac_status=$?
9267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268  (exit $ac_status); }; } &&
9269	 { ac_try='test -s conftest$ac_exeext'
9270  { (case "(($ac_try" in
9271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272  *) ac_try_echo=$ac_try;;
9273esac
9274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275  (eval "$ac_try") 2>&5
9276  ac_status=$?
9277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278  (exit $ac_status); }; }; then
9279  ac_cv_search_clock_gettime=$ac_res
9280else
9281  echo "$as_me: failed program was:" >&5
9282sed 's/^/| /' conftest.$ac_ext >&5
9283
9284
9285fi
9286
9287rm -f core conftest.err conftest.$ac_objext \
9288      conftest$ac_exeext
9289  if test "${ac_cv_search_clock_gettime+set}" = set; then
9290  break
9291fi
9292done
9293if test "${ac_cv_search_clock_gettime+set}" = set; then
9294  :
9295else
9296  ac_cv_search_clock_gettime=no
9297fi
9298rm conftest.$ac_ext
9299LIBS=$ac_func_search_save_LIBS
9300fi
9301{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9302echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9303ac_res=$ac_cv_search_clock_gettime
9304if test "$ac_res" != no; then
9305  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9306
9307fi
9308
9309
9310if test "$llvm_cv_enable_terminfo" = "yes" ; then
9311    { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9312echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9313if test "${ac_cv_search_setupterm+set}" = set; then
9314  echo $ECHO_N "(cached) $ECHO_C" >&6
9315else
9316  ac_func_search_save_LIBS=$LIBS
9317cat >conftest.$ac_ext <<_ACEOF
9318/* confdefs.h.  */
9319_ACEOF
9320cat confdefs.h >>conftest.$ac_ext
9321cat >>conftest.$ac_ext <<_ACEOF
9322/* end confdefs.h.  */
9323
9324/* Override any GCC internal prototype to avoid an error.
9325   Use char because int might match the return type of a GCC
9326   builtin and then its argument prototype would still apply.  */
9327#ifdef __cplusplus
9328extern "C"
9329#endif
9330char setupterm ();
9331int
9332main ()
9333{
9334return setupterm ();
9335  ;
9336  return 0;
9337}
9338_ACEOF
9339for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9340  if test -z "$ac_lib"; then
9341    ac_res="none required"
9342  else
9343    ac_res=-l$ac_lib
9344    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9345  fi
9346  rm -f conftest.$ac_objext conftest$ac_exeext
9347if { (ac_try="$ac_link"
9348case "(($ac_try" in
9349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350  *) ac_try_echo=$ac_try;;
9351esac
9352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353  (eval "$ac_link") 2>conftest.er1
9354  ac_status=$?
9355  grep -v '^ *+' conftest.er1 >conftest.err
9356  rm -f conftest.er1
9357  cat conftest.err >&5
9358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359  (exit $ac_status); } &&
9360	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9361  { (case "(($ac_try" in
9362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363  *) ac_try_echo=$ac_try;;
9364esac
9365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366  (eval "$ac_try") 2>&5
9367  ac_status=$?
9368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369  (exit $ac_status); }; } &&
9370	 { ac_try='test -s conftest$ac_exeext'
9371  { (case "(($ac_try" in
9372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373  *) ac_try_echo=$ac_try;;
9374esac
9375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376  (eval "$ac_try") 2>&5
9377  ac_status=$?
9378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379  (exit $ac_status); }; }; then
9380  ac_cv_search_setupterm=$ac_res
9381else
9382  echo "$as_me: failed program was:" >&5
9383sed 's/^/| /' conftest.$ac_ext >&5
9384
9385
9386fi
9387
9388rm -f core conftest.err conftest.$ac_objext \
9389      conftest$ac_exeext
9390  if test "${ac_cv_search_setupterm+set}" = set; then
9391  break
9392fi
9393done
9394if test "${ac_cv_search_setupterm+set}" = set; then
9395  :
9396else
9397  ac_cv_search_setupterm=no
9398fi
9399rm conftest.$ac_ext
9400LIBS=$ac_func_search_save_LIBS
9401fi
9402{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9403echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9404ac_res=$ac_cv_search_setupterm
9405if test "$ac_res" != no; then
9406  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9407
9408
9409cat >>confdefs.h <<\_ACEOF
9410#define HAVE_TERMINFO 1
9411_ACEOF
9412
9413HAVE_TERMINFO='1'
9414
9415
9416fi
9417
9418fi
9419
9420if test "$llvm_cv_enable_libedit" = "yes" ; then
9421  { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9422echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9423if test "${ac_cv_search_el_init+set}" = set; then
9424  echo $ECHO_N "(cached) $ECHO_C" >&6
9425else
9426  ac_func_search_save_LIBS=$LIBS
9427cat >conftest.$ac_ext <<_ACEOF
9428/* confdefs.h.  */
9429_ACEOF
9430cat confdefs.h >>conftest.$ac_ext
9431cat >>conftest.$ac_ext <<_ACEOF
9432/* end confdefs.h.  */
9433
9434/* Override any GCC internal prototype to avoid an error.
9435   Use char because int might match the return type of a GCC
9436   builtin and then its argument prototype would still apply.  */
9437#ifdef __cplusplus
9438extern "C"
9439#endif
9440char el_init ();
9441int
9442main ()
9443{
9444return el_init ();
9445  ;
9446  return 0;
9447}
9448_ACEOF
9449for ac_lib in '' edit; do
9450  if test -z "$ac_lib"; then
9451    ac_res="none required"
9452  else
9453    ac_res=-l$ac_lib
9454    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9455  fi
9456  rm -f conftest.$ac_objext conftest$ac_exeext
9457if { (ac_try="$ac_link"
9458case "(($ac_try" in
9459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460  *) ac_try_echo=$ac_try;;
9461esac
9462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463  (eval "$ac_link") 2>conftest.er1
9464  ac_status=$?
9465  grep -v '^ *+' conftest.er1 >conftest.err
9466  rm -f conftest.er1
9467  cat conftest.err >&5
9468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469  (exit $ac_status); } &&
9470	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9471  { (case "(($ac_try" in
9472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473  *) ac_try_echo=$ac_try;;
9474esac
9475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476  (eval "$ac_try") 2>&5
9477  ac_status=$?
9478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479  (exit $ac_status); }; } &&
9480	 { ac_try='test -s conftest$ac_exeext'
9481  { (case "(($ac_try" in
9482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483  *) ac_try_echo=$ac_try;;
9484esac
9485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486  (eval "$ac_try") 2>&5
9487  ac_status=$?
9488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489  (exit $ac_status); }; }; then
9490  ac_cv_search_el_init=$ac_res
9491else
9492  echo "$as_me: failed program was:" >&5
9493sed 's/^/| /' conftest.$ac_ext >&5
9494
9495
9496fi
9497
9498rm -f core conftest.err conftest.$ac_objext \
9499      conftest$ac_exeext
9500  if test "${ac_cv_search_el_init+set}" = set; then
9501  break
9502fi
9503done
9504if test "${ac_cv_search_el_init+set}" = set; then
9505  :
9506else
9507  ac_cv_search_el_init=no
9508fi
9509rm conftest.$ac_ext
9510LIBS=$ac_func_search_save_LIBS
9511fi
9512{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9513echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9514ac_res=$ac_cv_search_el_init
9515if test "$ac_res" != no; then
9516  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9517
9518cat >>confdefs.h <<\_ACEOF
9519#define HAVE_LIBEDIT 1
9520_ACEOF
9521
9522fi
9523
9524fi
9525
9526if test "$llvm_cv_enable_libffi" = "yes" ; then
9527  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9528echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9529if test "${ac_cv_search_ffi_call+set}" = set; then
9530  echo $ECHO_N "(cached) $ECHO_C" >&6
9531else
9532  ac_func_search_save_LIBS=$LIBS
9533cat >conftest.$ac_ext <<_ACEOF
9534/* confdefs.h.  */
9535_ACEOF
9536cat confdefs.h >>conftest.$ac_ext
9537cat >>conftest.$ac_ext <<_ACEOF
9538/* end confdefs.h.  */
9539
9540/* Override any GCC internal prototype to avoid an error.
9541   Use char because int might match the return type of a GCC
9542   builtin and then its argument prototype would still apply.  */
9543#ifdef __cplusplus
9544extern "C"
9545#endif
9546char ffi_call ();
9547int
9548main ()
9549{
9550return ffi_call ();
9551  ;
9552  return 0;
9553}
9554_ACEOF
9555for ac_lib in '' ffi; do
9556  if test -z "$ac_lib"; then
9557    ac_res="none required"
9558  else
9559    ac_res=-l$ac_lib
9560    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9561  fi
9562  rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (ac_try="$ac_link"
9564case "(($ac_try" in
9565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566  *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569  (eval "$ac_link") 2>conftest.er1
9570  ac_status=$?
9571  grep -v '^ *+' conftest.er1 >conftest.err
9572  rm -f conftest.er1
9573  cat conftest.err >&5
9574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575  (exit $ac_status); } &&
9576	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9577  { (case "(($ac_try" in
9578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579  *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582  (eval "$ac_try") 2>&5
9583  ac_status=$?
9584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585  (exit $ac_status); }; } &&
9586	 { ac_try='test -s conftest$ac_exeext'
9587  { (case "(($ac_try" in
9588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589  *) ac_try_echo=$ac_try;;
9590esac
9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592  (eval "$ac_try") 2>&5
9593  ac_status=$?
9594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595  (exit $ac_status); }; }; then
9596  ac_cv_search_ffi_call=$ac_res
9597else
9598  echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
9601
9602fi
9603
9604rm -f core conftest.err conftest.$ac_objext \
9605      conftest$ac_exeext
9606  if test "${ac_cv_search_ffi_call+set}" = set; then
9607  break
9608fi
9609done
9610if test "${ac_cv_search_ffi_call+set}" = set; then
9611  :
9612else
9613  ac_cv_search_ffi_call=no
9614fi
9615rm conftest.$ac_ext
9616LIBS=$ac_func_search_save_LIBS
9617fi
9618{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9619echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9620ac_res=$ac_cv_search_ffi_call
9621if test "$ac_res" != no; then
9622  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9623
9624cat >>confdefs.h <<\_ACEOF
9625#define HAVE_FFI_CALL 1
9626_ACEOF
9627
9628else
9629  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9630echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9631   { (exit 1); exit 1; }; }
9632fi
9633
9634fi
9635
9636{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9637echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9638if test "${ac_cv_search_mallinfo+set}" = set; then
9639  echo $ECHO_N "(cached) $ECHO_C" >&6
9640else
9641  ac_func_search_save_LIBS=$LIBS
9642cat >conftest.$ac_ext <<_ACEOF
9643/* confdefs.h.  */
9644_ACEOF
9645cat confdefs.h >>conftest.$ac_ext
9646cat >>conftest.$ac_ext <<_ACEOF
9647/* end confdefs.h.  */
9648
9649/* Override any GCC internal prototype to avoid an error.
9650   Use char because int might match the return type of a GCC
9651   builtin and then its argument prototype would still apply.  */
9652#ifdef __cplusplus
9653extern "C"
9654#endif
9655char mallinfo ();
9656int
9657main ()
9658{
9659return mallinfo ();
9660  ;
9661  return 0;
9662}
9663_ACEOF
9664for ac_lib in '' malloc; do
9665  if test -z "$ac_lib"; then
9666    ac_res="none required"
9667  else
9668    ac_res=-l$ac_lib
9669    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9670  fi
9671  rm -f conftest.$ac_objext conftest$ac_exeext
9672if { (ac_try="$ac_link"
9673case "(($ac_try" in
9674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675  *) ac_try_echo=$ac_try;;
9676esac
9677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678  (eval "$ac_link") 2>conftest.er1
9679  ac_status=$?
9680  grep -v '^ *+' conftest.er1 >conftest.err
9681  rm -f conftest.er1
9682  cat conftest.err >&5
9683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684  (exit $ac_status); } &&
9685	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9686  { (case "(($ac_try" in
9687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688  *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691  (eval "$ac_try") 2>&5
9692  ac_status=$?
9693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694  (exit $ac_status); }; } &&
9695	 { ac_try='test -s conftest$ac_exeext'
9696  { (case "(($ac_try" in
9697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698  *) ac_try_echo=$ac_try;;
9699esac
9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701  (eval "$ac_try") 2>&5
9702  ac_status=$?
9703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704  (exit $ac_status); }; }; then
9705  ac_cv_search_mallinfo=$ac_res
9706else
9707  echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
9710
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext \
9714      conftest$ac_exeext
9715  if test "${ac_cv_search_mallinfo+set}" = set; then
9716  break
9717fi
9718done
9719if test "${ac_cv_search_mallinfo+set}" = set; then
9720  :
9721else
9722  ac_cv_search_mallinfo=no
9723fi
9724rm conftest.$ac_ext
9725LIBS=$ac_func_search_save_LIBS
9726fi
9727{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9728echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9729ac_res=$ac_cv_search_mallinfo
9730if test "$ac_res" != no; then
9731  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9732
9733cat >>confdefs.h <<\_ACEOF
9734#define HAVE_MALLINFO 1
9735_ACEOF
9736
9737fi
9738
9739
9740if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9741
9742{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9743echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9744if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9745  echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747  ac_check_lib_save_LIBS=$LIBS
9748LIBS="-lpthread  $LIBS"
9749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h.  */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h.  */
9755
9756/* Override any GCC internal prototype to avoid an error.
9757   Use char because int might match the return type of a GCC
9758   builtin and then its argument prototype would still apply.  */
9759#ifdef __cplusplus
9760extern "C"
9761#endif
9762char pthread_mutex_init ();
9763int
9764main ()
9765{
9766return pthread_mutex_init ();
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
9772if { (ac_try="$ac_link"
9773case "(($ac_try" in
9774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775  *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778  (eval "$ac_link") 2>conftest.er1
9779  ac_status=$?
9780  grep -v '^ *+' conftest.er1 >conftest.err
9781  rm -f conftest.er1
9782  cat conftest.err >&5
9783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784  (exit $ac_status); } &&
9785	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786  { (case "(($ac_try" in
9787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788  *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791  (eval "$ac_try") 2>&5
9792  ac_status=$?
9793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794  (exit $ac_status); }; } &&
9795	 { ac_try='test -s conftest$ac_exeext'
9796  { (case "(($ac_try" in
9797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798  *) ac_try_echo=$ac_try;;
9799esac
9800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801  (eval "$ac_try") 2>&5
9802  ac_status=$?
9803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804  (exit $ac_status); }; }; then
9805  ac_cv_lib_pthread_pthread_mutex_init=yes
9806else
9807  echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
9810	ac_cv_lib_pthread_pthread_mutex_init=no
9811fi
9812
9813rm -f core conftest.err conftest.$ac_objext \
9814      conftest$ac_exeext conftest.$ac_ext
9815LIBS=$ac_check_lib_save_LIBS
9816fi
9817{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9818echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9819if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9820  cat >>confdefs.h <<_ACEOF
9821#define HAVE_LIBPTHREAD 1
9822_ACEOF
9823
9824  LIBS="-lpthread $LIBS"
9825
9826fi
9827
9828  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9829echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9830if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9831  echo $ECHO_N "(cached) $ECHO_C" >&6
9832else
9833  ac_func_search_save_LIBS=$LIBS
9834cat >conftest.$ac_ext <<_ACEOF
9835/* confdefs.h.  */
9836_ACEOF
9837cat confdefs.h >>conftest.$ac_ext
9838cat >>conftest.$ac_ext <<_ACEOF
9839/* end confdefs.h.  */
9840
9841/* Override any GCC internal prototype to avoid an error.
9842   Use char because int might match the return type of a GCC
9843   builtin and then its argument prototype would still apply.  */
9844#ifdef __cplusplus
9845extern "C"
9846#endif
9847char pthread_mutex_lock ();
9848int
9849main ()
9850{
9851return pthread_mutex_lock ();
9852  ;
9853  return 0;
9854}
9855_ACEOF
9856for ac_lib in '' pthread; do
9857  if test -z "$ac_lib"; then
9858    ac_res="none required"
9859  else
9860    ac_res=-l$ac_lib
9861    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9862  fi
9863  rm -f conftest.$ac_objext conftest$ac_exeext
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867  *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870  (eval "$ac_link") 2>conftest.er1
9871  ac_status=$?
9872  grep -v '^ *+' conftest.er1 >conftest.err
9873  rm -f conftest.er1
9874  cat conftest.err >&5
9875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); } &&
9877	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878  { (case "(($ac_try" in
9879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880  *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883  (eval "$ac_try") 2>&5
9884  ac_status=$?
9885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886  (exit $ac_status); }; } &&
9887	 { ac_try='test -s conftest$ac_exeext'
9888  { (case "(($ac_try" in
9889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890  *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893  (eval "$ac_try") 2>&5
9894  ac_status=$?
9895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896  (exit $ac_status); }; }; then
9897  ac_cv_search_pthread_mutex_lock=$ac_res
9898else
9899  echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902
9903fi
9904
9905rm -f core conftest.err conftest.$ac_objext \
9906      conftest$ac_exeext
9907  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9908  break
9909fi
9910done
9911if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9912  :
9913else
9914  ac_cv_search_pthread_mutex_lock=no
9915fi
9916rm conftest.$ac_ext
9917LIBS=$ac_func_search_save_LIBS
9918fi
9919{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9920echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9921ac_res=$ac_cv_search_pthread_mutex_lock
9922if test "$ac_res" != no; then
9923  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9924
9925cat >>confdefs.h <<\_ACEOF
9926#define HAVE_PTHREAD_MUTEX_LOCK 1
9927_ACEOF
9928
9929fi
9930
9931  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9932echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9933if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9934  echo $ECHO_N "(cached) $ECHO_C" >&6
9935else
9936  ac_func_search_save_LIBS=$LIBS
9937cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h.  */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h.  */
9943
9944/* Override any GCC internal prototype to avoid an error.
9945   Use char because int might match the return type of a GCC
9946   builtin and then its argument prototype would still apply.  */
9947#ifdef __cplusplus
9948extern "C"
9949#endif
9950char pthread_rwlock_init ();
9951int
9952main ()
9953{
9954return pthread_rwlock_init ();
9955  ;
9956  return 0;
9957}
9958_ACEOF
9959for ac_lib in '' pthread; do
9960  if test -z "$ac_lib"; then
9961    ac_res="none required"
9962  else
9963    ac_res=-l$ac_lib
9964    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9965  fi
9966  rm -f conftest.$ac_objext conftest$ac_exeext
9967if { (ac_try="$ac_link"
9968case "(($ac_try" in
9969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970  *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973  (eval "$ac_link") 2>conftest.er1
9974  ac_status=$?
9975  grep -v '^ *+' conftest.er1 >conftest.err
9976  rm -f conftest.er1
9977  cat conftest.err >&5
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); } &&
9980	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981  { (case "(($ac_try" in
9982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983  *) ac_try_echo=$ac_try;;
9984esac
9985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986  (eval "$ac_try") 2>&5
9987  ac_status=$?
9988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989  (exit $ac_status); }; } &&
9990	 { ac_try='test -s conftest$ac_exeext'
9991  { (case "(($ac_try" in
9992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993  *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996  (eval "$ac_try") 2>&5
9997  ac_status=$?
9998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999  (exit $ac_status); }; }; then
10000  ac_cv_search_pthread_rwlock_init=$ac_res
10001else
10002  echo "$as_me: failed program was:" >&5
10003sed 's/^/| /' conftest.$ac_ext >&5
10004
10005
10006fi
10007
10008rm -f core conftest.err conftest.$ac_objext \
10009      conftest$ac_exeext
10010  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10011  break
10012fi
10013done
10014if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10015  :
10016else
10017  ac_cv_search_pthread_rwlock_init=no
10018fi
10019rm conftest.$ac_ext
10020LIBS=$ac_func_search_save_LIBS
10021fi
10022{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10023echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10024ac_res=$ac_cv_search_pthread_rwlock_init
10025if test "$ac_res" != no; then
10026  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10027
10028cat >>confdefs.h <<\_ACEOF
10029#define HAVE_PTHREAD_RWLOCK_INIT 1
10030_ACEOF
10031
10032fi
10033
10034  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10035echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10036if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10037  echo $ECHO_N "(cached) $ECHO_C" >&6
10038else
10039  ac_func_search_save_LIBS=$LIBS
10040cat >conftest.$ac_ext <<_ACEOF
10041/* confdefs.h.  */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
10045/* end confdefs.h.  */
10046
10047/* Override any GCC internal prototype to avoid an error.
10048   Use char because int might match the return type of a GCC
10049   builtin and then its argument prototype would still apply.  */
10050#ifdef __cplusplus
10051extern "C"
10052#endif
10053char pthread_getspecific ();
10054int
10055main ()
10056{
10057return pthread_getspecific ();
10058  ;
10059  return 0;
10060}
10061_ACEOF
10062for ac_lib in '' pthread; do
10063  if test -z "$ac_lib"; then
10064    ac_res="none required"
10065  else
10066    ac_res=-l$ac_lib
10067    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10068  fi
10069  rm -f conftest.$ac_objext conftest$ac_exeext
10070if { (ac_try="$ac_link"
10071case "(($ac_try" in
10072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073  *) ac_try_echo=$ac_try;;
10074esac
10075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076  (eval "$ac_link") 2>conftest.er1
10077  ac_status=$?
10078  grep -v '^ *+' conftest.er1 >conftest.err
10079  rm -f conftest.er1
10080  cat conftest.err >&5
10081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082  (exit $ac_status); } &&
10083	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10084  { (case "(($ac_try" in
10085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086  *) ac_try_echo=$ac_try;;
10087esac
10088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089  (eval "$ac_try") 2>&5
10090  ac_status=$?
10091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092  (exit $ac_status); }; } &&
10093	 { ac_try='test -s conftest$ac_exeext'
10094  { (case "(($ac_try" in
10095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096  *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099  (eval "$ac_try") 2>&5
10100  ac_status=$?
10101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102  (exit $ac_status); }; }; then
10103  ac_cv_search_pthread_getspecific=$ac_res
10104else
10105  echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108
10109fi
10110
10111rm -f core conftest.err conftest.$ac_objext \
10112      conftest$ac_exeext
10113  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10114  break
10115fi
10116done
10117if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10118  :
10119else
10120  ac_cv_search_pthread_getspecific=no
10121fi
10122rm conftest.$ac_ext
10123LIBS=$ac_func_search_save_LIBS
10124fi
10125{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10126echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10127ac_res=$ac_cv_search_pthread_getspecific
10128if test "$ac_res" != no; then
10129  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10130
10131cat >>confdefs.h <<\_ACEOF
10132#define HAVE_PTHREAD_GETSPECIFIC 1
10133_ACEOF
10134
10135fi
10136
10137fi
10138
10139if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10140
10141{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10142echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10143if test "${ac_cv_lib_z_compress2+set}" = set; then
10144  echo $ECHO_N "(cached) $ECHO_C" >&6
10145else
10146  ac_check_lib_save_LIBS=$LIBS
10147LIBS="-lz  $LIBS"
10148cat >conftest.$ac_ext <<_ACEOF
10149/* confdefs.h.  */
10150_ACEOF
10151cat confdefs.h >>conftest.$ac_ext
10152cat >>conftest.$ac_ext <<_ACEOF
10153/* end confdefs.h.  */
10154
10155/* Override any GCC internal prototype to avoid an error.
10156   Use char because int might match the return type of a GCC
10157   builtin and then its argument prototype would still apply.  */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161char compress2 ();
10162int
10163main ()
10164{
10165return compress2 ();
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext conftest$ac_exeext
10171if { (ac_try="$ac_link"
10172case "(($ac_try" in
10173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174  *) ac_try_echo=$ac_try;;
10175esac
10176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177  (eval "$ac_link") 2>conftest.er1
10178  ac_status=$?
10179  grep -v '^ *+' conftest.er1 >conftest.err
10180  rm -f conftest.er1
10181  cat conftest.err >&5
10182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183  (exit $ac_status); } &&
10184	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185  { (case "(($ac_try" in
10186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187  *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190  (eval "$ac_try") 2>&5
10191  ac_status=$?
10192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); }; } &&
10194	 { ac_try='test -s conftest$ac_exeext'
10195  { (case "(($ac_try" in
10196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197  *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200  (eval "$ac_try") 2>&5
10201  ac_status=$?
10202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203  (exit $ac_status); }; }; then
10204  ac_cv_lib_z_compress2=yes
10205else
10206  echo "$as_me: failed program was:" >&5
10207sed 's/^/| /' conftest.$ac_ext >&5
10208
10209	ac_cv_lib_z_compress2=no
10210fi
10211
10212rm -f core conftest.err conftest.$ac_objext \
10213      conftest$ac_exeext conftest.$ac_ext
10214LIBS=$ac_check_lib_save_LIBS
10215fi
10216{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10217echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10218if test $ac_cv_lib_z_compress2 = yes; then
10219  cat >>confdefs.h <<_ACEOF
10220#define HAVE_LIBZ 1
10221_ACEOF
10222
10223  LIBS="-lz $LIBS"
10224
10225fi
10226
10227fi
10228
10229
10230# Check whether --with-udis86 was given.
10231if test "${with_udis86+set}" = set; then
10232  withval=$with_udis86;
10233      USE_UDIS86=1
10234
10235      case "$withval" in
10236        /usr/lib|yes) ;;
10237        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10238      esac
10239
10240{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10241echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10242if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10243  echo $ECHO_N "(cached) $ECHO_C" >&6
10244else
10245  ac_check_lib_save_LIBS=$LIBS
10246LIBS="-ludis86  $LIBS"
10247cat >conftest.$ac_ext <<_ACEOF
10248/* confdefs.h.  */
10249_ACEOF
10250cat confdefs.h >>conftest.$ac_ext
10251cat >>conftest.$ac_ext <<_ACEOF
10252/* end confdefs.h.  */
10253
10254/* Override any GCC internal prototype to avoid an error.
10255   Use char because int might match the return type of a GCC
10256   builtin and then its argument prototype would still apply.  */
10257#ifdef __cplusplus
10258extern "C"
10259#endif
10260char ud_init ();
10261int
10262main ()
10263{
10264return ud_init ();
10265  ;
10266  return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
10270if { (ac_try="$ac_link"
10271case "(($ac_try" in
10272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273  *) ac_try_echo=$ac_try;;
10274esac
10275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276  (eval "$ac_link") 2>conftest.er1
10277  ac_status=$?
10278  grep -v '^ *+' conftest.er1 >conftest.err
10279  rm -f conftest.er1
10280  cat conftest.err >&5
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); } &&
10283	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284  { (case "(($ac_try" in
10285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286  *) ac_try_echo=$ac_try;;
10287esac
10288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289  (eval "$ac_try") 2>&5
10290  ac_status=$?
10291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292  (exit $ac_status); }; } &&
10293	 { ac_try='test -s conftest$ac_exeext'
10294  { (case "(($ac_try" in
10295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296  *) ac_try_echo=$ac_try;;
10297esac
10298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299  (eval "$ac_try") 2>&5
10300  ac_status=$?
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); }; }; then
10303  ac_cv_lib_udis86_ud_init=yes
10304else
10305  echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308	ac_cv_lib_udis86_ud_init=no
10309fi
10310
10311rm -f core conftest.err conftest.$ac_objext \
10312      conftest$ac_exeext conftest.$ac_ext
10313LIBS=$ac_check_lib_save_LIBS
10314fi
10315{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10316echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10317if test $ac_cv_lib_udis86_ud_init = yes; then
10318  cat >>confdefs.h <<_ACEOF
10319#define HAVE_LIBUDIS86 1
10320_ACEOF
10321
10322  LIBS="-ludis86 $LIBS"
10323
10324else
10325
10326        echo "Error! You need to have libudis86 around."
10327        exit -1
10328
10329fi
10330
10331
10332else
10333  USE_UDIS86=0
10334
10335fi
10336
10337
10338cat >>confdefs.h <<_ACEOF
10339#define USE_UDIS86 $USE_UDIS86
10340_ACEOF
10341
10342
10343
10344# Check whether --with-oprofile was given.
10345if test "${with_oprofile+set}" = set; then
10346  withval=$with_oprofile;
10347      USE_OPROFILE=1
10348
10349      case "$withval" in
10350        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10351        no) llvm_cv_oppath=
10352            USE_OPROFILE=0
10353 ;;
10354        *) llvm_cv_oppath="${withval}/lib/oprofile"
10355           CPPFLAGS="-I${withval}/include";;
10356      esac
10357      case $llvm_cv_os_type in
10358        Linux)
10359          if test -n "$llvm_cv_oppath" ; then
10360            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10361                                                            { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10362echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10363if test "${ac_cv_search_bfd_init+set}" = set; then
10364  echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
10366  ac_func_search_save_LIBS=$LIBS
10367cat >conftest.$ac_ext <<_ACEOF
10368/* confdefs.h.  */
10369_ACEOF
10370cat confdefs.h >>conftest.$ac_ext
10371cat >>conftest.$ac_ext <<_ACEOF
10372/* end confdefs.h.  */
10373
10374/* Override any GCC internal prototype to avoid an error.
10375   Use char because int might match the return type of a GCC
10376   builtin and then its argument prototype would still apply.  */
10377#ifdef __cplusplus
10378extern "C"
10379#endif
10380char bfd_init ();
10381int
10382main ()
10383{
10384return bfd_init ();
10385  ;
10386  return 0;
10387}
10388_ACEOF
10389for ac_lib in '' bfd; do
10390  if test -z "$ac_lib"; then
10391    ac_res="none required"
10392  else
10393    ac_res=-l$ac_lib
10394    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10395  fi
10396  rm -f conftest.$ac_objext conftest$ac_exeext
10397if { (ac_try="$ac_link"
10398case "(($ac_try" in
10399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400  *) ac_try_echo=$ac_try;;
10401esac
10402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403  (eval "$ac_link") 2>conftest.er1
10404  ac_status=$?
10405  grep -v '^ *+' conftest.er1 >conftest.err
10406  rm -f conftest.er1
10407  cat conftest.err >&5
10408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409  (exit $ac_status); } &&
10410	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10411  { (case "(($ac_try" in
10412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413  *) ac_try_echo=$ac_try;;
10414esac
10415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416  (eval "$ac_try") 2>&5
10417  ac_status=$?
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); }; } &&
10420	 { ac_try='test -s conftest$ac_exeext'
10421  { (case "(($ac_try" in
10422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423  *) ac_try_echo=$ac_try;;
10424esac
10425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426  (eval "$ac_try") 2>&5
10427  ac_status=$?
10428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429  (exit $ac_status); }; }; then
10430  ac_cv_search_bfd_init=$ac_res
10431else
10432  echo "$as_me: failed program was:" >&5
10433sed 's/^/| /' conftest.$ac_ext >&5
10434
10435
10436fi
10437
10438rm -f core conftest.err conftest.$ac_objext \
10439      conftest$ac_exeext
10440  if test "${ac_cv_search_bfd_init+set}" = set; then
10441  break
10442fi
10443done
10444if test "${ac_cv_search_bfd_init+set}" = set; then
10445  :
10446else
10447  ac_cv_search_bfd_init=no
10448fi
10449rm conftest.$ac_ext
10450LIBS=$ac_func_search_save_LIBS
10451fi
10452{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10453echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10454ac_res=$ac_cv_search_bfd_init
10455if test "$ac_res" != no; then
10456  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10457
10458fi
10459
10460            { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10461echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10462if test "${ac_cv_search_op_open_agent+set}" = set; then
10463  echo $ECHO_N "(cached) $ECHO_C" >&6
10464else
10465  ac_func_search_save_LIBS=$LIBS
10466cat >conftest.$ac_ext <<_ACEOF
10467/* confdefs.h.  */
10468_ACEOF
10469cat confdefs.h >>conftest.$ac_ext
10470cat >>conftest.$ac_ext <<_ACEOF
10471/* end confdefs.h.  */
10472
10473/* Override any GCC internal prototype to avoid an error.
10474   Use char because int might match the return type of a GCC
10475   builtin and then its argument prototype would still apply.  */
10476#ifdef __cplusplus
10477extern "C"
10478#endif
10479char op_open_agent ();
10480int
10481main ()
10482{
10483return op_open_agent ();
10484  ;
10485  return 0;
10486}
10487_ACEOF
10488for ac_lib in '' opagent; do
10489  if test -z "$ac_lib"; then
10490    ac_res="none required"
10491  else
10492    ac_res=-l$ac_lib
10493    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10494  fi
10495  rm -f conftest.$ac_objext conftest$ac_exeext
10496if { (ac_try="$ac_link"
10497case "(($ac_try" in
10498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499  *) ac_try_echo=$ac_try;;
10500esac
10501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502  (eval "$ac_link") 2>conftest.er1
10503  ac_status=$?
10504  grep -v '^ *+' conftest.er1 >conftest.err
10505  rm -f conftest.er1
10506  cat conftest.err >&5
10507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508  (exit $ac_status); } &&
10509	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10510  { (case "(($ac_try" in
10511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512  *) ac_try_echo=$ac_try;;
10513esac
10514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515  (eval "$ac_try") 2>&5
10516  ac_status=$?
10517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); }; } &&
10519	 { ac_try='test -s conftest$ac_exeext'
10520  { (case "(($ac_try" in
10521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522  *) ac_try_echo=$ac_try;;
10523esac
10524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525  (eval "$ac_try") 2>&5
10526  ac_status=$?
10527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528  (exit $ac_status); }; }; then
10529  ac_cv_search_op_open_agent=$ac_res
10530else
10531  echo "$as_me: failed program was:" >&5
10532sed 's/^/| /' conftest.$ac_ext >&5
10533
10534
10535fi
10536
10537rm -f core conftest.err conftest.$ac_objext \
10538      conftest$ac_exeext
10539  if test "${ac_cv_search_op_open_agent+set}" = set; then
10540  break
10541fi
10542done
10543if test "${ac_cv_search_op_open_agent+set}" = set; then
10544  :
10545else
10546  ac_cv_search_op_open_agent=no
10547fi
10548rm conftest.$ac_ext
10549LIBS=$ac_func_search_save_LIBS
10550fi
10551{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10552echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10553ac_res=$ac_cv_search_op_open_agent
10554if test "$ac_res" != no; then
10555  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10556
10557else
10558
10559              echo "Error! You need to have libopagent around."
10560              exit -1
10561
10562fi
10563
10564            if test "${ac_cv_header_opagent_h+set}" = set; then
10565  { echo "$as_me:$LINENO: checking for opagent.h" >&5
10566echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10567if test "${ac_cv_header_opagent_h+set}" = set; then
10568  echo $ECHO_N "(cached) $ECHO_C" >&6
10569fi
10570{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10571echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10572else
10573  # Is the header compilable?
10574{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
10575echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h.  */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h.  */
10582$ac_includes_default
10583#include <opagent.h>
10584_ACEOF
10585rm -f conftest.$ac_objext
10586if { (ac_try="$ac_compile"
10587case "(($ac_try" in
10588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589  *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592  (eval "$ac_compile") 2>conftest.er1
10593  ac_status=$?
10594  grep -v '^ *+' conftest.er1 >conftest.err
10595  rm -f conftest.er1
10596  cat conftest.err >&5
10597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598  (exit $ac_status); } &&
10599	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600  { (case "(($ac_try" in
10601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602  *) ac_try_echo=$ac_try;;
10603esac
10604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605  (eval "$ac_try") 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); }; } &&
10609	 { ac_try='test -s conftest.$ac_objext'
10610  { (case "(($ac_try" in
10611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612  *) ac_try_echo=$ac_try;;
10613esac
10614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615  (eval "$ac_try") 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); }; }; then
10619  ac_header_compiler=yes
10620else
10621  echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
10624	ac_header_compiler=no
10625fi
10626
10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629echo "${ECHO_T}$ac_header_compiler" >&6; }
10630
10631# Is the header present?
10632{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
10633echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10634cat >conftest.$ac_ext <<_ACEOF
10635/* confdefs.h.  */
10636_ACEOF
10637cat confdefs.h >>conftest.$ac_ext
10638cat >>conftest.$ac_ext <<_ACEOF
10639/* end confdefs.h.  */
10640#include <opagent.h>
10641_ACEOF
10642if { (ac_try="$ac_cpp conftest.$ac_ext"
10643case "(($ac_try" in
10644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645  *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649  ac_status=$?
10650  grep -v '^ *+' conftest.er1 >conftest.err
10651  rm -f conftest.er1
10652  cat conftest.err >&5
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); } >/dev/null; then
10655  if test -s conftest.err; then
10656    ac_cpp_err=$ac_c_preproc_warn_flag
10657    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658  else
10659    ac_cpp_err=
10660  fi
10661else
10662  ac_cpp_err=yes
10663fi
10664if test -z "$ac_cpp_err"; then
10665  ac_header_preproc=yes
10666else
10667  echo "$as_me: failed program was:" >&5
10668sed 's/^/| /' conftest.$ac_ext >&5
10669
10670  ac_header_preproc=no
10671fi
10672
10673rm -f conftest.err conftest.$ac_ext
10674{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675echo "${ECHO_T}$ac_header_preproc" >&6; }
10676
10677# So?  What about this header?
10678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679  yes:no: )
10680    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10681echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10683echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10684    ac_header_preproc=yes
10685    ;;
10686  no:yes:* )
10687    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10688echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10689    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10690echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10691    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10692echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10693    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10694echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10695    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10696echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10697    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10698echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10699    ( cat <<\_ASBOX
10700## ------------------------------------ ##
10701## Report this to http://llvm.org/bugs/ ##
10702## ------------------------------------ ##
10703_ASBOX
10704     ) | sed "s/^/$as_me: WARNING:     /" >&2
10705    ;;
10706esac
10707{ echo "$as_me:$LINENO: checking for opagent.h" >&5
10708echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10709if test "${ac_cv_header_opagent_h+set}" = set; then
10710  echo $ECHO_N "(cached) $ECHO_C" >&6
10711else
10712  ac_cv_header_opagent_h=$ac_header_preproc
10713fi
10714{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10715echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10716
10717fi
10718if test $ac_cv_header_opagent_h = yes; then
10719  :
10720else
10721
10722              echo "Error! You need to have opagent.h around."
10723              exit -1
10724
10725fi
10726
10727
10728          fi ;;
10729        *)
10730          { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10731echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10732   { (exit 1); exit 1; }; } ;;
10733      esac
10734
10735else
10736
10737      USE_OPROFILE=0
10738
10739
10740fi
10741
10742
10743cat >>confdefs.h <<_ACEOF
10744#define LLVM_USE_OPROFILE $USE_OPROFILE
10745_ACEOF
10746
10747
10748
10749# Check whether --with-intel-jitevents was given.
10750if test "${with_intel_jitevents+set}" = set; then
10751  withval=$with_intel_jitevents;
10752       case "$withval" in
10753          yes) USE_INTEL_JITEVENTS=1
10754;;
10755          no)  USE_INTEL_JITEVENTS=0
10756;;
10757          *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10758echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10759   { (exit 1); exit 1; }; };;
10760       esac
10761
10762      case $llvm_cv_os_type in
10763        Linux|Win32|Cygwin|MingW) ;;
10764        *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10765echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10766   { (exit 1); exit 1; }; };;
10767      esac
10768
10769      case "$llvm_cv_target_arch" in
10770        x86|x86_64) ;;
10771        *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10772echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10773   { (exit 1); exit 1; }; };;
10774      esac
10775
10776else
10777
10778      USE_INTEL_JITEVENTS=0
10779
10780
10781fi
10782
10783
10784cat >>confdefs.h <<_ACEOF
10785#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10786_ACEOF
10787
10788
10789for ac_prog in xml2-config
10790do
10791  # Extract the first word of "$ac_prog", so it can be a program name with args.
10792set dummy $ac_prog; ac_word=$2
10793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10795if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10796  echo $ECHO_N "(cached) $ECHO_C" >&6
10797else
10798  if test -n "$XML2CONFIG"; then
10799  ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10800else
10801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802for as_dir in $PATH
10803do
10804  IFS=$as_save_IFS
10805  test -z "$as_dir" && as_dir=.
10806  for ac_exec_ext in '' $ac_executable_extensions; do
10807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10808    ac_cv_prog_XML2CONFIG="$ac_prog"
10809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10810    break 2
10811  fi
10812done
10813done
10814IFS=$as_save_IFS
10815
10816fi
10817fi
10818XML2CONFIG=$ac_cv_prog_XML2CONFIG
10819if test -n "$XML2CONFIG"; then
10820  { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10821echo "${ECHO_T}$XML2CONFIG" >&6; }
10822else
10823  { echo "$as_me:$LINENO: result: no" >&5
10824echo "${ECHO_T}no" >&6; }
10825fi
10826
10827
10828  test -n "$XML2CONFIG" && break
10829done
10830
10831
10832{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10833echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10834if test "x$XML2CONFIG" = "x"; then
10835 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10836echo "${ECHO_T}xml2-config not found" >&6; }
10837else
10838 LIBXML2_INC=`$XML2CONFIG --cflags`
10839 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10840echo "${ECHO_T}$LIBXML2_INC" >&6; }
10841 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10842echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10843if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10844  echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846  ac_check_lib_save_LIBS=$LIBS
10847LIBS="-lxml2  $LIBS"
10848cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h.  */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h.  */
10854
10855/* Override any GCC internal prototype to avoid an error.
10856   Use char because int might match the return type of a GCC
10857   builtin and then its argument prototype would still apply.  */
10858#ifdef __cplusplus
10859extern "C"
10860#endif
10861char xmlReadFile ();
10862int
10863main ()
10864{
10865return xmlReadFile ();
10866  ;
10867  return 0;
10868}
10869_ACEOF
10870rm -f conftest.$ac_objext conftest$ac_exeext
10871if { (ac_try="$ac_link"
10872case "(($ac_try" in
10873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874  *) ac_try_echo=$ac_try;;
10875esac
10876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877  (eval "$ac_link") 2>conftest.er1
10878  ac_status=$?
10879  grep -v '^ *+' conftest.er1 >conftest.err
10880  rm -f conftest.er1
10881  cat conftest.err >&5
10882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883  (exit $ac_status); } &&
10884	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885  { (case "(($ac_try" in
10886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887  *) ac_try_echo=$ac_try;;
10888esac
10889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890  (eval "$ac_try") 2>&5
10891  ac_status=$?
10892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893  (exit $ac_status); }; } &&
10894	 { ac_try='test -s conftest$ac_exeext'
10895  { (case "(($ac_try" in
10896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897  *) ac_try_echo=$ac_try;;
10898esac
10899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900  (eval "$ac_try") 2>&5
10901  ac_status=$?
10902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903  (exit $ac_status); }; }; then
10904  ac_cv_lib_xml2_xmlReadFile=yes
10905else
10906  echo "$as_me: failed program was:" >&5
10907sed 's/^/| /' conftest.$ac_ext >&5
10908
10909	ac_cv_lib_xml2_xmlReadFile=no
10910fi
10911
10912rm -f core conftest.err conftest.$ac_objext \
10913      conftest$ac_exeext conftest.$ac_ext
10914LIBS=$ac_check_lib_save_LIBS
10915fi
10916{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10917echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10918if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10919
10920cat >>confdefs.h <<\_ACEOF
10921#define CLANG_HAVE_LIBXML 1
10922_ACEOF
10923
10924                                LIBXML2_LIBS="-lxml2"
10925fi
10926
10927fi
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937ac_header_dirent=no
10938for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10939  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10940{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10941echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10943  echo $ECHO_N "(cached) $ECHO_C" >&6
10944else
10945  cat >conftest.$ac_ext <<_ACEOF
10946/* confdefs.h.  */
10947_ACEOF
10948cat confdefs.h >>conftest.$ac_ext
10949cat >>conftest.$ac_ext <<_ACEOF
10950/* end confdefs.h.  */
10951#include <sys/types.h>
10952#include <$ac_hdr>
10953
10954int
10955main ()
10956{
10957if ((DIR *) 0)
10958return 0;
10959  ;
10960  return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext
10964if { (ac_try="$ac_compile"
10965case "(($ac_try" in
10966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967  *) ac_try_echo=$ac_try;;
10968esac
10969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970  (eval "$ac_compile") 2>conftest.er1
10971  ac_status=$?
10972  grep -v '^ *+' conftest.er1 >conftest.err
10973  rm -f conftest.er1
10974  cat conftest.err >&5
10975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976  (exit $ac_status); } &&
10977	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10978  { (case "(($ac_try" in
10979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980  *) ac_try_echo=$ac_try;;
10981esac
10982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983  (eval "$ac_try") 2>&5
10984  ac_status=$?
10985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986  (exit $ac_status); }; } &&
10987	 { ac_try='test -s conftest.$ac_objext'
10988  { (case "(($ac_try" in
10989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990  *) ac_try_echo=$ac_try;;
10991esac
10992eval "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); }; }; then
10997  eval "$as_ac_Header=yes"
10998else
10999  echo "$as_me: failed program was:" >&5
11000sed 's/^/| /' conftest.$ac_ext >&5
11001
11002	eval "$as_ac_Header=no"
11003fi
11004
11005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006fi
11007ac_res=`eval echo '${'$as_ac_Header'}'`
11008	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11009echo "${ECHO_T}$ac_res" >&6; }
11010if test `eval echo '${'$as_ac_Header'}'` = yes; then
11011  cat >>confdefs.h <<_ACEOF
11012#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11013_ACEOF
11014
11015ac_header_dirent=$ac_hdr; break
11016fi
11017
11018done
11019# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11020if test $ac_header_dirent = dirent.h; then
11021  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11022echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11023if test "${ac_cv_search_opendir+set}" = set; then
11024  echo $ECHO_N "(cached) $ECHO_C" >&6
11025else
11026  ac_func_search_save_LIBS=$LIBS
11027cat >conftest.$ac_ext <<_ACEOF
11028/* confdefs.h.  */
11029_ACEOF
11030cat confdefs.h >>conftest.$ac_ext
11031cat >>conftest.$ac_ext <<_ACEOF
11032/* end confdefs.h.  */
11033
11034/* Override any GCC internal prototype to avoid an error.
11035   Use char because int might match the return type of a GCC
11036   builtin and then its argument prototype would still apply.  */
11037#ifdef __cplusplus
11038extern "C"
11039#endif
11040char opendir ();
11041int
11042main ()
11043{
11044return opendir ();
11045  ;
11046  return 0;
11047}
11048_ACEOF
11049for ac_lib in '' dir; do
11050  if test -z "$ac_lib"; then
11051    ac_res="none required"
11052  else
11053    ac_res=-l$ac_lib
11054    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11055  fi
11056  rm -f conftest.$ac_objext conftest$ac_exeext
11057if { (ac_try="$ac_link"
11058case "(($ac_try" in
11059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060  *) ac_try_echo=$ac_try;;
11061esac
11062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063  (eval "$ac_link") 2>conftest.er1
11064  ac_status=$?
11065  grep -v '^ *+' conftest.er1 >conftest.err
11066  rm -f conftest.er1
11067  cat conftest.err >&5
11068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069  (exit $ac_status); } &&
11070	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11071  { (case "(($ac_try" in
11072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073  *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076  (eval "$ac_try") 2>&5
11077  ac_status=$?
11078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079  (exit $ac_status); }; } &&
11080	 { ac_try='test -s conftest$ac_exeext'
11081  { (case "(($ac_try" in
11082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083  *) ac_try_echo=$ac_try;;
11084esac
11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086  (eval "$ac_try") 2>&5
11087  ac_status=$?
11088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089  (exit $ac_status); }; }; then
11090  ac_cv_search_opendir=$ac_res
11091else
11092  echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095
11096fi
11097
11098rm -f core conftest.err conftest.$ac_objext \
11099      conftest$ac_exeext
11100  if test "${ac_cv_search_opendir+set}" = set; then
11101  break
11102fi
11103done
11104if test "${ac_cv_search_opendir+set}" = set; then
11105  :
11106else
11107  ac_cv_search_opendir=no
11108fi
11109rm conftest.$ac_ext
11110LIBS=$ac_func_search_save_LIBS
11111fi
11112{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11113echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11114ac_res=$ac_cv_search_opendir
11115if test "$ac_res" != no; then
11116  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11117
11118fi
11119
11120else
11121  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11122echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11123if test "${ac_cv_search_opendir+set}" = set; then
11124  echo $ECHO_N "(cached) $ECHO_C" >&6
11125else
11126  ac_func_search_save_LIBS=$LIBS
11127cat >conftest.$ac_ext <<_ACEOF
11128/* confdefs.h.  */
11129_ACEOF
11130cat confdefs.h >>conftest.$ac_ext
11131cat >>conftest.$ac_ext <<_ACEOF
11132/* end confdefs.h.  */
11133
11134/* Override any GCC internal prototype to avoid an error.
11135   Use char because int might match the return type of a GCC
11136   builtin and then its argument prototype would still apply.  */
11137#ifdef __cplusplus
11138extern "C"
11139#endif
11140char opendir ();
11141int
11142main ()
11143{
11144return opendir ();
11145  ;
11146  return 0;
11147}
11148_ACEOF
11149for ac_lib in '' x; do
11150  if test -z "$ac_lib"; then
11151    ac_res="none required"
11152  else
11153    ac_res=-l$ac_lib
11154    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11155  fi
11156  rm -f conftest.$ac_objext conftest$ac_exeext
11157if { (ac_try="$ac_link"
11158case "(($ac_try" in
11159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160  *) ac_try_echo=$ac_try;;
11161esac
11162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163  (eval "$ac_link") 2>conftest.er1
11164  ac_status=$?
11165  grep -v '^ *+' conftest.er1 >conftest.err
11166  rm -f conftest.er1
11167  cat conftest.err >&5
11168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169  (exit $ac_status); } &&
11170	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171  { (case "(($ac_try" in
11172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173  *) ac_try_echo=$ac_try;;
11174esac
11175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176  (eval "$ac_try") 2>&5
11177  ac_status=$?
11178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179  (exit $ac_status); }; } &&
11180	 { ac_try='test -s conftest$ac_exeext'
11181  { (case "(($ac_try" in
11182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183  *) ac_try_echo=$ac_try;;
11184esac
11185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186  (eval "$ac_try") 2>&5
11187  ac_status=$?
11188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189  (exit $ac_status); }; }; then
11190  ac_cv_search_opendir=$ac_res
11191else
11192  echo "$as_me: failed program was:" >&5
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
11195
11196fi
11197
11198rm -f core conftest.err conftest.$ac_objext \
11199      conftest$ac_exeext
11200  if test "${ac_cv_search_opendir+set}" = set; then
11201  break
11202fi
11203done
11204if test "${ac_cv_search_opendir+set}" = set; then
11205  :
11206else
11207  ac_cv_search_opendir=no
11208fi
11209rm conftest.$ac_ext
11210LIBS=$ac_func_search_save_LIBS
11211fi
11212{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11213echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11214ac_res=$ac_cv_search_opendir
11215if test "$ac_res" != no; then
11216  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11217
11218fi
11219
11220fi
11221
11222{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11223echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11224if test "${ac_cv_header_mmap_anon+set}" = set; then
11225  echo $ECHO_N "(cached) $ECHO_C" >&6
11226else
11227   ac_ext=c
11228ac_cpp='$CPP $CPPFLAGS'
11229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11231ac_compiler_gnu=$ac_cv_c_compiler_gnu
11232
11233  cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h.  */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h.  */
11239#include <sys/mman.h>
11240#include <unistd.h>
11241#include <fcntl.h>
11242int
11243main ()
11244{
11245mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11246  ;
11247  return 0;
11248}
11249_ACEOF
11250rm -f conftest.$ac_objext
11251if { (ac_try="$ac_compile"
11252case "(($ac_try" in
11253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254  *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257  (eval "$ac_compile") 2>conftest.er1
11258  ac_status=$?
11259  grep -v '^ *+' conftest.er1 >conftest.err
11260  rm -f conftest.er1
11261  cat conftest.err >&5
11262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263  (exit $ac_status); } &&
11264	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265  { (case "(($ac_try" in
11266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267  *) ac_try_echo=$ac_try;;
11268esac
11269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270  (eval "$ac_try") 2>&5
11271  ac_status=$?
11272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273  (exit $ac_status); }; } &&
11274	 { ac_try='test -s conftest.$ac_objext'
11275  { (case "(($ac_try" in
11276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277  *) ac_try_echo=$ac_try;;
11278esac
11279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280  (eval "$ac_try") 2>&5
11281  ac_status=$?
11282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283  (exit $ac_status); }; }; then
11284  ac_cv_header_mmap_anon=yes
11285else
11286  echo "$as_me: failed program was:" >&5
11287sed 's/^/| /' conftest.$ac_ext >&5
11288
11289	ac_cv_header_mmap_anon=no
11290fi
11291
11292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293  ac_ext=c
11294ac_cpp='$CPP $CPPFLAGS'
11295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11297ac_compiler_gnu=$ac_cv_c_compiler_gnu
11298
11299
11300fi
11301{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11302echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11303if test "$ac_cv_header_mmap_anon" = yes; then
11304
11305cat >>confdefs.h <<\_ACEOF
11306#define HAVE_MMAP_ANONYMOUS 1
11307_ACEOF
11308
11309fi
11310
11311{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11312echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11313if test "${ac_cv_header_stat_broken+set}" = set; then
11314  echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316  cat >conftest.$ac_ext <<_ACEOF
11317/* confdefs.h.  */
11318_ACEOF
11319cat confdefs.h >>conftest.$ac_ext
11320cat >>conftest.$ac_ext <<_ACEOF
11321/* end confdefs.h.  */
11322#include <sys/types.h>
11323#include <sys/stat.h>
11324
11325#if defined S_ISBLK && defined S_IFDIR
11326# if S_ISBLK (S_IFDIR)
11327You lose.
11328# endif
11329#endif
11330
11331#if defined S_ISBLK && defined S_IFCHR
11332# if S_ISBLK (S_IFCHR)
11333You lose.
11334# endif
11335#endif
11336
11337#if defined S_ISLNK && defined S_IFREG
11338# if S_ISLNK (S_IFREG)
11339You lose.
11340# endif
11341#endif
11342
11343#if defined S_ISSOCK && defined S_IFREG
11344# if S_ISSOCK (S_IFREG)
11345You lose.
11346# endif
11347#endif
11348
11349_ACEOF
11350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11351  $EGREP "You lose" >/dev/null 2>&1; then
11352  ac_cv_header_stat_broken=yes
11353else
11354  ac_cv_header_stat_broken=no
11355fi
11356rm -f conftest*
11357
11358fi
11359{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11360echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11361if test $ac_cv_header_stat_broken = yes; then
11362
11363cat >>confdefs.h <<\_ACEOF
11364#define STAT_MACROS_BROKEN 1
11365_ACEOF
11366
11367fi
11368
11369{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11370echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11371if test "${ac_cv_header_sys_wait_h+set}" = set; then
11372  echo $ECHO_N "(cached) $ECHO_C" >&6
11373else
11374  cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h.  */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h.  */
11380#include <sys/types.h>
11381#include <sys/wait.h>
11382#ifndef WEXITSTATUS
11383# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11384#endif
11385#ifndef WIFEXITED
11386# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11387#endif
11388
11389int
11390main ()
11391{
11392  int s;
11393  wait (&s);
11394  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11395  ;
11396  return 0;
11397}
11398_ACEOF
11399rm -f conftest.$ac_objext
11400if { (ac_try="$ac_compile"
11401case "(($ac_try" in
11402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403  *) ac_try_echo=$ac_try;;
11404esac
11405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406  (eval "$ac_compile") 2>conftest.er1
11407  ac_status=$?
11408  grep -v '^ *+' conftest.er1 >conftest.err
11409  rm -f conftest.er1
11410  cat conftest.err >&5
11411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412  (exit $ac_status); } &&
11413	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11414  { (case "(($ac_try" in
11415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416  *) ac_try_echo=$ac_try;;
11417esac
11418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419  (eval "$ac_try") 2>&5
11420  ac_status=$?
11421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422  (exit $ac_status); }; } &&
11423	 { ac_try='test -s conftest.$ac_objext'
11424  { (case "(($ac_try" in
11425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426  *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429  (eval "$ac_try") 2>&5
11430  ac_status=$?
11431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432  (exit $ac_status); }; }; then
11433  ac_cv_header_sys_wait_h=yes
11434else
11435  echo "$as_me: failed program was:" >&5
11436sed 's/^/| /' conftest.$ac_ext >&5
11437
11438	ac_cv_header_sys_wait_h=no
11439fi
11440
11441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442fi
11443{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11444echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11445if test $ac_cv_header_sys_wait_h = yes; then
11446
11447cat >>confdefs.h <<\_ACEOF
11448#define HAVE_SYS_WAIT_H 1
11449_ACEOF
11450
11451fi
11452
11453{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11454echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11455if test "${ac_cv_header_time+set}" = set; then
11456  echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458  cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h.  */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h.  */
11464#include <sys/types.h>
11465#include <sys/time.h>
11466#include <time.h>
11467
11468int
11469main ()
11470{
11471if ((struct tm *) 0)
11472return 0;
11473  ;
11474  return 0;
11475}
11476_ACEOF
11477rm -f conftest.$ac_objext
11478if { (ac_try="$ac_compile"
11479case "(($ac_try" in
11480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481  *) ac_try_echo=$ac_try;;
11482esac
11483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484  (eval "$ac_compile") 2>conftest.er1
11485  ac_status=$?
11486  grep -v '^ *+' conftest.er1 >conftest.err
11487  rm -f conftest.er1
11488  cat conftest.err >&5
11489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490  (exit $ac_status); } &&
11491	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492  { (case "(($ac_try" in
11493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494  *) ac_try_echo=$ac_try;;
11495esac
11496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497  (eval "$ac_try") 2>&5
11498  ac_status=$?
11499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500  (exit $ac_status); }; } &&
11501	 { ac_try='test -s conftest.$ac_objext'
11502  { (case "(($ac_try" in
11503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504  *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507  (eval "$ac_try") 2>&5
11508  ac_status=$?
11509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510  (exit $ac_status); }; }; then
11511  ac_cv_header_time=yes
11512else
11513  echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
11515
11516	ac_cv_header_time=no
11517fi
11518
11519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520fi
11521{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11522echo "${ECHO_T}$ac_cv_header_time" >&6; }
11523if test $ac_cv_header_time = yes; then
11524
11525cat >>confdefs.h <<\_ACEOF
11526#define TIME_WITH_SYS_TIME 1
11527_ACEOF
11528
11529fi
11530
11531
11532ac_ext=cpp
11533ac_cpp='$CXXCPP $CPPFLAGS'
11534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11537
11538ac_ext=cpp
11539ac_cpp='$CXXCPP $CPPFLAGS'
11540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11543{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11544echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11545if test -z "$CXXCPP"; then
11546  if test "${ac_cv_prog_CXXCPP+set}" = set; then
11547  echo $ECHO_N "(cached) $ECHO_C" >&6
11548else
11549      # Double quotes because CXXCPP needs to be expanded
11550    for CXXCPP in "$CXX -E" "/lib/cpp"
11551    do
11552      ac_preproc_ok=false
11553for ac_cxx_preproc_warn_flag in '' yes
11554do
11555  # Use a header file that comes with gcc, so configuring glibc
11556  # with a fresh cross-compiler works.
11557  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11558  # <limits.h> exists even on freestanding compilers.
11559  # On the NeXT, cc -E runs the code through the compiler's parser,
11560  # not just through cpp. "Syntax error" is here to catch this case.
11561  cat >conftest.$ac_ext <<_ACEOF
11562/* confdefs.h.  */
11563_ACEOF
11564cat confdefs.h >>conftest.$ac_ext
11565cat >>conftest.$ac_ext <<_ACEOF
11566/* end confdefs.h.  */
11567#ifdef __STDC__
11568# include <limits.h>
11569#else
11570# include <assert.h>
11571#endif
11572		     Syntax error
11573_ACEOF
11574if { (ac_try="$ac_cpp conftest.$ac_ext"
11575case "(($ac_try" in
11576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577  *) ac_try_echo=$ac_try;;
11578esac
11579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11581  ac_status=$?
11582  grep -v '^ *+' conftest.er1 >conftest.err
11583  rm -f conftest.er1
11584  cat conftest.err >&5
11585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586  (exit $ac_status); } >/dev/null; then
11587  if test -s conftest.err; then
11588    ac_cpp_err=$ac_cxx_preproc_warn_flag
11589    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11590  else
11591    ac_cpp_err=
11592  fi
11593else
11594  ac_cpp_err=yes
11595fi
11596if test -z "$ac_cpp_err"; then
11597  :
11598else
11599  echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
11601
11602  # Broken: fails on valid input.
11603continue
11604fi
11605
11606rm -f conftest.err conftest.$ac_ext
11607
11608  # OK, works on sane cases.  Now check whether nonexistent headers
11609  # can be detected and how.
11610  cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h.  */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h.  */
11616#include <ac_nonexistent.h>
11617_ACEOF
11618if { (ac_try="$ac_cpp conftest.$ac_ext"
11619case "(($ac_try" in
11620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621  *) ac_try_echo=$ac_try;;
11622esac
11623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11625  ac_status=$?
11626  grep -v '^ *+' conftest.er1 >conftest.err
11627  rm -f conftest.er1
11628  cat conftest.err >&5
11629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630  (exit $ac_status); } >/dev/null; then
11631  if test -s conftest.err; then
11632    ac_cpp_err=$ac_cxx_preproc_warn_flag
11633    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11634  else
11635    ac_cpp_err=
11636  fi
11637else
11638  ac_cpp_err=yes
11639fi
11640if test -z "$ac_cpp_err"; then
11641  # Broken: success on invalid input.
11642continue
11643else
11644  echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
11647  # Passes both tests.
11648ac_preproc_ok=:
11649break
11650fi
11651
11652rm -f conftest.err conftest.$ac_ext
11653
11654done
11655# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11656rm -f conftest.err conftest.$ac_ext
11657if $ac_preproc_ok; then
11658  break
11659fi
11660
11661    done
11662    ac_cv_prog_CXXCPP=$CXXCPP
11663
11664fi
11665  CXXCPP=$ac_cv_prog_CXXCPP
11666else
11667  ac_cv_prog_CXXCPP=$CXXCPP
11668fi
11669{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
11670echo "${ECHO_T}$CXXCPP" >&6; }
11671ac_preproc_ok=false
11672for ac_cxx_preproc_warn_flag in '' yes
11673do
11674  # Use a header file that comes with gcc, so configuring glibc
11675  # with a fresh cross-compiler works.
11676  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677  # <limits.h> exists even on freestanding compilers.
11678  # On the NeXT, cc -E runs the code through the compiler's parser,
11679  # not just through cpp. "Syntax error" is here to catch this case.
11680  cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h.  */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h.  */
11686#ifdef __STDC__
11687# include <limits.h>
11688#else
11689# include <assert.h>
11690#endif
11691		     Syntax error
11692_ACEOF
11693if { (ac_try="$ac_cpp conftest.$ac_ext"
11694case "(($ac_try" in
11695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696  *) ac_try_echo=$ac_try;;
11697esac
11698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11700  ac_status=$?
11701  grep -v '^ *+' conftest.er1 >conftest.err
11702  rm -f conftest.er1
11703  cat conftest.err >&5
11704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705  (exit $ac_status); } >/dev/null; then
11706  if test -s conftest.err; then
11707    ac_cpp_err=$ac_cxx_preproc_warn_flag
11708    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11709  else
11710    ac_cpp_err=
11711  fi
11712else
11713  ac_cpp_err=yes
11714fi
11715if test -z "$ac_cpp_err"; then
11716  :
11717else
11718  echo "$as_me: failed program was:" >&5
11719sed 's/^/| /' conftest.$ac_ext >&5
11720
11721  # Broken: fails on valid input.
11722continue
11723fi
11724
11725rm -f conftest.err conftest.$ac_ext
11726
11727  # OK, works on sane cases.  Now check whether nonexistent headers
11728  # can be detected and how.
11729  cat >conftest.$ac_ext <<_ACEOF
11730/* confdefs.h.  */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h.  */
11735#include <ac_nonexistent.h>
11736_ACEOF
11737if { (ac_try="$ac_cpp conftest.$ac_ext"
11738case "(($ac_try" in
11739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740  *) ac_try_echo=$ac_try;;
11741esac
11742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743  (eval "$ac_cpp conftest.$ac_ext") 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); } >/dev/null; then
11750  if test -s conftest.err; then
11751    ac_cpp_err=$ac_cxx_preproc_warn_flag
11752    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11753  else
11754    ac_cpp_err=
11755  fi
11756else
11757  ac_cpp_err=yes
11758fi
11759if test -z "$ac_cpp_err"; then
11760  # Broken: success on invalid input.
11761continue
11762else
11763  echo "$as_me: failed program was:" >&5
11764sed 's/^/| /' conftest.$ac_ext >&5
11765
11766  # Passes both tests.
11767ac_preproc_ok=:
11768break
11769fi
11770
11771rm -f conftest.err conftest.$ac_ext
11772
11773done
11774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11775rm -f conftest.err conftest.$ac_ext
11776if $ac_preproc_ok; then
11777  :
11778else
11779  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11780See \`config.log' for more details." >&5
11781echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11782See \`config.log' for more details." >&2;}
11783   { (exit 1); exit 1; }; }
11784fi
11785
11786ac_ext=cpp
11787ac_cpp='$CXXCPP $CPPFLAGS'
11788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11791
11792
11793
11794for ac_header in cxxabi.h
11795do
11796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801  echo $ECHO_N "(cached) $ECHO_C" >&6
11802fi
11803ac_res=`eval echo '${'$as_ac_Header'}'`
11804	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11805echo "${ECHO_T}$ac_res" >&6; }
11806else
11807  # Is the header compilable?
11808{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11810cat >conftest.$ac_ext <<_ACEOF
11811/* confdefs.h.  */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h.  */
11816$ac_includes_default
11817#include <$ac_header>
11818_ACEOF
11819rm -f conftest.$ac_objext
11820if { (ac_try="$ac_compile"
11821case "(($ac_try" in
11822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823  *) ac_try_echo=$ac_try;;
11824esac
11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826  (eval "$ac_compile") 2>conftest.er1
11827  ac_status=$?
11828  grep -v '^ *+' conftest.er1 >conftest.err
11829  rm -f conftest.er1
11830  cat conftest.err >&5
11831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832  (exit $ac_status); } &&
11833	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11834  { (case "(($ac_try" in
11835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836  *) ac_try_echo=$ac_try;;
11837esac
11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839  (eval "$ac_try") 2>&5
11840  ac_status=$?
11841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842  (exit $ac_status); }; } &&
11843	 { ac_try='test -s conftest.$ac_objext'
11844  { (case "(($ac_try" in
11845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846  *) ac_try_echo=$ac_try;;
11847esac
11848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849  (eval "$ac_try") 2>&5
11850  ac_status=$?
11851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852  (exit $ac_status); }; }; then
11853  ac_header_compiler=yes
11854else
11855  echo "$as_me: failed program was:" >&5
11856sed 's/^/| /' conftest.$ac_ext >&5
11857
11858	ac_header_compiler=no
11859fi
11860
11861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863echo "${ECHO_T}$ac_header_compiler" >&6; }
11864
11865# Is the header present?
11866{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11868cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h.  */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h.  */
11874#include <$ac_header>
11875_ACEOF
11876if { (ac_try="$ac_cpp conftest.$ac_ext"
11877case "(($ac_try" in
11878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879  *) ac_try_echo=$ac_try;;
11880esac
11881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11883  ac_status=$?
11884  grep -v '^ *+' conftest.er1 >conftest.err
11885  rm -f conftest.er1
11886  cat conftest.err >&5
11887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888  (exit $ac_status); } >/dev/null; then
11889  if test -s conftest.err; then
11890    ac_cpp_err=$ac_cxx_preproc_warn_flag
11891    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11892  else
11893    ac_cpp_err=
11894  fi
11895else
11896  ac_cpp_err=yes
11897fi
11898if test -z "$ac_cpp_err"; then
11899  ac_header_preproc=yes
11900else
11901  echo "$as_me: failed program was:" >&5
11902sed 's/^/| /' conftest.$ac_ext >&5
11903
11904  ac_header_preproc=no
11905fi
11906
11907rm -f conftest.err conftest.$ac_ext
11908{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11909echo "${ECHO_T}$ac_header_preproc" >&6; }
11910
11911# So?  What about this header?
11912case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11913  yes:no: )
11914    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11915echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11916    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11917echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11918    ac_header_preproc=yes
11919    ;;
11920  no:yes:* )
11921    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11922echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11923    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11924echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11925    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11926echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11927    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11928echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11929    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11931    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11932echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11933    ( cat <<\_ASBOX
11934## ------------------------------------ ##
11935## Report this to http://llvm.org/bugs/ ##
11936## ------------------------------------ ##
11937_ASBOX
11938     ) | sed "s/^/$as_me: WARNING:     /" >&2
11939    ;;
11940esac
11941{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944  echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946  eval "$as_ac_Header=\$ac_header_preproc"
11947fi
11948ac_res=`eval echo '${'$as_ac_Header'}'`
11949	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11950echo "${ECHO_T}$ac_res" >&6; }
11951
11952fi
11953if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954  cat >>confdefs.h <<_ACEOF
11955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956_ACEOF
11957
11958fi
11959
11960done
11961
11962ac_ext=c
11963ac_cpp='$CPP $CPPFLAGS'
11964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967
11968
11969
11970
11971
11972
11973for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11974do
11975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11977  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980  echo $ECHO_N "(cached) $ECHO_C" >&6
11981fi
11982ac_res=`eval echo '${'$as_ac_Header'}'`
11983	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11984echo "${ECHO_T}$ac_res" >&6; }
11985else
11986  # Is the header compilable?
11987{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11989cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h.  */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h.  */
11995$ac_includes_default
11996#include <$ac_header>
11997_ACEOF
11998rm -f conftest.$ac_objext
11999if { (ac_try="$ac_compile"
12000case "(($ac_try" in
12001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002  *) ac_try_echo=$ac_try;;
12003esac
12004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005  (eval "$ac_compile") 2>conftest.er1
12006  ac_status=$?
12007  grep -v '^ *+' conftest.er1 >conftest.err
12008  rm -f conftest.er1
12009  cat conftest.err >&5
12010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011  (exit $ac_status); } &&
12012	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12013  { (case "(($ac_try" in
12014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015  *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018  (eval "$ac_try") 2>&5
12019  ac_status=$?
12020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021  (exit $ac_status); }; } &&
12022	 { ac_try='test -s conftest.$ac_objext'
12023  { (case "(($ac_try" in
12024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025  *) ac_try_echo=$ac_try;;
12026esac
12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028  (eval "$ac_try") 2>&5
12029  ac_status=$?
12030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031  (exit $ac_status); }; }; then
12032  ac_header_compiler=yes
12033else
12034  echo "$as_me: failed program was:" >&5
12035sed 's/^/| /' conftest.$ac_ext >&5
12036
12037	ac_header_compiler=no
12038fi
12039
12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12042echo "${ECHO_T}$ac_header_compiler" >&6; }
12043
12044# Is the header present?
12045{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12047cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h.  */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h.  */
12053#include <$ac_header>
12054_ACEOF
12055if { (ac_try="$ac_cpp conftest.$ac_ext"
12056case "(($ac_try" in
12057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058  *) ac_try_echo=$ac_try;;
12059esac
12060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12062  ac_status=$?
12063  grep -v '^ *+' conftest.er1 >conftest.err
12064  rm -f conftest.er1
12065  cat conftest.err >&5
12066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067  (exit $ac_status); } >/dev/null; then
12068  if test -s conftest.err; then
12069    ac_cpp_err=$ac_c_preproc_warn_flag
12070    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12071  else
12072    ac_cpp_err=
12073  fi
12074else
12075  ac_cpp_err=yes
12076fi
12077if test -z "$ac_cpp_err"; then
12078  ac_header_preproc=yes
12079else
12080  echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083  ac_header_preproc=no
12084fi
12085
12086rm -f conftest.err conftest.$ac_ext
12087{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12088echo "${ECHO_T}$ac_header_preproc" >&6; }
12089
12090# So?  What about this header?
12091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12092  yes:no: )
12093    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12095    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12097    ac_header_preproc=yes
12098    ;;
12099  no:yes:* )
12100    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12102    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12103echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12104    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12106    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12107echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12108    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12110    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12112    ( cat <<\_ASBOX
12113## ------------------------------------ ##
12114## Report this to http://llvm.org/bugs/ ##
12115## ------------------------------------ ##
12116_ASBOX
12117     ) | sed "s/^/$as_me: WARNING:     /" >&2
12118    ;;
12119esac
12120{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123  echo $ECHO_N "(cached) $ECHO_C" >&6
12124else
12125  eval "$as_ac_Header=\$ac_header_preproc"
12126fi
12127ac_res=`eval echo '${'$as_ac_Header'}'`
12128	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12129echo "${ECHO_T}$ac_res" >&6; }
12130
12131fi
12132if test `eval echo '${'$as_ac_Header'}'` = yes; then
12133  cat >>confdefs.h <<_ACEOF
12134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12135_ACEOF
12136
12137fi
12138
12139done
12140
12141
12142
12143
12144
12145
12146
12147for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12148do
12149as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154  echo $ECHO_N "(cached) $ECHO_C" >&6
12155fi
12156ac_res=`eval echo '${'$as_ac_Header'}'`
12157	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12158echo "${ECHO_T}$ac_res" >&6; }
12159else
12160  # Is the header compilable?
12161{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12162echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12163cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h.  */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h.  */
12169$ac_includes_default
12170#include <$ac_header>
12171_ACEOF
12172rm -f conftest.$ac_objext
12173if { (ac_try="$ac_compile"
12174case "(($ac_try" in
12175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176  *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179  (eval "$ac_compile") 2>conftest.er1
12180  ac_status=$?
12181  grep -v '^ *+' conftest.er1 >conftest.err
12182  rm -f conftest.er1
12183  cat conftest.err >&5
12184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185  (exit $ac_status); } &&
12186	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187  { (case "(($ac_try" in
12188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189  *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192  (eval "$ac_try") 2>&5
12193  ac_status=$?
12194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195  (exit $ac_status); }; } &&
12196	 { ac_try='test -s conftest.$ac_objext'
12197  { (case "(($ac_try" in
12198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199  *) ac_try_echo=$ac_try;;
12200esac
12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202  (eval "$ac_try") 2>&5
12203  ac_status=$?
12204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205  (exit $ac_status); }; }; then
12206  ac_header_compiler=yes
12207else
12208  echo "$as_me: failed program was:" >&5
12209sed 's/^/| /' conftest.$ac_ext >&5
12210
12211	ac_header_compiler=no
12212fi
12213
12214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12216echo "${ECHO_T}$ac_header_compiler" >&6; }
12217
12218# Is the header present?
12219{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12220echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12221cat >conftest.$ac_ext <<_ACEOF
12222/* confdefs.h.  */
12223_ACEOF
12224cat confdefs.h >>conftest.$ac_ext
12225cat >>conftest.$ac_ext <<_ACEOF
12226/* end confdefs.h.  */
12227#include <$ac_header>
12228_ACEOF
12229if { (ac_try="$ac_cpp conftest.$ac_ext"
12230case "(($ac_try" in
12231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232  *) ac_try_echo=$ac_try;;
12233esac
12234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12236  ac_status=$?
12237  grep -v '^ *+' conftest.er1 >conftest.err
12238  rm -f conftest.er1
12239  cat conftest.err >&5
12240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241  (exit $ac_status); } >/dev/null; then
12242  if test -s conftest.err; then
12243    ac_cpp_err=$ac_c_preproc_warn_flag
12244    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12245  else
12246    ac_cpp_err=
12247  fi
12248else
12249  ac_cpp_err=yes
12250fi
12251if test -z "$ac_cpp_err"; then
12252  ac_header_preproc=yes
12253else
12254  echo "$as_me: failed program was:" >&5
12255sed 's/^/| /' conftest.$ac_ext >&5
12256
12257  ac_header_preproc=no
12258fi
12259
12260rm -f conftest.err conftest.$ac_ext
12261{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12262echo "${ECHO_T}$ac_header_preproc" >&6; }
12263
12264# So?  What about this header?
12265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12266  yes:no: )
12267    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12269    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12271    ac_header_preproc=yes
12272    ;;
12273  no:yes:* )
12274    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12276    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12277echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12278    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12280    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12281echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12282    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12284    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12286    ( cat <<\_ASBOX
12287## ------------------------------------ ##
12288## Report this to http://llvm.org/bugs/ ##
12289## ------------------------------------ ##
12290_ASBOX
12291     ) | sed "s/^/$as_me: WARNING:     /" >&2
12292    ;;
12293esac
12294{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12297  echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299  eval "$as_ac_Header=\$ac_header_preproc"
12300fi
12301ac_res=`eval echo '${'$as_ac_Header'}'`
12302	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12303echo "${ECHO_T}$ac_res" >&6; }
12304
12305fi
12306if test `eval echo '${'$as_ac_Header'}'` = yes; then
12307  cat >>confdefs.h <<_ACEOF
12308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12309_ACEOF
12310
12311fi
12312
12313done
12314
12315
12316for ac_header in utime.h
12317do
12318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12320  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12323  echo $ECHO_N "(cached) $ECHO_C" >&6
12324fi
12325ac_res=`eval echo '${'$as_ac_Header'}'`
12326	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12327echo "${ECHO_T}$ac_res" >&6; }
12328else
12329  # Is the header compilable?
12330{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12332cat >conftest.$ac_ext <<_ACEOF
12333/* confdefs.h.  */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h.  */
12338$ac_includes_default
12339#include <$ac_header>
12340_ACEOF
12341rm -f conftest.$ac_objext
12342if { (ac_try="$ac_compile"
12343case "(($ac_try" in
12344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345  *) ac_try_echo=$ac_try;;
12346esac
12347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348  (eval "$ac_compile") 2>conftest.er1
12349  ac_status=$?
12350  grep -v '^ *+' conftest.er1 >conftest.err
12351  rm -f conftest.er1
12352  cat conftest.err >&5
12353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354  (exit $ac_status); } &&
12355	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12356  { (case "(($ac_try" in
12357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358  *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361  (eval "$ac_try") 2>&5
12362  ac_status=$?
12363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364  (exit $ac_status); }; } &&
12365	 { ac_try='test -s conftest.$ac_objext'
12366  { (case "(($ac_try" in
12367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368  *) ac_try_echo=$ac_try;;
12369esac
12370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371  (eval "$ac_try") 2>&5
12372  ac_status=$?
12373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374  (exit $ac_status); }; }; then
12375  ac_header_compiler=yes
12376else
12377  echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380	ac_header_compiler=no
12381fi
12382
12383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12385echo "${ECHO_T}$ac_header_compiler" >&6; }
12386
12387# Is the header present?
12388{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12390cat >conftest.$ac_ext <<_ACEOF
12391/* confdefs.h.  */
12392_ACEOF
12393cat confdefs.h >>conftest.$ac_ext
12394cat >>conftest.$ac_ext <<_ACEOF
12395/* end confdefs.h.  */
12396#include <$ac_header>
12397_ACEOF
12398if { (ac_try="$ac_cpp conftest.$ac_ext"
12399case "(($ac_try" in
12400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401  *) ac_try_echo=$ac_try;;
12402esac
12403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12405  ac_status=$?
12406  grep -v '^ *+' conftest.er1 >conftest.err
12407  rm -f conftest.er1
12408  cat conftest.err >&5
12409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410  (exit $ac_status); } >/dev/null; then
12411  if test -s conftest.err; then
12412    ac_cpp_err=$ac_c_preproc_warn_flag
12413    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12414  else
12415    ac_cpp_err=
12416  fi
12417else
12418  ac_cpp_err=yes
12419fi
12420if test -z "$ac_cpp_err"; then
12421  ac_header_preproc=yes
12422else
12423  echo "$as_me: failed program was:" >&5
12424sed 's/^/| /' conftest.$ac_ext >&5
12425
12426  ac_header_preproc=no
12427fi
12428
12429rm -f conftest.err conftest.$ac_ext
12430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12431echo "${ECHO_T}$ac_header_preproc" >&6; }
12432
12433# So?  What about this header?
12434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12435  yes:no: )
12436    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12438    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12440    ac_header_preproc=yes
12441    ;;
12442  no:yes:* )
12443    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12445    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12446echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12447    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12449    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12450echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12451    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12453    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12455    ( cat <<\_ASBOX
12456## ------------------------------------ ##
12457## Report this to http://llvm.org/bugs/ ##
12458## ------------------------------------ ##
12459_ASBOX
12460     ) | sed "s/^/$as_me: WARNING:     /" >&2
12461    ;;
12462esac
12463{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12466  echo $ECHO_N "(cached) $ECHO_C" >&6
12467else
12468  eval "$as_ac_Header=\$ac_header_preproc"
12469fi
12470ac_res=`eval echo '${'$as_ac_Header'}'`
12471	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12472echo "${ECHO_T}$ac_res" >&6; }
12473
12474fi
12475if test `eval echo '${'$as_ac_Header'}'` = yes; then
12476  cat >>confdefs.h <<_ACEOF
12477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12478_ACEOF
12479
12480fi
12481
12482done
12483
12484
12485
12486
12487
12488
12489for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12490do
12491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12493  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12496  echo $ECHO_N "(cached) $ECHO_C" >&6
12497fi
12498ac_res=`eval echo '${'$as_ac_Header'}'`
12499	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12500echo "${ECHO_T}$ac_res" >&6; }
12501else
12502  # Is the header compilable?
12503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12505cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h.  */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h.  */
12511$ac_includes_default
12512#include <$ac_header>
12513_ACEOF
12514rm -f conftest.$ac_objext
12515if { (ac_try="$ac_compile"
12516case "(($ac_try" in
12517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518  *) ac_try_echo=$ac_try;;
12519esac
12520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521  (eval "$ac_compile") 2>conftest.er1
12522  ac_status=$?
12523  grep -v '^ *+' conftest.er1 >conftest.err
12524  rm -f conftest.er1
12525  cat conftest.err >&5
12526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527  (exit $ac_status); } &&
12528	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529  { (case "(($ac_try" in
12530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531  *) ac_try_echo=$ac_try;;
12532esac
12533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534  (eval "$ac_try") 2>&5
12535  ac_status=$?
12536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537  (exit $ac_status); }; } &&
12538	 { ac_try='test -s conftest.$ac_objext'
12539  { (case "(($ac_try" in
12540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541  *) ac_try_echo=$ac_try;;
12542esac
12543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544  (eval "$ac_try") 2>&5
12545  ac_status=$?
12546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547  (exit $ac_status); }; }; then
12548  ac_header_compiler=yes
12549else
12550  echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553	ac_header_compiler=no
12554fi
12555
12556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12558echo "${ECHO_T}$ac_header_compiler" >&6; }
12559
12560# Is the header present?
12561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12563cat >conftest.$ac_ext <<_ACEOF
12564/* confdefs.h.  */
12565_ACEOF
12566cat confdefs.h >>conftest.$ac_ext
12567cat >>conftest.$ac_ext <<_ACEOF
12568/* end confdefs.h.  */
12569#include <$ac_header>
12570_ACEOF
12571if { (ac_try="$ac_cpp conftest.$ac_ext"
12572case "(($ac_try" in
12573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574  *) ac_try_echo=$ac_try;;
12575esac
12576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12578  ac_status=$?
12579  grep -v '^ *+' conftest.er1 >conftest.err
12580  rm -f conftest.er1
12581  cat conftest.err >&5
12582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583  (exit $ac_status); } >/dev/null; then
12584  if test -s conftest.err; then
12585    ac_cpp_err=$ac_c_preproc_warn_flag
12586    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12587  else
12588    ac_cpp_err=
12589  fi
12590else
12591  ac_cpp_err=yes
12592fi
12593if test -z "$ac_cpp_err"; then
12594  ac_header_preproc=yes
12595else
12596  echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599  ac_header_preproc=no
12600fi
12601
12602rm -f conftest.err conftest.$ac_ext
12603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12604echo "${ECHO_T}$ac_header_preproc" >&6; }
12605
12606# So?  What about this header?
12607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12608  yes:no: )
12609    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12611    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12613    ac_header_preproc=yes
12614    ;;
12615  no:yes:* )
12616    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12618    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12619echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12620    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12622    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12623echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12626    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12628    ( cat <<\_ASBOX
12629## ------------------------------------ ##
12630## Report this to http://llvm.org/bugs/ ##
12631## ------------------------------------ ##
12632_ASBOX
12633     ) | sed "s/^/$as_me: WARNING:     /" >&2
12634    ;;
12635esac
12636{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12639  echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641  eval "$as_ac_Header=\$ac_header_preproc"
12642fi
12643ac_res=`eval echo '${'$as_ac_Header'}'`
12644	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12645echo "${ECHO_T}$ac_res" >&6; }
12646
12647fi
12648if test `eval echo '${'$as_ac_Header'}'` = yes; then
12649  cat >>confdefs.h <<_ACEOF
12650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12651_ACEOF
12652
12653fi
12654
12655done
12656
12657
12658
12659
12660for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12661do
12662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12664  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12667  echo $ECHO_N "(cached) $ECHO_C" >&6
12668fi
12669ac_res=`eval echo '${'$as_ac_Header'}'`
12670	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12671echo "${ECHO_T}$ac_res" >&6; }
12672else
12673  # Is the header compilable?
12674{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12676cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h.  */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h.  */
12682$ac_includes_default
12683#include <$ac_header>
12684_ACEOF
12685rm -f conftest.$ac_objext
12686if { (ac_try="$ac_compile"
12687case "(($ac_try" in
12688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689  *) ac_try_echo=$ac_try;;
12690esac
12691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692  (eval "$ac_compile") 2>conftest.er1
12693  ac_status=$?
12694  grep -v '^ *+' conftest.er1 >conftest.err
12695  rm -f conftest.er1
12696  cat conftest.err >&5
12697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698  (exit $ac_status); } &&
12699	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700  { (case "(($ac_try" in
12701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702  *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705  (eval "$ac_try") 2>&5
12706  ac_status=$?
12707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708  (exit $ac_status); }; } &&
12709	 { ac_try='test -s conftest.$ac_objext'
12710  { (case "(($ac_try" in
12711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712  *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715  (eval "$ac_try") 2>&5
12716  ac_status=$?
12717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718  (exit $ac_status); }; }; then
12719  ac_header_compiler=yes
12720else
12721  echo "$as_me: failed program was:" >&5
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
12724	ac_header_compiler=no
12725fi
12726
12727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12729echo "${ECHO_T}$ac_header_compiler" >&6; }
12730
12731# Is the header present?
12732{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12733echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12734cat >conftest.$ac_ext <<_ACEOF
12735/* confdefs.h.  */
12736_ACEOF
12737cat confdefs.h >>conftest.$ac_ext
12738cat >>conftest.$ac_ext <<_ACEOF
12739/* end confdefs.h.  */
12740#include <$ac_header>
12741_ACEOF
12742if { (ac_try="$ac_cpp conftest.$ac_ext"
12743case "(($ac_try" in
12744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745  *) ac_try_echo=$ac_try;;
12746esac
12747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12749  ac_status=$?
12750  grep -v '^ *+' conftest.er1 >conftest.err
12751  rm -f conftest.er1
12752  cat conftest.err >&5
12753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754  (exit $ac_status); } >/dev/null; then
12755  if test -s conftest.err; then
12756    ac_cpp_err=$ac_c_preproc_warn_flag
12757    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12758  else
12759    ac_cpp_err=
12760  fi
12761else
12762  ac_cpp_err=yes
12763fi
12764if test -z "$ac_cpp_err"; then
12765  ac_header_preproc=yes
12766else
12767  echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770  ac_header_preproc=no
12771fi
12772
12773rm -f conftest.err conftest.$ac_ext
12774{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12775echo "${ECHO_T}$ac_header_preproc" >&6; }
12776
12777# So?  What about this header?
12778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12779  yes:no: )
12780    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12784    ac_header_preproc=yes
12785    ;;
12786  no:yes:* )
12787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12789    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12790echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12791    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12793    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12794echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12797    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12799    ( cat <<\_ASBOX
12800## ------------------------------------ ##
12801## Report this to http://llvm.org/bugs/ ##
12802## ------------------------------------ ##
12803_ASBOX
12804     ) | sed "s/^/$as_me: WARNING:     /" >&2
12805    ;;
12806esac
12807{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12810  echo $ECHO_N "(cached) $ECHO_C" >&6
12811else
12812  eval "$as_ac_Header=\$ac_header_preproc"
12813fi
12814ac_res=`eval echo '${'$as_ac_Header'}'`
12815	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12816echo "${ECHO_T}$ac_res" >&6; }
12817
12818fi
12819if test `eval echo '${'$as_ac_Header'}'` = yes; then
12820  cat >>confdefs.h <<_ACEOF
12821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12822_ACEOF
12823
12824fi
12825
12826done
12827
12828
12829for ac_header in valgrind/valgrind.h
12830do
12831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12833  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12836  echo $ECHO_N "(cached) $ECHO_C" >&6
12837fi
12838ac_res=`eval echo '${'$as_ac_Header'}'`
12839	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12840echo "${ECHO_T}$ac_res" >&6; }
12841else
12842  # Is the header compilable?
12843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12845cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h.  */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h.  */
12851$ac_includes_default
12852#include <$ac_header>
12853_ACEOF
12854rm -f conftest.$ac_objext
12855if { (ac_try="$ac_compile"
12856case "(($ac_try" in
12857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858  *) ac_try_echo=$ac_try;;
12859esac
12860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861  (eval "$ac_compile") 2>conftest.er1
12862  ac_status=$?
12863  grep -v '^ *+' conftest.er1 >conftest.err
12864  rm -f conftest.er1
12865  cat conftest.err >&5
12866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867  (exit $ac_status); } &&
12868	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12869  { (case "(($ac_try" in
12870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871  *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874  (eval "$ac_try") 2>&5
12875  ac_status=$?
12876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877  (exit $ac_status); }; } &&
12878	 { ac_try='test -s conftest.$ac_objext'
12879  { (case "(($ac_try" in
12880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881  *) ac_try_echo=$ac_try;;
12882esac
12883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884  (eval "$ac_try") 2>&5
12885  ac_status=$?
12886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887  (exit $ac_status); }; }; then
12888  ac_header_compiler=yes
12889else
12890  echo "$as_me: failed program was:" >&5
12891sed 's/^/| /' conftest.$ac_ext >&5
12892
12893	ac_header_compiler=no
12894fi
12895
12896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12898echo "${ECHO_T}$ac_header_compiler" >&6; }
12899
12900# Is the header present?
12901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12903cat >conftest.$ac_ext <<_ACEOF
12904/* confdefs.h.  */
12905_ACEOF
12906cat confdefs.h >>conftest.$ac_ext
12907cat >>conftest.$ac_ext <<_ACEOF
12908/* end confdefs.h.  */
12909#include <$ac_header>
12910_ACEOF
12911if { (ac_try="$ac_cpp conftest.$ac_ext"
12912case "(($ac_try" in
12913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914  *) ac_try_echo=$ac_try;;
12915esac
12916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12918  ac_status=$?
12919  grep -v '^ *+' conftest.er1 >conftest.err
12920  rm -f conftest.er1
12921  cat conftest.err >&5
12922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923  (exit $ac_status); } >/dev/null; then
12924  if test -s conftest.err; then
12925    ac_cpp_err=$ac_c_preproc_warn_flag
12926    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12927  else
12928    ac_cpp_err=
12929  fi
12930else
12931  ac_cpp_err=yes
12932fi
12933if test -z "$ac_cpp_err"; then
12934  ac_header_preproc=yes
12935else
12936  echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939  ac_header_preproc=no
12940fi
12941
12942rm -f conftest.err conftest.$ac_ext
12943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12944echo "${ECHO_T}$ac_header_preproc" >&6; }
12945
12946# So?  What about this header?
12947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12948  yes:no: )
12949    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12951    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12953    ac_header_preproc=yes
12954    ;;
12955  no:yes:* )
12956    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12958    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12959echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12960    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12962    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12963echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12964    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12966    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12968    ( cat <<\_ASBOX
12969## ------------------------------------ ##
12970## Report this to http://llvm.org/bugs/ ##
12971## ------------------------------------ ##
12972_ASBOX
12973     ) | sed "s/^/$as_me: WARNING:     /" >&2
12974    ;;
12975esac
12976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12979  echo $ECHO_N "(cached) $ECHO_C" >&6
12980else
12981  eval "$as_ac_Header=\$ac_header_preproc"
12982fi
12983ac_res=`eval echo '${'$as_ac_Header'}'`
12984	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12985echo "${ECHO_T}$ac_res" >&6; }
12986
12987fi
12988if test `eval echo '${'$as_ac_Header'}'` = yes; then
12989  cat >>confdefs.h <<_ACEOF
12990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12991_ACEOF
12992
12993fi
12994
12995done
12996
12997
12998for ac_header in fenv.h
12999do
13000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13002  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005  echo $ECHO_N "(cached) $ECHO_C" >&6
13006fi
13007ac_res=`eval echo '${'$as_ac_Header'}'`
13008	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13009echo "${ECHO_T}$ac_res" >&6; }
13010else
13011  # Is the header compilable?
13012{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13014cat >conftest.$ac_ext <<_ACEOF
13015/* confdefs.h.  */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h.  */
13020$ac_includes_default
13021#include <$ac_header>
13022_ACEOF
13023rm -f conftest.$ac_objext
13024if { (ac_try="$ac_compile"
13025case "(($ac_try" in
13026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027  *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030  (eval "$ac_compile") 2>conftest.er1
13031  ac_status=$?
13032  grep -v '^ *+' conftest.er1 >conftest.err
13033  rm -f conftest.er1
13034  cat conftest.err >&5
13035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036  (exit $ac_status); } &&
13037	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038  { (case "(($ac_try" in
13039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040  *) ac_try_echo=$ac_try;;
13041esac
13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043  (eval "$ac_try") 2>&5
13044  ac_status=$?
13045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046  (exit $ac_status); }; } &&
13047	 { ac_try='test -s conftest.$ac_objext'
13048  { (case "(($ac_try" in
13049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050  *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053  (eval "$ac_try") 2>&5
13054  ac_status=$?
13055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056  (exit $ac_status); }; }; then
13057  ac_header_compiler=yes
13058else
13059  echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062	ac_header_compiler=no
13063fi
13064
13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067echo "${ECHO_T}$ac_header_compiler" >&6; }
13068
13069# Is the header present?
13070{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13072cat >conftest.$ac_ext <<_ACEOF
13073/* confdefs.h.  */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h.  */
13078#include <$ac_header>
13079_ACEOF
13080if { (ac_try="$ac_cpp conftest.$ac_ext"
13081case "(($ac_try" in
13082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083  *) ac_try_echo=$ac_try;;
13084esac
13085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13087  ac_status=$?
13088  grep -v '^ *+' conftest.er1 >conftest.err
13089  rm -f conftest.er1
13090  cat conftest.err >&5
13091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092  (exit $ac_status); } >/dev/null; then
13093  if test -s conftest.err; then
13094    ac_cpp_err=$ac_c_preproc_warn_flag
13095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13096  else
13097    ac_cpp_err=
13098  fi
13099else
13100  ac_cpp_err=yes
13101fi
13102if test -z "$ac_cpp_err"; then
13103  ac_header_preproc=yes
13104else
13105  echo "$as_me: failed program was:" >&5
13106sed 's/^/| /' conftest.$ac_ext >&5
13107
13108  ac_header_preproc=no
13109fi
13110
13111rm -f conftest.err conftest.$ac_ext
13112{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13113echo "${ECHO_T}$ac_header_preproc" >&6; }
13114
13115# So?  What about this header?
13116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13117  yes:no: )
13118    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13120    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13122    ac_header_preproc=yes
13123    ;;
13124  no:yes:* )
13125    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13127    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13128echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13129    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13131    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13132echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13133    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13135    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13137    ( cat <<\_ASBOX
13138## ------------------------------------ ##
13139## Report this to http://llvm.org/bugs/ ##
13140## ------------------------------------ ##
13141_ASBOX
13142     ) | sed "s/^/$as_me: WARNING:     /" >&2
13143    ;;
13144esac
13145{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13148  echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150  eval "$as_ac_Header=\$ac_header_preproc"
13151fi
13152ac_res=`eval echo '${'$as_ac_Header'}'`
13153	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13154echo "${ECHO_T}$ac_res" >&6; }
13155
13156fi
13157if test `eval echo '${'$as_ac_Header'}'` = yes; then
13158  cat >>confdefs.h <<_ACEOF
13159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13160_ACEOF
13161
13162fi
13163
13164done
13165
13166{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13167echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13168if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13169  echo $ECHO_N "(cached) $ECHO_C" >&6
13170else
13171  cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h.  */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h.  */
13177#include <fenv.h>
13178
13179int
13180main ()
13181{
13182#ifndef FE_ALL_EXCEPT
13183  char *p = (char *) FE_ALL_EXCEPT;
13184  return !p;
13185#endif
13186
13187  ;
13188  return 0;
13189}
13190_ACEOF
13191rm -f conftest.$ac_objext
13192if { (ac_try="$ac_compile"
13193case "(($ac_try" in
13194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195  *) ac_try_echo=$ac_try;;
13196esac
13197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198  (eval "$ac_compile") 2>conftest.er1
13199  ac_status=$?
13200  grep -v '^ *+' conftest.er1 >conftest.err
13201  rm -f conftest.er1
13202  cat conftest.err >&5
13203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204  (exit $ac_status); } &&
13205	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13206  { (case "(($ac_try" in
13207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208  *) ac_try_echo=$ac_try;;
13209esac
13210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211  (eval "$ac_try") 2>&5
13212  ac_status=$?
13213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214  (exit $ac_status); }; } &&
13215	 { ac_try='test -s conftest.$ac_objext'
13216  { (case "(($ac_try" in
13217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218  *) ac_try_echo=$ac_try;;
13219esac
13220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221  (eval "$ac_try") 2>&5
13222  ac_status=$?
13223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224  (exit $ac_status); }; }; then
13225  ac_cv_have_decl_FE_ALL_EXCEPT=yes
13226else
13227  echo "$as_me: failed program was:" >&5
13228sed 's/^/| /' conftest.$ac_ext >&5
13229
13230	ac_cv_have_decl_FE_ALL_EXCEPT=no
13231fi
13232
13233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234fi
13235{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13236echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13237if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13238
13239cat >>confdefs.h <<_ACEOF
13240#define HAVE_DECL_FE_ALL_EXCEPT 1
13241_ACEOF
13242
13243
13244else
13245  cat >>confdefs.h <<_ACEOF
13246#define HAVE_DECL_FE_ALL_EXCEPT 0
13247_ACEOF
13248
13249
13250fi
13251{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13252echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13253if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13254  echo $ECHO_N "(cached) $ECHO_C" >&6
13255else
13256  cat >conftest.$ac_ext <<_ACEOF
13257/* confdefs.h.  */
13258_ACEOF
13259cat confdefs.h >>conftest.$ac_ext
13260cat >>conftest.$ac_ext <<_ACEOF
13261/* end confdefs.h.  */
13262#include <fenv.h>
13263
13264int
13265main ()
13266{
13267#ifndef FE_INEXACT
13268  char *p = (char *) FE_INEXACT;
13269  return !p;
13270#endif
13271
13272  ;
13273  return 0;
13274}
13275_ACEOF
13276rm -f conftest.$ac_objext
13277if { (ac_try="$ac_compile"
13278case "(($ac_try" in
13279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280  *) ac_try_echo=$ac_try;;
13281esac
13282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283  (eval "$ac_compile") 2>conftest.er1
13284  ac_status=$?
13285  grep -v '^ *+' conftest.er1 >conftest.err
13286  rm -f conftest.er1
13287  cat conftest.err >&5
13288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289  (exit $ac_status); } &&
13290	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291  { (case "(($ac_try" in
13292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293  *) ac_try_echo=$ac_try;;
13294esac
13295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296  (eval "$ac_try") 2>&5
13297  ac_status=$?
13298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299  (exit $ac_status); }; } &&
13300	 { ac_try='test -s conftest.$ac_objext'
13301  { (case "(($ac_try" in
13302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303  *) ac_try_echo=$ac_try;;
13304esac
13305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306  (eval "$ac_try") 2>&5
13307  ac_status=$?
13308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309  (exit $ac_status); }; }; then
13310  ac_cv_have_decl_FE_INEXACT=yes
13311else
13312  echo "$as_me: failed program was:" >&5
13313sed 's/^/| /' conftest.$ac_ext >&5
13314
13315	ac_cv_have_decl_FE_INEXACT=no
13316fi
13317
13318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319fi
13320{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13321echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13322if test $ac_cv_have_decl_FE_INEXACT = yes; then
13323
13324cat >>confdefs.h <<_ACEOF
13325#define HAVE_DECL_FE_INEXACT 1
13326_ACEOF
13327
13328
13329else
13330  cat >>confdefs.h <<_ACEOF
13331#define HAVE_DECL_FE_INEXACT 0
13332_ACEOF
13333
13334
13335fi
13336
13337
13338if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13339
13340for ac_header in pthread.h
13341do
13342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13344  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13347  echo $ECHO_N "(cached) $ECHO_C" >&6
13348fi
13349ac_res=`eval echo '${'$as_ac_Header'}'`
13350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13351echo "${ECHO_T}$ac_res" >&6; }
13352else
13353  # Is the header compilable?
13354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13356cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h.  */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h.  */
13362$ac_includes_default
13363#include <$ac_header>
13364_ACEOF
13365rm -f conftest.$ac_objext
13366if { (ac_try="$ac_compile"
13367case "(($ac_try" in
13368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369  *) ac_try_echo=$ac_try;;
13370esac
13371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372  (eval "$ac_compile") 2>conftest.er1
13373  ac_status=$?
13374  grep -v '^ *+' conftest.er1 >conftest.err
13375  rm -f conftest.er1
13376  cat conftest.err >&5
13377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378  (exit $ac_status); } &&
13379	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380  { (case "(($ac_try" in
13381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382  *) ac_try_echo=$ac_try;;
13383esac
13384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385  (eval "$ac_try") 2>&5
13386  ac_status=$?
13387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388  (exit $ac_status); }; } &&
13389	 { ac_try='test -s conftest.$ac_objext'
13390  { (case "(($ac_try" in
13391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392  *) ac_try_echo=$ac_try;;
13393esac
13394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395  (eval "$ac_try") 2>&5
13396  ac_status=$?
13397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398  (exit $ac_status); }; }; then
13399  ac_header_compiler=yes
13400else
13401  echo "$as_me: failed program was:" >&5
13402sed 's/^/| /' conftest.$ac_ext >&5
13403
13404	ac_header_compiler=no
13405fi
13406
13407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13409echo "${ECHO_T}$ac_header_compiler" >&6; }
13410
13411# Is the header present?
13412{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13414cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h.  */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h.  */
13420#include <$ac_header>
13421_ACEOF
13422if { (ac_try="$ac_cpp conftest.$ac_ext"
13423case "(($ac_try" in
13424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425  *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13429  ac_status=$?
13430  grep -v '^ *+' conftest.er1 >conftest.err
13431  rm -f conftest.er1
13432  cat conftest.err >&5
13433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434  (exit $ac_status); } >/dev/null; then
13435  if test -s conftest.err; then
13436    ac_cpp_err=$ac_c_preproc_warn_flag
13437    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13438  else
13439    ac_cpp_err=
13440  fi
13441else
13442  ac_cpp_err=yes
13443fi
13444if test -z "$ac_cpp_err"; then
13445  ac_header_preproc=yes
13446else
13447  echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
13449
13450  ac_header_preproc=no
13451fi
13452
13453rm -f conftest.err conftest.$ac_ext
13454{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455echo "${ECHO_T}$ac_header_preproc" >&6; }
13456
13457# So?  What about this header?
13458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13459  yes:no: )
13460    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13461echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13463echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13464    ac_header_preproc=yes
13465    ;;
13466  no:yes:* )
13467    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13468echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13469    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13470echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13471    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13472echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13473    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13474echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13475    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13476echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13477    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13478echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13479    ( cat <<\_ASBOX
13480## ------------------------------------ ##
13481## Report this to http://llvm.org/bugs/ ##
13482## ------------------------------------ ##
13483_ASBOX
13484     ) | sed "s/^/$as_me: WARNING:     /" >&2
13485    ;;
13486esac
13487{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13490  echo $ECHO_N "(cached) $ECHO_C" >&6
13491else
13492  eval "$as_ac_Header=\$ac_header_preproc"
13493fi
13494ac_res=`eval echo '${'$as_ac_Header'}'`
13495	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13496echo "${ECHO_T}$ac_res" >&6; }
13497
13498fi
13499if test `eval echo '${'$as_ac_Header'}'` = yes; then
13500  cat >>confdefs.h <<_ACEOF
13501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13502_ACEOF
13503 HAVE_PTHREAD=1
13504
13505else
13506  HAVE_PTHREAD=0
13507
13508fi
13509
13510done
13511
13512else
13513  HAVE_PTHREAD=0
13514
13515fi
13516if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13517
13518for ac_header in zlib.h
13519do
13520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13522  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13525  echo $ECHO_N "(cached) $ECHO_C" >&6
13526fi
13527ac_res=`eval echo '${'$as_ac_Header'}'`
13528	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13529echo "${ECHO_T}$ac_res" >&6; }
13530else
13531  # Is the header compilable?
13532{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13534cat >conftest.$ac_ext <<_ACEOF
13535/* confdefs.h.  */
13536_ACEOF
13537cat confdefs.h >>conftest.$ac_ext
13538cat >>conftest.$ac_ext <<_ACEOF
13539/* end confdefs.h.  */
13540$ac_includes_default
13541#include <$ac_header>
13542_ACEOF
13543rm -f conftest.$ac_objext
13544if { (ac_try="$ac_compile"
13545case "(($ac_try" in
13546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547  *) ac_try_echo=$ac_try;;
13548esac
13549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550  (eval "$ac_compile") 2>conftest.er1
13551  ac_status=$?
13552  grep -v '^ *+' conftest.er1 >conftest.err
13553  rm -f conftest.er1
13554  cat conftest.err >&5
13555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556  (exit $ac_status); } &&
13557	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558  { (case "(($ac_try" in
13559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560  *) ac_try_echo=$ac_try;;
13561esac
13562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563  (eval "$ac_try") 2>&5
13564  ac_status=$?
13565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566  (exit $ac_status); }; } &&
13567	 { ac_try='test -s conftest.$ac_objext'
13568  { (case "(($ac_try" in
13569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570  *) ac_try_echo=$ac_try;;
13571esac
13572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573  (eval "$ac_try") 2>&5
13574  ac_status=$?
13575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576  (exit $ac_status); }; }; then
13577  ac_header_compiler=yes
13578else
13579  echo "$as_me: failed program was:" >&5
13580sed 's/^/| /' conftest.$ac_ext >&5
13581
13582	ac_header_compiler=no
13583fi
13584
13585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13587echo "${ECHO_T}$ac_header_compiler" >&6; }
13588
13589# Is the header present?
13590{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h.  */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h.  */
13598#include <$ac_header>
13599_ACEOF
13600if { (ac_try="$ac_cpp conftest.$ac_ext"
13601case "(($ac_try" in
13602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603  *) ac_try_echo=$ac_try;;
13604esac
13605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13607  ac_status=$?
13608  grep -v '^ *+' conftest.er1 >conftest.err
13609  rm -f conftest.er1
13610  cat conftest.err >&5
13611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612  (exit $ac_status); } >/dev/null; then
13613  if test -s conftest.err; then
13614    ac_cpp_err=$ac_c_preproc_warn_flag
13615    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13616  else
13617    ac_cpp_err=
13618  fi
13619else
13620  ac_cpp_err=yes
13621fi
13622if test -z "$ac_cpp_err"; then
13623  ac_header_preproc=yes
13624else
13625  echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
13627
13628  ac_header_preproc=no
13629fi
13630
13631rm -f conftest.err conftest.$ac_ext
13632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633echo "${ECHO_T}$ac_header_preproc" >&6; }
13634
13635# So?  What about this header?
13636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637  yes:no: )
13638    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13642    ac_header_preproc=yes
13643    ;;
13644  no:yes:* )
13645    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13647    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13648echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13649    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13651    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13652echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13653    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13655    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13657    ( cat <<\_ASBOX
13658## ------------------------------------ ##
13659## Report this to http://llvm.org/bugs/ ##
13660## ------------------------------------ ##
13661_ASBOX
13662     ) | sed "s/^/$as_me: WARNING:     /" >&2
13663    ;;
13664esac
13665{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13668  echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670  eval "$as_ac_Header=\$ac_header_preproc"
13671fi
13672ac_res=`eval echo '${'$as_ac_Header'}'`
13673	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13674echo "${ECHO_T}$ac_res" >&6; }
13675
13676fi
13677if test `eval echo '${'$as_ac_Header'}'` = yes; then
13678  cat >>confdefs.h <<_ACEOF
13679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13680_ACEOF
13681 HAVE_LIBZ=1
13682
13683else
13684  HAVE_LIBZ=0
13685
13686fi
13687
13688done
13689
13690else
13691  HAVE_LIBZ=0
13692
13693fi
13694
13695if test "$llvm_cv_enable_libffi" = "yes" ; then
13696
13697
13698for ac_header in ffi.h ffi/ffi.h
13699do
13700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13705  echo $ECHO_N "(cached) $ECHO_C" >&6
13706fi
13707ac_res=`eval echo '${'$as_ac_Header'}'`
13708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13709echo "${ECHO_T}$ac_res" >&6; }
13710else
13711  # Is the header compilable?
13712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13714cat >conftest.$ac_ext <<_ACEOF
13715/* confdefs.h.  */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h.  */
13720$ac_includes_default
13721#include <$ac_header>
13722_ACEOF
13723rm -f conftest.$ac_objext
13724if { (ac_try="$ac_compile"
13725case "(($ac_try" in
13726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727  *) ac_try_echo=$ac_try;;
13728esac
13729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730  (eval "$ac_compile") 2>conftest.er1
13731  ac_status=$?
13732  grep -v '^ *+' conftest.er1 >conftest.err
13733  rm -f conftest.er1
13734  cat conftest.err >&5
13735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736  (exit $ac_status); } &&
13737	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13738  { (case "(($ac_try" in
13739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740  *) ac_try_echo=$ac_try;;
13741esac
13742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743  (eval "$ac_try") 2>&5
13744  ac_status=$?
13745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746  (exit $ac_status); }; } &&
13747	 { ac_try='test -s conftest.$ac_objext'
13748  { (case "(($ac_try" in
13749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750  *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753  (eval "$ac_try") 2>&5
13754  ac_status=$?
13755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756  (exit $ac_status); }; }; then
13757  ac_header_compiler=yes
13758else
13759  echo "$as_me: failed program was:" >&5
13760sed 's/^/| /' conftest.$ac_ext >&5
13761
13762	ac_header_compiler=no
13763fi
13764
13765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13767echo "${ECHO_T}$ac_header_compiler" >&6; }
13768
13769# Is the header present?
13770{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13772cat >conftest.$ac_ext <<_ACEOF
13773/* confdefs.h.  */
13774_ACEOF
13775cat confdefs.h >>conftest.$ac_ext
13776cat >>conftest.$ac_ext <<_ACEOF
13777/* end confdefs.h.  */
13778#include <$ac_header>
13779_ACEOF
13780if { (ac_try="$ac_cpp conftest.$ac_ext"
13781case "(($ac_try" in
13782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783  *) ac_try_echo=$ac_try;;
13784esac
13785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13787  ac_status=$?
13788  grep -v '^ *+' conftest.er1 >conftest.err
13789  rm -f conftest.er1
13790  cat conftest.err >&5
13791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792  (exit $ac_status); } >/dev/null; then
13793  if test -s conftest.err; then
13794    ac_cpp_err=$ac_c_preproc_warn_flag
13795    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13796  else
13797    ac_cpp_err=
13798  fi
13799else
13800  ac_cpp_err=yes
13801fi
13802if test -z "$ac_cpp_err"; then
13803  ac_header_preproc=yes
13804else
13805  echo "$as_me: failed program was:" >&5
13806sed 's/^/| /' conftest.$ac_ext >&5
13807
13808  ac_header_preproc=no
13809fi
13810
13811rm -f conftest.err conftest.$ac_ext
13812{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13813echo "${ECHO_T}$ac_header_preproc" >&6; }
13814
13815# So?  What about this header?
13816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13817  yes:no: )
13818    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13820    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13822    ac_header_preproc=yes
13823    ;;
13824  no:yes:* )
13825    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13827    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13828echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13829    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13831    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13832echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13833    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13835    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13837    ( cat <<\_ASBOX
13838## ------------------------------------ ##
13839## Report this to http://llvm.org/bugs/ ##
13840## ------------------------------------ ##
13841_ASBOX
13842     ) | sed "s/^/$as_me: WARNING:     /" >&2
13843    ;;
13844esac
13845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13848  echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850  eval "$as_ac_Header=\$ac_header_preproc"
13851fi
13852ac_res=`eval echo '${'$as_ac_Header'}'`
13853	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13854echo "${ECHO_T}$ac_res" >&6; }
13855
13856fi
13857if test `eval echo '${'$as_ac_Header'}'` = yes; then
13858  cat >>confdefs.h <<_ACEOF
13859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13860_ACEOF
13861
13862fi
13863
13864done
13865
13866fi
13867
13868
13869for ac_header in CrashReporterClient.h
13870do
13871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13873  { echo "$as_me:$LINENO: checking for $ac_header" >&5
13874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876  echo $ECHO_N "(cached) $ECHO_C" >&6
13877fi
13878ac_res=`eval echo '${'$as_ac_Header'}'`
13879	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13880echo "${ECHO_T}$ac_res" >&6; }
13881else
13882  # Is the header compilable?
13883{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13885cat >conftest.$ac_ext <<_ACEOF
13886/* confdefs.h.  */
13887_ACEOF
13888cat confdefs.h >>conftest.$ac_ext
13889cat >>conftest.$ac_ext <<_ACEOF
13890/* end confdefs.h.  */
13891$ac_includes_default
13892#include <$ac_header>
13893_ACEOF
13894rm -f conftest.$ac_objext
13895if { (ac_try="$ac_compile"
13896case "(($ac_try" in
13897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898  *) ac_try_echo=$ac_try;;
13899esac
13900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901  (eval "$ac_compile") 2>conftest.er1
13902  ac_status=$?
13903  grep -v '^ *+' conftest.er1 >conftest.err
13904  rm -f conftest.er1
13905  cat conftest.err >&5
13906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907  (exit $ac_status); } &&
13908	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13909  { (case "(($ac_try" in
13910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911  *) ac_try_echo=$ac_try;;
13912esac
13913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914  (eval "$ac_try") 2>&5
13915  ac_status=$?
13916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917  (exit $ac_status); }; } &&
13918	 { ac_try='test -s conftest.$ac_objext'
13919  { (case "(($ac_try" in
13920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921  *) ac_try_echo=$ac_try;;
13922esac
13923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924  (eval "$ac_try") 2>&5
13925  ac_status=$?
13926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927  (exit $ac_status); }; }; then
13928  ac_header_compiler=yes
13929else
13930  echo "$as_me: failed program was:" >&5
13931sed 's/^/| /' conftest.$ac_ext >&5
13932
13933	ac_header_compiler=no
13934fi
13935
13936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13937{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13938echo "${ECHO_T}$ac_header_compiler" >&6; }
13939
13940# Is the header present?
13941{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13943cat >conftest.$ac_ext <<_ACEOF
13944/* confdefs.h.  */
13945_ACEOF
13946cat confdefs.h >>conftest.$ac_ext
13947cat >>conftest.$ac_ext <<_ACEOF
13948/* end confdefs.h.  */
13949#include <$ac_header>
13950_ACEOF
13951if { (ac_try="$ac_cpp conftest.$ac_ext"
13952case "(($ac_try" in
13953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954  *) ac_try_echo=$ac_try;;
13955esac
13956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13958  ac_status=$?
13959  grep -v '^ *+' conftest.er1 >conftest.err
13960  rm -f conftest.er1
13961  cat conftest.err >&5
13962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963  (exit $ac_status); } >/dev/null; then
13964  if test -s conftest.err; then
13965    ac_cpp_err=$ac_c_preproc_warn_flag
13966    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13967  else
13968    ac_cpp_err=
13969  fi
13970else
13971  ac_cpp_err=yes
13972fi
13973if test -z "$ac_cpp_err"; then
13974  ac_header_preproc=yes
13975else
13976  echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
13979  ac_header_preproc=no
13980fi
13981
13982rm -f conftest.err conftest.$ac_ext
13983{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984echo "${ECHO_T}$ac_header_preproc" >&6; }
13985
13986# So?  What about this header?
13987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13988  yes:no: )
13989    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13993    ac_header_preproc=yes
13994    ;;
13995  no:yes:* )
13996    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13998    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13999echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14000    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14002    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14003echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14004    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14006    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14008    ( cat <<\_ASBOX
14009## ------------------------------------ ##
14010## Report this to http://llvm.org/bugs/ ##
14011## ------------------------------------ ##
14012_ASBOX
14013     ) | sed "s/^/$as_me: WARNING:     /" >&2
14014    ;;
14015esac
14016{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14019  echo $ECHO_N "(cached) $ECHO_C" >&6
14020else
14021  eval "$as_ac_Header=\$ac_header_preproc"
14022fi
14023ac_res=`eval echo '${'$as_ac_Header'}'`
14024	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14025echo "${ECHO_T}$ac_res" >&6; }
14026
14027fi
14028if test `eval echo '${'$as_ac_Header'}'` = yes; then
14029  cat >>confdefs.h <<_ACEOF
14030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14031_ACEOF
14032
14033fi
14034
14035done
14036
14037
14038{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14039echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14040cat >conftest.$ac_ext <<_ACEOF
14041
14042  /* confdefs.h.  */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h.  */
14047
14048    extern const char *__crashreporter_info__;
14049    int main() {
14050      __crashreporter_info__ = "test";
14051      return 0;
14052    }
14053
14054
14055_ACEOF
14056rm -f conftest.$ac_objext conftest$ac_exeext
14057if { (ac_try="$ac_link"
14058case "(($ac_try" in
14059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060  *) ac_try_echo=$ac_try;;
14061esac
14062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063  (eval "$ac_link") 2>conftest.er1
14064  ac_status=$?
14065  grep -v '^ *+' conftest.er1 >conftest.err
14066  rm -f conftest.er1
14067  cat conftest.err >&5
14068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069  (exit $ac_status); } &&
14070	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14071  { (case "(($ac_try" in
14072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073  *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076  (eval "$ac_try") 2>&5
14077  ac_status=$?
14078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079  (exit $ac_status); }; } &&
14080	 { ac_try='test -s conftest$ac_exeext'
14081  { (case "(($ac_try" in
14082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083  *) ac_try_echo=$ac_try;;
14084esac
14085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086  (eval "$ac_try") 2>&5
14087  ac_status=$?
14088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089  (exit $ac_status); }; }; then
14090
14091  { echo "$as_me:$LINENO: result: yes" >&5
14092echo "${ECHO_T}yes" >&6; }
14093
14094cat >>confdefs.h <<\_ACEOF
14095#define HAVE_CRASHREPORTER_INFO 1
14096_ACEOF
14097
14098
14099else
14100  echo "$as_me: failed program was:" >&5
14101sed 's/^/| /' conftest.$ac_ext >&5
14102
14103
14104  { echo "$as_me:$LINENO: result: no" >&5
14105echo "${ECHO_T}no" >&6; }
14106
14107cat >>confdefs.h <<\_ACEOF
14108#define HAVE_CRASHREPORTER_INFO 0
14109_ACEOF
14110
14111
14112fi
14113
14114rm -f core conftest.err conftest.$ac_objext \
14115      conftest$ac_exeext conftest.$ac_ext
14116
14117
14118
14119  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14120echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14121if test "${ac_cv_huge_val_sanity+set}" = set; then
14122  echo $ECHO_N "(cached) $ECHO_C" >&6
14123else
14124
14125    ac_ext=cpp
14126ac_cpp='$CXXCPP $CPPFLAGS'
14127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14130
14131    ac_save_CXXFLAGS=$CXXFLAGS
14132    CXXFLAGS="$CXXFLAGS -pedantic"
14133    if test "$cross_compiling" = yes; then
14134  ac_cv_huge_val_sanity=yes
14135else
14136  cat >conftest.$ac_ext <<_ACEOF
14137/* confdefs.h.  */
14138_ACEOF
14139cat confdefs.h >>conftest.$ac_ext
14140cat >>conftest.$ac_ext <<_ACEOF
14141/* end confdefs.h.  */
14142#include <math.h>
14143int
14144main ()
14145{
14146double x = HUGE_VAL; return x != x;
14147  ;
14148  return 0;
14149}
14150_ACEOF
14151rm -f conftest$ac_exeext
14152if { (ac_try="$ac_link"
14153case "(($ac_try" in
14154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155  *) ac_try_echo=$ac_try;;
14156esac
14157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158  (eval "$ac_link") 2>&5
14159  ac_status=$?
14160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14162  { (case "(($ac_try" in
14163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164  *) ac_try_echo=$ac_try;;
14165esac
14166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167  (eval "$ac_try") 2>&5
14168  ac_status=$?
14169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170  (exit $ac_status); }; }; then
14171  ac_cv_huge_val_sanity=yes
14172else
14173  echo "$as_me: program exited with status $ac_status" >&5
14174echo "$as_me: failed program was:" >&5
14175sed 's/^/| /' conftest.$ac_ext >&5
14176
14177( exit $ac_status )
14178ac_cv_huge_val_sanity=no
14179fi
14180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14181fi
14182
14183
14184    CXXFLAGS=$ac_save_CXXFLAGS
14185    ac_ext=c
14186ac_cpp='$CPP $CPPFLAGS'
14187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189ac_compiler_gnu=$ac_cv_c_compiler_gnu
14190
14191
14192fi
14193{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14194echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14195  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14196
14197
14198{ echo "$as_me:$LINENO: checking for pid_t" >&5
14199echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14200if test "${ac_cv_type_pid_t+set}" = set; then
14201  echo $ECHO_N "(cached) $ECHO_C" >&6
14202else
14203  cat >conftest.$ac_ext <<_ACEOF
14204/* confdefs.h.  */
14205_ACEOF
14206cat confdefs.h >>conftest.$ac_ext
14207cat >>conftest.$ac_ext <<_ACEOF
14208/* end confdefs.h.  */
14209$ac_includes_default
14210typedef pid_t ac__type_new_;
14211int
14212main ()
14213{
14214if ((ac__type_new_ *) 0)
14215  return 0;
14216if (sizeof (ac__type_new_))
14217  return 0;
14218  ;
14219  return 0;
14220}
14221_ACEOF
14222rm -f conftest.$ac_objext
14223if { (ac_try="$ac_compile"
14224case "(($ac_try" in
14225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226  *) ac_try_echo=$ac_try;;
14227esac
14228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229  (eval "$ac_compile") 2>conftest.er1
14230  ac_status=$?
14231  grep -v '^ *+' conftest.er1 >conftest.err
14232  rm -f conftest.er1
14233  cat conftest.err >&5
14234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235  (exit $ac_status); } &&
14236	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237  { (case "(($ac_try" in
14238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239  *) ac_try_echo=$ac_try;;
14240esac
14241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242  (eval "$ac_try") 2>&5
14243  ac_status=$?
14244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245  (exit $ac_status); }; } &&
14246	 { ac_try='test -s conftest.$ac_objext'
14247  { (case "(($ac_try" in
14248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249  *) ac_try_echo=$ac_try;;
14250esac
14251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252  (eval "$ac_try") 2>&5
14253  ac_status=$?
14254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255  (exit $ac_status); }; }; then
14256  ac_cv_type_pid_t=yes
14257else
14258  echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261	ac_cv_type_pid_t=no
14262fi
14263
14264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265fi
14266{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14267echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14268if test $ac_cv_type_pid_t = yes; then
14269  :
14270else
14271
14272cat >>confdefs.h <<_ACEOF
14273#define pid_t int
14274_ACEOF
14275
14276fi
14277
14278{ echo "$as_me:$LINENO: checking for size_t" >&5
14279echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14280if test "${ac_cv_type_size_t+set}" = set; then
14281  echo $ECHO_N "(cached) $ECHO_C" >&6
14282else
14283  cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h.  */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h.  */
14289$ac_includes_default
14290typedef size_t ac__type_new_;
14291int
14292main ()
14293{
14294if ((ac__type_new_ *) 0)
14295  return 0;
14296if (sizeof (ac__type_new_))
14297  return 0;
14298  ;
14299  return 0;
14300}
14301_ACEOF
14302rm -f conftest.$ac_objext
14303if { (ac_try="$ac_compile"
14304case "(($ac_try" in
14305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306  *) ac_try_echo=$ac_try;;
14307esac
14308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309  (eval "$ac_compile") 2>conftest.er1
14310  ac_status=$?
14311  grep -v '^ *+' conftest.er1 >conftest.err
14312  rm -f conftest.er1
14313  cat conftest.err >&5
14314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315  (exit $ac_status); } &&
14316	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317  { (case "(($ac_try" in
14318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319  *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322  (eval "$ac_try") 2>&5
14323  ac_status=$?
14324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325  (exit $ac_status); }; } &&
14326	 { ac_try='test -s conftest.$ac_objext'
14327  { (case "(($ac_try" in
14328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329  *) ac_try_echo=$ac_try;;
14330esac
14331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332  (eval "$ac_try") 2>&5
14333  ac_status=$?
14334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335  (exit $ac_status); }; }; then
14336  ac_cv_type_size_t=yes
14337else
14338  echo "$as_me: failed program was:" >&5
14339sed 's/^/| /' conftest.$ac_ext >&5
14340
14341	ac_cv_type_size_t=no
14342fi
14343
14344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345fi
14346{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14347echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14348if test $ac_cv_type_size_t = yes; then
14349  :
14350else
14351
14352cat >>confdefs.h <<_ACEOF
14353#define size_t unsigned int
14354_ACEOF
14355
14356fi
14357
14358
14359cat >>confdefs.h <<_ACEOF
14360#define RETSIGTYPE void
14361_ACEOF
14362
14363{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14364echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14365if test "${ac_cv_struct_tm+set}" = set; then
14366  echo $ECHO_N "(cached) $ECHO_C" >&6
14367else
14368  cat >conftest.$ac_ext <<_ACEOF
14369/* confdefs.h.  */
14370_ACEOF
14371cat confdefs.h >>conftest.$ac_ext
14372cat >>conftest.$ac_ext <<_ACEOF
14373/* end confdefs.h.  */
14374#include <sys/types.h>
14375#include <time.h>
14376
14377int
14378main ()
14379{
14380struct tm *tp; tp->tm_sec;
14381  ;
14382  return 0;
14383}
14384_ACEOF
14385rm -f conftest.$ac_objext
14386if { (ac_try="$ac_compile"
14387case "(($ac_try" in
14388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389  *) ac_try_echo=$ac_try;;
14390esac
14391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392  (eval "$ac_compile") 2>conftest.er1
14393  ac_status=$?
14394  grep -v '^ *+' conftest.er1 >conftest.err
14395  rm -f conftest.er1
14396  cat conftest.err >&5
14397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398  (exit $ac_status); } &&
14399	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14400  { (case "(($ac_try" in
14401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402  *) ac_try_echo=$ac_try;;
14403esac
14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405  (eval "$ac_try") 2>&5
14406  ac_status=$?
14407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408  (exit $ac_status); }; } &&
14409	 { ac_try='test -s conftest.$ac_objext'
14410  { (case "(($ac_try" in
14411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412  *) ac_try_echo=$ac_try;;
14413esac
14414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415  (eval "$ac_try") 2>&5
14416  ac_status=$?
14417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418  (exit $ac_status); }; }; then
14419  ac_cv_struct_tm=time.h
14420else
14421  echo "$as_me: failed program was:" >&5
14422sed 's/^/| /' conftest.$ac_ext >&5
14423
14424	ac_cv_struct_tm=sys/time.h
14425fi
14426
14427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428fi
14429{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14430echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14431if test $ac_cv_struct_tm = sys/time.h; then
14432
14433cat >>confdefs.h <<\_ACEOF
14434#define TM_IN_SYS_TIME 1
14435_ACEOF
14436
14437fi
14438
14439{ echo "$as_me:$LINENO: checking for int64_t" >&5
14440echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14441if test "${ac_cv_type_int64_t+set}" = set; then
14442  echo $ECHO_N "(cached) $ECHO_C" >&6
14443else
14444  cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h.  */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h.  */
14450$ac_includes_default
14451typedef int64_t ac__type_new_;
14452int
14453main ()
14454{
14455if ((ac__type_new_ *) 0)
14456  return 0;
14457if (sizeof (ac__type_new_))
14458  return 0;
14459  ;
14460  return 0;
14461}
14462_ACEOF
14463rm -f conftest.$ac_objext
14464if { (ac_try="$ac_compile"
14465case "(($ac_try" in
14466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467  *) ac_try_echo=$ac_try;;
14468esac
14469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470  (eval "$ac_compile") 2>conftest.er1
14471  ac_status=$?
14472  grep -v '^ *+' conftest.er1 >conftest.err
14473  rm -f conftest.er1
14474  cat conftest.err >&5
14475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476  (exit $ac_status); } &&
14477	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14478  { (case "(($ac_try" in
14479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480  *) ac_try_echo=$ac_try;;
14481esac
14482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483  (eval "$ac_try") 2>&5
14484  ac_status=$?
14485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486  (exit $ac_status); }; } &&
14487	 { ac_try='test -s conftest.$ac_objext'
14488  { (case "(($ac_try" in
14489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490  *) ac_try_echo=$ac_try;;
14491esac
14492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493  (eval "$ac_try") 2>&5
14494  ac_status=$?
14495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496  (exit $ac_status); }; }; then
14497  ac_cv_type_int64_t=yes
14498else
14499  echo "$as_me: failed program was:" >&5
14500sed 's/^/| /' conftest.$ac_ext >&5
14501
14502	ac_cv_type_int64_t=no
14503fi
14504
14505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506fi
14507{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14508echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14509if test $ac_cv_type_int64_t = yes; then
14510
14511cat >>confdefs.h <<_ACEOF
14512#define HAVE_INT64_T 1
14513_ACEOF
14514
14515
14516else
14517  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14518echo "$as_me: error: Type int64_t required but not found" >&2;}
14519   { (exit 1); exit 1; }; }
14520fi
14521
14522{ echo "$as_me:$LINENO: checking for uint64_t" >&5
14523echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14524if test "${ac_cv_type_uint64_t+set}" = set; then
14525  echo $ECHO_N "(cached) $ECHO_C" >&6
14526else
14527  cat >conftest.$ac_ext <<_ACEOF
14528/* confdefs.h.  */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h.  */
14533$ac_includes_default
14534typedef uint64_t ac__type_new_;
14535int
14536main ()
14537{
14538if ((ac__type_new_ *) 0)
14539  return 0;
14540if (sizeof (ac__type_new_))
14541  return 0;
14542  ;
14543  return 0;
14544}
14545_ACEOF
14546rm -f conftest.$ac_objext
14547if { (ac_try="$ac_compile"
14548case "(($ac_try" in
14549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550  *) ac_try_echo=$ac_try;;
14551esac
14552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553  (eval "$ac_compile") 2>conftest.er1
14554  ac_status=$?
14555  grep -v '^ *+' conftest.er1 >conftest.err
14556  rm -f conftest.er1
14557  cat conftest.err >&5
14558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559  (exit $ac_status); } &&
14560	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561  { (case "(($ac_try" in
14562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563  *) ac_try_echo=$ac_try;;
14564esac
14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566  (eval "$ac_try") 2>&5
14567  ac_status=$?
14568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569  (exit $ac_status); }; } &&
14570	 { ac_try='test -s conftest.$ac_objext'
14571  { (case "(($ac_try" in
14572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573  *) ac_try_echo=$ac_try;;
14574esac
14575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576  (eval "$ac_try") 2>&5
14577  ac_status=$?
14578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579  (exit $ac_status); }; }; then
14580  ac_cv_type_uint64_t=yes
14581else
14582  echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585	ac_cv_type_uint64_t=no
14586fi
14587
14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589fi
14590{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14591echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14592if test $ac_cv_type_uint64_t = yes; then
14593
14594cat >>confdefs.h <<_ACEOF
14595#define HAVE_UINT64_T 1
14596_ACEOF
14597
14598
14599else
14600  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14601echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14602if test "${ac_cv_type_u_int64_t+set}" = set; then
14603  echo $ECHO_N "(cached) $ECHO_C" >&6
14604else
14605  cat >conftest.$ac_ext <<_ACEOF
14606/* confdefs.h.  */
14607_ACEOF
14608cat confdefs.h >>conftest.$ac_ext
14609cat >>conftest.$ac_ext <<_ACEOF
14610/* end confdefs.h.  */
14611$ac_includes_default
14612typedef u_int64_t ac__type_new_;
14613int
14614main ()
14615{
14616if ((ac__type_new_ *) 0)
14617  return 0;
14618if (sizeof (ac__type_new_))
14619  return 0;
14620  ;
14621  return 0;
14622}
14623_ACEOF
14624rm -f conftest.$ac_objext
14625if { (ac_try="$ac_compile"
14626case "(($ac_try" in
14627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628  *) ac_try_echo=$ac_try;;
14629esac
14630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631  (eval "$ac_compile") 2>conftest.er1
14632  ac_status=$?
14633  grep -v '^ *+' conftest.er1 >conftest.err
14634  rm -f conftest.er1
14635  cat conftest.err >&5
14636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637  (exit $ac_status); } &&
14638	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639  { (case "(($ac_try" in
14640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641  *) ac_try_echo=$ac_try;;
14642esac
14643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644  (eval "$ac_try") 2>&5
14645  ac_status=$?
14646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647  (exit $ac_status); }; } &&
14648	 { ac_try='test -s conftest.$ac_objext'
14649  { (case "(($ac_try" in
14650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651  *) ac_try_echo=$ac_try;;
14652esac
14653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654  (eval "$ac_try") 2>&5
14655  ac_status=$?
14656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657  (exit $ac_status); }; }; then
14658  ac_cv_type_u_int64_t=yes
14659else
14660  echo "$as_me: failed program was:" >&5
14661sed 's/^/| /' conftest.$ac_ext >&5
14662
14663	ac_cv_type_u_int64_t=no
14664fi
14665
14666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667fi
14668{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14669echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14670if test $ac_cv_type_u_int64_t = yes; then
14671
14672cat >>confdefs.h <<_ACEOF
14673#define HAVE_U_INT64_T 1
14674_ACEOF
14675
14676
14677else
14678  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14679echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14680   { (exit 1); exit 1; }; }
14681fi
14682
14683fi
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14695do
14696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14697{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14699if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14700  echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702  cat >conftest.$ac_ext <<_ACEOF
14703/* confdefs.h.  */
14704_ACEOF
14705cat confdefs.h >>conftest.$ac_ext
14706cat >>conftest.$ac_ext <<_ACEOF
14707/* end confdefs.h.  */
14708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14709   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14710#define $ac_func innocuous_$ac_func
14711
14712/* System header to define __stub macros and hopefully few prototypes,
14713    which can conflict with char $ac_func (); below.
14714    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14715    <limits.h> exists even on freestanding compilers.  */
14716
14717#ifdef __STDC__
14718# include <limits.h>
14719#else
14720# include <assert.h>
14721#endif
14722
14723#undef $ac_func
14724
14725/* Override any GCC internal prototype to avoid an error.
14726   Use char because int might match the return type of a GCC
14727   builtin and then its argument prototype would still apply.  */
14728#ifdef __cplusplus
14729extern "C"
14730#endif
14731char $ac_func ();
14732/* The GNU C library defines this for functions which it implements
14733    to always fail with ENOSYS.  Some functions are actually named
14734    something starting with __ and the normal name is an alias.  */
14735#if defined __stub_$ac_func || defined __stub___$ac_func
14736choke me
14737#endif
14738
14739int
14740main ()
14741{
14742return $ac_func ();
14743  ;
14744  return 0;
14745}
14746_ACEOF
14747rm -f conftest.$ac_objext conftest$ac_exeext
14748if { (ac_try="$ac_link"
14749case "(($ac_try" in
14750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751  *) ac_try_echo=$ac_try;;
14752esac
14753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754  (eval "$ac_link") 2>conftest.er1
14755  ac_status=$?
14756  grep -v '^ *+' conftest.er1 >conftest.err
14757  rm -f conftest.er1
14758  cat conftest.err >&5
14759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760  (exit $ac_status); } &&
14761	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14762  { (case "(($ac_try" in
14763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764  *) ac_try_echo=$ac_try;;
14765esac
14766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767  (eval "$ac_try") 2>&5
14768  ac_status=$?
14769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770  (exit $ac_status); }; } &&
14771	 { ac_try='test -s conftest$ac_exeext'
14772  { (case "(($ac_try" in
14773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774  *) ac_try_echo=$ac_try;;
14775esac
14776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777  (eval "$ac_try") 2>&5
14778  ac_status=$?
14779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780  (exit $ac_status); }; }; then
14781  eval "$as_ac_var=yes"
14782else
14783  echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
14786	eval "$as_ac_var=no"
14787fi
14788
14789rm -f core conftest.err conftest.$ac_objext \
14790      conftest$ac_exeext conftest.$ac_ext
14791fi
14792ac_res=`eval echo '${'$as_ac_var'}'`
14793	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14794echo "${ECHO_T}$ac_res" >&6; }
14795if test `eval echo '${'$as_ac_var'}'` = yes; then
14796  cat >>confdefs.h <<_ACEOF
14797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14798_ACEOF
14799
14800fi
14801done
14802
14803
14804
14805
14806
14807for ac_func in powf fmodf strtof round
14808do
14809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14810{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14813  echo $ECHO_N "(cached) $ECHO_C" >&6
14814else
14815  cat >conftest.$ac_ext <<_ACEOF
14816/* confdefs.h.  */
14817_ACEOF
14818cat confdefs.h >>conftest.$ac_ext
14819cat >>conftest.$ac_ext <<_ACEOF
14820/* end confdefs.h.  */
14821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14823#define $ac_func innocuous_$ac_func
14824
14825/* System header to define __stub macros and hopefully few prototypes,
14826    which can conflict with char $ac_func (); below.
14827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828    <limits.h> exists even on freestanding compilers.  */
14829
14830#ifdef __STDC__
14831# include <limits.h>
14832#else
14833# include <assert.h>
14834#endif
14835
14836#undef $ac_func
14837
14838/* Override any GCC internal prototype to avoid an error.
14839   Use char because int might match the return type of a GCC
14840   builtin and then its argument prototype would still apply.  */
14841#ifdef __cplusplus
14842extern "C"
14843#endif
14844char $ac_func ();
14845/* The GNU C library defines this for functions which it implements
14846    to always fail with ENOSYS.  Some functions are actually named
14847    something starting with __ and the normal name is an alias.  */
14848#if defined __stub_$ac_func || defined __stub___$ac_func
14849choke me
14850#endif
14851
14852int
14853main ()
14854{
14855return $ac_func ();
14856  ;
14857  return 0;
14858}
14859_ACEOF
14860rm -f conftest.$ac_objext conftest$ac_exeext
14861if { (ac_try="$ac_link"
14862case "(($ac_try" in
14863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864  *) ac_try_echo=$ac_try;;
14865esac
14866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867  (eval "$ac_link") 2>conftest.er1
14868  ac_status=$?
14869  grep -v '^ *+' conftest.er1 >conftest.err
14870  rm -f conftest.er1
14871  cat conftest.err >&5
14872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873  (exit $ac_status); } &&
14874	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875  { (case "(($ac_try" in
14876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877  *) ac_try_echo=$ac_try;;
14878esac
14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880  (eval "$ac_try") 2>&5
14881  ac_status=$?
14882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883  (exit $ac_status); }; } &&
14884	 { ac_try='test -s conftest$ac_exeext'
14885  { (case "(($ac_try" in
14886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887  *) ac_try_echo=$ac_try;;
14888esac
14889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890  (eval "$ac_try") 2>&5
14891  ac_status=$?
14892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893  (exit $ac_status); }; }; then
14894  eval "$as_ac_var=yes"
14895else
14896  echo "$as_me: failed program was:" >&5
14897sed 's/^/| /' conftest.$ac_ext >&5
14898
14899	eval "$as_ac_var=no"
14900fi
14901
14902rm -f core conftest.err conftest.$ac_objext \
14903      conftest$ac_exeext conftest.$ac_ext
14904fi
14905ac_res=`eval echo '${'$as_ac_var'}'`
14906	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14907echo "${ECHO_T}$ac_res" >&6; }
14908if test `eval echo '${'$as_ac_var'}'` = yes; then
14909  cat >>confdefs.h <<_ACEOF
14910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14911_ACEOF
14912
14913fi
14914done
14915
14916
14917
14918
14919
14920
14921for ac_func in log log2 log10 exp exp2
14922do
14923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14924{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14927  echo $ECHO_N "(cached) $ECHO_C" >&6
14928else
14929  cat >conftest.$ac_ext <<_ACEOF
14930/* confdefs.h.  */
14931_ACEOF
14932cat confdefs.h >>conftest.$ac_ext
14933cat >>conftest.$ac_ext <<_ACEOF
14934/* end confdefs.h.  */
14935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14936   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14937#define $ac_func innocuous_$ac_func
14938
14939/* System header to define __stub macros and hopefully few prototypes,
14940    which can conflict with char $ac_func (); below.
14941    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14942    <limits.h> exists even on freestanding compilers.  */
14943
14944#ifdef __STDC__
14945# include <limits.h>
14946#else
14947# include <assert.h>
14948#endif
14949
14950#undef $ac_func
14951
14952/* Override any GCC internal prototype to avoid an error.
14953   Use char because int might match the return type of a GCC
14954   builtin and then its argument prototype would still apply.  */
14955#ifdef __cplusplus
14956extern "C"
14957#endif
14958char $ac_func ();
14959/* The GNU C library defines this for functions which it implements
14960    to always fail with ENOSYS.  Some functions are actually named
14961    something starting with __ and the normal name is an alias.  */
14962#if defined __stub_$ac_func || defined __stub___$ac_func
14963choke me
14964#endif
14965
14966int
14967main ()
14968{
14969return $ac_func ();
14970  ;
14971  return 0;
14972}
14973_ACEOF
14974rm -f conftest.$ac_objext conftest$ac_exeext
14975if { (ac_try="$ac_link"
14976case "(($ac_try" in
14977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978  *) ac_try_echo=$ac_try;;
14979esac
14980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981  (eval "$ac_link") 2>conftest.er1
14982  ac_status=$?
14983  grep -v '^ *+' conftest.er1 >conftest.err
14984  rm -f conftest.er1
14985  cat conftest.err >&5
14986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987  (exit $ac_status); } &&
14988	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14989  { (case "(($ac_try" in
14990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991  *) ac_try_echo=$ac_try;;
14992esac
14993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994  (eval "$ac_try") 2>&5
14995  ac_status=$?
14996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997  (exit $ac_status); }; } &&
14998	 { ac_try='test -s conftest$ac_exeext'
14999  { (case "(($ac_try" in
15000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001  *) ac_try_echo=$ac_try;;
15002esac
15003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004  (eval "$ac_try") 2>&5
15005  ac_status=$?
15006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007  (exit $ac_status); }; }; then
15008  eval "$as_ac_var=yes"
15009else
15010  echo "$as_me: failed program was:" >&5
15011sed 's/^/| /' conftest.$ac_ext >&5
15012
15013	eval "$as_ac_var=no"
15014fi
15015
15016rm -f core conftest.err conftest.$ac_objext \
15017      conftest$ac_exeext conftest.$ac_ext
15018fi
15019ac_res=`eval echo '${'$as_ac_var'}'`
15020	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15021echo "${ECHO_T}$ac_res" >&6; }
15022if test `eval echo '${'$as_ac_var'}'` = yes; then
15023  cat >>confdefs.h <<_ACEOF
15024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15025_ACEOF
15026
15027fi
15028done
15029
15030
15031
15032
15033
15034
15035for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15036do
15037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15038{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15040if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15041  echo $ECHO_N "(cached) $ECHO_C" >&6
15042else
15043  cat >conftest.$ac_ext <<_ACEOF
15044/* confdefs.h.  */
15045_ACEOF
15046cat confdefs.h >>conftest.$ac_ext
15047cat >>conftest.$ac_ext <<_ACEOF
15048/* end confdefs.h.  */
15049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15050   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15051#define $ac_func innocuous_$ac_func
15052
15053/* System header to define __stub macros and hopefully few prototypes,
15054    which can conflict with char $ac_func (); below.
15055    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15056    <limits.h> exists even on freestanding compilers.  */
15057
15058#ifdef __STDC__
15059# include <limits.h>
15060#else
15061# include <assert.h>
15062#endif
15063
15064#undef $ac_func
15065
15066/* Override any GCC internal prototype to avoid an error.
15067   Use char because int might match the return type of a GCC
15068   builtin and then its argument prototype would still apply.  */
15069#ifdef __cplusplus
15070extern "C"
15071#endif
15072char $ac_func ();
15073/* The GNU C library defines this for functions which it implements
15074    to always fail with ENOSYS.  Some functions are actually named
15075    something starting with __ and the normal name is an alias.  */
15076#if defined __stub_$ac_func || defined __stub___$ac_func
15077choke me
15078#endif
15079
15080int
15081main ()
15082{
15083return $ac_func ();
15084  ;
15085  return 0;
15086}
15087_ACEOF
15088rm -f conftest.$ac_objext conftest$ac_exeext
15089if { (ac_try="$ac_link"
15090case "(($ac_try" in
15091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092  *) ac_try_echo=$ac_try;;
15093esac
15094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095  (eval "$ac_link") 2>conftest.er1
15096  ac_status=$?
15097  grep -v '^ *+' conftest.er1 >conftest.err
15098  rm -f conftest.er1
15099  cat conftest.err >&5
15100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101  (exit $ac_status); } &&
15102	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15103  { (case "(($ac_try" in
15104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105  *) ac_try_echo=$ac_try;;
15106esac
15107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108  (eval "$ac_try") 2>&5
15109  ac_status=$?
15110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111  (exit $ac_status); }; } &&
15112	 { ac_try='test -s conftest$ac_exeext'
15113  { (case "(($ac_try" in
15114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115  *) ac_try_echo=$ac_try;;
15116esac
15117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118  (eval "$ac_try") 2>&5
15119  ac_status=$?
15120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121  (exit $ac_status); }; }; then
15122  eval "$as_ac_var=yes"
15123else
15124  echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
15127	eval "$as_ac_var=no"
15128fi
15129
15130rm -f core conftest.err conftest.$ac_objext \
15131      conftest$ac_exeext conftest.$ac_ext
15132fi
15133ac_res=`eval echo '${'$as_ac_var'}'`
15134	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15135echo "${ECHO_T}$ac_res" >&6; }
15136if test `eval echo '${'$as_ac_var'}'` = yes; then
15137  cat >>confdefs.h <<_ACEOF
15138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15139_ACEOF
15140
15141fi
15142done
15143
15144
15145
15146
15147for ac_func in isatty mkdtemp mkstemp
15148do
15149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15152if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15153  echo $ECHO_N "(cached) $ECHO_C" >&6
15154else
15155  cat >conftest.$ac_ext <<_ACEOF
15156/* confdefs.h.  */
15157_ACEOF
15158cat confdefs.h >>conftest.$ac_ext
15159cat >>conftest.$ac_ext <<_ACEOF
15160/* end confdefs.h.  */
15161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15163#define $ac_func innocuous_$ac_func
15164
15165/* System header to define __stub macros and hopefully few prototypes,
15166    which can conflict with char $ac_func (); below.
15167    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168    <limits.h> exists even on freestanding compilers.  */
15169
15170#ifdef __STDC__
15171# include <limits.h>
15172#else
15173# include <assert.h>
15174#endif
15175
15176#undef $ac_func
15177
15178/* Override any GCC internal prototype to avoid an error.
15179   Use char because int might match the return type of a GCC
15180   builtin and then its argument prototype would still apply.  */
15181#ifdef __cplusplus
15182extern "C"
15183#endif
15184char $ac_func ();
15185/* The GNU C library defines this for functions which it implements
15186    to always fail with ENOSYS.  Some functions are actually named
15187    something starting with __ and the normal name is an alias.  */
15188#if defined __stub_$ac_func || defined __stub___$ac_func
15189choke me
15190#endif
15191
15192int
15193main ()
15194{
15195return $ac_func ();
15196  ;
15197  return 0;
15198}
15199_ACEOF
15200rm -f conftest.$ac_objext conftest$ac_exeext
15201if { (ac_try="$ac_link"
15202case "(($ac_try" in
15203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204  *) ac_try_echo=$ac_try;;
15205esac
15206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207  (eval "$ac_link") 2>conftest.er1
15208  ac_status=$?
15209  grep -v '^ *+' conftest.er1 >conftest.err
15210  rm -f conftest.er1
15211  cat conftest.err >&5
15212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213  (exit $ac_status); } &&
15214	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215  { (case "(($ac_try" in
15216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217  *) ac_try_echo=$ac_try;;
15218esac
15219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220  (eval "$ac_try") 2>&5
15221  ac_status=$?
15222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223  (exit $ac_status); }; } &&
15224	 { ac_try='test -s conftest$ac_exeext'
15225  { (case "(($ac_try" in
15226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227  *) ac_try_echo=$ac_try;;
15228esac
15229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230  (eval "$ac_try") 2>&5
15231  ac_status=$?
15232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233  (exit $ac_status); }; }; then
15234  eval "$as_ac_var=yes"
15235else
15236  echo "$as_me: failed program was:" >&5
15237sed 's/^/| /' conftest.$ac_ext >&5
15238
15239	eval "$as_ac_var=no"
15240fi
15241
15242rm -f core conftest.err conftest.$ac_objext \
15243      conftest$ac_exeext conftest.$ac_ext
15244fi
15245ac_res=`eval echo '${'$as_ac_var'}'`
15246	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15247echo "${ECHO_T}$ac_res" >&6; }
15248if test `eval echo '${'$as_ac_var'}'` = yes; then
15249  cat >>confdefs.h <<_ACEOF
15250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15251_ACEOF
15252
15253fi
15254done
15255
15256
15257
15258
15259
15260
15261
15262for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15263do
15264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15267if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15268  echo $ECHO_N "(cached) $ECHO_C" >&6
15269else
15270  cat >conftest.$ac_ext <<_ACEOF
15271/* confdefs.h.  */
15272_ACEOF
15273cat confdefs.h >>conftest.$ac_ext
15274cat >>conftest.$ac_ext <<_ACEOF
15275/* end confdefs.h.  */
15276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15277   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15278#define $ac_func innocuous_$ac_func
15279
15280/* System header to define __stub macros and hopefully few prototypes,
15281    which can conflict with char $ac_func (); below.
15282    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15283    <limits.h> exists even on freestanding compilers.  */
15284
15285#ifdef __STDC__
15286# include <limits.h>
15287#else
15288# include <assert.h>
15289#endif
15290
15291#undef $ac_func
15292
15293/* Override any GCC internal prototype to avoid an error.
15294   Use char because int might match the return type of a GCC
15295   builtin and then its argument prototype would still apply.  */
15296#ifdef __cplusplus
15297extern "C"
15298#endif
15299char $ac_func ();
15300/* The GNU C library defines this for functions which it implements
15301    to always fail with ENOSYS.  Some functions are actually named
15302    something starting with __ and the normal name is an alias.  */
15303#if defined __stub_$ac_func || defined __stub___$ac_func
15304choke me
15305#endif
15306
15307int
15308main ()
15309{
15310return $ac_func ();
15311  ;
15312  return 0;
15313}
15314_ACEOF
15315rm -f conftest.$ac_objext conftest$ac_exeext
15316if { (ac_try="$ac_link"
15317case "(($ac_try" in
15318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319  *) ac_try_echo=$ac_try;;
15320esac
15321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322  (eval "$ac_link") 2>conftest.er1
15323  ac_status=$?
15324  grep -v '^ *+' conftest.er1 >conftest.err
15325  rm -f conftest.er1
15326  cat conftest.err >&5
15327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328  (exit $ac_status); } &&
15329	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330  { (case "(($ac_try" in
15331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332  *) ac_try_echo=$ac_try;;
15333esac
15334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335  (eval "$ac_try") 2>&5
15336  ac_status=$?
15337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338  (exit $ac_status); }; } &&
15339	 { ac_try='test -s conftest$ac_exeext'
15340  { (case "(($ac_try" in
15341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342  *) ac_try_echo=$ac_try;;
15343esac
15344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345  (eval "$ac_try") 2>&5
15346  ac_status=$?
15347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348  (exit $ac_status); }; }; then
15349  eval "$as_ac_var=yes"
15350else
15351  echo "$as_me: failed program was:" >&5
15352sed 's/^/| /' conftest.$ac_ext >&5
15353
15354	eval "$as_ac_var=no"
15355fi
15356
15357rm -f core conftest.err conftest.$ac_objext \
15358      conftest$ac_exeext conftest.$ac_ext
15359fi
15360ac_res=`eval echo '${'$as_ac_var'}'`
15361	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15362echo "${ECHO_T}$ac_res" >&6; }
15363if test `eval echo '${'$as_ac_var'}'` = yes; then
15364  cat >>confdefs.h <<_ACEOF
15365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15366_ACEOF
15367
15368fi
15369done
15370
15371
15372
15373
15374for ac_func in strerror strerror_r setenv
15375do
15376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15377{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15379if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15380  echo $ECHO_N "(cached) $ECHO_C" >&6
15381else
15382  cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h.  */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h.  */
15388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15389   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15390#define $ac_func innocuous_$ac_func
15391
15392/* System header to define __stub macros and hopefully few prototypes,
15393    which can conflict with char $ac_func (); below.
15394    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15395    <limits.h> exists even on freestanding compilers.  */
15396
15397#ifdef __STDC__
15398# include <limits.h>
15399#else
15400# include <assert.h>
15401#endif
15402
15403#undef $ac_func
15404
15405/* Override any GCC internal prototype to avoid an error.
15406   Use char because int might match the return type of a GCC
15407   builtin and then its argument prototype would still apply.  */
15408#ifdef __cplusplus
15409extern "C"
15410#endif
15411char $ac_func ();
15412/* The GNU C library defines this for functions which it implements
15413    to always fail with ENOSYS.  Some functions are actually named
15414    something starting with __ and the normal name is an alias.  */
15415#if defined __stub_$ac_func || defined __stub___$ac_func
15416choke me
15417#endif
15418
15419int
15420main ()
15421{
15422return $ac_func ();
15423  ;
15424  return 0;
15425}
15426_ACEOF
15427rm -f conftest.$ac_objext conftest$ac_exeext
15428if { (ac_try="$ac_link"
15429case "(($ac_try" in
15430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431  *) ac_try_echo=$ac_try;;
15432esac
15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434  (eval "$ac_link") 2>conftest.er1
15435  ac_status=$?
15436  grep -v '^ *+' conftest.er1 >conftest.err
15437  rm -f conftest.er1
15438  cat conftest.err >&5
15439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440  (exit $ac_status); } &&
15441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15442  { (case "(($ac_try" in
15443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444  *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447  (eval "$ac_try") 2>&5
15448  ac_status=$?
15449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450  (exit $ac_status); }; } &&
15451	 { ac_try='test -s conftest$ac_exeext'
15452  { (case "(($ac_try" in
15453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454  *) ac_try_echo=$ac_try;;
15455esac
15456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457  (eval "$ac_try") 2>&5
15458  ac_status=$?
15459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460  (exit $ac_status); }; }; then
15461  eval "$as_ac_var=yes"
15462else
15463  echo "$as_me: failed program was:" >&5
15464sed 's/^/| /' conftest.$ac_ext >&5
15465
15466	eval "$as_ac_var=no"
15467fi
15468
15469rm -f core conftest.err conftest.$ac_objext \
15470      conftest$ac_exeext conftest.$ac_ext
15471fi
15472ac_res=`eval echo '${'$as_ac_var'}'`
15473	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15474echo "${ECHO_T}$ac_res" >&6; }
15475if test `eval echo '${'$as_ac_var'}'` = yes; then
15476  cat >>confdefs.h <<_ACEOF
15477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15478_ACEOF
15479
15480fi
15481done
15482
15483
15484
15485
15486
15487for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15488do
15489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15493  echo $ECHO_N "(cached) $ECHO_C" >&6
15494else
15495  cat >conftest.$ac_ext <<_ACEOF
15496/* confdefs.h.  */
15497_ACEOF
15498cat confdefs.h >>conftest.$ac_ext
15499cat >>conftest.$ac_ext <<_ACEOF
15500/* end confdefs.h.  */
15501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15502   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15503#define $ac_func innocuous_$ac_func
15504
15505/* System header to define __stub macros and hopefully few prototypes,
15506    which can conflict with char $ac_func (); below.
15507    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15508    <limits.h> exists even on freestanding compilers.  */
15509
15510#ifdef __STDC__
15511# include <limits.h>
15512#else
15513# include <assert.h>
15514#endif
15515
15516#undef $ac_func
15517
15518/* Override any GCC internal prototype to avoid an error.
15519   Use char because int might match the return type of a GCC
15520   builtin and then its argument prototype would still apply.  */
15521#ifdef __cplusplus
15522extern "C"
15523#endif
15524char $ac_func ();
15525/* The GNU C library defines this for functions which it implements
15526    to always fail with ENOSYS.  Some functions are actually named
15527    something starting with __ and the normal name is an alias.  */
15528#if defined __stub_$ac_func || defined __stub___$ac_func
15529choke me
15530#endif
15531
15532int
15533main ()
15534{
15535return $ac_func ();
15536  ;
15537  return 0;
15538}
15539_ACEOF
15540rm -f conftest.$ac_objext conftest$ac_exeext
15541if { (ac_try="$ac_link"
15542case "(($ac_try" in
15543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544  *) ac_try_echo=$ac_try;;
15545esac
15546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547  (eval "$ac_link") 2>conftest.er1
15548  ac_status=$?
15549  grep -v '^ *+' conftest.er1 >conftest.err
15550  rm -f conftest.er1
15551  cat conftest.err >&5
15552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553  (exit $ac_status); } &&
15554	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15555  { (case "(($ac_try" in
15556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557  *) ac_try_echo=$ac_try;;
15558esac
15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560  (eval "$ac_try") 2>&5
15561  ac_status=$?
15562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563  (exit $ac_status); }; } &&
15564	 { ac_try='test -s conftest$ac_exeext'
15565  { (case "(($ac_try" in
15566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567  *) ac_try_echo=$ac_try;;
15568esac
15569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570  (eval "$ac_try") 2>&5
15571  ac_status=$?
15572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573  (exit $ac_status); }; }; then
15574  eval "$as_ac_var=yes"
15575else
15576  echo "$as_me: failed program was:" >&5
15577sed 's/^/| /' conftest.$ac_ext >&5
15578
15579	eval "$as_ac_var=no"
15580fi
15581
15582rm -f core conftest.err conftest.$ac_objext \
15583      conftest$ac_exeext conftest.$ac_ext
15584fi
15585ac_res=`eval echo '${'$as_ac_var'}'`
15586	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15587echo "${ECHO_T}$ac_res" >&6; }
15588if test `eval echo '${'$as_ac_var'}'` = yes; then
15589  cat >>confdefs.h <<_ACEOF
15590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15591_ACEOF
15592
15593fi
15594done
15595
15596
15597
15598
15599
15600
15601for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15602do
15603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15604{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15607  echo $ECHO_N "(cached) $ECHO_C" >&6
15608else
15609  cat >conftest.$ac_ext <<_ACEOF
15610/* confdefs.h.  */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
15614/* end confdefs.h.  */
15615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15616   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15617#define $ac_func innocuous_$ac_func
15618
15619/* System header to define __stub macros and hopefully few prototypes,
15620    which can conflict with char $ac_func (); below.
15621    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622    <limits.h> exists even on freestanding compilers.  */
15623
15624#ifdef __STDC__
15625# include <limits.h>
15626#else
15627# include <assert.h>
15628#endif
15629
15630#undef $ac_func
15631
15632/* Override any GCC internal prototype to avoid an error.
15633   Use char because int might match the return type of a GCC
15634   builtin and then its argument prototype would still apply.  */
15635#ifdef __cplusplus
15636extern "C"
15637#endif
15638char $ac_func ();
15639/* The GNU C library defines this for functions which it implements
15640    to always fail with ENOSYS.  Some functions are actually named
15641    something starting with __ and the normal name is an alias.  */
15642#if defined __stub_$ac_func || defined __stub___$ac_func
15643choke me
15644#endif
15645
15646int
15647main ()
15648{
15649return $ac_func ();
15650  ;
15651  return 0;
15652}
15653_ACEOF
15654rm -f conftest.$ac_objext conftest$ac_exeext
15655if { (ac_try="$ac_link"
15656case "(($ac_try" in
15657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658  *) ac_try_echo=$ac_try;;
15659esac
15660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661  (eval "$ac_link") 2>conftest.er1
15662  ac_status=$?
15663  grep -v '^ *+' conftest.er1 >conftest.err
15664  rm -f conftest.er1
15665  cat conftest.err >&5
15666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667  (exit $ac_status); } &&
15668	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15669  { (case "(($ac_try" in
15670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671  *) ac_try_echo=$ac_try;;
15672esac
15673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674  (eval "$ac_try") 2>&5
15675  ac_status=$?
15676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677  (exit $ac_status); }; } &&
15678	 { ac_try='test -s conftest$ac_exeext'
15679  { (case "(($ac_try" in
15680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681  *) ac_try_echo=$ac_try;;
15682esac
15683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684  (eval "$ac_try") 2>&5
15685  ac_status=$?
15686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687  (exit $ac_status); }; }; then
15688  eval "$as_ac_var=yes"
15689else
15690  echo "$as_me: failed program was:" >&5
15691sed 's/^/| /' conftest.$ac_ext >&5
15692
15693	eval "$as_ac_var=no"
15694fi
15695
15696rm -f core conftest.err conftest.$ac_objext \
15697      conftest$ac_exeext conftest.$ac_ext
15698fi
15699ac_res=`eval echo '${'$as_ac_var'}'`
15700	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15701echo "${ECHO_T}$ac_res" >&6; }
15702if test `eval echo '${'$as_ac_var'}'` = yes; then
15703  cat >>confdefs.h <<_ACEOF
15704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15705_ACEOF
15706
15707fi
15708done
15709
15710
15711
15712for ac_func in futimes futimens
15713do
15714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15715{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15718  echo $ECHO_N "(cached) $ECHO_C" >&6
15719else
15720  cat >conftest.$ac_ext <<_ACEOF
15721/* confdefs.h.  */
15722_ACEOF
15723cat confdefs.h >>conftest.$ac_ext
15724cat >>conftest.$ac_ext <<_ACEOF
15725/* end confdefs.h.  */
15726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15727   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15728#define $ac_func innocuous_$ac_func
15729
15730/* System header to define __stub macros and hopefully few prototypes,
15731    which can conflict with char $ac_func (); below.
15732    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15733    <limits.h> exists even on freestanding compilers.  */
15734
15735#ifdef __STDC__
15736# include <limits.h>
15737#else
15738# include <assert.h>
15739#endif
15740
15741#undef $ac_func
15742
15743/* Override any GCC internal prototype to avoid an error.
15744   Use char because int might match the return type of a GCC
15745   builtin and then its argument prototype would still apply.  */
15746#ifdef __cplusplus
15747extern "C"
15748#endif
15749char $ac_func ();
15750/* The GNU C library defines this for functions which it implements
15751    to always fail with ENOSYS.  Some functions are actually named
15752    something starting with __ and the normal name is an alias.  */
15753#if defined __stub_$ac_func || defined __stub___$ac_func
15754choke me
15755#endif
15756
15757int
15758main ()
15759{
15760return $ac_func ();
15761  ;
15762  return 0;
15763}
15764_ACEOF
15765rm -f conftest.$ac_objext conftest$ac_exeext
15766if { (ac_try="$ac_link"
15767case "(($ac_try" in
15768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769  *) ac_try_echo=$ac_try;;
15770esac
15771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772  (eval "$ac_link") 2>conftest.er1
15773  ac_status=$?
15774  grep -v '^ *+' conftest.er1 >conftest.err
15775  rm -f conftest.er1
15776  cat conftest.err >&5
15777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778  (exit $ac_status); } &&
15779	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780  { (case "(($ac_try" in
15781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782  *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785  (eval "$ac_try") 2>&5
15786  ac_status=$?
15787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788  (exit $ac_status); }; } &&
15789	 { ac_try='test -s conftest$ac_exeext'
15790  { (case "(($ac_try" in
15791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792  *) ac_try_echo=$ac_try;;
15793esac
15794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795  (eval "$ac_try") 2>&5
15796  ac_status=$?
15797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798  (exit $ac_status); }; }; then
15799  eval "$as_ac_var=yes"
15800else
15801  echo "$as_me: failed program was:" >&5
15802sed 's/^/| /' conftest.$ac_ext >&5
15803
15804	eval "$as_ac_var=no"
15805fi
15806
15807rm -f core conftest.err conftest.$ac_objext \
15808      conftest$ac_exeext conftest.$ac_ext
15809fi
15810ac_res=`eval echo '${'$as_ac_var'}'`
15811	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15812echo "${ECHO_T}$ac_res" >&6; }
15813if test `eval echo '${'$as_ac_var'}'` = yes; then
15814  cat >>confdefs.h <<_ACEOF
15815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816_ACEOF
15817
15818fi
15819done
15820
15821{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15822echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15823if test "${llvm_cv_c_printf_a+set}" = set; then
15824  echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826  ac_ext=c
15827ac_cpp='$CPP $CPPFLAGS'
15828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15830ac_compiler_gnu=$ac_cv_c_compiler_gnu
15831
15832 if test "$cross_compiling" = yes; then
15833  llvmac_cv_c_printf_a=no
15834else
15835  cat >conftest.$ac_ext <<_ACEOF
15836
15837  /* confdefs.h.  */
15838_ACEOF
15839cat confdefs.h >>conftest.$ac_ext
15840cat >>conftest.$ac_ext <<_ACEOF
15841/* end confdefs.h.  */
15842
15843#include <stdio.h>
15844#include <stdlib.h>
15845
15846int
15847main ()
15848{
15849
15850volatile double A, B;
15851char Buffer[100];
15852A = 1;
15853A /= 10.0;
15854sprintf(Buffer, "%a", A);
15855B = atof(Buffer);
15856if (A != B)
15857  return (1);
15858if (A != 0x1.999999999999ap-4)
15859  return (1);
15860return (0);
15861  ;
15862  return 0;
15863}
15864_ACEOF
15865rm -f conftest$ac_exeext
15866if { (ac_try="$ac_link"
15867case "(($ac_try" in
15868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869  *) ac_try_echo=$ac_try;;
15870esac
15871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872  (eval "$ac_link") 2>&5
15873  ac_status=$?
15874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15876  { (case "(($ac_try" in
15877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878  *) ac_try_echo=$ac_try;;
15879esac
15880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881  (eval "$ac_try") 2>&5
15882  ac_status=$?
15883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884  (exit $ac_status); }; }; then
15885  llvm_cv_c_printf_a=yes
15886else
15887  echo "$as_me: program exited with status $ac_status" >&5
15888echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891( exit $ac_status )
15892llvmac_cv_c_printf_a=no
15893fi
15894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15895fi
15896
15897
15898 ac_ext=c
15899ac_cpp='$CPP $CPPFLAGS'
15900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902ac_compiler_gnu=$ac_cv_c_compiler_gnu
15903
15904fi
15905{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15906echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15907 if test "$llvm_cv_c_printf_a" = "yes"; then
15908
15909cat >>confdefs.h <<\_ACEOF
15910#define HAVE_PRINTF_A 1
15911_ACEOF
15912
15913 fi
15914
15915
15916
15917  { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15918echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15919if test "${ac_cv_func_rand48+set}" = set; then
15920  echo $ECHO_N "(cached) $ECHO_C" >&6
15921else
15922
15923    ac_ext=cpp
15924ac_cpp='$CXXCPP $CPPFLAGS'
15925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15928
15929    cat >conftest.$ac_ext <<_ACEOF
15930/* confdefs.h.  */
15931_ACEOF
15932cat confdefs.h >>conftest.$ac_ext
15933cat >>conftest.$ac_ext <<_ACEOF
15934/* end confdefs.h.  */
15935#include <stdlib.h>
15936int
15937main ()
15938{
15939srand48(0);lrand48();drand48();
15940  ;
15941  return 0;
15942}
15943_ACEOF
15944rm -f conftest.$ac_objext
15945if { (ac_try="$ac_compile"
15946case "(($ac_try" in
15947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948  *) ac_try_echo=$ac_try;;
15949esac
15950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951  (eval "$ac_compile") 2>conftest.er1
15952  ac_status=$?
15953  grep -v '^ *+' conftest.er1 >conftest.err
15954  rm -f conftest.er1
15955  cat conftest.err >&5
15956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957  (exit $ac_status); } &&
15958	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15959  { (case "(($ac_try" in
15960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961  *) ac_try_echo=$ac_try;;
15962esac
15963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964  (eval "$ac_try") 2>&5
15965  ac_status=$?
15966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967  (exit $ac_status); }; } &&
15968	 { ac_try='test -s conftest.$ac_objext'
15969  { (case "(($ac_try" in
15970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971  *) ac_try_echo=$ac_try;;
15972esac
15973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974  (eval "$ac_try") 2>&5
15975  ac_status=$?
15976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977  (exit $ac_status); }; }; then
15978  ac_cv_func_rand48=yes
15979else
15980  echo "$as_me: failed program was:" >&5
15981sed 's/^/| /' conftest.$ac_ext >&5
15982
15983	ac_cv_func_rand48=no
15984fi
15985
15986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987    ac_ext=c
15988ac_cpp='$CPP $CPPFLAGS'
15989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15991ac_compiler_gnu=$ac_cv_c_compiler_gnu
15992
15993
15994fi
15995{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15996echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15997
15998if test "$ac_cv_func_rand48" = "yes" ; then
15999
16000cat >>confdefs.h <<\_ACEOF
16001#define HAVE_RAND48 1
16002_ACEOF
16003
16004fi
16005
16006
16007{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16008echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16009if test "${ac_cv_have_decl_arc4random+set}" = set; then
16010  echo $ECHO_N "(cached) $ECHO_C" >&6
16011else
16012  cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h.  */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h.  */
16018$ac_includes_default
16019int
16020main ()
16021{
16022#ifndef arc4random
16023  char *p = (char *) arc4random;
16024  return !p;
16025#endif
16026
16027  ;
16028  return 0;
16029}
16030_ACEOF
16031rm -f conftest.$ac_objext
16032if { (ac_try="$ac_compile"
16033case "(($ac_try" in
16034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035  *) ac_try_echo=$ac_try;;
16036esac
16037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038  (eval "$ac_compile") 2>conftest.er1
16039  ac_status=$?
16040  grep -v '^ *+' conftest.er1 >conftest.err
16041  rm -f conftest.er1
16042  cat conftest.err >&5
16043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044  (exit $ac_status); } &&
16045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16046  { (case "(($ac_try" in
16047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048  *) ac_try_echo=$ac_try;;
16049esac
16050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051  (eval "$ac_try") 2>&5
16052  ac_status=$?
16053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054  (exit $ac_status); }; } &&
16055	 { ac_try='test -s conftest.$ac_objext'
16056  { (case "(($ac_try" in
16057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058  *) ac_try_echo=$ac_try;;
16059esac
16060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061  (eval "$ac_try") 2>&5
16062  ac_status=$?
16063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064  (exit $ac_status); }; }; then
16065  ac_cv_have_decl_arc4random=yes
16066else
16067  echo "$as_me: failed program was:" >&5
16068sed 's/^/| /' conftest.$ac_ext >&5
16069
16070	ac_cv_have_decl_arc4random=no
16071fi
16072
16073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074fi
16075{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16076echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16077if test $ac_cv_have_decl_arc4random = yes; then
16078
16079cat >>confdefs.h <<_ACEOF
16080#define HAVE_DECL_ARC4RANDOM 1
16081_ACEOF
16082
16083
16084else
16085  cat >>confdefs.h <<_ACEOF
16086#define HAVE_DECL_ARC4RANDOM 0
16087_ACEOF
16088
16089
16090fi
16091
16092
16093
16094{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16095echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16096if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16097  echo $ECHO_N "(cached) $ECHO_C" >&6
16098else
16099  cat >conftest.$ac_ext <<_ACEOF
16100/* confdefs.h.  */
16101_ACEOF
16102cat confdefs.h >>conftest.$ac_ext
16103cat >>conftest.$ac_ext <<_ACEOF
16104/* end confdefs.h.  */
16105$ac_includes_default
16106int
16107main ()
16108{
16109#ifndef strerror_s
16110  char *p = (char *) strerror_s;
16111  return !p;
16112#endif
16113
16114  ;
16115  return 0;
16116}
16117_ACEOF
16118rm -f conftest.$ac_objext
16119if { (ac_try="$ac_compile"
16120case "(($ac_try" in
16121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122  *) ac_try_echo=$ac_try;;
16123esac
16124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125  (eval "$ac_compile") 2>conftest.er1
16126  ac_status=$?
16127  grep -v '^ *+' conftest.er1 >conftest.err
16128  rm -f conftest.er1
16129  cat conftest.err >&5
16130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131  (exit $ac_status); } &&
16132	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133  { (case "(($ac_try" in
16134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135  *) ac_try_echo=$ac_try;;
16136esac
16137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138  (eval "$ac_try") 2>&5
16139  ac_status=$?
16140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141  (exit $ac_status); }; } &&
16142	 { ac_try='test -s conftest.$ac_objext'
16143  { (case "(($ac_try" in
16144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145  *) ac_try_echo=$ac_try;;
16146esac
16147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148  (eval "$ac_try") 2>&5
16149  ac_status=$?
16150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151  (exit $ac_status); }; }; then
16152  ac_cv_have_decl_strerror_s=yes
16153else
16154  echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157	ac_cv_have_decl_strerror_s=no
16158fi
16159
16160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161fi
16162{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16163echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16164if test $ac_cv_have_decl_strerror_s = yes; then
16165
16166cat >>confdefs.h <<_ACEOF
16167#define HAVE_DECL_STRERROR_S 1
16168_ACEOF
16169
16170
16171else
16172  cat >>confdefs.h <<_ACEOF
16173#define HAVE_DECL_STRERROR_S 0
16174_ACEOF
16175
16176
16177fi
16178
16179
16180
16181if test "$llvm_cv_os_type" = "MingW" ; then
16182  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16183echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16184if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16185  echo $ECHO_N "(cached) $ECHO_C" >&6
16186else
16187  ac_check_lib_save_LIBS=$LIBS
16188LIBS="-lgcc  $LIBS"
16189cat >conftest.$ac_ext <<_ACEOF
16190/* confdefs.h.  */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h.  */
16195
16196/* Override any GCC internal prototype to avoid an error.
16197   Use char because int might match the return type of a GCC
16198   builtin and then its argument prototype would still apply.  */
16199#ifdef __cplusplus
16200extern "C"
16201#endif
16202char _alloca ();
16203int
16204main ()
16205{
16206return _alloca ();
16207  ;
16208  return 0;
16209}
16210_ACEOF
16211rm -f conftest.$ac_objext conftest$ac_exeext
16212if { (ac_try="$ac_link"
16213case "(($ac_try" in
16214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215  *) ac_try_echo=$ac_try;;
16216esac
16217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218  (eval "$ac_link") 2>conftest.er1
16219  ac_status=$?
16220  grep -v '^ *+' conftest.er1 >conftest.err
16221  rm -f conftest.er1
16222  cat conftest.err >&5
16223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224  (exit $ac_status); } &&
16225	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16226  { (case "(($ac_try" in
16227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228  *) ac_try_echo=$ac_try;;
16229esac
16230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231  (eval "$ac_try") 2>&5
16232  ac_status=$?
16233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234  (exit $ac_status); }; } &&
16235	 { ac_try='test -s conftest$ac_exeext'
16236  { (case "(($ac_try" in
16237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238  *) ac_try_echo=$ac_try;;
16239esac
16240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241  (eval "$ac_try") 2>&5
16242  ac_status=$?
16243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244  (exit $ac_status); }; }; then
16245  ac_cv_lib_gcc__alloca=yes
16246else
16247  echo "$as_me: failed program was:" >&5
16248sed 's/^/| /' conftest.$ac_ext >&5
16249
16250	ac_cv_lib_gcc__alloca=no
16251fi
16252
16253rm -f core conftest.err conftest.$ac_objext \
16254      conftest$ac_exeext conftest.$ac_ext
16255LIBS=$ac_check_lib_save_LIBS
16256fi
16257{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16258echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16259if test $ac_cv_lib_gcc__alloca = yes; then
16260
16261cat >>confdefs.h <<\_ACEOF
16262#define HAVE__ALLOCA 1
16263_ACEOF
16264
16265fi
16266
16267  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16268echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16269if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16270  echo $ECHO_N "(cached) $ECHO_C" >&6
16271else
16272  ac_check_lib_save_LIBS=$LIBS
16273LIBS="-lgcc  $LIBS"
16274cat >conftest.$ac_ext <<_ACEOF
16275/* confdefs.h.  */
16276_ACEOF
16277cat confdefs.h >>conftest.$ac_ext
16278cat >>conftest.$ac_ext <<_ACEOF
16279/* end confdefs.h.  */
16280
16281/* Override any GCC internal prototype to avoid an error.
16282   Use char because int might match the return type of a GCC
16283   builtin and then its argument prototype would still apply.  */
16284#ifdef __cplusplus
16285extern "C"
16286#endif
16287char __alloca ();
16288int
16289main ()
16290{
16291return __alloca ();
16292  ;
16293  return 0;
16294}
16295_ACEOF
16296rm -f conftest.$ac_objext conftest$ac_exeext
16297if { (ac_try="$ac_link"
16298case "(($ac_try" in
16299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300  *) ac_try_echo=$ac_try;;
16301esac
16302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303  (eval "$ac_link") 2>conftest.er1
16304  ac_status=$?
16305  grep -v '^ *+' conftest.er1 >conftest.err
16306  rm -f conftest.er1
16307  cat conftest.err >&5
16308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309  (exit $ac_status); } &&
16310	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16311  { (case "(($ac_try" in
16312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313  *) ac_try_echo=$ac_try;;
16314esac
16315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316  (eval "$ac_try") 2>&5
16317  ac_status=$?
16318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319  (exit $ac_status); }; } &&
16320	 { ac_try='test -s conftest$ac_exeext'
16321  { (case "(($ac_try" in
16322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323  *) ac_try_echo=$ac_try;;
16324esac
16325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326  (eval "$ac_try") 2>&5
16327  ac_status=$?
16328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329  (exit $ac_status); }; }; then
16330  ac_cv_lib_gcc___alloca=yes
16331else
16332  echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335	ac_cv_lib_gcc___alloca=no
16336fi
16337
16338rm -f core conftest.err conftest.$ac_objext \
16339      conftest$ac_exeext conftest.$ac_ext
16340LIBS=$ac_check_lib_save_LIBS
16341fi
16342{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16343echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16344if test $ac_cv_lib_gcc___alloca = yes; then
16345
16346cat >>confdefs.h <<\_ACEOF
16347#define HAVE___ALLOCA 1
16348_ACEOF
16349
16350fi
16351
16352  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16353echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16354if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16355  echo $ECHO_N "(cached) $ECHO_C" >&6
16356else
16357  ac_check_lib_save_LIBS=$LIBS
16358LIBS="-lgcc  $LIBS"
16359cat >conftest.$ac_ext <<_ACEOF
16360/* confdefs.h.  */
16361_ACEOF
16362cat confdefs.h >>conftest.$ac_ext
16363cat >>conftest.$ac_ext <<_ACEOF
16364/* end confdefs.h.  */
16365
16366/* Override any GCC internal prototype to avoid an error.
16367   Use char because int might match the return type of a GCC
16368   builtin and then its argument prototype would still apply.  */
16369#ifdef __cplusplus
16370extern "C"
16371#endif
16372char __chkstk ();
16373int
16374main ()
16375{
16376return __chkstk ();
16377  ;
16378  return 0;
16379}
16380_ACEOF
16381rm -f conftest.$ac_objext conftest$ac_exeext
16382if { (ac_try="$ac_link"
16383case "(($ac_try" in
16384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385  *) ac_try_echo=$ac_try;;
16386esac
16387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388  (eval "$ac_link") 2>conftest.er1
16389  ac_status=$?
16390  grep -v '^ *+' conftest.er1 >conftest.err
16391  rm -f conftest.er1
16392  cat conftest.err >&5
16393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394  (exit $ac_status); } &&
16395	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16396  { (case "(($ac_try" in
16397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398  *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401  (eval "$ac_try") 2>&5
16402  ac_status=$?
16403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404  (exit $ac_status); }; } &&
16405	 { ac_try='test -s conftest$ac_exeext'
16406  { (case "(($ac_try" in
16407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408  *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411  (eval "$ac_try") 2>&5
16412  ac_status=$?
16413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414  (exit $ac_status); }; }; then
16415  ac_cv_lib_gcc___chkstk=yes
16416else
16417  echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420	ac_cv_lib_gcc___chkstk=no
16421fi
16422
16423rm -f core conftest.err conftest.$ac_objext \
16424      conftest$ac_exeext conftest.$ac_ext
16425LIBS=$ac_check_lib_save_LIBS
16426fi
16427{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16428echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16429if test $ac_cv_lib_gcc___chkstk = yes; then
16430
16431cat >>confdefs.h <<\_ACEOF
16432#define HAVE___CHKSTK 1
16433_ACEOF
16434
16435fi
16436
16437  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16438echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16439if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16440  echo $ECHO_N "(cached) $ECHO_C" >&6
16441else
16442  ac_check_lib_save_LIBS=$LIBS
16443LIBS="-lgcc  $LIBS"
16444cat >conftest.$ac_ext <<_ACEOF
16445/* confdefs.h.  */
16446_ACEOF
16447cat confdefs.h >>conftest.$ac_ext
16448cat >>conftest.$ac_ext <<_ACEOF
16449/* end confdefs.h.  */
16450
16451/* Override any GCC internal prototype to avoid an error.
16452   Use char because int might match the return type of a GCC
16453   builtin and then its argument prototype would still apply.  */
16454#ifdef __cplusplus
16455extern "C"
16456#endif
16457char ___chkstk ();
16458int
16459main ()
16460{
16461return ___chkstk ();
16462  ;
16463  return 0;
16464}
16465_ACEOF
16466rm -f conftest.$ac_objext conftest$ac_exeext
16467if { (ac_try="$ac_link"
16468case "(($ac_try" in
16469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470  *) ac_try_echo=$ac_try;;
16471esac
16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473  (eval "$ac_link") 2>conftest.er1
16474  ac_status=$?
16475  grep -v '^ *+' conftest.er1 >conftest.err
16476  rm -f conftest.er1
16477  cat conftest.err >&5
16478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479  (exit $ac_status); } &&
16480	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481  { (case "(($ac_try" in
16482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483  *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486  (eval "$ac_try") 2>&5
16487  ac_status=$?
16488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489  (exit $ac_status); }; } &&
16490	 { ac_try='test -s conftest$ac_exeext'
16491  { (case "(($ac_try" in
16492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493  *) ac_try_echo=$ac_try;;
16494esac
16495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496  (eval "$ac_try") 2>&5
16497  ac_status=$?
16498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499  (exit $ac_status); }; }; then
16500  ac_cv_lib_gcc____chkstk=yes
16501else
16502  echo "$as_me: failed program was:" >&5
16503sed 's/^/| /' conftest.$ac_ext >&5
16504
16505	ac_cv_lib_gcc____chkstk=no
16506fi
16507
16508rm -f core conftest.err conftest.$ac_objext \
16509      conftest$ac_exeext conftest.$ac_ext
16510LIBS=$ac_check_lib_save_LIBS
16511fi
16512{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16513echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16514if test $ac_cv_lib_gcc____chkstk = yes; then
16515
16516cat >>confdefs.h <<\_ACEOF
16517#define HAVE____CHKSTK 1
16518_ACEOF
16519
16520fi
16521
16522
16523  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16524echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16525if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16526  echo $ECHO_N "(cached) $ECHO_C" >&6
16527else
16528  ac_check_lib_save_LIBS=$LIBS
16529LIBS="-lgcc  $LIBS"
16530cat >conftest.$ac_ext <<_ACEOF
16531/* confdefs.h.  */
16532_ACEOF
16533cat confdefs.h >>conftest.$ac_ext
16534cat >>conftest.$ac_ext <<_ACEOF
16535/* end confdefs.h.  */
16536
16537/* Override any GCC internal prototype to avoid an error.
16538   Use char because int might match the return type of a GCC
16539   builtin and then its argument prototype would still apply.  */
16540#ifdef __cplusplus
16541extern "C"
16542#endif
16543char __ashldi3 ();
16544int
16545main ()
16546{
16547return __ashldi3 ();
16548  ;
16549  return 0;
16550}
16551_ACEOF
16552rm -f conftest.$ac_objext conftest$ac_exeext
16553if { (ac_try="$ac_link"
16554case "(($ac_try" in
16555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556  *) ac_try_echo=$ac_try;;
16557esac
16558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559  (eval "$ac_link") 2>conftest.er1
16560  ac_status=$?
16561  grep -v '^ *+' conftest.er1 >conftest.err
16562  rm -f conftest.er1
16563  cat conftest.err >&5
16564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565  (exit $ac_status); } &&
16566	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567  { (case "(($ac_try" in
16568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569  *) ac_try_echo=$ac_try;;
16570esac
16571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572  (eval "$ac_try") 2>&5
16573  ac_status=$?
16574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575  (exit $ac_status); }; } &&
16576	 { ac_try='test -s conftest$ac_exeext'
16577  { (case "(($ac_try" in
16578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579  *) ac_try_echo=$ac_try;;
16580esac
16581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582  (eval "$ac_try") 2>&5
16583  ac_status=$?
16584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585  (exit $ac_status); }; }; then
16586  ac_cv_lib_gcc___ashldi3=yes
16587else
16588  echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591	ac_cv_lib_gcc___ashldi3=no
16592fi
16593
16594rm -f core conftest.err conftest.$ac_objext \
16595      conftest$ac_exeext conftest.$ac_ext
16596LIBS=$ac_check_lib_save_LIBS
16597fi
16598{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16599echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16600if test $ac_cv_lib_gcc___ashldi3 = yes; then
16601
16602cat >>confdefs.h <<\_ACEOF
16603#define HAVE___ASHLDI3 1
16604_ACEOF
16605
16606fi
16607
16608  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16609echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16610if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16611  echo $ECHO_N "(cached) $ECHO_C" >&6
16612else
16613  ac_check_lib_save_LIBS=$LIBS
16614LIBS="-lgcc  $LIBS"
16615cat >conftest.$ac_ext <<_ACEOF
16616/* confdefs.h.  */
16617_ACEOF
16618cat confdefs.h >>conftest.$ac_ext
16619cat >>conftest.$ac_ext <<_ACEOF
16620/* end confdefs.h.  */
16621
16622/* Override any GCC internal prototype to avoid an error.
16623   Use char because int might match the return type of a GCC
16624   builtin and then its argument prototype would still apply.  */
16625#ifdef __cplusplus
16626extern "C"
16627#endif
16628char __ashrdi3 ();
16629int
16630main ()
16631{
16632return __ashrdi3 ();
16633  ;
16634  return 0;
16635}
16636_ACEOF
16637rm -f conftest.$ac_objext conftest$ac_exeext
16638if { (ac_try="$ac_link"
16639case "(($ac_try" in
16640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641  *) ac_try_echo=$ac_try;;
16642esac
16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644  (eval "$ac_link") 2>conftest.er1
16645  ac_status=$?
16646  grep -v '^ *+' conftest.er1 >conftest.err
16647  rm -f conftest.er1
16648  cat conftest.err >&5
16649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650  (exit $ac_status); } &&
16651	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652  { (case "(($ac_try" in
16653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654  *) ac_try_echo=$ac_try;;
16655esac
16656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657  (eval "$ac_try") 2>&5
16658  ac_status=$?
16659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660  (exit $ac_status); }; } &&
16661	 { ac_try='test -s conftest$ac_exeext'
16662  { (case "(($ac_try" in
16663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664  *) ac_try_echo=$ac_try;;
16665esac
16666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667  (eval "$ac_try") 2>&5
16668  ac_status=$?
16669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670  (exit $ac_status); }; }; then
16671  ac_cv_lib_gcc___ashrdi3=yes
16672else
16673  echo "$as_me: failed program was:" >&5
16674sed 's/^/| /' conftest.$ac_ext >&5
16675
16676	ac_cv_lib_gcc___ashrdi3=no
16677fi
16678
16679rm -f core conftest.err conftest.$ac_objext \
16680      conftest$ac_exeext conftest.$ac_ext
16681LIBS=$ac_check_lib_save_LIBS
16682fi
16683{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16684echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16685if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16686
16687cat >>confdefs.h <<\_ACEOF
16688#define HAVE___ASHRDI3 1
16689_ACEOF
16690
16691fi
16692
16693  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16694echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16695if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16696  echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698  ac_check_lib_save_LIBS=$LIBS
16699LIBS="-lgcc  $LIBS"
16700cat >conftest.$ac_ext <<_ACEOF
16701/* confdefs.h.  */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h.  */
16706
16707/* Override any GCC internal prototype to avoid an error.
16708   Use char because int might match the return type of a GCC
16709   builtin and then its argument prototype would still apply.  */
16710#ifdef __cplusplus
16711extern "C"
16712#endif
16713char __divdi3 ();
16714int
16715main ()
16716{
16717return __divdi3 ();
16718  ;
16719  return 0;
16720}
16721_ACEOF
16722rm -f conftest.$ac_objext conftest$ac_exeext
16723if { (ac_try="$ac_link"
16724case "(($ac_try" in
16725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726  *) ac_try_echo=$ac_try;;
16727esac
16728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729  (eval "$ac_link") 2>conftest.er1
16730  ac_status=$?
16731  grep -v '^ *+' conftest.er1 >conftest.err
16732  rm -f conftest.er1
16733  cat conftest.err >&5
16734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735  (exit $ac_status); } &&
16736	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737  { (case "(($ac_try" in
16738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739  *) ac_try_echo=$ac_try;;
16740esac
16741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742  (eval "$ac_try") 2>&5
16743  ac_status=$?
16744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745  (exit $ac_status); }; } &&
16746	 { ac_try='test -s conftest$ac_exeext'
16747  { (case "(($ac_try" in
16748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749  *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752  (eval "$ac_try") 2>&5
16753  ac_status=$?
16754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755  (exit $ac_status); }; }; then
16756  ac_cv_lib_gcc___divdi3=yes
16757else
16758  echo "$as_me: failed program was:" >&5
16759sed 's/^/| /' conftest.$ac_ext >&5
16760
16761	ac_cv_lib_gcc___divdi3=no
16762fi
16763
16764rm -f core conftest.err conftest.$ac_objext \
16765      conftest$ac_exeext conftest.$ac_ext
16766LIBS=$ac_check_lib_save_LIBS
16767fi
16768{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16769echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16770if test $ac_cv_lib_gcc___divdi3 = yes; then
16771
16772cat >>confdefs.h <<\_ACEOF
16773#define HAVE___DIVDI3 1
16774_ACEOF
16775
16776fi
16777
16778  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16779echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16780if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16781  echo $ECHO_N "(cached) $ECHO_C" >&6
16782else
16783  ac_check_lib_save_LIBS=$LIBS
16784LIBS="-lgcc  $LIBS"
16785cat >conftest.$ac_ext <<_ACEOF
16786/* confdefs.h.  */
16787_ACEOF
16788cat confdefs.h >>conftest.$ac_ext
16789cat >>conftest.$ac_ext <<_ACEOF
16790/* end confdefs.h.  */
16791
16792/* Override any GCC internal prototype to avoid an error.
16793   Use char because int might match the return type of a GCC
16794   builtin and then its argument prototype would still apply.  */
16795#ifdef __cplusplus
16796extern "C"
16797#endif
16798char __fixdfdi ();
16799int
16800main ()
16801{
16802return __fixdfdi ();
16803  ;
16804  return 0;
16805}
16806_ACEOF
16807rm -f conftest.$ac_objext conftest$ac_exeext
16808if { (ac_try="$ac_link"
16809case "(($ac_try" in
16810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811  *) ac_try_echo=$ac_try;;
16812esac
16813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814  (eval "$ac_link") 2>conftest.er1
16815  ac_status=$?
16816  grep -v '^ *+' conftest.er1 >conftest.err
16817  rm -f conftest.er1
16818  cat conftest.err >&5
16819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820  (exit $ac_status); } &&
16821	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822  { (case "(($ac_try" in
16823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824  *) ac_try_echo=$ac_try;;
16825esac
16826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827  (eval "$ac_try") 2>&5
16828  ac_status=$?
16829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830  (exit $ac_status); }; } &&
16831	 { ac_try='test -s conftest$ac_exeext'
16832  { (case "(($ac_try" in
16833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834  *) ac_try_echo=$ac_try;;
16835esac
16836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837  (eval "$ac_try") 2>&5
16838  ac_status=$?
16839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840  (exit $ac_status); }; }; then
16841  ac_cv_lib_gcc___fixdfdi=yes
16842else
16843  echo "$as_me: failed program was:" >&5
16844sed 's/^/| /' conftest.$ac_ext >&5
16845
16846	ac_cv_lib_gcc___fixdfdi=no
16847fi
16848
16849rm -f core conftest.err conftest.$ac_objext \
16850      conftest$ac_exeext conftest.$ac_ext
16851LIBS=$ac_check_lib_save_LIBS
16852fi
16853{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16854echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16855if test $ac_cv_lib_gcc___fixdfdi = yes; then
16856
16857cat >>confdefs.h <<\_ACEOF
16858#define HAVE___FIXDFDI 1
16859_ACEOF
16860
16861fi
16862
16863  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16864echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16865if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16866  echo $ECHO_N "(cached) $ECHO_C" >&6
16867else
16868  ac_check_lib_save_LIBS=$LIBS
16869LIBS="-lgcc  $LIBS"
16870cat >conftest.$ac_ext <<_ACEOF
16871/* confdefs.h.  */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h.  */
16876
16877/* Override any GCC internal prototype to avoid an error.
16878   Use char because int might match the return type of a GCC
16879   builtin and then its argument prototype would still apply.  */
16880#ifdef __cplusplus
16881extern "C"
16882#endif
16883char __fixsfdi ();
16884int
16885main ()
16886{
16887return __fixsfdi ();
16888  ;
16889  return 0;
16890}
16891_ACEOF
16892rm -f conftest.$ac_objext conftest$ac_exeext
16893if { (ac_try="$ac_link"
16894case "(($ac_try" in
16895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896  *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899  (eval "$ac_link") 2>conftest.er1
16900  ac_status=$?
16901  grep -v '^ *+' conftest.er1 >conftest.err
16902  rm -f conftest.er1
16903  cat conftest.err >&5
16904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905  (exit $ac_status); } &&
16906	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907  { (case "(($ac_try" in
16908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909  *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912  (eval "$ac_try") 2>&5
16913  ac_status=$?
16914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915  (exit $ac_status); }; } &&
16916	 { ac_try='test -s conftest$ac_exeext'
16917  { (case "(($ac_try" in
16918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919  *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922  (eval "$ac_try") 2>&5
16923  ac_status=$?
16924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925  (exit $ac_status); }; }; then
16926  ac_cv_lib_gcc___fixsfdi=yes
16927else
16928  echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931	ac_cv_lib_gcc___fixsfdi=no
16932fi
16933
16934rm -f core conftest.err conftest.$ac_objext \
16935      conftest$ac_exeext conftest.$ac_ext
16936LIBS=$ac_check_lib_save_LIBS
16937fi
16938{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16939echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16940if test $ac_cv_lib_gcc___fixsfdi = yes; then
16941
16942cat >>confdefs.h <<\_ACEOF
16943#define HAVE___FIXSFDI 1
16944_ACEOF
16945
16946fi
16947
16948  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16949echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16950if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16951  echo $ECHO_N "(cached) $ECHO_C" >&6
16952else
16953  ac_check_lib_save_LIBS=$LIBS
16954LIBS="-lgcc  $LIBS"
16955cat >conftest.$ac_ext <<_ACEOF
16956/* confdefs.h.  */
16957_ACEOF
16958cat confdefs.h >>conftest.$ac_ext
16959cat >>conftest.$ac_ext <<_ACEOF
16960/* end confdefs.h.  */
16961
16962/* Override any GCC internal prototype to avoid an error.
16963   Use char because int might match the return type of a GCC
16964   builtin and then its argument prototype would still apply.  */
16965#ifdef __cplusplus
16966extern "C"
16967#endif
16968char __floatdidf ();
16969int
16970main ()
16971{
16972return __floatdidf ();
16973  ;
16974  return 0;
16975}
16976_ACEOF
16977rm -f conftest.$ac_objext conftest$ac_exeext
16978if { (ac_try="$ac_link"
16979case "(($ac_try" in
16980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981  *) ac_try_echo=$ac_try;;
16982esac
16983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984  (eval "$ac_link") 2>conftest.er1
16985  ac_status=$?
16986  grep -v '^ *+' conftest.er1 >conftest.err
16987  rm -f conftest.er1
16988  cat conftest.err >&5
16989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990  (exit $ac_status); } &&
16991	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16992  { (case "(($ac_try" in
16993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994  *) ac_try_echo=$ac_try;;
16995esac
16996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997  (eval "$ac_try") 2>&5
16998  ac_status=$?
16999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000  (exit $ac_status); }; } &&
17001	 { ac_try='test -s conftest$ac_exeext'
17002  { (case "(($ac_try" in
17003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004  *) ac_try_echo=$ac_try;;
17005esac
17006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007  (eval "$ac_try") 2>&5
17008  ac_status=$?
17009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010  (exit $ac_status); }; }; then
17011  ac_cv_lib_gcc___floatdidf=yes
17012else
17013  echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
17016	ac_cv_lib_gcc___floatdidf=no
17017fi
17018
17019rm -f core conftest.err conftest.$ac_objext \
17020      conftest$ac_exeext conftest.$ac_ext
17021LIBS=$ac_check_lib_save_LIBS
17022fi
17023{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17024echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17025if test $ac_cv_lib_gcc___floatdidf = yes; then
17026
17027cat >>confdefs.h <<\_ACEOF
17028#define HAVE___FLOATDIDF 1
17029_ACEOF
17030
17031fi
17032
17033  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17034echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17035if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17036  echo $ECHO_N "(cached) $ECHO_C" >&6
17037else
17038  ac_check_lib_save_LIBS=$LIBS
17039LIBS="-lgcc  $LIBS"
17040cat >conftest.$ac_ext <<_ACEOF
17041/* confdefs.h.  */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h.  */
17046
17047/* Override any GCC internal prototype to avoid an error.
17048   Use char because int might match the return type of a GCC
17049   builtin and then its argument prototype would still apply.  */
17050#ifdef __cplusplus
17051extern "C"
17052#endif
17053char __lshrdi3 ();
17054int
17055main ()
17056{
17057return __lshrdi3 ();
17058  ;
17059  return 0;
17060}
17061_ACEOF
17062rm -f conftest.$ac_objext conftest$ac_exeext
17063if { (ac_try="$ac_link"
17064case "(($ac_try" in
17065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066  *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069  (eval "$ac_link") 2>conftest.er1
17070  ac_status=$?
17071  grep -v '^ *+' conftest.er1 >conftest.err
17072  rm -f conftest.er1
17073  cat conftest.err >&5
17074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075  (exit $ac_status); } &&
17076	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077  { (case "(($ac_try" in
17078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079  *) ac_try_echo=$ac_try;;
17080esac
17081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082  (eval "$ac_try") 2>&5
17083  ac_status=$?
17084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085  (exit $ac_status); }; } &&
17086	 { ac_try='test -s conftest$ac_exeext'
17087  { (case "(($ac_try" in
17088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089  *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092  (eval "$ac_try") 2>&5
17093  ac_status=$?
17094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095  (exit $ac_status); }; }; then
17096  ac_cv_lib_gcc___lshrdi3=yes
17097else
17098  echo "$as_me: failed program was:" >&5
17099sed 's/^/| /' conftest.$ac_ext >&5
17100
17101	ac_cv_lib_gcc___lshrdi3=no
17102fi
17103
17104rm -f core conftest.err conftest.$ac_objext \
17105      conftest$ac_exeext conftest.$ac_ext
17106LIBS=$ac_check_lib_save_LIBS
17107fi
17108{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17109echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17110if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17111
17112cat >>confdefs.h <<\_ACEOF
17113#define HAVE___LSHRDI3 1
17114_ACEOF
17115
17116fi
17117
17118  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17119echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17120if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17121  echo $ECHO_N "(cached) $ECHO_C" >&6
17122else
17123  ac_check_lib_save_LIBS=$LIBS
17124LIBS="-lgcc  $LIBS"
17125cat >conftest.$ac_ext <<_ACEOF
17126/* confdefs.h.  */
17127_ACEOF
17128cat confdefs.h >>conftest.$ac_ext
17129cat >>conftest.$ac_ext <<_ACEOF
17130/* end confdefs.h.  */
17131
17132/* Override any GCC internal prototype to avoid an error.
17133   Use char because int might match the return type of a GCC
17134   builtin and then its argument prototype would still apply.  */
17135#ifdef __cplusplus
17136extern "C"
17137#endif
17138char __moddi3 ();
17139int
17140main ()
17141{
17142return __moddi3 ();
17143  ;
17144  return 0;
17145}
17146_ACEOF
17147rm -f conftest.$ac_objext conftest$ac_exeext
17148if { (ac_try="$ac_link"
17149case "(($ac_try" in
17150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151  *) ac_try_echo=$ac_try;;
17152esac
17153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154  (eval "$ac_link") 2>conftest.er1
17155  ac_status=$?
17156  grep -v '^ *+' conftest.er1 >conftest.err
17157  rm -f conftest.er1
17158  cat conftest.err >&5
17159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160  (exit $ac_status); } &&
17161	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17162  { (case "(($ac_try" in
17163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164  *) ac_try_echo=$ac_try;;
17165esac
17166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167  (eval "$ac_try") 2>&5
17168  ac_status=$?
17169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170  (exit $ac_status); }; } &&
17171	 { ac_try='test -s conftest$ac_exeext'
17172  { (case "(($ac_try" in
17173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174  *) ac_try_echo=$ac_try;;
17175esac
17176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177  (eval "$ac_try") 2>&5
17178  ac_status=$?
17179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180  (exit $ac_status); }; }; then
17181  ac_cv_lib_gcc___moddi3=yes
17182else
17183  echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
17186	ac_cv_lib_gcc___moddi3=no
17187fi
17188
17189rm -f core conftest.err conftest.$ac_objext \
17190      conftest$ac_exeext conftest.$ac_ext
17191LIBS=$ac_check_lib_save_LIBS
17192fi
17193{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17194echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17195if test $ac_cv_lib_gcc___moddi3 = yes; then
17196
17197cat >>confdefs.h <<\_ACEOF
17198#define HAVE___MODDI3 1
17199_ACEOF
17200
17201fi
17202
17203  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17204echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17205if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17206  echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208  ac_check_lib_save_LIBS=$LIBS
17209LIBS="-lgcc  $LIBS"
17210cat >conftest.$ac_ext <<_ACEOF
17211/* confdefs.h.  */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h.  */
17216
17217/* Override any GCC internal prototype to avoid an error.
17218   Use char because int might match the return type of a GCC
17219   builtin and then its argument prototype would still apply.  */
17220#ifdef __cplusplus
17221extern "C"
17222#endif
17223char __udivdi3 ();
17224int
17225main ()
17226{
17227return __udivdi3 ();
17228  ;
17229  return 0;
17230}
17231_ACEOF
17232rm -f conftest.$ac_objext conftest$ac_exeext
17233if { (ac_try="$ac_link"
17234case "(($ac_try" in
17235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236  *) ac_try_echo=$ac_try;;
17237esac
17238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239  (eval "$ac_link") 2>conftest.er1
17240  ac_status=$?
17241  grep -v '^ *+' conftest.er1 >conftest.err
17242  rm -f conftest.er1
17243  cat conftest.err >&5
17244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245  (exit $ac_status); } &&
17246	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247  { (case "(($ac_try" in
17248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249  *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252  (eval "$ac_try") 2>&5
17253  ac_status=$?
17254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255  (exit $ac_status); }; } &&
17256	 { ac_try='test -s conftest$ac_exeext'
17257  { (case "(($ac_try" in
17258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259  *) ac_try_echo=$ac_try;;
17260esac
17261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262  (eval "$ac_try") 2>&5
17263  ac_status=$?
17264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265  (exit $ac_status); }; }; then
17266  ac_cv_lib_gcc___udivdi3=yes
17267else
17268  echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271	ac_cv_lib_gcc___udivdi3=no
17272fi
17273
17274rm -f core conftest.err conftest.$ac_objext \
17275      conftest$ac_exeext conftest.$ac_ext
17276LIBS=$ac_check_lib_save_LIBS
17277fi
17278{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17279echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17280if test $ac_cv_lib_gcc___udivdi3 = yes; then
17281
17282cat >>confdefs.h <<\_ACEOF
17283#define HAVE___UDIVDI3 1
17284_ACEOF
17285
17286fi
17287
17288  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17289echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17290if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17291  echo $ECHO_N "(cached) $ECHO_C" >&6
17292else
17293  ac_check_lib_save_LIBS=$LIBS
17294LIBS="-lgcc  $LIBS"
17295cat >conftest.$ac_ext <<_ACEOF
17296/* confdefs.h.  */
17297_ACEOF
17298cat confdefs.h >>conftest.$ac_ext
17299cat >>conftest.$ac_ext <<_ACEOF
17300/* end confdefs.h.  */
17301
17302/* Override any GCC internal prototype to avoid an error.
17303   Use char because int might match the return type of a GCC
17304   builtin and then its argument prototype would still apply.  */
17305#ifdef __cplusplus
17306extern "C"
17307#endif
17308char __umoddi3 ();
17309int
17310main ()
17311{
17312return __umoddi3 ();
17313  ;
17314  return 0;
17315}
17316_ACEOF
17317rm -f conftest.$ac_objext conftest$ac_exeext
17318if { (ac_try="$ac_link"
17319case "(($ac_try" in
17320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321  *) ac_try_echo=$ac_try;;
17322esac
17323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324  (eval "$ac_link") 2>conftest.er1
17325  ac_status=$?
17326  grep -v '^ *+' conftest.er1 >conftest.err
17327  rm -f conftest.er1
17328  cat conftest.err >&5
17329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330  (exit $ac_status); } &&
17331	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332  { (case "(($ac_try" in
17333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334  *) ac_try_echo=$ac_try;;
17335esac
17336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337  (eval "$ac_try") 2>&5
17338  ac_status=$?
17339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340  (exit $ac_status); }; } &&
17341	 { ac_try='test -s conftest$ac_exeext'
17342  { (case "(($ac_try" in
17343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344  *) ac_try_echo=$ac_try;;
17345esac
17346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347  (eval "$ac_try") 2>&5
17348  ac_status=$?
17349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350  (exit $ac_status); }; }; then
17351  ac_cv_lib_gcc___umoddi3=yes
17352else
17353  echo "$as_me: failed program was:" >&5
17354sed 's/^/| /' conftest.$ac_ext >&5
17355
17356	ac_cv_lib_gcc___umoddi3=no
17357fi
17358
17359rm -f core conftest.err conftest.$ac_objext \
17360      conftest$ac_exeext conftest.$ac_ext
17361LIBS=$ac_check_lib_save_LIBS
17362fi
17363{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17364echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17365if test $ac_cv_lib_gcc___umoddi3 = yes; then
17366
17367cat >>confdefs.h <<\_ACEOF
17368#define HAVE___UMODDI3 1
17369_ACEOF
17370
17371fi
17372
17373
17374  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17375echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17376if test "${ac_cv_lib_gcc___main+set}" = set; then
17377  echo $ECHO_N "(cached) $ECHO_C" >&6
17378else
17379  ac_check_lib_save_LIBS=$LIBS
17380LIBS="-lgcc  $LIBS"
17381cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h.  */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h.  */
17387
17388/* Override any GCC internal prototype to avoid an error.
17389   Use char because int might match the return type of a GCC
17390   builtin and then its argument prototype would still apply.  */
17391#ifdef __cplusplus
17392extern "C"
17393#endif
17394char __main ();
17395int
17396main ()
17397{
17398return __main ();
17399  ;
17400  return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext conftest$ac_exeext
17404if { (ac_try="$ac_link"
17405case "(($ac_try" in
17406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407  *) ac_try_echo=$ac_try;;
17408esac
17409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410  (eval "$ac_link") 2>conftest.er1
17411  ac_status=$?
17412  grep -v '^ *+' conftest.er1 >conftest.err
17413  rm -f conftest.er1
17414  cat conftest.err >&5
17415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416  (exit $ac_status); } &&
17417	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418  { (case "(($ac_try" in
17419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420  *) ac_try_echo=$ac_try;;
17421esac
17422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423  (eval "$ac_try") 2>&5
17424  ac_status=$?
17425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426  (exit $ac_status); }; } &&
17427	 { ac_try='test -s conftest$ac_exeext'
17428  { (case "(($ac_try" in
17429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430  *) ac_try_echo=$ac_try;;
17431esac
17432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433  (eval "$ac_try") 2>&5
17434  ac_status=$?
17435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436  (exit $ac_status); }; }; then
17437  ac_cv_lib_gcc___main=yes
17438else
17439  echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442	ac_cv_lib_gcc___main=no
17443fi
17444
17445rm -f core conftest.err conftest.$ac_objext \
17446      conftest$ac_exeext conftest.$ac_ext
17447LIBS=$ac_check_lib_save_LIBS
17448fi
17449{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17450echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17451if test $ac_cv_lib_gcc___main = yes; then
17452
17453cat >>confdefs.h <<\_ACEOF
17454#define HAVE___MAIN 1
17455_ACEOF
17456
17457fi
17458
17459  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17460echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17461if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17462  echo $ECHO_N "(cached) $ECHO_C" >&6
17463else
17464  ac_check_lib_save_LIBS=$LIBS
17465LIBS="-lgcc  $LIBS"
17466cat >conftest.$ac_ext <<_ACEOF
17467/* confdefs.h.  */
17468_ACEOF
17469cat confdefs.h >>conftest.$ac_ext
17470cat >>conftest.$ac_ext <<_ACEOF
17471/* end confdefs.h.  */
17472
17473/* Override any GCC internal prototype to avoid an error.
17474   Use char because int might match the return type of a GCC
17475   builtin and then its argument prototype would still apply.  */
17476#ifdef __cplusplus
17477extern "C"
17478#endif
17479char __cmpdi2 ();
17480int
17481main ()
17482{
17483return __cmpdi2 ();
17484  ;
17485  return 0;
17486}
17487_ACEOF
17488rm -f conftest.$ac_objext conftest$ac_exeext
17489if { (ac_try="$ac_link"
17490case "(($ac_try" in
17491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492  *) ac_try_echo=$ac_try;;
17493esac
17494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495  (eval "$ac_link") 2>conftest.er1
17496  ac_status=$?
17497  grep -v '^ *+' conftest.er1 >conftest.err
17498  rm -f conftest.er1
17499  cat conftest.err >&5
17500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501  (exit $ac_status); } &&
17502	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503  { (case "(($ac_try" in
17504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505  *) ac_try_echo=$ac_try;;
17506esac
17507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508  (eval "$ac_try") 2>&5
17509  ac_status=$?
17510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511  (exit $ac_status); }; } &&
17512	 { ac_try='test -s conftest$ac_exeext'
17513  { (case "(($ac_try" in
17514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515  *) ac_try_echo=$ac_try;;
17516esac
17517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518  (eval "$ac_try") 2>&5
17519  ac_status=$?
17520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521  (exit $ac_status); }; }; then
17522  ac_cv_lib_gcc___cmpdi2=yes
17523else
17524  echo "$as_me: failed program was:" >&5
17525sed 's/^/| /' conftest.$ac_ext >&5
17526
17527	ac_cv_lib_gcc___cmpdi2=no
17528fi
17529
17530rm -f core conftest.err conftest.$ac_objext \
17531      conftest$ac_exeext conftest.$ac_ext
17532LIBS=$ac_check_lib_save_LIBS
17533fi
17534{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17535echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17536if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17537
17538cat >>confdefs.h <<\_ACEOF
17539#define HAVE___CMPDI2 1
17540_ACEOF
17541
17542fi
17543
17544fi
17545
17546if test "$llvm_cv_os_type" = "MingW" ; then
17547  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17548echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17549  cat >conftest.$ac_ext <<_ACEOF
17550
17551  /* confdefs.h.  */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h.  */
17556
17557    #include <windows.h>
17558    #include <imagehlp.h>
17559    extern void foo(PENUMLOADED_MODULES_CALLBACK);
17560    extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17561
17562
17563_ACEOF
17564rm -f conftest.$ac_objext
17565if { (ac_try="$ac_compile"
17566case "(($ac_try" in
17567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568  *) ac_try_echo=$ac_try;;
17569esac
17570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571  (eval "$ac_compile") 2>conftest.er1
17572  ac_status=$?
17573  grep -v '^ *+' conftest.er1 >conftest.err
17574  rm -f conftest.er1
17575  cat conftest.err >&5
17576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577  (exit $ac_status); } &&
17578	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17579  { (case "(($ac_try" in
17580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581  *) ac_try_echo=$ac_try;;
17582esac
17583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584  (eval "$ac_try") 2>&5
17585  ac_status=$?
17586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587  (exit $ac_status); }; } &&
17588	 { ac_try='test -s conftest.$ac_objext'
17589  { (case "(($ac_try" in
17590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591  *) ac_try_echo=$ac_try;;
17592esac
17593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594  (eval "$ac_try") 2>&5
17595  ac_status=$?
17596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597  (exit $ac_status); }; }; then
17598
17599  { echo "$as_me:$LINENO: result: yes" >&5
17600echo "${ECHO_T}yes" >&6; }
17601  llvm_cv_win32_elmcb_pcstr="PCSTR"
17602
17603else
17604  echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607
17608  { echo "$as_me:$LINENO: result: no" >&5
17609echo "${ECHO_T}no" >&6; }
17610  llvm_cv_win32_elmcb_pcstr="PSTR"
17611
17612fi
17613
17614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615
17616cat >>confdefs.h <<_ACEOF
17617#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17618_ACEOF
17619
17620fi
17621
17622
17623
17624  { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17625echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17626if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17627  echo $ECHO_N "(cached) $ECHO_C" >&6
17628else
17629
17630    ac_ext=cpp
17631ac_cpp='$CXXCPP $CPPFLAGS'
17632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17635
17636    cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h.  */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h.  */
17642#include <math.h>
17643int
17644main ()
17645{
17646float f; isnan(f);
17647  ;
17648  return 0;
17649}
17650_ACEOF
17651rm -f conftest.$ac_objext
17652if { (ac_try="$ac_compile"
17653case "(($ac_try" in
17654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655  *) ac_try_echo=$ac_try;;
17656esac
17657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658  (eval "$ac_compile") 2>conftest.er1
17659  ac_status=$?
17660  grep -v '^ *+' conftest.er1 >conftest.err
17661  rm -f conftest.er1
17662  cat conftest.err >&5
17663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664  (exit $ac_status); } &&
17665	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17666  { (case "(($ac_try" in
17667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668  *) ac_try_echo=$ac_try;;
17669esac
17670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671  (eval "$ac_try") 2>&5
17672  ac_status=$?
17673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674  (exit $ac_status); }; } &&
17675	 { ac_try='test -s conftest.$ac_objext'
17676  { (case "(($ac_try" in
17677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678  *) ac_try_echo=$ac_try;;
17679esac
17680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681  (eval "$ac_try") 2>&5
17682  ac_status=$?
17683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684  (exit $ac_status); }; }; then
17685  ac_cv_func_isnan_in_math_h=yes
17686else
17687  echo "$as_me: failed program was:" >&5
17688sed 's/^/| /' conftest.$ac_ext >&5
17689
17690	ac_cv_func_isnan_in_math_h=no
17691fi
17692
17693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694    ac_ext=c
17695ac_cpp='$CPP $CPPFLAGS'
17696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699
17700
17701fi
17702{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17703echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17704
17705
17706if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17707
17708cat >>confdefs.h <<\_ACEOF
17709#define HAVE_ISNAN_IN_MATH_H 1
17710_ACEOF
17711
17712fi
17713
17714
17715  { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17716echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17717if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17718  echo $ECHO_N "(cached) $ECHO_C" >&6
17719else
17720
17721    ac_ext=cpp
17722ac_cpp='$CXXCPP $CPPFLAGS'
17723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17726
17727    cat >conftest.$ac_ext <<_ACEOF
17728/* confdefs.h.  */
17729_ACEOF
17730cat confdefs.h >>conftest.$ac_ext
17731cat >>conftest.$ac_ext <<_ACEOF
17732/* end confdefs.h.  */
17733#include <cmath>
17734int
17735main ()
17736{
17737float f; isnan(f);
17738  ;
17739  return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext
17743if { (ac_try="$ac_compile"
17744case "(($ac_try" in
17745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746  *) ac_try_echo=$ac_try;;
17747esac
17748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749  (eval "$ac_compile") 2>conftest.er1
17750  ac_status=$?
17751  grep -v '^ *+' conftest.er1 >conftest.err
17752  rm -f conftest.er1
17753  cat conftest.err >&5
17754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755  (exit $ac_status); } &&
17756	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17757  { (case "(($ac_try" in
17758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759  *) ac_try_echo=$ac_try;;
17760esac
17761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762  (eval "$ac_try") 2>&5
17763  ac_status=$?
17764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765  (exit $ac_status); }; } &&
17766	 { ac_try='test -s conftest.$ac_objext'
17767  { (case "(($ac_try" in
17768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769  *) ac_try_echo=$ac_try;;
17770esac
17771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772  (eval "$ac_try") 2>&5
17773  ac_status=$?
17774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775  (exit $ac_status); }; }; then
17776  ac_cv_func_isnan_in_cmath=yes
17777else
17778  echo "$as_me: failed program was:" >&5
17779sed 's/^/| /' conftest.$ac_ext >&5
17780
17781	ac_cv_func_isnan_in_cmath=no
17782fi
17783
17784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785    ac_ext=c
17786ac_cpp='$CPP $CPPFLAGS'
17787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789ac_compiler_gnu=$ac_cv_c_compiler_gnu
17790
17791
17792fi
17793{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17794echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17795
17796if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17797
17798cat >>confdefs.h <<\_ACEOF
17799#define HAVE_ISNAN_IN_CMATH 1
17800_ACEOF
17801
17802fi
17803
17804
17805  { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17806echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17807if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17808  echo $ECHO_N "(cached) $ECHO_C" >&6
17809else
17810
17811    ac_ext=cpp
17812ac_cpp='$CXXCPP $CPPFLAGS'
17813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17816
17817    cat >conftest.$ac_ext <<_ACEOF
17818/* confdefs.h.  */
17819_ACEOF
17820cat confdefs.h >>conftest.$ac_ext
17821cat >>conftest.$ac_ext <<_ACEOF
17822/* end confdefs.h.  */
17823#include <cmath>
17824int
17825main ()
17826{
17827float f; std::isnan(f);
17828  ;
17829  return 0;
17830}
17831_ACEOF
17832rm -f conftest.$ac_objext
17833if { (ac_try="$ac_compile"
17834case "(($ac_try" in
17835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836  *) ac_try_echo=$ac_try;;
17837esac
17838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839  (eval "$ac_compile") 2>conftest.er1
17840  ac_status=$?
17841  grep -v '^ *+' conftest.er1 >conftest.err
17842  rm -f conftest.er1
17843  cat conftest.err >&5
17844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845  (exit $ac_status); } &&
17846	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17847  { (case "(($ac_try" in
17848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849  *) ac_try_echo=$ac_try;;
17850esac
17851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852  (eval "$ac_try") 2>&5
17853  ac_status=$?
17854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855  (exit $ac_status); }; } &&
17856	 { ac_try='test -s conftest.$ac_objext'
17857  { (case "(($ac_try" in
17858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859  *) ac_try_echo=$ac_try;;
17860esac
17861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862  (eval "$ac_try") 2>&5
17863  ac_status=$?
17864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865  (exit $ac_status); }; }; then
17866  ac_cv_func_std_isnan_in_cmath=yes
17867else
17868  echo "$as_me: failed program was:" >&5
17869sed 's/^/| /' conftest.$ac_ext >&5
17870
17871	ac_cv_func_std_isnan_in_cmath=no
17872fi
17873
17874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875    ac_ext=c
17876ac_cpp='$CPP $CPPFLAGS'
17877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879ac_compiler_gnu=$ac_cv_c_compiler_gnu
17880
17881
17882fi
17883{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17884echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17885
17886if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17887
17888cat >>confdefs.h <<\_ACEOF
17889#define HAVE_STD_ISNAN_IN_CMATH 1
17890_ACEOF
17891
17892fi
17893
17894
17895
17896
17897  { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17898echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17899if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17900  echo $ECHO_N "(cached) $ECHO_C" >&6
17901else
17902
17903    ac_ext=cpp
17904ac_cpp='$CXXCPP $CPPFLAGS'
17905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17908
17909    cat >conftest.$ac_ext <<_ACEOF
17910/* confdefs.h.  */
17911_ACEOF
17912cat confdefs.h >>conftest.$ac_ext
17913cat >>conftest.$ac_ext <<_ACEOF
17914/* end confdefs.h.  */
17915#include <math.h>
17916int
17917main ()
17918{
17919float f; isinf(f);
17920  ;
17921  return 0;
17922}
17923_ACEOF
17924rm -f conftest.$ac_objext
17925if { (ac_try="$ac_compile"
17926case "(($ac_try" in
17927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928  *) ac_try_echo=$ac_try;;
17929esac
17930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931  (eval "$ac_compile") 2>conftest.er1
17932  ac_status=$?
17933  grep -v '^ *+' conftest.er1 >conftest.err
17934  rm -f conftest.er1
17935  cat conftest.err >&5
17936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937  (exit $ac_status); } &&
17938	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17939  { (case "(($ac_try" in
17940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941  *) ac_try_echo=$ac_try;;
17942esac
17943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944  (eval "$ac_try") 2>&5
17945  ac_status=$?
17946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947  (exit $ac_status); }; } &&
17948	 { ac_try='test -s conftest.$ac_objext'
17949  { (case "(($ac_try" in
17950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951  *) ac_try_echo=$ac_try;;
17952esac
17953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954  (eval "$ac_try") 2>&5
17955  ac_status=$?
17956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957  (exit $ac_status); }; }; then
17958  ac_cv_func_isinf_in_math_h=yes
17959else
17960  echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963	ac_cv_func_isinf_in_math_h=no
17964fi
17965
17966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17967    ac_ext=c
17968ac_cpp='$CPP $CPPFLAGS'
17969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972
17973
17974fi
17975{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17976echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17977
17978if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17979
17980cat >>confdefs.h <<\_ACEOF
17981#define HAVE_ISINF_IN_MATH_H 1
17982_ACEOF
17983
17984fi
17985
17986
17987  { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17988echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17989if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17990  echo $ECHO_N "(cached) $ECHO_C" >&6
17991else
17992
17993    ac_ext=cpp
17994ac_cpp='$CXXCPP $CPPFLAGS'
17995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17998
17999    cat >conftest.$ac_ext <<_ACEOF
18000/* confdefs.h.  */
18001_ACEOF
18002cat confdefs.h >>conftest.$ac_ext
18003cat >>conftest.$ac_ext <<_ACEOF
18004/* end confdefs.h.  */
18005#include <cmath>
18006int
18007main ()
18008{
18009float f; isinf(f);
18010  ;
18011  return 0;
18012}
18013_ACEOF
18014rm -f conftest.$ac_objext
18015if { (ac_try="$ac_compile"
18016case "(($ac_try" in
18017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018  *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021  (eval "$ac_compile") 2>conftest.er1
18022  ac_status=$?
18023  grep -v '^ *+' conftest.er1 >conftest.err
18024  rm -f conftest.er1
18025  cat conftest.err >&5
18026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027  (exit $ac_status); } &&
18028	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18029  { (case "(($ac_try" in
18030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031  *) ac_try_echo=$ac_try;;
18032esac
18033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034  (eval "$ac_try") 2>&5
18035  ac_status=$?
18036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037  (exit $ac_status); }; } &&
18038	 { ac_try='test -s conftest.$ac_objext'
18039  { (case "(($ac_try" in
18040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041  *) ac_try_echo=$ac_try;;
18042esac
18043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044  (eval "$ac_try") 2>&5
18045  ac_status=$?
18046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047  (exit $ac_status); }; }; then
18048  ac_cv_func_isinf_in_cmath=yes
18049else
18050  echo "$as_me: failed program was:" >&5
18051sed 's/^/| /' conftest.$ac_ext >&5
18052
18053	ac_cv_func_isinf_in_cmath=no
18054fi
18055
18056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057    ac_ext=c
18058ac_cpp='$CPP $CPPFLAGS'
18059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061ac_compiler_gnu=$ac_cv_c_compiler_gnu
18062
18063
18064fi
18065{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18066echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18067
18068if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18069
18070cat >>confdefs.h <<\_ACEOF
18071#define HAVE_ISINF_IN_CMATH 1
18072_ACEOF
18073
18074fi
18075
18076
18077  { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18078echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18079if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18080  echo $ECHO_N "(cached) $ECHO_C" >&6
18081else
18082
18083    ac_ext=cpp
18084ac_cpp='$CXXCPP $CPPFLAGS'
18085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18088
18089    cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h.  */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h.  */
18095#include <cmath>
18096int
18097main ()
18098{
18099float f; std::isinf(f);
18100  ;
18101  return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext
18105if { (ac_try="$ac_compile"
18106case "(($ac_try" in
18107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108  *) ac_try_echo=$ac_try;;
18109esac
18110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111  (eval "$ac_compile") 2>conftest.er1
18112  ac_status=$?
18113  grep -v '^ *+' conftest.er1 >conftest.err
18114  rm -f conftest.er1
18115  cat conftest.err >&5
18116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117  (exit $ac_status); } &&
18118	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18119  { (case "(($ac_try" in
18120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121  *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124  (eval "$ac_try") 2>&5
18125  ac_status=$?
18126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127  (exit $ac_status); }; } &&
18128	 { ac_try='test -s conftest.$ac_objext'
18129  { (case "(($ac_try" in
18130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131  *) ac_try_echo=$ac_try;;
18132esac
18133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134  (eval "$ac_try") 2>&5
18135  ac_status=$?
18136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137  (exit $ac_status); }; }; then
18138  ac_cv_func_std_isinf_in_cmath=yes
18139else
18140  echo "$as_me: failed program was:" >&5
18141sed 's/^/| /' conftest.$ac_ext >&5
18142
18143	ac_cv_func_std_isinf_in_cmath=no
18144fi
18145
18146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147    ac_ext=c
18148ac_cpp='$CPP $CPPFLAGS'
18149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151ac_compiler_gnu=$ac_cv_c_compiler_gnu
18152
18153
18154fi
18155{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18156echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18157
18158if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18159
18160cat >>confdefs.h <<\_ACEOF
18161#define HAVE_STD_ISINF_IN_CMATH 1
18162_ACEOF
18163
18164fi
18165
18166
18167  { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18168echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18169if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18170  echo $ECHO_N "(cached) $ECHO_C" >&6
18171else
18172
18173    ac_ext=cpp
18174ac_cpp='$CXXCPP $CPPFLAGS'
18175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18178
18179    cat >conftest.$ac_ext <<_ACEOF
18180/* confdefs.h.  */
18181_ACEOF
18182cat confdefs.h >>conftest.$ac_ext
18183cat >>conftest.$ac_ext <<_ACEOF
18184/* end confdefs.h.  */
18185#include <ieeefp.h>
18186int
18187main ()
18188{
18189float f; finite(f);
18190  ;
18191  return 0;
18192}
18193_ACEOF
18194rm -f conftest.$ac_objext
18195if { (ac_try="$ac_compile"
18196case "(($ac_try" in
18197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198  *) ac_try_echo=$ac_try;;
18199esac
18200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201  (eval "$ac_compile") 2>conftest.er1
18202  ac_status=$?
18203  grep -v '^ *+' conftest.er1 >conftest.err
18204  rm -f conftest.er1
18205  cat conftest.err >&5
18206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207  (exit $ac_status); } &&
18208	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18209  { (case "(($ac_try" in
18210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211  *) ac_try_echo=$ac_try;;
18212esac
18213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214  (eval "$ac_try") 2>&5
18215  ac_status=$?
18216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217  (exit $ac_status); }; } &&
18218	 { ac_try='test -s conftest.$ac_objext'
18219  { (case "(($ac_try" in
18220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221  *) ac_try_echo=$ac_try;;
18222esac
18223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224  (eval "$ac_try") 2>&5
18225  ac_status=$?
18226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227  (exit $ac_status); }; }; then
18228  ac_cv_func_finite_in_ieeefp_h=yes
18229else
18230  echo "$as_me: failed program was:" >&5
18231sed 's/^/| /' conftest.$ac_ext >&5
18232
18233	ac_cv_func_finite_in_ieeefp_h=no
18234fi
18235
18236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237    ac_ext=c
18238ac_cpp='$CPP $CPPFLAGS'
18239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18241ac_compiler_gnu=$ac_cv_c_compiler_gnu
18242
18243
18244fi
18245{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18246echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18247
18248if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18249
18250cat >>confdefs.h <<\_ACEOF
18251#define HAVE_FINITE_IN_IEEEFP_H 1
18252_ACEOF
18253
18254fi
18255
18256
18257
18258if test "$llvm_cv_platform_type" = "Unix" ; then
18259
18260
18261for ac_header in stdlib.h unistd.h
18262do
18263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18265  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18268  echo $ECHO_N "(cached) $ECHO_C" >&6
18269fi
18270ac_res=`eval echo '${'$as_ac_Header'}'`
18271	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18272echo "${ECHO_T}$ac_res" >&6; }
18273else
18274  # Is the header compilable?
18275{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18277cat >conftest.$ac_ext <<_ACEOF
18278/* confdefs.h.  */
18279_ACEOF
18280cat confdefs.h >>conftest.$ac_ext
18281cat >>conftest.$ac_ext <<_ACEOF
18282/* end confdefs.h.  */
18283$ac_includes_default
18284#include <$ac_header>
18285_ACEOF
18286rm -f conftest.$ac_objext
18287if { (ac_try="$ac_compile"
18288case "(($ac_try" in
18289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290  *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293  (eval "$ac_compile") 2>conftest.er1
18294  ac_status=$?
18295  grep -v '^ *+' conftest.er1 >conftest.err
18296  rm -f conftest.er1
18297  cat conftest.err >&5
18298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299  (exit $ac_status); } &&
18300	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18301  { (case "(($ac_try" in
18302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303  *) ac_try_echo=$ac_try;;
18304esac
18305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306  (eval "$ac_try") 2>&5
18307  ac_status=$?
18308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309  (exit $ac_status); }; } &&
18310	 { ac_try='test -s conftest.$ac_objext'
18311  { (case "(($ac_try" in
18312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313  *) ac_try_echo=$ac_try;;
18314esac
18315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316  (eval "$ac_try") 2>&5
18317  ac_status=$?
18318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319  (exit $ac_status); }; }; then
18320  ac_header_compiler=yes
18321else
18322  echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
18325	ac_header_compiler=no
18326fi
18327
18328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18330echo "${ECHO_T}$ac_header_compiler" >&6; }
18331
18332# Is the header present?
18333{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18335cat >conftest.$ac_ext <<_ACEOF
18336/* confdefs.h.  */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
18340/* end confdefs.h.  */
18341#include <$ac_header>
18342_ACEOF
18343if { (ac_try="$ac_cpp conftest.$ac_ext"
18344case "(($ac_try" in
18345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346  *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18350  ac_status=$?
18351  grep -v '^ *+' conftest.er1 >conftest.err
18352  rm -f conftest.er1
18353  cat conftest.err >&5
18354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355  (exit $ac_status); } >/dev/null; then
18356  if test -s conftest.err; then
18357    ac_cpp_err=$ac_c_preproc_warn_flag
18358    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18359  else
18360    ac_cpp_err=
18361  fi
18362else
18363  ac_cpp_err=yes
18364fi
18365if test -z "$ac_cpp_err"; then
18366  ac_header_preproc=yes
18367else
18368  echo "$as_me: failed program was:" >&5
18369sed 's/^/| /' conftest.$ac_ext >&5
18370
18371  ac_header_preproc=no
18372fi
18373
18374rm -f conftest.err conftest.$ac_ext
18375{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18376echo "${ECHO_T}$ac_header_preproc" >&6; }
18377
18378# So?  What about this header?
18379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18380  yes:no: )
18381    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18383    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18385    ac_header_preproc=yes
18386    ;;
18387  no:yes:* )
18388    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18390    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18391echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18392    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18394    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18395echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18396    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18398    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18400    ( cat <<\_ASBOX
18401## ------------------------------------ ##
18402## Report this to http://llvm.org/bugs/ ##
18403## ------------------------------------ ##
18404_ASBOX
18405     ) | sed "s/^/$as_me: WARNING:     /" >&2
18406    ;;
18407esac
18408{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18411  echo $ECHO_N "(cached) $ECHO_C" >&6
18412else
18413  eval "$as_ac_Header=\$ac_header_preproc"
18414fi
18415ac_res=`eval echo '${'$as_ac_Header'}'`
18416	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18417echo "${ECHO_T}$ac_res" >&6; }
18418
18419fi
18420if test `eval echo '${'$as_ac_Header'}'` = yes; then
18421  cat >>confdefs.h <<_ACEOF
18422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18423_ACEOF
18424
18425fi
18426
18427done
18428
18429
18430for ac_func in getpagesize
18431do
18432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18433{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18435if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18436  echo $ECHO_N "(cached) $ECHO_C" >&6
18437else
18438  cat >conftest.$ac_ext <<_ACEOF
18439/* confdefs.h.  */
18440_ACEOF
18441cat confdefs.h >>conftest.$ac_ext
18442cat >>conftest.$ac_ext <<_ACEOF
18443/* end confdefs.h.  */
18444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18445   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18446#define $ac_func innocuous_$ac_func
18447
18448/* System header to define __stub macros and hopefully few prototypes,
18449    which can conflict with char $ac_func (); below.
18450    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18451    <limits.h> exists even on freestanding compilers.  */
18452
18453#ifdef __STDC__
18454# include <limits.h>
18455#else
18456# include <assert.h>
18457#endif
18458
18459#undef $ac_func
18460
18461/* Override any GCC internal prototype to avoid an error.
18462   Use char because int might match the return type of a GCC
18463   builtin and then its argument prototype would still apply.  */
18464#ifdef __cplusplus
18465extern "C"
18466#endif
18467char $ac_func ();
18468/* The GNU C library defines this for functions which it implements
18469    to always fail with ENOSYS.  Some functions are actually named
18470    something starting with __ and the normal name is an alias.  */
18471#if defined __stub_$ac_func || defined __stub___$ac_func
18472choke me
18473#endif
18474
18475int
18476main ()
18477{
18478return $ac_func ();
18479  ;
18480  return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext conftest$ac_exeext
18484if { (ac_try="$ac_link"
18485case "(($ac_try" in
18486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487  *) ac_try_echo=$ac_try;;
18488esac
18489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490  (eval "$ac_link") 2>conftest.er1
18491  ac_status=$?
18492  grep -v '^ *+' conftest.er1 >conftest.err
18493  rm -f conftest.er1
18494  cat conftest.err >&5
18495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496  (exit $ac_status); } &&
18497	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18498  { (case "(($ac_try" in
18499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500  *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503  (eval "$ac_try") 2>&5
18504  ac_status=$?
18505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506  (exit $ac_status); }; } &&
18507	 { ac_try='test -s conftest$ac_exeext'
18508  { (case "(($ac_try" in
18509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510  *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513  (eval "$ac_try") 2>&5
18514  ac_status=$?
18515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516  (exit $ac_status); }; }; then
18517  eval "$as_ac_var=yes"
18518else
18519  echo "$as_me: failed program was:" >&5
18520sed 's/^/| /' conftest.$ac_ext >&5
18521
18522	eval "$as_ac_var=no"
18523fi
18524
18525rm -f core conftest.err conftest.$ac_objext \
18526      conftest$ac_exeext conftest.$ac_ext
18527fi
18528ac_res=`eval echo '${'$as_ac_var'}'`
18529	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18530echo "${ECHO_T}$ac_res" >&6; }
18531if test `eval echo '${'$as_ac_var'}'` = yes; then
18532  cat >>confdefs.h <<_ACEOF
18533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18534_ACEOF
18535
18536fi
18537done
18538
18539{ echo "$as_me:$LINENO: checking for working mmap" >&5
18540echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18541if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18542  echo $ECHO_N "(cached) $ECHO_C" >&6
18543else
18544  if test "$cross_compiling" = yes; then
18545  ac_cv_func_mmap_fixed_mapped=no
18546else
18547  cat >conftest.$ac_ext <<_ACEOF
18548/* confdefs.h.  */
18549_ACEOF
18550cat confdefs.h >>conftest.$ac_ext
18551cat >>conftest.$ac_ext <<_ACEOF
18552/* end confdefs.h.  */
18553$ac_includes_default
18554/* malloc might have been renamed as rpl_malloc. */
18555#undef malloc
18556
18557/* Thanks to Mike Haertel and Jim Avera for this test.
18558   Here is a matrix of mmap possibilities:
18559	mmap private not fixed
18560	mmap private fixed at somewhere currently unmapped
18561	mmap private fixed at somewhere already mapped
18562	mmap shared not fixed
18563	mmap shared fixed at somewhere currently unmapped
18564	mmap shared fixed at somewhere already mapped
18565   For private mappings, we should verify that changes cannot be read()
18566   back from the file, nor mmap's back from the file at a different
18567   address.  (There have been systems where private was not correctly
18568   implemented like the infamous i386 svr4.0, and systems where the
18569   VM page cache was not coherent with the file system buffer cache
18570   like early versions of FreeBSD and possibly contemporary NetBSD.)
18571   For shared mappings, we should conversely verify that changes get
18572   propagated back to all the places they're supposed to be.
18573
18574   Grep wants private fixed already mapped.
18575   The main things grep needs to know about mmap are:
18576   * does it exist and is it safe to write into the mmap'd area
18577   * how to use it (BSD variants)  */
18578
18579#include <fcntl.h>
18580#include <sys/mman.h>
18581
18582#if !STDC_HEADERS && !HAVE_STDLIB_H
18583char *malloc ();
18584#endif
18585
18586/* This mess was copied from the GNU getpagesize.h.  */
18587#if !HAVE_GETPAGESIZE
18588/* Assume that all systems that can run configure have sys/param.h.  */
18589# if !HAVE_SYS_PARAM_H
18590#  define HAVE_SYS_PARAM_H 1
18591# endif
18592
18593# ifdef _SC_PAGESIZE
18594#  define getpagesize() sysconf(_SC_PAGESIZE)
18595# else /* no _SC_PAGESIZE */
18596#  if HAVE_SYS_PARAM_H
18597#   include <sys/param.h>
18598#   ifdef EXEC_PAGESIZE
18599#    define getpagesize() EXEC_PAGESIZE
18600#   else /* no EXEC_PAGESIZE */
18601#    ifdef NBPG
18602#     define getpagesize() NBPG * CLSIZE
18603#     ifndef CLSIZE
18604#      define CLSIZE 1
18605#     endif /* no CLSIZE */
18606#    else /* no NBPG */
18607#     ifdef NBPC
18608#      define getpagesize() NBPC
18609#     else /* no NBPC */
18610#      ifdef PAGESIZE
18611#       define getpagesize() PAGESIZE
18612#      endif /* PAGESIZE */
18613#     endif /* no NBPC */
18614#    endif /* no NBPG */
18615#   endif /* no EXEC_PAGESIZE */
18616#  else /* no HAVE_SYS_PARAM_H */
18617#   define getpagesize() 8192	/* punt totally */
18618#  endif /* no HAVE_SYS_PARAM_H */
18619# endif /* no _SC_PAGESIZE */
18620
18621#endif /* no HAVE_GETPAGESIZE */
18622
18623int
18624main ()
18625{
18626  char *data, *data2, *data3;
18627  int i, pagesize;
18628  int fd;
18629
18630  pagesize = getpagesize ();
18631
18632  /* First, make a file with some known garbage in it. */
18633  data = (char *) malloc (pagesize);
18634  if (!data)
18635    return 1;
18636  for (i = 0; i < pagesize; ++i)
18637    *(data + i) = rand ();
18638  umask (0);
18639  fd = creat ("conftest.mmap", 0600);
18640  if (fd < 0)
18641    return 1;
18642  if (write (fd, data, pagesize) != pagesize)
18643    return 1;
18644  close (fd);
18645
18646  /* Next, try to mmap the file at a fixed address which already has
18647     something else allocated at it.  If we can, also make sure that
18648     we see the same garbage.  */
18649  fd = open ("conftest.mmap", O_RDWR);
18650  if (fd < 0)
18651    return 1;
18652  data2 = (char *) malloc (2 * pagesize);
18653  if (!data2)
18654    return 1;
18655  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18656  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18657		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
18658    return 1;
18659  for (i = 0; i < pagesize; ++i)
18660    if (*(data + i) != *(data2 + i))
18661      return 1;
18662
18663  /* Finally, make sure that changes to the mapped area do not
18664     percolate back to the file as seen by read().  (This is a bug on
18665     some variants of i386 svr4.0.)  */
18666  for (i = 0; i < pagesize; ++i)
18667    *(data2 + i) = *(data2 + i) + 1;
18668  data3 = (char *) malloc (pagesize);
18669  if (!data3)
18670    return 1;
18671  if (read (fd, data3, pagesize) != pagesize)
18672    return 1;
18673  for (i = 0; i < pagesize; ++i)
18674    if (*(data + i) != *(data3 + i))
18675      return 1;
18676  close (fd);
18677  return 0;
18678}
18679_ACEOF
18680rm -f conftest$ac_exeext
18681if { (ac_try="$ac_link"
18682case "(($ac_try" in
18683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684  *) ac_try_echo=$ac_try;;
18685esac
18686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687  (eval "$ac_link") 2>&5
18688  ac_status=$?
18689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18691  { (case "(($ac_try" in
18692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693  *) ac_try_echo=$ac_try;;
18694esac
18695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696  (eval "$ac_try") 2>&5
18697  ac_status=$?
18698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699  (exit $ac_status); }; }; then
18700  ac_cv_func_mmap_fixed_mapped=yes
18701else
18702  echo "$as_me: program exited with status $ac_status" >&5
18703echo "$as_me: failed program was:" >&5
18704sed 's/^/| /' conftest.$ac_ext >&5
18705
18706( exit $ac_status )
18707ac_cv_func_mmap_fixed_mapped=no
18708fi
18709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18710fi
18711
18712
18713fi
18714{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18715echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18716if test $ac_cv_func_mmap_fixed_mapped = yes; then
18717
18718cat >>confdefs.h <<\_ACEOF
18719#define HAVE_MMAP 1
18720_ACEOF
18721
18722fi
18723rm -f conftest.mmap
18724
18725  { echo "$as_me:$LINENO: checking for mmap of files" >&5
18726echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18727if test "${ac_cv_func_mmap_file+set}" = set; then
18728  echo $ECHO_N "(cached) $ECHO_C" >&6
18729else
18730   ac_ext=c
18731ac_cpp='$CPP $CPPFLAGS'
18732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18734ac_compiler_gnu=$ac_cv_c_compiler_gnu
18735
18736  if test "$cross_compiling" = yes; then
18737  ac_cv_func_mmap_file=no
18738else
18739  cat >conftest.$ac_ext <<_ACEOF
18740
18741    /* confdefs.h.  */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h.  */
18746
18747#include <sys/types.h>
18748#include <sys/mman.h>
18749#include <fcntl.h>
18750
18751int
18752main ()
18753{
18754
18755  int fd;
18756  fd = creat ("foo",0777);
18757  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18758  unlink ("foo");
18759  return (fd != (int) MAP_FAILED);
18760  ;
18761  return 0;
18762}
18763_ACEOF
18764rm -f conftest$ac_exeext
18765if { (ac_try="$ac_link"
18766case "(($ac_try" in
18767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768  *) ac_try_echo=$ac_try;;
18769esac
18770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771  (eval "$ac_link") 2>&5
18772  ac_status=$?
18773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18775  { (case "(($ac_try" in
18776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777  *) ac_try_echo=$ac_try;;
18778esac
18779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780  (eval "$ac_try") 2>&5
18781  ac_status=$?
18782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783  (exit $ac_status); }; }; then
18784  ac_cv_func_mmap_file=yes
18785else
18786  echo "$as_me: program exited with status $ac_status" >&5
18787echo "$as_me: failed program was:" >&5
18788sed 's/^/| /' conftest.$ac_ext >&5
18789
18790( exit $ac_status )
18791ac_cv_func_mmap_file=no
18792fi
18793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18794fi
18795
18796
18797  ac_ext=c
18798ac_cpp='$CPP $CPPFLAGS'
18799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801ac_compiler_gnu=$ac_cv_c_compiler_gnu
18802
18803
18804fi
18805{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18806echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18807if test "$ac_cv_func_mmap_file" = yes; then
18808
18809cat >>confdefs.h <<\_ACEOF
18810#define HAVE_MMAP_FILE
18811_ACEOF
18812
18813   MMAP_FILE=yes
18814
18815fi
18816
18817  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18818echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18819if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18820  echo $ECHO_N "(cached) $ECHO_C" >&6
18821else
18822  if test "$llvm_cv_os_type" = "Interix" ; then
18823   ac_cv_need_dev_zero_for_mmap=yes
18824 else
18825   ac_cv_need_dev_zero_for_mmap=no
18826 fi
18827
18828fi
18829{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18830echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18831if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18832
18833cat >>confdefs.h <<\_ACEOF
18834#define NEED_DEV_ZERO_FOR_MMAP 1
18835_ACEOF
18836
18837fi
18838
18839  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18840  then
18841    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18842echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18843  fi
18844  if test "$ac_cv_func_mmap_file" = "no"
18845  then
18846    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18847echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18848  fi
18849fi
18850
18851{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18852echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18853ac_ext=cpp
18854ac_cpp='$CXXCPP $CPPFLAGS'
18855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18858
18859cat >conftest.$ac_ext <<_ACEOF
18860
18861  /* confdefs.h.  */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h.  */
18866
18867    int main() {
18868      volatile unsigned long val = 1;
18869      __sync_synchronize();
18870      __sync_val_compare_and_swap(&val, 1, 0);
18871      __sync_add_and_fetch(&val, 1);
18872      __sync_sub_and_fetch(&val, 1);
18873      return 0;
18874    }
18875
18876
18877_ACEOF
18878rm -f conftest.$ac_objext conftest$ac_exeext
18879if { (ac_try="$ac_link"
18880case "(($ac_try" in
18881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882  *) ac_try_echo=$ac_try;;
18883esac
18884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885  (eval "$ac_link") 2>conftest.er1
18886  ac_status=$?
18887  grep -v '^ *+' conftest.er1 >conftest.err
18888  rm -f conftest.er1
18889  cat conftest.err >&5
18890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891  (exit $ac_status); } &&
18892	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18893  { (case "(($ac_try" in
18894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895  *) ac_try_echo=$ac_try;;
18896esac
18897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898  (eval "$ac_try") 2>&5
18899  ac_status=$?
18900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901  (exit $ac_status); }; } &&
18902	 { ac_try='test -s conftest$ac_exeext'
18903  { (case "(($ac_try" in
18904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905  *) ac_try_echo=$ac_try;;
18906esac
18907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908  (eval "$ac_try") 2>&5
18909  ac_status=$?
18910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911  (exit $ac_status); }; }; then
18912
18913  { echo "$as_me:$LINENO: result: yes" >&5
18914echo "${ECHO_T}yes" >&6; }
18915
18916cat >>confdefs.h <<\_ACEOF
18917#define LLVM_HAS_ATOMICS 1
18918_ACEOF
18919
18920
18921else
18922  echo "$as_me: failed program was:" >&5
18923sed 's/^/| /' conftest.$ac_ext >&5
18924
18925
18926  { echo "$as_me:$LINENO: result: no" >&5
18927echo "${ECHO_T}no" >&6; }
18928
18929cat >>confdefs.h <<\_ACEOF
18930#define LLVM_HAS_ATOMICS 0
18931_ACEOF
18932
18933  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18934echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18935
18936fi
18937
18938rm -f core conftest.err conftest.$ac_objext \
18939      conftest$ac_exeext conftest.$ac_ext
18940ac_ext=c
18941ac_cpp='$CPP $CPPFLAGS'
18942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944ac_compiler_gnu=$ac_cv_c_compiler_gnu
18945
18946
18947
18948if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18949  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18950echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18951if test "${llvm_cv_linux_mixed+set}" = set; then
18952  echo $ECHO_N "(cached) $ECHO_C" >&6
18953else
18954   ac_ext=c
18955ac_cpp='$CPP $CPPFLAGS'
18956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958ac_compiler_gnu=$ac_cv_c_compiler_gnu
18959
18960  cat >conftest.$ac_ext <<_ACEOF
18961/* confdefs.h.  */
18962_ACEOF
18963cat confdefs.h >>conftest.$ac_ext
18964cat >>conftest.$ac_ext <<_ACEOF
18965/* end confdefs.h.  */
18966#ifndef __x86_64__
18967       error: Not x86-64 even if uname says so!
18968      #endif
18969
18970int
18971main ()
18972{
18973
18974  ;
18975  return 0;
18976}
18977_ACEOF
18978rm -f conftest.$ac_objext
18979if { (ac_try="$ac_compile"
18980case "(($ac_try" in
18981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982  *) ac_try_echo=$ac_try;;
18983esac
18984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985  (eval "$ac_compile") 2>conftest.er1
18986  ac_status=$?
18987  grep -v '^ *+' conftest.er1 >conftest.err
18988  rm -f conftest.er1
18989  cat conftest.err >&5
18990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991  (exit $ac_status); } &&
18992	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18993  { (case "(($ac_try" in
18994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995  *) ac_try_echo=$ac_try;;
18996esac
18997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998  (eval "$ac_try") 2>&5
18999  ac_status=$?
19000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001  (exit $ac_status); }; } &&
19002	 { ac_try='test -s conftest.$ac_objext'
19003  { (case "(($ac_try" in
19004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005  *) ac_try_echo=$ac_try;;
19006esac
19007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008  (eval "$ac_try") 2>&5
19009  ac_status=$?
19010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011  (exit $ac_status); }; }; then
19012  llvm_cv_linux_mixed=no
19013else
19014  echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017	llvm_cv_linux_mixed=yes
19018fi
19019
19020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021  ac_ext=c
19022ac_cpp='$CPP $CPPFLAGS'
19023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025ac_compiler_gnu=$ac_cv_c_compiler_gnu
19026
19027
19028fi
19029{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19030echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19031
19032  if test "$llvm_cv_linux_mixed" = "yes"; then
19033    llvm_cv_target_arch="x86"
19034    ARCH="x86"
19035  fi
19036fi
19037
19038
19039for ac_func in __dso_handle
19040do
19041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19042{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19044if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19045  echo $ECHO_N "(cached) $ECHO_C" >&6
19046else
19047  cat >conftest.$ac_ext <<_ACEOF
19048/* confdefs.h.  */
19049_ACEOF
19050cat confdefs.h >>conftest.$ac_ext
19051cat >>conftest.$ac_ext <<_ACEOF
19052/* end confdefs.h.  */
19053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19054   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19055#define $ac_func innocuous_$ac_func
19056
19057/* System header to define __stub macros and hopefully few prototypes,
19058    which can conflict with char $ac_func (); below.
19059    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19060    <limits.h> exists even on freestanding compilers.  */
19061
19062#ifdef __STDC__
19063# include <limits.h>
19064#else
19065# include <assert.h>
19066#endif
19067
19068#undef $ac_func
19069
19070/* Override any GCC internal prototype to avoid an error.
19071   Use char because int might match the return type of a GCC
19072   builtin and then its argument prototype would still apply.  */
19073#ifdef __cplusplus
19074extern "C"
19075#endif
19076char $ac_func ();
19077/* The GNU C library defines this for functions which it implements
19078    to always fail with ENOSYS.  Some functions are actually named
19079    something starting with __ and the normal name is an alias.  */
19080#if defined __stub_$ac_func || defined __stub___$ac_func
19081choke me
19082#endif
19083
19084int
19085main ()
19086{
19087return $ac_func ();
19088  ;
19089  return 0;
19090}
19091_ACEOF
19092rm -f conftest.$ac_objext conftest$ac_exeext
19093if { (ac_try="$ac_link"
19094case "(($ac_try" in
19095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096  *) ac_try_echo=$ac_try;;
19097esac
19098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099  (eval "$ac_link") 2>conftest.er1
19100  ac_status=$?
19101  grep -v '^ *+' conftest.er1 >conftest.err
19102  rm -f conftest.er1
19103  cat conftest.err >&5
19104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105  (exit $ac_status); } &&
19106	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19107  { (case "(($ac_try" in
19108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109  *) ac_try_echo=$ac_try;;
19110esac
19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112  (eval "$ac_try") 2>&5
19113  ac_status=$?
19114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115  (exit $ac_status); }; } &&
19116	 { ac_try='test -s conftest$ac_exeext'
19117  { (case "(($ac_try" in
19118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119  *) ac_try_echo=$ac_try;;
19120esac
19121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122  (eval "$ac_try") 2>&5
19123  ac_status=$?
19124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125  (exit $ac_status); }; }; then
19126  eval "$as_ac_var=yes"
19127else
19128  echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
19131	eval "$as_ac_var=no"
19132fi
19133
19134rm -f core conftest.err conftest.$ac_objext \
19135      conftest$ac_exeext conftest.$ac_ext
19136fi
19137ac_res=`eval echo '${'$as_ac_var'}'`
19138	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19139echo "${ECHO_T}$ac_res" >&6; }
19140if test `eval echo '${'$as_ac_var'}'` = yes; then
19141  cat >>confdefs.h <<_ACEOF
19142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19143_ACEOF
19144
19145fi
19146done
19147
19148
19149SHLIBEXT=$llvm_shlib_ext
19150
19151
19152if test "${prefix}" = "NONE" ; then
19153  prefix="/usr/local"
19154fi
19155eval LLVM_PREFIX="${prefix}";
19156eval LLVM_BINDIR="${prefix}/bin";
19157eval LLVM_DATADIR="${prefix}/share/llvm";
19158eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19159eval LLVM_ETCDIR="${prefix}/etc/llvm";
19160eval LLVM_INCLUDEDIR="${prefix}/include";
19161eval LLVM_INFODIR="${prefix}/info";
19162eval LLVM_MANDIR="${prefix}/man";
19163LLVM_CONFIGTIME=`date`
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174if test "${ENABLE_TIMESTAMPS}" = "0"; then
19175  LLVM_CONFIGTIME="(timestamp not enabled)"
19176fi
19177
19178
19179cat >>confdefs.h <<_ACEOF
19180#define LLVM_PREFIX "$LLVM_PREFIX"
19181_ACEOF
19182
19183
19184cat >>confdefs.h <<_ACEOF
19185#define LLVM_BINDIR "$LLVM_BINDIR"
19186_ACEOF
19187
19188
19189cat >>confdefs.h <<_ACEOF
19190#define LLVM_DATADIR "$LLVM_DATADIR"
19191_ACEOF
19192
19193
19194cat >>confdefs.h <<_ACEOF
19195#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19196_ACEOF
19197
19198
19199cat >>confdefs.h <<_ACEOF
19200#define LLVM_ETCDIR "$LLVM_ETCDIR"
19201_ACEOF
19202
19203
19204cat >>confdefs.h <<_ACEOF
19205#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19206_ACEOF
19207
19208
19209cat >>confdefs.h <<_ACEOF
19210#define LLVM_INFODIR "$LLVM_INFODIR"
19211_ACEOF
19212
19213
19214cat >>confdefs.h <<_ACEOF
19215#define LLVM_MANDIR "$LLVM_MANDIR"
19216_ACEOF
19217
19218
19219cat >>confdefs.h <<_ACEOF
19220#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19221_ACEOF
19222
19223
19224cat >>confdefs.h <<_ACEOF
19225#define LLVM_HOST_TRIPLE "$host"
19226_ACEOF
19227
19228
19229cat >>confdefs.h <<_ACEOF
19230#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19231_ACEOF
19232
19233
19234if test "$BINDINGS_TO_BUILD" = auto ; then
19235  BINDINGS_TO_BUILD=""
19236  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19237    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19238  fi
19239fi
19240BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19241
19242
19243ALL_BINDINGS=ocaml
19244
19245
19246binding_prereqs_failed=0
19247for a_binding in $BINDINGS_TO_BUILD ; do
19248  case "$a_binding" in
19249  ocaml)
19250    if test "x$OCAMLC" = x ; then
19251      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19252echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19253      binding_prereqs_failed=1
19254    fi
19255    if test "x$OCAMLDEP" = x ; then
19256      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19257echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19258      binding_prereqs_failed=1
19259    fi
19260    if test "x$OCAMLOPT" = x ; then
19261      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19262echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19263          fi
19264    if test "x$with_ocaml_libdir" != xauto ; then
19265      OCAML_LIBDIR=$with_ocaml_libdir
19266
19267    else
19268      ocaml_stdlib="`"$OCAMLC" -where`"
19269      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19270      then
19271        # ocaml stdlib is beneath our prefix; use stdlib
19272        OCAML_LIBDIR=$ocaml_stdlib
19273
19274      else
19275        # ocaml stdlib is outside our prefix; use libdir/ocaml
19276        OCAML_LIBDIR=${prefix}/lib/ocaml
19277
19278      fi
19279    fi
19280    ;;
19281  esac
19282done
19283if test "$binding_prereqs_failed" = 1 ; then
19284  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19285echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19286   { (exit 1); exit 1; }; }
19287fi
19288
19289{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19290echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19291if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19292  echo $ECHO_N "(cached) $ECHO_C" >&6
19293else
19294   ac_ext=cpp
19295ac_cpp='$CXXCPP $CPPFLAGS'
19296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19299
19300  oldcxxflags="$CXXFLAGS"
19301  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19302  cat >conftest.$ac_ext <<_ACEOF
19303/* confdefs.h.  */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h.  */
19308template <typename T> struct X { void __attribute__((noinline)) f() {} };
19309int
19310main ()
19311{
19312X<int>().f();
19313  ;
19314  return 0;
19315}
19316_ACEOF
19317rm -f conftest.$ac_objext
19318if { (ac_try="$ac_compile"
19319case "(($ac_try" in
19320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321  *) ac_try_echo=$ac_try;;
19322esac
19323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324  (eval "$ac_compile") 2>conftest.er1
19325  ac_status=$?
19326  grep -v '^ *+' conftest.er1 >conftest.err
19327  rm -f conftest.er1
19328  cat conftest.err >&5
19329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330  (exit $ac_status); } &&
19331	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19332  { (case "(($ac_try" in
19333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334  *) ac_try_echo=$ac_try;;
19335esac
19336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337  (eval "$ac_try") 2>&5
19338  ac_status=$?
19339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340  (exit $ac_status); }; } &&
19341	 { ac_try='test -s conftest.$ac_objext'
19342  { (case "(($ac_try" in
19343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344  *) ac_try_echo=$ac_try;;
19345esac
19346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347  (eval "$ac_try") 2>&5
19348  ac_status=$?
19349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350  (exit $ac_status); }; }; then
19351  llvm_cv_cxx_visibility_inlines_hidden=yes
19352else
19353  echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356	llvm_cv_cxx_visibility_inlines_hidden=no
19357fi
19358
19359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19360  CXXFLAGS="$oldcxxflags"
19361  ac_ext=c
19362ac_cpp='$CPP $CPPFLAGS'
19363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19365ac_compiler_gnu=$ac_cv_c_compiler_gnu
19366
19367
19368fi
19369{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19370echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19371if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19372  ENABLE_VISIBILITY_INLINES_HIDDEN=1
19373
19374else
19375  ENABLE_VISIBILITY_INLINES_HIDDEN=0
19376
19377fi
19378
19379
19380if test "$llvm_cv_link_use_r" = "yes" ; then
19381  RPATH="-Wl,-R"
19382else
19383  RPATH="-Wl,-rpath"
19384fi
19385
19386
19387if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19388  RDYNAMIC="-rdynamic"
19389else
19390  RDYNAMIC=""
19391fi
19392
19393
19394
19395ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19396
19397
19398
19399
19400
19401
19402ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19403
19404ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19405
19406ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19407
19408ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19409
19410ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19411
19412
19413ac_config_files="$ac_config_files Makefile.config"
19414
19415
19416ac_config_files="$ac_config_files llvm.spec"
19417
19418
19419ac_config_files="$ac_config_files docs/doxygen.cfg"
19420
19421
19422if test "${clang_src_root}" = ""; then
19423  clang_src_root="$srcdir/tools/clang"
19424fi
19425if test -f ${clang_src_root}/README.txt; then
19426    configh="include/clang/Config/config.h"
19427  doxy="docs/doxygen.cfg"
19428  ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19429
19430  ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19431
19432fi
19433
19434ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19435
19436
19437test "x$program_prefix" = "xNONE" && program_prefix=""
19438
19439
19440
19441ac_config_commands="$ac_config_commands setup"
19442
19443ac_config_commands="$ac_config_commands Makefile"
19444
19445
19446ac_config_commands="$ac_config_commands Makefile.common"
19447
19448
19449ac_config_commands="$ac_config_commands examples/Makefile"
19450
19451
19452ac_config_commands="$ac_config_commands lib/Makefile"
19453
19454
19455ac_config_commands="$ac_config_commands test/Makefile"
19456
19457
19458ac_config_commands="$ac_config_commands test/Makefile.tests"
19459
19460
19461ac_config_commands="$ac_config_commands unittests/Makefile"
19462
19463
19464ac_config_commands="$ac_config_commands tools/Makefile"
19465
19466
19467ac_config_commands="$ac_config_commands utils/Makefile"
19468
19469
19470ac_config_commands="$ac_config_commands projects/Makefile"
19471
19472
19473ac_config_commands="$ac_config_commands bindings/Makefile"
19474
19475
19476ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19477
19478
19479
19480cat >confcache <<\_ACEOF
19481# This file is a shell script that caches the results of configure
19482# tests run on this system so they can be shared between configure
19483# scripts and configure runs, see configure's option --config-cache.
19484# It is not useful on other systems.  If it contains results you don't
19485# want to keep, you may remove or edit it.
19486#
19487# config.status only pays attention to the cache file if you give it
19488# the --recheck option to rerun configure.
19489#
19490# `ac_cv_env_foo' variables (set or unset) will be overridden when
19491# loading this file, other *unset* `ac_cv_foo' will be assigned the
19492# following values.
19493
19494_ACEOF
19495
19496# The following way of writing the cache mishandles newlines in values,
19497# but we know of no workaround that is simple, portable, and efficient.
19498# So, we kill variables containing newlines.
19499# Ultrix sh set writes to stderr and can't be redirected directly,
19500# and sets the high bit in the cache file unless we assign to the vars.
19501(
19502  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19503    eval ac_val=\$$ac_var
19504    case $ac_val in #(
19505    *${as_nl}*)
19506      case $ac_var in #(
19507      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19508echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19509      esac
19510      case $ac_var in #(
19511      _ | IFS | as_nl) ;; #(
19512      *) $as_unset $ac_var ;;
19513      esac ;;
19514    esac
19515  done
19516
19517  (set) 2>&1 |
19518    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19519    *${as_nl}ac_space=\ *)
19520      # `set' does not quote correctly, so add quotes (double-quote
19521      # substitution turns \\\\ into \\, and sed turns \\ into \).
19522      sed -n \
19523	"s/'/'\\\\''/g;
19524	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19525      ;; #(
19526    *)
19527      # `set' quotes correctly as required by POSIX, so do not add quotes.
19528      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19529      ;;
19530    esac |
19531    sort
19532) |
19533  sed '
19534     /^ac_cv_env_/b end
19535     t clear
19536     :clear
19537     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19538     t end
19539     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19540     :end' >>confcache
19541if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19542  if test -w "$cache_file"; then
19543    test "x$cache_file" != "x/dev/null" &&
19544      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19545echo "$as_me: updating cache $cache_file" >&6;}
19546    cat confcache >$cache_file
19547  else
19548    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19549echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19550  fi
19551fi
19552rm -f confcache
19553
19554test "x$prefix" = xNONE && prefix=$ac_default_prefix
19555# Let make expand exec_prefix.
19556test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19557
19558DEFS=-DHAVE_CONFIG_H
19559
19560ac_libobjs=
19561ac_ltlibobjs=
19562for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19563  # 1. Remove the extension, and $U if already installed.
19564  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19565  ac_i=`echo "$ac_i" | sed "$ac_script"`
19566  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19567  #    will be set to the directory where LIBOBJS objects are built.
19568  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19569  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19570done
19571LIBOBJS=$ac_libobjs
19572
19573LTLIBOBJS=$ac_ltlibobjs
19574
19575
19576
19577: ${CONFIG_STATUS=./config.status}
19578ac_clean_files_save=$ac_clean_files
19579ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19580{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19581echo "$as_me: creating $CONFIG_STATUS" >&6;}
19582cat >$CONFIG_STATUS <<_ACEOF
19583#! $SHELL
19584# Generated by $as_me.
19585# Run this file to recreate the current configuration.
19586# Compiler output produced by configure, useful for debugging
19587# configure, is in config.log if it exists.
19588
19589debug=false
19590ac_cs_recheck=false
19591ac_cs_silent=false
19592SHELL=\${CONFIG_SHELL-$SHELL}
19593_ACEOF
19594
19595cat >>$CONFIG_STATUS <<\_ACEOF
19596## --------------------- ##
19597## M4sh Initialization.  ##
19598## --------------------- ##
19599
19600# Be Bourne compatible
19601if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19602  emulate sh
19603  NULLCMD=:
19604  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19605  # is contrary to our usage.  Disable this feature.
19606  alias -g '${1+"$@"}'='"$@"'
19607  setopt NO_GLOB_SUBST
19608else
19609  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19610fi
19611BIN_SH=xpg4; export BIN_SH # for Tru64
19612DUALCASE=1; export DUALCASE # for MKS sh
19613
19614
19615# PATH needs CR
19616# Avoid depending upon Character Ranges.
19617as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19618as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19619as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19620as_cr_digits='0123456789'
19621as_cr_alnum=$as_cr_Letters$as_cr_digits
19622
19623# The user is always right.
19624if test "${PATH_SEPARATOR+set}" != set; then
19625  echo "#! /bin/sh" >conf$$.sh
19626  echo  "exit 0"   >>conf$$.sh
19627  chmod +x conf$$.sh
19628  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19629    PATH_SEPARATOR=';'
19630  else
19631    PATH_SEPARATOR=:
19632  fi
19633  rm -f conf$$.sh
19634fi
19635
19636# Support unset when possible.
19637if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19638  as_unset=unset
19639else
19640  as_unset=false
19641fi
19642
19643
19644# IFS
19645# We need space, tab and new line, in precisely that order.  Quoting is
19646# there to prevent editors from complaining about space-tab.
19647# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19648# splitting by setting IFS to empty value.)
19649as_nl='
19650'
19651IFS=" ""	$as_nl"
19652
19653# Find who we are.  Look in the path if we contain no directory separator.
19654case $0 in
19655  *[\\/]* ) as_myself=$0 ;;
19656  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19657for as_dir in $PATH
19658do
19659  IFS=$as_save_IFS
19660  test -z "$as_dir" && as_dir=.
19661  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19662done
19663IFS=$as_save_IFS
19664
19665     ;;
19666esac
19667# We did not find ourselves, most probably we were run as `sh COMMAND'
19668# in which case we are not to be found in the path.
19669if test "x$as_myself" = x; then
19670  as_myself=$0
19671fi
19672if test ! -f "$as_myself"; then
19673  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19674  { (exit 1); exit 1; }
19675fi
19676
19677# Work around bugs in pre-3.0 UWIN ksh.
19678for as_var in ENV MAIL MAILPATH
19679do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19680done
19681PS1='$ '
19682PS2='> '
19683PS4='+ '
19684
19685# NLS nuisances.
19686for as_var in \
19687  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19688  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19689  LC_TELEPHONE LC_TIME
19690do
19691  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19692    eval $as_var=C; export $as_var
19693  else
19694    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19695  fi
19696done
19697
19698# Required to use basename.
19699if expr a : '\(a\)' >/dev/null 2>&1 &&
19700   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19701  as_expr=expr
19702else
19703  as_expr=false
19704fi
19705
19706if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19707  as_basename=basename
19708else
19709  as_basename=false
19710fi
19711
19712
19713# Name of the executable.
19714as_me=`$as_basename -- "$0" ||
19715$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19716	 X"$0" : 'X\(//\)$' \| \
19717	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19718echo X/"$0" |
19719    sed '/^.*\/\([^/][^/]*\)\/*$/{
19720	    s//\1/
19721	    q
19722	  }
19723	  /^X\/\(\/\/\)$/{
19724	    s//\1/
19725	    q
19726	  }
19727	  /^X\/\(\/\).*/{
19728	    s//\1/
19729	    q
19730	  }
19731	  s/.*/./; q'`
19732
19733# CDPATH.
19734$as_unset CDPATH
19735
19736
19737
19738  as_lineno_1=$LINENO
19739  as_lineno_2=$LINENO
19740  test "x$as_lineno_1" != "x$as_lineno_2" &&
19741  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19742
19743  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19744  # uniformly replaced by the line number.  The first 'sed' inserts a
19745  # line-number line after each line using $LINENO; the second 'sed'
19746  # does the real work.  The second script uses 'N' to pair each
19747  # line-number line with the line containing $LINENO, and appends
19748  # trailing '-' during substitution so that $LINENO is not a special
19749  # case at line end.
19750  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19751  # scripts with optimization help from Paolo Bonzini.  Blame Lee
19752  # E. McMahon (1931-1989) for sed's syntax.  :-)
19753  sed -n '
19754    p
19755    /[$]LINENO/=
19756  ' <$as_myself |
19757    sed '
19758      s/[$]LINENO.*/&-/
19759      t lineno
19760      b
19761      :lineno
19762      N
19763      :loop
19764      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19765      t loop
19766      s/-\n.*//
19767    ' >$as_me.lineno &&
19768  chmod +x "$as_me.lineno" ||
19769    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19770   { (exit 1); exit 1; }; }
19771
19772  # Don't try to exec as it changes $[0], causing all sort of problems
19773  # (the dirname of $[0] is not the place where we might find the
19774  # original and so on.  Autoconf is especially sensitive to this).
19775  . "./$as_me.lineno"
19776  # Exit status is that of the last command.
19777  exit
19778}
19779
19780
19781if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19782  as_dirname=dirname
19783else
19784  as_dirname=false
19785fi
19786
19787ECHO_C= ECHO_N= ECHO_T=
19788case `echo -n x` in
19789-n*)
19790  case `echo 'x\c'` in
19791  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19792  *)   ECHO_C='\c';;
19793  esac;;
19794*)
19795  ECHO_N='-n';;
19796esac
19797
19798if expr a : '\(a\)' >/dev/null 2>&1 &&
19799   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19800  as_expr=expr
19801else
19802  as_expr=false
19803fi
19804
19805rm -f conf$$ conf$$.exe conf$$.file
19806if test -d conf$$.dir; then
19807  rm -f conf$$.dir/conf$$.file
19808else
19809  rm -f conf$$.dir
19810  mkdir conf$$.dir
19811fi
19812echo >conf$$.file
19813if ln -s conf$$.file conf$$ 2>/dev/null; then
19814  as_ln_s='ln -s'
19815  # ... but there are two gotchas:
19816  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19817  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19818  # In both cases, we have to default to `cp -p'.
19819  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19820    as_ln_s='cp -p'
19821elif ln conf$$.file conf$$ 2>/dev/null; then
19822  as_ln_s=ln
19823else
19824  as_ln_s='cp -p'
19825fi
19826rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19827rmdir conf$$.dir 2>/dev/null
19828
19829if mkdir -p . 2>/dev/null; then
19830  as_mkdir_p=:
19831else
19832  test -d ./-p && rmdir ./-p
19833  as_mkdir_p=false
19834fi
19835
19836# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19837# systems may use methods other than mode bits to determine executability.
19838cat >conf$$.file <<_ASEOF
19839#! /bin/sh
19840exit 0
19841_ASEOF
19842chmod +x conf$$.file
19843if test -x conf$$.file >/dev/null 2>&1; then
19844  as_executable_p="test -x"
19845else
19846  as_executable_p=:
19847fi
19848rm -f conf$$.file
19849
19850# Sed expression to map a string onto a valid CPP name.
19851as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19852
19853# Sed expression to map a string onto a valid variable name.
19854as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19855
19856
19857exec 6>&1
19858
19859# Save the log message, to keep $[0] and so on meaningful, and to
19860# report actual input values of CONFIG_FILES etc. instead of their
19861# values after options handling.
19862ac_log="
19863This file was extended by LLVM $as_me 3.5.0svn, which was
19864generated by GNU Autoconf 2.60.  Invocation command line was
19865
19866  CONFIG_FILES    = $CONFIG_FILES
19867  CONFIG_HEADERS  = $CONFIG_HEADERS
19868  CONFIG_LINKS    = $CONFIG_LINKS
19869  CONFIG_COMMANDS = $CONFIG_COMMANDS
19870  $ $0 $@
19871
19872on `(hostname || uname -n) 2>/dev/null | sed 1q`
19873"
19874
19875_ACEOF
19876
19877cat >>$CONFIG_STATUS <<_ACEOF
19878# Files that config.status was made for.
19879config_files="$ac_config_files"
19880config_headers="$ac_config_headers"
19881config_commands="$ac_config_commands"
19882
19883_ACEOF
19884
19885cat >>$CONFIG_STATUS <<\_ACEOF
19886ac_cs_usage="\
19887\`$as_me' instantiates files from templates according to the
19888current configuration.
19889
19890Usage: $0 [OPTIONS] [FILE]...
19891
19892  -h, --help       print this help, then exit
19893  -V, --version    print version number, then exit
19894  -q, --quiet      do not print progress messages
19895  -d, --debug      don't remove temporary files
19896      --recheck    update $as_me by reconfiguring in the same conditions
19897  --file=FILE[:TEMPLATE]
19898		   instantiate the configuration file FILE
19899  --header=FILE[:TEMPLATE]
19900		   instantiate the configuration header FILE
19901
19902Configuration files:
19903$config_files
19904
19905Configuration headers:
19906$config_headers
19907
19908Configuration commands:
19909$config_commands
19910
19911Report bugs to <bug-autoconf@gnu.org>."
19912
19913_ACEOF
19914cat >>$CONFIG_STATUS <<_ACEOF
19915ac_cs_version="\\
19916LLVM config.status 3.5.0svn
19917configured by $0, generated by GNU Autoconf 2.60,
19918  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19919
19920Copyright (C) 2006 Free Software Foundation, Inc.
19921This config.status script is free software; the Free Software Foundation
19922gives unlimited permission to copy, distribute and modify it."
19923
19924ac_pwd='$ac_pwd'
19925srcdir='$srcdir'
19926INSTALL='$INSTALL'
19927_ACEOF
19928
19929cat >>$CONFIG_STATUS <<\_ACEOF
19930# If no file are specified by the user, then we need to provide default
19931# value.  By we need to know if files were specified by the user.
19932ac_need_defaults=:
19933while test $# != 0
19934do
19935  case $1 in
19936  --*=*)
19937    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19938    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19939    ac_shift=:
19940    ;;
19941  *)
19942    ac_option=$1
19943    ac_optarg=$2
19944    ac_shift=shift
19945    ;;
19946  esac
19947
19948  case $ac_option in
19949  # Handling of the options.
19950  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19951    ac_cs_recheck=: ;;
19952  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19953    echo "$ac_cs_version"; exit ;;
19954  --debug | --debu | --deb | --de | --d | -d )
19955    debug=: ;;
19956  --file | --fil | --fi | --f )
19957    $ac_shift
19958    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19959    ac_need_defaults=false;;
19960  --header | --heade | --head | --hea )
19961    $ac_shift
19962    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19963    ac_need_defaults=false;;
19964  --he | --h)
19965    # Conflict between --help and --header
19966    { echo "$as_me: error: ambiguous option: $1
19967Try \`$0 --help' for more information." >&2
19968   { (exit 1); exit 1; }; };;
19969  --help | --hel | -h )
19970    echo "$ac_cs_usage"; exit ;;
19971  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19972  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19973    ac_cs_silent=: ;;
19974
19975  # This is an error.
19976  -*) { echo "$as_me: error: unrecognized option: $1
19977Try \`$0 --help' for more information." >&2
19978   { (exit 1); exit 1; }; } ;;
19979
19980  *) ac_config_targets="$ac_config_targets $1"
19981     ac_need_defaults=false ;;
19982
19983  esac
19984  shift
19985done
19986
19987ac_configure_extra_args=
19988
19989if $ac_cs_silent; then
19990  exec 6>/dev/null
19991  ac_configure_extra_args="$ac_configure_extra_args --silent"
19992fi
19993
19994_ACEOF
19995cat >>$CONFIG_STATUS <<_ACEOF
19996if \$ac_cs_recheck; then
19997  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19998  CONFIG_SHELL=$SHELL
19999  export CONFIG_SHELL
20000  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20001fi
20002
20003_ACEOF
20004cat >>$CONFIG_STATUS <<\_ACEOF
20005exec 5>>config.log
20006{
20007  echo
20008  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20009## Running $as_me. ##
20010_ASBOX
20011  echo "$ac_log"
20012} >&5
20013
20014_ACEOF
20015cat >>$CONFIG_STATUS <<_ACEOF
20016#
20017# INIT-COMMANDS
20018#
20019llvm_src="${srcdir}"
20020
20021_ACEOF
20022
20023cat >>$CONFIG_STATUS <<\_ACEOF
20024
20025# Handling of arguments.
20026for ac_config_target in $ac_config_targets
20027do
20028  case $ac_config_target in
20029    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20030    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20031    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20032    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20033    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20034    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20035    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20036    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20037    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20038    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20039    "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20040    "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20041    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20042    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20043    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20044    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20045    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20046    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20047    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20048    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20049    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20050    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20051    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20052    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20053    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20054    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20055
20056  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20057echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20058   { (exit 1); exit 1; }; };;
20059  esac
20060done
20061
20062
20063# If the user did not use the arguments to specify the items to instantiate,
20064# then the envvar interface is used.  Set only those that are not.
20065# We use the long form for the default assignment because of an extremely
20066# bizarre bug on SunOS 4.1.3.
20067if $ac_need_defaults; then
20068  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20069  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20070  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20071fi
20072
20073# Have a temporary directory for convenience.  Make it in the build tree
20074# simply because there is no reason against having it here, and in addition,
20075# creating and moving files from /tmp can sometimes cause problems.
20076# Hook for its removal unless debugging.
20077# Note that there is a small window in which the directory will not be cleaned:
20078# after its creation but before its name has been assigned to `$tmp'.
20079$debug ||
20080{
20081  tmp=
20082  trap 'exit_status=$?
20083  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20084' 0
20085  trap '{ (exit 1); exit 1; }' 1 2 13 15
20086}
20087# Create a (secure) tmp directory for tmp files.
20088
20089{
20090  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20091  test -n "$tmp" && test -d "$tmp"
20092}  ||
20093{
20094  tmp=./conf$$-$RANDOM
20095  (umask 077 && mkdir "$tmp")
20096} ||
20097{
20098   echo "$me: cannot create a temporary directory in ." >&2
20099   { (exit 1); exit 1; }
20100}
20101
20102#
20103# Set up the sed scripts for CONFIG_FILES section.
20104#
20105
20106# No need to generate the scripts if there are no CONFIG_FILES.
20107# This happens for instance when ./config.status config.h
20108if test -n "$CONFIG_FILES"; then
20109
20110_ACEOF
20111
20112
20113
20114ac_delim='%!_!# '
20115for ac_last_try in false false false false false :; do
20116  cat >conf$$subs.sed <<_ACEOF
20117SHELL!$SHELL$ac_delim
20118PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20119PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20120PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20121PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20122PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20123PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20124exec_prefix!$exec_prefix$ac_delim
20125prefix!$prefix$ac_delim
20126program_transform_name!$program_transform_name$ac_delim
20127bindir!$bindir$ac_delim
20128sbindir!$sbindir$ac_delim
20129libexecdir!$libexecdir$ac_delim
20130datarootdir!$datarootdir$ac_delim
20131datadir!$datadir$ac_delim
20132sysconfdir!$sysconfdir$ac_delim
20133sharedstatedir!$sharedstatedir$ac_delim
20134localstatedir!$localstatedir$ac_delim
20135includedir!$includedir$ac_delim
20136oldincludedir!$oldincludedir$ac_delim
20137docdir!$docdir$ac_delim
20138infodir!$infodir$ac_delim
20139htmldir!$htmldir$ac_delim
20140dvidir!$dvidir$ac_delim
20141pdfdir!$pdfdir$ac_delim
20142psdir!$psdir$ac_delim
20143libdir!$libdir$ac_delim
20144localedir!$localedir$ac_delim
20145mandir!$mandir$ac_delim
20146DEFS!$DEFS$ac_delim
20147ECHO_C!$ECHO_C$ac_delim
20148ECHO_N!$ECHO_N$ac_delim
20149ECHO_T!$ECHO_T$ac_delim
20150LIBS!$LIBS$ac_delim
20151build_alias!$build_alias$ac_delim
20152host_alias!$host_alias$ac_delim
20153target_alias!$target_alias$ac_delim
20154LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20155LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20156LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20157LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20158LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20159CC!$CC$ac_delim
20160CFLAGS!$CFLAGS$ac_delim
20161LDFLAGS!$LDFLAGS$ac_delim
20162CPPFLAGS!$CPPFLAGS$ac_delim
20163ac_ct_CC!$ac_ct_CC$ac_delim
20164EXEEXT!$EXEEXT$ac_delim
20165OBJEXT!$OBJEXT$ac_delim
20166CXX!$CXX$ac_delim
20167CXXFLAGS!$CXXFLAGS$ac_delim
20168ac_ct_CXX!$ac_ct_CXX$ac_delim
20169CPP!$CPP$ac_delim
20170subdirs!$subdirs$ac_delim
20171ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20172LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20173build!$build$ac_delim
20174build_cpu!$build_cpu$ac_delim
20175build_vendor!$build_vendor$ac_delim
20176build_os!$build_os$ac_delim
20177host!$host$ac_delim
20178host_cpu!$host_cpu$ac_delim
20179host_vendor!$host_vendor$ac_delim
20180host_os!$host_os$ac_delim
20181target!$target$ac_delim
20182target_cpu!$target_cpu$ac_delim
20183target_vendor!$target_vendor$ac_delim
20184target_os!$target_os$ac_delim
20185OS!$OS$ac_delim
20186HOST_OS!$HOST_OS$ac_delim
20187TARGET_OS!$TARGET_OS$ac_delim
20188LINKALL!$LINKALL$ac_delim
20189NOLINKALL!$NOLINKALL$ac_delim
20190LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20191LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20192ARCH!$ARCH$ac_delim
20193LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20194HOST_ARCH!$HOST_ARCH$ac_delim
20195LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20196BUILD_CC!$BUILD_CC$ac_delim
20197BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20198BUILD_CXX!$BUILD_CXX$ac_delim
20199CVSBUILD!$CVSBUILD$ac_delim
20200ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20201ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20202ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20203ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20204CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
20205ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20206ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20207ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20208ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20209DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20210ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20211ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20212EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20213DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20214_ACEOF
20215
20216  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20217    break
20218  elif $ac_last_try; then
20219    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20220echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20221   { (exit 1); exit 1; }; }
20222  else
20223    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20224  fi
20225done
20226
20227ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20228if test -n "$ac_eof"; then
20229  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20230  ac_eof=`expr $ac_eof + 1`
20231fi
20232
20233cat >>$CONFIG_STATUS <<_ACEOF
20234cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20235/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20236_ACEOF
20237sed '
20238s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20239s/^/s,@/; s/!/@,|#_!!_#|/
20240:n
20241t n
20242s/'"$ac_delim"'$/,g/; t
20243s/$/\\/; p
20244N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20245' >>$CONFIG_STATUS <conf$$subs.sed
20246rm -f conf$$subs.sed
20247cat >>$CONFIG_STATUS <<_ACEOF
20248CEOF$ac_eof
20249_ACEOF
20250
20251
20252ac_delim='%!_!# '
20253for ac_last_try in false false false false false :; do
20254  cat >conf$$subs.sed <<_ACEOF
20255DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20256KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20257JIT!$JIT$ac_delim
20258TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20259TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20260ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20261ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20262LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20263ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20264LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20265ENABLE_PIC!$ENABLE_PIC$ac_delim
20266ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20267ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20268ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20269ALL_TARGETS!$ALL_TARGETS$ac_delim
20270TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20271LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20272LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20273LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20274LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20275OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20276EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20277EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20278CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20279BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20280ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20281INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20282ifGNUmake!$ifGNUmake$ac_delim
20283LN_S!$LN_S$ac_delim
20284NM!$NM$ac_delim
20285CMP!$CMP$ac_delim
20286CP!$CP$ac_delim
20287DATE!$DATE$ac_delim
20288FIND!$FIND$ac_delim
20289GREP!$GREP$ac_delim
20290MKDIR!$MKDIR$ac_delim
20291MV!$MV$ac_delim
20292RANLIB!$RANLIB$ac_delim
20293AR!$AR$ac_delim
20294RM!$RM$ac_delim
20295SED!$SED$ac_delim
20296TAR!$TAR$ac_delim
20297BINPWD!$BINPWD$ac_delim
20298GRAPHVIZ!$GRAPHVIZ$ac_delim
20299DOT!$DOT$ac_delim
20300FDP!$FDP$ac_delim
20301NEATO!$NEATO$ac_delim
20302TWOPI!$TWOPI$ac_delim
20303CIRCO!$CIRCO$ac_delim
20304GV!$GV$ac_delim
20305DOTTY!$DOTTY$ac_delim
20306XDOT!$XDOT$ac_delim
20307INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20308INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20309INSTALL_DATA!$INSTALL_DATA$ac_delim
20310BZIP2!$BZIP2$ac_delim
20311CAT!$CAT$ac_delim
20312DOXYGEN!$DOXYGEN$ac_delim
20313GROFF!$GROFF$ac_delim
20314GZIPBIN!$GZIPBIN$ac_delim
20315PDFROFF!$PDFROFF$ac_delim
20316ZIP!$ZIP$ac_delim
20317OCAMLC!$OCAMLC$ac_delim
20318OCAMLOPT!$OCAMLOPT$ac_delim
20319OCAMLDEP!$OCAMLDEP$ac_delim
20320OCAMLDOC!$OCAMLDOC$ac_delim
20321GAS!$GAS$ac_delim
20322HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20323EGREP!$EGREP$ac_delim
20324NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20325NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20326COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20327NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20328NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20329PYTHON!$PYTHON$ac_delim
20330HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20331HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20332USE_UDIS86!$USE_UDIS86$ac_delim
20333USE_OPROFILE!$USE_OPROFILE$ac_delim
20334USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20335XML2CONFIG!$XML2CONFIG$ac_delim
20336LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20337LIBXML2_INC!$LIBXML2_INC$ac_delim
20338CXXCPP!$CXXCPP$ac_delim
20339HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20340HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20341HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20342MMAP_FILE!$MMAP_FILE$ac_delim
20343SHLIBEXT!$SHLIBEXT$ac_delim
20344LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20345LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20346LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20347LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20348LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20349LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20350LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20351LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20352_ACEOF
20353
20354  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20355    break
20356  elif $ac_last_try; then
20357    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20358echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20359   { (exit 1); exit 1; }; }
20360  else
20361    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20362  fi
20363done
20364
20365ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20366if test -n "$ac_eof"; then
20367  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20368  ac_eof=`expr $ac_eof + 1`
20369fi
20370
20371cat >>$CONFIG_STATUS <<_ACEOF
20372cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20373/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20374_ACEOF
20375sed '
20376s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20377s/^/s,@/; s/!/@,|#_!!_#|/
20378:n
20379t n
20380s/'"$ac_delim"'$/,g/; t
20381s/$/\\/; p
20382N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20383' >>$CONFIG_STATUS <conf$$subs.sed
20384rm -f conf$$subs.sed
20385cat >>$CONFIG_STATUS <<_ACEOF
20386CEOF$ac_eof
20387_ACEOF
20388
20389
20390ac_delim='%!_!# '
20391for ac_last_try in false false false false false :; do
20392  cat >conf$$subs.sed <<_ACEOF
20393LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20394BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20395ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20396OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20397ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20398RPATH!$RPATH$ac_delim
20399RDYNAMIC!$RDYNAMIC$ac_delim
20400program_prefix!$program_prefix$ac_delim
20401LIBOBJS!$LIBOBJS$ac_delim
20402LTLIBOBJS!$LTLIBOBJS$ac_delim
20403_ACEOF
20404
20405  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20406    break
20407  elif $ac_last_try; then
20408    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20409echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20410   { (exit 1); exit 1; }; }
20411  else
20412    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20413  fi
20414done
20415
20416ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20417if test -n "$ac_eof"; then
20418  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20419  ac_eof=`expr $ac_eof + 1`
20420fi
20421
20422cat >>$CONFIG_STATUS <<_ACEOF
20423cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20425_ACEOF
20426sed '
20427s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20428s/^/s,@/; s/!/@,|#_!!_#|/
20429:n
20430t n
20431s/'"$ac_delim"'$/,g/; t
20432s/$/\\/; p
20433N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20434' >>$CONFIG_STATUS <conf$$subs.sed
20435rm -f conf$$subs.sed
20436cat >>$CONFIG_STATUS <<_ACEOF
20437:end
20438s/|#_!!_#|//g
20439CEOF$ac_eof
20440_ACEOF
20441
20442
20443# VPATH may cause trouble with some makes, so we remove $(srcdir),
20444# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20445# trailing colons and then remove the whole line if VPATH becomes empty
20446# (actually we leave an empty line to preserve line numbers).
20447if test "x$srcdir" = x.; then
20448  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20449s/:*\$(srcdir):*/:/
20450s/:*\${srcdir}:*/:/
20451s/:*@srcdir@:*/:/
20452s/^\([^=]*=[	 ]*\):*/\1/
20453s/:*$//
20454s/^[^=]*=[	 ]*$//
20455}'
20456fi
20457
20458cat >>$CONFIG_STATUS <<\_ACEOF
20459fi # test -n "$CONFIG_FILES"
20460
20461
20462for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20463do
20464  case $ac_tag in
20465  :[FHLC]) ac_mode=$ac_tag; continue;;
20466  esac
20467  case $ac_mode$ac_tag in
20468  :[FHL]*:*);;
20469  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20470echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20471   { (exit 1); exit 1; }; };;
20472  :[FH]-) ac_tag=-:-;;
20473  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20474  esac
20475  ac_save_IFS=$IFS
20476  IFS=:
20477  set x $ac_tag
20478  IFS=$ac_save_IFS
20479  shift
20480  ac_file=$1
20481  shift
20482
20483  case $ac_mode in
20484  :L) ac_source=$1;;
20485  :[FH])
20486    ac_file_inputs=
20487    for ac_f
20488    do
20489      case $ac_f in
20490      -) ac_f="$tmp/stdin";;
20491      *) # Look for the file first in the build tree, then in the source tree
20492	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20493	 # because $ac_f cannot contain `:'.
20494	 test -f "$ac_f" ||
20495	   case $ac_f in
20496	   [\\/$]*) false;;
20497	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20498	   esac ||
20499	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20500echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20501   { (exit 1); exit 1; }; };;
20502      esac
20503      ac_file_inputs="$ac_file_inputs $ac_f"
20504    done
20505
20506    # Let's still pretend it is `configure' which instantiates (i.e., don't
20507    # use $as_me), people would be surprised to read:
20508    #    /* config.h.  Generated by config.status.  */
20509    configure_input="Generated from "`IFS=:
20510	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20511    if test x"$ac_file" != x-; then
20512      configure_input="$ac_file.  $configure_input"
20513      { echo "$as_me:$LINENO: creating $ac_file" >&5
20514echo "$as_me: creating $ac_file" >&6;}
20515    fi
20516
20517    case $ac_tag in
20518    *:-:* | *:-) cat >"$tmp/stdin";;
20519    esac
20520    ;;
20521  esac
20522
20523  ac_dir=`$as_dirname -- "$ac_file" ||
20524$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20525	 X"$ac_file" : 'X\(//\)[^/]' \| \
20526	 X"$ac_file" : 'X\(//\)$' \| \
20527	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20528echo X"$ac_file" |
20529    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20530	    s//\1/
20531	    q
20532	  }
20533	  /^X\(\/\/\)[^/].*/{
20534	    s//\1/
20535	    q
20536	  }
20537	  /^X\(\/\/\)$/{
20538	    s//\1/
20539	    q
20540	  }
20541	  /^X\(\/\).*/{
20542	    s//\1/
20543	    q
20544	  }
20545	  s/.*/./; q'`
20546  { as_dir="$ac_dir"
20547  case $as_dir in #(
20548  -*) as_dir=./$as_dir;;
20549  esac
20550  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20551    as_dirs=
20552    while :; do
20553      case $as_dir in #(
20554      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20555      *) as_qdir=$as_dir;;
20556      esac
20557      as_dirs="'$as_qdir' $as_dirs"
20558      as_dir=`$as_dirname -- "$as_dir" ||
20559$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20560	 X"$as_dir" : 'X\(//\)[^/]' \| \
20561	 X"$as_dir" : 'X\(//\)$' \| \
20562	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20563echo X"$as_dir" |
20564    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20565	    s//\1/
20566	    q
20567	  }
20568	  /^X\(\/\/\)[^/].*/{
20569	    s//\1/
20570	    q
20571	  }
20572	  /^X\(\/\/\)$/{
20573	    s//\1/
20574	    q
20575	  }
20576	  /^X\(\/\).*/{
20577	    s//\1/
20578	    q
20579	  }
20580	  s/.*/./; q'`
20581      test -d "$as_dir" && break
20582    done
20583    test -z "$as_dirs" || eval "mkdir $as_dirs"
20584  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20585echo "$as_me: error: cannot create directory $as_dir" >&2;}
20586   { (exit 1); exit 1; }; }; }
20587  ac_builddir=.
20588
20589case "$ac_dir" in
20590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20591*)
20592  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20593  # A ".." for each directory in $ac_dir_suffix.
20594  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20595  case $ac_top_builddir_sub in
20596  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20597  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20598  esac ;;
20599esac
20600ac_abs_top_builddir=$ac_pwd
20601ac_abs_builddir=$ac_pwd$ac_dir_suffix
20602# for backward compatibility:
20603ac_top_builddir=$ac_top_build_prefix
20604
20605case $srcdir in
20606  .)  # We are building in place.
20607    ac_srcdir=.
20608    ac_top_srcdir=$ac_top_builddir_sub
20609    ac_abs_top_srcdir=$ac_pwd ;;
20610  [\\/]* | ?:[\\/]* )  # Absolute name.
20611    ac_srcdir=$srcdir$ac_dir_suffix;
20612    ac_top_srcdir=$srcdir
20613    ac_abs_top_srcdir=$srcdir ;;
20614  *) # Relative name.
20615    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20616    ac_top_srcdir=$ac_top_build_prefix$srcdir
20617    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20618esac
20619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20620
20621
20622  case $ac_mode in
20623  :F)
20624  #
20625  # CONFIG_FILE
20626  #
20627
20628  case $INSTALL in
20629  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20630  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20631  esac
20632_ACEOF
20633
20634cat >>$CONFIG_STATUS <<\_ACEOF
20635# If the template does not know about datarootdir, expand it.
20636# FIXME: This hack should be removed a few years after 2.60.
20637ac_datarootdir_hack=; ac_datarootdir_seen=
20638
20639case `sed -n '/datarootdir/ {
20640  p
20641  q
20642}
20643/@datadir@/p
20644/@docdir@/p
20645/@infodir@/p
20646/@localedir@/p
20647/@mandir@/p
20648' $ac_file_inputs` in
20649*datarootdir*) ac_datarootdir_seen=yes;;
20650*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20651  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20652echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20653_ACEOF
20654cat >>$CONFIG_STATUS <<_ACEOF
20655  ac_datarootdir_hack='
20656  s&@datadir@&$datadir&g
20657  s&@docdir@&$docdir&g
20658  s&@infodir@&$infodir&g
20659  s&@localedir@&$localedir&g
20660  s&@mandir@&$mandir&g
20661    s&\\\${datarootdir}&$datarootdir&g' ;;
20662esac
20663_ACEOF
20664
20665# Neutralize VPATH when `$srcdir' = `.'.
20666# Shell code in configure.ac might set extrasub.
20667# FIXME: do we really want to maintain this feature?
20668cat >>$CONFIG_STATUS <<_ACEOF
20669  sed "$ac_vpsub
20670$extrasub
20671_ACEOF
20672cat >>$CONFIG_STATUS <<\_ACEOF
20673:t
20674/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20675s&@configure_input@&$configure_input&;t t
20676s&@top_builddir@&$ac_top_builddir_sub&;t t
20677s&@srcdir@&$ac_srcdir&;t t
20678s&@abs_srcdir@&$ac_abs_srcdir&;t t
20679s&@top_srcdir@&$ac_top_srcdir&;t t
20680s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20681s&@builddir@&$ac_builddir&;t t
20682s&@abs_builddir@&$ac_abs_builddir&;t t
20683s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20684s&@INSTALL@&$ac_INSTALL&;t t
20685$ac_datarootdir_hack
20686" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20687
20688test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20689  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20690  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20691  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20692which seems to be undefined.  Please make sure it is defined." >&5
20693echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20694which seems to be undefined.  Please make sure it is defined." >&2;}
20695
20696  rm -f "$tmp/stdin"
20697  case $ac_file in
20698  -) cat "$tmp/out"; rm -f "$tmp/out";;
20699  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20700  esac
20701 ;;
20702  :H)
20703  #
20704  # CONFIG_HEADER
20705  #
20706_ACEOF
20707
20708# Transform confdefs.h into a sed script `conftest.defines', that
20709# substitutes the proper values into config.h.in to produce config.h.
20710rm -f conftest.defines conftest.tail
20711# First, append a space to every undef/define line, to ease matching.
20712echo 's/$/ /' >conftest.defines
20713# Then, protect against being on the right side of a sed subst, or in
20714# an unquoted here document, in config.status.  If some macros were
20715# called several times there might be several #defines for the same
20716# symbol, which is useless.  But do not sort them, since the last
20717# AC_DEFINE must be honored.
20718ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20719# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20720# NAME is the cpp macro being defined, VALUE is the value it is being given.
20721# PARAMS is the parameter list in the macro definition--in most cases, it's
20722# just an empty string.
20723ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
20724ac_dB='\\)[	 (].*,\\1define\\2'
20725ac_dC=' '
20726ac_dD=' ,'
20727
20728uniq confdefs.h |
20729  sed -n '
20730	t rset
20731	:rset
20732	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
20733	t ok
20734	d
20735	:ok
20736	s/[\\&,]/\\&/g
20737	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20738	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20739  ' >>conftest.defines
20740
20741# Remove the space that was appended to ease matching.
20742# Then replace #undef with comments.  This is necessary, for
20743# example, in the case of _POSIX_SOURCE, which is predefined and required
20744# on some systems where configure will not decide to define it.
20745# (The regexp can be short, since the line contains either #define or #undef.)
20746echo 's/ $//
20747s,^[	 #]*u.*,/* & */,' >>conftest.defines
20748
20749# Break up conftest.defines:
20750ac_max_sed_lines=50
20751
20752# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20753# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20754# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20755# et cetera.
20756ac_in='$ac_file_inputs'
20757ac_out='"$tmp/out1"'
20758ac_nxt='"$tmp/out2"'
20759
20760while :
20761do
20762  # Write a here document:
20763    cat >>$CONFIG_STATUS <<_ACEOF
20764    # First, check the format of the line:
20765    cat >"\$tmp/defines.sed" <<\\CEOF
20766/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
20767/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
20768b
20769:def
20770_ACEOF
20771  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20772  echo 'CEOF
20773    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20774  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20775  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20776  grep . conftest.tail >/dev/null || break
20777  rm -f conftest.defines
20778  mv conftest.tail conftest.defines
20779done
20780rm -f conftest.defines conftest.tail
20781
20782echo "ac_result=$ac_in" >>$CONFIG_STATUS
20783cat >>$CONFIG_STATUS <<\_ACEOF
20784  if test x"$ac_file" != x-; then
20785    echo "/* $configure_input  */" >"$tmp/config.h"
20786    cat "$ac_result" >>"$tmp/config.h"
20787    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20788      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20789echo "$as_me: $ac_file is unchanged" >&6;}
20790    else
20791      rm -f $ac_file
20792      mv "$tmp/config.h" $ac_file
20793    fi
20794  else
20795    echo "/* $configure_input  */"
20796    cat "$ac_result"
20797  fi
20798  rm -f "$tmp/out12"
20799 ;;
20800
20801  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20802echo "$as_me: executing $ac_file commands" >&6;}
20803 ;;
20804  esac
20805
20806
20807  case $ac_file$ac_mode in
20808    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20809   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20810    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20811   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20812    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20813   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20814    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20815   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20816    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20817   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20818    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20819   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20820    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20821   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20822    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20823   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20824    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20825   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20826    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20827   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20828    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20829   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20830    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20831   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20832
20833  esac
20834done # for ac_tag
20835
20836
20837{ (exit 0); exit 0; }
20838_ACEOF
20839chmod +x $CONFIG_STATUS
20840ac_clean_files=$ac_clean_files_save
20841
20842
20843# configure is writing to config.log, and then calls config.status.
20844# config.status does its own redirection, appending to config.log.
20845# Unfortunately, on DOS this fails, as config.log is still kept open
20846# by configure, so config.status won't be able to write to it; its
20847# output is simply discarded.  So we exec the FD to /dev/null,
20848# effectively closing config.log, so it can be properly (re)opened and
20849# appended to by config.status.  When coming back to configure, we
20850# need to make the FD available again.
20851if test "$no_create" != yes; then
20852  ac_cs_success=:
20853  ac_config_status_args=
20854  test "$silent" = yes &&
20855    ac_config_status_args="$ac_config_status_args --quiet"
20856  exec 5>/dev/null
20857  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20858  exec 5>>config.log
20859  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20860  # would make configure fail if this is the last instruction.
20861  $ac_cs_success || { (exit 1); exit 1; }
20862fi
20863
20864#
20865# CONFIG_SUBDIRS section.
20866#
20867if test "$no_recursion" != yes; then
20868
20869  # Remove --cache-file and --srcdir arguments so they do not pile up.
20870  ac_sub_configure_args=
20871  ac_prev=
20872  eval "set x $ac_configure_args"
20873  shift
20874  for ac_arg
20875  do
20876    if test -n "$ac_prev"; then
20877      ac_prev=
20878      continue
20879    fi
20880    case $ac_arg in
20881    -cache-file | --cache-file | --cache-fil | --cache-fi \
20882    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20883      ac_prev=cache_file ;;
20884    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20885    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20886    | --c=*)
20887      ;;
20888    --config-cache | -C)
20889      ;;
20890    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20891      ac_prev=srcdir ;;
20892    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20893      ;;
20894    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20895      ac_prev=prefix ;;
20896    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20897      ;;
20898    *)
20899      case $ac_arg in
20900      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20901      esac
20902      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20903    esac
20904  done
20905
20906  # Always prepend --prefix to ensure using the same prefix
20907  # in subdir configurations.
20908  ac_arg="--prefix=$prefix"
20909  case $ac_arg in
20910  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20911  esac
20912  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20913
20914  ac_popdir=`pwd`
20915  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20916
20917    # Do not complain, so a configure script can configure whichever
20918    # parts of a large source tree are present.
20919    test -d "$srcdir/$ac_dir" || continue
20920
20921    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20922    echo "$as_me:$LINENO: $ac_msg" >&5
20923    echo "$ac_msg" >&6
20924    { as_dir="$ac_dir"
20925  case $as_dir in #(
20926  -*) as_dir=./$as_dir;;
20927  esac
20928  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20929    as_dirs=
20930    while :; do
20931      case $as_dir in #(
20932      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20933      *) as_qdir=$as_dir;;
20934      esac
20935      as_dirs="'$as_qdir' $as_dirs"
20936      as_dir=`$as_dirname -- "$as_dir" ||
20937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20938	 X"$as_dir" : 'X\(//\)[^/]' \| \
20939	 X"$as_dir" : 'X\(//\)$' \| \
20940	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20941echo X"$as_dir" |
20942    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20943	    s//\1/
20944	    q
20945	  }
20946	  /^X\(\/\/\)[^/].*/{
20947	    s//\1/
20948	    q
20949	  }
20950	  /^X\(\/\/\)$/{
20951	    s//\1/
20952	    q
20953	  }
20954	  /^X\(\/\).*/{
20955	    s//\1/
20956	    q
20957	  }
20958	  s/.*/./; q'`
20959      test -d "$as_dir" && break
20960    done
20961    test -z "$as_dirs" || eval "mkdir $as_dirs"
20962  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20963echo "$as_me: error: cannot create directory $as_dir" >&2;}
20964   { (exit 1); exit 1; }; }; }
20965    ac_builddir=.
20966
20967case "$ac_dir" in
20968.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20969*)
20970  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20971  # A ".." for each directory in $ac_dir_suffix.
20972  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20973  case $ac_top_builddir_sub in
20974  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20975  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20976  esac ;;
20977esac
20978ac_abs_top_builddir=$ac_pwd
20979ac_abs_builddir=$ac_pwd$ac_dir_suffix
20980# for backward compatibility:
20981ac_top_builddir=$ac_top_build_prefix
20982
20983case $srcdir in
20984  .)  # We are building in place.
20985    ac_srcdir=.
20986    ac_top_srcdir=$ac_top_builddir_sub
20987    ac_abs_top_srcdir=$ac_pwd ;;
20988  [\\/]* | ?:[\\/]* )  # Absolute name.
20989    ac_srcdir=$srcdir$ac_dir_suffix;
20990    ac_top_srcdir=$srcdir
20991    ac_abs_top_srcdir=$srcdir ;;
20992  *) # Relative name.
20993    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20994    ac_top_srcdir=$ac_top_build_prefix$srcdir
20995    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20996esac
20997ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20998
20999
21000    cd "$ac_dir"
21001
21002    # Check for guested configure; otherwise get Cygnus style configure.
21003    if test -f "$ac_srcdir/configure.gnu"; then
21004      ac_sub_configure=$ac_srcdir/configure.gnu
21005    elif test -f "$ac_srcdir/configure"; then
21006      ac_sub_configure=$ac_srcdir/configure
21007    elif test -f "$ac_srcdir/configure.in"; then
21008      # This should be Cygnus configure.
21009      ac_sub_configure=$ac_aux_dir/configure
21010    else
21011      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21012echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21013      ac_sub_configure=
21014    fi
21015
21016    # The recursion is here.
21017    if test -n "$ac_sub_configure"; then
21018      # Make the cache file name correct relative to the subdirectory.
21019      case $cache_file in
21020      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21021      *) # Relative name.
21022	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21023      esac
21024
21025      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21026echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21027      # The eval makes quoting arguments work.
21028      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21029	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21030	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21031echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21032   { (exit 1); exit 1; }; }
21033    fi
21034
21035    cd "$ac_popdir"
21036  done
21037fi
21038
21039