xref: /minix3/external/bsd/llvm/dist/llvm/configure (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for LLVM 3.6.1.
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.6.1'
565PACKAGE_STRING='LLVM 3.6.1'
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_OPTIMIZED
695ENABLE_PROFILING
696DISABLE_ASSERTIONS
697ENABLE_WERROR
698ENABLE_EXPENSIVE_CHECKS
699EXPENSIVE_CHECKS
700DEBUG_RUNTIME
701DEBUG_SYMBOLS
702KEEP_SYMBOLS
703JIT
704TARGET_HAS_JIT
705TARGETS_WITH_JIT
706ENABLE_DOCS
707ENABLE_DOXYGEN
708LLVM_ENABLE_THREADS
709ENABLE_PTHREADS
710LLVM_ENABLE_ZLIB
711ENABLE_PIC
712ENABLE_SHARED
713ENABLE_EMBED_STDCXX
714ENABLE_TIMESTAMPS
715ALL_TARGETS
716TARGETS_TO_BUILD
717LLVM_ENUM_TARGETS
718LLVM_ENUM_ASM_PRINTERS
719LLVM_ENUM_ASM_PARSERS
720LLVM_ENUM_DISASSEMBLERS
721OPTIMIZE_OPTION
722EXTRA_OPTIONS
723EXTRA_LD_OPTIONS
724CLANG_SRC_ROOT
725BINUTILS_INCDIR
726ENABLE_TERMINFO
727INTERNAL_PREFIX
728ifGNUmake
729LN_S
730NM
731CMP
732CP
733DATE
734FIND
735GREP
736MKDIR
737MV
738RANLIB
739AR
740RM
741SED
742TAR
743BINPWD
744DOT
745INSTALL_PROGRAM
746INSTALL_SCRIPT
747INSTALL_DATA
748BZIP2
749CAT
750DOXYGEN
751GROFF
752GZIPBIN
753PDFROFF
754ZIP
755GO
756OCAMLFIND
757GAS
758HAVE_LINK_VERSION_SCRIPT
759EGREP
760NO_VARIADIC_MACROS
761NO_MISSING_FIELD_INITIALIZERS
762COVERED_SWITCH_DEFAULT
763NO_MAYBE_UNINITIALIZED
764NO_UNINITIALIZED
765NO_COMMENT
766PYTHON
767HAVE_DLOPEN
768HAVE_TERMINFO
769USE_OPROFILE
770USE_INTEL_JITEVENTS
771XML2CONFIG
772LIBXML2_LIBS
773LIBXML2_INC
774HAVE_PTHREAD
775HAVE_LIBZ
776HUGE_VAL_SANITY
777MMAP_FILE
778SHLIBEXT
779LLVM_PREFIX
780LLVM_BINDIR
781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
789HAVE_OCAMLOPT
790HAVE_OCAML_OUNIT
791OCAML_LIBDIR
792ENABLE_VISIBILITY_INLINES_HIDDEN
793RPATH
794RDYNAMIC
795program_prefix
796LIBOBJS
797LTLIBOBJS'
798ac_subst_files=''
799      ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805CPPFLAGS
806CXX
807CXXFLAGS
808CCC
809CPP'
810ac_subdirs_all='projects/test-suite
811projects/llvm-test
812projects/poolalloc
813projects/llvm-poolalloc
814projects/safecode
815tools/polly'
816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820# The variables have the same names as the options, with
821# dashes changed to underlines.
822cache_file=/dev/null
823exec_prefix=NONE
824no_create=
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
833verbose=
834x_includes=NONE
835x_libraries=NONE
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
842# (The list follows the same order as the GNU Coding Standards.)
843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
862
863ac_prev=
864ac_dashdash=
865for ac_option
866do
867  # If the previous option needs an argument, assign it.
868  if test -n "$ac_prev"; then
869    eval $ac_prev=\$ac_option
870    ac_prev=
871    continue
872  fi
873
874  case $ac_option in
875  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876  *)	ac_optarg=yes ;;
877  esac
878
879  # Accept the important Cygnus configure options, so we can diagnose typos.
880
881  case $ac_dashdash$ac_option in
882  --)
883    ac_dashdash=yes ;;
884
885  -bindir | --bindir | --bindi | --bind | --bin | --bi)
886    ac_prev=bindir ;;
887  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888    bindir=$ac_optarg ;;
889
890  -build | --build | --buil | --bui | --bu)
891    ac_prev=build_alias ;;
892  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893    build_alias=$ac_optarg ;;
894
895  -cache-file | --cache-file | --cache-fil | --cache-fi \
896  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897    ac_prev=cache_file ;;
898  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900    cache_file=$ac_optarg ;;
901
902  --config-cache | -C)
903    cache_file=config.cache ;;
904
905  -datadir | --datadir | --datadi | --datad)
906    ac_prev=datadir ;;
907  -datadir=* | --datadir=* | --datadi=* | --datad=*)
908    datadir=$ac_optarg ;;
909
910  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911  | --dataroo | --dataro | --datar)
912    ac_prev=datarootdir ;;
913  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915    datarootdir=$ac_optarg ;;
916
917  -disable-* | --disable-*)
918    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919    # Reject names that are not valid shell variable names.
920    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
921      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922   { (exit 1); exit 1; }; }
923    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
924    eval enable_$ac_feature=no ;;
925
926  -docdir | --docdir | --docdi | --doc | --do)
927    ac_prev=docdir ;;
928  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929    docdir=$ac_optarg ;;
930
931  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932    ac_prev=dvidir ;;
933  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934    dvidir=$ac_optarg ;;
935
936  -enable-* | --enable-*)
937    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941   { (exit 1); exit 1; }; }
942    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943    eval enable_$ac_feature=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
1065  -program-transform-name=* | --program-transform-name=* \
1066  | --program-transform-nam=* | --program-transform-na=* \
1067  | --program-transform-n=* | --program-transform-=* \
1068  | --program-transform=* | --program-transfor=* \
1069  | --program-transfo=* | --program-transf=* \
1070  | --program-trans=* | --program-tran=* \
1071  | --progr-tra=* | --program-tr=* | --program-t=*)
1072    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089    ac_prev=sbindir ;;
1090  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091  | --sbi=* | --sb=*)
1092    sbindir=$ac_optarg ;;
1093
1094  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096  | --sharedst | --shareds | --shared | --share | --shar \
1097  | --sha | --sh)
1098    ac_prev=sharedstatedir ;;
1099  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102  | --sha=* | --sh=*)
1103    sharedstatedir=$ac_optarg ;;
1104
1105  -site | --site | --sit)
1106    ac_prev=site ;;
1107  -site=* | --site=* | --sit=*)
1108    site=$ac_optarg ;;
1109
1110  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111    ac_prev=srcdir ;;
1112  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113    srcdir=$ac_optarg ;;
1114
1115  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116  | --syscon | --sysco | --sysc | --sys | --sy)
1117    ac_prev=sysconfdir ;;
1118  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120    sysconfdir=$ac_optarg ;;
1121
1122  -target | --target | --targe | --targ | --tar | --ta | --t)
1123    ac_prev=target_alias ;;
1124  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125    target_alias=$ac_optarg ;;
1126
1127  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128    verbose=yes ;;
1129
1130  -version | --version | --versio | --versi | --vers | -V)
1131    ac_init_version=: ;;
1132
1133  -with-* | --with-*)
1134    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1137      { echo "$as_me: error: invalid package name: $ac_package" >&2
1138   { (exit 1); exit 1; }; }
1139    ac_package=`echo $ac_package| sed 's/-/_/g'`
1140    eval with_$ac_package=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146      { echo "$as_me: error: invalid package name: $ac_package" >&2
1147   { (exit 1); exit 1; }; }
1148    ac_package=`echo $ac_package | sed 's/-/_/g'`
1149    eval with_$ac_package=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) { echo "$as_me: error: unrecognized option: $ac_option
1170Try \`$0 --help' for more information." >&2
1171   { (exit 1); exit 1; }; }
1172    ;;
1173
1174  *=*)
1175    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176    # Reject names that are not valid shell variable names.
1177    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1178      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1179   { (exit 1); exit 1; }; }
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  { echo "$as_me: error: missing argument to $ac_option" >&2
1197   { (exit 1); exit 1; }; }
1198fi
1199
1200# Be sure to have absolute directory names.
1201for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202		datadir sysconfdir sharedstatedir localstatedir includedir \
1203		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204		libdir localedir mandir
1205do
1206  eval ac_val=\$$ac_var
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212   { (exit 1); exit 1; }; }
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224  if test "x$build_alias" = x; then
1225    cross_compiling=maybe
1226    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227    If a cross compiler is detected then cross compile mode will be used." >&2
1228  elif test "x$build_alias" != "x$host_alias"; then
1229    cross_compiling=yes
1230  fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
1239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242  { echo "$as_me: error: Working directory cannot be determined" >&2
1243   { (exit 1); exit 1; }; }
1244test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245  { echo "$as_me: error: pwd does not report name of working directory" >&2
1246   { (exit 1); exit 1; }; }
1247
1248
1249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251  ac_srcdir_defaulted=yes
1252  # Try the directory containing this script, then the parent directory.
1253  ac_confdir=`$as_dirname -- "$0" ||
1254$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255	 X"$0" : 'X\(//\)[^/]' \| \
1256	 X"$0" : 'X\(//\)$' \| \
1257	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258echo X"$0" |
1259    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\/\)[^/].*/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\/\)$/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\).*/{
1272	    s//\1/
1273	    q
1274	  }
1275	  s/.*/./; q'`
1276  srcdir=$ac_confdir
1277  if test ! -r "$srcdir/$ac_unique_file"; then
1278    srcdir=..
1279  fi
1280else
1281  ac_srcdir_defaulted=no
1282fi
1283if test ! -r "$srcdir/$ac_unique_file"; then
1284  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286   { (exit 1); exit 1; }; }
1287fi
1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
1290	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1291   { (exit 1); exit 1; }; }
1292	pwd)`
1293# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then
1295  srcdir=.
1296fi
1297# Remove unnecessary trailing slashes from srcdir.
1298# Double slashes in file names in object file debugging info
1299# mess up M-x gdb in Emacs.
1300case $srcdir in
1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302esac
1303for ac_var in $ac_precious_vars; do
1304  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305  eval ac_env_${ac_var}_value=\$${ac_var}
1306  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308done
1309
1310#
1311# Report the --help message.
1312#
1313if test "$ac_init_help" = "long"; then
1314  # Omit some internal or obsolete options to make the list less imposing.
1315  # This message is too long to be a string in the A/UX 3.1 sh.
1316  cat <<_ACEOF
1317\`configure' configures LLVM 3.6.1 to adapt to many kinds of systems.
1318
1319Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324Defaults for the options are specified in brackets.
1325
1326Configuration:
1327  -h, --help              display this help and exit
1328      --help=short        display options specific to this package
1329      --help=recursive    display the short help of all the included packages
1330  -V, --version           display version information and exit
1331  -q, --quiet, --silent   do not print \`checking...' messages
1332      --cache-file=FILE   cache test results in FILE [disabled]
1333  -C, --config-cache      alias for \`--cache-file=config.cache'
1334  -n, --no-create         do not create output files
1335      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337Installation directories:
1338  --prefix=PREFIX         install architecture-independent files in PREFIX
1339			  [$ac_default_prefix]
1340  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341			  [PREFIX]
1342
1343By default, \`make install' will install all the files in
1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346for instance \`--prefix=\$HOME'.
1347
1348For better control, use the options below.
1349
1350Fine tuning of the installation directories:
1351  --bindir=DIR           user executables [EPREFIX/bin]
1352  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1353  --libexecdir=DIR       program executables [EPREFIX/libexec]
1354  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1355  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1356  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1357  --libdir=DIR           object code libraries [EPREFIX/lib]
1358  --includedir=DIR       C header files [PREFIX/include]
1359  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1360  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1361  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1362  --infodir=DIR          info documentation [DATAROOTDIR/info]
1363  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1364  --mandir=DIR           man documentation [DATAROOTDIR/man]
1365  --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1366  --htmldir=DIR          html documentation [DOCDIR]
1367  --dvidir=DIR           dvi documentation [DOCDIR]
1368  --pdfdir=DIR           pdf documentation [DOCDIR]
1369  --psdir=DIR            ps documentation [DOCDIR]
1370_ACEOF
1371
1372  cat <<\_ACEOF
1373
1374System types:
1375  --build=BUILD     configure for building on BUILD [guessed]
1376  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1377  --target=TARGET   configure for building compilers for TARGET [HOST]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382  case $ac_init_help in
1383     short | recursive ) echo "Configuration of LLVM 3.6.1:";;
1384   esac
1385  cat <<\_ACEOF
1386
1387Optional Features:
1388  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390  --enable-polly          Use polly if available (default is YES)
1391  --enable-libcpp         Use libc++ if available (default is NO)
1392  --enable-compiler-version-checks
1393                          Check the version of the host compiler (default is
1394                          YES)
1395  --enable-cxx1y          Use c++1y if available (default is NO)
1396  --enable-split-dwarf    Use split-dwarf if available (default is NO)
1397  --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1398  --enable-clang-plugin-support
1399                          Enable plugin support in clang (default is YES)
1400  --enable-clang-static-analyzer
1401                          Enable building of clang Static Analyzer (default is
1402                          YES)
1403  --enable-optimized      Compile with optimizations enabled (default is NO)
1404  --enable-profiling      Compile with profiling enabled (default is NO)
1405  --enable-assertions     Compile with assertion checks enabled (default is
1406                          YES)
1407  --enable-werror         Compile with -Werror enabled (default is NO)
1408  --enable-expensive-checks
1409                          Compile with expensive debug checks enabled (default
1410                          is NO)
1411  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1412                          NO)
1413  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1414                          optimization is on and YES if it's off)
1415  --enable-keep-symbols   Do not strip installed executables)
1416  --enable-jit            Enable Just In Time Compiling (default is YES)
1417  --enable-docs           Build documents (default is YES)
1418  --enable-doxygen        Build doxygen documentation (default is NO)
1419  --enable-threads        Use threads if available (default is YES)
1420  --enable-pthreads       Use pthreads if available (default is YES)
1421  --enable-zlib           Use zlib for compression/decompression if available
1422                          (default is YES)
1423  --enable-pic            Build LLVM with Position Independent Code (default
1424                          is YES)
1425  --enable-shared         Build a shared library and link tools against it
1426                          (default is NO)
1427  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1428                          Win32 DLL (default is NO)
1429  --enable-timestamps     Enable embedding timestamp information in build
1430                          (default is YES)
1431  --enable-backtraces     Enable embedding backtraces on crash (default is
1432                          YES)
1433  --enable-crash-overrides
1434                          Enable crash handling overrides (default is YES)
1435  --enable-targets        Build specific host targets: all or
1436                          target1,target2,... Valid targets are: host, x86,
1437                          x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1438                          hexagon, xcore, msp430, nvptx, systemz, r600, and
1439                          cpp (default=all)
1440  --enable-experimental-targets
1441                          Build experimental host targets: disable or
1442                          target1,target2,... (default=disable)
1443  --enable-bindings       Build specific language bindings:
1444                          all,auto,none,{binding-name} (default=auto)
1445  --enable-terminfo       Query the terminfo database if available (default is
1446                          YES)
1447  --enable-libedit        Use libedit if available (default is YES)
1448  --enable-libffi         Check for the presence of libffi (default is NO)
1449
1450Optional Packages:
1451  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453  --with-optimize-option  Select the compiler options to use for optimized
1454                          builds
1455  --with-extra-options    Specify additional options to compile LLVM with
1456  --with-extra-ld-options Specify additional options to link LLVM with
1457  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1458                          is stdlib)
1459  --with-clang-srcdir     Directory to the out-of-tree Clang source
1460  --with-clang-resource-dir
1461                          Relative directory from the Clang binary for
1462                          resource files
1463  --with-c-include-dirs   Colon separated list of directories clang will
1464                          search for headers
1465  --with-gcc-toolchain    Directory where gcc is installed.
1466  --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1467  --with-binutils-include Specify path to binutils/include/ containing
1468                          plugin-api.h file for gold plugin.
1469  --with-bug-report-url   Specify the URL where bug reports should be
1470                          submitted (default=http://llvm.org/bugs/)
1471  --with-internal-prefix  Installation directory for internal files
1472  --with-python           path to python
1473  --with-oprofile=<prefix>
1474                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1475  --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1476
1477
1478Some influential environment variables:
1479  CC          C compiler command
1480  CFLAGS      C compiler flags
1481  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482              nonstandard directory <lib dir>
1483  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484              you have headers in a nonstandard directory <include dir>
1485  CXX         C++ compiler command
1486  CXXFLAGS    C++ compiler flags
1487  CPP         C preprocessor
1488
1489Use these variables to override the choices made by `configure' or to help
1490it to find libraries and programs with nonstandard names/locations.
1491
1492Report bugs to <http://llvm.org/bugs/>.
1493_ACEOF
1494ac_status=$?
1495fi
1496
1497if test "$ac_init_help" = "recursive"; then
1498  # If there are subdirs, report their specific --help.
1499  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500    test -d "$ac_dir" || continue
1501    ac_builddir=.
1502
1503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
1506  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507  # A ".." for each directory in $ac_dir_suffix.
1508  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509  case $ac_top_builddir_sub in
1510  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512  esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
1518
1519case $srcdir in
1520  .)  # We are building in place.
1521    ac_srcdir=.
1522    ac_top_srcdir=$ac_top_builddir_sub
1523    ac_abs_top_srcdir=$ac_pwd ;;
1524  [\\/]* | ?:[\\/]* )  # Absolute name.
1525    ac_srcdir=$srcdir$ac_dir_suffix;
1526    ac_top_srcdir=$srcdir
1527    ac_abs_top_srcdir=$srcdir ;;
1528  *) # Relative name.
1529    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530    ac_top_srcdir=$ac_top_build_prefix$srcdir
1531    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532esac
1533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535    cd "$ac_dir" || { ac_status=$?; continue; }
1536    # Check for guested configure.
1537    if test -f "$ac_srcdir/configure.gnu"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540    elif test -f "$ac_srcdir/configure"; then
1541      echo &&
1542      $SHELL "$ac_srcdir/configure" --help=recursive
1543    else
1544      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545    fi || ac_status=$?
1546    cd "$ac_pwd" || { ac_status=$?; break; }
1547  done
1548fi
1549
1550test -n "$ac_init_help" && exit $ac_status
1551if $ac_init_version; then
1552  cat <<\_ACEOF
1553LLVM configure 3.6.1
1554generated by GNU Autoconf 2.60
1555
1556Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15572002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
1560
1561Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1562_ACEOF
1563  exit
1564fi
1565cat >config.log <<_ACEOF
1566This file contains any messages produced by compilers while
1567running configure, to aid debugging if configure makes a mistake.
1568
1569It was created by LLVM $as_me 3.6.1, which was
1570generated by GNU Autoconf 2.60.  Invocation command line was
1571
1572  $ $0 $@
1573
1574_ACEOF
1575exec 5>>config.log
1576{
1577cat <<_ASUNAME
1578## --------- ##
1579## Platform. ##
1580## --------- ##
1581
1582hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587
1588/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1590
1591/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1592/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1593/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1595/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1596/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1597/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1598
1599_ASUNAME
1600
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604  IFS=$as_save_IFS
1605  test -z "$as_dir" && as_dir=.
1606  echo "PATH: $as_dir"
1607done
1608IFS=$as_save_IFS
1609
1610} >&5
1611
1612cat >&5 <<_ACEOF
1613
1614
1615## ----------- ##
1616## Core tests. ##
1617## ----------- ##
1618
1619_ACEOF
1620
1621
1622# Keep a trace of the command line.
1623# Strip out --no-create and --no-recursion so they do not pile up.
1624# Strip out --silent because we don't want to record it for future runs.
1625# Also quote any args containing shell meta-characters.
1626# Make two passes to allow for proper duplicate-argument suppression.
1627ac_configure_args=
1628ac_configure_args0=
1629ac_configure_args1=
1630ac_must_keep_next=false
1631for ac_pass in 1 2
1632do
1633  for ac_arg
1634  do
1635    case $ac_arg in
1636    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638    | -silent | --silent | --silen | --sile | --sil)
1639      continue ;;
1640    *\'*)
1641      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1642    esac
1643    case $ac_pass in
1644    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645    2)
1646      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647      if test $ac_must_keep_next = true; then
1648	ac_must_keep_next=false # Got value, back to normal.
1649      else
1650	case $ac_arg in
1651	  *=* | --config-cache | -C | -disable-* | --disable-* \
1652	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654	  | -with-* | --with-* | -without-* | --without-* | --x)
1655	    case "$ac_configure_args0 " in
1656	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1657	    esac
1658	    ;;
1659	  -* ) ac_must_keep_next=true ;;
1660	esac
1661      fi
1662      ac_configure_args="$ac_configure_args '$ac_arg'"
1663      ;;
1664    esac
1665  done
1666done
1667$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669
1670# When interrupted or exit'd, cleanup temporary files, and complete
1671# config.log.  We remove comments because anyway the quotes in there
1672# would cause problems or look ugly.
1673# WARNING: Use '\'' to represent an apostrophe within the trap.
1674# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675trap 'exit_status=$?
1676  # Save into config.log some information that might help in debugging.
1677  {
1678    echo
1679
1680    cat <<\_ASBOX
1681## ---------------- ##
1682## Cache variables. ##
1683## ---------------- ##
1684_ASBOX
1685    echo
1686    # The following way of writing the cache mishandles newlines in values,
1687(
1688  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689    eval ac_val=\$$ac_var
1690    case $ac_val in #(
1691    *${as_nl}*)
1692      case $ac_var in #(
1693      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1694echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1695      esac
1696      case $ac_var in #(
1697      _ | IFS | as_nl) ;; #(
1698      *) $as_unset $ac_var ;;
1699      esac ;;
1700    esac
1701  done
1702  (set) 2>&1 |
1703    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1704    *${as_nl}ac_space=\ *)
1705      sed -n \
1706	"s/'\''/'\''\\\\'\'''\''/g;
1707	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1708      ;; #(
1709    *)
1710      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711      ;;
1712    esac |
1713    sort
1714)
1715    echo
1716
1717    cat <<\_ASBOX
1718## ----------------- ##
1719## Output variables. ##
1720## ----------------- ##
1721_ASBOX
1722    echo
1723    for ac_var in $ac_subst_vars
1724    do
1725      eval ac_val=\$$ac_var
1726      case $ac_val in
1727      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728      esac
1729      echo "$ac_var='\''$ac_val'\''"
1730    done | sort
1731    echo
1732
1733    if test -n "$ac_subst_files"; then
1734      cat <<\_ASBOX
1735## ------------------- ##
1736## File substitutions. ##
1737## ------------------- ##
1738_ASBOX
1739      echo
1740      for ac_var in $ac_subst_files
1741      do
1742	eval ac_val=\$$ac_var
1743	case $ac_val in
1744	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745	esac
1746	echo "$ac_var='\''$ac_val'\''"
1747      done | sort
1748      echo
1749    fi
1750
1751    if test -s confdefs.h; then
1752      cat <<\_ASBOX
1753## ----------- ##
1754## confdefs.h. ##
1755## ----------- ##
1756_ASBOX
1757      echo
1758      cat confdefs.h
1759      echo
1760    fi
1761    test "$ac_signal" != 0 &&
1762      echo "$as_me: caught signal $ac_signal"
1763    echo "$as_me: exit $exit_status"
1764  } >&5
1765  rm -f core *.core core.conftest.* &&
1766    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1767    exit $exit_status
1768' 0
1769for ac_signal in 1 2 13 15; do
1770  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771done
1772ac_signal=0
1773
1774# confdefs.h avoids OS command line length limits that DEFS can exceed.
1775rm -f -r conftest* confdefs.h
1776
1777# Predefined preprocessor variables.
1778
1779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_NAME "$PACKAGE_NAME"
1781_ACEOF
1782
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_VERSION "$PACKAGE_VERSION"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_STRING "$PACKAGE_STRING"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801_ACEOF
1802
1803
1804# Let the site file select an alternate cache file if it wants to.
1805# Prefer explicitly selected file to automatically selected ones.
1806if test -n "$CONFIG_SITE"; then
1807  set x "$CONFIG_SITE"
1808elif test "x$prefix" != xNONE; then
1809  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1810else
1811  set x "$ac_default_prefix/share/config.site" \
1812	"$ac_default_prefix/etc/config.site"
1813fi
1814shift
1815for ac_site_file
1816do
1817  if test -r "$ac_site_file"; then
1818    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1819echo "$as_me: loading site script $ac_site_file" >&6;}
1820    sed 's/^/| /' "$ac_site_file" >&5
1821    . "$ac_site_file"
1822  fi
1823done
1824
1825if test -r "$cache_file"; then
1826  # Some versions of bash will fail to source /dev/null (special
1827  # files actually), so we avoid doing that.
1828  if test -f "$cache_file"; then
1829    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1830echo "$as_me: loading cache $cache_file" >&6;}
1831    case $cache_file in
1832      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1833      *)                      . "./$cache_file";;
1834    esac
1835  fi
1836else
1837  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1838echo "$as_me: creating cache $cache_file" >&6;}
1839  >$cache_file
1840fi
1841
1842# Check that the precious variables saved in the cache have kept the same
1843# value.
1844ac_cache_corrupted=false
1845for ac_var in $ac_precious_vars; do
1846  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1847  eval ac_new_set=\$ac_env_${ac_var}_set
1848  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1849  eval ac_new_val=\$ac_env_${ac_var}_value
1850  case $ac_old_set,$ac_new_set in
1851    set,)
1852      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1853echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1854      ac_cache_corrupted=: ;;
1855    ,set)
1856      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1857echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1858      ac_cache_corrupted=: ;;
1859    ,);;
1860    *)
1861      if test "x$ac_old_val" != "x$ac_new_val"; then
1862	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1863echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1864	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1865echo "$as_me:   former value:  $ac_old_val" >&2;}
1866	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1867echo "$as_me:   current value: $ac_new_val" >&2;}
1868	ac_cache_corrupted=:
1869      fi;;
1870  esac
1871  # Pass precious variables to config.status.
1872  if test "$ac_new_set" = set; then
1873    case $ac_new_val in
1874    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1875    *) ac_arg=$ac_var=$ac_new_val ;;
1876    esac
1877    case " $ac_configure_args " in
1878      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1879      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880    esac
1881  fi
1882done
1883if $ac_cache_corrupted; then
1884  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1885echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1887echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1888   { (exit 1); exit 1; }; }
1889fi
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915ac_ext=c
1916ac_cpp='$CPP $CPPFLAGS'
1917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922
1923LLVM_VERSION_MAJOR=3
1924LLVM_VERSION_MINOR=6
1925LLVM_VERSION_PATCH=1
1926LLVM_VERSION_SUFFIX=
1927
1928
1929cat >>confdefs.h <<_ACEOF
1930#define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1931_ACEOF
1932
1933
1934cat >>confdefs.h <<_ACEOF
1935#define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1936_ACEOF
1937
1938
1939cat >>confdefs.h <<_ACEOF
1940#define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1941_ACEOF
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1946_ACEOF
1947
1948
1949
1950
1951
1952
1953
1954LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1955
1956
1957
1958
1959
1960
1961
1962ac_aux_dir=
1963for ac_dir in autoconf "$srcdir"/autoconf; do
1964  if test -f "$ac_dir/install-sh"; then
1965    ac_aux_dir=$ac_dir
1966    ac_install_sh="$ac_aux_dir/install-sh -c"
1967    break
1968  elif test -f "$ac_dir/install.sh"; then
1969    ac_aux_dir=$ac_dir
1970    ac_install_sh="$ac_aux_dir/install.sh -c"
1971    break
1972  elif test -f "$ac_dir/shtool"; then
1973    ac_aux_dir=$ac_dir
1974    ac_install_sh="$ac_aux_dir/shtool install -c"
1975    break
1976  fi
1977done
1978if test -z "$ac_aux_dir"; then
1979  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1980echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1981   { (exit 1); exit 1; }; }
1982fi
1983
1984# These three variables are undocumented and unsupported,
1985# and are intended to be withdrawn in a future Autoconf release.
1986# They can cause serious problems if a builder's source tree is in a directory
1987# whose full name contains unusual characters.
1988ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1989ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1990ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1991
1992
1993
1994if test ${srcdir} != "." ; then
1995  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1996    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1997echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1998   { (exit 1); exit 1; }; }
1999  fi
2000fi
2001
2002: ${CFLAGS=}
2003: ${CXXFLAGS=}
2004
2005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010if test -n "$ac_tool_prefix"; then
2011  for ac_prog in clang gcc
2012  do
2013    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017if test "${ac_cv_prog_CC+set}" = set; then
2018  echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020  if test -n "$CC"; then
2021  ac_cv_prog_CC="$CC" # Let the user override the test.
2022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026  IFS=$as_save_IFS
2027  test -z "$as_dir" && as_dir=.
2028  for ac_exec_ext in '' $ac_executable_extensions; do
2029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032    break 2
2033  fi
2034done
2035done
2036IFS=$as_save_IFS
2037
2038fi
2039fi
2040CC=$ac_cv_prog_CC
2041if test -n "$CC"; then
2042  { echo "$as_me:$LINENO: result: $CC" >&5
2043echo "${ECHO_T}$CC" >&6; }
2044else
2045  { echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6; }
2047fi
2048
2049
2050    test -n "$CC" && break
2051  done
2052fi
2053if test -z "$CC"; then
2054  ac_ct_CC=$CC
2055  for ac_prog in clang gcc
2056do
2057  # Extract the first word of "$ac_prog", so it can be a program name with args.
2058set dummy $ac_prog; ac_word=$2
2059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062  echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064  if test -n "$ac_ct_CC"; then
2065  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070  IFS=$as_save_IFS
2071  test -z "$as_dir" && as_dir=.
2072  for ac_exec_ext in '' $ac_executable_extensions; do
2073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2074    ac_cv_prog_ac_ct_CC="$ac_prog"
2075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076    break 2
2077  fi
2078done
2079done
2080IFS=$as_save_IFS
2081
2082fi
2083fi
2084ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085if test -n "$ac_ct_CC"; then
2086  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087echo "${ECHO_T}$ac_ct_CC" >&6; }
2088else
2089  { echo "$as_me:$LINENO: result: no" >&5
2090echo "${ECHO_T}no" >&6; }
2091fi
2092
2093
2094  test -n "$ac_ct_CC" && break
2095done
2096
2097  if test "x$ac_ct_CC" = x; then
2098    CC=""
2099  else
2100    case $cross_compiling:$ac_tool_warned in
2101yes:)
2102{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2103whose name does not start with the host triplet.  If you think this
2104configuration is useful to you, please write to autoconf@gnu.org." >&5
2105echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2106whose name does not start with the host triplet.  If you think this
2107configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2108ac_tool_warned=yes ;;
2109esac
2110    CC=$ac_ct_CC
2111  fi
2112fi
2113
2114
2115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: no acceptable C compiler found in \$PATH
2118See \`config.log' for more details." >&2;}
2119   { (exit 1); exit 1; }; }
2120
2121# Provide some information about the compiler.
2122echo "$as_me:$LINENO: checking for C compiler version" >&5
2123ac_compiler=`set X $ac_compile; echo $2`
2124{ (ac_try="$ac_compiler --version >&5"
2125case "(($ac_try" in
2126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127  *) ac_try_echo=$ac_try;;
2128esac
2129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130  (eval "$ac_compiler --version >&5") 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }
2134{ (ac_try="$ac_compiler -v >&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 -v >&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
2155cat >conftest.$ac_ext <<_ACEOF
2156/* confdefs.h.  */
2157_ACEOF
2158cat confdefs.h >>conftest.$ac_ext
2159cat >>conftest.$ac_ext <<_ACEOF
2160/* end confdefs.h.  */
2161
2162int
2163main ()
2164{
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170ac_clean_files_save=$ac_clean_files
2171ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172# Try to create an executable without -o first, disregard a.out.
2173# It will help us diagnose broken compilers, and finding out an intuition
2174# of exeext.
2175{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2177ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178#
2179# List of possible output files, starting from the most likely.
2180# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2181# only as a last resort.  b.out is created by i960 compilers.
2182ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2183#
2184# The IRIX 6 linker writes into existing files which may not be
2185# executable, retaining their permissions.  Remove them first so a
2186# subsequent execution test works.
2187ac_rmfiles=
2188for ac_file in $ac_files
2189do
2190  case $ac_file in
2191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2192    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2193  esac
2194done
2195rm -f $ac_rmfiles
2196
2197if { (ac_try="$ac_link_default"
2198case "(($ac_try" in
2199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200  *) ac_try_echo=$ac_try;;
2201esac
2202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2203  (eval "$ac_link_default") 2>&5
2204  ac_status=$?
2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206  (exit $ac_status); }; then
2207  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2208# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2209# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2210# so that the user can short-circuit this test for compilers unknown to
2211# Autoconf.
2212for ac_file in $ac_files
2213do
2214  test -f "$ac_file" || continue
2215  case $ac_file in
2216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2217	;;
2218    [ab].out )
2219	# We found the default executable, but exeext='' is most
2220	# certainly right.
2221	break;;
2222    *.* )
2223        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2224	then :; else
2225	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226	fi
2227	# We set ac_cv_exeext here because the later test for it is not
2228	# safe: cross compilers may not add the suffix if given an `-o'
2229	# argument, so we may need to know it at that point already.
2230	# Even if this section looks crufty: it has the advantage of
2231	# actually working.
2232	break;;
2233    * )
2234	break;;
2235  esac
2236done
2237test "$ac_cv_exeext" = no && ac_cv_exeext=
2238
2239else
2240  echo "$as_me: failed program was:" >&5
2241sed 's/^/| /' conftest.$ac_ext >&5
2242
2243{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: C compiler cannot create executables
2246See \`config.log' for more details." >&2;}
2247   { (exit 77); exit 77; }; }
2248fi
2249
2250ac_exeext=$ac_cv_exeext
2251{ echo "$as_me:$LINENO: result: $ac_file" >&5
2252echo "${ECHO_T}$ac_file" >&6; }
2253
2254# Check that the compiler produces executables we can run.  If not, either
2255# the compiler is broken, or we cross compile.
2256{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2258# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259# If not cross compiling, check that we can run a simple program.
2260if test "$cross_compiling" != yes; then
2261  if { ac_try='./$ac_file'
2262  { (case "(($ac_try" in
2263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264  *) ac_try_echo=$ac_try;;
2265esac
2266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267  (eval "$ac_try") 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; }; then
2271    cross_compiling=no
2272  else
2273    if test "$cross_compiling" = maybe; then
2274	cross_compiling=yes
2275    else
2276	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2277If you meant to cross compile, use \`--host'.
2278See \`config.log' for more details." >&5
2279echo "$as_me: error: cannot run C compiled programs.
2280If you meant to cross compile, use \`--host'.
2281See \`config.log' for more details." >&2;}
2282   { (exit 1); exit 1; }; }
2283    fi
2284  fi
2285fi
2286{ echo "$as_me:$LINENO: result: yes" >&5
2287echo "${ECHO_T}yes" >&6; }
2288
2289rm -f a.out a.exe conftest$ac_cv_exeext b.out
2290ac_clean_files=$ac_clean_files_save
2291# Check that the compiler produces executables we can run.  If not, either
2292# the compiler is broken, or we cross compile.
2293{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2294echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2295{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2296echo "${ECHO_T}$cross_compiling" >&6; }
2297
2298{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2299echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2300if { (ac_try="$ac_link"
2301case "(($ac_try" in
2302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303  *) ac_try_echo=$ac_try;;
2304esac
2305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306  (eval "$ac_link") 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }; then
2310  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2311# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2312# work properly (i.e., refer to `conftest.exe'), while it won't with
2313# `rm'.
2314for ac_file in conftest.exe conftest conftest.*; do
2315  test -f "$ac_file" || continue
2316  case $ac_file in
2317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2318    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2319	  break;;
2320    * ) break;;
2321  esac
2322done
2323else
2324  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325See \`config.log' for more details." >&5
2326echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327See \`config.log' for more details." >&2;}
2328   { (exit 1); exit 1; }; }
2329fi
2330
2331rm -f conftest$ac_cv_exeext
2332{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333echo "${ECHO_T}$ac_cv_exeext" >&6; }
2334
2335rm -f conftest.$ac_ext
2336EXEEXT=$ac_cv_exeext
2337ac_exeext=$EXEEXT
2338{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2340if test "${ac_cv_objext+set}" = set; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h.  */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h.  */
2349
2350int
2351main ()
2352{
2353
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358rm -f conftest.o conftest.obj
2359if { (ac_try="$ac_compile"
2360case "(($ac_try" in
2361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362  *) ac_try_echo=$ac_try;;
2363esac
2364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365  (eval "$ac_compile") 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; then
2369  for ac_file in conftest.o conftest.obj conftest.*; do
2370  test -f "$ac_file" || continue;
2371  case $ac_file in
2372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2373    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374       break;;
2375  esac
2376done
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2382See \`config.log' for more details." >&5
2383echo "$as_me: error: cannot compute suffix of object files: cannot compile
2384See \`config.log' for more details." >&2;}
2385   { (exit 1); exit 1; }; }
2386fi
2387
2388rm -f conftest.$ac_cv_objext conftest.$ac_ext
2389fi
2390{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2391echo "${ECHO_T}$ac_cv_objext" >&6; }
2392OBJEXT=$ac_cv_objext
2393ac_objext=$OBJEXT
2394{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2395echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2396if test "${ac_cv_c_compiler_gnu+set}" = set; then
2397  echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399  cat >conftest.$ac_ext <<_ACEOF
2400/* confdefs.h.  */
2401_ACEOF
2402cat confdefs.h >>conftest.$ac_ext
2403cat >>conftest.$ac_ext <<_ACEOF
2404/* end confdefs.h.  */
2405
2406int
2407main ()
2408{
2409#ifndef __GNUC__
2410       choke me
2411#endif
2412
2413  ;
2414  return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
2418if { (ac_try="$ac_compile"
2419case "(($ac_try" in
2420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421  *) ac_try_echo=$ac_try;;
2422esac
2423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424  (eval "$ac_compile") 2>conftest.er1
2425  ac_status=$?
2426  grep -v '^ *+' conftest.er1 >conftest.err
2427  rm -f conftest.er1
2428  cat conftest.err >&5
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); } &&
2431	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432  { (case "(($ac_try" in
2433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434  *) ac_try_echo=$ac_try;;
2435esac
2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437  (eval "$ac_try") 2>&5
2438  ac_status=$?
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); }; } &&
2441	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2451  ac_compiler_gnu=yes
2452else
2453  echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456	ac_compiler_gnu=no
2457fi
2458
2459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460ac_cv_c_compiler_gnu=$ac_compiler_gnu
2461
2462fi
2463{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2464echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2465GCC=`test $ac_compiler_gnu = yes && echo yes`
2466ac_test_CFLAGS=${CFLAGS+set}
2467ac_save_CFLAGS=$CFLAGS
2468{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2469echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2470if test "${ac_cv_prog_cc_g+set}" = set; then
2471  echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473  ac_save_c_werror_flag=$ac_c_werror_flag
2474   ac_c_werror_flag=yes
2475   ac_cv_prog_cc_g=no
2476   CFLAGS="-g"
2477   cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h.  */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h.  */
2483
2484int
2485main ()
2486{
2487
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
2493if { (ac_try="$ac_compile"
2494case "(($ac_try" in
2495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496  *) ac_try_echo=$ac_try;;
2497esac
2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499  (eval "$ac_compile") 2>conftest.er1
2500  ac_status=$?
2501  grep -v '^ *+' conftest.er1 >conftest.err
2502  rm -f conftest.er1
2503  cat conftest.err >&5
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); } &&
2506	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2507  { (case "(($ac_try" in
2508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509  *) ac_try_echo=$ac_try;;
2510esac
2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512  (eval "$ac_try") 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; } &&
2516	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2526  ac_cv_prog_cc_g=yes
2527else
2528  echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531	CFLAGS=""
2532      cat >conftest.$ac_ext <<_ACEOF
2533/* confdefs.h.  */
2534_ACEOF
2535cat confdefs.h >>conftest.$ac_ext
2536cat >>conftest.$ac_ext <<_ACEOF
2537/* end confdefs.h.  */
2538
2539int
2540main ()
2541{
2542
2543  ;
2544  return 0;
2545}
2546_ACEOF
2547rm -f conftest.$ac_objext
2548if { (ac_try="$ac_compile"
2549case "(($ac_try" in
2550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551  *) ac_try_echo=$ac_try;;
2552esac
2553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554  (eval "$ac_compile") 2>conftest.er1
2555  ac_status=$?
2556  grep -v '^ *+' conftest.er1 >conftest.err
2557  rm -f conftest.er1
2558  cat conftest.err >&5
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); } &&
2561	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562  { (case "(($ac_try" in
2563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564  *) ac_try_echo=$ac_try;;
2565esac
2566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567  (eval "$ac_try") 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; } &&
2571	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2581  :
2582else
2583  echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586	ac_c_werror_flag=$ac_save_c_werror_flag
2587	 CFLAGS="-g"
2588	 cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h.  */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
2593/* end confdefs.h.  */
2594
2595int
2596main ()
2597{
2598
2599  ;
2600  return 0;
2601}
2602_ACEOF
2603rm -f conftest.$ac_objext
2604if { (ac_try="$ac_compile"
2605case "(($ac_try" in
2606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607  *) ac_try_echo=$ac_try;;
2608esac
2609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610  (eval "$ac_compile") 2>conftest.er1
2611  ac_status=$?
2612  grep -v '^ *+' conftest.er1 >conftest.err
2613  rm -f conftest.er1
2614  cat conftest.err >&5
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); } &&
2617	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2618  { (case "(($ac_try" in
2619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620  *) ac_try_echo=$ac_try;;
2621esac
2622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623  (eval "$ac_try") 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2637  ac_cv_prog_cc_g=yes
2638else
2639  echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
2641
2642
2643fi
2644
2645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646fi
2647
2648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649fi
2650
2651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652   ac_c_werror_flag=$ac_save_c_werror_flag
2653fi
2654{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2655echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2656if test "$ac_test_CFLAGS" = set; then
2657  CFLAGS=$ac_save_CFLAGS
2658elif test $ac_cv_prog_cc_g = yes; then
2659  if test "$GCC" = yes; then
2660    CFLAGS="-g -O2"
2661  else
2662    CFLAGS="-g"
2663  fi
2664else
2665  if test "$GCC" = yes; then
2666    CFLAGS="-O2"
2667  else
2668    CFLAGS=
2669  fi
2670fi
2671{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2672echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2673if test "${ac_cv_prog_cc_c89+set}" = set; then
2674  echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676  ac_cv_prog_cc_c89=no
2677ac_save_CC=$CC
2678cat >conftest.$ac_ext <<_ACEOF
2679/* confdefs.h.  */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h.  */
2684#include <stdarg.h>
2685#include <stdio.h>
2686#include <sys/types.h>
2687#include <sys/stat.h>
2688/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2689struct buf { int x; };
2690FILE * (*rcsopen) (struct buf *, struct stat *, int);
2691static char *e (p, i)
2692     char **p;
2693     int i;
2694{
2695  return p[i];
2696}
2697static char *f (char * (*g) (char **, int), char **p, ...)
2698{
2699  char *s;
2700  va_list v;
2701  va_start (v,p);
2702  s = g (p, va_arg (v,int));
2703  va_end (v);
2704  return s;
2705}
2706
2707/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2708   function prototypes and stuff, but not '\xHH' hex character constants.
2709   These don't provoke an error unfortunately, instead are silently treated
2710   as 'x'.  The following induces an error, until -std is added to get
2711   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2712   array size at least.  It's necessary to write '\x00'==0 to get something
2713   that's true only with -std.  */
2714int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2715
2716/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2717   inside strings and character constants.  */
2718#define FOO(x) 'x'
2719int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2720
2721int test (int i, double x);
2722struct s1 {int (*f) (int a);};
2723struct s2 {int (*f) (double a);};
2724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725int argc;
2726char **argv;
2727int
2728main ()
2729{
2730return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2736	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737do
2738  CC="$ac_save_CC $ac_arg"
2739  rm -f conftest.$ac_objext
2740if { (ac_try="$ac_compile"
2741case "(($ac_try" in
2742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743  *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746  (eval "$ac_compile") 2>conftest.er1
2747  ac_status=$?
2748  grep -v '^ *+' conftest.er1 >conftest.err
2749  rm -f conftest.er1
2750  cat conftest.err >&5
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); } &&
2753	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754  { (case "(($ac_try" in
2755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756  *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759  (eval "$ac_try") 2>&5
2760  ac_status=$?
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); }; } &&
2763	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2773  ac_cv_prog_cc_c89=$ac_arg
2774else
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778
2779fi
2780
2781rm -f core conftest.err conftest.$ac_objext
2782  test "x$ac_cv_prog_cc_c89" != "xno" && break
2783done
2784rm -f conftest.$ac_ext
2785CC=$ac_save_CC
2786
2787fi
2788# AC_CACHE_VAL
2789case "x$ac_cv_prog_cc_c89" in
2790  x)
2791    { echo "$as_me:$LINENO: result: none needed" >&5
2792echo "${ECHO_T}none needed" >&6; } ;;
2793  xno)
2794    { echo "$as_me:$LINENO: result: unsupported" >&5
2795echo "${ECHO_T}unsupported" >&6; } ;;
2796  *)
2797    CC="$CC $ac_cv_prog_cc_c89"
2798    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2799echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2800esac
2801
2802
2803ac_ext=c
2804ac_cpp='$CPP $CPPFLAGS'
2805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809ac_ext=cpp
2810ac_cpp='$CXXCPP $CPPFLAGS'
2811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2814if test -z "$CXX"; then
2815  if test -n "$CCC"; then
2816    CXX=$CCC
2817  else
2818    if test -n "$ac_tool_prefix"; then
2819  for ac_prog in clang++ g++
2820  do
2821    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825if test "${ac_cv_prog_CXX+set}" = set; then
2826  echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828  if test -n "$CXX"; then
2829  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834  IFS=$as_save_IFS
2835  test -z "$as_dir" && as_dir=.
2836  for ac_exec_ext in '' $ac_executable_extensions; do
2837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840    break 2
2841  fi
2842done
2843done
2844IFS=$as_save_IFS
2845
2846fi
2847fi
2848CXX=$ac_cv_prog_CXX
2849if test -n "$CXX"; then
2850  { echo "$as_me:$LINENO: result: $CXX" >&5
2851echo "${ECHO_T}$CXX" >&6; }
2852else
2853  { echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6; }
2855fi
2856
2857
2858    test -n "$CXX" && break
2859  done
2860fi
2861if test -z "$CXX"; then
2862  ac_ct_CXX=$CXX
2863  for ac_prog in clang++ g++
2864do
2865  # Extract the first word of "$ac_prog", so it can be a program name with args.
2866set dummy $ac_prog; ac_word=$2
2867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2870  echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872  if test -n "$ac_ct_CXX"; then
2873  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  test -z "$as_dir" && as_dir=.
2880  for ac_exec_ext in '' $ac_executable_extensions; do
2881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882    ac_cv_prog_ac_ct_CXX="$ac_prog"
2883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884    break 2
2885  fi
2886done
2887done
2888IFS=$as_save_IFS
2889
2890fi
2891fi
2892ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2893if test -n "$ac_ct_CXX"; then
2894  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2895echo "${ECHO_T}$ac_ct_CXX" >&6; }
2896else
2897  { echo "$as_me:$LINENO: result: no" >&5
2898echo "${ECHO_T}no" >&6; }
2899fi
2900
2901
2902  test -n "$ac_ct_CXX" && break
2903done
2904
2905  if test "x$ac_ct_CXX" = x; then
2906    CXX="g++"
2907  else
2908    case $cross_compiling:$ac_tool_warned in
2909yes:)
2910{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2911whose name does not start with the host triplet.  If you think this
2912configuration is useful to you, please write to autoconf@gnu.org." >&5
2913echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2914whose name does not start with the host triplet.  If you think this
2915configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2916ac_tool_warned=yes ;;
2917esac
2918    CXX=$ac_ct_CXX
2919  fi
2920fi
2921
2922  fi
2923fi
2924# Provide some information about the compiler.
2925echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2926ac_compiler=`set X $ac_compile; echo $2`
2927{ (ac_try="$ac_compiler --version >&5"
2928case "(($ac_try" in
2929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930  *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933  (eval "$ac_compiler --version >&5") 2>&5
2934  ac_status=$?
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); }
2937{ (ac_try="$ac_compiler -v >&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 -v >&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
2958{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2959echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2960if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2961  echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
2963  cat >conftest.$ac_ext <<_ACEOF
2964/* confdefs.h.  */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h.  */
2969
2970int
2971main ()
2972{
2973#ifndef __GNUC__
2974       choke me
2975#endif
2976
2977  ;
2978  return 0;
2979}
2980_ACEOF
2981rm -f conftest.$ac_objext
2982if { (ac_try="$ac_compile"
2983case "(($ac_try" in
2984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985  *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988  (eval "$ac_compile") 2>conftest.er1
2989  ac_status=$?
2990  grep -v '^ *+' conftest.er1 >conftest.err
2991  rm -f conftest.er1
2992  cat conftest.err >&5
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); } &&
2995	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2996  { (case "(($ac_try" in
2997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998  *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001  (eval "$ac_try") 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }; } &&
3005	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3015  ac_compiler_gnu=yes
3016else
3017  echo "$as_me: failed program was:" >&5
3018sed 's/^/| /' conftest.$ac_ext >&5
3019
3020	ac_compiler_gnu=no
3021fi
3022
3023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3025
3026fi
3027{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3028echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3029GXX=`test $ac_compiler_gnu = yes && echo yes`
3030ac_test_CXXFLAGS=${CXXFLAGS+set}
3031ac_save_CXXFLAGS=$CXXFLAGS
3032{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3033echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3034if test "${ac_cv_prog_cxx_g+set}" = set; then
3035  echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3038   ac_cxx_werror_flag=yes
3039   ac_cv_prog_cxx_g=no
3040   CXXFLAGS="-g"
3041   cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h.  */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h.  */
3047
3048int
3049main ()
3050{
3051
3052  ;
3053  return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext
3057if { (ac_try="$ac_compile"
3058case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063  (eval "$ac_compile") 2>conftest.er1
3064  ac_status=$?
3065  grep -v '^ *+' conftest.er1 >conftest.err
3066  rm -f conftest.er1
3067  cat conftest.err >&5
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); } &&
3070	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3071  { (case "(($ac_try" in
3072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073  *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076  (eval "$ac_try") 2>&5
3077  ac_status=$?
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); }; } &&
3080	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3090  ac_cv_prog_cxx_g=yes
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095	CXXFLAGS=""
3096      cat >conftest.$ac_ext <<_ACEOF
3097/* confdefs.h.  */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h.  */
3102
3103int
3104main ()
3105{
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111rm -f conftest.$ac_objext
3112if { (ac_try="$ac_compile"
3113case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118  (eval "$ac_compile") 2>conftest.er1
3119  ac_status=$?
3120  grep -v '^ *+' conftest.er1 >conftest.err
3121  rm -f conftest.er1
3122  cat conftest.err >&5
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); } &&
3125	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3126  { (case "(($ac_try" in
3127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128  *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131  (eval "$ac_try") 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; } &&
3135	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3145  :
3146else
3147  echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3151	 CXXFLAGS="-g"
3152	 cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158
3159int
3160main ()
3161{
3162
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext
3168if { (ac_try="$ac_compile"
3169case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174  (eval "$ac_compile") 2>conftest.er1
3175  ac_status=$?
3176  grep -v '^ *+' conftest.er1 >conftest.err
3177  rm -f conftest.er1
3178  cat conftest.err >&5
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); } &&
3181	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3182  { (case "(($ac_try" in
3183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184  *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187  (eval "$ac_try") 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; } &&
3191	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3201  ac_cv_prog_cxx_g=yes
3202else
3203  echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206
3207fi
3208
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210fi
3211
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214
3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3217fi
3218{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3219echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3220if test "$ac_test_CXXFLAGS" = set; then
3221  CXXFLAGS=$ac_save_CXXFLAGS
3222elif test $ac_cv_prog_cxx_g = yes; then
3223  if test "$GXX" = yes; then
3224    CXXFLAGS="-g -O2"
3225  else
3226    CXXFLAGS="-g"
3227  fi
3228else
3229  if test "$GXX" = yes; then
3230    CXXFLAGS="-O2"
3231  else
3232    CXXFLAGS=
3233  fi
3234fi
3235ac_ext=c
3236ac_cpp='$CPP $CPPFLAGS'
3237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
3241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3247echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3248# On Suns, sometimes $CPP names a directory.
3249if test -n "$CPP" && test -d "$CPP"; then
3250  CPP=
3251fi
3252if test -z "$CPP"; then
3253  if test "${ac_cv_prog_CPP+set}" = set; then
3254  echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256      # Double quotes because CPP needs to be expanded
3257    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258    do
3259      ac_preproc_ok=false
3260for ac_c_preproc_warn_flag in '' yes
3261do
3262  # Use a header file that comes with gcc, so configuring glibc
3263  # with a fresh cross-compiler works.
3264  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3265  # <limits.h> exists even on freestanding compilers.
3266  # On the NeXT, cc -E runs the code through the compiler's parser,
3267  # not just through cpp. "Syntax error" is here to catch this case.
3268  cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h.  */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h.  */
3274#ifdef __STDC__
3275# include <limits.h>
3276#else
3277# include <assert.h>
3278#endif
3279		     Syntax error
3280_ACEOF
3281if { (ac_try="$ac_cpp conftest.$ac_ext"
3282case "(($ac_try" in
3283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284  *) ac_try_echo=$ac_try;;
3285esac
3286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3288  ac_status=$?
3289  grep -v '^ *+' conftest.er1 >conftest.err
3290  rm -f conftest.er1
3291  cat conftest.err >&5
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); } >/dev/null; then
3294  if test -s conftest.err; then
3295    ac_cpp_err=$ac_c_preproc_warn_flag
3296    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297  else
3298    ac_cpp_err=
3299  fi
3300else
3301  ac_cpp_err=yes
3302fi
3303if test -z "$ac_cpp_err"; then
3304  :
3305else
3306  echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309  # Broken: fails on valid input.
3310continue
3311fi
3312
3313rm -f conftest.err conftest.$ac_ext
3314
3315  # OK, works on sane cases.  Now check whether nonexistent headers
3316  # can be detected and how.
3317  cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h.  */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h.  */
3323#include <ac_nonexistent.h>
3324_ACEOF
3325if { (ac_try="$ac_cpp conftest.$ac_ext"
3326case "(($ac_try" in
3327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328  *) ac_try_echo=$ac_try;;
3329esac
3330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3332  ac_status=$?
3333  grep -v '^ *+' conftest.er1 >conftest.err
3334  rm -f conftest.er1
3335  cat conftest.err >&5
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); } >/dev/null; then
3338  if test -s conftest.err; then
3339    ac_cpp_err=$ac_c_preproc_warn_flag
3340    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3341  else
3342    ac_cpp_err=
3343  fi
3344else
3345  ac_cpp_err=yes
3346fi
3347if test -z "$ac_cpp_err"; then
3348  # Broken: success on invalid input.
3349continue
3350else
3351  echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354  # Passes both tests.
3355ac_preproc_ok=:
3356break
3357fi
3358
3359rm -f conftest.err conftest.$ac_ext
3360
3361done
3362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363rm -f conftest.err conftest.$ac_ext
3364if $ac_preproc_ok; then
3365  break
3366fi
3367
3368    done
3369    ac_cv_prog_CPP=$CPP
3370
3371fi
3372  CPP=$ac_cv_prog_CPP
3373else
3374  ac_cv_prog_CPP=$CPP
3375fi
3376{ echo "$as_me:$LINENO: result: $CPP" >&5
3377echo "${ECHO_T}$CPP" >&6; }
3378ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381  # Use a header file that comes with gcc, so configuring glibc
3382  # with a fresh cross-compiler works.
3383  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384  # <limits.h> exists even on freestanding compilers.
3385  # On the NeXT, cc -E runs the code through the compiler's parser,
3386  # not just through cpp. "Syntax error" is here to catch this case.
3387  cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393#ifdef __STDC__
3394# include <limits.h>
3395#else
3396# include <assert.h>
3397#endif
3398		     Syntax error
3399_ACEOF
3400if { (ac_try="$ac_cpp conftest.$ac_ext"
3401case "(($ac_try" in
3402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403  *) ac_try_echo=$ac_try;;
3404esac
3405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407  ac_status=$?
3408  grep -v '^ *+' conftest.er1 >conftest.err
3409  rm -f conftest.er1
3410  cat conftest.err >&5
3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); } >/dev/null; then
3413  if test -s conftest.err; then
3414    ac_cpp_err=$ac_c_preproc_warn_flag
3415    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416  else
3417    ac_cpp_err=
3418  fi
3419else
3420  ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
3423  :
3424else
3425  echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428  # Broken: fails on valid input.
3429continue
3430fi
3431
3432rm -f conftest.err conftest.$ac_ext
3433
3434  # OK, works on sane cases.  Now check whether nonexistent headers
3435  # can be detected and how.
3436  cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h.  */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h.  */
3442#include <ac_nonexistent.h>
3443_ACEOF
3444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } >/dev/null; then
3457  if test -s conftest.err; then
3458    ac_cpp_err=$ac_c_preproc_warn_flag
3459    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460  else
3461    ac_cpp_err=
3462  fi
3463else
3464  ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
3467  # Broken: success on invalid input.
3468continue
3469else
3470  echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473  # Passes both tests.
3474ac_preproc_ok=:
3475break
3476fi
3477
3478rm -f conftest.err conftest.$ac_ext
3479
3480done
3481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482rm -f conftest.err conftest.$ac_ext
3483if $ac_preproc_ok; then
3484  :
3485else
3486  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487See \`config.log' for more details." >&5
3488echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489See \`config.log' for more details." >&2;}
3490   { (exit 1); exit 1; }; }
3491fi
3492
3493ac_ext=c
3494ac_cpp='$CPP $CPPFLAGS'
3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499
3500if test "$CXX" = "clang++" ; then
3501  { echo "$as_me:$LINENO: checking whether clang works" >&5
3502echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3503  ac_ext=cpp
3504ac_cpp='$CXXCPP $CPPFLAGS'
3505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508
3509
3510cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h.  */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h.  */
3516#include <limits>
3517#if __has_include (<cxxabi.h>)
3518#include <cxxabi.h>
3519#endif
3520#if __has_include (<unwind.h>)
3521#include <unwind.h>
3522#endif
3523
3524int
3525main ()
3526{
3527
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532rm -f conftest.$ac_objext
3533if { (ac_try="$ac_compile"
3534case "(($ac_try" in
3535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536  *) ac_try_echo=$ac_try;;
3537esac
3538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539  (eval "$ac_compile") 2>conftest.er1
3540  ac_status=$?
3541  grep -v '^ *+' conftest.er1 >conftest.err
3542  rm -f conftest.er1
3543  cat conftest.err >&5
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); } &&
3546	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3547  { (case "(($ac_try" in
3548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549  *) ac_try_echo=$ac_try;;
3550esac
3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552  (eval "$ac_try") 2>&5
3553  ac_status=$?
3554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555  (exit $ac_status); }; } &&
3556	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3566
3567  { echo "$as_me:$LINENO: result: yes" >&5
3568echo "${ECHO_T}yes" >&6; }
3569
3570else
3571  echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574
3575  { echo "$as_me:$LINENO: result: no" >&5
3576echo "${ECHO_T}no" >&6; }
3577  { { 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
3578echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3579   { (exit 1); exit 1; }; }
3580
3581fi
3582
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584  ac_ext=c
3585ac_cpp='$CPP $CPPFLAGS'
3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
3590fi
3591
3592{ echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3593echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3594ac_ext=cpp
3595ac_cpp='$CXXCPP $CPPFLAGS'
3596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3599
3600llvm_cv_cxx_compiler=unknown
3601cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h.  */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h.  */
3607#if ! __clang__
3608                                    #error
3609                                    #endif
3610
3611_ACEOF
3612rm -f conftest.$ac_objext
3613if { (ac_try="$ac_compile"
3614case "(($ac_try" in
3615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616  *) ac_try_echo=$ac_try;;
3617esac
3618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619  (eval "$ac_compile") 2>conftest.er1
3620  ac_status=$?
3621  grep -v '^ *+' conftest.er1 >conftest.err
3622  rm -f conftest.er1
3623  cat conftest.err >&5
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); } &&
3626	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3627  { (case "(($ac_try" in
3628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629  *) ac_try_echo=$ac_try;;
3630esac
3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632  (eval "$ac_try") 2>&5
3633  ac_status=$?
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); }; } &&
3636	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3646  llvm_cv_cxx_compiler=clang
3647else
3648  echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651	cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657#if ! __GNUC__
3658                                                       #error
3659                                                       #endif
3660
3661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (ac_try="$ac_compile"
3664case "(($ac_try" in
3665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666  *) ac_try_echo=$ac_try;;
3667esac
3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669  (eval "$ac_compile") 2>conftest.er1
3670  ac_status=$?
3671  grep -v '^ *+' conftest.er1 >conftest.err
3672  rm -f conftest.er1
3673  cat conftest.err >&5
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); } &&
3676	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3677  { (case "(($ac_try" in
3678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679  *) ac_try_echo=$ac_try;;
3680esac
3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682  (eval "$ac_try") 2>&5
3683  ac_status=$?
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); }; } &&
3686	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3696  llvm_cv_cxx_compiler=gcc
3697else
3698  echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701
3702fi
3703
3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705fi
3706
3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708ac_ext=c
3709ac_cpp='$CPP $CPPFLAGS'
3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714{ echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3715echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3716
3717
3718
3719if test -d ${srcdir}/projects/test-suite ; then
3720  subdirs="$subdirs projects/test-suite"
3721
3722fi
3723
3724if test -d ${srcdir}/projects/llvm-test ; then
3725  subdirs="$subdirs projects/llvm-test"
3726
3727fi
3728
3729if test -d ${srcdir}/projects/poolalloc ; then
3730  subdirs="$subdirs projects/poolalloc"
3731
3732fi
3733
3734if test -d ${srcdir}/projects/llvm-poolalloc ; then
3735  subdirs="$subdirs projects/llvm-poolalloc"
3736
3737fi
3738
3739for i in `ls ${srcdir}/projects`
3740do
3741  if test -d ${srcdir}/projects/${i} ; then
3742    case ${i} in
3743      safecode)     subdirs="$subdirs projects/safecode"
3744 ;;
3745      compiler-rt)       ;;
3746      test-suite)     ;;
3747      llvm-test)      ;;
3748      poolalloc)      ;;
3749      llvm-poolalloc) ;;
3750      *)
3751        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3752echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3753        ;;
3754    esac
3755  fi
3756done
3757
3758# Check whether --enable-polly was given.
3759if test "${enable_polly+set}" = set; then
3760  enableval=$enable_polly;
3761else
3762  enableval=default
3763fi
3764
3765case "$enableval" in
3766  yes) ENABLE_POLLY=1
3767 ;;
3768  no)  ENABLE_POLLY=0
3769 ;;
3770  default) ENABLE_POLLY=1
3771 ;;
3772  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3773echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3774   { (exit 1); exit 1; }; } ;;
3775esac
3776
3777
3778if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3779  LLVM_HAS_POLLY=1
3780
3781  subdirs="$subdirs tools/polly"
3782
3783fi
3784
3785
3786# Make sure we can run config.sub.
3787$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3788  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3789echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3790   { (exit 1); exit 1; }; }
3791
3792{ echo "$as_me:$LINENO: checking build system type" >&5
3793echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3794if test "${ac_cv_build+set}" = set; then
3795  echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797  ac_build_alias=$build_alias
3798test "x$ac_build_alias" = x &&
3799  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3800test "x$ac_build_alias" = x &&
3801  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3802echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3803   { (exit 1); exit 1; }; }
3804ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3805  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3806echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3807   { (exit 1); exit 1; }; }
3808
3809fi
3810{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3811echo "${ECHO_T}$ac_cv_build" >&6; }
3812case $ac_cv_build in
3813*-*-*) ;;
3814*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3815echo "$as_me: error: invalid value of canonical build" >&2;}
3816   { (exit 1); exit 1; }; };;
3817esac
3818build=$ac_cv_build
3819ac_save_IFS=$IFS; IFS='-'
3820set x $ac_cv_build
3821shift
3822build_cpu=$1
3823build_vendor=$2
3824shift; shift
3825# Remember, the first character of IFS is used to create $*,
3826# except with old shells:
3827build_os=$*
3828IFS=$ac_save_IFS
3829case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3830
3831
3832{ echo "$as_me:$LINENO: checking host system type" >&5
3833echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3834if test "${ac_cv_host+set}" = set; then
3835  echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837  if test "x$host_alias" = x; then
3838  ac_cv_host=$ac_cv_build
3839else
3840  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3841    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3842echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3843   { (exit 1); exit 1; }; }
3844fi
3845
3846fi
3847{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3848echo "${ECHO_T}$ac_cv_host" >&6; }
3849case $ac_cv_host in
3850*-*-*) ;;
3851*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3852echo "$as_me: error: invalid value of canonical host" >&2;}
3853   { (exit 1); exit 1; }; };;
3854esac
3855host=$ac_cv_host
3856ac_save_IFS=$IFS; IFS='-'
3857set x $ac_cv_host
3858shift
3859host_cpu=$1
3860host_vendor=$2
3861shift; shift
3862# Remember, the first character of IFS is used to create $*,
3863# except with old shells:
3864host_os=$*
3865IFS=$ac_save_IFS
3866case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3867
3868
3869{ echo "$as_me:$LINENO: checking target system type" >&5
3870echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3871if test "${ac_cv_target+set}" = set; then
3872  echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874  if test "x$target_alias" = x; then
3875  ac_cv_target=$ac_cv_host
3876else
3877  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3878    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3879echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3880   { (exit 1); exit 1; }; }
3881fi
3882
3883fi
3884{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3885echo "${ECHO_T}$ac_cv_target" >&6; }
3886case $ac_cv_target in
3887*-*-*) ;;
3888*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3889echo "$as_me: error: invalid value of canonical target" >&2;}
3890   { (exit 1); exit 1; }; };;
3891esac
3892target=$ac_cv_target
3893ac_save_IFS=$IFS; IFS='-'
3894set x $ac_cv_target
3895shift
3896target_cpu=$1
3897target_vendor=$2
3898shift; shift
3899# Remember, the first character of IFS is used to create $*,
3900# except with old shells:
3901target_os=$*
3902IFS=$ac_save_IFS
3903case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3904
3905
3906# The aliases save the names the user supplied, while $host etc.
3907# will get canonicalized.
3908test -n "$target_alias" &&
3909  test "$program_prefix$program_suffix$program_transform_name" = \
3910    NONENONEs,x,x, &&
3911  program_prefix=${target_alias}-
3912
3913{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3914echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3915if test "${llvm_cv_os_type+set}" = set; then
3916  echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918  case $host in
3919  *-*-aix*)
3920    llvm_cv_link_all_option="-Wl,--whole-archive"
3921    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3922    llvm_cv_os_type="AIX"
3923    llvm_cv_platform_type="Unix" ;;
3924  *-*-irix*)
3925    llvm_cv_link_all_option="-Wl,--whole-archive"
3926    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3927    llvm_cv_os_type="IRIX"
3928    llvm_cv_platform_type="Unix" ;;
3929  *-*-cygwin*)
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="Cygwin"
3933    llvm_cv_platform_type="Unix" ;;
3934  *-*-darwin*)
3935    llvm_cv_link_all_option="-Wl,-all_load"
3936    llvm_cv_no_link_all_option="-Wl,-noall_load"
3937    llvm_cv_os_type="Darwin"
3938    llvm_cv_platform_type="Unix" ;;
3939  *-*-minix*)
3940    llvm_cv_link_all_option="-Wl,-all_load"
3941    llvm_cv_no_link_all_option="-Wl,-noall_load"
3942    llvm_cv_os_type="Minix"
3943    llvm_cv_platform_type="Unix" ;;
3944  *-*-freebsd*)
3945    llvm_cv_link_all_option="-Wl,--whole-archive"
3946    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3947    llvm_cv_os_type="FreeBSD"
3948    llvm_cv_platform_type="Unix" ;;
3949  *-*-kfreebsd-gnu)
3950    llvm_cv_link_all_option="-Wl,--whole-archive"
3951    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952    llvm_cv_os_type="GNU/kFreeBSD"
3953    llvm_cv_platform_type="Unix" ;;
3954  *-*-openbsd*)
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="OpenBSD"
3958    llvm_cv_platform_type="Unix" ;;
3959  *-*-netbsd*)
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="NetBSD"
3963    llvm_cv_platform_type="Unix" ;;
3964  *-*-dragonfly*)
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="DragonFly"
3968    llvm_cv_platform_type="Unix" ;;
3969  *-*-hpux*)
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="HP-UX"
3973    llvm_cv_platform_type="Unix" ;;
3974  *-*-interix*)
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="Interix"
3978    llvm_cv_platform_type="Unix" ;;
3979  *-*-linux*)
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="Linux"
3983    llvm_cv_platform_type="Unix" ;;
3984  *-*-gnu*)
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="GNU"
3988    llvm_cv_platform_type="Unix" ;;
3989  *-*-solaris*)
3990    llvm_cv_link_all_option="-Wl,-z,allextract"
3991    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3992    llvm_cv_os_type="SunOS"
3993    llvm_cv_platform_type="Unix" ;;
3994  *-*-win32*)
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="Win32"
3998    llvm_cv_platform_type="Win32" ;;
3999  *-*-mingw*)
4000    llvm_cv_link_all_option="-Wl,--whole-archive"
4001    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002    llvm_cv_os_type="MingW"
4003    llvm_cv_platform_type="Win32" ;;
4004  *-*-haiku*)
4005    llvm_cv_link_all_option="-Wl,--whole-archive"
4006    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007    llvm_cv_os_type="Haiku"
4008    llvm_cv_platform_type="Unix" ;;
4009  *-unknown-eabi*)
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="Freestanding"
4013    llvm_cv_platform_type="Unix" ;;
4014  *-unknown-elf*)
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="Freestanding"
4018    llvm_cv_platform_type="Unix" ;;
4019  *)
4020    llvm_cv_link_all_option=""
4021    llvm_cv_no_link_all_option=""
4022    llvm_cv_os_type="Unknown"
4023    llvm_cv_platform_type="Unknown" ;;
4024esac
4025fi
4026{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4027echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4028
4029{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4030echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4031if test "${llvm_cv_target_os_type+set}" = set; then
4032  echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034  case $target in
4035  *-*-aix*)
4036    llvm_cv_target_os_type="AIX" ;;
4037  *-*-irix*)
4038    llvm_cv_target_os_type="IRIX" ;;
4039  *-*-cygwin*)
4040    llvm_cv_target_os_type="Cygwin" ;;
4041  *-*-darwin*)
4042    llvm_cv_target_os_type="Darwin" ;;
4043  *-*-minix*)
4044    llvm_cv_target_os_type="Minix" ;;
4045  *-*-freebsd*)
4046    llvm_cv_target_os_type="FreeBSD" ;;
4047  *-*-kfreebsd-gnu)
4048    llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4049  *-*-openbsd*)
4050    llvm_cv_target_os_type="OpenBSD" ;;
4051  *-*-netbsd*)
4052    llvm_cv_target_os_type="NetBSD" ;;
4053  *-*-dragonfly*)
4054    llvm_cv_target_os_type="DragonFly" ;;
4055  *-*-hpux*)
4056    llvm_cv_target_os_type="HP-UX" ;;
4057  *-*-interix*)
4058    llvm_cv_target_os_type="Interix" ;;
4059  *-*-linux*)
4060    llvm_cv_target_os_type="Linux" ;;
4061  *-*-gnu*)
4062    llvm_cv_target_os_type="GNU" ;;
4063  *-*-solaris*)
4064    llvm_cv_target_os_type="SunOS" ;;
4065  *-*-win32*)
4066    llvm_cv_target_os_type="Win32" ;;
4067  *-*-mingw*)
4068    llvm_cv_target_os_type="MingW" ;;
4069  *-*-haiku*)
4070    llvm_cv_target_os_type="Haiku" ;;
4071  *-*-rtems*)
4072    llvm_cv_target_os_type="RTEMS" ;;
4073  *-*-nacl*)
4074    llvm_cv_target_os_type="NativeClient" ;;
4075  *-unknown-eabi*)
4076    llvm_cv_target_os_type="Freestanding" ;;
4077  *)
4078    llvm_cv_target_os_type="Unknown" ;;
4079esac
4080fi
4081{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4082echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4083
4084if test "$llvm_cv_os_type" = "Unknown" ; then
4085  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4086echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4087   { (exit 1); exit 1; }; }
4088fi
4089
4090OS=$llvm_cv_os_type
4091
4092HOST_OS=$llvm_cv_os_type
4093
4094TARGET_OS=$llvm_cv_target_os_type
4095
4096
4097LINKALL=$llvm_cv_link_all_option
4098
4099NOLINKALL=$llvm_cv_no_link_all_option
4100
4101
4102case $llvm_cv_platform_type in
4103  Unix)
4104
4105cat >>confdefs.h <<\_ACEOF
4106#define LLVM_ON_UNIX 1
4107_ACEOF
4108
4109    LLVM_ON_UNIX=1
4110
4111    LLVM_ON_WIN32=0
4112
4113    ;;
4114  Win32)
4115
4116cat >>confdefs.h <<\_ACEOF
4117#define LLVM_ON_WIN32 1
4118_ACEOF
4119
4120    LLVM_ON_UNIX=0
4121
4122    LLVM_ON_WIN32=1
4123
4124    ;;
4125esac
4126
4127{ echo "$as_me:$LINENO: checking target architecture" >&5
4128echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4129if test "${llvm_cv_target_arch+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  case $target in
4133  i?86-*)                 llvm_cv_target_arch="x86" ;;
4134  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4135  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4136  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4137  arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4138  arm*-*)                 llvm_cv_target_arch="ARM" ;;
4139  aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4140  mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4141  mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4142  xcore-*)                llvm_cv_target_arch="XCore" ;;
4143  msp430-*)               llvm_cv_target_arch="MSP430" ;;
4144  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4145  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4146  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4147  *)                      llvm_cv_target_arch="Unknown" ;;
4148esac
4149fi
4150{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4151echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4152
4153if test "$llvm_cv_target_arch" = "Unknown" ; then
4154  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4155echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4156fi
4157
4158case "$llvm_cv_target_arch" in
4159    x86)     LLVM_NATIVE_ARCH="X86" ;;
4160    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4161    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4162esac
4163
4164ARCH=$llvm_cv_target_arch
4165
4166LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4167
4168
4169case $host in
4170  i?86-*)                 host_arch="x86" ;;
4171  amd64-* | x86_64-*)     host_arch="x86_64" ;;
4172  sparc*-*)               host_arch="Sparc" ;;
4173  powerpc*-*)             host_arch="PowerPC" ;;
4174  arm64*-*)               host_arch="AArch64" ;;
4175  arm*-*)                 host_arch="ARM" ;;
4176  aarch64*-*)             host_arch="AArch64" ;;
4177  mips-* | mips64-*)      host_arch="Mips" ;;
4178  mipsel-* | mips64el-*)  host_arch="Mips" ;;
4179  xcore-*)                host_arch="XCore" ;;
4180  msp430-*)               host_arch="MSP430" ;;
4181  hexagon-*)              host_arch="Hexagon" ;;
4182  s390x-*)                host_arch="SystemZ" ;;
4183  *)                      host_arch="Unknown" ;;
4184esac
4185
4186if test "$host_arch" = "Unknown" ; then
4187  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4188echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4189fi
4190
4191HOST_ARCH=$host_arch
4192
4193
4194if test "$cross_compiling" = yes; then
4195  LLVM_CROSS_COMPILING=1
4196
4197
4198{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4199echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4200if test "${ac_cv_build_exeext+set}" = set; then
4201  echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4204  ac_cv_build_exeext=.exe
4205else
4206  ac_build_prefix=${build_alias}-
4207
4208  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4209set dummy ${ac_build_prefix}gcc; ac_word=$2
4210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4212if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4213  echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215  if test -n "$BUILD_CC"; then
4216  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221  IFS=$as_save_IFS
4222  test -z "$as_dir" && as_dir=.
4223  for ac_exec_ext in '' $ac_executable_extensions; do
4224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4225    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227    break 2
4228  fi
4229done
4230done
4231IFS=$as_save_IFS
4232
4233fi
4234fi
4235BUILD_CC=$ac_cv_prog_BUILD_CC
4236if test -n "$BUILD_CC"; then
4237  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4238echo "${ECHO_T}$BUILD_CC" >&6; }
4239else
4240  { echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6; }
4242fi
4243
4244
4245  if test -z "$BUILD_CC"; then
4246     # Extract the first word of "gcc", so it can be a program name with args.
4247set dummy gcc; ac_word=$2
4248{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4251  echo $ECHO_N "(cached) $ECHO_C" >&6
4252else
4253  if test -n "$BUILD_CC"; then
4254  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4255else
4256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257for as_dir in $PATH
4258do
4259  IFS=$as_save_IFS
4260  test -z "$as_dir" && as_dir=.
4261  for ac_exec_ext in '' $ac_executable_extensions; do
4262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4263    ac_cv_prog_BUILD_CC="gcc"
4264    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265    break 2
4266  fi
4267done
4268done
4269IFS=$as_save_IFS
4270
4271fi
4272fi
4273BUILD_CC=$ac_cv_prog_BUILD_CC
4274if test -n "$BUILD_CC"; then
4275  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4276echo "${ECHO_T}$BUILD_CC" >&6; }
4277else
4278  { echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6; }
4280fi
4281
4282
4283     if test -z "$BUILD_CC"; then
4284       # Extract the first word of "cc", so it can be a program name with args.
4285set dummy cc; ac_word=$2
4286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4289  echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291  if test -n "$BUILD_CC"; then
4292  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4293else
4294  ac_prog_rejected=no
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298  IFS=$as_save_IFS
4299  test -z "$as_dir" && as_dir=.
4300  for ac_exec_ext in '' $ac_executable_extensions; do
4301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4302    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303       ac_prog_rejected=yes
4304       continue
4305     fi
4306    ac_cv_prog_BUILD_CC="cc"
4307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308    break 2
4309  fi
4310done
4311done
4312IFS=$as_save_IFS
4313
4314if test $ac_prog_rejected = yes; then
4315  # We found a bogon in the path, so make sure we never use it.
4316  set dummy $ac_cv_prog_BUILD_CC
4317  shift
4318  if test $# != 0; then
4319    # We chose a different compiler from the bogus one.
4320    # However, it has the same basename, so the bogon will be chosen
4321    # first if we set BUILD_CC to just the basename; use the full file name.
4322    shift
4323    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4324  fi
4325fi
4326fi
4327fi
4328BUILD_CC=$ac_cv_prog_BUILD_CC
4329if test -n "$BUILD_CC"; then
4330  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4331echo "${ECHO_T}$BUILD_CC" >&6; }
4332else
4333  { echo "$as_me:$LINENO: result: no" >&5
4334echo "${ECHO_T}no" >&6; }
4335fi
4336
4337
4338     fi
4339  fi
4340  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4341echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4342   { (exit 1); exit 1; }; }
4343  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4344  rm -f conftest*
4345  echo 'int main () { return 0; }' > conftest.$ac_ext
4346  ac_cv_build_exeext=
4347  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4348  (eval $ac_build_link) 2>&5
4349  ac_status=$?
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); }; then
4352    for file in conftest.*; do
4353      case $file in
4354      *.c | *.o | *.obj | *.dSYM) ;;
4355      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4356      esac
4357    done
4358  else
4359    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4360echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4361   { (exit 1); exit 1; }; }
4362  fi
4363  rm -f conftest*
4364  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4365fi
4366fi
4367
4368BUILD_EXEEXT=""
4369test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4370{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4371echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4372ac_build_exeext=$BUILD_EXEEXT
4373
4374  ac_build_prefix=${build_alias}-
4375  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4376set dummy ${ac_build_prefix}g++; ac_word=$2
4377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  if test -n "$BUILD_CXX"; then
4383  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388  IFS=$as_save_IFS
4389  test -z "$as_dir" && as_dir=.
4390  for ac_exec_ext in '' $ac_executable_extensions; do
4391  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4392    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394    break 2
4395  fi
4396done
4397done
4398IFS=$as_save_IFS
4399
4400fi
4401fi
4402BUILD_CXX=$ac_cv_prog_BUILD_CXX
4403if test -n "$BUILD_CXX"; then
4404  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4405echo "${ECHO_T}$BUILD_CXX" >&6; }
4406else
4407  { echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6; }
4409fi
4410
4411
4412  if test -z "$BUILD_CXX"; then
4413     # Extract the first word of "g++", so it can be a program name with args.
4414set dummy g++; ac_word=$2
4415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4418  echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420  if test -n "$BUILD_CXX"; then
4421  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426  IFS=$as_save_IFS
4427  test -z "$as_dir" && as_dir=.
4428  for ac_exec_ext in '' $ac_executable_extensions; do
4429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4430    ac_cv_prog_BUILD_CXX="g++"
4431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432    break 2
4433  fi
4434done
4435done
4436IFS=$as_save_IFS
4437
4438fi
4439fi
4440BUILD_CXX=$ac_cv_prog_BUILD_CXX
4441if test -n "$BUILD_CXX"; then
4442  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4443echo "${ECHO_T}$BUILD_CXX" >&6; }
4444else
4445  { echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6; }
4447fi
4448
4449
4450     if test -z "$BUILD_CXX"; then
4451       # Extract the first word of "c++", so it can be a program name with args.
4452set dummy c++; ac_word=$2
4453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  if test -n "$BUILD_CXX"; then
4459  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4460else
4461  ac_prog_rejected=no
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465  IFS=$as_save_IFS
4466  test -z "$as_dir" && as_dir=.
4467  for ac_exec_ext in '' $ac_executable_extensions; do
4468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4470       ac_prog_rejected=yes
4471       continue
4472     fi
4473    ac_cv_prog_BUILD_CXX="c++"
4474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475    break 2
4476  fi
4477done
4478done
4479IFS=$as_save_IFS
4480
4481if test $ac_prog_rejected = yes; then
4482  # We found a bogon in the path, so make sure we never use it.
4483  set dummy $ac_cv_prog_BUILD_CXX
4484  shift
4485  if test $# != 0; then
4486    # We chose a different compiler from the bogus one.
4487    # However, it has the same basename, so the bogon will be chosen
4488    # first if we set BUILD_CXX to just the basename; use the full file name.
4489    shift
4490    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4491  fi
4492fi
4493fi
4494fi
4495BUILD_CXX=$ac_cv_prog_BUILD_CXX
4496if test -n "$BUILD_CXX"; then
4497  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4498echo "${ECHO_T}$BUILD_CXX" >&6; }
4499else
4500  { echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6; }
4502fi
4503
4504
4505     fi
4506  fi
4507else
4508  LLVM_CROSS_COMPILING=0
4509
4510fi
4511
4512if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4513  cvsbuild="yes"
4514  optimize="no"
4515  CVSBUILD=CVSBUILD=1
4516
4517else
4518  cvsbuild="no"
4519  optimize="yes"
4520fi
4521
4522
4523# Check whether --enable-libcpp was given.
4524if test "${enable_libcpp+set}" = set; then
4525  enableval=$enable_libcpp;
4526else
4527  enableval=default
4528fi
4529
4530case "$enableval" in
4531  yes) ENABLE_LIBCPP=1
4532 ;;
4533  no)  ENABLE_LIBCPP=0
4534 ;;
4535  default) ENABLE_LIBCPP=0
4536;;
4537  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4538echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4539   { (exit 1); exit 1; }; } ;;
4540esac
4541
4542# Check whether --enable-compiler-version-checks was given.
4543if test "${enable_compiler_version_checks+set}" = set; then
4544  enableval=$enable_compiler_version_checks;
4545else
4546  enableval=default
4547fi
4548
4549case "$enableval" in
4550  no)
4551    ;;
4552  yes|default)
4553    ac_ext=cpp
4554ac_cpp='$CXXCPP $CPPFLAGS'
4555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4558
4559    case "$llvm_cv_cxx_compiler" in
4560    clang)
4561      { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4562echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4563      cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h.  */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h.  */
4569
4570#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4571#error This version of Clang is too old to build LLVM
4572#endif
4573
4574_ACEOF
4575rm -f conftest.$ac_objext
4576if { (ac_try="$ac_compile"
4577case "(($ac_try" in
4578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579  *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582  (eval "$ac_compile") 2>conftest.er1
4583  ac_status=$?
4584  grep -v '^ *+' conftest.er1 >conftest.err
4585  rm -f conftest.er1
4586  cat conftest.err >&5
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } &&
4589	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4590  { (case "(($ac_try" in
4591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592  *) ac_try_echo=$ac_try;;
4593esac
4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595  (eval "$ac_try") 2>&5
4596  ac_status=$?
4597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598  (exit $ac_status); }; } &&
4599	 { ac_try='test -s conftest.$ac_objext'
4600  { (case "(($ac_try" in
4601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602  *) ac_try_echo=$ac_try;;
4603esac
4604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605  (eval "$ac_try") 2>&5
4606  ac_status=$?
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); }; }; then
4609  { echo "$as_me:$LINENO: result: yes" >&5
4610echo "${ECHO_T}yes" >&6; }
4611else
4612  echo "$as_me: failed program was:" >&5
4613sed 's/^/| /' conftest.$ac_ext >&5
4614
4615	{ echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6; }
4617           { { echo "$as_me:$LINENO: error:
4618The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4619Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4620bypass these sanity checks." >&5
4621echo "$as_me: error:
4622The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4623Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4624bypass these sanity checks." >&2;}
4625   { (exit 1); exit 1; }; }
4626fi
4627
4628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629
4630                                          if test "$ENABLE_LIBCPP" -eq 0 ; then
4631        { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4632echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4633        llvm_cv_old_cxxflags="$CXXFLAGS"
4634        CXXFLAGS="$CXXFLAGS -std=c++0x"
4635        cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h.  */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h.  */
4641
4642#include <atomic>
4643std::atomic<float> x(0.0f);
4644int main() { return (float)x; }
4645
4646_ACEOF
4647rm -f conftest.$ac_objext conftest$ac_exeext
4648if { (ac_try="$ac_link"
4649case "(($ac_try" in
4650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651  *) ac_try_echo=$ac_try;;
4652esac
4653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654  (eval "$ac_link") 2>conftest.er1
4655  ac_status=$?
4656  grep -v '^ *+' conftest.er1 >conftest.err
4657  rm -f conftest.er1
4658  cat conftest.err >&5
4659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660  (exit $ac_status); } &&
4661	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4662  { (case "(($ac_try" in
4663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664  *) ac_try_echo=$ac_try;;
4665esac
4666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667  (eval "$ac_try") 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }; } &&
4671	 { ac_try='test -s conftest$ac_exeext'
4672  { (case "(($ac_try" in
4673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674  *) ac_try_echo=$ac_try;;
4675esac
4676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677  (eval "$ac_try") 2>&5
4678  ac_status=$?
4679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680  (exit $ac_status); }; }; then
4681  { echo "$as_me:$LINENO: result: yes" >&5
4682echo "${ECHO_T}yes" >&6; }
4683else
4684  echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687	{ echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6; }
4689             { { echo "$as_me:$LINENO: error:
4690We detected a missing feature in the standard C++ library that was known to be
4691missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4692C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4693than 4.7. You will need to update your system and ensure Clang uses the newer
4694standard library.
4695
4696If this error is incorrect or you need to force things to work, you may pass
4697'--disable-compiler-version-checks' to configure to bypass this test." >&5
4698echo "$as_me: error:
4699We detected a missing feature in the standard C++ library that was known to be
4700missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4701C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4702than 4.7. You will need to update your system and ensure Clang uses the newer
4703standard library.
4704
4705If this error is incorrect or you need to force things to work, you may pass
4706'--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4707   { (exit 1); exit 1; }; }
4708fi
4709
4710rm -f core conftest.err conftest.$ac_objext \
4711      conftest$ac_exeext conftest.$ac_ext
4712        CXXFLAGS="$llvm_cv_old_cxxflags"
4713      fi
4714      ;;
4715    gcc)
4716      { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4717echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4718      cat >conftest.$ac_ext <<_ACEOF
4719/* confdefs.h.  */
4720_ACEOF
4721cat confdefs.h >>conftest.$ac_ext
4722cat >>conftest.$ac_ext <<_ACEOF
4723/* end confdefs.h.  */
4724
4725#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4726#error This version of GCC is too old to build LLVM
4727#endif
4728
4729_ACEOF
4730rm -f conftest.$ac_objext
4731if { (ac_try="$ac_compile"
4732case "(($ac_try" in
4733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734  *) ac_try_echo=$ac_try;;
4735esac
4736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737  (eval "$ac_compile") 2>conftest.er1
4738  ac_status=$?
4739  grep -v '^ *+' conftest.er1 >conftest.err
4740  rm -f conftest.er1
4741  cat conftest.err >&5
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); } &&
4744	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4745  { (case "(($ac_try" in
4746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747  *) ac_try_echo=$ac_try;;
4748esac
4749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750  (eval "$ac_try") 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); }; } &&
4754	 { ac_try='test -s conftest.$ac_objext'
4755  { (case "(($ac_try" in
4756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757  *) ac_try_echo=$ac_try;;
4758esac
4759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760  (eval "$ac_try") 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; }; then
4764  { echo "$as_me:$LINENO: result: yes" >&5
4765echo "${ECHO_T}yes" >&6; }
4766else
4767  echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770	{ echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6; }
4772           { { echo "$as_me:$LINENO: error:
4773The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4774to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4775bypass these sanity checks." >&5
4776echo "$as_me: error:
4777The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4778to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4779bypass these sanity checks." >&2;}
4780   { (exit 1); exit 1; }; }
4781fi
4782
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784      ;;
4785    unknown)
4786      ;;
4787    esac
4788    ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794    ;;
4795  *)
4796    { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4797echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4798   { (exit 1); exit 1; }; }
4799    ;;
4800esac
4801
4802# Check whether --enable-cxx1y was given.
4803if test "${enable_cxx1y+set}" = set; then
4804  enableval=$enable_cxx1y;
4805else
4806  enableval=default
4807fi
4808
4809case "$enableval" in
4810  yes) ENABLE_CXX1Y=1
4811 ;;
4812  no)  ENABLE_CXX1Y=0
4813 ;;
4814  default) ENABLE_CXX1Y=0
4815;;
4816  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4817echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4818   { (exit 1); exit 1; }; } ;;
4819esac
4820
4821# Check whether --enable-split-dwarf was given.
4822if test "${enable_split_dwarf+set}" = set; then
4823  enableval=$enable_split_dwarf;
4824else
4825  enableval=default
4826fi
4827
4828case "$enableval" in
4829  yes) ENABLE_SPLIT_DWARF=1
4830 ;;
4831  no)  ENABLE_SPLIT_DWARF=0
4832 ;;
4833  default) ENABLE_SPLIT_DWARF=0
4834;;
4835  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4836echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4837   { (exit 1); exit 1; }; } ;;
4838esac
4839
4840clang_arcmt="yes"
4841# Check whether --enable-clang-arcmt was given.
4842if test "${enable_clang_arcmt+set}" = set; then
4843  enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4844else
4845  enableval="yes"
4846fi
4847
4848case "$enableval" in
4849  yes) ENABLE_CLANG_ARCMT=1
4850 ;;
4851  no)  ENABLE_CLANG_ARCMT=0
4852 ;;
4853  default) ENABLE_CLANG_ARCMT=1
4854;;
4855  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4856echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4857   { (exit 1); exit 1; }; } ;;
4858esac
4859
4860clang_plugin_support="yes"
4861# Check whether --enable-clang-plugin-support was given.
4862if test "${enable_clang_plugin_support+set}" = set; then
4863  enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4864else
4865  enableval="yes"
4866fi
4867
4868case "$enableval" in
4869  yes) CLANG_PLUGIN_SUPPORT=1
4870 ;;
4871  no)  CLANG_PLUGIN_SUPPORT=0
4872 ;;
4873  default) CLANG_PLUGIN_SUPPORT=1
4874;;
4875  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4877   { (exit 1); exit 1; }; } ;;
4878esac
4879
4880clang_static_analyzer="yes"
4881# Check whether --enable-clang-static-analyzer was given.
4882if test "${enable_clang_static_analyzer+set}" = set; then
4883  enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4884else
4885  enableval="yes"
4886fi
4887
4888case "$enableval" in
4889  yes) ENABLE_CLANG_STATIC_ANALYZER=1
4890 ;;
4891  no)
4892    if test ${clang_arcmt} != "no" ; then
4893      { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4894echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4895   { (exit 1); exit 1; }; }
4896    fi
4897    ENABLE_CLANG_STATIC_ANALYZER=0
4898
4899    ;;
4900  default) ENABLE_CLANG_STATIC_ANALYZER=1
4901;;
4902  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4903echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4904   { (exit 1); exit 1; }; } ;;
4905esac
4906
4907# Check whether --enable-optimized was given.
4908if test "${enable_optimized+set}" = set; then
4909  enableval=$enable_optimized;
4910else
4911  enableval=$optimize
4912fi
4913
4914if test ${enableval} = "no" ; then
4915  ENABLE_OPTIMIZED=
4916
4917else
4918  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4919
4920fi
4921
4922# Check whether --enable-profiling was given.
4923if test "${enable_profiling+set}" = set; then
4924  enableval=$enable_profiling;
4925else
4926  enableval="no"
4927fi
4928
4929if test ${enableval} = "no" ; then
4930  ENABLE_PROFILING=
4931
4932else
4933  ENABLE_PROFILING=ENABLE_PROFILING=1
4934
4935fi
4936
4937# Check whether --enable-assertions was given.
4938if test "${enable_assertions+set}" = set; then
4939  enableval=$enable_assertions;
4940else
4941  enableval="yes"
4942fi
4943
4944if test ${enableval} = "yes" ; then
4945  DISABLE_ASSERTIONS=
4946
4947else
4948  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4949
4950fi
4951
4952# Check whether --enable-werror was given.
4953if test "${enable_werror+set}" = set; then
4954  enableval=$enable_werror;
4955else
4956  enableval="no"
4957fi
4958
4959case "$enableval" in
4960  yes) ENABLE_WERROR=1
4961 ;;
4962  no)  ENABLE_WERROR=0
4963 ;;
4964  default) ENABLE_WERROR=0
4965;;
4966  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4967echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4968   { (exit 1); exit 1; }; } ;;
4969esac
4970
4971# Check whether --enable-expensive-checks was given.
4972if test "${enable_expensive_checks+set}" = set; then
4973  enableval=$enable_expensive_checks;
4974else
4975  enableval="no"
4976fi
4977
4978if test ${enableval} = "yes" ; then
4979  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4980
4981  EXPENSIVE_CHECKS=yes
4982
4983else
4984  ENABLE_EXPENSIVE_CHECKS=
4985
4986  EXPENSIVE_CHECKS=no
4987
4988fi
4989
4990# Check whether --enable-debug-runtime was given.
4991if test "${enable_debug_runtime+set}" = set; then
4992  enableval=$enable_debug_runtime;
4993else
4994  enableval=no
4995fi
4996
4997if test ${enableval} = "no" ; then
4998  DEBUG_RUNTIME=
4999
5000else
5001  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5002
5003fi
5004
5005# Check whether --enable-debug-symbols was given.
5006if test "${enable_debug_symbols+set}" = set; then
5007  enableval=$enable_debug_symbols;
5008else
5009  enableval=no
5010fi
5011
5012if test ${enableval} = "no" ; then
5013  DEBUG_SYMBOLS=
5014
5015else
5016  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5017
5018fi
5019
5020# Check whether --enable-keep-symbols was given.
5021if test "${enable_keep_symbols+set}" = set; then
5022  enableval=$enable_keep_symbols;
5023else
5024  enableval=no
5025fi
5026
5027if test ${enableval} = "no" ; then
5028  KEEP_SYMBOLS=
5029
5030else
5031  KEEP_SYMBOLS=KEEP_SYMBOLS=1
5032
5033fi
5034
5035# Check whether --enable-jit was given.
5036if test "${enable_jit+set}" = set; then
5037  enableval=$enable_jit;
5038else
5039  enableval=default
5040fi
5041
5042if test ${enableval} = "no"
5043then
5044  JIT=
5045
5046else
5047  case "$llvm_cv_target_arch" in
5048    x86)         TARGET_HAS_JIT=1
5049 ;;
5050    Sparc)       TARGET_HAS_JIT=0
5051 ;;
5052    PowerPC)     TARGET_HAS_JIT=1
5053 ;;
5054    x86_64)      TARGET_HAS_JIT=1
5055 ;;
5056    ARM)         TARGET_HAS_JIT=1
5057 ;;
5058    Mips)        TARGET_HAS_JIT=1
5059 ;;
5060    XCore)       TARGET_HAS_JIT=0
5061 ;;
5062    MSP430)      TARGET_HAS_JIT=0
5063 ;;
5064    Hexagon)     TARGET_HAS_JIT=0
5065 ;;
5066    NVPTX)       TARGET_HAS_JIT=0
5067 ;;
5068    SystemZ)     TARGET_HAS_JIT=1
5069 ;;
5070    *)           TARGET_HAS_JIT=0
5071 ;;
5072  esac
5073fi
5074
5075TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5076TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5077
5078
5079# Check whether --enable-docs was given.
5080if test "${enable_docs+set}" = set; then
5081  enableval=$enable_docs;
5082else
5083  enableval=default
5084fi
5085
5086case "$enableval" in
5087  yes) ENABLE_DOCS=1
5088 ;;
5089  no)  ENABLE_DOCS=0
5090 ;;
5091  default) ENABLE_DOCS=1
5092 ;;
5093  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5094echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5095   { (exit 1); exit 1; }; } ;;
5096esac
5097
5098# Check whether --enable-doxygen was given.
5099if test "${enable_doxygen+set}" = set; then
5100  enableval=$enable_doxygen;
5101else
5102  enableval=default
5103fi
5104
5105case "$enableval" in
5106  yes) ENABLE_DOXYGEN=1
5107 ;;
5108  no)  ENABLE_DOXYGEN=0
5109 ;;
5110  default) ENABLE_DOXYGEN=0
5111 ;;
5112  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5113echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5114   { (exit 1); exit 1; }; } ;;
5115esac
5116
5117# Check whether --enable-threads was given.
5118if test "${enable_threads+set}" = set; then
5119  enableval=$enable_threads;
5120else
5121  enableval=default
5122fi
5123
5124case "$enableval" in
5125  yes) LLVM_ENABLE_THREADS=1
5126 ;;
5127  no)  LLVM_ENABLE_THREADS=0
5128 ;;
5129  default) LLVM_ENABLE_THREADS=1
5130 ;;
5131  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5132echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5133   { (exit 1); exit 1; }; } ;;
5134esac
5135
5136cat >>confdefs.h <<_ACEOF
5137#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5138_ACEOF
5139
5140
5141# Check whether --enable-pthreads was given.
5142if test "${enable_pthreads+set}" = set; then
5143  enableval=$enable_pthreads;
5144else
5145  enableval=default
5146fi
5147
5148case "$enableval" in
5149  yes) ENABLE_PTHREADS=1
5150 ;;
5151  no)  ENABLE_PTHREADS=0
5152 ;;
5153  default) ENABLE_PTHREADS=1
5154 ;;
5155  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5156echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5157   { (exit 1); exit 1; }; } ;;
5158esac
5159
5160# Check whether --enable-zlib was given.
5161if test "${enable_zlib+set}" = set; then
5162  enableval=$enable_zlib;
5163else
5164  enableval=default
5165fi
5166
5167case "$enableval" in
5168  yes) LLVM_ENABLE_ZLIB=1
5169 ;;
5170  no)  LLVM_ENABLE_ZLIB=0
5171 ;;
5172  default) LLVM_ENABLE_ZLIB=1
5173 ;;
5174  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5175echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5176   { (exit 1); exit 1; }; } ;;
5177esac
5178
5179cat >>confdefs.h <<_ACEOF
5180#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5181_ACEOF
5182
5183
5184# Check whether --enable-pic was given.
5185if test "${enable_pic+set}" = set; then
5186  enableval=$enable_pic;
5187else
5188  enableval=default
5189fi
5190
5191case "$enableval" in
5192  yes) ENABLE_PIC=1
5193 ;;
5194  no)  ENABLE_PIC=0
5195 ;;
5196  default) ENABLE_PIC=1
5197 ;;
5198  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5199echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5200   { (exit 1); exit 1; }; } ;;
5201esac
5202
5203cat >>confdefs.h <<_ACEOF
5204#define ENABLE_PIC $ENABLE_PIC
5205_ACEOF
5206
5207
5208# Check whether --enable-shared was given.
5209if test "${enable_shared+set}" = set; then
5210  enableval=$enable_shared;
5211else
5212  enableval=default
5213fi
5214
5215case "$enableval" in
5216  yes) ENABLE_SHARED=1
5217 ;;
5218  no)  ENABLE_SHARED=0
5219 ;;
5220  default) ENABLE_SHARED=0
5221 ;;
5222  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5223echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5224   { (exit 1); exit 1; }; } ;;
5225esac
5226
5227# Check whether --enable-embed-stdcxx was given.
5228if test "${enable_embed_stdcxx+set}" = set; then
5229  enableval=$enable_embed_stdcxx;
5230else
5231  enableval=default
5232fi
5233
5234case "$enableval" in
5235  yes) ENABLE_EMBED_STDCXX=1
5236 ;;
5237  no)  ENABLE_EMBED_STDCXX=0
5238 ;;
5239  default) ENABLE_EMBED_STDCXX=0
5240 ;;
5241  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5242echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5243   { (exit 1); exit 1; }; } ;;
5244esac
5245
5246# Check whether --enable-timestamps was given.
5247if test "${enable_timestamps+set}" = set; then
5248  enableval=$enable_timestamps;
5249else
5250  enableval=default
5251fi
5252
5253case "$enableval" in
5254  yes) ENABLE_TIMESTAMPS=1
5255 ;;
5256  no)  ENABLE_TIMESTAMPS=0
5257 ;;
5258  default) ENABLE_TIMESTAMPS=1
5259 ;;
5260  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5261echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5262   { (exit 1); exit 1; }; } ;;
5263esac
5264
5265cat >>confdefs.h <<_ACEOF
5266#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5267_ACEOF
5268
5269
5270# Check whether --enable-backtraces was given.
5271if test "${enable_backtraces+set}" = set; then
5272  enableval=$enable_backtraces; case "$enableval" in
5273    yes) llvm_cv_enable_backtraces="yes" ;;
5274    no)  llvm_cv_enable_backtraces="no"  ;;
5275    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5276echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5277   { (exit 1); exit 1; }; } ;;
5278  esac
5279else
5280  llvm_cv_enable_backtraces="yes"
5281fi
5282
5283if test "$llvm_cv_enable_backtraces" = "yes" ; then
5284
5285cat >>confdefs.h <<\_ACEOF
5286#define ENABLE_BACKTRACES 1
5287_ACEOF
5288
5289fi
5290
5291# Check whether --enable-crash-overrides was given.
5292if test "${enable_crash_overrides+set}" = set; then
5293  enableval=$enable_crash_overrides; case "$enableval" in
5294    yes) llvm_cv_enable_crash_overrides="yes" ;;
5295    no)  llvm_cv_enable_crash_overrides="no"  ;;
5296    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5297echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5298   { (exit 1); exit 1; }; } ;;
5299  esac
5300else
5301  llvm_cv_enable_crash_overrides="yes"
5302fi
5303
5304if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5305
5306cat >>confdefs.h <<\_ACEOF
5307#define ENABLE_CRASH_OVERRIDES 1
5308_ACEOF
5309
5310fi
5311
5312ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5313ALL_TARGETS=$ALL_TARGETS
5314
5315
5316TARGETS_TO_BUILD=""
5317# Check whether --enable-targets was given.
5318if test "${enable_targets+set}" = set; then
5319  enableval=$enable_targets;
5320else
5321  enableval=all
5322fi
5323
5324if test "$enableval" = host-only ; then
5325  enableval=host
5326fi
5327case "$enableval" in
5328  all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5329  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5330      case "$a_target" in
5331        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5332        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5333        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5334        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5335        aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5336        arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5337        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5338        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5340        mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341        mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5343        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5344        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5345        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5346        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5347        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5348        r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5349        host) case "$llvm_cv_target_arch" in
5350            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5351            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5353            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5354            AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5355            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5356            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5358            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5359            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5360            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5361            SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5362            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5363echo "$as_me: error: Can not set target to build" >&2;}
5364   { (exit 1); exit 1; }; } ;;
5365          esac ;;
5366        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5367echo "$as_me: error: Unrecognized target $a_target" >&2;}
5368   { (exit 1); exit 1; }; } ;;
5369      esac
5370  done
5371  ;;
5372esac
5373
5374# Check whether --enable-experimental-targets was given.
5375if test "${enable_experimental_targets+set}" = set; then
5376  enableval=$enable_experimental_targets;
5377else
5378  enableval=disable
5379fi
5380
5381
5382if test ${enableval} != "disable"
5383then
5384  TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5385fi
5386
5387TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5388
5389
5390for a_target in $TARGETS_TO_BUILD; do
5391  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5392
5393cat >>confdefs.h <<_ACEOF
5394#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5395_ACEOF
5396
5397    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5398    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5399    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5400    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5401    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5402      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5403    fi
5404    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5405      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5406    fi
5407
5408cat >>confdefs.h <<_ACEOF
5409#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5410_ACEOF
5411
5412
5413cat >>confdefs.h <<_ACEOF
5414#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5415_ACEOF
5416
5417
5418cat >>confdefs.h <<_ACEOF
5419#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5420_ACEOF
5421
5422
5423cat >>confdefs.h <<_ACEOF
5424#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5425_ACEOF
5426
5427    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5428
5429cat >>confdefs.h <<_ACEOF
5430#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5431_ACEOF
5432
5433    fi
5434    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5435
5436cat >>confdefs.h <<_ACEOF
5437#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5438_ACEOF
5439
5440    fi
5441  fi
5442done
5443
5444LLVM_ENUM_TARGETS=""
5445LLVM_ENUM_ASM_PRINTERS=""
5446LLVM_ENUM_ASM_PARSERS=""
5447LLVM_ENUM_DISASSEMBLERS=""
5448for target_to_build in $TARGETS_TO_BUILD; do
5449  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5450  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5451    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5452  fi
5453  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5454    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5455  fi
5456  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5457    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5458  fi
5459done
5460
5461
5462
5463
5464
5465
5466# Check whether --with-optimize-option was given.
5467if test "${with_optimize_option+set}" = set; then
5468  withval=$with_optimize_option;
5469else
5470  withval=default
5471fi
5472
5473{ echo "$as_me:$LINENO: checking optimization flags" >&5
5474echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5475case "$withval" in
5476  default)
5477    case "$llvm_cv_os_type" in
5478    FreeBSD) optimize_option=-O2 ;;
5479    MingW) optimize_option=-O2 ;;
5480    *)     optimize_option=-O3 ;;
5481    esac ;;
5482  *) optimize_option="$withval" ;;
5483esac
5484OPTIMIZE_OPTION=$optimize_option
5485
5486{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5487echo "${ECHO_T}$optimize_option" >&6; }
5488
5489
5490# Check whether --with-extra-options was given.
5491if test "${with_extra_options+set}" = set; then
5492  withval=$with_extra_options;
5493else
5494  withval=default
5495fi
5496
5497case "$withval" in
5498  default) EXTRA_OPTIONS= ;;
5499  *) EXTRA_OPTIONS=$withval ;;
5500esac
5501EXTRA_OPTIONS=$EXTRA_OPTIONS
5502
5503
5504
5505# Check whether --with-extra-ld-options was given.
5506if test "${with_extra_ld_options+set}" = set; then
5507  withval=$with_extra_ld_options;
5508else
5509  withval=default
5510fi
5511
5512case "$withval" in
5513  default) EXTRA_LD_OPTIONS= ;;
5514  *) EXTRA_LD_OPTIONS=$withval ;;
5515esac
5516EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5517
5518
5519# Check whether --enable-bindings was given.
5520if test "${enable_bindings+set}" = set; then
5521  enableval=$enable_bindings;
5522else
5523  enableval=default
5524fi
5525
5526BINDINGS_TO_BUILD=""
5527case "$enableval" in
5528  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5529  all ) BINDINGS_TO_BUILD="ocaml" ;;
5530  none | no) BINDINGS_TO_BUILD="" ;;
5531  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5532      case "$a_binding" in
5533        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5534        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5535echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5536   { (exit 1); exit 1; }; } ;;
5537      esac
5538  done
5539  ;;
5540esac
5541
5542
5543# Check whether --with-ocaml-libdir was given.
5544if test "${with_ocaml_libdir+set}" = set; then
5545  withval=$with_ocaml_libdir;
5546else
5547  withval=auto
5548fi
5549
5550case "$withval" in
5551  auto) with_ocaml_libdir="$withval" ;;
5552  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5553  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5554echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5555   { (exit 1); exit 1; }; } ;;
5556esac
5557
5558
5559# Check whether --with-clang-srcdir was given.
5560if test "${with_clang_srcdir+set}" = set; then
5561  withval=$with_clang_srcdir;
5562else
5563  withval="-"
5564fi
5565
5566case "$withval" in
5567  -) clang_src_root="" ;;
5568  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5569  *) clang_src_root="$ac_pwd/$withval" ;;
5570esac
5571CLANG_SRC_ROOT=$clang_src_root
5572
5573
5574
5575# Check whether --with-clang-resource-dir was given.
5576if test "${with_clang_resource_dir+set}" = set; then
5577  withval=$with_clang_resource_dir;
5578else
5579  withval=""
5580fi
5581
5582
5583cat >>confdefs.h <<_ACEOF
5584#define CLANG_RESOURCE_DIR "$withval"
5585_ACEOF
5586
5587
5588
5589# Check whether --with-c-include-dirs was given.
5590if test "${with_c_include_dirs+set}" = set; then
5591  withval=$with_c_include_dirs;
5592else
5593  withval=""
5594fi
5595
5596
5597cat >>confdefs.h <<_ACEOF
5598#define C_INCLUDE_DIRS "$withval"
5599_ACEOF
5600
5601
5602# Clang normally uses the system c++ headers and libraries. With this option,
5603# clang will use the ones provided by a gcc installation instead. This option should
5604# be passed the same value that was used with --prefix when configuring gcc.
5605
5606# Check whether --with-gcc-toolchain was given.
5607if test "${with_gcc_toolchain+set}" = set; then
5608  withval=$with_gcc_toolchain;
5609else
5610  withval=""
5611fi
5612
5613
5614cat >>confdefs.h <<_ACEOF
5615#define GCC_INSTALL_PREFIX "$withval"
5616_ACEOF
5617
5618
5619
5620# Check whether --with-default-sysroot was given.
5621if test "${with_default_sysroot+set}" = set; then
5622  withval=$with_default_sysroot;
5623else
5624  withval=""
5625fi
5626
5627
5628cat >>confdefs.h <<_ACEOF
5629#define DEFAULT_SYSROOT "$withval"
5630_ACEOF
5631
5632
5633
5634# Check whether --with-binutils-include was given.
5635if test "${with_binutils_include+set}" = set; then
5636  withval=$with_binutils_include;
5637else
5638  withval=default
5639fi
5640
5641case "$withval" in
5642  default) WITH_BINUTILS_INCDIR=default ;;
5643  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5644  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5645echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5646   { (exit 1); exit 1; }; } ;;
5647esac
5648if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5649  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5650
5651  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5652     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5653     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5654echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5655   { (exit 1); exit 1; }; };
5656  fi
5657fi
5658
5659
5660# Check whether --with-bug-report-url was given.
5661if test "${with_bug_report_url+set}" = set; then
5662  withval=$with_bug_report_url;
5663else
5664  withval="http://llvm.org/bugs/"
5665fi
5666
5667
5668cat >>confdefs.h <<_ACEOF
5669#define BUG_REPORT_URL "$withval"
5670_ACEOF
5671
5672
5673# Check whether --enable-terminfo was given.
5674if test "${enable_terminfo+set}" = set; then
5675  enableval=$enable_terminfo; case "$enableval" in
5676    yes) llvm_cv_enable_terminfo="yes" ;;
5677    no)  llvm_cv_enable_terminfo="no"  ;;
5678    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5679echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5680   { (exit 1); exit 1; }; } ;;
5681  esac
5682else
5683  llvm_cv_enable_terminfo="yes"
5684fi
5685
5686case "$llvm_cv_enable_terminfo" in
5687  yes) ENABLE_TERMINFO=1
5688 ;;
5689  no)  ENABLE_TERMINFO=0
5690 ;;
5691esac
5692
5693# Check whether --enable-libedit was given.
5694if test "${enable_libedit+set}" = set; then
5695  enableval=$enable_libedit; case "$enableval" in
5696    yes) llvm_cv_enable_libedit="yes" ;;
5697    no)  llvm_cv_enable_libedit="no"  ;;
5698    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5699echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5700   { (exit 1); exit 1; }; } ;;
5701  esac
5702else
5703  llvm_cv_enable_libedit="yes"
5704fi
5705
5706
5707# Check whether --enable-libffi was given.
5708if test "${enable_libffi+set}" = set; then
5709  enableval=$enable_libffi; case "$enableval" in
5710    yes) llvm_cv_enable_libffi="yes" ;;
5711    no)  llvm_cv_enable_libffi="no"  ;;
5712    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5713echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5714   { (exit 1); exit 1; }; } ;;
5715  esac
5716else
5717  llvm_cv_enable_libffi=no
5718fi
5719
5720
5721
5722# Check whether --with-internal-prefix was given.
5723if test "${with_internal_prefix+set}" = set; then
5724  withval=$with_internal_prefix;
5725else
5726  withval=""
5727fi
5728
5729INTERNAL_PREFIX=$withval
5730
5731
5732
5733{ echo "$as_me:$LINENO: checking for GNU make" >&5
5734echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5735if test "${llvm_cv_gnu_make_command+set}" = set; then
5736  echo $ECHO_N "(cached) $ECHO_C" >&6
5737else
5738  llvm_cv_gnu_make_command=''
5739 for a in "$MAKE" make gmake gnumake ; do
5740  if test -z "$a" ; then continue ; fi ;
5741  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5742  then
5743   llvm_cv_gnu_make_command=$a ;
5744   break;
5745  fi
5746 done
5747fi
5748{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5749echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5750 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5751   ifGNUmake='' ;
5752 else
5753   ifGNUmake='#' ;
5754   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5755echo "${ECHO_T}\"Not found\"" >&6; };
5756 fi
5757
5758
5759{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5760echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5761LN_S=$as_ln_s
5762if test "$LN_S" = "ln -s"; then
5763  { echo "$as_me:$LINENO: result: yes" >&5
5764echo "${ECHO_T}yes" >&6; }
5765else
5766  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5767echo "${ECHO_T}no, using $LN_S" >&6; }
5768fi
5769
5770# Extract the first word of "nm", so it can be a program name with args.
5771set dummy nm; ac_word=$2
5772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5774if test "${ac_cv_path_NM+set}" = set; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777  case $NM in
5778  [\\/]* | ?:[\\/]*)
5779  ac_cv_path_NM="$NM" # Let the user override the test with a path.
5780  ;;
5781  *)
5782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785  IFS=$as_save_IFS
5786  test -z "$as_dir" && as_dir=.
5787  for ac_exec_ext in '' $ac_executable_extensions; do
5788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5789    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791    break 2
5792  fi
5793done
5794done
5795IFS=$as_save_IFS
5796
5797  test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5798  ;;
5799esac
5800fi
5801NM=$ac_cv_path_NM
5802if test -n "$NM"; then
5803  { echo "$as_me:$LINENO: result: $NM" >&5
5804echo "${ECHO_T}$NM" >&6; }
5805else
5806  { echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6; }
5808fi
5809
5810
5811# Extract the first word of "cmp", so it can be a program name with args.
5812set dummy cmp; ac_word=$2
5813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815if test "${ac_cv_path_CMP+set}" = set; then
5816  echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818  case $CMP in
5819  [\\/]* | ?:[\\/]*)
5820  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5821  ;;
5822  *)
5823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826  IFS=$as_save_IFS
5827  test -z "$as_dir" && as_dir=.
5828  for ac_exec_ext in '' $ac_executable_extensions; do
5829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5830    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832    break 2
5833  fi
5834done
5835done
5836IFS=$as_save_IFS
5837
5838  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5839  ;;
5840esac
5841fi
5842CMP=$ac_cv_path_CMP
5843if test -n "$CMP"; then
5844  { echo "$as_me:$LINENO: result: $CMP" >&5
5845echo "${ECHO_T}$CMP" >&6; }
5846else
5847  { echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6; }
5849fi
5850
5851
5852# Extract the first word of "cp", so it can be a program name with args.
5853set dummy cp; ac_word=$2
5854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5856if test "${ac_cv_path_CP+set}" = set; then
5857  echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859  case $CP in
5860  [\\/]* | ?:[\\/]*)
5861  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5862  ;;
5863  *)
5864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867  IFS=$as_save_IFS
5868  test -z "$as_dir" && as_dir=.
5869  for ac_exec_ext in '' $ac_executable_extensions; do
5870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5871    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873    break 2
5874  fi
5875done
5876done
5877IFS=$as_save_IFS
5878
5879  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5880  ;;
5881esac
5882fi
5883CP=$ac_cv_path_CP
5884if test -n "$CP"; then
5885  { echo "$as_me:$LINENO: result: $CP" >&5
5886echo "${ECHO_T}$CP" >&6; }
5887else
5888  { echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6; }
5890fi
5891
5892
5893# Extract the first word of "date", so it can be a program name with args.
5894set dummy date; ac_word=$2
5895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5897if test "${ac_cv_path_DATE+set}" = set; then
5898  echo $ECHO_N "(cached) $ECHO_C" >&6
5899else
5900  case $DATE in
5901  [\\/]* | ?:[\\/]*)
5902  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5903  ;;
5904  *)
5905  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908  IFS=$as_save_IFS
5909  test -z "$as_dir" && as_dir=.
5910  for ac_exec_ext in '' $ac_executable_extensions; do
5911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5912    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914    break 2
5915  fi
5916done
5917done
5918IFS=$as_save_IFS
5919
5920  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5921  ;;
5922esac
5923fi
5924DATE=$ac_cv_path_DATE
5925if test -n "$DATE"; then
5926  { echo "$as_me:$LINENO: result: $DATE" >&5
5927echo "${ECHO_T}$DATE" >&6; }
5928else
5929  { echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6; }
5931fi
5932
5933
5934# Extract the first word of "find", so it can be a program name with args.
5935set dummy find; ac_word=$2
5936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5938if test "${ac_cv_path_FIND+set}" = set; then
5939  echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941  case $FIND in
5942  [\\/]* | ?:[\\/]*)
5943  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5944  ;;
5945  *)
5946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949  IFS=$as_save_IFS
5950  test -z "$as_dir" && as_dir=.
5951  for ac_exec_ext in '' $ac_executable_extensions; do
5952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5953    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955    break 2
5956  fi
5957done
5958done
5959IFS=$as_save_IFS
5960
5961  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5962  ;;
5963esac
5964fi
5965FIND=$ac_cv_path_FIND
5966if test -n "$FIND"; then
5967  { echo "$as_me:$LINENO: result: $FIND" >&5
5968echo "${ECHO_T}$FIND" >&6; }
5969else
5970  { echo "$as_me:$LINENO: result: no" >&5
5971echo "${ECHO_T}no" >&6; }
5972fi
5973
5974
5975# Extract the first word of "grep", so it can be a program name with args.
5976set dummy grep; ac_word=$2
5977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979if test "${ac_cv_path_GREP+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  case $GREP in
5983  [\\/]* | ?:[\\/]*)
5984  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5985  ;;
5986  *)
5987  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990  IFS=$as_save_IFS
5991  test -z "$as_dir" && as_dir=.
5992  for ac_exec_ext in '' $ac_executable_extensions; do
5993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5994    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996    break 2
5997  fi
5998done
5999done
6000IFS=$as_save_IFS
6001
6002  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6003  ;;
6004esac
6005fi
6006GREP=$ac_cv_path_GREP
6007if test -n "$GREP"; then
6008  { echo "$as_me:$LINENO: result: $GREP" >&5
6009echo "${ECHO_T}$GREP" >&6; }
6010else
6011  { echo "$as_me:$LINENO: result: no" >&5
6012echo "${ECHO_T}no" >&6; }
6013fi
6014
6015
6016# Extract the first word of "mkdir", so it can be a program name with args.
6017set dummy mkdir; ac_word=$2
6018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6020if test "${ac_cv_path_MKDIR+set}" = set; then
6021  echo $ECHO_N "(cached) $ECHO_C" >&6
6022else
6023  case $MKDIR in
6024  [\\/]* | ?:[\\/]*)
6025  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6026  ;;
6027  *)
6028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031  IFS=$as_save_IFS
6032  test -z "$as_dir" && as_dir=.
6033  for ac_exec_ext in '' $ac_executable_extensions; do
6034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6035    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037    break 2
6038  fi
6039done
6040done
6041IFS=$as_save_IFS
6042
6043  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6044  ;;
6045esac
6046fi
6047MKDIR=$ac_cv_path_MKDIR
6048if test -n "$MKDIR"; then
6049  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6050echo "${ECHO_T}$MKDIR" >&6; }
6051else
6052  { echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6; }
6054fi
6055
6056
6057# Extract the first word of "mv", so it can be a program name with args.
6058set dummy mv; ac_word=$2
6059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6061if test "${ac_cv_path_MV+set}" = set; then
6062  echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064  case $MV in
6065  [\\/]* | ?:[\\/]*)
6066  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6067  ;;
6068  *)
6069  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072  IFS=$as_save_IFS
6073  test -z "$as_dir" && as_dir=.
6074  for ac_exec_ext in '' $ac_executable_extensions; do
6075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6076    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078    break 2
6079  fi
6080done
6081done
6082IFS=$as_save_IFS
6083
6084  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6085  ;;
6086esac
6087fi
6088MV=$ac_cv_path_MV
6089if test -n "$MV"; then
6090  { echo "$as_me:$LINENO: result: $MV" >&5
6091echo "${ECHO_T}$MV" >&6; }
6092else
6093  { echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6; }
6095fi
6096
6097
6098if test -n "$ac_tool_prefix"; then
6099  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6100set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6103if test "${ac_cv_prog_RANLIB+set}" = set; then
6104  echo $ECHO_N "(cached) $ECHO_C" >&6
6105else
6106  if test -n "$RANLIB"; then
6107  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112  IFS=$as_save_IFS
6113  test -z "$as_dir" && as_dir=.
6114  for ac_exec_ext in '' $ac_executable_extensions; do
6115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6116    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118    break 2
6119  fi
6120done
6121done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126RANLIB=$ac_cv_prog_RANLIB
6127if test -n "$RANLIB"; then
6128  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6129echo "${ECHO_T}$RANLIB" >&6; }
6130else
6131  { echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6; }
6133fi
6134
6135
6136fi
6137if test -z "$ac_cv_prog_RANLIB"; then
6138  ac_ct_RANLIB=$RANLIB
6139  # Extract the first word of "ranlib", so it can be a program name with args.
6140set dummy ranlib; ac_word=$2
6141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6144  echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
6146  if test -n "$ac_ct_RANLIB"; then
6147  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6148else
6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152  IFS=$as_save_IFS
6153  test -z "$as_dir" && as_dir=.
6154  for ac_exec_ext in '' $ac_executable_extensions; do
6155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156    ac_cv_prog_ac_ct_RANLIB="ranlib"
6157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158    break 2
6159  fi
6160done
6161done
6162IFS=$as_save_IFS
6163
6164fi
6165fi
6166ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6167if test -n "$ac_ct_RANLIB"; then
6168  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6169echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6170else
6171  { echo "$as_me:$LINENO: result: no" >&5
6172echo "${ECHO_T}no" >&6; }
6173fi
6174
6175  if test "x$ac_ct_RANLIB" = x; then
6176    RANLIB=":"
6177  else
6178    case $cross_compiling:$ac_tool_warned in
6179yes:)
6180{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6181whose name does not start with the host triplet.  If you think this
6182configuration is useful to you, please write to autoconf@gnu.org." >&5
6183echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6184whose name does not start with the host triplet.  If you think this
6185configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6186ac_tool_warned=yes ;;
6187esac
6188    RANLIB=$ac_ct_RANLIB
6189  fi
6190else
6191  RANLIB="$ac_cv_prog_RANLIB"
6192fi
6193
6194if test -n "$ac_tool_prefix"; then
6195  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6196set dummy ${ac_tool_prefix}ar; ac_word=$2
6197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199if test "${ac_cv_prog_AR+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  if test -n "$AR"; then
6203  ac_cv_prog_AR="$AR" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208  IFS=$as_save_IFS
6209  test -z "$as_dir" && as_dir=.
6210  for ac_exec_ext in '' $ac_executable_extensions; do
6211  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6212    ac_cv_prog_AR="${ac_tool_prefix}ar"
6213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214    break 2
6215  fi
6216done
6217done
6218IFS=$as_save_IFS
6219
6220fi
6221fi
6222AR=$ac_cv_prog_AR
6223if test -n "$AR"; then
6224  { echo "$as_me:$LINENO: result: $AR" >&5
6225echo "${ECHO_T}$AR" >&6; }
6226else
6227  { echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6; }
6229fi
6230
6231
6232fi
6233if test -z "$ac_cv_prog_AR"; then
6234  ac_ct_AR=$AR
6235  # Extract the first word of "ar", so it can be a program name with args.
6236set dummy ar; ac_word=$2
6237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6240  echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242  if test -n "$ac_ct_AR"; then
6243  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250  for ac_exec_ext in '' $ac_executable_extensions; do
6251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252    ac_cv_prog_ac_ct_AR="ar"
6253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262ac_ct_AR=$ac_cv_prog_ac_ct_AR
6263if test -n "$ac_ct_AR"; then
6264  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6265echo "${ECHO_T}$ac_ct_AR" >&6; }
6266else
6267  { echo "$as_me:$LINENO: result: no" >&5
6268echo "${ECHO_T}no" >&6; }
6269fi
6270
6271  if test "x$ac_ct_AR" = x; then
6272    AR="false"
6273  else
6274    case $cross_compiling:$ac_tool_warned in
6275yes:)
6276{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277whose name does not start with the host triplet.  If you think this
6278configuration is useful to you, please write to autoconf@gnu.org." >&5
6279echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280whose name does not start with the host triplet.  If you think this
6281configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282ac_tool_warned=yes ;;
6283esac
6284    AR=$ac_ct_AR
6285  fi
6286else
6287  AR="$ac_cv_prog_AR"
6288fi
6289
6290# Extract the first word of "rm", so it can be a program name with args.
6291set dummy rm; ac_word=$2
6292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6294if test "${ac_cv_path_RM+set}" = set; then
6295  echo $ECHO_N "(cached) $ECHO_C" >&6
6296else
6297  case $RM in
6298  [\\/]* | ?:[\\/]*)
6299  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6300  ;;
6301  *)
6302  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305  IFS=$as_save_IFS
6306  test -z "$as_dir" && as_dir=.
6307  for ac_exec_ext in '' $ac_executable_extensions; do
6308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6309    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311    break 2
6312  fi
6313done
6314done
6315IFS=$as_save_IFS
6316
6317  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6318  ;;
6319esac
6320fi
6321RM=$ac_cv_path_RM
6322if test -n "$RM"; then
6323  { echo "$as_me:$LINENO: result: $RM" >&5
6324echo "${ECHO_T}$RM" >&6; }
6325else
6326  { echo "$as_me:$LINENO: result: no" >&5
6327echo "${ECHO_T}no" >&6; }
6328fi
6329
6330
6331# Extract the first word of "sed", so it can be a program name with args.
6332set dummy sed; ac_word=$2
6333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6335if test "${ac_cv_path_SED+set}" = set; then
6336  echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338  case $SED in
6339  [\\/]* | ?:[\\/]*)
6340  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6341  ;;
6342  *)
6343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346  IFS=$as_save_IFS
6347  test -z "$as_dir" && as_dir=.
6348  for ac_exec_ext in '' $ac_executable_extensions; do
6349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6350    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355done
6356IFS=$as_save_IFS
6357
6358  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6359  ;;
6360esac
6361fi
6362SED=$ac_cv_path_SED
6363if test -n "$SED"; then
6364  { echo "$as_me:$LINENO: result: $SED" >&5
6365echo "${ECHO_T}$SED" >&6; }
6366else
6367  { echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6; }
6369fi
6370
6371
6372# Extract the first word of "tar", so it can be a program name with args.
6373set dummy tar; ac_word=$2
6374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376if test "${ac_cv_path_TAR+set}" = set; then
6377  echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
6379  case $TAR in
6380  [\\/]* | ?:[\\/]*)
6381  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6382  ;;
6383  *)
6384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387  IFS=$as_save_IFS
6388  test -z "$as_dir" && as_dir=.
6389  for ac_exec_ext in '' $ac_executable_extensions; do
6390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6391    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393    break 2
6394  fi
6395done
6396done
6397IFS=$as_save_IFS
6398
6399  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6400  ;;
6401esac
6402fi
6403TAR=$ac_cv_path_TAR
6404if test -n "$TAR"; then
6405  { echo "$as_me:$LINENO: result: $TAR" >&5
6406echo "${ECHO_T}$TAR" >&6; }
6407else
6408  { echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6; }
6410fi
6411
6412
6413# Extract the first word of "pwd", so it can be a program name with args.
6414set dummy pwd; ac_word=$2
6415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417if test "${ac_cv_path_BINPWD+set}" = set; then
6418  echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420  case $BINPWD in
6421  [\\/]* | ?:[\\/]*)
6422  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6423  ;;
6424  *)
6425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426for as_dir in $PATH
6427do
6428  IFS=$as_save_IFS
6429  test -z "$as_dir" && as_dir=.
6430  for ac_exec_ext in '' $ac_executable_extensions; do
6431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6432    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434    break 2
6435  fi
6436done
6437done
6438IFS=$as_save_IFS
6439
6440  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6441  ;;
6442esac
6443fi
6444BINPWD=$ac_cv_path_BINPWD
6445if test -n "$BINPWD"; then
6446  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6447echo "${ECHO_T}$BINPWD" >&6; }
6448else
6449  { echo "$as_me:$LINENO: result: no" >&5
6450echo "${ECHO_T}no" >&6; }
6451fi
6452
6453
6454
6455# Extract the first word of "dot", so it can be a program name with args.
6456set dummy dot; ac_word=$2
6457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459if test "${ac_cv_path_DOT+set}" = set; then
6460  echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462  case $DOT in
6463  [\\/]* | ?:[\\/]*)
6464  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6465  ;;
6466  *)
6467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470  IFS=$as_save_IFS
6471  test -z "$as_dir" && as_dir=.
6472  for ac_exec_ext in '' $ac_executable_extensions; do
6473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6474    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476    break 2
6477  fi
6478done
6479done
6480IFS=$as_save_IFS
6481
6482  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6483  ;;
6484esac
6485fi
6486DOT=$ac_cv_path_DOT
6487if test -n "$DOT"; then
6488  { echo "$as_me:$LINENO: result: $DOT" >&5
6489echo "${ECHO_T}$DOT" >&6; }
6490else
6491  { echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6; }
6493fi
6494
6495
6496if test "$DOT" != "echo dot" ; then
6497
6498cat >>confdefs.h <<\_ACEOF
6499#define HAVE_DOT 1
6500_ACEOF
6501
6502    if test "$llvm_cv_os_type" = "MingW" ; then
6503    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6504  fi
6505
6506cat >>confdefs.h <<_ACEOF
6507#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6508_ACEOF
6509
6510fi
6511
6512# Find a good install program.  We prefer a C program (faster),
6513# so one script is as good as another.  But avoid the broken or
6514# incompatible versions:
6515# SysV /etc/install, /usr/sbin/install
6516# SunOS /usr/etc/install
6517# IRIX /sbin/install
6518# AIX /bin/install
6519# AmigaOS /C/install, which installs bootblocks on floppy discs
6520# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6521# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6522# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6523# OS/2's system install, which has a completely different semantic
6524# ./install, which can be erroneously created by make from ./install.sh.
6525{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6526echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6527if test -z "$INSTALL"; then
6528if test "${ac_cv_path_install+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536  # Account for people who put trailing slashes in PATH elements.
6537case $as_dir/ in
6538  ./ | .// | /cC/* | \
6539  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6540  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6541  /usr/ucb/* ) ;;
6542  *)
6543    # OSF1 and SCO ODT 3.0 have their own names for install.
6544    # Don't use installbsd from OSF since it installs stuff as root
6545    # by default.
6546    for ac_prog in ginstall scoinst install; do
6547      for ac_exec_ext in '' $ac_executable_extensions; do
6548	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6549	  if test $ac_prog = install &&
6550	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6551	    # AIX install.  It has an incompatible calling convention.
6552	    :
6553	  elif test $ac_prog = install &&
6554	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6555	    # program-specific install script used by HP pwplus--don't use.
6556	    :
6557	  else
6558	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6559	    break 3
6560	  fi
6561	fi
6562      done
6563    done
6564    ;;
6565esac
6566done
6567IFS=$as_save_IFS
6568
6569
6570fi
6571  if test "${ac_cv_path_install+set}" = set; then
6572    INSTALL=$ac_cv_path_install
6573  else
6574    # As a last resort, use the slow shell script.  Don't cache a
6575    # value for INSTALL within a source directory, because that will
6576    # break other packages using the cache if that directory is
6577    # removed, or if the value is a relative name.
6578    INSTALL=$ac_install_sh
6579  fi
6580fi
6581{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6582echo "${ECHO_T}$INSTALL" >&6; }
6583
6584# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6585# It thinks the first close brace ends the variable substitution.
6586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6587
6588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6589
6590test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6591
6592case "$INSTALL" in
6593 [\\/$]* | ?:[\\/]* ) ;;
6594 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6595esac
6596
6597# Extract the first word of "bzip2", so it can be a program name with args.
6598set dummy bzip2; ac_word=$2
6599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601if test "${ac_cv_path_BZIP2+set}" = set; then
6602  echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604  case $BZIP2 in
6605  [\\/]* | ?:[\\/]*)
6606  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6607  ;;
6608  *)
6609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612  IFS=$as_save_IFS
6613  test -z "$as_dir" && as_dir=.
6614  for ac_exec_ext in '' $ac_executable_extensions; do
6615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6616    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618    break 2
6619  fi
6620done
6621done
6622IFS=$as_save_IFS
6623
6624  ;;
6625esac
6626fi
6627BZIP2=$ac_cv_path_BZIP2
6628if test -n "$BZIP2"; then
6629  { echo "$as_me:$LINENO: result: $BZIP2" >&5
6630echo "${ECHO_T}$BZIP2" >&6; }
6631else
6632  { echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6; }
6634fi
6635
6636
6637# Extract the first word of "cat", so it can be a program name with args.
6638set dummy cat; ac_word=$2
6639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641if test "${ac_cv_path_CAT+set}" = set; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  case $CAT in
6645  [\\/]* | ?:[\\/]*)
6646  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6647  ;;
6648  *)
6649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652  IFS=$as_save_IFS
6653  test -z "$as_dir" && as_dir=.
6654  for ac_exec_ext in '' $ac_executable_extensions; do
6655  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658    break 2
6659  fi
6660done
6661done
6662IFS=$as_save_IFS
6663
6664  ;;
6665esac
6666fi
6667CAT=$ac_cv_path_CAT
6668if test -n "$CAT"; then
6669  { echo "$as_me:$LINENO: result: $CAT" >&5
6670echo "${ECHO_T}$CAT" >&6; }
6671else
6672  { echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6; }
6674fi
6675
6676
6677# Extract the first word of "doxygen", so it can be a program name with args.
6678set dummy doxygen; ac_word=$2
6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_path_DOXYGEN+set}" = set; then
6682  echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684  case $DOXYGEN in
6685  [\\/]* | ?:[\\/]*)
6686  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6687  ;;
6688  *)
6689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692  IFS=$as_save_IFS
6693  test -z "$as_dir" && as_dir=.
6694  for ac_exec_ext in '' $ac_executable_extensions; do
6695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698    break 2
6699  fi
6700done
6701done
6702IFS=$as_save_IFS
6703
6704  ;;
6705esac
6706fi
6707DOXYGEN=$ac_cv_path_DOXYGEN
6708if test -n "$DOXYGEN"; then
6709  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6710echo "${ECHO_T}$DOXYGEN" >&6; }
6711else
6712  { echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6; }
6714fi
6715
6716
6717# Extract the first word of "groff", so it can be a program name with args.
6718set dummy groff; ac_word=$2
6719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721if test "${ac_cv_path_GROFF+set}" = set; then
6722  echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724  case $GROFF in
6725  [\\/]* | ?:[\\/]*)
6726  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6727  ;;
6728  *)
6729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734  for ac_exec_ext in '' $ac_executable_extensions; do
6735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741done
6742IFS=$as_save_IFS
6743
6744  ;;
6745esac
6746fi
6747GROFF=$ac_cv_path_GROFF
6748if test -n "$GROFF"; then
6749  { echo "$as_me:$LINENO: result: $GROFF" >&5
6750echo "${ECHO_T}$GROFF" >&6; }
6751else
6752  { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756
6757# Extract the first word of "gzip", so it can be a program name with args.
6758set dummy gzip; ac_word=$2
6759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761if test "${ac_cv_path_GZIPBIN+set}" = set; then
6762  echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764  case $GZIPBIN in
6765  [\\/]* | ?:[\\/]*)
6766  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6767  ;;
6768  *)
6769  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772  IFS=$as_save_IFS
6773  test -z "$as_dir" && as_dir=.
6774  for ac_exec_ext in '' $ac_executable_extensions; do
6775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778    break 2
6779  fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784  ;;
6785esac
6786fi
6787GZIPBIN=$ac_cv_path_GZIPBIN
6788if test -n "$GZIPBIN"; then
6789  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6790echo "${ECHO_T}$GZIPBIN" >&6; }
6791else
6792  { echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6; }
6794fi
6795
6796
6797# Extract the first word of "pdfroff", so it can be a program name with args.
6798set dummy pdfroff; ac_word=$2
6799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801if test "${ac_cv_path_PDFROFF+set}" = set; then
6802  echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804  case $PDFROFF in
6805  [\\/]* | ?:[\\/]*)
6806  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6807  ;;
6808  *)
6809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812  IFS=$as_save_IFS
6813  test -z "$as_dir" && as_dir=.
6814  for ac_exec_ext in '' $ac_executable_extensions; do
6815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818    break 2
6819  fi
6820done
6821done
6822IFS=$as_save_IFS
6823
6824  ;;
6825esac
6826fi
6827PDFROFF=$ac_cv_path_PDFROFF
6828if test -n "$PDFROFF"; then
6829  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6830echo "${ECHO_T}$PDFROFF" >&6; }
6831else
6832  { echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6; }
6834fi
6835
6836
6837# Extract the first word of "zip", so it can be a program name with args.
6838set dummy zip; ac_word=$2
6839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841if test "${ac_cv_path_ZIP+set}" = set; then
6842  echo $ECHO_N "(cached) $ECHO_C" >&6
6843else
6844  case $ZIP in
6845  [\\/]* | ?:[\\/]*)
6846  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6847  ;;
6848  *)
6849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852  IFS=$as_save_IFS
6853  test -z "$as_dir" && as_dir=.
6854  for ac_exec_ext in '' $ac_executable_extensions; do
6855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6856    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858    break 2
6859  fi
6860done
6861done
6862IFS=$as_save_IFS
6863
6864  ;;
6865esac
6866fi
6867ZIP=$ac_cv_path_ZIP
6868if test -n "$ZIP"; then
6869  { echo "$as_me:$LINENO: result: $ZIP" >&5
6870echo "${ECHO_T}$ZIP" >&6; }
6871else
6872  { echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6; }
6874fi
6875
6876
6877# Extract the first word of "go", so it can be a program name with args.
6878set dummy go; ac_word=$2
6879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881if test "${ac_cv_path_GO+set}" = set; then
6882  echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884  case $GO in
6885  [\\/]* | ?:[\\/]*)
6886  ac_cv_path_GO="$GO" # Let the user override the test with a path.
6887  ;;
6888  *)
6889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892  IFS=$as_save_IFS
6893  test -z "$as_dir" && as_dir=.
6894  for ac_exec_ext in '' $ac_executable_extensions; do
6895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896    ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
6897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898    break 2
6899  fi
6900done
6901done
6902IFS=$as_save_IFS
6903
6904  ;;
6905esac
6906fi
6907GO=$ac_cv_path_GO
6908if test -n "$GO"; then
6909  { echo "$as_me:$LINENO: result: $GO" >&5
6910echo "${ECHO_T}$GO" >&6; }
6911else
6912  { echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6; }
6914fi
6915
6916
6917for ac_prog in ocamlfind
6918do
6919  # Extract the first word of "$ac_prog", so it can be a program name with args.
6920set dummy $ac_prog; ac_word=$2
6921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923if test "${ac_cv_path_OCAMLFIND+set}" = set; then
6924  echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926  case $OCAMLFIND in
6927  [\\/]* | ?:[\\/]*)
6928  ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
6929  ;;
6930  *)
6931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936  for ac_exec_ext in '' $ac_executable_extensions; do
6937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938    ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
6939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940    break 2
6941  fi
6942done
6943done
6944IFS=$as_save_IFS
6945
6946  ;;
6947esac
6948fi
6949OCAMLFIND=$ac_cv_path_OCAMLFIND
6950if test -n "$OCAMLFIND"; then
6951  { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
6952echo "${ECHO_T}$OCAMLFIND" >&6; }
6953else
6954  { echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6; }
6956fi
6957
6958
6959  test -n "$OCAMLFIND" && break
6960done
6961
6962for ac_prog in gas as
6963do
6964  # Extract the first word of "$ac_prog", so it can be a program name with args.
6965set dummy $ac_prog; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_GAS+set}" = set; then
6969  echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971  case $GAS in
6972  [\\/]* | ?:[\\/]*)
6973  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
6974  ;;
6975  *)
6976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979  IFS=$as_save_IFS
6980  test -z "$as_dir" && as_dir=.
6981  for ac_exec_ext in '' $ac_executable_extensions; do
6982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
6984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985    break 2
6986  fi
6987done
6988done
6989IFS=$as_save_IFS
6990
6991  ;;
6992esac
6993fi
6994GAS=$ac_cv_path_GAS
6995if test -n "$GAS"; then
6996  { echo "$as_me:$LINENO: result: $GAS" >&5
6997echo "${ECHO_T}$GAS" >&6; }
6998else
6999  { echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6; }
7001fi
7002
7003
7004  test -n "$GAS" && break
7005done
7006
7007
7008{ echo "$as_me:$LINENO: checking for linker version" >&5
7009echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7010if test "${llvm_cv_link_version+set}" = set; then
7011  echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013
7014   version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7015
7016   # Check for ld64.
7017   if (echo "$version_string" | grep -q "ld64"); then
7018     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7019   else
7020     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7021   fi
7022
7023fi
7024{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7025echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7026
7027cat >>confdefs.h <<_ACEOF
7028#define HOST_LINK_VERSION "$llvm_cv_link_version"
7029_ACEOF
7030
7031
7032
7033
7034{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7035echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7036if test "${llvm_cv_link_use_r+set}" = set; then
7037  echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039   ac_ext=c
7040ac_cpp='$CPP $CPPFLAGS'
7041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043ac_compiler_gnu=$ac_cv_c_compiler_gnu
7044
7045  oldcflags="$CFLAGS"
7046  CFLAGS="$CFLAGS -Wl,-R."
7047  cat >conftest.$ac_ext <<_ACEOF
7048/* confdefs.h.  */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h.  */
7053
7054int
7055main ()
7056{
7057
7058  ;
7059  return 0;
7060}
7061_ACEOF
7062rm -f conftest.$ac_objext conftest$ac_exeext
7063if { (ac_try="$ac_link"
7064case "(($ac_try" in
7065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066  *) ac_try_echo=$ac_try;;
7067esac
7068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069  (eval "$ac_link") 2>conftest.er1
7070  ac_status=$?
7071  grep -v '^ *+' conftest.er1 >conftest.err
7072  rm -f conftest.er1
7073  cat conftest.err >&5
7074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075  (exit $ac_status); } &&
7076	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7077  { (case "(($ac_try" in
7078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079  *) ac_try_echo=$ac_try;;
7080esac
7081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082  (eval "$ac_try") 2>&5
7083  ac_status=$?
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); }; } &&
7086	 { ac_try='test -s conftest$ac_exeext'
7087  { (case "(($ac_try" in
7088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089  *) ac_try_echo=$ac_try;;
7090esac
7091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092  (eval "$ac_try") 2>&5
7093  ac_status=$?
7094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095  (exit $ac_status); }; }; then
7096  llvm_cv_link_use_r=yes
7097else
7098  echo "$as_me: failed program was:" >&5
7099sed 's/^/| /' conftest.$ac_ext >&5
7100
7101	llvm_cv_link_use_r=no
7102fi
7103
7104rm -f core conftest.err conftest.$ac_objext \
7105      conftest$ac_exeext conftest.$ac_ext
7106  CFLAGS="$oldcflags"
7107  ac_ext=c
7108ac_cpp='$CPP $CPPFLAGS'
7109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111ac_compiler_gnu=$ac_cv_c_compiler_gnu
7112
7113
7114fi
7115{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7116echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7117if test "$llvm_cv_link_use_r" = yes ; then
7118
7119cat >>confdefs.h <<\_ACEOF
7120#define HAVE_LINK_R 1
7121_ACEOF
7122
7123  fi
7124
7125
7126{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7127echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7128if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7129  echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131   ac_ext=c
7132ac_cpp='$CPP $CPPFLAGS'
7133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136
7137  oldcflags="$CFLAGS"
7138  CFLAGS="$CFLAGS -rdynamic"
7139  cat >conftest.$ac_ext <<_ACEOF
7140/* confdefs.h.  */
7141_ACEOF
7142cat confdefs.h >>conftest.$ac_ext
7143cat >>conftest.$ac_ext <<_ACEOF
7144/* end confdefs.h.  */
7145
7146int
7147main ()
7148{
7149
7150  ;
7151  return 0;
7152}
7153_ACEOF
7154rm -f conftest.$ac_objext conftest$ac_exeext
7155if { (ac_try="$ac_link"
7156case "(($ac_try" in
7157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158  *) ac_try_echo=$ac_try;;
7159esac
7160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161  (eval "$ac_link") 2>conftest.er1
7162  ac_status=$?
7163  grep -v '^ *+' conftest.er1 >conftest.err
7164  rm -f conftest.er1
7165  cat conftest.err >&5
7166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167  (exit $ac_status); } &&
7168	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7169  { (case "(($ac_try" in
7170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171  *) ac_try_echo=$ac_try;;
7172esac
7173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174  (eval "$ac_try") 2>&5
7175  ac_status=$?
7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177  (exit $ac_status); }; } &&
7178	 { ac_try='test -s conftest$ac_exeext'
7179  { (case "(($ac_try" in
7180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181  *) ac_try_echo=$ac_try;;
7182esac
7183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184  (eval "$ac_try") 2>&5
7185  ac_status=$?
7186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187  (exit $ac_status); }; }; then
7188  llvm_cv_link_use_export_dynamic=yes
7189else
7190  echo "$as_me: failed program was:" >&5
7191sed 's/^/| /' conftest.$ac_ext >&5
7192
7193	llvm_cv_link_use_export_dynamic=no
7194fi
7195
7196rm -f core conftest.err conftest.$ac_objext \
7197      conftest$ac_exeext conftest.$ac_ext
7198  CFLAGS="$oldcflags"
7199  ac_ext=c
7200ac_cpp='$CPP $CPPFLAGS'
7201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204
7205
7206fi
7207{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7208echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7209if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7210
7211cat >>confdefs.h <<\_ACEOF
7212#define HAVE_LINK_EXPORT_DYNAMIC 1
7213_ACEOF
7214
7215  fi
7216
7217
7218{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7219echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7220if test "${llvm_cv_link_use_version_script+set}" = set; then
7221  echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223   ac_ext=c
7224ac_cpp='$CPP $CPPFLAGS'
7225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227ac_compiler_gnu=$ac_cv_c_compiler_gnu
7228
7229  oldcflags="$CFLAGS"
7230
7231  # The following code is from the autoconf manual,
7232  # "11.13: Limitations of Usual Tools".
7233  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7234  # Use mktemp if possible; otherwise fall back on mkdir,
7235  # with $RANDOM to make collisions less likely.
7236  : ${TMPDIR=/tmp}
7237  {
7238    tmp=`
7239      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7240    ` &&
7241    test -n "$tmp" && test -d "$tmp"
7242  } || {
7243    tmp=$TMPDIR/foo$$-$RANDOM
7244    (umask 077 && mkdir "$tmp")
7245  } || exit $?
7246
7247  echo "{" > "$tmp/export.map"
7248  echo "  global: main;" >> "$tmp/export.map"
7249  echo "  local: *;" >> "$tmp/export.map"
7250  echo "};" >> "$tmp/export.map"
7251
7252  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7253  cat >conftest.$ac_ext <<_ACEOF
7254/* confdefs.h.  */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h.  */
7259
7260int
7261main ()
7262{
7263
7264  ;
7265  return 0;
7266}
7267_ACEOF
7268rm -f conftest.$ac_objext conftest$ac_exeext
7269if { (ac_try="$ac_link"
7270case "(($ac_try" in
7271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272  *) ac_try_echo=$ac_try;;
7273esac
7274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275  (eval "$ac_link") 2>conftest.er1
7276  ac_status=$?
7277  grep -v '^ *+' conftest.er1 >conftest.err
7278  rm -f conftest.er1
7279  cat conftest.err >&5
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); } &&
7282	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7283  { (case "(($ac_try" in
7284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285  *) ac_try_echo=$ac_try;;
7286esac
7287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288  (eval "$ac_try") 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }; } &&
7292	 { ac_try='test -s conftest$ac_exeext'
7293  { (case "(($ac_try" in
7294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295  *) ac_try_echo=$ac_try;;
7296esac
7297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298  (eval "$ac_try") 2>&5
7299  ac_status=$?
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); }; }; then
7302  llvm_cv_link_use_version_script=yes
7303else
7304  echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
7306
7307	llvm_cv_link_use_version_script=no
7308fi
7309
7310rm -f core conftest.err conftest.$ac_objext \
7311      conftest$ac_exeext conftest.$ac_ext
7312  rm "$tmp/export.map"
7313  rmdir "$tmp"
7314  CFLAGS="$oldcflags"
7315  ac_ext=c
7316ac_cpp='$CPP $CPPFLAGS'
7317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321
7322fi
7323{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7324echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7325if test "$llvm_cv_link_use_version_script" = yes ; then
7326  HAVE_LINK_VERSION_SCRIPT=1
7327
7328  fi
7329
7330
7331
7332{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7333echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7334if test "${ac_cv_path_GREP+set}" = set; then
7335  echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337  # Extract the first word of "grep ggrep" to use in msg output
7338if test -z "$GREP"; then
7339set dummy grep ggrep; ac_prog_name=$2
7340if test "${ac_cv_path_GREP+set}" = set; then
7341  echo $ECHO_N "(cached) $ECHO_C" >&6
7342else
7343  ac_path_GREP_found=false
7344# Loop through the user's path and test for each of PROGNAME-LIST
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7347do
7348  IFS=$as_save_IFS
7349  test -z "$as_dir" && as_dir=.
7350  for ac_prog in grep ggrep; do
7351  for ac_exec_ext in '' $ac_executable_extensions; do
7352    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7353    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7354    # Check for GNU ac_path_GREP and select it if it is found.
7355  # Check for GNU $ac_path_GREP
7356case `"$ac_path_GREP" --version 2>&1` in
7357*GNU*)
7358  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7359*)
7360  ac_count=0
7361  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7362  while :
7363  do
7364    cat "conftest.in" "conftest.in" >"conftest.tmp"
7365    mv "conftest.tmp" "conftest.in"
7366    cp "conftest.in" "conftest.nl"
7367    echo 'GREP' >> "conftest.nl"
7368    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7369    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7370    ac_count=`expr $ac_count + 1`
7371    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7372      # Best one so far, save it but keep looking for a better one
7373      ac_cv_path_GREP="$ac_path_GREP"
7374      ac_path_GREP_max=$ac_count
7375    fi
7376    # 10*(2^10) chars as input seems more than enough
7377    test $ac_count -gt 10 && break
7378  done
7379  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7380esac
7381
7382
7383    $ac_path_GREP_found && break 3
7384  done
7385done
7386
7387done
7388IFS=$as_save_IFS
7389
7390
7391fi
7392
7393GREP="$ac_cv_path_GREP"
7394if test -z "$GREP"; then
7395  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7396echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7397   { (exit 1); exit 1; }; }
7398fi
7399
7400else
7401  ac_cv_path_GREP=$GREP
7402fi
7403
7404
7405fi
7406{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7407echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7408 GREP="$ac_cv_path_GREP"
7409
7410
7411{ echo "$as_me:$LINENO: checking for egrep" >&5
7412echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7413if test "${ac_cv_path_EGREP+set}" = set; then
7414  echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7417   then ac_cv_path_EGREP="$GREP -E"
7418   else
7419     # Extract the first word of "egrep" to use in msg output
7420if test -z "$EGREP"; then
7421set dummy egrep; ac_prog_name=$2
7422if test "${ac_cv_path_EGREP+set}" = set; then
7423  echo $ECHO_N "(cached) $ECHO_C" >&6
7424else
7425  ac_path_EGREP_found=false
7426# Loop through the user's path and test for each of PROGNAME-LIST
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432  for ac_prog in egrep; do
7433  for ac_exec_ext in '' $ac_executable_extensions; do
7434    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7435    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7436    # Check for GNU ac_path_EGREP and select it if it is found.
7437  # Check for GNU $ac_path_EGREP
7438case `"$ac_path_EGREP" --version 2>&1` in
7439*GNU*)
7440  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7441*)
7442  ac_count=0
7443  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7444  while :
7445  do
7446    cat "conftest.in" "conftest.in" >"conftest.tmp"
7447    mv "conftest.tmp" "conftest.in"
7448    cp "conftest.in" "conftest.nl"
7449    echo 'EGREP' >> "conftest.nl"
7450    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7451    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7452    ac_count=`expr $ac_count + 1`
7453    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7454      # Best one so far, save it but keep looking for a better one
7455      ac_cv_path_EGREP="$ac_path_EGREP"
7456      ac_path_EGREP_max=$ac_count
7457    fi
7458    # 10*(2^10) chars as input seems more than enough
7459    test $ac_count -gt 10 && break
7460  done
7461  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7462esac
7463
7464
7465    $ac_path_EGREP_found && break 3
7466  done
7467done
7468
7469done
7470IFS=$as_save_IFS
7471
7472
7473fi
7474
7475EGREP="$ac_cv_path_EGREP"
7476if test -z "$EGREP"; then
7477  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7478echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7479   { (exit 1); exit 1; }; }
7480fi
7481
7482else
7483  ac_cv_path_EGREP=$EGREP
7484fi
7485
7486
7487   fi
7488fi
7489{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7490echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7491 EGREP="$ac_cv_path_EGREP"
7492
7493
7494{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7495echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7496if test "${ac_cv_header_stdc+set}" = set; then
7497  echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499  cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h.  */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h.  */
7505#include <stdlib.h>
7506#include <stdarg.h>
7507#include <string.h>
7508#include <float.h>
7509
7510int
7511main ()
7512{
7513
7514  ;
7515  return 0;
7516}
7517_ACEOF
7518rm -f conftest.$ac_objext
7519if { (ac_try="$ac_compile"
7520case "(($ac_try" in
7521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522  *) ac_try_echo=$ac_try;;
7523esac
7524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525  (eval "$ac_compile") 2>conftest.er1
7526  ac_status=$?
7527  grep -v '^ *+' conftest.er1 >conftest.err
7528  rm -f conftest.er1
7529  cat conftest.err >&5
7530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531  (exit $ac_status); } &&
7532	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7533  { (case "(($ac_try" in
7534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535  *) ac_try_echo=$ac_try;;
7536esac
7537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538  (eval "$ac_try") 2>&5
7539  ac_status=$?
7540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541  (exit $ac_status); }; } &&
7542	 { ac_try='test -s conftest.$ac_objext'
7543  { (case "(($ac_try" in
7544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545  *) ac_try_echo=$ac_try;;
7546esac
7547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548  (eval "$ac_try") 2>&5
7549  ac_status=$?
7550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551  (exit $ac_status); }; }; then
7552  ac_cv_header_stdc=yes
7553else
7554  echo "$as_me: failed program was:" >&5
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557	ac_cv_header_stdc=no
7558fi
7559
7560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561
7562if test $ac_cv_header_stdc = yes; then
7563  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7564  cat >conftest.$ac_ext <<_ACEOF
7565/* confdefs.h.  */
7566_ACEOF
7567cat confdefs.h >>conftest.$ac_ext
7568cat >>conftest.$ac_ext <<_ACEOF
7569/* end confdefs.h.  */
7570#include <string.h>
7571
7572_ACEOF
7573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7574  $EGREP "memchr" >/dev/null 2>&1; then
7575  :
7576else
7577  ac_cv_header_stdc=no
7578fi
7579rm -f conftest*
7580
7581fi
7582
7583if test $ac_cv_header_stdc = yes; then
7584  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7585  cat >conftest.$ac_ext <<_ACEOF
7586/* confdefs.h.  */
7587_ACEOF
7588cat confdefs.h >>conftest.$ac_ext
7589cat >>conftest.$ac_ext <<_ACEOF
7590/* end confdefs.h.  */
7591#include <stdlib.h>
7592
7593_ACEOF
7594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7595  $EGREP "free" >/dev/null 2>&1; then
7596  :
7597else
7598  ac_cv_header_stdc=no
7599fi
7600rm -f conftest*
7601
7602fi
7603
7604if test $ac_cv_header_stdc = yes; then
7605  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7606  if test "$cross_compiling" = yes; then
7607  :
7608else
7609  cat >conftest.$ac_ext <<_ACEOF
7610/* confdefs.h.  */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h.  */
7615#include <ctype.h>
7616#include <stdlib.h>
7617#if ((' ' & 0x0FF) == 0x020)
7618# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7619# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7620#else
7621# define ISLOWER(c) \
7622		   (('a' <= (c) && (c) <= 'i') \
7623		     || ('j' <= (c) && (c) <= 'r') \
7624		     || ('s' <= (c) && (c) <= 'z'))
7625# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7626#endif
7627
7628#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7629int
7630main ()
7631{
7632  int i;
7633  for (i = 0; i < 256; i++)
7634    if (XOR (islower (i), ISLOWER (i))
7635	|| toupper (i) != TOUPPER (i))
7636      return 2;
7637  return 0;
7638}
7639_ACEOF
7640rm -f conftest$ac_exeext
7641if { (ac_try="$ac_link"
7642case "(($ac_try" in
7643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644  *) ac_try_echo=$ac_try;;
7645esac
7646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647  (eval "$ac_link") 2>&5
7648  ac_status=$?
7649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7651  { (case "(($ac_try" in
7652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653  *) ac_try_echo=$ac_try;;
7654esac
7655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656  (eval "$ac_try") 2>&5
7657  ac_status=$?
7658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659  (exit $ac_status); }; }; then
7660  :
7661else
7662  echo "$as_me: program exited with status $ac_status" >&5
7663echo "$as_me: failed program was:" >&5
7664sed 's/^/| /' conftest.$ac_ext >&5
7665
7666( exit $ac_status )
7667ac_cv_header_stdc=no
7668fi
7669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7670fi
7671
7672
7673fi
7674fi
7675{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7676echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7677if test $ac_cv_header_stdc = yes; then
7678
7679cat >>confdefs.h <<\_ACEOF
7680#define STDC_HEADERS 1
7681_ACEOF
7682
7683fi
7684
7685# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7696		  inttypes.h stdint.h unistd.h
7697do
7698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7699{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7702  echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704  cat >conftest.$ac_ext <<_ACEOF
7705/* confdefs.h.  */
7706_ACEOF
7707cat confdefs.h >>conftest.$ac_ext
7708cat >>conftest.$ac_ext <<_ACEOF
7709/* end confdefs.h.  */
7710$ac_includes_default
7711
7712#include <$ac_header>
7713_ACEOF
7714rm -f conftest.$ac_objext
7715if { (ac_try="$ac_compile"
7716case "(($ac_try" in
7717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718  *) ac_try_echo=$ac_try;;
7719esac
7720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721  (eval "$ac_compile") 2>conftest.er1
7722  ac_status=$?
7723  grep -v '^ *+' conftest.er1 >conftest.err
7724  rm -f conftest.er1
7725  cat conftest.err >&5
7726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727  (exit $ac_status); } &&
7728	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7729  { (case "(($ac_try" in
7730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731  *) ac_try_echo=$ac_try;;
7732esac
7733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734  (eval "$ac_try") 2>&5
7735  ac_status=$?
7736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737  (exit $ac_status); }; } &&
7738	 { ac_try='test -s conftest.$ac_objext'
7739  { (case "(($ac_try" in
7740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741  *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744  (eval "$ac_try") 2>&5
7745  ac_status=$?
7746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747  (exit $ac_status); }; }; then
7748  eval "$as_ac_Header=yes"
7749else
7750  echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753	eval "$as_ac_Header=no"
7754fi
7755
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757fi
7758ac_res=`eval echo '${'$as_ac_Header'}'`
7759	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7760echo "${ECHO_T}$ac_res" >&6; }
7761if test `eval echo '${'$as_ac_Header'}'` = yes; then
7762  cat >>confdefs.h <<_ACEOF
7763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7764_ACEOF
7765
7766fi
7767
7768done
7769
7770
7771
7772for ac_header in errno.h
7773do
7774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7776  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7779  echo $ECHO_N "(cached) $ECHO_C" >&6
7780fi
7781ac_res=`eval echo '${'$as_ac_Header'}'`
7782	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7783echo "${ECHO_T}$ac_res" >&6; }
7784else
7785  # Is the header compilable?
7786{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7788cat >conftest.$ac_ext <<_ACEOF
7789/* confdefs.h.  */
7790_ACEOF
7791cat confdefs.h >>conftest.$ac_ext
7792cat >>conftest.$ac_ext <<_ACEOF
7793/* end confdefs.h.  */
7794$ac_includes_default
7795#include <$ac_header>
7796_ACEOF
7797rm -f conftest.$ac_objext
7798if { (ac_try="$ac_compile"
7799case "(($ac_try" in
7800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801  *) ac_try_echo=$ac_try;;
7802esac
7803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804  (eval "$ac_compile") 2>conftest.er1
7805  ac_status=$?
7806  grep -v '^ *+' conftest.er1 >conftest.err
7807  rm -f conftest.er1
7808  cat conftest.err >&5
7809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810  (exit $ac_status); } &&
7811	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7812  { (case "(($ac_try" in
7813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814  *) ac_try_echo=$ac_try;;
7815esac
7816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817  (eval "$ac_try") 2>&5
7818  ac_status=$?
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); }; } &&
7821	 { ac_try='test -s conftest.$ac_objext'
7822  { (case "(($ac_try" in
7823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824  *) ac_try_echo=$ac_try;;
7825esac
7826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827  (eval "$ac_try") 2>&5
7828  ac_status=$?
7829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830  (exit $ac_status); }; }; then
7831  ac_header_compiler=yes
7832else
7833  echo "$as_me: failed program was:" >&5
7834sed 's/^/| /' conftest.$ac_ext >&5
7835
7836	ac_header_compiler=no
7837fi
7838
7839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841echo "${ECHO_T}$ac_header_compiler" >&6; }
7842
7843# Is the header present?
7844{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7845echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7846cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h.  */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h.  */
7852#include <$ac_header>
7853_ACEOF
7854if { (ac_try="$ac_cpp conftest.$ac_ext"
7855case "(($ac_try" in
7856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857  *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7861  ac_status=$?
7862  grep -v '^ *+' conftest.er1 >conftest.err
7863  rm -f conftest.er1
7864  cat conftest.err >&5
7865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866  (exit $ac_status); } >/dev/null; then
7867  if test -s conftest.err; then
7868    ac_cpp_err=$ac_c_preproc_warn_flag
7869    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7870  else
7871    ac_cpp_err=
7872  fi
7873else
7874  ac_cpp_err=yes
7875fi
7876if test -z "$ac_cpp_err"; then
7877  ac_header_preproc=yes
7878else
7879  echo "$as_me: failed program was:" >&5
7880sed 's/^/| /' conftest.$ac_ext >&5
7881
7882  ac_header_preproc=no
7883fi
7884
7885rm -f conftest.err conftest.$ac_ext
7886{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7887echo "${ECHO_T}$ac_header_preproc" >&6; }
7888
7889# So?  What about this header?
7890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7891  yes:no: )
7892    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7894    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7896    ac_header_preproc=yes
7897    ;;
7898  no:yes:* )
7899    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7902echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7903    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7904echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7905    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7906echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7907    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7909    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7911    ( cat <<\_ASBOX
7912## ------------------------------------ ##
7913## Report this to http://llvm.org/bugs/ ##
7914## ------------------------------------ ##
7915_ASBOX
7916     ) | sed "s/^/$as_me: WARNING:     /" >&2
7917    ;;
7918esac
7919{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7922  echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924  eval "$as_ac_Header=\$ac_header_preproc"
7925fi
7926ac_res=`eval echo '${'$as_ac_Header'}'`
7927	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7928echo "${ECHO_T}$ac_res" >&6; }
7929
7930fi
7931if test `eval echo '${'$as_ac_Header'}'` = yes; then
7932  cat >>confdefs.h <<_ACEOF
7933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7934_ACEOF
7935
7936fi
7937
7938done
7939
7940
7941case "$llvm_cv_os_type" in
7942  Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
7943  Darwin) llvm_shlib_ext=.dylib ;;
7944  *) llvm_shlib_ext=.so ;;
7945esac
7946
7947
7948cat >>confdefs.h <<_ACEOF
7949#define LTDL_SHLIB_EXT "$llvm_shlib_ext"
7950_ACEOF
7951
7952
7953{ echo "$as_me:$LINENO: checking tool compatibility" >&5
7954echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
7955
7956ICC=no
7957IXX=no
7958case $CC in
7959  icc*|icpc*)
7960    ICC=yes
7961    IXX=yes
7962    ;;
7963   *)
7964    ;;
7965esac
7966
7967if test "$GCC" != "yes" && test "$ICC" != "yes"
7968then
7969  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
7970echo "$as_me: error: gcc|icc required but not found" >&2;}
7971   { (exit 1); exit 1; }; }
7972fi
7973
7974if test "$GXX" != "yes" && test "$IXX" != "yes"
7975then
7976  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
7977echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
7978   { (exit 1); exit 1; }; }
7979fi
7980
7981if test "$GCC" = "yes"
7982then
7983  cat >conftest.$ac_ext <<_ACEOF
7984
7985  /* confdefs.h.  */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h.  */
7990
7991    #if !defined(__GNUC__) || __GNUC__ < 3
7992    #error Unsupported GCC version
7993    #endif
7994
7995
7996_ACEOF
7997rm -f conftest.$ac_objext
7998if { (ac_try="$ac_compile"
7999case "(($ac_try" in
8000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001  *) ac_try_echo=$ac_try;;
8002esac
8003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004  (eval "$ac_compile") 2>conftest.er1
8005  ac_status=$?
8006  grep -v '^ *+' conftest.er1 >conftest.err
8007  rm -f conftest.er1
8008  cat conftest.err >&5
8009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010  (exit $ac_status); } &&
8011	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8012  { (case "(($ac_try" in
8013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014  *) ac_try_echo=$ac_try;;
8015esac
8016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017  (eval "$ac_try") 2>&5
8018  ac_status=$?
8019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020  (exit $ac_status); }; } &&
8021	 { ac_try='test -s conftest.$ac_objext'
8022  { (case "(($ac_try" in
8023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024  *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027  (eval "$ac_try") 2>&5
8028  ac_status=$?
8029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030  (exit $ac_status); }; }; then
8031  :
8032else
8033  echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8037echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8038   { (exit 1); exit 1; }; }
8039fi
8040
8041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042fi
8043
8044if test -z "$llvm_cv_gnu_make_command"
8045then
8046  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8047echo "$as_me: error: GNU Make required but not found" >&2;}
8048   { (exit 1); exit 1; }; }
8049fi
8050
8051{ echo "$as_me:$LINENO: result: ok" >&5
8052echo "${ECHO_T}ok" >&6; }
8053
8054{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
8055echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8056NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8057
8058NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8059
8060COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8061
8062
8063NO_UNINITIALIZED=
8064NO_MAYBE_UNINITIALIZED=
8065if test "$GXX" = "yes"
8066then
8067  NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8068
8069        if test -z "$NO_MAYBE_UNINITIALIZED"
8070  then
8071    NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8072
8073  fi
8074fi
8075
8076no_comment=
8077llvm_cv_old_cxxflags="$CXXFLAGS"
8078CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8079cat >conftest.$ac_ext <<_ACEOF
8080
8081  /* confdefs.h.  */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h.  */
8086// Comment \o\
8087// Another comment
8088int main() { return 0; }
8089
8090
8091_ACEOF
8092rm -f conftest.$ac_objext
8093if { (ac_try="$ac_compile"
8094case "(($ac_try" in
8095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096  *) ac_try_echo=$ac_try;;
8097esac
8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099  (eval "$ac_compile") 2>conftest.er1
8100  ac_status=$?
8101  grep -v '^ *+' conftest.er1 >conftest.err
8102  rm -f conftest.er1
8103  cat conftest.err >&5
8104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105  (exit $ac_status); } &&
8106	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8107  { (case "(($ac_try" in
8108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109  *) ac_try_echo=$ac_try;;
8110esac
8111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112  (eval "$ac_try") 2>&5
8113  ac_status=$?
8114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115  (exit $ac_status); }; } &&
8116	 { ac_try='test -s conftest.$ac_objext'
8117  { (case "(($ac_try" in
8118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119  *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122  (eval "$ac_try") 2>&5
8123  ac_status=$?
8124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125  (exit $ac_status); }; }; then
8126
8127  no_comment=-Wno-comment
8128
8129else
8130  echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133
8134fi
8135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137NO_COMMENT=$no_comment
8138
8139CXXFLAGS="$llvm_cv_old_cxxflags"
8140
8141{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8142echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8143
8144
8145# Check whether --with-python was given.
8146if test "${with_python+set}" = set; then
8147  withval=$with_python; PYTHON="$withval"
8148fi
8149
8150
8151if test -n "$PYTHON" && test -x "$PYTHON" ; then
8152  { echo "$as_me:$LINENO: checking for python" >&5
8153echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8154  { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8155echo "${ECHO_T}user defined: $with_python" >&6; }
8156else
8157  if test -n "$PYTHON" ; then
8158    { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8159echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8160  fi
8161
8162  # Extract the first word of "python python2 python27", so it can be a program name with args.
8163set dummy python python2 python27; ac_word=$2
8164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166if test "${ac_cv_path_PYTHON+set}" = set; then
8167  echo $ECHO_N "(cached) $ECHO_C" >&6
8168else
8169  case $PYTHON in
8170  [\\/]* | ?:[\\/]*)
8171  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8172  ;;
8173  *)
8174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175for as_dir in $PATH
8176do
8177  IFS=$as_save_IFS
8178  test -z "$as_dir" && as_dir=.
8179  for ac_exec_ext in '' $ac_executable_extensions; do
8180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8181    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8183    break 2
8184  fi
8185done
8186done
8187IFS=$as_save_IFS
8188
8189  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8190echo "${ECHO_T}not found" >&6; }
8191                { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8192echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8193   { (exit 1); exit 1; }; }"
8194  ;;
8195esac
8196fi
8197PYTHON=$ac_cv_path_PYTHON
8198if test -n "$PYTHON"; then
8199  { echo "$as_me:$LINENO: result: $PYTHON" >&5
8200echo "${ECHO_T}$PYTHON" >&6; }
8201else
8202  { echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6; }
8204fi
8205
8206
8207fi
8208
8209{ echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8210echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8211ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8212ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8213ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8214ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8215if test "$ac_python_version_major" -gt "2" || \
8216   (test "$ac_python_version_major" -eq "2" && \
8217    test "$ac_python_version_minor" -ge "7") ; then
8218  { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8219echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8220else
8221  { echo "$as_me:$LINENO: result: not found" >&5
8222echo "${ECHO_T}not found" >&6; }
8223  { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8224See \`config.log' for more details." >&5
8225echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8226See \`config.log' for more details." >&2;}
8227   { (exit 1); exit 1; }; }
8228fi
8229
8230
8231
8232{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
8233echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8234if test "${ac_cv_lib_m_sin+set}" = set; then
8235  echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237  ac_check_lib_save_LIBS=$LIBS
8238LIBS="-lm  $LIBS"
8239cat >conftest.$ac_ext <<_ACEOF
8240/* confdefs.h.  */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h.  */
8245
8246/* Override any GCC internal prototype to avoid an error.
8247   Use char because int might match the return type of a GCC
8248   builtin and then its argument prototype would still apply.  */
8249#ifdef __cplusplus
8250extern "C"
8251#endif
8252char sin ();
8253int
8254main ()
8255{
8256return sin ();
8257  ;
8258  return 0;
8259}
8260_ACEOF
8261rm -f conftest.$ac_objext conftest$ac_exeext
8262if { (ac_try="$ac_link"
8263case "(($ac_try" in
8264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265  *) ac_try_echo=$ac_try;;
8266esac
8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268  (eval "$ac_link") 2>conftest.er1
8269  ac_status=$?
8270  grep -v '^ *+' conftest.er1 >conftest.err
8271  rm -f conftest.er1
8272  cat conftest.err >&5
8273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274  (exit $ac_status); } &&
8275	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8276  { (case "(($ac_try" in
8277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278  *) ac_try_echo=$ac_try;;
8279esac
8280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281  (eval "$ac_try") 2>&5
8282  ac_status=$?
8283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284  (exit $ac_status); }; } &&
8285	 { ac_try='test -s conftest$ac_exeext'
8286  { (case "(($ac_try" in
8287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288  *) ac_try_echo=$ac_try;;
8289esac
8290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291  (eval "$ac_try") 2>&5
8292  ac_status=$?
8293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294  (exit $ac_status); }; }; then
8295  ac_cv_lib_m_sin=yes
8296else
8297  echo "$as_me: failed program was:" >&5
8298sed 's/^/| /' conftest.$ac_ext >&5
8299
8300	ac_cv_lib_m_sin=no
8301fi
8302
8303rm -f core conftest.err conftest.$ac_objext \
8304      conftest$ac_exeext conftest.$ac_ext
8305LIBS=$ac_check_lib_save_LIBS
8306fi
8307{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8308echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8309if test $ac_cv_lib_m_sin = yes; then
8310  cat >>confdefs.h <<_ACEOF
8311#define HAVE_LIBM 1
8312_ACEOF
8313
8314  LIBS="-lm $LIBS"
8315
8316fi
8317
8318if test "$llvm_cv_os_type" = "MingW" ; then
8319
8320{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8321echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8322if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8323  echo $ECHO_N "(cached) $ECHO_C" >&6
8324else
8325  ac_check_lib_save_LIBS=$LIBS
8326LIBS="-limagehlp  $LIBS"
8327cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h.  */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h.  */
8333
8334
8335int
8336main ()
8337{
8338return main ();
8339  ;
8340  return 0;
8341}
8342_ACEOF
8343rm -f conftest.$ac_objext conftest$ac_exeext
8344if { (ac_try="$ac_link"
8345case "(($ac_try" in
8346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347  *) ac_try_echo=$ac_try;;
8348esac
8349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350  (eval "$ac_link") 2>conftest.er1
8351  ac_status=$?
8352  grep -v '^ *+' conftest.er1 >conftest.err
8353  rm -f conftest.er1
8354  cat conftest.err >&5
8355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356  (exit $ac_status); } &&
8357	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358  { (case "(($ac_try" in
8359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360  *) ac_try_echo=$ac_try;;
8361esac
8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363  (eval "$ac_try") 2>&5
8364  ac_status=$?
8365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366  (exit $ac_status); }; } &&
8367	 { ac_try='test -s conftest$ac_exeext'
8368  { (case "(($ac_try" in
8369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370  *) ac_try_echo=$ac_try;;
8371esac
8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373  (eval "$ac_try") 2>&5
8374  ac_status=$?
8375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376  (exit $ac_status); }; }; then
8377  ac_cv_lib_imagehlp_main=yes
8378else
8379  echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382	ac_cv_lib_imagehlp_main=no
8383fi
8384
8385rm -f core conftest.err conftest.$ac_objext \
8386      conftest$ac_exeext conftest.$ac_ext
8387LIBS=$ac_check_lib_save_LIBS
8388fi
8389{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8390echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8391if test $ac_cv_lib_imagehlp_main = yes; then
8392  cat >>confdefs.h <<_ACEOF
8393#define HAVE_LIBIMAGEHLP 1
8394_ACEOF
8395
8396  LIBS="-limagehlp $LIBS"
8397
8398fi
8399
8400
8401{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8402echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8403if test "${ac_cv_lib_psapi_main+set}" = set; then
8404  echo $ECHO_N "(cached) $ECHO_C" >&6
8405else
8406  ac_check_lib_save_LIBS=$LIBS
8407LIBS="-lpsapi  $LIBS"
8408cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h.  */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h.  */
8414
8415
8416int
8417main ()
8418{
8419return main ();
8420  ;
8421  return 0;
8422}
8423_ACEOF
8424rm -f conftest.$ac_objext conftest$ac_exeext
8425if { (ac_try="$ac_link"
8426case "(($ac_try" in
8427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428  *) ac_try_echo=$ac_try;;
8429esac
8430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431  (eval "$ac_link") 2>conftest.er1
8432  ac_status=$?
8433  grep -v '^ *+' conftest.er1 >conftest.err
8434  rm -f conftest.er1
8435  cat conftest.err >&5
8436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437  (exit $ac_status); } &&
8438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439  { (case "(($ac_try" in
8440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441  *) ac_try_echo=$ac_try;;
8442esac
8443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444  (eval "$ac_try") 2>&5
8445  ac_status=$?
8446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447  (exit $ac_status); }; } &&
8448	 { ac_try='test -s conftest$ac_exeext'
8449  { (case "(($ac_try" in
8450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451  *) ac_try_echo=$ac_try;;
8452esac
8453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454  (eval "$ac_try") 2>&5
8455  ac_status=$?
8456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457  (exit $ac_status); }; }; then
8458  ac_cv_lib_psapi_main=yes
8459else
8460  echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463	ac_cv_lib_psapi_main=no
8464fi
8465
8466rm -f core conftest.err conftest.$ac_objext \
8467      conftest$ac_exeext conftest.$ac_ext
8468LIBS=$ac_check_lib_save_LIBS
8469fi
8470{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8471echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8472if test $ac_cv_lib_psapi_main = yes; then
8473  cat >>confdefs.h <<_ACEOF
8474#define HAVE_LIBPSAPI 1
8475_ACEOF
8476
8477  LIBS="-lpsapi $LIBS"
8478
8479fi
8480
8481
8482{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8483echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8484if test "${ac_cv_lib_shell32_main+set}" = set; then
8485  echo $ECHO_N "(cached) $ECHO_C" >&6
8486else
8487  ac_check_lib_save_LIBS=$LIBS
8488LIBS="-lshell32  $LIBS"
8489cat >conftest.$ac_ext <<_ACEOF
8490/* confdefs.h.  */
8491_ACEOF
8492cat confdefs.h >>conftest.$ac_ext
8493cat >>conftest.$ac_ext <<_ACEOF
8494/* end confdefs.h.  */
8495
8496
8497int
8498main ()
8499{
8500return main ();
8501  ;
8502  return 0;
8503}
8504_ACEOF
8505rm -f conftest.$ac_objext conftest$ac_exeext
8506if { (ac_try="$ac_link"
8507case "(($ac_try" in
8508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509  *) ac_try_echo=$ac_try;;
8510esac
8511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512  (eval "$ac_link") 2>conftest.er1
8513  ac_status=$?
8514  grep -v '^ *+' conftest.er1 >conftest.err
8515  rm -f conftest.er1
8516  cat conftest.err >&5
8517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518  (exit $ac_status); } &&
8519	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8520  { (case "(($ac_try" in
8521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522  *) ac_try_echo=$ac_try;;
8523esac
8524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525  (eval "$ac_try") 2>&5
8526  ac_status=$?
8527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528  (exit $ac_status); }; } &&
8529	 { ac_try='test -s conftest$ac_exeext'
8530  { (case "(($ac_try" in
8531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532  *) ac_try_echo=$ac_try;;
8533esac
8534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535  (eval "$ac_try") 2>&5
8536  ac_status=$?
8537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538  (exit $ac_status); }; }; then
8539  ac_cv_lib_shell32_main=yes
8540else
8541  echo "$as_me: failed program was:" >&5
8542sed 's/^/| /' conftest.$ac_ext >&5
8543
8544	ac_cv_lib_shell32_main=no
8545fi
8546
8547rm -f core conftest.err conftest.$ac_objext \
8548      conftest$ac_exeext conftest.$ac_ext
8549LIBS=$ac_check_lib_save_LIBS
8550fi
8551{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8552echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8553if test $ac_cv_lib_shell32_main = yes; then
8554  cat >>confdefs.h <<_ACEOF
8555#define HAVE_LIBSHELL32 1
8556_ACEOF
8557
8558  LIBS="-lshell32 $LIBS"
8559
8560fi
8561
8562fi
8563
8564{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8565echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8566if test "${ac_cv_search_dlopen+set}" = set; then
8567  echo $ECHO_N "(cached) $ECHO_C" >&6
8568else
8569  ac_func_search_save_LIBS=$LIBS
8570cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h.  */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h.  */
8576
8577/* Override any GCC internal prototype to avoid an error.
8578   Use char because int might match the return type of a GCC
8579   builtin and then its argument prototype would still apply.  */
8580#ifdef __cplusplus
8581extern "C"
8582#endif
8583char dlopen ();
8584int
8585main ()
8586{
8587return dlopen ();
8588  ;
8589  return 0;
8590}
8591_ACEOF
8592for ac_lib in '' dl; do
8593  if test -z "$ac_lib"; then
8594    ac_res="none required"
8595  else
8596    ac_res=-l$ac_lib
8597    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8598  fi
8599  rm -f conftest.$ac_objext conftest$ac_exeext
8600if { (ac_try="$ac_link"
8601case "(($ac_try" in
8602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603  *) ac_try_echo=$ac_try;;
8604esac
8605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606  (eval "$ac_link") 2>conftest.er1
8607  ac_status=$?
8608  grep -v '^ *+' conftest.er1 >conftest.err
8609  rm -f conftest.er1
8610  cat conftest.err >&5
8611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612  (exit $ac_status); } &&
8613	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614  { (case "(($ac_try" in
8615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616  *) ac_try_echo=$ac_try;;
8617esac
8618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619  (eval "$ac_try") 2>&5
8620  ac_status=$?
8621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622  (exit $ac_status); }; } &&
8623	 { ac_try='test -s conftest$ac_exeext'
8624  { (case "(($ac_try" in
8625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626  *) ac_try_echo=$ac_try;;
8627esac
8628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629  (eval "$ac_try") 2>&5
8630  ac_status=$?
8631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632  (exit $ac_status); }; }; then
8633  ac_cv_search_dlopen=$ac_res
8634else
8635  echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638
8639fi
8640
8641rm -f core conftest.err conftest.$ac_objext \
8642      conftest$ac_exeext
8643  if test "${ac_cv_search_dlopen+set}" = set; then
8644  break
8645fi
8646done
8647if test "${ac_cv_search_dlopen+set}" = set; then
8648  :
8649else
8650  ac_cv_search_dlopen=no
8651fi
8652rm conftest.$ac_ext
8653LIBS=$ac_func_search_save_LIBS
8654fi
8655{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8656echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8657ac_res=$ac_cv_search_dlopen
8658if test "$ac_res" != no; then
8659  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8660
8661
8662cat >>confdefs.h <<\_ACEOF
8663#define HAVE_DLOPEN 1
8664_ACEOF
8665
8666HAVE_DLOPEN='1'
8667
8668
8669else
8670  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8671echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8672fi
8673
8674
8675{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8676echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8677if test "${ac_cv_search_clock_gettime+set}" = set; then
8678  echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680  ac_func_search_save_LIBS=$LIBS
8681cat >conftest.$ac_ext <<_ACEOF
8682/* confdefs.h.  */
8683_ACEOF
8684cat confdefs.h >>conftest.$ac_ext
8685cat >>conftest.$ac_ext <<_ACEOF
8686/* end confdefs.h.  */
8687
8688/* Override any GCC internal prototype to avoid an error.
8689   Use char because int might match the return type of a GCC
8690   builtin and then its argument prototype would still apply.  */
8691#ifdef __cplusplus
8692extern "C"
8693#endif
8694char clock_gettime ();
8695int
8696main ()
8697{
8698return clock_gettime ();
8699  ;
8700  return 0;
8701}
8702_ACEOF
8703for ac_lib in '' rt; do
8704  if test -z "$ac_lib"; then
8705    ac_res="none required"
8706  else
8707    ac_res=-l$ac_lib
8708    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8709  fi
8710  rm -f conftest.$ac_objext conftest$ac_exeext
8711if { (ac_try="$ac_link"
8712case "(($ac_try" in
8713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714  *) ac_try_echo=$ac_try;;
8715esac
8716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717  (eval "$ac_link") 2>conftest.er1
8718  ac_status=$?
8719  grep -v '^ *+' conftest.er1 >conftest.err
8720  rm -f conftest.er1
8721  cat conftest.err >&5
8722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723  (exit $ac_status); } &&
8724	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8725  { (case "(($ac_try" in
8726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727  *) ac_try_echo=$ac_try;;
8728esac
8729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730  (eval "$ac_try") 2>&5
8731  ac_status=$?
8732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733  (exit $ac_status); }; } &&
8734	 { ac_try='test -s conftest$ac_exeext'
8735  { (case "(($ac_try" in
8736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737  *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740  (eval "$ac_try") 2>&5
8741  ac_status=$?
8742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743  (exit $ac_status); }; }; then
8744  ac_cv_search_clock_gettime=$ac_res
8745else
8746  echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
8749
8750fi
8751
8752rm -f core conftest.err conftest.$ac_objext \
8753      conftest$ac_exeext
8754  if test "${ac_cv_search_clock_gettime+set}" = set; then
8755  break
8756fi
8757done
8758if test "${ac_cv_search_clock_gettime+set}" = set; then
8759  :
8760else
8761  ac_cv_search_clock_gettime=no
8762fi
8763rm conftest.$ac_ext
8764LIBS=$ac_func_search_save_LIBS
8765fi
8766{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8767echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8768ac_res=$ac_cv_search_clock_gettime
8769if test "$ac_res" != no; then
8770  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8771
8772fi
8773
8774
8775if test "$llvm_cv_enable_terminfo" = "yes" ; then
8776    { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8777echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8778if test "${ac_cv_search_setupterm+set}" = set; then
8779  echo $ECHO_N "(cached) $ECHO_C" >&6
8780else
8781  ac_func_search_save_LIBS=$LIBS
8782cat >conftest.$ac_ext <<_ACEOF
8783/* confdefs.h.  */
8784_ACEOF
8785cat confdefs.h >>conftest.$ac_ext
8786cat >>conftest.$ac_ext <<_ACEOF
8787/* end confdefs.h.  */
8788
8789/* Override any GCC internal prototype to avoid an error.
8790   Use char because int might match the return type of a GCC
8791   builtin and then its argument prototype would still apply.  */
8792#ifdef __cplusplus
8793extern "C"
8794#endif
8795char setupterm ();
8796int
8797main ()
8798{
8799return setupterm ();
8800  ;
8801  return 0;
8802}
8803_ACEOF
8804for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8805  if test -z "$ac_lib"; then
8806    ac_res="none required"
8807  else
8808    ac_res=-l$ac_lib
8809    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8810  fi
8811  rm -f conftest.$ac_objext conftest$ac_exeext
8812if { (ac_try="$ac_link"
8813case "(($ac_try" in
8814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815  *) ac_try_echo=$ac_try;;
8816esac
8817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818  (eval "$ac_link") 2>conftest.er1
8819  ac_status=$?
8820  grep -v '^ *+' conftest.er1 >conftest.err
8821  rm -f conftest.er1
8822  cat conftest.err >&5
8823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824  (exit $ac_status); } &&
8825	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8826  { (case "(($ac_try" in
8827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828  *) ac_try_echo=$ac_try;;
8829esac
8830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831  (eval "$ac_try") 2>&5
8832  ac_status=$?
8833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834  (exit $ac_status); }; } &&
8835	 { ac_try='test -s conftest$ac_exeext'
8836  { (case "(($ac_try" in
8837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838  *) ac_try_echo=$ac_try;;
8839esac
8840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841  (eval "$ac_try") 2>&5
8842  ac_status=$?
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); }; }; then
8845  ac_cv_search_setupterm=$ac_res
8846else
8847  echo "$as_me: failed program was:" >&5
8848sed 's/^/| /' conftest.$ac_ext >&5
8849
8850
8851fi
8852
8853rm -f core conftest.err conftest.$ac_objext \
8854      conftest$ac_exeext
8855  if test "${ac_cv_search_setupterm+set}" = set; then
8856  break
8857fi
8858done
8859if test "${ac_cv_search_setupterm+set}" = set; then
8860  :
8861else
8862  ac_cv_search_setupterm=no
8863fi
8864rm conftest.$ac_ext
8865LIBS=$ac_func_search_save_LIBS
8866fi
8867{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8868echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8869ac_res=$ac_cv_search_setupterm
8870if test "$ac_res" != no; then
8871  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8872
8873
8874cat >>confdefs.h <<\_ACEOF
8875#define HAVE_TERMINFO 1
8876_ACEOF
8877
8878HAVE_TERMINFO='1'
8879
8880
8881fi
8882
8883fi
8884
8885if test "$llvm_cv_enable_libedit" = "yes" ; then
8886  { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8887echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8888if test "${ac_cv_search_el_init+set}" = set; then
8889  echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891  ac_func_search_save_LIBS=$LIBS
8892cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h.  */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h.  */
8898
8899/* Override any GCC internal prototype to avoid an error.
8900   Use char because int might match the return type of a GCC
8901   builtin and then its argument prototype would still apply.  */
8902#ifdef __cplusplus
8903extern "C"
8904#endif
8905char el_init ();
8906int
8907main ()
8908{
8909return el_init ();
8910  ;
8911  return 0;
8912}
8913_ACEOF
8914for ac_lib in '' edit; do
8915  if test -z "$ac_lib"; then
8916    ac_res="none required"
8917  else
8918    ac_res=-l$ac_lib
8919    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8920  fi
8921  rm -f conftest.$ac_objext conftest$ac_exeext
8922if { (ac_try="$ac_link"
8923case "(($ac_try" in
8924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925  *) ac_try_echo=$ac_try;;
8926esac
8927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928  (eval "$ac_link") 2>conftest.er1
8929  ac_status=$?
8930  grep -v '^ *+' conftest.er1 >conftest.err
8931  rm -f conftest.er1
8932  cat conftest.err >&5
8933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); } &&
8935	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8936  { (case "(($ac_try" in
8937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938  *) ac_try_echo=$ac_try;;
8939esac
8940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941  (eval "$ac_try") 2>&5
8942  ac_status=$?
8943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944  (exit $ac_status); }; } &&
8945	 { ac_try='test -s conftest$ac_exeext'
8946  { (case "(($ac_try" in
8947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948  *) ac_try_echo=$ac_try;;
8949esac
8950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951  (eval "$ac_try") 2>&5
8952  ac_status=$?
8953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954  (exit $ac_status); }; }; then
8955  ac_cv_search_el_init=$ac_res
8956else
8957  echo "$as_me: failed program was:" >&5
8958sed 's/^/| /' conftest.$ac_ext >&5
8959
8960
8961fi
8962
8963rm -f core conftest.err conftest.$ac_objext \
8964      conftest$ac_exeext
8965  if test "${ac_cv_search_el_init+set}" = set; then
8966  break
8967fi
8968done
8969if test "${ac_cv_search_el_init+set}" = set; then
8970  :
8971else
8972  ac_cv_search_el_init=no
8973fi
8974rm conftest.$ac_ext
8975LIBS=$ac_func_search_save_LIBS
8976fi
8977{ echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
8978echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
8979ac_res=$ac_cv_search_el_init
8980if test "$ac_res" != no; then
8981  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8982
8983cat >>confdefs.h <<\_ACEOF
8984#define HAVE_LIBEDIT 1
8985_ACEOF
8986
8987fi
8988
8989fi
8990
8991if test "$llvm_cv_enable_libffi" = "yes" ; then
8992  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8993echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8994if test "${ac_cv_search_ffi_call+set}" = set; then
8995  echo $ECHO_N "(cached) $ECHO_C" >&6
8996else
8997  ac_func_search_save_LIBS=$LIBS
8998cat >conftest.$ac_ext <<_ACEOF
8999/* confdefs.h.  */
9000_ACEOF
9001cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF
9003/* end confdefs.h.  */
9004
9005/* Override any GCC internal prototype to avoid an error.
9006   Use char because int might match the return type of a GCC
9007   builtin and then its argument prototype would still apply.  */
9008#ifdef __cplusplus
9009extern "C"
9010#endif
9011char ffi_call ();
9012int
9013main ()
9014{
9015return ffi_call ();
9016  ;
9017  return 0;
9018}
9019_ACEOF
9020for ac_lib in '' ffi; do
9021  if test -z "$ac_lib"; then
9022    ac_res="none required"
9023  else
9024    ac_res=-l$ac_lib
9025    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9026  fi
9027  rm -f conftest.$ac_objext conftest$ac_exeext
9028if { (ac_try="$ac_link"
9029case "(($ac_try" in
9030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031  *) ac_try_echo=$ac_try;;
9032esac
9033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034  (eval "$ac_link") 2>conftest.er1
9035  ac_status=$?
9036  grep -v '^ *+' conftest.er1 >conftest.err
9037  rm -f conftest.er1
9038  cat conftest.err >&5
9039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); } &&
9041	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042  { (case "(($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_try") 2>&5
9048  ac_status=$?
9049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050  (exit $ac_status); }; } &&
9051	 { ac_try='test -s conftest$ac_exeext'
9052  { (case "(($ac_try" in
9053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054  *) ac_try_echo=$ac_try;;
9055esac
9056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057  (eval "$ac_try") 2>&5
9058  ac_status=$?
9059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060  (exit $ac_status); }; }; then
9061  ac_cv_search_ffi_call=$ac_res
9062else
9063  echo "$as_me: failed program was:" >&5
9064sed 's/^/| /' conftest.$ac_ext >&5
9065
9066
9067fi
9068
9069rm -f core conftest.err conftest.$ac_objext \
9070      conftest$ac_exeext
9071  if test "${ac_cv_search_ffi_call+set}" = set; then
9072  break
9073fi
9074done
9075if test "${ac_cv_search_ffi_call+set}" = set; then
9076  :
9077else
9078  ac_cv_search_ffi_call=no
9079fi
9080rm conftest.$ac_ext
9081LIBS=$ac_func_search_save_LIBS
9082fi
9083{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9084echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9085ac_res=$ac_cv_search_ffi_call
9086if test "$ac_res" != no; then
9087  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9088
9089cat >>confdefs.h <<\_ACEOF
9090#define HAVE_FFI_CALL 1
9091_ACEOF
9092
9093else
9094  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9095echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9096   { (exit 1); exit 1; }; }
9097fi
9098
9099fi
9100
9101{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9102echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9103if test "${ac_cv_search_mallinfo+set}" = set; then
9104  echo $ECHO_N "(cached) $ECHO_C" >&6
9105else
9106  ac_func_search_save_LIBS=$LIBS
9107cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h.  */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h.  */
9113
9114/* Override any GCC internal prototype to avoid an error.
9115   Use char because int might match the return type of a GCC
9116   builtin and then its argument prototype would still apply.  */
9117#ifdef __cplusplus
9118extern "C"
9119#endif
9120char mallinfo ();
9121int
9122main ()
9123{
9124return mallinfo ();
9125  ;
9126  return 0;
9127}
9128_ACEOF
9129for ac_lib in '' malloc; do
9130  if test -z "$ac_lib"; then
9131    ac_res="none required"
9132  else
9133    ac_res=-l$ac_lib
9134    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9135  fi
9136  rm -f conftest.$ac_objext conftest$ac_exeext
9137if { (ac_try="$ac_link"
9138case "(($ac_try" in
9139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140  *) ac_try_echo=$ac_try;;
9141esac
9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143  (eval "$ac_link") 2>conftest.er1
9144  ac_status=$?
9145  grep -v '^ *+' conftest.er1 >conftest.err
9146  rm -f conftest.er1
9147  cat conftest.err >&5
9148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149  (exit $ac_status); } &&
9150	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9151  { (case "(($ac_try" in
9152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153  *) ac_try_echo=$ac_try;;
9154esac
9155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156  (eval "$ac_try") 2>&5
9157  ac_status=$?
9158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159  (exit $ac_status); }; } &&
9160	 { ac_try='test -s conftest$ac_exeext'
9161  { (case "(($ac_try" in
9162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163  *) ac_try_echo=$ac_try;;
9164esac
9165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166  (eval "$ac_try") 2>&5
9167  ac_status=$?
9168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169  (exit $ac_status); }; }; then
9170  ac_cv_search_mallinfo=$ac_res
9171else
9172  echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175
9176fi
9177
9178rm -f core conftest.err conftest.$ac_objext \
9179      conftest$ac_exeext
9180  if test "${ac_cv_search_mallinfo+set}" = set; then
9181  break
9182fi
9183done
9184if test "${ac_cv_search_mallinfo+set}" = set; then
9185  :
9186else
9187  ac_cv_search_mallinfo=no
9188fi
9189rm conftest.$ac_ext
9190LIBS=$ac_func_search_save_LIBS
9191fi
9192{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9193echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9194ac_res=$ac_cv_search_mallinfo
9195if test "$ac_res" != no; then
9196  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9197
9198cat >>confdefs.h <<\_ACEOF
9199#define HAVE_MALLINFO 1
9200_ACEOF
9201
9202fi
9203
9204
9205if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9206
9207{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9208echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9209if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9210  echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
9212  ac_check_lib_save_LIBS=$LIBS
9213LIBS="-lpthread  $LIBS"
9214cat >conftest.$ac_ext <<_ACEOF
9215/* confdefs.h.  */
9216_ACEOF
9217cat confdefs.h >>conftest.$ac_ext
9218cat >>conftest.$ac_ext <<_ACEOF
9219/* end confdefs.h.  */
9220
9221/* Override any GCC internal prototype to avoid an error.
9222   Use char because int might match the return type of a GCC
9223   builtin and then its argument prototype would still apply.  */
9224#ifdef __cplusplus
9225extern "C"
9226#endif
9227char pthread_mutex_init ();
9228int
9229main ()
9230{
9231return pthread_mutex_init ();
9232  ;
9233  return 0;
9234}
9235_ACEOF
9236rm -f conftest.$ac_objext conftest$ac_exeext
9237if { (ac_try="$ac_link"
9238case "(($ac_try" in
9239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240  *) ac_try_echo=$ac_try;;
9241esac
9242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243  (eval "$ac_link") 2>conftest.er1
9244  ac_status=$?
9245  grep -v '^ *+' conftest.er1 >conftest.err
9246  rm -f conftest.er1
9247  cat conftest.err >&5
9248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249  (exit $ac_status); } &&
9250	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9251  { (case "(($ac_try" in
9252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253  *) ac_try_echo=$ac_try;;
9254esac
9255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256  (eval "$ac_try") 2>&5
9257  ac_status=$?
9258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259  (exit $ac_status); }; } &&
9260	 { ac_try='test -s conftest$ac_exeext'
9261  { (case "(($ac_try" in
9262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263  *) ac_try_echo=$ac_try;;
9264esac
9265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266  (eval "$ac_try") 2>&5
9267  ac_status=$?
9268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269  (exit $ac_status); }; }; then
9270  ac_cv_lib_pthread_pthread_mutex_init=yes
9271else
9272  echo "$as_me: failed program was:" >&5
9273sed 's/^/| /' conftest.$ac_ext >&5
9274
9275	ac_cv_lib_pthread_pthread_mutex_init=no
9276fi
9277
9278rm -f core conftest.err conftest.$ac_objext \
9279      conftest$ac_exeext conftest.$ac_ext
9280LIBS=$ac_check_lib_save_LIBS
9281fi
9282{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9283echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9284if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9285  cat >>confdefs.h <<_ACEOF
9286#define HAVE_LIBPTHREAD 1
9287_ACEOF
9288
9289  LIBS="-lpthread $LIBS"
9290
9291fi
9292
9293  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9294echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9295if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9296  echo $ECHO_N "(cached) $ECHO_C" >&6
9297else
9298  ac_func_search_save_LIBS=$LIBS
9299cat >conftest.$ac_ext <<_ACEOF
9300/* confdefs.h.  */
9301_ACEOF
9302cat confdefs.h >>conftest.$ac_ext
9303cat >>conftest.$ac_ext <<_ACEOF
9304/* end confdefs.h.  */
9305
9306/* Override any GCC internal prototype to avoid an error.
9307   Use char because int might match the return type of a GCC
9308   builtin and then its argument prototype would still apply.  */
9309#ifdef __cplusplus
9310extern "C"
9311#endif
9312char pthread_mutex_lock ();
9313int
9314main ()
9315{
9316return pthread_mutex_lock ();
9317  ;
9318  return 0;
9319}
9320_ACEOF
9321for ac_lib in '' pthread; do
9322  if test -z "$ac_lib"; then
9323    ac_res="none required"
9324  else
9325    ac_res=-l$ac_lib
9326    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9327  fi
9328  rm -f conftest.$ac_objext conftest$ac_exeext
9329if { (ac_try="$ac_link"
9330case "(($ac_try" in
9331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332  *) ac_try_echo=$ac_try;;
9333esac
9334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335  (eval "$ac_link") 2>conftest.er1
9336  ac_status=$?
9337  grep -v '^ *+' conftest.er1 >conftest.err
9338  rm -f conftest.er1
9339  cat conftest.err >&5
9340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341  (exit $ac_status); } &&
9342	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9343  { (case "(($ac_try" in
9344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345  *) ac_try_echo=$ac_try;;
9346esac
9347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348  (eval "$ac_try") 2>&5
9349  ac_status=$?
9350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351  (exit $ac_status); }; } &&
9352	 { ac_try='test -s conftest$ac_exeext'
9353  { (case "(($ac_try" in
9354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355  *) ac_try_echo=$ac_try;;
9356esac
9357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358  (eval "$ac_try") 2>&5
9359  ac_status=$?
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); }; }; then
9362  ac_cv_search_pthread_mutex_lock=$ac_res
9363else
9364  echo "$as_me: failed program was:" >&5
9365sed 's/^/| /' conftest.$ac_ext >&5
9366
9367
9368fi
9369
9370rm -f core conftest.err conftest.$ac_objext \
9371      conftest$ac_exeext
9372  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9373  break
9374fi
9375done
9376if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9377  :
9378else
9379  ac_cv_search_pthread_mutex_lock=no
9380fi
9381rm conftest.$ac_ext
9382LIBS=$ac_func_search_save_LIBS
9383fi
9384{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9385echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9386ac_res=$ac_cv_search_pthread_mutex_lock
9387if test "$ac_res" != no; then
9388  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9389
9390cat >>confdefs.h <<\_ACEOF
9391#define HAVE_PTHREAD_MUTEX_LOCK 1
9392_ACEOF
9393
9394fi
9395
9396  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9397echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9398if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9399  echo $ECHO_N "(cached) $ECHO_C" >&6
9400else
9401  ac_func_search_save_LIBS=$LIBS
9402cat >conftest.$ac_ext <<_ACEOF
9403/* confdefs.h.  */
9404_ACEOF
9405cat confdefs.h >>conftest.$ac_ext
9406cat >>conftest.$ac_ext <<_ACEOF
9407/* end confdefs.h.  */
9408
9409/* Override any GCC internal prototype to avoid an error.
9410   Use char because int might match the return type of a GCC
9411   builtin and then its argument prototype would still apply.  */
9412#ifdef __cplusplus
9413extern "C"
9414#endif
9415char pthread_rwlock_init ();
9416int
9417main ()
9418{
9419return pthread_rwlock_init ();
9420  ;
9421  return 0;
9422}
9423_ACEOF
9424for ac_lib in '' pthread; do
9425  if test -z "$ac_lib"; then
9426    ac_res="none required"
9427  else
9428    ac_res=-l$ac_lib
9429    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9430  fi
9431  rm -f conftest.$ac_objext conftest$ac_exeext
9432if { (ac_try="$ac_link"
9433case "(($ac_try" in
9434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435  *) ac_try_echo=$ac_try;;
9436esac
9437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438  (eval "$ac_link") 2>conftest.er1
9439  ac_status=$?
9440  grep -v '^ *+' conftest.er1 >conftest.err
9441  rm -f conftest.er1
9442  cat conftest.err >&5
9443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444  (exit $ac_status); } &&
9445	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9446  { (case "(($ac_try" in
9447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448  *) ac_try_echo=$ac_try;;
9449esac
9450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451  (eval "$ac_try") 2>&5
9452  ac_status=$?
9453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454  (exit $ac_status); }; } &&
9455	 { ac_try='test -s conftest$ac_exeext'
9456  { (case "(($ac_try" in
9457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458  *) ac_try_echo=$ac_try;;
9459esac
9460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461  (eval "$ac_try") 2>&5
9462  ac_status=$?
9463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464  (exit $ac_status); }; }; then
9465  ac_cv_search_pthread_rwlock_init=$ac_res
9466else
9467  echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
9469
9470
9471fi
9472
9473rm -f core conftest.err conftest.$ac_objext \
9474      conftest$ac_exeext
9475  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9476  break
9477fi
9478done
9479if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9480  :
9481else
9482  ac_cv_search_pthread_rwlock_init=no
9483fi
9484rm conftest.$ac_ext
9485LIBS=$ac_func_search_save_LIBS
9486fi
9487{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9488echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9489ac_res=$ac_cv_search_pthread_rwlock_init
9490if test "$ac_res" != no; then
9491  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9492
9493cat >>confdefs.h <<\_ACEOF
9494#define HAVE_PTHREAD_RWLOCK_INIT 1
9495_ACEOF
9496
9497fi
9498
9499  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9500echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9501if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9502  echo $ECHO_N "(cached) $ECHO_C" >&6
9503else
9504  ac_func_search_save_LIBS=$LIBS
9505cat >conftest.$ac_ext <<_ACEOF
9506/* confdefs.h.  */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h.  */
9511
9512/* Override any GCC internal prototype to avoid an error.
9513   Use char because int might match the return type of a GCC
9514   builtin and then its argument prototype would still apply.  */
9515#ifdef __cplusplus
9516extern "C"
9517#endif
9518char pthread_getspecific ();
9519int
9520main ()
9521{
9522return pthread_getspecific ();
9523  ;
9524  return 0;
9525}
9526_ACEOF
9527for ac_lib in '' pthread; do
9528  if test -z "$ac_lib"; then
9529    ac_res="none required"
9530  else
9531    ac_res=-l$ac_lib
9532    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9533  fi
9534  rm -f conftest.$ac_objext conftest$ac_exeext
9535if { (ac_try="$ac_link"
9536case "(($ac_try" in
9537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538  *) ac_try_echo=$ac_try;;
9539esac
9540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541  (eval "$ac_link") 2>conftest.er1
9542  ac_status=$?
9543  grep -v '^ *+' conftest.er1 >conftest.err
9544  rm -f conftest.er1
9545  cat conftest.err >&5
9546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547  (exit $ac_status); } &&
9548	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9549  { (case "(($ac_try" in
9550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551  *) ac_try_echo=$ac_try;;
9552esac
9553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554  (eval "$ac_try") 2>&5
9555  ac_status=$?
9556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557  (exit $ac_status); }; } &&
9558	 { ac_try='test -s conftest$ac_exeext'
9559  { (case "(($ac_try" in
9560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561  *) ac_try_echo=$ac_try;;
9562esac
9563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564  (eval "$ac_try") 2>&5
9565  ac_status=$?
9566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567  (exit $ac_status); }; }; then
9568  ac_cv_search_pthread_getspecific=$ac_res
9569else
9570  echo "$as_me: failed program was:" >&5
9571sed 's/^/| /' conftest.$ac_ext >&5
9572
9573
9574fi
9575
9576rm -f core conftest.err conftest.$ac_objext \
9577      conftest$ac_exeext
9578  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9579  break
9580fi
9581done
9582if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9583  :
9584else
9585  ac_cv_search_pthread_getspecific=no
9586fi
9587rm conftest.$ac_ext
9588LIBS=$ac_func_search_save_LIBS
9589fi
9590{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9591echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9592ac_res=$ac_cv_search_pthread_getspecific
9593if test "$ac_res" != no; then
9594  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9595
9596cat >>confdefs.h <<\_ACEOF
9597#define HAVE_PTHREAD_GETSPECIFIC 1
9598_ACEOF
9599
9600fi
9601
9602fi
9603
9604if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9605
9606{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9607echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9608if test "${ac_cv_lib_z_compress2+set}" = set; then
9609  echo $ECHO_N "(cached) $ECHO_C" >&6
9610else
9611  ac_check_lib_save_LIBS=$LIBS
9612LIBS="-lz  $LIBS"
9613cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h.  */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h.  */
9619
9620/* Override any GCC internal prototype to avoid an error.
9621   Use char because int might match the return type of a GCC
9622   builtin and then its argument prototype would still apply.  */
9623#ifdef __cplusplus
9624extern "C"
9625#endif
9626char compress2 ();
9627int
9628main ()
9629{
9630return compress2 ();
9631  ;
9632  return 0;
9633}
9634_ACEOF
9635rm -f conftest.$ac_objext conftest$ac_exeext
9636if { (ac_try="$ac_link"
9637case "(($ac_try" in
9638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639  *) ac_try_echo=$ac_try;;
9640esac
9641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642  (eval "$ac_link") 2>conftest.er1
9643  ac_status=$?
9644  grep -v '^ *+' conftest.er1 >conftest.err
9645  rm -f conftest.er1
9646  cat conftest.err >&5
9647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648  (exit $ac_status); } &&
9649	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9650  { (case "(($ac_try" in
9651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652  *) ac_try_echo=$ac_try;;
9653esac
9654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655  (eval "$ac_try") 2>&5
9656  ac_status=$?
9657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658  (exit $ac_status); }; } &&
9659	 { ac_try='test -s conftest$ac_exeext'
9660  { (case "(($ac_try" in
9661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662  *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665  (eval "$ac_try") 2>&5
9666  ac_status=$?
9667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668  (exit $ac_status); }; }; then
9669  ac_cv_lib_z_compress2=yes
9670else
9671  echo "$as_me: failed program was:" >&5
9672sed 's/^/| /' conftest.$ac_ext >&5
9673
9674	ac_cv_lib_z_compress2=no
9675fi
9676
9677rm -f core conftest.err conftest.$ac_objext \
9678      conftest$ac_exeext conftest.$ac_ext
9679LIBS=$ac_check_lib_save_LIBS
9680fi
9681{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9682echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9683if test $ac_cv_lib_z_compress2 = yes; then
9684  cat >>confdefs.h <<_ACEOF
9685#define HAVE_LIBZ 1
9686_ACEOF
9687
9688  LIBS="-lz $LIBS"
9689
9690fi
9691
9692fi
9693
9694
9695# Check whether --with-oprofile was given.
9696if test "${with_oprofile+set}" = set; then
9697  withval=$with_oprofile;
9698      USE_OPROFILE=1
9699
9700      case "$withval" in
9701        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9702        no) llvm_cv_oppath=
9703            USE_OPROFILE=0
9704 ;;
9705        *) llvm_cv_oppath="${withval}/lib/oprofile"
9706           CPPFLAGS="-I${withval}/include";;
9707      esac
9708      case $llvm_cv_os_type in
9709        Linux)
9710          if test -n "$llvm_cv_oppath" ; then
9711            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9712                                                            { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9713echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9714if test "${ac_cv_search_bfd_init+set}" = set; then
9715  echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717  ac_func_search_save_LIBS=$LIBS
9718cat >conftest.$ac_ext <<_ACEOF
9719/* confdefs.h.  */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h.  */
9724
9725/* Override any GCC internal prototype to avoid an error.
9726   Use char because int might match the return type of a GCC
9727   builtin and then its argument prototype would still apply.  */
9728#ifdef __cplusplus
9729extern "C"
9730#endif
9731char bfd_init ();
9732int
9733main ()
9734{
9735return bfd_init ();
9736  ;
9737  return 0;
9738}
9739_ACEOF
9740for ac_lib in '' bfd; do
9741  if test -z "$ac_lib"; then
9742    ac_res="none required"
9743  else
9744    ac_res=-l$ac_lib
9745    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9746  fi
9747  rm -f conftest.$ac_objext conftest$ac_exeext
9748if { (ac_try="$ac_link"
9749case "(($ac_try" in
9750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751  *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754  (eval "$ac_link") 2>conftest.er1
9755  ac_status=$?
9756  grep -v '^ *+' conftest.er1 >conftest.err
9757  rm -f conftest.er1
9758  cat conftest.err >&5
9759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760  (exit $ac_status); } &&
9761	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9762  { (case "(($ac_try" in
9763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764  *) ac_try_echo=$ac_try;;
9765esac
9766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767  (eval "$ac_try") 2>&5
9768  ac_status=$?
9769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770  (exit $ac_status); }; } &&
9771	 { ac_try='test -s conftest$ac_exeext'
9772  { (case "(($ac_try" in
9773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774  *) ac_try_echo=$ac_try;;
9775esac
9776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777  (eval "$ac_try") 2>&5
9778  ac_status=$?
9779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780  (exit $ac_status); }; }; then
9781  ac_cv_search_bfd_init=$ac_res
9782else
9783  echo "$as_me: failed program was:" >&5
9784sed 's/^/| /' conftest.$ac_ext >&5
9785
9786
9787fi
9788
9789rm -f core conftest.err conftest.$ac_objext \
9790      conftest$ac_exeext
9791  if test "${ac_cv_search_bfd_init+set}" = set; then
9792  break
9793fi
9794done
9795if test "${ac_cv_search_bfd_init+set}" = set; then
9796  :
9797else
9798  ac_cv_search_bfd_init=no
9799fi
9800rm conftest.$ac_ext
9801LIBS=$ac_func_search_save_LIBS
9802fi
9803{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9804echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9805ac_res=$ac_cv_search_bfd_init
9806if test "$ac_res" != no; then
9807  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9808
9809fi
9810
9811            { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9812echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9813if test "${ac_cv_search_op_open_agent+set}" = set; then
9814  echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816  ac_func_search_save_LIBS=$LIBS
9817cat >conftest.$ac_ext <<_ACEOF
9818/* confdefs.h.  */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h.  */
9823
9824/* Override any GCC internal prototype to avoid an error.
9825   Use char because int might match the return type of a GCC
9826   builtin and then its argument prototype would still apply.  */
9827#ifdef __cplusplus
9828extern "C"
9829#endif
9830char op_open_agent ();
9831int
9832main ()
9833{
9834return op_open_agent ();
9835  ;
9836  return 0;
9837}
9838_ACEOF
9839for ac_lib in '' opagent; do
9840  if test -z "$ac_lib"; then
9841    ac_res="none required"
9842  else
9843    ac_res=-l$ac_lib
9844    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9845  fi
9846  rm -f conftest.$ac_objext conftest$ac_exeext
9847if { (ac_try="$ac_link"
9848case "(($ac_try" in
9849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850  *) ac_try_echo=$ac_try;;
9851esac
9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853  (eval "$ac_link") 2>conftest.er1
9854  ac_status=$?
9855  grep -v '^ *+' conftest.er1 >conftest.err
9856  rm -f conftest.er1
9857  cat conftest.err >&5
9858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859  (exit $ac_status); } &&
9860	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861  { (case "(($ac_try" in
9862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863  *) ac_try_echo=$ac_try;;
9864esac
9865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866  (eval "$ac_try") 2>&5
9867  ac_status=$?
9868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869  (exit $ac_status); }; } &&
9870	 { ac_try='test -s conftest$ac_exeext'
9871  { (case "(($ac_try" in
9872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873  *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876  (eval "$ac_try") 2>&5
9877  ac_status=$?
9878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879  (exit $ac_status); }; }; then
9880  ac_cv_search_op_open_agent=$ac_res
9881else
9882  echo "$as_me: failed program was:" >&5
9883sed 's/^/| /' conftest.$ac_ext >&5
9884
9885
9886fi
9887
9888rm -f core conftest.err conftest.$ac_objext \
9889      conftest$ac_exeext
9890  if test "${ac_cv_search_op_open_agent+set}" = set; then
9891  break
9892fi
9893done
9894if test "${ac_cv_search_op_open_agent+set}" = set; then
9895  :
9896else
9897  ac_cv_search_op_open_agent=no
9898fi
9899rm conftest.$ac_ext
9900LIBS=$ac_func_search_save_LIBS
9901fi
9902{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9903echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9904ac_res=$ac_cv_search_op_open_agent
9905if test "$ac_res" != no; then
9906  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9907
9908else
9909
9910              echo "Error! You need to have libopagent around."
9911              exit -1
9912
9913fi
9914
9915            if test "${ac_cv_header_opagent_h+set}" = set; then
9916  { echo "$as_me:$LINENO: checking for opagent.h" >&5
9917echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9918if test "${ac_cv_header_opagent_h+set}" = set; then
9919  echo $ECHO_N "(cached) $ECHO_C" >&6
9920fi
9921{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9922echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9923else
9924  # Is the header compilable?
9925{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
9926echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9927cat >conftest.$ac_ext <<_ACEOF
9928/* confdefs.h.  */
9929_ACEOF
9930cat confdefs.h >>conftest.$ac_ext
9931cat >>conftest.$ac_ext <<_ACEOF
9932/* end confdefs.h.  */
9933$ac_includes_default
9934#include <opagent.h>
9935_ACEOF
9936rm -f conftest.$ac_objext
9937if { (ac_try="$ac_compile"
9938case "(($ac_try" in
9939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940  *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943  (eval "$ac_compile") 2>conftest.er1
9944  ac_status=$?
9945  grep -v '^ *+' conftest.er1 >conftest.err
9946  rm -f conftest.er1
9947  cat conftest.err >&5
9948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949  (exit $ac_status); } &&
9950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951  { (case "(($ac_try" in
9952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953  *) ac_try_echo=$ac_try;;
9954esac
9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956  (eval "$ac_try") 2>&5
9957  ac_status=$?
9958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959  (exit $ac_status); }; } &&
9960	 { ac_try='test -s conftest.$ac_objext'
9961  { (case "(($ac_try" in
9962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963  *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966  (eval "$ac_try") 2>&5
9967  ac_status=$?
9968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969  (exit $ac_status); }; }; then
9970  ac_header_compiler=yes
9971else
9972  echo "$as_me: failed program was:" >&5
9973sed 's/^/| /' conftest.$ac_ext >&5
9974
9975	ac_header_compiler=no
9976fi
9977
9978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9980echo "${ECHO_T}$ac_header_compiler" >&6; }
9981
9982# Is the header present?
9983{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
9984echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9985cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h.  */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h.  */
9991#include <opagent.h>
9992_ACEOF
9993if { (ac_try="$ac_cpp conftest.$ac_ext"
9994case "(($ac_try" in
9995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996  *) ac_try_echo=$ac_try;;
9997esac
9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10000  ac_status=$?
10001  grep -v '^ *+' conftest.er1 >conftest.err
10002  rm -f conftest.er1
10003  cat conftest.err >&5
10004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005  (exit $ac_status); } >/dev/null; then
10006  if test -s conftest.err; then
10007    ac_cpp_err=$ac_c_preproc_warn_flag
10008    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10009  else
10010    ac_cpp_err=
10011  fi
10012else
10013  ac_cpp_err=yes
10014fi
10015if test -z "$ac_cpp_err"; then
10016  ac_header_preproc=yes
10017else
10018  echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021  ac_header_preproc=no
10022fi
10023
10024rm -f conftest.err conftest.$ac_ext
10025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10026echo "${ECHO_T}$ac_header_preproc" >&6; }
10027
10028# So?  What about this header?
10029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10030  yes:no: )
10031    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10032echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10033    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10034echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10035    ac_header_preproc=yes
10036    ;;
10037  no:yes:* )
10038    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10039echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10040    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10041echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10042    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10043echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10044    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10045echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10046    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10047echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10048    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10049echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10050    ( cat <<\_ASBOX
10051## ------------------------------------ ##
10052## Report this to http://llvm.org/bugs/ ##
10053## ------------------------------------ ##
10054_ASBOX
10055     ) | sed "s/^/$as_me: WARNING:     /" >&2
10056    ;;
10057esac
10058{ echo "$as_me:$LINENO: checking for opagent.h" >&5
10059echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10060if test "${ac_cv_header_opagent_h+set}" = set; then
10061  echo $ECHO_N "(cached) $ECHO_C" >&6
10062else
10063  ac_cv_header_opagent_h=$ac_header_preproc
10064fi
10065{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10066echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10067
10068fi
10069if test $ac_cv_header_opagent_h = yes; then
10070  :
10071else
10072
10073              echo "Error! You need to have opagent.h around."
10074              exit -1
10075
10076fi
10077
10078
10079          fi ;;
10080        *)
10081          { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10082echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10083   { (exit 1); exit 1; }; } ;;
10084      esac
10085
10086else
10087
10088      USE_OPROFILE=0
10089
10090
10091fi
10092
10093
10094cat >>confdefs.h <<_ACEOF
10095#define LLVM_USE_OPROFILE $USE_OPROFILE
10096_ACEOF
10097
10098
10099
10100# Check whether --with-intel-jitevents was given.
10101if test "${with_intel_jitevents+set}" = set; then
10102  withval=$with_intel_jitevents;
10103       case "$withval" in
10104          yes) USE_INTEL_JITEVENTS=1
10105;;
10106          no)  USE_INTEL_JITEVENTS=0
10107;;
10108          *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10109echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10110   { (exit 1); exit 1; }; };;
10111       esac
10112
10113      case $llvm_cv_os_type in
10114        Linux|Win32|Cygwin|MingW) ;;
10115        *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10116echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10117   { (exit 1); exit 1; }; };;
10118      esac
10119
10120      case "$llvm_cv_target_arch" in
10121        x86|x86_64) ;;
10122        *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10123echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10124   { (exit 1); exit 1; }; };;
10125      esac
10126
10127else
10128
10129      USE_INTEL_JITEVENTS=0
10130
10131
10132fi
10133
10134
10135cat >>confdefs.h <<_ACEOF
10136#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10137_ACEOF
10138
10139
10140for ac_prog in xml2-config
10141do
10142  # Extract the first word of "$ac_prog", so it can be a program name with args.
10143set dummy $ac_prog; ac_word=$2
10144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10146if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10147  echo $ECHO_N "(cached) $ECHO_C" >&6
10148else
10149  if test -n "$XML2CONFIG"; then
10150  ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10151else
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155  IFS=$as_save_IFS
10156  test -z "$as_dir" && as_dir=.
10157  for ac_exec_ext in '' $ac_executable_extensions; do
10158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10159    ac_cv_prog_XML2CONFIG="$ac_prog"
10160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10161    break 2
10162  fi
10163done
10164done
10165IFS=$as_save_IFS
10166
10167fi
10168fi
10169XML2CONFIG=$ac_cv_prog_XML2CONFIG
10170if test -n "$XML2CONFIG"; then
10171  { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10172echo "${ECHO_T}$XML2CONFIG" >&6; }
10173else
10174  { echo "$as_me:$LINENO: result: no" >&5
10175echo "${ECHO_T}no" >&6; }
10176fi
10177
10178
10179  test -n "$XML2CONFIG" && break
10180done
10181
10182
10183{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10184echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10185if test "x$XML2CONFIG" = "x"; then
10186 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10187echo "${ECHO_T}xml2-config not found" >&6; }
10188else
10189 LIBXML2_INC=`$XML2CONFIG --cflags`
10190 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10191echo "${ECHO_T}$LIBXML2_INC" >&6; }
10192 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10193echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10194if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10195  echo $ECHO_N "(cached) $ECHO_C" >&6
10196else
10197  ac_check_lib_save_LIBS=$LIBS
10198LIBS="-lxml2  $LIBS"
10199cat >conftest.$ac_ext <<_ACEOF
10200/* confdefs.h.  */
10201_ACEOF
10202cat confdefs.h >>conftest.$ac_ext
10203cat >>conftest.$ac_ext <<_ACEOF
10204/* end confdefs.h.  */
10205
10206/* Override any GCC internal prototype to avoid an error.
10207   Use char because int might match the return type of a GCC
10208   builtin and then its argument prototype would still apply.  */
10209#ifdef __cplusplus
10210extern "C"
10211#endif
10212char xmlReadFile ();
10213int
10214main ()
10215{
10216return xmlReadFile ();
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221rm -f conftest.$ac_objext conftest$ac_exeext
10222if { (ac_try="$ac_link"
10223case "(($ac_try" in
10224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225  *) ac_try_echo=$ac_try;;
10226esac
10227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228  (eval "$ac_link") 2>conftest.er1
10229  ac_status=$?
10230  grep -v '^ *+' conftest.er1 >conftest.err
10231  rm -f conftest.er1
10232  cat conftest.err >&5
10233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234  (exit $ac_status); } &&
10235	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10236  { (case "(($ac_try" in
10237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238  *) ac_try_echo=$ac_try;;
10239esac
10240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241  (eval "$ac_try") 2>&5
10242  ac_status=$?
10243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244  (exit $ac_status); }; } &&
10245	 { ac_try='test -s conftest$ac_exeext'
10246  { (case "(($ac_try" in
10247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248  *) ac_try_echo=$ac_try;;
10249esac
10250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251  (eval "$ac_try") 2>&5
10252  ac_status=$?
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); }; }; then
10255  ac_cv_lib_xml2_xmlReadFile=yes
10256else
10257  echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
10260	ac_cv_lib_xml2_xmlReadFile=no
10261fi
10262
10263rm -f core conftest.err conftest.$ac_objext \
10264      conftest$ac_exeext conftest.$ac_ext
10265LIBS=$ac_check_lib_save_LIBS
10266fi
10267{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10268echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10269if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10270
10271cat >>confdefs.h <<\_ACEOF
10272#define CLANG_HAVE_LIBXML 1
10273_ACEOF
10274
10275                                LIBXML2_LIBS="-lxml2"
10276fi
10277
10278fi
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288ac_header_dirent=no
10289for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10290  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10291{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10292echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10294  echo $ECHO_N "(cached) $ECHO_C" >&6
10295else
10296  cat >conftest.$ac_ext <<_ACEOF
10297/* confdefs.h.  */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h.  */
10302#include <sys/types.h>
10303#include <$ac_hdr>
10304
10305int
10306main ()
10307{
10308if ((DIR *) 0)
10309return 0;
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext
10315if { (ac_try="$ac_compile"
10316case "(($ac_try" in
10317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318  *) ac_try_echo=$ac_try;;
10319esac
10320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321  (eval "$ac_compile") 2>conftest.er1
10322  ac_status=$?
10323  grep -v '^ *+' conftest.er1 >conftest.err
10324  rm -f conftest.er1
10325  cat conftest.err >&5
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } &&
10328	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10329  { (case "(($ac_try" in
10330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331  *) ac_try_echo=$ac_try;;
10332esac
10333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334  (eval "$ac_try") 2>&5
10335  ac_status=$?
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); }; } &&
10338	 { ac_try='test -s conftest.$ac_objext'
10339  { (case "(($ac_try" in
10340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341  *) ac_try_echo=$ac_try;;
10342esac
10343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344  (eval "$ac_try") 2>&5
10345  ac_status=$?
10346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347  (exit $ac_status); }; }; then
10348  eval "$as_ac_Header=yes"
10349else
10350  echo "$as_me: failed program was:" >&5
10351sed 's/^/| /' conftest.$ac_ext >&5
10352
10353	eval "$as_ac_Header=no"
10354fi
10355
10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357fi
10358ac_res=`eval echo '${'$as_ac_Header'}'`
10359	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10360echo "${ECHO_T}$ac_res" >&6; }
10361if test `eval echo '${'$as_ac_Header'}'` = yes; then
10362  cat >>confdefs.h <<_ACEOF
10363#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10364_ACEOF
10365
10366ac_header_dirent=$ac_hdr; break
10367fi
10368
10369done
10370# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10371if test $ac_header_dirent = dirent.h; then
10372  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10373echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10374if test "${ac_cv_search_opendir+set}" = set; then
10375  echo $ECHO_N "(cached) $ECHO_C" >&6
10376else
10377  ac_func_search_save_LIBS=$LIBS
10378cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h.  */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h.  */
10384
10385/* Override any GCC internal prototype to avoid an error.
10386   Use char because int might match the return type of a GCC
10387   builtin and then its argument prototype would still apply.  */
10388#ifdef __cplusplus
10389extern "C"
10390#endif
10391char opendir ();
10392int
10393main ()
10394{
10395return opendir ();
10396  ;
10397  return 0;
10398}
10399_ACEOF
10400for ac_lib in '' dir; do
10401  if test -z "$ac_lib"; then
10402    ac_res="none required"
10403  else
10404    ac_res=-l$ac_lib
10405    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10406  fi
10407  rm -f conftest.$ac_objext conftest$ac_exeext
10408if { (ac_try="$ac_link"
10409case "(($ac_try" in
10410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411  *) ac_try_echo=$ac_try;;
10412esac
10413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414  (eval "$ac_link") 2>conftest.er1
10415  ac_status=$?
10416  grep -v '^ *+' conftest.er1 >conftest.err
10417  rm -f conftest.er1
10418  cat conftest.err >&5
10419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420  (exit $ac_status); } &&
10421	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10422  { (case "(($ac_try" in
10423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424  *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427  (eval "$ac_try") 2>&5
10428  ac_status=$?
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); }; } &&
10431	 { ac_try='test -s conftest$ac_exeext'
10432  { (case "(($ac_try" in
10433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434  *) ac_try_echo=$ac_try;;
10435esac
10436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437  (eval "$ac_try") 2>&5
10438  ac_status=$?
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); }; }; then
10441  ac_cv_search_opendir=$ac_res
10442else
10443  echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446
10447fi
10448
10449rm -f core conftest.err conftest.$ac_objext \
10450      conftest$ac_exeext
10451  if test "${ac_cv_search_opendir+set}" = set; then
10452  break
10453fi
10454done
10455if test "${ac_cv_search_opendir+set}" = set; then
10456  :
10457else
10458  ac_cv_search_opendir=no
10459fi
10460rm conftest.$ac_ext
10461LIBS=$ac_func_search_save_LIBS
10462fi
10463{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10464echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10465ac_res=$ac_cv_search_opendir
10466if test "$ac_res" != no; then
10467  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10468
10469fi
10470
10471else
10472  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10473echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10474if test "${ac_cv_search_opendir+set}" = set; then
10475  echo $ECHO_N "(cached) $ECHO_C" >&6
10476else
10477  ac_func_search_save_LIBS=$LIBS
10478cat >conftest.$ac_ext <<_ACEOF
10479/* confdefs.h.  */
10480_ACEOF
10481cat confdefs.h >>conftest.$ac_ext
10482cat >>conftest.$ac_ext <<_ACEOF
10483/* end confdefs.h.  */
10484
10485/* Override any GCC internal prototype to avoid an error.
10486   Use char because int might match the return type of a GCC
10487   builtin and then its argument prototype would still apply.  */
10488#ifdef __cplusplus
10489extern "C"
10490#endif
10491char opendir ();
10492int
10493main ()
10494{
10495return opendir ();
10496  ;
10497  return 0;
10498}
10499_ACEOF
10500for ac_lib in '' x; do
10501  if test -z "$ac_lib"; then
10502    ac_res="none required"
10503  else
10504    ac_res=-l$ac_lib
10505    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10506  fi
10507  rm -f conftest.$ac_objext conftest$ac_exeext
10508if { (ac_try="$ac_link"
10509case "(($ac_try" in
10510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511  *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514  (eval "$ac_link") 2>conftest.er1
10515  ac_status=$?
10516  grep -v '^ *+' conftest.er1 >conftest.err
10517  rm -f conftest.er1
10518  cat conftest.err >&5
10519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520  (exit $ac_status); } &&
10521	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10522  { (case "(($ac_try" in
10523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524  *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527  (eval "$ac_try") 2>&5
10528  ac_status=$?
10529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530  (exit $ac_status); }; } &&
10531	 { ac_try='test -s conftest$ac_exeext'
10532  { (case "(($ac_try" in
10533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534  *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537  (eval "$ac_try") 2>&5
10538  ac_status=$?
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); }; }; then
10541  ac_cv_search_opendir=$ac_res
10542else
10543  echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546
10547fi
10548
10549rm -f core conftest.err conftest.$ac_objext \
10550      conftest$ac_exeext
10551  if test "${ac_cv_search_opendir+set}" = set; then
10552  break
10553fi
10554done
10555if test "${ac_cv_search_opendir+set}" = set; then
10556  :
10557else
10558  ac_cv_search_opendir=no
10559fi
10560rm conftest.$ac_ext
10561LIBS=$ac_func_search_save_LIBS
10562fi
10563{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10564echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10565ac_res=$ac_cv_search_opendir
10566if test "$ac_res" != no; then
10567  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10568
10569fi
10570
10571fi
10572
10573{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10574echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10575if test "${ac_cv_header_mmap_anon+set}" = set; then
10576  echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578   ac_ext=c
10579ac_cpp='$CPP $CPPFLAGS'
10580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10582ac_compiler_gnu=$ac_cv_c_compiler_gnu
10583
10584  cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h.  */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h.  */
10590#include <sys/mman.h>
10591#include <unistd.h>
10592#include <fcntl.h>
10593int
10594main ()
10595{
10596mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10597  ;
10598  return 0;
10599}
10600_ACEOF
10601rm -f conftest.$ac_objext
10602if { (ac_try="$ac_compile"
10603case "(($ac_try" in
10604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605  *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608  (eval "$ac_compile") 2>conftest.er1
10609  ac_status=$?
10610  grep -v '^ *+' conftest.er1 >conftest.err
10611  rm -f conftest.er1
10612  cat conftest.err >&5
10613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } &&
10615	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616  { (case "(($ac_try" in
10617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618  *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621  (eval "$ac_try") 2>&5
10622  ac_status=$?
10623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624  (exit $ac_status); }; } &&
10625	 { ac_try='test -s conftest.$ac_objext'
10626  { (case "(($ac_try" in
10627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628  *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631  (eval "$ac_try") 2>&5
10632  ac_status=$?
10633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634  (exit $ac_status); }; }; then
10635  ac_cv_header_mmap_anon=yes
10636else
10637  echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640	ac_cv_header_mmap_anon=no
10641fi
10642
10643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644  ac_ext=c
10645ac_cpp='$CPP $CPPFLAGS'
10646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10648ac_compiler_gnu=$ac_cv_c_compiler_gnu
10649
10650
10651fi
10652{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10653echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10654if test "$ac_cv_header_mmap_anon" = yes; then
10655
10656cat >>confdefs.h <<\_ACEOF
10657#define HAVE_MMAP_ANONYMOUS 1
10658_ACEOF
10659
10660fi
10661
10662{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10663echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10664if test "${ac_cv_header_stat_broken+set}" = set; then
10665  echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667  cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h.  */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h.  */
10673#include <sys/types.h>
10674#include <sys/stat.h>
10675
10676#if defined S_ISBLK && defined S_IFDIR
10677# if S_ISBLK (S_IFDIR)
10678You lose.
10679# endif
10680#endif
10681
10682#if defined S_ISBLK && defined S_IFCHR
10683# if S_ISBLK (S_IFCHR)
10684You lose.
10685# endif
10686#endif
10687
10688#if defined S_ISLNK && defined S_IFREG
10689# if S_ISLNK (S_IFREG)
10690You lose.
10691# endif
10692#endif
10693
10694#if defined S_ISSOCK && defined S_IFREG
10695# if S_ISSOCK (S_IFREG)
10696You lose.
10697# endif
10698#endif
10699
10700_ACEOF
10701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10702  $EGREP "You lose" >/dev/null 2>&1; then
10703  ac_cv_header_stat_broken=yes
10704else
10705  ac_cv_header_stat_broken=no
10706fi
10707rm -f conftest*
10708
10709fi
10710{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10711echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10712if test $ac_cv_header_stat_broken = yes; then
10713
10714cat >>confdefs.h <<\_ACEOF
10715#define STAT_MACROS_BROKEN 1
10716_ACEOF
10717
10718fi
10719
10720{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10721echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10722if test "${ac_cv_header_sys_wait_h+set}" = set; then
10723  echo $ECHO_N "(cached) $ECHO_C" >&6
10724else
10725  cat >conftest.$ac_ext <<_ACEOF
10726/* confdefs.h.  */
10727_ACEOF
10728cat confdefs.h >>conftest.$ac_ext
10729cat >>conftest.$ac_ext <<_ACEOF
10730/* end confdefs.h.  */
10731#include <sys/types.h>
10732#include <sys/wait.h>
10733#ifndef WEXITSTATUS
10734# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10735#endif
10736#ifndef WIFEXITED
10737# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10738#endif
10739
10740int
10741main ()
10742{
10743  int s;
10744  wait (&s);
10745  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10746  ;
10747  return 0;
10748}
10749_ACEOF
10750rm -f conftest.$ac_objext
10751if { (ac_try="$ac_compile"
10752case "(($ac_try" in
10753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754  *) ac_try_echo=$ac_try;;
10755esac
10756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757  (eval "$ac_compile") 2>conftest.er1
10758  ac_status=$?
10759  grep -v '^ *+' conftest.er1 >conftest.err
10760  rm -f conftest.er1
10761  cat conftest.err >&5
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); } &&
10764	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10765  { (case "(($ac_try" in
10766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767  *) ac_try_echo=$ac_try;;
10768esac
10769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770  (eval "$ac_try") 2>&5
10771  ac_status=$?
10772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773  (exit $ac_status); }; } &&
10774	 { ac_try='test -s conftest.$ac_objext'
10775  { (case "(($ac_try" in
10776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777  *) ac_try_echo=$ac_try;;
10778esac
10779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780  (eval "$ac_try") 2>&5
10781  ac_status=$?
10782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783  (exit $ac_status); }; }; then
10784  ac_cv_header_sys_wait_h=yes
10785else
10786  echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789	ac_cv_header_sys_wait_h=no
10790fi
10791
10792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10793fi
10794{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10795echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10796if test $ac_cv_header_sys_wait_h = yes; then
10797
10798cat >>confdefs.h <<\_ACEOF
10799#define HAVE_SYS_WAIT_H 1
10800_ACEOF
10801
10802fi
10803
10804{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10805echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10806if test "${ac_cv_header_time+set}" = set; then
10807  echo $ECHO_N "(cached) $ECHO_C" >&6
10808else
10809  cat >conftest.$ac_ext <<_ACEOF
10810/* confdefs.h.  */
10811_ACEOF
10812cat confdefs.h >>conftest.$ac_ext
10813cat >>conftest.$ac_ext <<_ACEOF
10814/* end confdefs.h.  */
10815#include <sys/types.h>
10816#include <sys/time.h>
10817#include <time.h>
10818
10819int
10820main ()
10821{
10822if ((struct tm *) 0)
10823return 0;
10824  ;
10825  return 0;
10826}
10827_ACEOF
10828rm -f conftest.$ac_objext
10829if { (ac_try="$ac_compile"
10830case "(($ac_try" in
10831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832  *) ac_try_echo=$ac_try;;
10833esac
10834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835  (eval "$ac_compile") 2>conftest.er1
10836  ac_status=$?
10837  grep -v '^ *+' conftest.er1 >conftest.err
10838  rm -f conftest.er1
10839  cat conftest.err >&5
10840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841  (exit $ac_status); } &&
10842	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843  { (case "(($ac_try" in
10844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845  *) ac_try_echo=$ac_try;;
10846esac
10847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848  (eval "$ac_try") 2>&5
10849  ac_status=$?
10850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851  (exit $ac_status); }; } &&
10852	 { ac_try='test -s conftest.$ac_objext'
10853  { (case "(($ac_try" in
10854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855  *) ac_try_echo=$ac_try;;
10856esac
10857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858  (eval "$ac_try") 2>&5
10859  ac_status=$?
10860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861  (exit $ac_status); }; }; then
10862  ac_cv_header_time=yes
10863else
10864  echo "$as_me: failed program was:" >&5
10865sed 's/^/| /' conftest.$ac_ext >&5
10866
10867	ac_cv_header_time=no
10868fi
10869
10870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871fi
10872{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10873echo "${ECHO_T}$ac_cv_header_time" >&6; }
10874if test $ac_cv_header_time = yes; then
10875
10876cat >>confdefs.h <<\_ACEOF
10877#define TIME_WITH_SYS_TIME 1
10878_ACEOF
10879
10880fi
10881
10882
10883ac_ext=cpp
10884ac_cpp='$CXXCPP $CPPFLAGS'
10885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10888
10889
10890for ac_header in cxxabi.h
10891do
10892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10893{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10896  echo $ECHO_N "(cached) $ECHO_C" >&6
10897else
10898  cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h.  */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h.  */
10904#include <stddef.h>
10905
10906
10907#include <$ac_header>
10908_ACEOF
10909rm -f conftest.$ac_objext
10910if { (ac_try="$ac_compile"
10911case "(($ac_try" in
10912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913  *) ac_try_echo=$ac_try;;
10914esac
10915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916  (eval "$ac_compile") 2>conftest.er1
10917  ac_status=$?
10918  grep -v '^ *+' conftest.er1 >conftest.err
10919  rm -f conftest.er1
10920  cat conftest.err >&5
10921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922  (exit $ac_status); } &&
10923	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10924  { (case "(($ac_try" in
10925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926  *) ac_try_echo=$ac_try;;
10927esac
10928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929  (eval "$ac_try") 2>&5
10930  ac_status=$?
10931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932  (exit $ac_status); }; } &&
10933	 { ac_try='test -s conftest.$ac_objext'
10934  { (case "(($ac_try" in
10935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936  *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939  (eval "$ac_try") 2>&5
10940  ac_status=$?
10941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942  (exit $ac_status); }; }; then
10943  eval "$as_ac_Header=yes"
10944else
10945  echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948	eval "$as_ac_Header=no"
10949fi
10950
10951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952fi
10953ac_res=`eval echo '${'$as_ac_Header'}'`
10954	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10955echo "${ECHO_T}$ac_res" >&6; }
10956if test `eval echo '${'$as_ac_Header'}'` = yes; then
10957  cat >>confdefs.h <<_ACEOF
10958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10959_ACEOF
10960
10961fi
10962
10963done
10964
10965ac_ext=c
10966ac_cpp='$CPP $CPPFLAGS'
10967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969ac_compiler_gnu=$ac_cv_c_compiler_gnu
10970
10971
10972
10973
10974
10975
10976
10977for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
10978do
10979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984  echo $ECHO_N "(cached) $ECHO_C" >&6
10985fi
10986ac_res=`eval echo '${'$as_ac_Header'}'`
10987	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10988echo "${ECHO_T}$ac_res" >&6; }
10989else
10990  # Is the header compilable?
10991{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10993cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h.  */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
10998/* end confdefs.h.  */
10999$ac_includes_default
11000#include <$ac_header>
11001_ACEOF
11002rm -f conftest.$ac_objext
11003if { (ac_try="$ac_compile"
11004case "(($ac_try" in
11005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006  *) ac_try_echo=$ac_try;;
11007esac
11008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009  (eval "$ac_compile") 2>conftest.er1
11010  ac_status=$?
11011  grep -v '^ *+' conftest.er1 >conftest.err
11012  rm -f conftest.er1
11013  cat conftest.err >&5
11014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015  (exit $ac_status); } &&
11016	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017  { (case "(($ac_try" in
11018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019  *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022  (eval "$ac_try") 2>&5
11023  ac_status=$?
11024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025  (exit $ac_status); }; } &&
11026	 { ac_try='test -s conftest.$ac_objext'
11027  { (case "(($ac_try" in
11028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029  *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032  (eval "$ac_try") 2>&5
11033  ac_status=$?
11034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035  (exit $ac_status); }; }; then
11036  ac_header_compiler=yes
11037else
11038  echo "$as_me: failed program was:" >&5
11039sed 's/^/| /' conftest.$ac_ext >&5
11040
11041	ac_header_compiler=no
11042fi
11043
11044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046echo "${ECHO_T}$ac_header_compiler" >&6; }
11047
11048# Is the header present?
11049{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h.  */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h.  */
11057#include <$ac_header>
11058_ACEOF
11059if { (ac_try="$ac_cpp conftest.$ac_ext"
11060case "(($ac_try" in
11061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062  *) ac_try_echo=$ac_try;;
11063esac
11064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11066  ac_status=$?
11067  grep -v '^ *+' conftest.er1 >conftest.err
11068  rm -f conftest.er1
11069  cat conftest.err >&5
11070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071  (exit $ac_status); } >/dev/null; then
11072  if test -s conftest.err; then
11073    ac_cpp_err=$ac_c_preproc_warn_flag
11074    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11075  else
11076    ac_cpp_err=
11077  fi
11078else
11079  ac_cpp_err=yes
11080fi
11081if test -z "$ac_cpp_err"; then
11082  ac_header_preproc=yes
11083else
11084  echo "$as_me: failed program was:" >&5
11085sed 's/^/| /' conftest.$ac_ext >&5
11086
11087  ac_header_preproc=no
11088fi
11089
11090rm -f conftest.err conftest.$ac_ext
11091{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11092echo "${ECHO_T}$ac_header_preproc" >&6; }
11093
11094# So?  What about this header?
11095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11096  yes:no: )
11097    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11098echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11099    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11100echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11101    ac_header_preproc=yes
11102    ;;
11103  no:yes:* )
11104    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11106    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11107echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11108    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11109echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11110    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11111echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11112    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11113echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11114    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11115echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116    ( cat <<\_ASBOX
11117## ------------------------------------ ##
11118## Report this to http://llvm.org/bugs/ ##
11119## ------------------------------------ ##
11120_ASBOX
11121     ) | sed "s/^/$as_me: WARNING:     /" >&2
11122    ;;
11123esac
11124{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127  echo $ECHO_N "(cached) $ECHO_C" >&6
11128else
11129  eval "$as_ac_Header=\$ac_header_preproc"
11130fi
11131ac_res=`eval echo '${'$as_ac_Header'}'`
11132	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11133echo "${ECHO_T}$ac_res" >&6; }
11134
11135fi
11136if test `eval echo '${'$as_ac_Header'}'` = yes; then
11137  cat >>confdefs.h <<_ACEOF
11138#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11139_ACEOF
11140
11141fi
11142
11143done
11144
11145
11146
11147
11148
11149
11150
11151for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11152do
11153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11158  echo $ECHO_N "(cached) $ECHO_C" >&6
11159fi
11160ac_res=`eval echo '${'$as_ac_Header'}'`
11161	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11162echo "${ECHO_T}$ac_res" >&6; }
11163else
11164  # Is the header compilable?
11165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11167cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h.  */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h.  */
11173$ac_includes_default
11174#include <$ac_header>
11175_ACEOF
11176rm -f conftest.$ac_objext
11177if { (ac_try="$ac_compile"
11178case "(($ac_try" in
11179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180  *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183  (eval "$ac_compile") 2>conftest.er1
11184  ac_status=$?
11185  grep -v '^ *+' conftest.er1 >conftest.err
11186  rm -f conftest.er1
11187  cat conftest.err >&5
11188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189  (exit $ac_status); } &&
11190	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191  { (case "(($ac_try" in
11192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193  *) ac_try_echo=$ac_try;;
11194esac
11195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196  (eval "$ac_try") 2>&5
11197  ac_status=$?
11198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199  (exit $ac_status); }; } &&
11200	 { ac_try='test -s conftest.$ac_objext'
11201  { (case "(($ac_try" in
11202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203  *) ac_try_echo=$ac_try;;
11204esac
11205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206  (eval "$ac_try") 2>&5
11207  ac_status=$?
11208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209  (exit $ac_status); }; }; then
11210  ac_header_compiler=yes
11211else
11212  echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215	ac_header_compiler=no
11216fi
11217
11218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220echo "${ECHO_T}$ac_header_compiler" >&6; }
11221
11222# Is the header present?
11223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11225cat >conftest.$ac_ext <<_ACEOF
11226/* confdefs.h.  */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h.  */
11231#include <$ac_header>
11232_ACEOF
11233if { (ac_try="$ac_cpp conftest.$ac_ext"
11234case "(($ac_try" in
11235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236  *) ac_try_echo=$ac_try;;
11237esac
11238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11240  ac_status=$?
11241  grep -v '^ *+' conftest.er1 >conftest.err
11242  rm -f conftest.er1
11243  cat conftest.err >&5
11244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245  (exit $ac_status); } >/dev/null; then
11246  if test -s conftest.err; then
11247    ac_cpp_err=$ac_c_preproc_warn_flag
11248    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11249  else
11250    ac_cpp_err=
11251  fi
11252else
11253  ac_cpp_err=yes
11254fi
11255if test -z "$ac_cpp_err"; then
11256  ac_header_preproc=yes
11257else
11258  echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261  ac_header_preproc=no
11262fi
11263
11264rm -f conftest.err conftest.$ac_ext
11265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266echo "${ECHO_T}$ac_header_preproc" >&6; }
11267
11268# So?  What about this header?
11269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11270  yes:no: )
11271    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275    ac_header_preproc=yes
11276    ;;
11277  no:yes:* )
11278    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11281echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11282    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11285echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11286    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11290    ( cat <<\_ASBOX
11291## ------------------------------------ ##
11292## Report this to http://llvm.org/bugs/ ##
11293## ------------------------------------ ##
11294_ASBOX
11295     ) | sed "s/^/$as_me: WARNING:     /" >&2
11296    ;;
11297esac
11298{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301  echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303  eval "$as_ac_Header=\$ac_header_preproc"
11304fi
11305ac_res=`eval echo '${'$as_ac_Header'}'`
11306	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11307echo "${ECHO_T}$ac_res" >&6; }
11308
11309fi
11310if test `eval echo '${'$as_ac_Header'}'` = yes; then
11311  cat >>confdefs.h <<_ACEOF
11312#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11313_ACEOF
11314
11315fi
11316
11317done
11318
11319
11320for ac_header in utime.h
11321do
11322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11327  echo $ECHO_N "(cached) $ECHO_C" >&6
11328fi
11329ac_res=`eval echo '${'$as_ac_Header'}'`
11330	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11331echo "${ECHO_T}$ac_res" >&6; }
11332else
11333  # Is the header compilable?
11334{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11336cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h.  */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h.  */
11342$ac_includes_default
11343#include <$ac_header>
11344_ACEOF
11345rm -f conftest.$ac_objext
11346if { (ac_try="$ac_compile"
11347case "(($ac_try" in
11348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349  *) ac_try_echo=$ac_try;;
11350esac
11351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352  (eval "$ac_compile") 2>conftest.er1
11353  ac_status=$?
11354  grep -v '^ *+' conftest.er1 >conftest.err
11355  rm -f conftest.er1
11356  cat conftest.err >&5
11357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358  (exit $ac_status); } &&
11359	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11360  { (case "(($ac_try" in
11361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362  *) ac_try_echo=$ac_try;;
11363esac
11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365  (eval "$ac_try") 2>&5
11366  ac_status=$?
11367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368  (exit $ac_status); }; } &&
11369	 { ac_try='test -s conftest.$ac_objext'
11370  { (case "(($ac_try" in
11371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372  *) ac_try_echo=$ac_try;;
11373esac
11374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375  (eval "$ac_try") 2>&5
11376  ac_status=$?
11377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378  (exit $ac_status); }; }; then
11379  ac_header_compiler=yes
11380else
11381  echo "$as_me: failed program was:" >&5
11382sed 's/^/| /' conftest.$ac_ext >&5
11383
11384	ac_header_compiler=no
11385fi
11386
11387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11389echo "${ECHO_T}$ac_header_compiler" >&6; }
11390
11391# Is the header present?
11392{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11394cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h.  */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h.  */
11400#include <$ac_header>
11401_ACEOF
11402if { (ac_try="$ac_cpp conftest.$ac_ext"
11403case "(($ac_try" in
11404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405  *) ac_try_echo=$ac_try;;
11406esac
11407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11409  ac_status=$?
11410  grep -v '^ *+' conftest.er1 >conftest.err
11411  rm -f conftest.er1
11412  cat conftest.err >&5
11413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414  (exit $ac_status); } >/dev/null; then
11415  if test -s conftest.err; then
11416    ac_cpp_err=$ac_c_preproc_warn_flag
11417    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11418  else
11419    ac_cpp_err=
11420  fi
11421else
11422  ac_cpp_err=yes
11423fi
11424if test -z "$ac_cpp_err"; then
11425  ac_header_preproc=yes
11426else
11427  echo "$as_me: failed program was:" >&5
11428sed 's/^/| /' conftest.$ac_ext >&5
11429
11430  ac_header_preproc=no
11431fi
11432
11433rm -f conftest.err conftest.$ac_ext
11434{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11435echo "${ECHO_T}$ac_header_preproc" >&6; }
11436
11437# So?  What about this header?
11438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11439  yes:no: )
11440    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11442    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11444    ac_header_preproc=yes
11445    ;;
11446  no:yes:* )
11447    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11449    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11450echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11451    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11453    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11454echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11455    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11457    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11459    ( cat <<\_ASBOX
11460## ------------------------------------ ##
11461## Report this to http://llvm.org/bugs/ ##
11462## ------------------------------------ ##
11463_ASBOX
11464     ) | sed "s/^/$as_me: WARNING:     /" >&2
11465    ;;
11466esac
11467{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11470  echo $ECHO_N "(cached) $ECHO_C" >&6
11471else
11472  eval "$as_ac_Header=\$ac_header_preproc"
11473fi
11474ac_res=`eval echo '${'$as_ac_Header'}'`
11475	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11476echo "${ECHO_T}$ac_res" >&6; }
11477
11478fi
11479if test `eval echo '${'$as_ac_Header'}'` = yes; then
11480  cat >>confdefs.h <<_ACEOF
11481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11482_ACEOF
11483
11484fi
11485
11486done
11487
11488
11489
11490
11491
11492
11493for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11494do
11495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500  echo $ECHO_N "(cached) $ECHO_C" >&6
11501fi
11502ac_res=`eval echo '${'$as_ac_Header'}'`
11503	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11504echo "${ECHO_T}$ac_res" >&6; }
11505else
11506  # Is the header compilable?
11507{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509cat >conftest.$ac_ext <<_ACEOF
11510/* confdefs.h.  */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h.  */
11515$ac_includes_default
11516#include <$ac_header>
11517_ACEOF
11518rm -f conftest.$ac_objext
11519if { (ac_try="$ac_compile"
11520case "(($ac_try" in
11521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522  *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525  (eval "$ac_compile") 2>conftest.er1
11526  ac_status=$?
11527  grep -v '^ *+' conftest.er1 >conftest.err
11528  rm -f conftest.er1
11529  cat conftest.err >&5
11530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531  (exit $ac_status); } &&
11532	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533  { (case "(($ac_try" in
11534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535  *) ac_try_echo=$ac_try;;
11536esac
11537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538  (eval "$ac_try") 2>&5
11539  ac_status=$?
11540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541  (exit $ac_status); }; } &&
11542	 { ac_try='test -s conftest.$ac_objext'
11543  { (case "(($ac_try" in
11544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545  *) ac_try_echo=$ac_try;;
11546esac
11547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548  (eval "$ac_try") 2>&5
11549  ac_status=$?
11550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551  (exit $ac_status); }; }; then
11552  ac_header_compiler=yes
11553else
11554  echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
11557	ac_header_compiler=no
11558fi
11559
11560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562echo "${ECHO_T}$ac_header_compiler" >&6; }
11563
11564# Is the header present?
11565{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567cat >conftest.$ac_ext <<_ACEOF
11568/* confdefs.h.  */
11569_ACEOF
11570cat confdefs.h >>conftest.$ac_ext
11571cat >>conftest.$ac_ext <<_ACEOF
11572/* end confdefs.h.  */
11573#include <$ac_header>
11574_ACEOF
11575if { (ac_try="$ac_cpp conftest.$ac_ext"
11576case "(($ac_try" in
11577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578  *) ac_try_echo=$ac_try;;
11579esac
11580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582  ac_status=$?
11583  grep -v '^ *+' conftest.er1 >conftest.err
11584  rm -f conftest.er1
11585  cat conftest.err >&5
11586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587  (exit $ac_status); } >/dev/null; then
11588  if test -s conftest.err; then
11589    ac_cpp_err=$ac_c_preproc_warn_flag
11590    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11591  else
11592    ac_cpp_err=
11593  fi
11594else
11595  ac_cpp_err=yes
11596fi
11597if test -z "$ac_cpp_err"; then
11598  ac_header_preproc=yes
11599else
11600  echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
11603  ac_header_preproc=no
11604fi
11605
11606rm -f conftest.err conftest.$ac_ext
11607{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608echo "${ECHO_T}$ac_header_preproc" >&6; }
11609
11610# So?  What about this header?
11611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612  yes:no: )
11613    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617    ac_header_preproc=yes
11618    ;;
11619  no:yes:* )
11620    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11623echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11624    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11627echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11628    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11632    ( cat <<\_ASBOX
11633## ------------------------------------ ##
11634## Report this to http://llvm.org/bugs/ ##
11635## ------------------------------------ ##
11636_ASBOX
11637     ) | sed "s/^/$as_me: WARNING:     /" >&2
11638    ;;
11639esac
11640{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11643  echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645  eval "$as_ac_Header=\$ac_header_preproc"
11646fi
11647ac_res=`eval echo '${'$as_ac_Header'}'`
11648	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11649echo "${ECHO_T}$ac_res" >&6; }
11650
11651fi
11652if test `eval echo '${'$as_ac_Header'}'` = yes; then
11653  cat >>confdefs.h <<_ACEOF
11654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11655_ACEOF
11656
11657fi
11658
11659done
11660
11661
11662
11663
11664for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11665do
11666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11668  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11671  echo $ECHO_N "(cached) $ECHO_C" >&6
11672fi
11673ac_res=`eval echo '${'$as_ac_Header'}'`
11674	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11675echo "${ECHO_T}$ac_res" >&6; }
11676else
11677  # Is the header compilable?
11678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11680cat >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$ac_includes_default
11687#include <$ac_header>
11688_ACEOF
11689rm -f conftest.$ac_objext
11690if { (ac_try="$ac_compile"
11691case "(($ac_try" in
11692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693  *) ac_try_echo=$ac_try;;
11694esac
11695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696  (eval "$ac_compile") 2>conftest.er1
11697  ac_status=$?
11698  grep -v '^ *+' conftest.er1 >conftest.err
11699  rm -f conftest.er1
11700  cat conftest.err >&5
11701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702  (exit $ac_status); } &&
11703	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11704  { (case "(($ac_try" in
11705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706  *) ac_try_echo=$ac_try;;
11707esac
11708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709  (eval "$ac_try") 2>&5
11710  ac_status=$?
11711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712  (exit $ac_status); }; } &&
11713	 { ac_try='test -s conftest.$ac_objext'
11714  { (case "(($ac_try" in
11715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716  *) ac_try_echo=$ac_try;;
11717esac
11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719  (eval "$ac_try") 2>&5
11720  ac_status=$?
11721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722  (exit $ac_status); }; }; then
11723  ac_header_compiler=yes
11724else
11725  echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728	ac_header_compiler=no
11729fi
11730
11731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11733echo "${ECHO_T}$ac_header_compiler" >&6; }
11734
11735# Is the header present?
11736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11738cat >conftest.$ac_ext <<_ACEOF
11739/* confdefs.h.  */
11740_ACEOF
11741cat confdefs.h >>conftest.$ac_ext
11742cat >>conftest.$ac_ext <<_ACEOF
11743/* end confdefs.h.  */
11744#include <$ac_header>
11745_ACEOF
11746if { (ac_try="$ac_cpp conftest.$ac_ext"
11747case "(($ac_try" in
11748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749  *) ac_try_echo=$ac_try;;
11750esac
11751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11753  ac_status=$?
11754  grep -v '^ *+' conftest.er1 >conftest.err
11755  rm -f conftest.er1
11756  cat conftest.err >&5
11757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758  (exit $ac_status); } >/dev/null; then
11759  if test -s conftest.err; then
11760    ac_cpp_err=$ac_c_preproc_warn_flag
11761    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11762  else
11763    ac_cpp_err=
11764  fi
11765else
11766  ac_cpp_err=yes
11767fi
11768if test -z "$ac_cpp_err"; then
11769  ac_header_preproc=yes
11770else
11771  echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
11774  ac_header_preproc=no
11775fi
11776
11777rm -f conftest.err conftest.$ac_ext
11778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11779echo "${ECHO_T}$ac_header_preproc" >&6; }
11780
11781# So?  What about this header?
11782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11783  yes:no: )
11784    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11786    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11788    ac_header_preproc=yes
11789    ;;
11790  no:yes:* )
11791    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11793    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11794echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11795    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11797    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11798echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11799    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11801    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11803    ( cat <<\_ASBOX
11804## ------------------------------------ ##
11805## Report this to http://llvm.org/bugs/ ##
11806## ------------------------------------ ##
11807_ASBOX
11808     ) | sed "s/^/$as_me: WARNING:     /" >&2
11809    ;;
11810esac
11811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814  echo $ECHO_N "(cached) $ECHO_C" >&6
11815else
11816  eval "$as_ac_Header=\$ac_header_preproc"
11817fi
11818ac_res=`eval echo '${'$as_ac_Header'}'`
11819	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11820echo "${ECHO_T}$ac_res" >&6; }
11821
11822fi
11823if test `eval echo '${'$as_ac_Header'}'` = yes; then
11824  cat >>confdefs.h <<_ACEOF
11825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11826_ACEOF
11827
11828fi
11829
11830done
11831
11832
11833for ac_header in valgrind/valgrind.h
11834do
11835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840  echo $ECHO_N "(cached) $ECHO_C" >&6
11841fi
11842ac_res=`eval echo '${'$as_ac_Header'}'`
11843	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11844echo "${ECHO_T}$ac_res" >&6; }
11845else
11846  # Is the header compilable?
11847{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11849cat >conftest.$ac_ext <<_ACEOF
11850/* confdefs.h.  */
11851_ACEOF
11852cat confdefs.h >>conftest.$ac_ext
11853cat >>conftest.$ac_ext <<_ACEOF
11854/* end confdefs.h.  */
11855$ac_includes_default
11856#include <$ac_header>
11857_ACEOF
11858rm -f conftest.$ac_objext
11859if { (ac_try="$ac_compile"
11860case "(($ac_try" in
11861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862  *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865  (eval "$ac_compile") 2>conftest.er1
11866  ac_status=$?
11867  grep -v '^ *+' conftest.er1 >conftest.err
11868  rm -f conftest.er1
11869  cat conftest.err >&5
11870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871  (exit $ac_status); } &&
11872	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873  { (case "(($ac_try" in
11874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875  *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878  (eval "$ac_try") 2>&5
11879  ac_status=$?
11880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881  (exit $ac_status); }; } &&
11882	 { ac_try='test -s conftest.$ac_objext'
11883  { (case "(($ac_try" in
11884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885  *) ac_try_echo=$ac_try;;
11886esac
11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888  (eval "$ac_try") 2>&5
11889  ac_status=$?
11890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891  (exit $ac_status); }; }; then
11892  ac_header_compiler=yes
11893else
11894  echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897	ac_header_compiler=no
11898fi
11899
11900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11902echo "${ECHO_T}$ac_header_compiler" >&6; }
11903
11904# Is the header present?
11905{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11907cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h.  */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h.  */
11913#include <$ac_header>
11914_ACEOF
11915if { (ac_try="$ac_cpp conftest.$ac_ext"
11916case "(($ac_try" in
11917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918  *) ac_try_echo=$ac_try;;
11919esac
11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11922  ac_status=$?
11923  grep -v '^ *+' conftest.er1 >conftest.err
11924  rm -f conftest.er1
11925  cat conftest.err >&5
11926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927  (exit $ac_status); } >/dev/null; then
11928  if test -s conftest.err; then
11929    ac_cpp_err=$ac_c_preproc_warn_flag
11930    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11931  else
11932    ac_cpp_err=
11933  fi
11934else
11935  ac_cpp_err=yes
11936fi
11937if test -z "$ac_cpp_err"; then
11938  ac_header_preproc=yes
11939else
11940  echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
11943  ac_header_preproc=no
11944fi
11945
11946rm -f conftest.err conftest.$ac_ext
11947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11948echo "${ECHO_T}$ac_header_preproc" >&6; }
11949
11950# So?  What about this header?
11951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11952  yes:no: )
11953    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11957    ac_header_preproc=yes
11958    ;;
11959  no:yes:* )
11960    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11962    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11963echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11964    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11966    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11967echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11968    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11970    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11972    ( cat <<\_ASBOX
11973## ------------------------------------ ##
11974## Report this to http://llvm.org/bugs/ ##
11975## ------------------------------------ ##
11976_ASBOX
11977     ) | sed "s/^/$as_me: WARNING:     /" >&2
11978    ;;
11979esac
11980{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983  echo $ECHO_N "(cached) $ECHO_C" >&6
11984else
11985  eval "$as_ac_Header=\$ac_header_preproc"
11986fi
11987ac_res=`eval echo '${'$as_ac_Header'}'`
11988	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11989echo "${ECHO_T}$ac_res" >&6; }
11990
11991fi
11992if test `eval echo '${'$as_ac_Header'}'` = yes; then
11993  cat >>confdefs.h <<_ACEOF
11994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11995_ACEOF
11996
11997fi
11998
11999done
12000
12001
12002for ac_header in fenv.h
12003do
12004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12009  echo $ECHO_N "(cached) $ECHO_C" >&6
12010fi
12011ac_res=`eval echo '${'$as_ac_Header'}'`
12012	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12013echo "${ECHO_T}$ac_res" >&6; }
12014else
12015  # Is the header compilable?
12016{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12017echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12018cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h.  */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h.  */
12024$ac_includes_default
12025#include <$ac_header>
12026_ACEOF
12027rm -f conftest.$ac_objext
12028if { (ac_try="$ac_compile"
12029case "(($ac_try" in
12030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031  *) ac_try_echo=$ac_try;;
12032esac
12033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034  (eval "$ac_compile") 2>conftest.er1
12035  ac_status=$?
12036  grep -v '^ *+' conftest.er1 >conftest.err
12037  rm -f conftest.er1
12038  cat conftest.err >&5
12039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040  (exit $ac_status); } &&
12041	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042  { (case "(($ac_try" in
12043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044  *) ac_try_echo=$ac_try;;
12045esac
12046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047  (eval "$ac_try") 2>&5
12048  ac_status=$?
12049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050  (exit $ac_status); }; } &&
12051	 { ac_try='test -s conftest.$ac_objext'
12052  { (case "(($ac_try" in
12053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054  *) ac_try_echo=$ac_try;;
12055esac
12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057  (eval "$ac_try") 2>&5
12058  ac_status=$?
12059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); }; }; then
12061  ac_header_compiler=yes
12062else
12063  echo "$as_me: failed program was:" >&5
12064sed 's/^/| /' conftest.$ac_ext >&5
12065
12066	ac_header_compiler=no
12067fi
12068
12069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071echo "${ECHO_T}$ac_header_compiler" >&6; }
12072
12073# Is the header present?
12074{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12076cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h.  */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h.  */
12082#include <$ac_header>
12083_ACEOF
12084if { (ac_try="$ac_cpp conftest.$ac_ext"
12085case "(($ac_try" in
12086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087  *) ac_try_echo=$ac_try;;
12088esac
12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12091  ac_status=$?
12092  grep -v '^ *+' conftest.er1 >conftest.err
12093  rm -f conftest.er1
12094  cat conftest.err >&5
12095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096  (exit $ac_status); } >/dev/null; then
12097  if test -s conftest.err; then
12098    ac_cpp_err=$ac_c_preproc_warn_flag
12099    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12100  else
12101    ac_cpp_err=
12102  fi
12103else
12104  ac_cpp_err=yes
12105fi
12106if test -z "$ac_cpp_err"; then
12107  ac_header_preproc=yes
12108else
12109  echo "$as_me: failed program was:" >&5
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112  ac_header_preproc=no
12113fi
12114
12115rm -f conftest.err conftest.$ac_ext
12116{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12117echo "${ECHO_T}$ac_header_preproc" >&6; }
12118
12119# So?  What about this header?
12120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12121  yes:no: )
12122    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12124    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12126    ac_header_preproc=yes
12127    ;;
12128  no:yes:* )
12129    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12131    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12132echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12133    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12135    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12136echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12137    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12139    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12141    ( cat <<\_ASBOX
12142## ------------------------------------ ##
12143## Report this to http://llvm.org/bugs/ ##
12144## ------------------------------------ ##
12145_ASBOX
12146     ) | sed "s/^/$as_me: WARNING:     /" >&2
12147    ;;
12148esac
12149{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12152  echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154  eval "$as_ac_Header=\$ac_header_preproc"
12155fi
12156ac_res=`eval echo '${'$as_ac_Header'}'`
12157	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12158echo "${ECHO_T}$ac_res" >&6; }
12159
12160fi
12161if test `eval echo '${'$as_ac_Header'}'` = yes; then
12162  cat >>confdefs.h <<_ACEOF
12163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12164_ACEOF
12165
12166fi
12167
12168done
12169
12170{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12171echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12172if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12173  echo $ECHO_N "(cached) $ECHO_C" >&6
12174else
12175  cat >conftest.$ac_ext <<_ACEOF
12176/* confdefs.h.  */
12177_ACEOF
12178cat confdefs.h >>conftest.$ac_ext
12179cat >>conftest.$ac_ext <<_ACEOF
12180/* end confdefs.h.  */
12181#include <fenv.h>
12182
12183int
12184main ()
12185{
12186#ifndef FE_ALL_EXCEPT
12187  char *p = (char *) FE_ALL_EXCEPT;
12188  return !p;
12189#endif
12190
12191  ;
12192  return 0;
12193}
12194_ACEOF
12195rm -f conftest.$ac_objext
12196if { (ac_try="$ac_compile"
12197case "(($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_compile") 2>conftest.er1
12203  ac_status=$?
12204  grep -v '^ *+' conftest.er1 >conftest.err
12205  rm -f conftest.er1
12206  cat conftest.err >&5
12207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208  (exit $ac_status); } &&
12209	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210  { (case "(($ac_try" in
12211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212  *) ac_try_echo=$ac_try;;
12213esac
12214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215  (eval "$ac_try") 2>&5
12216  ac_status=$?
12217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218  (exit $ac_status); }; } &&
12219	 { ac_try='test -s conftest.$ac_objext'
12220  { (case "(($ac_try" in
12221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222  *) ac_try_echo=$ac_try;;
12223esac
12224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225  (eval "$ac_try") 2>&5
12226  ac_status=$?
12227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228  (exit $ac_status); }; }; then
12229  ac_cv_have_decl_FE_ALL_EXCEPT=yes
12230else
12231  echo "$as_me: failed program was:" >&5
12232sed 's/^/| /' conftest.$ac_ext >&5
12233
12234	ac_cv_have_decl_FE_ALL_EXCEPT=no
12235fi
12236
12237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238fi
12239{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12240echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12241if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12242
12243cat >>confdefs.h <<_ACEOF
12244#define HAVE_DECL_FE_ALL_EXCEPT 1
12245_ACEOF
12246
12247
12248else
12249  cat >>confdefs.h <<_ACEOF
12250#define HAVE_DECL_FE_ALL_EXCEPT 0
12251_ACEOF
12252
12253
12254fi
12255{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12256echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12257if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12258  echo $ECHO_N "(cached) $ECHO_C" >&6
12259else
12260  cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h.  */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h.  */
12266#include <fenv.h>
12267
12268int
12269main ()
12270{
12271#ifndef FE_INEXACT
12272  char *p = (char *) FE_INEXACT;
12273  return !p;
12274#endif
12275
12276  ;
12277  return 0;
12278}
12279_ACEOF
12280rm -f conftest.$ac_objext
12281if { (ac_try="$ac_compile"
12282case "(($ac_try" in
12283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284  *) ac_try_echo=$ac_try;;
12285esac
12286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287  (eval "$ac_compile") 2>conftest.er1
12288  ac_status=$?
12289  grep -v '^ *+' conftest.er1 >conftest.err
12290  rm -f conftest.er1
12291  cat conftest.err >&5
12292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293  (exit $ac_status); } &&
12294	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295  { (case "(($ac_try" in
12296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297  *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300  (eval "$ac_try") 2>&5
12301  ac_status=$?
12302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303  (exit $ac_status); }; } &&
12304	 { ac_try='test -s conftest.$ac_objext'
12305  { (case "(($ac_try" in
12306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307  *) ac_try_echo=$ac_try;;
12308esac
12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310  (eval "$ac_try") 2>&5
12311  ac_status=$?
12312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313  (exit $ac_status); }; }; then
12314  ac_cv_have_decl_FE_INEXACT=yes
12315else
12316  echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
12319	ac_cv_have_decl_FE_INEXACT=no
12320fi
12321
12322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12323fi
12324{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12325echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12326if test $ac_cv_have_decl_FE_INEXACT = yes; then
12327
12328cat >>confdefs.h <<_ACEOF
12329#define HAVE_DECL_FE_INEXACT 1
12330_ACEOF
12331
12332
12333else
12334  cat >>confdefs.h <<_ACEOF
12335#define HAVE_DECL_FE_INEXACT 0
12336_ACEOF
12337
12338
12339fi
12340
12341
12342if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12343
12344for ac_header in pthread.h
12345do
12346as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12348  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12351  echo $ECHO_N "(cached) $ECHO_C" >&6
12352fi
12353ac_res=`eval echo '${'$as_ac_Header'}'`
12354	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12355echo "${ECHO_T}$ac_res" >&6; }
12356else
12357  # Is the header compilable?
12358{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12360cat >conftest.$ac_ext <<_ACEOF
12361/* confdefs.h.  */
12362_ACEOF
12363cat confdefs.h >>conftest.$ac_ext
12364cat >>conftest.$ac_ext <<_ACEOF
12365/* end confdefs.h.  */
12366$ac_includes_default
12367#include <$ac_header>
12368_ACEOF
12369rm -f conftest.$ac_objext
12370if { (ac_try="$ac_compile"
12371case "(($ac_try" in
12372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373  *) ac_try_echo=$ac_try;;
12374esac
12375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376  (eval "$ac_compile") 2>conftest.er1
12377  ac_status=$?
12378  grep -v '^ *+' conftest.er1 >conftest.err
12379  rm -f conftest.er1
12380  cat conftest.err >&5
12381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382  (exit $ac_status); } &&
12383	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384  { (case "(($ac_try" in
12385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386  *) ac_try_echo=$ac_try;;
12387esac
12388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389  (eval "$ac_try") 2>&5
12390  ac_status=$?
12391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392  (exit $ac_status); }; } &&
12393	 { ac_try='test -s conftest.$ac_objext'
12394  { (case "(($ac_try" in
12395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396  *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399  (eval "$ac_try") 2>&5
12400  ac_status=$?
12401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402  (exit $ac_status); }; }; then
12403  ac_header_compiler=yes
12404else
12405  echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408	ac_header_compiler=no
12409fi
12410
12411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12413echo "${ECHO_T}$ac_header_compiler" >&6; }
12414
12415# Is the header present?
12416{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12418cat >conftest.$ac_ext <<_ACEOF
12419/* confdefs.h.  */
12420_ACEOF
12421cat confdefs.h >>conftest.$ac_ext
12422cat >>conftest.$ac_ext <<_ACEOF
12423/* end confdefs.h.  */
12424#include <$ac_header>
12425_ACEOF
12426if { (ac_try="$ac_cpp conftest.$ac_ext"
12427case "(($ac_try" in
12428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429  *) ac_try_echo=$ac_try;;
12430esac
12431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12433  ac_status=$?
12434  grep -v '^ *+' conftest.er1 >conftest.err
12435  rm -f conftest.er1
12436  cat conftest.err >&5
12437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438  (exit $ac_status); } >/dev/null; then
12439  if test -s conftest.err; then
12440    ac_cpp_err=$ac_c_preproc_warn_flag
12441    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12442  else
12443    ac_cpp_err=
12444  fi
12445else
12446  ac_cpp_err=yes
12447fi
12448if test -z "$ac_cpp_err"; then
12449  ac_header_preproc=yes
12450else
12451  echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454  ac_header_preproc=no
12455fi
12456
12457rm -f conftest.err conftest.$ac_ext
12458{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12459echo "${ECHO_T}$ac_header_preproc" >&6; }
12460
12461# So?  What about this header?
12462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12463  yes:no: )
12464    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12468    ac_header_preproc=yes
12469    ;;
12470  no:yes:* )
12471    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12473    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12474echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12475    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12477    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12478echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12479    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12481    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12483    ( cat <<\_ASBOX
12484## ------------------------------------ ##
12485## Report this to http://llvm.org/bugs/ ##
12486## ------------------------------------ ##
12487_ASBOX
12488     ) | sed "s/^/$as_me: WARNING:     /" >&2
12489    ;;
12490esac
12491{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12494  echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496  eval "$as_ac_Header=\$ac_header_preproc"
12497fi
12498ac_res=`eval echo '${'$as_ac_Header'}'`
12499	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12500echo "${ECHO_T}$ac_res" >&6; }
12501
12502fi
12503if test `eval echo '${'$as_ac_Header'}'` = yes; then
12504  cat >>confdefs.h <<_ACEOF
12505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12506_ACEOF
12507 HAVE_PTHREAD=1
12508
12509else
12510  HAVE_PTHREAD=0
12511
12512fi
12513
12514done
12515
12516else
12517  HAVE_PTHREAD=0
12518
12519fi
12520if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12521
12522for ac_header in zlib.h
12523do
12524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12526  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12529  echo $ECHO_N "(cached) $ECHO_C" >&6
12530fi
12531ac_res=`eval echo '${'$as_ac_Header'}'`
12532	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12533echo "${ECHO_T}$ac_res" >&6; }
12534else
12535  # Is the header compilable?
12536{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12538cat >conftest.$ac_ext <<_ACEOF
12539/* confdefs.h.  */
12540_ACEOF
12541cat confdefs.h >>conftest.$ac_ext
12542cat >>conftest.$ac_ext <<_ACEOF
12543/* end confdefs.h.  */
12544$ac_includes_default
12545#include <$ac_header>
12546_ACEOF
12547rm -f conftest.$ac_objext
12548if { (ac_try="$ac_compile"
12549case "(($ac_try" in
12550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551  *) ac_try_echo=$ac_try;;
12552esac
12553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554  (eval "$ac_compile") 2>conftest.er1
12555  ac_status=$?
12556  grep -v '^ *+' conftest.er1 >conftest.err
12557  rm -f conftest.er1
12558  cat conftest.err >&5
12559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560  (exit $ac_status); } &&
12561	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12562  { (case "(($ac_try" in
12563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564  *) ac_try_echo=$ac_try;;
12565esac
12566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567  (eval "$ac_try") 2>&5
12568  ac_status=$?
12569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570  (exit $ac_status); }; } &&
12571	 { ac_try='test -s conftest.$ac_objext'
12572  { (case "(($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_try") 2>&5
12578  ac_status=$?
12579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580  (exit $ac_status); }; }; then
12581  ac_header_compiler=yes
12582else
12583  echo "$as_me: failed program was:" >&5
12584sed 's/^/| /' conftest.$ac_ext >&5
12585
12586	ac_header_compiler=no
12587fi
12588
12589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12591echo "${ECHO_T}$ac_header_compiler" >&6; }
12592
12593# Is the header present?
12594{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12595echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12596cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h.  */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h.  */
12602#include <$ac_header>
12603_ACEOF
12604if { (ac_try="$ac_cpp conftest.$ac_ext"
12605case "(($ac_try" in
12606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607  *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12611  ac_status=$?
12612  grep -v '^ *+' conftest.er1 >conftest.err
12613  rm -f conftest.er1
12614  cat conftest.err >&5
12615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616  (exit $ac_status); } >/dev/null; then
12617  if test -s conftest.err; then
12618    ac_cpp_err=$ac_c_preproc_warn_flag
12619    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12620  else
12621    ac_cpp_err=
12622  fi
12623else
12624  ac_cpp_err=yes
12625fi
12626if test -z "$ac_cpp_err"; then
12627  ac_header_preproc=yes
12628else
12629  echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
12632  ac_header_preproc=no
12633fi
12634
12635rm -f conftest.err conftest.$ac_ext
12636{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12637echo "${ECHO_T}$ac_header_preproc" >&6; }
12638
12639# So?  What about this header?
12640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12641  yes:no: )
12642    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12644    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12645echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12646    ac_header_preproc=yes
12647    ;;
12648  no:yes:* )
12649    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12650echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12651    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12652echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12653    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12654echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12655    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12656echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12657    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12658echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12659    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12660echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12661    ( cat <<\_ASBOX
12662## ------------------------------------ ##
12663## Report this to http://llvm.org/bugs/ ##
12664## ------------------------------------ ##
12665_ASBOX
12666     ) | sed "s/^/$as_me: WARNING:     /" >&2
12667    ;;
12668esac
12669{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12672  echo $ECHO_N "(cached) $ECHO_C" >&6
12673else
12674  eval "$as_ac_Header=\$ac_header_preproc"
12675fi
12676ac_res=`eval echo '${'$as_ac_Header'}'`
12677	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12678echo "${ECHO_T}$ac_res" >&6; }
12679
12680fi
12681if test `eval echo '${'$as_ac_Header'}'` = yes; then
12682  cat >>confdefs.h <<_ACEOF
12683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12684_ACEOF
12685 HAVE_LIBZ=1
12686
12687else
12688  HAVE_LIBZ=0
12689
12690fi
12691
12692done
12693
12694else
12695  HAVE_LIBZ=0
12696
12697fi
12698
12699if test "$llvm_cv_enable_libffi" = "yes" ; then
12700
12701
12702for ac_header in ffi.h ffi/ffi.h
12703do
12704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12706  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12709  echo $ECHO_N "(cached) $ECHO_C" >&6
12710fi
12711ac_res=`eval echo '${'$as_ac_Header'}'`
12712	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12713echo "${ECHO_T}$ac_res" >&6; }
12714else
12715  # Is the header compilable?
12716{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12718cat >conftest.$ac_ext <<_ACEOF
12719/* confdefs.h.  */
12720_ACEOF
12721cat confdefs.h >>conftest.$ac_ext
12722cat >>conftest.$ac_ext <<_ACEOF
12723/* end confdefs.h.  */
12724$ac_includes_default
12725#include <$ac_header>
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (ac_try="$ac_compile"
12729case "(($ac_try" in
12730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731  *) ac_try_echo=$ac_try;;
12732esac
12733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734  (eval "$ac_compile") 2>conftest.er1
12735  ac_status=$?
12736  grep -v '^ *+' conftest.er1 >conftest.err
12737  rm -f conftest.er1
12738  cat conftest.err >&5
12739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740  (exit $ac_status); } &&
12741	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742  { (case "(($ac_try" in
12743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744  *) ac_try_echo=$ac_try;;
12745esac
12746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747  (eval "$ac_try") 2>&5
12748  ac_status=$?
12749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750  (exit $ac_status); }; } &&
12751	 { ac_try='test -s conftest.$ac_objext'
12752  { (case "(($ac_try" in
12753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754  *) ac_try_echo=$ac_try;;
12755esac
12756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757  (eval "$ac_try") 2>&5
12758  ac_status=$?
12759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760  (exit $ac_status); }; }; then
12761  ac_header_compiler=yes
12762else
12763  echo "$as_me: failed program was:" >&5
12764sed 's/^/| /' conftest.$ac_ext >&5
12765
12766	ac_header_compiler=no
12767fi
12768
12769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12771echo "${ECHO_T}$ac_header_compiler" >&6; }
12772
12773# Is the header present?
12774{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12775echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12776cat >conftest.$ac_ext <<_ACEOF
12777/* confdefs.h.  */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h.  */
12782#include <$ac_header>
12783_ACEOF
12784if { (ac_try="$ac_cpp conftest.$ac_ext"
12785case "(($ac_try" in
12786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787  *) ac_try_echo=$ac_try;;
12788esac
12789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12791  ac_status=$?
12792  grep -v '^ *+' conftest.er1 >conftest.err
12793  rm -f conftest.er1
12794  cat conftest.err >&5
12795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796  (exit $ac_status); } >/dev/null; then
12797  if test -s conftest.err; then
12798    ac_cpp_err=$ac_c_preproc_warn_flag
12799    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12800  else
12801    ac_cpp_err=
12802  fi
12803else
12804  ac_cpp_err=yes
12805fi
12806if test -z "$ac_cpp_err"; then
12807  ac_header_preproc=yes
12808else
12809  echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
12812  ac_header_preproc=no
12813fi
12814
12815rm -f conftest.err conftest.$ac_ext
12816{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12817echo "${ECHO_T}$ac_header_preproc" >&6; }
12818
12819# So?  What about this header?
12820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12821  yes:no: )
12822    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12824    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12826    ac_header_preproc=yes
12827    ;;
12828  no:yes:* )
12829    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12831    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12832echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12833    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12835    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12836echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12837    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12839    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12841    ( cat <<\_ASBOX
12842## ------------------------------------ ##
12843## Report this to http://llvm.org/bugs/ ##
12844## ------------------------------------ ##
12845_ASBOX
12846     ) | sed "s/^/$as_me: WARNING:     /" >&2
12847    ;;
12848esac
12849{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12852  echo $ECHO_N "(cached) $ECHO_C" >&6
12853else
12854  eval "$as_ac_Header=\$ac_header_preproc"
12855fi
12856ac_res=`eval echo '${'$as_ac_Header'}'`
12857	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12858echo "${ECHO_T}$ac_res" >&6; }
12859
12860fi
12861if test `eval echo '${'$as_ac_Header'}'` = yes; then
12862  cat >>confdefs.h <<_ACEOF
12863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12864_ACEOF
12865
12866fi
12867
12868done
12869
12870fi
12871
12872
12873for ac_header in CrashReporterClient.h
12874do
12875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12877  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12880  echo $ECHO_N "(cached) $ECHO_C" >&6
12881fi
12882ac_res=`eval echo '${'$as_ac_Header'}'`
12883	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12884echo "${ECHO_T}$ac_res" >&6; }
12885else
12886  # Is the header compilable?
12887{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12889cat >conftest.$ac_ext <<_ACEOF
12890/* confdefs.h.  */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h.  */
12895$ac_includes_default
12896#include <$ac_header>
12897_ACEOF
12898rm -f conftest.$ac_objext
12899if { (ac_try="$ac_compile"
12900case "(($ac_try" in
12901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902  *) ac_try_echo=$ac_try;;
12903esac
12904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905  (eval "$ac_compile") 2>conftest.er1
12906  ac_status=$?
12907  grep -v '^ *+' conftest.er1 >conftest.err
12908  rm -f conftest.er1
12909  cat conftest.err >&5
12910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911  (exit $ac_status); } &&
12912	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12913  { (case "(($ac_try" in
12914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915  *) ac_try_echo=$ac_try;;
12916esac
12917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918  (eval "$ac_try") 2>&5
12919  ac_status=$?
12920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921  (exit $ac_status); }; } &&
12922	 { ac_try='test -s conftest.$ac_objext'
12923  { (case "(($ac_try" in
12924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925  *) ac_try_echo=$ac_try;;
12926esac
12927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928  (eval "$ac_try") 2>&5
12929  ac_status=$?
12930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931  (exit $ac_status); }; }; then
12932  ac_header_compiler=yes
12933else
12934  echo "$as_me: failed program was:" >&5
12935sed 's/^/| /' conftest.$ac_ext >&5
12936
12937	ac_header_compiler=no
12938fi
12939
12940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12942echo "${ECHO_T}$ac_header_compiler" >&6; }
12943
12944# Is the header present?
12945{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12947cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h.  */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h.  */
12953#include <$ac_header>
12954_ACEOF
12955if { (ac_try="$ac_cpp conftest.$ac_ext"
12956case "(($ac_try" in
12957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958  *) ac_try_echo=$ac_try;;
12959esac
12960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12962  ac_status=$?
12963  grep -v '^ *+' conftest.er1 >conftest.err
12964  rm -f conftest.er1
12965  cat conftest.err >&5
12966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967  (exit $ac_status); } >/dev/null; then
12968  if test -s conftest.err; then
12969    ac_cpp_err=$ac_c_preproc_warn_flag
12970    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12971  else
12972    ac_cpp_err=
12973  fi
12974else
12975  ac_cpp_err=yes
12976fi
12977if test -z "$ac_cpp_err"; then
12978  ac_header_preproc=yes
12979else
12980  echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983  ac_header_preproc=no
12984fi
12985
12986rm -f conftest.err conftest.$ac_ext
12987{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12988echo "${ECHO_T}$ac_header_preproc" >&6; }
12989
12990# So?  What about this header?
12991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12992  yes:no: )
12993    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12995    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12997    ac_header_preproc=yes
12998    ;;
12999  no:yes:* )
13000    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13002    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13003echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13004    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13006    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13007echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13008    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13010    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13012    ( cat <<\_ASBOX
13013## ------------------------------------ ##
13014## Report this to http://llvm.org/bugs/ ##
13015## ------------------------------------ ##
13016_ASBOX
13017     ) | sed "s/^/$as_me: WARNING:     /" >&2
13018    ;;
13019esac
13020{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13023  echo $ECHO_N "(cached) $ECHO_C" >&6
13024else
13025  eval "$as_ac_Header=\$ac_header_preproc"
13026fi
13027ac_res=`eval echo '${'$as_ac_Header'}'`
13028	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13029echo "${ECHO_T}$ac_res" >&6; }
13030
13031fi
13032if test `eval echo '${'$as_ac_Header'}'` = yes; then
13033  cat >>confdefs.h <<_ACEOF
13034#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13035_ACEOF
13036
13037fi
13038
13039done
13040
13041
13042{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13043echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13044cat >conftest.$ac_ext <<_ACEOF
13045
13046  /* confdefs.h.  */
13047_ACEOF
13048cat confdefs.h >>conftest.$ac_ext
13049cat >>conftest.$ac_ext <<_ACEOF
13050/* end confdefs.h.  */
13051
13052    extern const char *__crashreporter_info__;
13053    int main() {
13054      __crashreporter_info__ = "test";
13055      return 0;
13056    }
13057
13058
13059_ACEOF
13060rm -f conftest.$ac_objext conftest$ac_exeext
13061if { (ac_try="$ac_link"
13062case "(($ac_try" in
13063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064  *) ac_try_echo=$ac_try;;
13065esac
13066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067  (eval "$ac_link") 2>conftest.er1
13068  ac_status=$?
13069  grep -v '^ *+' conftest.er1 >conftest.err
13070  rm -f conftest.er1
13071  cat conftest.err >&5
13072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073  (exit $ac_status); } &&
13074	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075  { (case "(($ac_try" in
13076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077  *) ac_try_echo=$ac_try;;
13078esac
13079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080  (eval "$ac_try") 2>&5
13081  ac_status=$?
13082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083  (exit $ac_status); }; } &&
13084	 { ac_try='test -s conftest$ac_exeext'
13085  { (case "(($ac_try" in
13086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087  *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090  (eval "$ac_try") 2>&5
13091  ac_status=$?
13092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093  (exit $ac_status); }; }; then
13094
13095  { echo "$as_me:$LINENO: result: yes" >&5
13096echo "${ECHO_T}yes" >&6; }
13097
13098cat >>confdefs.h <<\_ACEOF
13099#define HAVE_CRASHREPORTER_INFO 1
13100_ACEOF
13101
13102
13103else
13104  echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107
13108  { echo "$as_me:$LINENO: result: no" >&5
13109echo "${ECHO_T}no" >&6; }
13110
13111cat >>confdefs.h <<\_ACEOF
13112#define HAVE_CRASHREPORTER_INFO 0
13113_ACEOF
13114
13115
13116fi
13117
13118rm -f core conftest.err conftest.$ac_objext \
13119      conftest$ac_exeext conftest.$ac_ext
13120
13121
13122
13123  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13124echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13125if test "${ac_cv_huge_val_sanity+set}" = set; then
13126  echo $ECHO_N "(cached) $ECHO_C" >&6
13127else
13128
13129    ac_ext=cpp
13130ac_cpp='$CXXCPP $CPPFLAGS'
13131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13134
13135    ac_save_CXXFLAGS=$CXXFLAGS
13136    CXXFLAGS="$CXXFLAGS -pedantic"
13137    if test "$cross_compiling" = yes; then
13138  ac_cv_huge_val_sanity=yes
13139else
13140  cat >conftest.$ac_ext <<_ACEOF
13141/* confdefs.h.  */
13142_ACEOF
13143cat confdefs.h >>conftest.$ac_ext
13144cat >>conftest.$ac_ext <<_ACEOF
13145/* end confdefs.h.  */
13146#include <math.h>
13147int
13148main ()
13149{
13150double x = HUGE_VAL; return x != x;
13151  ;
13152  return 0;
13153}
13154_ACEOF
13155rm -f conftest$ac_exeext
13156if { (ac_try="$ac_link"
13157case "(($ac_try" in
13158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159  *) ac_try_echo=$ac_try;;
13160esac
13161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162  (eval "$ac_link") 2>&5
13163  ac_status=$?
13164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13166  { (case "(($ac_try" in
13167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168  *) ac_try_echo=$ac_try;;
13169esac
13170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171  (eval "$ac_try") 2>&5
13172  ac_status=$?
13173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174  (exit $ac_status); }; }; then
13175  ac_cv_huge_val_sanity=yes
13176else
13177  echo "$as_me: program exited with status $ac_status" >&5
13178echo "$as_me: failed program was:" >&5
13179sed 's/^/| /' conftest.$ac_ext >&5
13180
13181( exit $ac_status )
13182ac_cv_huge_val_sanity=no
13183fi
13184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13185fi
13186
13187
13188    CXXFLAGS=$ac_save_CXXFLAGS
13189    ac_ext=c
13190ac_cpp='$CPP $CPPFLAGS'
13191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193ac_compiler_gnu=$ac_cv_c_compiler_gnu
13194
13195
13196fi
13197{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13198echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13199  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13200
13201
13202{ echo "$as_me:$LINENO: checking for pid_t" >&5
13203echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13204if test "${ac_cv_type_pid_t+set}" = set; then
13205  echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207  cat >conftest.$ac_ext <<_ACEOF
13208/* confdefs.h.  */
13209_ACEOF
13210cat confdefs.h >>conftest.$ac_ext
13211cat >>conftest.$ac_ext <<_ACEOF
13212/* end confdefs.h.  */
13213$ac_includes_default
13214typedef pid_t ac__type_new_;
13215int
13216main ()
13217{
13218if ((ac__type_new_ *) 0)
13219  return 0;
13220if (sizeof (ac__type_new_))
13221  return 0;
13222  ;
13223  return 0;
13224}
13225_ACEOF
13226rm -f conftest.$ac_objext
13227if { (ac_try="$ac_compile"
13228case "(($ac_try" in
13229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230  *) ac_try_echo=$ac_try;;
13231esac
13232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233  (eval "$ac_compile") 2>conftest.er1
13234  ac_status=$?
13235  grep -v '^ *+' conftest.er1 >conftest.err
13236  rm -f conftest.er1
13237  cat conftest.err >&5
13238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239  (exit $ac_status); } &&
13240	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241  { (case "(($ac_try" in
13242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243  *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246  (eval "$ac_try") 2>&5
13247  ac_status=$?
13248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249  (exit $ac_status); }; } &&
13250	 { ac_try='test -s conftest.$ac_objext'
13251  { (case "(($ac_try" in
13252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253  *) ac_try_echo=$ac_try;;
13254esac
13255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256  (eval "$ac_try") 2>&5
13257  ac_status=$?
13258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259  (exit $ac_status); }; }; then
13260  ac_cv_type_pid_t=yes
13261else
13262  echo "$as_me: failed program was:" >&5
13263sed 's/^/| /' conftest.$ac_ext >&5
13264
13265	ac_cv_type_pid_t=no
13266fi
13267
13268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13269fi
13270{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13271echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13272if test $ac_cv_type_pid_t = yes; then
13273  :
13274else
13275
13276cat >>confdefs.h <<_ACEOF
13277#define pid_t int
13278_ACEOF
13279
13280fi
13281
13282{ echo "$as_me:$LINENO: checking for size_t" >&5
13283echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13284if test "${ac_cv_type_size_t+set}" = set; then
13285  echo $ECHO_N "(cached) $ECHO_C" >&6
13286else
13287  cat >conftest.$ac_ext <<_ACEOF
13288/* confdefs.h.  */
13289_ACEOF
13290cat confdefs.h >>conftest.$ac_ext
13291cat >>conftest.$ac_ext <<_ACEOF
13292/* end confdefs.h.  */
13293$ac_includes_default
13294typedef size_t ac__type_new_;
13295int
13296main ()
13297{
13298if ((ac__type_new_ *) 0)
13299  return 0;
13300if (sizeof (ac__type_new_))
13301  return 0;
13302  ;
13303  return 0;
13304}
13305_ACEOF
13306rm -f conftest.$ac_objext
13307if { (ac_try="$ac_compile"
13308case "(($ac_try" in
13309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310  *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313  (eval "$ac_compile") 2>conftest.er1
13314  ac_status=$?
13315  grep -v '^ *+' conftest.er1 >conftest.err
13316  rm -f conftest.er1
13317  cat conftest.err >&5
13318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319  (exit $ac_status); } &&
13320	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321  { (case "(($ac_try" in
13322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323  *) ac_try_echo=$ac_try;;
13324esac
13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326  (eval "$ac_try") 2>&5
13327  ac_status=$?
13328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329  (exit $ac_status); }; } &&
13330	 { ac_try='test -s conftest.$ac_objext'
13331  { (case "(($ac_try" in
13332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333  *) ac_try_echo=$ac_try;;
13334esac
13335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336  (eval "$ac_try") 2>&5
13337  ac_status=$?
13338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339  (exit $ac_status); }; }; then
13340  ac_cv_type_size_t=yes
13341else
13342  echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345	ac_cv_type_size_t=no
13346fi
13347
13348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349fi
13350{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13351echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13352if test $ac_cv_type_size_t = yes; then
13353  :
13354else
13355
13356cat >>confdefs.h <<_ACEOF
13357#define size_t unsigned int
13358_ACEOF
13359
13360fi
13361
13362
13363cat >>confdefs.h <<_ACEOF
13364#define RETSIGTYPE void
13365_ACEOF
13366
13367{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13368echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13369if test "${ac_cv_struct_tm+set}" = set; then
13370  echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372  cat >conftest.$ac_ext <<_ACEOF
13373/* confdefs.h.  */
13374_ACEOF
13375cat confdefs.h >>conftest.$ac_ext
13376cat >>conftest.$ac_ext <<_ACEOF
13377/* end confdefs.h.  */
13378#include <sys/types.h>
13379#include <time.h>
13380
13381int
13382main ()
13383{
13384struct tm *tp; tp->tm_sec;
13385  ;
13386  return 0;
13387}
13388_ACEOF
13389rm -f conftest.$ac_objext
13390if { (ac_try="$ac_compile"
13391case "(($ac_try" in
13392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393  *) ac_try_echo=$ac_try;;
13394esac
13395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396  (eval "$ac_compile") 2>conftest.er1
13397  ac_status=$?
13398  grep -v '^ *+' conftest.er1 >conftest.err
13399  rm -f conftest.er1
13400  cat conftest.err >&5
13401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402  (exit $ac_status); } &&
13403	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13404  { (case "(($ac_try" in
13405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406  *) ac_try_echo=$ac_try;;
13407esac
13408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409  (eval "$ac_try") 2>&5
13410  ac_status=$?
13411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412  (exit $ac_status); }; } &&
13413	 { ac_try='test -s conftest.$ac_objext'
13414  { (case "(($ac_try" in
13415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416  *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419  (eval "$ac_try") 2>&5
13420  ac_status=$?
13421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422  (exit $ac_status); }; }; then
13423  ac_cv_struct_tm=time.h
13424else
13425  echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
13428	ac_cv_struct_tm=sys/time.h
13429fi
13430
13431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432fi
13433{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13434echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13435if test $ac_cv_struct_tm = sys/time.h; then
13436
13437cat >>confdefs.h <<\_ACEOF
13438#define TM_IN_SYS_TIME 1
13439_ACEOF
13440
13441fi
13442
13443{ echo "$as_me:$LINENO: checking for int64_t" >&5
13444echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13445if test "${ac_cv_type_int64_t+set}" = set; then
13446  echo $ECHO_N "(cached) $ECHO_C" >&6
13447else
13448  cat >conftest.$ac_ext <<_ACEOF
13449/* confdefs.h.  */
13450_ACEOF
13451cat confdefs.h >>conftest.$ac_ext
13452cat >>conftest.$ac_ext <<_ACEOF
13453/* end confdefs.h.  */
13454$ac_includes_default
13455typedef int64_t ac__type_new_;
13456int
13457main ()
13458{
13459if ((ac__type_new_ *) 0)
13460  return 0;
13461if (sizeof (ac__type_new_))
13462  return 0;
13463  ;
13464  return 0;
13465}
13466_ACEOF
13467rm -f conftest.$ac_objext
13468if { (ac_try="$ac_compile"
13469case "(($ac_try" in
13470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471  *) ac_try_echo=$ac_try;;
13472esac
13473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474  (eval "$ac_compile") 2>conftest.er1
13475  ac_status=$?
13476  grep -v '^ *+' conftest.er1 >conftest.err
13477  rm -f conftest.er1
13478  cat conftest.err >&5
13479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480  (exit $ac_status); } &&
13481	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13482  { (case "(($ac_try" in
13483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484  *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487  (eval "$ac_try") 2>&5
13488  ac_status=$?
13489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490  (exit $ac_status); }; } &&
13491	 { ac_try='test -s conftest.$ac_objext'
13492  { (case "(($ac_try" in
13493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494  *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497  (eval "$ac_try") 2>&5
13498  ac_status=$?
13499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500  (exit $ac_status); }; }; then
13501  ac_cv_type_int64_t=yes
13502else
13503  echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
13506	ac_cv_type_int64_t=no
13507fi
13508
13509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510fi
13511{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13512echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13513if test $ac_cv_type_int64_t = yes; then
13514
13515cat >>confdefs.h <<_ACEOF
13516#define HAVE_INT64_T 1
13517_ACEOF
13518
13519
13520else
13521  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13522echo "$as_me: error: Type int64_t required but not found" >&2;}
13523   { (exit 1); exit 1; }; }
13524fi
13525
13526{ echo "$as_me:$LINENO: checking for uint64_t" >&5
13527echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13528if test "${ac_cv_type_uint64_t+set}" = set; then
13529  echo $ECHO_N "(cached) $ECHO_C" >&6
13530else
13531  cat >conftest.$ac_ext <<_ACEOF
13532/* confdefs.h.  */
13533_ACEOF
13534cat confdefs.h >>conftest.$ac_ext
13535cat >>conftest.$ac_ext <<_ACEOF
13536/* end confdefs.h.  */
13537$ac_includes_default
13538typedef uint64_t ac__type_new_;
13539int
13540main ()
13541{
13542if ((ac__type_new_ *) 0)
13543  return 0;
13544if (sizeof (ac__type_new_))
13545  return 0;
13546  ;
13547  return 0;
13548}
13549_ACEOF
13550rm -f conftest.$ac_objext
13551if { (ac_try="$ac_compile"
13552case "(($ac_try" in
13553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554  *) ac_try_echo=$ac_try;;
13555esac
13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557  (eval "$ac_compile") 2>conftest.er1
13558  ac_status=$?
13559  grep -v '^ *+' conftest.er1 >conftest.err
13560  rm -f conftest.er1
13561  cat conftest.err >&5
13562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563  (exit $ac_status); } &&
13564	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565  { (case "(($ac_try" in
13566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567  *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570  (eval "$ac_try") 2>&5
13571  ac_status=$?
13572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573  (exit $ac_status); }; } &&
13574	 { ac_try='test -s conftest.$ac_objext'
13575  { (case "(($ac_try" in
13576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577  *) ac_try_echo=$ac_try;;
13578esac
13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580  (eval "$ac_try") 2>&5
13581  ac_status=$?
13582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583  (exit $ac_status); }; }; then
13584  ac_cv_type_uint64_t=yes
13585else
13586  echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
13589	ac_cv_type_uint64_t=no
13590fi
13591
13592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593fi
13594{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13595echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13596if test $ac_cv_type_uint64_t = yes; then
13597
13598cat >>confdefs.h <<_ACEOF
13599#define HAVE_UINT64_T 1
13600_ACEOF
13601
13602
13603else
13604  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13605echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13606if test "${ac_cv_type_u_int64_t+set}" = set; then
13607  echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609  cat >conftest.$ac_ext <<_ACEOF
13610/* confdefs.h.  */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
13614/* end confdefs.h.  */
13615$ac_includes_default
13616typedef u_int64_t ac__type_new_;
13617int
13618main ()
13619{
13620if ((ac__type_new_ *) 0)
13621  return 0;
13622if (sizeof (ac__type_new_))
13623  return 0;
13624  ;
13625  return 0;
13626}
13627_ACEOF
13628rm -f conftest.$ac_objext
13629if { (ac_try="$ac_compile"
13630case "(($ac_try" in
13631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632  *) ac_try_echo=$ac_try;;
13633esac
13634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635  (eval "$ac_compile") 2>conftest.er1
13636  ac_status=$?
13637  grep -v '^ *+' conftest.er1 >conftest.err
13638  rm -f conftest.er1
13639  cat conftest.err >&5
13640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641  (exit $ac_status); } &&
13642	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13643  { (case "(($ac_try" in
13644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645  *) ac_try_echo=$ac_try;;
13646esac
13647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648  (eval "$ac_try") 2>&5
13649  ac_status=$?
13650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651  (exit $ac_status); }; } &&
13652	 { ac_try='test -s conftest.$ac_objext'
13653  { (case "(($ac_try" in
13654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655  *) ac_try_echo=$ac_try;;
13656esac
13657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658  (eval "$ac_try") 2>&5
13659  ac_status=$?
13660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661  (exit $ac_status); }; }; then
13662  ac_cv_type_u_int64_t=yes
13663else
13664  echo "$as_me: failed program was:" >&5
13665sed 's/^/| /' conftest.$ac_ext >&5
13666
13667	ac_cv_type_u_int64_t=no
13668fi
13669
13670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671fi
13672{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13673echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13674if test $ac_cv_type_u_int64_t = yes; then
13675
13676cat >>confdefs.h <<_ACEOF
13677#define HAVE_U_INT64_T 1
13678_ACEOF
13679
13680
13681else
13682  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13683echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13684   { (exit 1); exit 1; }; }
13685fi
13686
13687fi
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13699do
13700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13701{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13703if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13704  echo $ECHO_N "(cached) $ECHO_C" >&6
13705else
13706  cat >conftest.$ac_ext <<_ACEOF
13707/* confdefs.h.  */
13708_ACEOF
13709cat confdefs.h >>conftest.$ac_ext
13710cat >>conftest.$ac_ext <<_ACEOF
13711/* end confdefs.h.  */
13712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13713   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13714#define $ac_func innocuous_$ac_func
13715
13716/* System header to define __stub macros and hopefully few prototypes,
13717    which can conflict with char $ac_func (); below.
13718    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13719    <limits.h> exists even on freestanding compilers.  */
13720
13721#ifdef __STDC__
13722# include <limits.h>
13723#else
13724# include <assert.h>
13725#endif
13726
13727#undef $ac_func
13728
13729/* Override any GCC internal prototype to avoid an error.
13730   Use char because int might match the return type of a GCC
13731   builtin and then its argument prototype would still apply.  */
13732#ifdef __cplusplus
13733extern "C"
13734#endif
13735char $ac_func ();
13736/* The GNU C library defines this for functions which it implements
13737    to always fail with ENOSYS.  Some functions are actually named
13738    something starting with __ and the normal name is an alias.  */
13739#if defined __stub_$ac_func || defined __stub___$ac_func
13740choke me
13741#endif
13742
13743int
13744main ()
13745{
13746return $ac_func ();
13747  ;
13748  return 0;
13749}
13750_ACEOF
13751rm -f conftest.$ac_objext conftest$ac_exeext
13752if { (ac_try="$ac_link"
13753case "(($ac_try" in
13754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755  *) ac_try_echo=$ac_try;;
13756esac
13757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758  (eval "$ac_link") 2>conftest.er1
13759  ac_status=$?
13760  grep -v '^ *+' conftest.er1 >conftest.err
13761  rm -f conftest.er1
13762  cat conftest.err >&5
13763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764  (exit $ac_status); } &&
13765	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13766  { (case "(($ac_try" in
13767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768  *) ac_try_echo=$ac_try;;
13769esac
13770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771  (eval "$ac_try") 2>&5
13772  ac_status=$?
13773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774  (exit $ac_status); }; } &&
13775	 { ac_try='test -s conftest$ac_exeext'
13776  { (case "(($ac_try" in
13777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778  *) ac_try_echo=$ac_try;;
13779esac
13780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781  (eval "$ac_try") 2>&5
13782  ac_status=$?
13783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784  (exit $ac_status); }; }; then
13785  eval "$as_ac_var=yes"
13786else
13787  echo "$as_me: failed program was:" >&5
13788sed 's/^/| /' conftest.$ac_ext >&5
13789
13790	eval "$as_ac_var=no"
13791fi
13792
13793rm -f core conftest.err conftest.$ac_objext \
13794      conftest$ac_exeext conftest.$ac_ext
13795fi
13796ac_res=`eval echo '${'$as_ac_var'}'`
13797	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13798echo "${ECHO_T}$ac_res" >&6; }
13799if test `eval echo '${'$as_ac_var'}'` = yes; then
13800  cat >>confdefs.h <<_ACEOF
13801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13802_ACEOF
13803
13804fi
13805done
13806
13807
13808
13809
13810
13811for ac_func in powf fmodf strtof round
13812do
13813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13814{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13817  echo $ECHO_N "(cached) $ECHO_C" >&6
13818else
13819  cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h.  */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h.  */
13825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13826   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13827#define $ac_func innocuous_$ac_func
13828
13829/* System header to define __stub macros and hopefully few prototypes,
13830    which can conflict with char $ac_func (); below.
13831    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13832    <limits.h> exists even on freestanding compilers.  */
13833
13834#ifdef __STDC__
13835# include <limits.h>
13836#else
13837# include <assert.h>
13838#endif
13839
13840#undef $ac_func
13841
13842/* Override any GCC internal prototype to avoid an error.
13843   Use char because int might match the return type of a GCC
13844   builtin and then its argument prototype would still apply.  */
13845#ifdef __cplusplus
13846extern "C"
13847#endif
13848char $ac_func ();
13849/* The GNU C library defines this for functions which it implements
13850    to always fail with ENOSYS.  Some functions are actually named
13851    something starting with __ and the normal name is an alias.  */
13852#if defined __stub_$ac_func || defined __stub___$ac_func
13853choke me
13854#endif
13855
13856int
13857main ()
13858{
13859return $ac_func ();
13860  ;
13861  return 0;
13862}
13863_ACEOF
13864rm -f conftest.$ac_objext conftest$ac_exeext
13865if { (ac_try="$ac_link"
13866case "(($ac_try" in
13867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868  *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871  (eval "$ac_link") 2>conftest.er1
13872  ac_status=$?
13873  grep -v '^ *+' conftest.er1 >conftest.err
13874  rm -f conftest.er1
13875  cat conftest.err >&5
13876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877  (exit $ac_status); } &&
13878	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879  { (case "(($ac_try" in
13880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881  *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884  (eval "$ac_try") 2>&5
13885  ac_status=$?
13886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887  (exit $ac_status); }; } &&
13888	 { ac_try='test -s conftest$ac_exeext'
13889  { (case "(($ac_try" in
13890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891  *) ac_try_echo=$ac_try;;
13892esac
13893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894  (eval "$ac_try") 2>&5
13895  ac_status=$?
13896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897  (exit $ac_status); }; }; then
13898  eval "$as_ac_var=yes"
13899else
13900  echo "$as_me: failed program was:" >&5
13901sed 's/^/| /' conftest.$ac_ext >&5
13902
13903	eval "$as_ac_var=no"
13904fi
13905
13906rm -f core conftest.err conftest.$ac_objext \
13907      conftest$ac_exeext conftest.$ac_ext
13908fi
13909ac_res=`eval echo '${'$as_ac_var'}'`
13910	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13911echo "${ECHO_T}$ac_res" >&6; }
13912if test `eval echo '${'$as_ac_var'}'` = yes; then
13913  cat >>confdefs.h <<_ACEOF
13914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13915_ACEOF
13916
13917fi
13918done
13919
13920
13921
13922
13923
13924
13925for ac_func in log log2 log10 exp exp2
13926do
13927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13928{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13930if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13931  echo $ECHO_N "(cached) $ECHO_C" >&6
13932else
13933  cat >conftest.$ac_ext <<_ACEOF
13934/* confdefs.h.  */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h.  */
13939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13940   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13941#define $ac_func innocuous_$ac_func
13942
13943/* System header to define __stub macros and hopefully few prototypes,
13944    which can conflict with char $ac_func (); below.
13945    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13946    <limits.h> exists even on freestanding compilers.  */
13947
13948#ifdef __STDC__
13949# include <limits.h>
13950#else
13951# include <assert.h>
13952#endif
13953
13954#undef $ac_func
13955
13956/* Override any GCC internal prototype to avoid an error.
13957   Use char because int might match the return type of a GCC
13958   builtin and then its argument prototype would still apply.  */
13959#ifdef __cplusplus
13960extern "C"
13961#endif
13962char $ac_func ();
13963/* The GNU C library defines this for functions which it implements
13964    to always fail with ENOSYS.  Some functions are actually named
13965    something starting with __ and the normal name is an alias.  */
13966#if defined __stub_$ac_func || defined __stub___$ac_func
13967choke me
13968#endif
13969
13970int
13971main ()
13972{
13973return $ac_func ();
13974  ;
13975  return 0;
13976}
13977_ACEOF
13978rm -f conftest.$ac_objext conftest$ac_exeext
13979if { (ac_try="$ac_link"
13980case "(($ac_try" in
13981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982  *) ac_try_echo=$ac_try;;
13983esac
13984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985  (eval "$ac_link") 2>conftest.er1
13986  ac_status=$?
13987  grep -v '^ *+' conftest.er1 >conftest.err
13988  rm -f conftest.er1
13989  cat conftest.err >&5
13990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991  (exit $ac_status); } &&
13992	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13993  { (case "(($ac_try" in
13994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995  *) ac_try_echo=$ac_try;;
13996esac
13997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998  (eval "$ac_try") 2>&5
13999  ac_status=$?
14000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001  (exit $ac_status); }; } &&
14002	 { ac_try='test -s conftest$ac_exeext'
14003  { (case "(($ac_try" in
14004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005  *) ac_try_echo=$ac_try;;
14006esac
14007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008  (eval "$ac_try") 2>&5
14009  ac_status=$?
14010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011  (exit $ac_status); }; }; then
14012  eval "$as_ac_var=yes"
14013else
14014  echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
14017	eval "$as_ac_var=no"
14018fi
14019
14020rm -f core conftest.err conftest.$ac_objext \
14021      conftest$ac_exeext conftest.$ac_ext
14022fi
14023ac_res=`eval echo '${'$as_ac_var'}'`
14024	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14025echo "${ECHO_T}$ac_res" >&6; }
14026if test `eval echo '${'$as_ac_var'}'` = yes; then
14027  cat >>confdefs.h <<_ACEOF
14028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14029_ACEOF
14030
14031fi
14032done
14033
14034
14035
14036
14037
14038
14039for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14040do
14041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14042{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14044if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14045  echo $ECHO_N "(cached) $ECHO_C" >&6
14046else
14047  cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h.  */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h.  */
14053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14054   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14055#define $ac_func innocuous_$ac_func
14056
14057/* System header to define __stub macros and hopefully few prototypes,
14058    which can conflict with char $ac_func (); below.
14059    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14060    <limits.h> exists even on freestanding compilers.  */
14061
14062#ifdef __STDC__
14063# include <limits.h>
14064#else
14065# include <assert.h>
14066#endif
14067
14068#undef $ac_func
14069
14070/* Override any GCC internal prototype to avoid an error.
14071   Use char because int might match the return type of a GCC
14072   builtin and then its argument prototype would still apply.  */
14073#ifdef __cplusplus
14074extern "C"
14075#endif
14076char $ac_func ();
14077/* The GNU C library defines this for functions which it implements
14078    to always fail with ENOSYS.  Some functions are actually named
14079    something starting with __ and the normal name is an alias.  */
14080#if defined __stub_$ac_func || defined __stub___$ac_func
14081choke me
14082#endif
14083
14084int
14085main ()
14086{
14087return $ac_func ();
14088  ;
14089  return 0;
14090}
14091_ACEOF
14092rm -f conftest.$ac_objext conftest$ac_exeext
14093if { (ac_try="$ac_link"
14094case "(($ac_try" in
14095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096  *) ac_try_echo=$ac_try;;
14097esac
14098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099  (eval "$ac_link") 2>conftest.er1
14100  ac_status=$?
14101  grep -v '^ *+' conftest.er1 >conftest.err
14102  rm -f conftest.er1
14103  cat conftest.err >&5
14104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105  (exit $ac_status); } &&
14106	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14107  { (case "(($ac_try" in
14108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109  *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112  (eval "$ac_try") 2>&5
14113  ac_status=$?
14114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115  (exit $ac_status); }; } &&
14116	 { ac_try='test -s conftest$ac_exeext'
14117  { (case "(($ac_try" in
14118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119  *) ac_try_echo=$ac_try;;
14120esac
14121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122  (eval "$ac_try") 2>&5
14123  ac_status=$?
14124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125  (exit $ac_status); }; }; then
14126  eval "$as_ac_var=yes"
14127else
14128  echo "$as_me: failed program was:" >&5
14129sed 's/^/| /' conftest.$ac_ext >&5
14130
14131	eval "$as_ac_var=no"
14132fi
14133
14134rm -f core conftest.err conftest.$ac_objext \
14135      conftest$ac_exeext conftest.$ac_ext
14136fi
14137ac_res=`eval echo '${'$as_ac_var'}'`
14138	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14139echo "${ECHO_T}$ac_res" >&6; }
14140if test `eval echo '${'$as_ac_var'}'` = yes; then
14141  cat >>confdefs.h <<_ACEOF
14142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14143_ACEOF
14144
14145fi
14146done
14147
14148
14149
14150
14151for ac_func in isatty mkdtemp mkstemp
14152do
14153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14154{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14156if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14157  echo $ECHO_N "(cached) $ECHO_C" >&6
14158else
14159  cat >conftest.$ac_ext <<_ACEOF
14160/* confdefs.h.  */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
14164/* end confdefs.h.  */
14165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14166   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14167#define $ac_func innocuous_$ac_func
14168
14169/* System header to define __stub macros and hopefully few prototypes,
14170    which can conflict with char $ac_func (); below.
14171    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14172    <limits.h> exists even on freestanding compilers.  */
14173
14174#ifdef __STDC__
14175# include <limits.h>
14176#else
14177# include <assert.h>
14178#endif
14179
14180#undef $ac_func
14181
14182/* Override any GCC internal prototype to avoid an error.
14183   Use char because int might match the return type of a GCC
14184   builtin and then its argument prototype would still apply.  */
14185#ifdef __cplusplus
14186extern "C"
14187#endif
14188char $ac_func ();
14189/* The GNU C library defines this for functions which it implements
14190    to always fail with ENOSYS.  Some functions are actually named
14191    something starting with __ and the normal name is an alias.  */
14192#if defined __stub_$ac_func || defined __stub___$ac_func
14193choke me
14194#endif
14195
14196int
14197main ()
14198{
14199return $ac_func ();
14200  ;
14201  return 0;
14202}
14203_ACEOF
14204rm -f conftest.$ac_objext conftest$ac_exeext
14205if { (ac_try="$ac_link"
14206case "(($ac_try" in
14207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208  *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211  (eval "$ac_link") 2>conftest.er1
14212  ac_status=$?
14213  grep -v '^ *+' conftest.er1 >conftest.err
14214  rm -f conftest.er1
14215  cat conftest.err >&5
14216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217  (exit $ac_status); } &&
14218	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14219  { (case "(($ac_try" in
14220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221  *) ac_try_echo=$ac_try;;
14222esac
14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224  (eval "$ac_try") 2>&5
14225  ac_status=$?
14226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227  (exit $ac_status); }; } &&
14228	 { ac_try='test -s conftest$ac_exeext'
14229  { (case "(($ac_try" in
14230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231  *) ac_try_echo=$ac_try;;
14232esac
14233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234  (eval "$ac_try") 2>&5
14235  ac_status=$?
14236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237  (exit $ac_status); }; }; then
14238  eval "$as_ac_var=yes"
14239else
14240  echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5
14242
14243	eval "$as_ac_var=no"
14244fi
14245
14246rm -f core conftest.err conftest.$ac_objext \
14247      conftest$ac_exeext conftest.$ac_ext
14248fi
14249ac_res=`eval echo '${'$as_ac_var'}'`
14250	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14251echo "${ECHO_T}$ac_res" >&6; }
14252if test `eval echo '${'$as_ac_var'}'` = yes; then
14253  cat >>confdefs.h <<_ACEOF
14254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14255_ACEOF
14256
14257fi
14258done
14259
14260
14261
14262
14263
14264
14265
14266for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14267do
14268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14269{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14271if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14272  echo $ECHO_N "(cached) $ECHO_C" >&6
14273else
14274  cat >conftest.$ac_ext <<_ACEOF
14275/* confdefs.h.  */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
14279/* end confdefs.h.  */
14280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14281   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14282#define $ac_func innocuous_$ac_func
14283
14284/* System header to define __stub macros and hopefully few prototypes,
14285    which can conflict with char $ac_func (); below.
14286    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14287    <limits.h> exists even on freestanding compilers.  */
14288
14289#ifdef __STDC__
14290# include <limits.h>
14291#else
14292# include <assert.h>
14293#endif
14294
14295#undef $ac_func
14296
14297/* Override any GCC internal prototype to avoid an error.
14298   Use char because int might match the return type of a GCC
14299   builtin and then its argument prototype would still apply.  */
14300#ifdef __cplusplus
14301extern "C"
14302#endif
14303char $ac_func ();
14304/* The GNU C library defines this for functions which it implements
14305    to always fail with ENOSYS.  Some functions are actually named
14306    something starting with __ and the normal name is an alias.  */
14307#if defined __stub_$ac_func || defined __stub___$ac_func
14308choke me
14309#endif
14310
14311int
14312main ()
14313{
14314return $ac_func ();
14315  ;
14316  return 0;
14317}
14318_ACEOF
14319rm -f conftest.$ac_objext conftest$ac_exeext
14320if { (ac_try="$ac_link"
14321case "(($ac_try" in
14322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323  *) ac_try_echo=$ac_try;;
14324esac
14325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326  (eval "$ac_link") 2>conftest.er1
14327  ac_status=$?
14328  grep -v '^ *+' conftest.er1 >conftest.err
14329  rm -f conftest.er1
14330  cat conftest.err >&5
14331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332  (exit $ac_status); } &&
14333	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14334  { (case "(($ac_try" in
14335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336  *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339  (eval "$ac_try") 2>&5
14340  ac_status=$?
14341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342  (exit $ac_status); }; } &&
14343	 { ac_try='test -s conftest$ac_exeext'
14344  { (case "(($ac_try" in
14345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346  *) ac_try_echo=$ac_try;;
14347esac
14348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349  (eval "$ac_try") 2>&5
14350  ac_status=$?
14351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352  (exit $ac_status); }; }; then
14353  eval "$as_ac_var=yes"
14354else
14355  echo "$as_me: failed program was:" >&5
14356sed 's/^/| /' conftest.$ac_ext >&5
14357
14358	eval "$as_ac_var=no"
14359fi
14360
14361rm -f core conftest.err conftest.$ac_objext \
14362      conftest$ac_exeext conftest.$ac_ext
14363fi
14364ac_res=`eval echo '${'$as_ac_var'}'`
14365	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14366echo "${ECHO_T}$ac_res" >&6; }
14367if test `eval echo '${'$as_ac_var'}'` = yes; then
14368  cat >>confdefs.h <<_ACEOF
14369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14370_ACEOF
14371
14372fi
14373done
14374
14375
14376
14377
14378for ac_func in strerror strerror_r setenv
14379do
14380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14384  echo $ECHO_N "(cached) $ECHO_C" >&6
14385else
14386  cat >conftest.$ac_ext <<_ACEOF
14387/* confdefs.h.  */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h.  */
14392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14393   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14394#define $ac_func innocuous_$ac_func
14395
14396/* System header to define __stub macros and hopefully few prototypes,
14397    which can conflict with char $ac_func (); below.
14398    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14399    <limits.h> exists even on freestanding compilers.  */
14400
14401#ifdef __STDC__
14402# include <limits.h>
14403#else
14404# include <assert.h>
14405#endif
14406
14407#undef $ac_func
14408
14409/* Override any GCC internal prototype to avoid an error.
14410   Use char because int might match the return type of a GCC
14411   builtin and then its argument prototype would still apply.  */
14412#ifdef __cplusplus
14413extern "C"
14414#endif
14415char $ac_func ();
14416/* The GNU C library defines this for functions which it implements
14417    to always fail with ENOSYS.  Some functions are actually named
14418    something starting with __ and the normal name is an alias.  */
14419#if defined __stub_$ac_func || defined __stub___$ac_func
14420choke me
14421#endif
14422
14423int
14424main ()
14425{
14426return $ac_func ();
14427  ;
14428  return 0;
14429}
14430_ACEOF
14431rm -f conftest.$ac_objext conftest$ac_exeext
14432if { (ac_try="$ac_link"
14433case "(($ac_try" in
14434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435  *) ac_try_echo=$ac_try;;
14436esac
14437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438  (eval "$ac_link") 2>conftest.er1
14439  ac_status=$?
14440  grep -v '^ *+' conftest.er1 >conftest.err
14441  rm -f conftest.er1
14442  cat conftest.err >&5
14443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444  (exit $ac_status); } &&
14445	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14446  { (case "(($ac_try" in
14447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448  *) ac_try_echo=$ac_try;;
14449esac
14450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451  (eval "$ac_try") 2>&5
14452  ac_status=$?
14453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454  (exit $ac_status); }; } &&
14455	 { ac_try='test -s conftest$ac_exeext'
14456  { (case "(($ac_try" in
14457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458  *) ac_try_echo=$ac_try;;
14459esac
14460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461  (eval "$ac_try") 2>&5
14462  ac_status=$?
14463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464  (exit $ac_status); }; }; then
14465  eval "$as_ac_var=yes"
14466else
14467  echo "$as_me: failed program was:" >&5
14468sed 's/^/| /' conftest.$ac_ext >&5
14469
14470	eval "$as_ac_var=no"
14471fi
14472
14473rm -f core conftest.err conftest.$ac_objext \
14474      conftest$ac_exeext conftest.$ac_ext
14475fi
14476ac_res=`eval echo '${'$as_ac_var'}'`
14477	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14478echo "${ECHO_T}$ac_res" >&6; }
14479if test `eval echo '${'$as_ac_var'}'` = yes; then
14480  cat >>confdefs.h <<_ACEOF
14481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14482_ACEOF
14483
14484fi
14485done
14486
14487
14488
14489
14490
14491for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14492do
14493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14497  echo $ECHO_N "(cached) $ECHO_C" >&6
14498else
14499  cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h.  */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h.  */
14505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14506   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14507#define $ac_func innocuous_$ac_func
14508
14509/* System header to define __stub macros and hopefully few prototypes,
14510    which can conflict with char $ac_func (); below.
14511    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14512    <limits.h> exists even on freestanding compilers.  */
14513
14514#ifdef __STDC__
14515# include <limits.h>
14516#else
14517# include <assert.h>
14518#endif
14519
14520#undef $ac_func
14521
14522/* Override any GCC internal prototype to avoid an error.
14523   Use char because int might match the return type of a GCC
14524   builtin and then its argument prototype would still apply.  */
14525#ifdef __cplusplus
14526extern "C"
14527#endif
14528char $ac_func ();
14529/* The GNU C library defines this for functions which it implements
14530    to always fail with ENOSYS.  Some functions are actually named
14531    something starting with __ and the normal name is an alias.  */
14532#if defined __stub_$ac_func || defined __stub___$ac_func
14533choke me
14534#endif
14535
14536int
14537main ()
14538{
14539return $ac_func ();
14540  ;
14541  return 0;
14542}
14543_ACEOF
14544rm -f conftest.$ac_objext conftest$ac_exeext
14545if { (ac_try="$ac_link"
14546case "(($ac_try" in
14547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548  *) ac_try_echo=$ac_try;;
14549esac
14550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551  (eval "$ac_link") 2>conftest.er1
14552  ac_status=$?
14553  grep -v '^ *+' conftest.er1 >conftest.err
14554  rm -f conftest.er1
14555  cat conftest.err >&5
14556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557  (exit $ac_status); } &&
14558	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14559  { (case "(($ac_try" in
14560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561  *) ac_try_echo=$ac_try;;
14562esac
14563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564  (eval "$ac_try") 2>&5
14565  ac_status=$?
14566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567  (exit $ac_status); }; } &&
14568	 { ac_try='test -s conftest$ac_exeext'
14569  { (case "(($ac_try" in
14570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571  *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574  (eval "$ac_try") 2>&5
14575  ac_status=$?
14576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577  (exit $ac_status); }; }; then
14578  eval "$as_ac_var=yes"
14579else
14580  echo "$as_me: failed program was:" >&5
14581sed 's/^/| /' conftest.$ac_ext >&5
14582
14583	eval "$as_ac_var=no"
14584fi
14585
14586rm -f core conftest.err conftest.$ac_objext \
14587      conftest$ac_exeext conftest.$ac_ext
14588fi
14589ac_res=`eval echo '${'$as_ac_var'}'`
14590	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14591echo "${ECHO_T}$ac_res" >&6; }
14592if test `eval echo '${'$as_ac_var'}'` = yes; then
14593  cat >>confdefs.h <<_ACEOF
14594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14595_ACEOF
14596
14597fi
14598done
14599
14600
14601
14602
14603
14604
14605for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14606do
14607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14611  echo $ECHO_N "(cached) $ECHO_C" >&6
14612else
14613  cat >conftest.$ac_ext <<_ACEOF
14614/* confdefs.h.  */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h.  */
14619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14620   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14621#define $ac_func innocuous_$ac_func
14622
14623/* System header to define __stub macros and hopefully few prototypes,
14624    which can conflict with char $ac_func (); below.
14625    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14626    <limits.h> exists even on freestanding compilers.  */
14627
14628#ifdef __STDC__
14629# include <limits.h>
14630#else
14631# include <assert.h>
14632#endif
14633
14634#undef $ac_func
14635
14636/* Override any GCC internal prototype to avoid an error.
14637   Use char because int might match the return type of a GCC
14638   builtin and then its argument prototype would still apply.  */
14639#ifdef __cplusplus
14640extern "C"
14641#endif
14642char $ac_func ();
14643/* The GNU C library defines this for functions which it implements
14644    to always fail with ENOSYS.  Some functions are actually named
14645    something starting with __ and the normal name is an alias.  */
14646#if defined __stub_$ac_func || defined __stub___$ac_func
14647choke me
14648#endif
14649
14650int
14651main ()
14652{
14653return $ac_func ();
14654  ;
14655  return 0;
14656}
14657_ACEOF
14658rm -f conftest.$ac_objext conftest$ac_exeext
14659if { (ac_try="$ac_link"
14660case "(($ac_try" in
14661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662  *) ac_try_echo=$ac_try;;
14663esac
14664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665  (eval "$ac_link") 2>conftest.er1
14666  ac_status=$?
14667  grep -v '^ *+' conftest.er1 >conftest.err
14668  rm -f conftest.er1
14669  cat conftest.err >&5
14670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671  (exit $ac_status); } &&
14672	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14673  { (case "(($ac_try" in
14674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675  *) ac_try_echo=$ac_try;;
14676esac
14677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678  (eval "$ac_try") 2>&5
14679  ac_status=$?
14680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681  (exit $ac_status); }; } &&
14682	 { ac_try='test -s conftest$ac_exeext'
14683  { (case "(($ac_try" in
14684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685  *) ac_try_echo=$ac_try;;
14686esac
14687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688  (eval "$ac_try") 2>&5
14689  ac_status=$?
14690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691  (exit $ac_status); }; }; then
14692  eval "$as_ac_var=yes"
14693else
14694  echo "$as_me: failed program was:" >&5
14695sed 's/^/| /' conftest.$ac_ext >&5
14696
14697	eval "$as_ac_var=no"
14698fi
14699
14700rm -f core conftest.err conftest.$ac_objext \
14701      conftest$ac_exeext conftest.$ac_ext
14702fi
14703ac_res=`eval echo '${'$as_ac_var'}'`
14704	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14705echo "${ECHO_T}$ac_res" >&6; }
14706if test `eval echo '${'$as_ac_var'}'` = yes; then
14707  cat >>confdefs.h <<_ACEOF
14708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14709_ACEOF
14710
14711fi
14712done
14713
14714
14715
14716for ac_func in futimes futimens
14717do
14718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14719{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14722  echo $ECHO_N "(cached) $ECHO_C" >&6
14723else
14724  cat >conftest.$ac_ext <<_ACEOF
14725/* confdefs.h.  */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h.  */
14730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14731   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14732#define $ac_func innocuous_$ac_func
14733
14734/* System header to define __stub macros and hopefully few prototypes,
14735    which can conflict with char $ac_func (); below.
14736    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14737    <limits.h> exists even on freestanding compilers.  */
14738
14739#ifdef __STDC__
14740# include <limits.h>
14741#else
14742# include <assert.h>
14743#endif
14744
14745#undef $ac_func
14746
14747/* Override any GCC internal prototype to avoid an error.
14748   Use char because int might match the return type of a GCC
14749   builtin and then its argument prototype would still apply.  */
14750#ifdef __cplusplus
14751extern "C"
14752#endif
14753char $ac_func ();
14754/* The GNU C library defines this for functions which it implements
14755    to always fail with ENOSYS.  Some functions are actually named
14756    something starting with __ and the normal name is an alias.  */
14757#if defined __stub_$ac_func || defined __stub___$ac_func
14758choke me
14759#endif
14760
14761int
14762main ()
14763{
14764return $ac_func ();
14765  ;
14766  return 0;
14767}
14768_ACEOF
14769rm -f conftest.$ac_objext conftest$ac_exeext
14770if { (ac_try="$ac_link"
14771case "(($ac_try" in
14772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773  *) ac_try_echo=$ac_try;;
14774esac
14775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776  (eval "$ac_link") 2>conftest.er1
14777  ac_status=$?
14778  grep -v '^ *+' conftest.er1 >conftest.err
14779  rm -f conftest.er1
14780  cat conftest.err >&5
14781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782  (exit $ac_status); } &&
14783	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14784  { (case "(($ac_try" in
14785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786  *) ac_try_echo=$ac_try;;
14787esac
14788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789  (eval "$ac_try") 2>&5
14790  ac_status=$?
14791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792  (exit $ac_status); }; } &&
14793	 { ac_try='test -s conftest$ac_exeext'
14794  { (case "(($ac_try" in
14795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796  *) ac_try_echo=$ac_try;;
14797esac
14798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799  (eval "$ac_try") 2>&5
14800  ac_status=$?
14801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802  (exit $ac_status); }; }; then
14803  eval "$as_ac_var=yes"
14804else
14805  echo "$as_me: failed program was:" >&5
14806sed 's/^/| /' conftest.$ac_ext >&5
14807
14808	eval "$as_ac_var=no"
14809fi
14810
14811rm -f core conftest.err conftest.$ac_objext \
14812      conftest$ac_exeext conftest.$ac_ext
14813fi
14814ac_res=`eval echo '${'$as_ac_var'}'`
14815	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14816echo "${ECHO_T}$ac_res" >&6; }
14817if test `eval echo '${'$as_ac_var'}'` = yes; then
14818  cat >>confdefs.h <<_ACEOF
14819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14820_ACEOF
14821
14822fi
14823done
14824
14825{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14826echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14827if test "${llvm_cv_c_printf_a+set}" = set; then
14828  echo $ECHO_N "(cached) $ECHO_C" >&6
14829else
14830  ac_ext=c
14831ac_cpp='$CPP $CPPFLAGS'
14832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14834ac_compiler_gnu=$ac_cv_c_compiler_gnu
14835
14836 if test "$cross_compiling" = yes; then
14837  llvmac_cv_c_printf_a=no
14838else
14839  cat >conftest.$ac_ext <<_ACEOF
14840
14841  /* confdefs.h.  */
14842_ACEOF
14843cat confdefs.h >>conftest.$ac_ext
14844cat >>conftest.$ac_ext <<_ACEOF
14845/* end confdefs.h.  */
14846
14847#include <stdio.h>
14848#include <stdlib.h>
14849
14850int
14851main ()
14852{
14853
14854volatile double A, B;
14855char Buffer[100];
14856A = 1;
14857A /= 10.0;
14858sprintf(Buffer, "%a", A);
14859B = atof(Buffer);
14860if (A != B)
14861  return (1);
14862if (A != 0x1.999999999999ap-4)
14863  return (1);
14864return (0);
14865  ;
14866  return 0;
14867}
14868_ACEOF
14869rm -f conftest$ac_exeext
14870if { (ac_try="$ac_link"
14871case "(($ac_try" in
14872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873  *) ac_try_echo=$ac_try;;
14874esac
14875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876  (eval "$ac_link") 2>&5
14877  ac_status=$?
14878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14880  { (case "(($ac_try" in
14881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882  *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885  (eval "$ac_try") 2>&5
14886  ac_status=$?
14887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888  (exit $ac_status); }; }; then
14889  llvm_cv_c_printf_a=yes
14890else
14891  echo "$as_me: program exited with status $ac_status" >&5
14892echo "$as_me: failed program was:" >&5
14893sed 's/^/| /' conftest.$ac_ext >&5
14894
14895( exit $ac_status )
14896llvmac_cv_c_printf_a=no
14897fi
14898rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14899fi
14900
14901
14902 ac_ext=c
14903ac_cpp='$CPP $CPPFLAGS'
14904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906ac_compiler_gnu=$ac_cv_c_compiler_gnu
14907
14908fi
14909{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14910echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14911 if test "$llvm_cv_c_printf_a" = "yes"; then
14912
14913cat >>confdefs.h <<\_ACEOF
14914#define HAVE_PRINTF_A 1
14915_ACEOF
14916
14917 fi
14918
14919
14920
14921  { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14922echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14923if test "${ac_cv_func_rand48+set}" = set; then
14924  echo $ECHO_N "(cached) $ECHO_C" >&6
14925else
14926
14927    ac_ext=cpp
14928ac_cpp='$CXXCPP $CPPFLAGS'
14929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14932
14933    cat >conftest.$ac_ext <<_ACEOF
14934/* confdefs.h.  */
14935_ACEOF
14936cat confdefs.h >>conftest.$ac_ext
14937cat >>conftest.$ac_ext <<_ACEOF
14938/* end confdefs.h.  */
14939#include <stdlib.h>
14940int
14941main ()
14942{
14943srand48(0);lrand48();drand48();
14944  ;
14945  return 0;
14946}
14947_ACEOF
14948rm -f conftest.$ac_objext
14949if { (ac_try="$ac_compile"
14950case "(($ac_try" in
14951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952  *) ac_try_echo=$ac_try;;
14953esac
14954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955  (eval "$ac_compile") 2>conftest.er1
14956  ac_status=$?
14957  grep -v '^ *+' conftest.er1 >conftest.err
14958  rm -f conftest.er1
14959  cat conftest.err >&5
14960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961  (exit $ac_status); } &&
14962	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14963  { (case "(($ac_try" in
14964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965  *) ac_try_echo=$ac_try;;
14966esac
14967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968  (eval "$ac_try") 2>&5
14969  ac_status=$?
14970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971  (exit $ac_status); }; } &&
14972	 { ac_try='test -s conftest.$ac_objext'
14973  { (case "(($ac_try" in
14974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975  *) ac_try_echo=$ac_try;;
14976esac
14977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978  (eval "$ac_try") 2>&5
14979  ac_status=$?
14980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981  (exit $ac_status); }; }; then
14982  ac_cv_func_rand48=yes
14983else
14984  echo "$as_me: failed program was:" >&5
14985sed 's/^/| /' conftest.$ac_ext >&5
14986
14987	ac_cv_func_rand48=no
14988fi
14989
14990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14991    ac_ext=c
14992ac_cpp='$CPP $CPPFLAGS'
14993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995ac_compiler_gnu=$ac_cv_c_compiler_gnu
14996
14997
14998fi
14999{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15000echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15001
15002if test "$ac_cv_func_rand48" = "yes" ; then
15003
15004cat >>confdefs.h <<\_ACEOF
15005#define HAVE_RAND48 1
15006_ACEOF
15007
15008fi
15009
15010
15011{ echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15012echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15013if test "${ac_cv_have_decl_arc4random+set}" = set; then
15014  echo $ECHO_N "(cached) $ECHO_C" >&6
15015else
15016  cat >conftest.$ac_ext <<_ACEOF
15017/* confdefs.h.  */
15018_ACEOF
15019cat confdefs.h >>conftest.$ac_ext
15020cat >>conftest.$ac_ext <<_ACEOF
15021/* end confdefs.h.  */
15022$ac_includes_default
15023int
15024main ()
15025{
15026#ifndef arc4random
15027  char *p = (char *) arc4random;
15028  return !p;
15029#endif
15030
15031  ;
15032  return 0;
15033}
15034_ACEOF
15035rm -f conftest.$ac_objext
15036if { (ac_try="$ac_compile"
15037case "(($ac_try" in
15038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039  *) ac_try_echo=$ac_try;;
15040esac
15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042  (eval "$ac_compile") 2>conftest.er1
15043  ac_status=$?
15044  grep -v '^ *+' conftest.er1 >conftest.err
15045  rm -f conftest.er1
15046  cat conftest.err >&5
15047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048  (exit $ac_status); } &&
15049	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15050  { (case "(($ac_try" in
15051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052  *) ac_try_echo=$ac_try;;
15053esac
15054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055  (eval "$ac_try") 2>&5
15056  ac_status=$?
15057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058  (exit $ac_status); }; } &&
15059	 { ac_try='test -s conftest.$ac_objext'
15060  { (case "(($ac_try" in
15061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062  *) ac_try_echo=$ac_try;;
15063esac
15064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065  (eval "$ac_try") 2>&5
15066  ac_status=$?
15067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068  (exit $ac_status); }; }; then
15069  ac_cv_have_decl_arc4random=yes
15070else
15071  echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074	ac_cv_have_decl_arc4random=no
15075fi
15076
15077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078fi
15079{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15080echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15081if test $ac_cv_have_decl_arc4random = yes; then
15082
15083cat >>confdefs.h <<_ACEOF
15084#define HAVE_DECL_ARC4RANDOM 1
15085_ACEOF
15086
15087
15088else
15089  cat >>confdefs.h <<_ACEOF
15090#define HAVE_DECL_ARC4RANDOM 0
15091_ACEOF
15092
15093
15094fi
15095
15096
15097
15098{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15099echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15100if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15101  echo $ECHO_N "(cached) $ECHO_C" >&6
15102else
15103  cat >conftest.$ac_ext <<_ACEOF
15104/* confdefs.h.  */
15105_ACEOF
15106cat confdefs.h >>conftest.$ac_ext
15107cat >>conftest.$ac_ext <<_ACEOF
15108/* end confdefs.h.  */
15109$ac_includes_default
15110int
15111main ()
15112{
15113#ifndef strerror_s
15114  char *p = (char *) strerror_s;
15115  return !p;
15116#endif
15117
15118  ;
15119  return 0;
15120}
15121_ACEOF
15122rm -f conftest.$ac_objext
15123if { (ac_try="$ac_compile"
15124case "(($ac_try" in
15125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126  *) ac_try_echo=$ac_try;;
15127esac
15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129  (eval "$ac_compile") 2>conftest.er1
15130  ac_status=$?
15131  grep -v '^ *+' conftest.er1 >conftest.err
15132  rm -f conftest.er1
15133  cat conftest.err >&5
15134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135  (exit $ac_status); } &&
15136	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15137  { (case "(($ac_try" in
15138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139  *) ac_try_echo=$ac_try;;
15140esac
15141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142  (eval "$ac_try") 2>&5
15143  ac_status=$?
15144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145  (exit $ac_status); }; } &&
15146	 { ac_try='test -s conftest.$ac_objext'
15147  { (case "(($ac_try" in
15148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149  *) ac_try_echo=$ac_try;;
15150esac
15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152  (eval "$ac_try") 2>&5
15153  ac_status=$?
15154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155  (exit $ac_status); }; }; then
15156  ac_cv_have_decl_strerror_s=yes
15157else
15158  echo "$as_me: failed program was:" >&5
15159sed 's/^/| /' conftest.$ac_ext >&5
15160
15161	ac_cv_have_decl_strerror_s=no
15162fi
15163
15164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165fi
15166{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15167echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15168if test $ac_cv_have_decl_strerror_s = yes; then
15169
15170cat >>confdefs.h <<_ACEOF
15171#define HAVE_DECL_STRERROR_S 1
15172_ACEOF
15173
15174
15175else
15176  cat >>confdefs.h <<_ACEOF
15177#define HAVE_DECL_STRERROR_S 0
15178_ACEOF
15179
15180
15181fi
15182
15183
15184
15185if test "$llvm_cv_os_type" = "MingW" ; then
15186  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15187echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15188if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15189  echo $ECHO_N "(cached) $ECHO_C" >&6
15190else
15191  ac_check_lib_save_LIBS=$LIBS
15192LIBS="-lgcc  $LIBS"
15193cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h.  */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h.  */
15199
15200/* Override any GCC internal prototype to avoid an error.
15201   Use char because int might match the return type of a GCC
15202   builtin and then its argument prototype would still apply.  */
15203#ifdef __cplusplus
15204extern "C"
15205#endif
15206char _alloca ();
15207int
15208main ()
15209{
15210return _alloca ();
15211  ;
15212  return 0;
15213}
15214_ACEOF
15215rm -f conftest.$ac_objext conftest$ac_exeext
15216if { (ac_try="$ac_link"
15217case "(($ac_try" in
15218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219  *) ac_try_echo=$ac_try;;
15220esac
15221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222  (eval "$ac_link") 2>conftest.er1
15223  ac_status=$?
15224  grep -v '^ *+' conftest.er1 >conftest.err
15225  rm -f conftest.er1
15226  cat conftest.err >&5
15227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228  (exit $ac_status); } &&
15229	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230  { (case "(($ac_try" in
15231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232  *) ac_try_echo=$ac_try;;
15233esac
15234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235  (eval "$ac_try") 2>&5
15236  ac_status=$?
15237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238  (exit $ac_status); }; } &&
15239	 { ac_try='test -s conftest$ac_exeext'
15240  { (case "(($ac_try" in
15241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242  *) ac_try_echo=$ac_try;;
15243esac
15244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245  (eval "$ac_try") 2>&5
15246  ac_status=$?
15247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248  (exit $ac_status); }; }; then
15249  ac_cv_lib_gcc__alloca=yes
15250else
15251  echo "$as_me: failed program was:" >&5
15252sed 's/^/| /' conftest.$ac_ext >&5
15253
15254	ac_cv_lib_gcc__alloca=no
15255fi
15256
15257rm -f core conftest.err conftest.$ac_objext \
15258      conftest$ac_exeext conftest.$ac_ext
15259LIBS=$ac_check_lib_save_LIBS
15260fi
15261{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15262echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15263if test $ac_cv_lib_gcc__alloca = yes; then
15264
15265cat >>confdefs.h <<\_ACEOF
15266#define HAVE__ALLOCA 1
15267_ACEOF
15268
15269fi
15270
15271  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15272echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15273if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15274  echo $ECHO_N "(cached) $ECHO_C" >&6
15275else
15276  ac_check_lib_save_LIBS=$LIBS
15277LIBS="-lgcc  $LIBS"
15278cat >conftest.$ac_ext <<_ACEOF
15279/* confdefs.h.  */
15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h.  */
15284
15285/* Override any GCC internal prototype to avoid an error.
15286   Use char because int might match the return type of a GCC
15287   builtin and then its argument prototype would still apply.  */
15288#ifdef __cplusplus
15289extern "C"
15290#endif
15291char __alloca ();
15292int
15293main ()
15294{
15295return __alloca ();
15296  ;
15297  return 0;
15298}
15299_ACEOF
15300rm -f conftest.$ac_objext conftest$ac_exeext
15301if { (ac_try="$ac_link"
15302case "(($ac_try" in
15303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304  *) ac_try_echo=$ac_try;;
15305esac
15306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307  (eval "$ac_link") 2>conftest.er1
15308  ac_status=$?
15309  grep -v '^ *+' conftest.er1 >conftest.err
15310  rm -f conftest.er1
15311  cat conftest.err >&5
15312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313  (exit $ac_status); } &&
15314	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15315  { (case "(($ac_try" in
15316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317  *) ac_try_echo=$ac_try;;
15318esac
15319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320  (eval "$ac_try") 2>&5
15321  ac_status=$?
15322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323  (exit $ac_status); }; } &&
15324	 { ac_try='test -s conftest$ac_exeext'
15325  { (case "(($ac_try" in
15326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327  *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330  (eval "$ac_try") 2>&5
15331  ac_status=$?
15332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333  (exit $ac_status); }; }; then
15334  ac_cv_lib_gcc___alloca=yes
15335else
15336  echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339	ac_cv_lib_gcc___alloca=no
15340fi
15341
15342rm -f core conftest.err conftest.$ac_objext \
15343      conftest$ac_exeext conftest.$ac_ext
15344LIBS=$ac_check_lib_save_LIBS
15345fi
15346{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15347echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15348if test $ac_cv_lib_gcc___alloca = yes; then
15349
15350cat >>confdefs.h <<\_ACEOF
15351#define HAVE___ALLOCA 1
15352_ACEOF
15353
15354fi
15355
15356  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15357echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15358if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15359  echo $ECHO_N "(cached) $ECHO_C" >&6
15360else
15361  ac_check_lib_save_LIBS=$LIBS
15362LIBS="-lgcc  $LIBS"
15363cat >conftest.$ac_ext <<_ACEOF
15364/* confdefs.h.  */
15365_ACEOF
15366cat confdefs.h >>conftest.$ac_ext
15367cat >>conftest.$ac_ext <<_ACEOF
15368/* end confdefs.h.  */
15369
15370/* Override any GCC internal prototype to avoid an error.
15371   Use char because int might match the return type of a GCC
15372   builtin and then its argument prototype would still apply.  */
15373#ifdef __cplusplus
15374extern "C"
15375#endif
15376char __chkstk ();
15377int
15378main ()
15379{
15380return __chkstk ();
15381  ;
15382  return 0;
15383}
15384_ACEOF
15385rm -f conftest.$ac_objext conftest$ac_exeext
15386if { (ac_try="$ac_link"
15387case "(($ac_try" in
15388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389  *) ac_try_echo=$ac_try;;
15390esac
15391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392  (eval "$ac_link") 2>conftest.er1
15393  ac_status=$?
15394  grep -v '^ *+' conftest.er1 >conftest.err
15395  rm -f conftest.er1
15396  cat conftest.err >&5
15397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398  (exit $ac_status); } &&
15399	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400  { (case "(($ac_try" in
15401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402  *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405  (eval "$ac_try") 2>&5
15406  ac_status=$?
15407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408  (exit $ac_status); }; } &&
15409	 { ac_try='test -s conftest$ac_exeext'
15410  { (case "(($ac_try" in
15411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412  *) ac_try_echo=$ac_try;;
15413esac
15414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415  (eval "$ac_try") 2>&5
15416  ac_status=$?
15417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418  (exit $ac_status); }; }; then
15419  ac_cv_lib_gcc___chkstk=yes
15420else
15421  echo "$as_me: failed program was:" >&5
15422sed 's/^/| /' conftest.$ac_ext >&5
15423
15424	ac_cv_lib_gcc___chkstk=no
15425fi
15426
15427rm -f core conftest.err conftest.$ac_objext \
15428      conftest$ac_exeext conftest.$ac_ext
15429LIBS=$ac_check_lib_save_LIBS
15430fi
15431{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15432echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15433if test $ac_cv_lib_gcc___chkstk = yes; then
15434
15435cat >>confdefs.h <<\_ACEOF
15436#define HAVE___CHKSTK 1
15437_ACEOF
15438
15439fi
15440
15441  { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15442echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15443if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15444  echo $ECHO_N "(cached) $ECHO_C" >&6
15445else
15446  ac_check_lib_save_LIBS=$LIBS
15447LIBS="-lgcc  $LIBS"
15448cat >conftest.$ac_ext <<_ACEOF
15449/* confdefs.h.  */
15450_ACEOF
15451cat confdefs.h >>conftest.$ac_ext
15452cat >>conftest.$ac_ext <<_ACEOF
15453/* end confdefs.h.  */
15454
15455/* Override any GCC internal prototype to avoid an error.
15456   Use char because int might match the return type of a GCC
15457   builtin and then its argument prototype would still apply.  */
15458#ifdef __cplusplus
15459extern "C"
15460#endif
15461char __chkstk_ms ();
15462int
15463main ()
15464{
15465return __chkstk_ms ();
15466  ;
15467  return 0;
15468}
15469_ACEOF
15470rm -f conftest.$ac_objext conftest$ac_exeext
15471if { (ac_try="$ac_link"
15472case "(($ac_try" in
15473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474  *) ac_try_echo=$ac_try;;
15475esac
15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477  (eval "$ac_link") 2>conftest.er1
15478  ac_status=$?
15479  grep -v '^ *+' conftest.er1 >conftest.err
15480  rm -f conftest.er1
15481  cat conftest.err >&5
15482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483  (exit $ac_status); } &&
15484	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485  { (case "(($ac_try" in
15486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487  *) ac_try_echo=$ac_try;;
15488esac
15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490  (eval "$ac_try") 2>&5
15491  ac_status=$?
15492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493  (exit $ac_status); }; } &&
15494	 { ac_try='test -s conftest$ac_exeext'
15495  { (case "(($ac_try" in
15496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497  *) ac_try_echo=$ac_try;;
15498esac
15499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500  (eval "$ac_try") 2>&5
15501  ac_status=$?
15502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503  (exit $ac_status); }; }; then
15504  ac_cv_lib_gcc___chkstk_ms=yes
15505else
15506  echo "$as_me: failed program was:" >&5
15507sed 's/^/| /' conftest.$ac_ext >&5
15508
15509	ac_cv_lib_gcc___chkstk_ms=no
15510fi
15511
15512rm -f core conftest.err conftest.$ac_objext \
15513      conftest$ac_exeext conftest.$ac_ext
15514LIBS=$ac_check_lib_save_LIBS
15515fi
15516{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15517echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15518if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15519
15520cat >>confdefs.h <<\_ACEOF
15521#define HAVE___CHKSTK_MS 1
15522_ACEOF
15523
15524fi
15525
15526  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15527echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15528if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15529  echo $ECHO_N "(cached) $ECHO_C" >&6
15530else
15531  ac_check_lib_save_LIBS=$LIBS
15532LIBS="-lgcc  $LIBS"
15533cat >conftest.$ac_ext <<_ACEOF
15534/* confdefs.h.  */
15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
15538/* end confdefs.h.  */
15539
15540/* Override any GCC internal prototype to avoid an error.
15541   Use char because int might match the return type of a GCC
15542   builtin and then its argument prototype would still apply.  */
15543#ifdef __cplusplus
15544extern "C"
15545#endif
15546char ___chkstk ();
15547int
15548main ()
15549{
15550return ___chkstk ();
15551  ;
15552  return 0;
15553}
15554_ACEOF
15555rm -f conftest.$ac_objext conftest$ac_exeext
15556if { (ac_try="$ac_link"
15557case "(($ac_try" in
15558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559  *) ac_try_echo=$ac_try;;
15560esac
15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562  (eval "$ac_link") 2>conftest.er1
15563  ac_status=$?
15564  grep -v '^ *+' conftest.er1 >conftest.err
15565  rm -f conftest.er1
15566  cat conftest.err >&5
15567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568  (exit $ac_status); } &&
15569	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570  { (case "(($ac_try" in
15571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572  *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575  (eval "$ac_try") 2>&5
15576  ac_status=$?
15577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578  (exit $ac_status); }; } &&
15579	 { ac_try='test -s conftest$ac_exeext'
15580  { (case "(($ac_try" in
15581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582  *) ac_try_echo=$ac_try;;
15583esac
15584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585  (eval "$ac_try") 2>&5
15586  ac_status=$?
15587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588  (exit $ac_status); }; }; then
15589  ac_cv_lib_gcc____chkstk=yes
15590else
15591  echo "$as_me: failed program was:" >&5
15592sed 's/^/| /' conftest.$ac_ext >&5
15593
15594	ac_cv_lib_gcc____chkstk=no
15595fi
15596
15597rm -f core conftest.err conftest.$ac_objext \
15598      conftest$ac_exeext conftest.$ac_ext
15599LIBS=$ac_check_lib_save_LIBS
15600fi
15601{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15602echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15603if test $ac_cv_lib_gcc____chkstk = yes; then
15604
15605cat >>confdefs.h <<\_ACEOF
15606#define HAVE____CHKSTK 1
15607_ACEOF
15608
15609fi
15610
15611  { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15612echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15613if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15614  echo $ECHO_N "(cached) $ECHO_C" >&6
15615else
15616  ac_check_lib_save_LIBS=$LIBS
15617LIBS="-lgcc  $LIBS"
15618cat >conftest.$ac_ext <<_ACEOF
15619/* confdefs.h.  */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h.  */
15624
15625/* Override any GCC internal prototype to avoid an error.
15626   Use char because int might match the return type of a GCC
15627   builtin and then its argument prototype would still apply.  */
15628#ifdef __cplusplus
15629extern "C"
15630#endif
15631char ___chkstk_ms ();
15632int
15633main ()
15634{
15635return ___chkstk_ms ();
15636  ;
15637  return 0;
15638}
15639_ACEOF
15640rm -f conftest.$ac_objext conftest$ac_exeext
15641if { (ac_try="$ac_link"
15642case "(($ac_try" in
15643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644  *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647  (eval "$ac_link") 2>conftest.er1
15648  ac_status=$?
15649  grep -v '^ *+' conftest.er1 >conftest.err
15650  rm -f conftest.er1
15651  cat conftest.err >&5
15652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653  (exit $ac_status); } &&
15654	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655  { (case "(($ac_try" in
15656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657  *) ac_try_echo=$ac_try;;
15658esac
15659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660  (eval "$ac_try") 2>&5
15661  ac_status=$?
15662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663  (exit $ac_status); }; } &&
15664	 { ac_try='test -s conftest$ac_exeext'
15665  { (case "(($ac_try" in
15666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667  *) ac_try_echo=$ac_try;;
15668esac
15669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670  (eval "$ac_try") 2>&5
15671  ac_status=$?
15672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673  (exit $ac_status); }; }; then
15674  ac_cv_lib_gcc____chkstk_ms=yes
15675else
15676  echo "$as_me: failed program was:" >&5
15677sed 's/^/| /' conftest.$ac_ext >&5
15678
15679	ac_cv_lib_gcc____chkstk_ms=no
15680fi
15681
15682rm -f core conftest.err conftest.$ac_objext \
15683      conftest$ac_exeext conftest.$ac_ext
15684LIBS=$ac_check_lib_save_LIBS
15685fi
15686{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15687echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15688if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15689
15690cat >>confdefs.h <<\_ACEOF
15691#define HAVE____CHKSTK_MS 1
15692_ACEOF
15693
15694fi
15695
15696
15697  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15698echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15699if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15700  echo $ECHO_N "(cached) $ECHO_C" >&6
15701else
15702  ac_check_lib_save_LIBS=$LIBS
15703LIBS="-lgcc  $LIBS"
15704cat >conftest.$ac_ext <<_ACEOF
15705/* confdefs.h.  */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h.  */
15710
15711/* Override any GCC internal prototype to avoid an error.
15712   Use char because int might match the return type of a GCC
15713   builtin and then its argument prototype would still apply.  */
15714#ifdef __cplusplus
15715extern "C"
15716#endif
15717char __ashldi3 ();
15718int
15719main ()
15720{
15721return __ashldi3 ();
15722  ;
15723  return 0;
15724}
15725_ACEOF
15726rm -f conftest.$ac_objext conftest$ac_exeext
15727if { (ac_try="$ac_link"
15728case "(($ac_try" in
15729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730  *) ac_try_echo=$ac_try;;
15731esac
15732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733  (eval "$ac_link") 2>conftest.er1
15734  ac_status=$?
15735  grep -v '^ *+' conftest.er1 >conftest.err
15736  rm -f conftest.er1
15737  cat conftest.err >&5
15738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739  (exit $ac_status); } &&
15740	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15741  { (case "(($ac_try" in
15742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743  *) ac_try_echo=$ac_try;;
15744esac
15745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746  (eval "$ac_try") 2>&5
15747  ac_status=$?
15748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749  (exit $ac_status); }; } &&
15750	 { ac_try='test -s conftest$ac_exeext'
15751  { (case "(($ac_try" in
15752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753  *) ac_try_echo=$ac_try;;
15754esac
15755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756  (eval "$ac_try") 2>&5
15757  ac_status=$?
15758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759  (exit $ac_status); }; }; then
15760  ac_cv_lib_gcc___ashldi3=yes
15761else
15762  echo "$as_me: failed program was:" >&5
15763sed 's/^/| /' conftest.$ac_ext >&5
15764
15765	ac_cv_lib_gcc___ashldi3=no
15766fi
15767
15768rm -f core conftest.err conftest.$ac_objext \
15769      conftest$ac_exeext conftest.$ac_ext
15770LIBS=$ac_check_lib_save_LIBS
15771fi
15772{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15773echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15774if test $ac_cv_lib_gcc___ashldi3 = yes; then
15775
15776cat >>confdefs.h <<\_ACEOF
15777#define HAVE___ASHLDI3 1
15778_ACEOF
15779
15780fi
15781
15782  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15783echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15784if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15785  echo $ECHO_N "(cached) $ECHO_C" >&6
15786else
15787  ac_check_lib_save_LIBS=$LIBS
15788LIBS="-lgcc  $LIBS"
15789cat >conftest.$ac_ext <<_ACEOF
15790/* confdefs.h.  */
15791_ACEOF
15792cat confdefs.h >>conftest.$ac_ext
15793cat >>conftest.$ac_ext <<_ACEOF
15794/* end confdefs.h.  */
15795
15796/* Override any GCC internal prototype to avoid an error.
15797   Use char because int might match the return type of a GCC
15798   builtin and then its argument prototype would still apply.  */
15799#ifdef __cplusplus
15800extern "C"
15801#endif
15802char __ashrdi3 ();
15803int
15804main ()
15805{
15806return __ashrdi3 ();
15807  ;
15808  return 0;
15809}
15810_ACEOF
15811rm -f conftest.$ac_objext conftest$ac_exeext
15812if { (ac_try="$ac_link"
15813case "(($ac_try" in
15814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815  *) ac_try_echo=$ac_try;;
15816esac
15817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818  (eval "$ac_link") 2>conftest.er1
15819  ac_status=$?
15820  grep -v '^ *+' conftest.er1 >conftest.err
15821  rm -f conftest.er1
15822  cat conftest.err >&5
15823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824  (exit $ac_status); } &&
15825	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826  { (case "(($ac_try" in
15827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828  *) ac_try_echo=$ac_try;;
15829esac
15830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831  (eval "$ac_try") 2>&5
15832  ac_status=$?
15833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834  (exit $ac_status); }; } &&
15835	 { ac_try='test -s conftest$ac_exeext'
15836  { (case "(($ac_try" in
15837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838  *) ac_try_echo=$ac_try;;
15839esac
15840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841  (eval "$ac_try") 2>&5
15842  ac_status=$?
15843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844  (exit $ac_status); }; }; then
15845  ac_cv_lib_gcc___ashrdi3=yes
15846else
15847  echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850	ac_cv_lib_gcc___ashrdi3=no
15851fi
15852
15853rm -f core conftest.err conftest.$ac_objext \
15854      conftest$ac_exeext conftest.$ac_ext
15855LIBS=$ac_check_lib_save_LIBS
15856fi
15857{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15858echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15859if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15860
15861cat >>confdefs.h <<\_ACEOF
15862#define HAVE___ASHRDI3 1
15863_ACEOF
15864
15865fi
15866
15867  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15868echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15869if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15870  echo $ECHO_N "(cached) $ECHO_C" >&6
15871else
15872  ac_check_lib_save_LIBS=$LIBS
15873LIBS="-lgcc  $LIBS"
15874cat >conftest.$ac_ext <<_ACEOF
15875/* confdefs.h.  */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h.  */
15880
15881/* Override any GCC internal prototype to avoid an error.
15882   Use char because int might match the return type of a GCC
15883   builtin and then its argument prototype would still apply.  */
15884#ifdef __cplusplus
15885extern "C"
15886#endif
15887char __divdi3 ();
15888int
15889main ()
15890{
15891return __divdi3 ();
15892  ;
15893  return 0;
15894}
15895_ACEOF
15896rm -f conftest.$ac_objext conftest$ac_exeext
15897if { (ac_try="$ac_link"
15898case "(($ac_try" in
15899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900  *) ac_try_echo=$ac_try;;
15901esac
15902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903  (eval "$ac_link") 2>conftest.er1
15904  ac_status=$?
15905  grep -v '^ *+' conftest.er1 >conftest.err
15906  rm -f conftest.er1
15907  cat conftest.err >&5
15908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909  (exit $ac_status); } &&
15910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911  { (case "(($ac_try" in
15912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913  *) ac_try_echo=$ac_try;;
15914esac
15915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916  (eval "$ac_try") 2>&5
15917  ac_status=$?
15918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919  (exit $ac_status); }; } &&
15920	 { ac_try='test -s conftest$ac_exeext'
15921  { (case "(($ac_try" in
15922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923  *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926  (eval "$ac_try") 2>&5
15927  ac_status=$?
15928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929  (exit $ac_status); }; }; then
15930  ac_cv_lib_gcc___divdi3=yes
15931else
15932  echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935	ac_cv_lib_gcc___divdi3=no
15936fi
15937
15938rm -f core conftest.err conftest.$ac_objext \
15939      conftest$ac_exeext conftest.$ac_ext
15940LIBS=$ac_check_lib_save_LIBS
15941fi
15942{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15943echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15944if test $ac_cv_lib_gcc___divdi3 = yes; then
15945
15946cat >>confdefs.h <<\_ACEOF
15947#define HAVE___DIVDI3 1
15948_ACEOF
15949
15950fi
15951
15952  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
15953echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
15954if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
15955  echo $ECHO_N "(cached) $ECHO_C" >&6
15956else
15957  ac_check_lib_save_LIBS=$LIBS
15958LIBS="-lgcc  $LIBS"
15959cat >conftest.$ac_ext <<_ACEOF
15960/* confdefs.h.  */
15961_ACEOF
15962cat confdefs.h >>conftest.$ac_ext
15963cat >>conftest.$ac_ext <<_ACEOF
15964/* end confdefs.h.  */
15965
15966/* Override any GCC internal prototype to avoid an error.
15967   Use char because int might match the return type of a GCC
15968   builtin and then its argument prototype would still apply.  */
15969#ifdef __cplusplus
15970extern "C"
15971#endif
15972char __fixdfdi ();
15973int
15974main ()
15975{
15976return __fixdfdi ();
15977  ;
15978  return 0;
15979}
15980_ACEOF
15981rm -f conftest.$ac_objext conftest$ac_exeext
15982if { (ac_try="$ac_link"
15983case "(($ac_try" in
15984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985  *) ac_try_echo=$ac_try;;
15986esac
15987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988  (eval "$ac_link") 2>conftest.er1
15989  ac_status=$?
15990  grep -v '^ *+' conftest.er1 >conftest.err
15991  rm -f conftest.er1
15992  cat conftest.err >&5
15993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994  (exit $ac_status); } &&
15995	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15996  { (case "(($ac_try" in
15997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998  *) ac_try_echo=$ac_try;;
15999esac
16000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001  (eval "$ac_try") 2>&5
16002  ac_status=$?
16003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004  (exit $ac_status); }; } &&
16005	 { ac_try='test -s conftest$ac_exeext'
16006  { (case "(($ac_try" in
16007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008  *) ac_try_echo=$ac_try;;
16009esac
16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011  (eval "$ac_try") 2>&5
16012  ac_status=$?
16013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014  (exit $ac_status); }; }; then
16015  ac_cv_lib_gcc___fixdfdi=yes
16016else
16017  echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020	ac_cv_lib_gcc___fixdfdi=no
16021fi
16022
16023rm -f core conftest.err conftest.$ac_objext \
16024      conftest$ac_exeext conftest.$ac_ext
16025LIBS=$ac_check_lib_save_LIBS
16026fi
16027{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16028echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16029if test $ac_cv_lib_gcc___fixdfdi = yes; then
16030
16031cat >>confdefs.h <<\_ACEOF
16032#define HAVE___FIXDFDI 1
16033_ACEOF
16034
16035fi
16036
16037  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16038echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16039if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16040  echo $ECHO_N "(cached) $ECHO_C" >&6
16041else
16042  ac_check_lib_save_LIBS=$LIBS
16043LIBS="-lgcc  $LIBS"
16044cat >conftest.$ac_ext <<_ACEOF
16045/* confdefs.h.  */
16046_ACEOF
16047cat confdefs.h >>conftest.$ac_ext
16048cat >>conftest.$ac_ext <<_ACEOF
16049/* end confdefs.h.  */
16050
16051/* Override any GCC internal prototype to avoid an error.
16052   Use char because int might match the return type of a GCC
16053   builtin and then its argument prototype would still apply.  */
16054#ifdef __cplusplus
16055extern "C"
16056#endif
16057char __fixsfdi ();
16058int
16059main ()
16060{
16061return __fixsfdi ();
16062  ;
16063  return 0;
16064}
16065_ACEOF
16066rm -f conftest.$ac_objext conftest$ac_exeext
16067if { (ac_try="$ac_link"
16068case "(($ac_try" in
16069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070  *) ac_try_echo=$ac_try;;
16071esac
16072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073  (eval "$ac_link") 2>conftest.er1
16074  ac_status=$?
16075  grep -v '^ *+' conftest.er1 >conftest.err
16076  rm -f conftest.er1
16077  cat conftest.err >&5
16078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079  (exit $ac_status); } &&
16080	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16081  { (case "(($ac_try" in
16082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083  *) ac_try_echo=$ac_try;;
16084esac
16085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086  (eval "$ac_try") 2>&5
16087  ac_status=$?
16088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089  (exit $ac_status); }; } &&
16090	 { ac_try='test -s conftest$ac_exeext'
16091  { (case "(($ac_try" in
16092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093  *) ac_try_echo=$ac_try;;
16094esac
16095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096  (eval "$ac_try") 2>&5
16097  ac_status=$?
16098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099  (exit $ac_status); }; }; then
16100  ac_cv_lib_gcc___fixsfdi=yes
16101else
16102  echo "$as_me: failed program was:" >&5
16103sed 's/^/| /' conftest.$ac_ext >&5
16104
16105	ac_cv_lib_gcc___fixsfdi=no
16106fi
16107
16108rm -f core conftest.err conftest.$ac_objext \
16109      conftest$ac_exeext conftest.$ac_ext
16110LIBS=$ac_check_lib_save_LIBS
16111fi
16112{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16113echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16114if test $ac_cv_lib_gcc___fixsfdi = yes; then
16115
16116cat >>confdefs.h <<\_ACEOF
16117#define HAVE___FIXSFDI 1
16118_ACEOF
16119
16120fi
16121
16122  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16123echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16124if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16125  echo $ECHO_N "(cached) $ECHO_C" >&6
16126else
16127  ac_check_lib_save_LIBS=$LIBS
16128LIBS="-lgcc  $LIBS"
16129cat >conftest.$ac_ext <<_ACEOF
16130/* confdefs.h.  */
16131_ACEOF
16132cat confdefs.h >>conftest.$ac_ext
16133cat >>conftest.$ac_ext <<_ACEOF
16134/* end confdefs.h.  */
16135
16136/* Override any GCC internal prototype to avoid an error.
16137   Use char because int might match the return type of a GCC
16138   builtin and then its argument prototype would still apply.  */
16139#ifdef __cplusplus
16140extern "C"
16141#endif
16142char __floatdidf ();
16143int
16144main ()
16145{
16146return __floatdidf ();
16147  ;
16148  return 0;
16149}
16150_ACEOF
16151rm -f conftest.$ac_objext conftest$ac_exeext
16152if { (ac_try="$ac_link"
16153case "(($ac_try" in
16154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155  *) ac_try_echo=$ac_try;;
16156esac
16157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158  (eval "$ac_link") 2>conftest.er1
16159  ac_status=$?
16160  grep -v '^ *+' conftest.er1 >conftest.err
16161  rm -f conftest.er1
16162  cat conftest.err >&5
16163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164  (exit $ac_status); } &&
16165	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16166  { (case "(($ac_try" in
16167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168  *) ac_try_echo=$ac_try;;
16169esac
16170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171  (eval "$ac_try") 2>&5
16172  ac_status=$?
16173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174  (exit $ac_status); }; } &&
16175	 { ac_try='test -s conftest$ac_exeext'
16176  { (case "(($ac_try" in
16177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178  *) ac_try_echo=$ac_try;;
16179esac
16180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181  (eval "$ac_try") 2>&5
16182  ac_status=$?
16183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184  (exit $ac_status); }; }; then
16185  ac_cv_lib_gcc___floatdidf=yes
16186else
16187  echo "$as_me: failed program was:" >&5
16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190	ac_cv_lib_gcc___floatdidf=no
16191fi
16192
16193rm -f core conftest.err conftest.$ac_objext \
16194      conftest$ac_exeext conftest.$ac_ext
16195LIBS=$ac_check_lib_save_LIBS
16196fi
16197{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16198echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16199if test $ac_cv_lib_gcc___floatdidf = yes; then
16200
16201cat >>confdefs.h <<\_ACEOF
16202#define HAVE___FLOATDIDF 1
16203_ACEOF
16204
16205fi
16206
16207  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16208echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16209if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16210  echo $ECHO_N "(cached) $ECHO_C" >&6
16211else
16212  ac_check_lib_save_LIBS=$LIBS
16213LIBS="-lgcc  $LIBS"
16214cat >conftest.$ac_ext <<_ACEOF
16215/* confdefs.h.  */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h.  */
16220
16221/* Override any GCC internal prototype to avoid an error.
16222   Use char because int might match the return type of a GCC
16223   builtin and then its argument prototype would still apply.  */
16224#ifdef __cplusplus
16225extern "C"
16226#endif
16227char __lshrdi3 ();
16228int
16229main ()
16230{
16231return __lshrdi3 ();
16232  ;
16233  return 0;
16234}
16235_ACEOF
16236rm -f conftest.$ac_objext conftest$ac_exeext
16237if { (ac_try="$ac_link"
16238case "(($ac_try" in
16239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240  *) ac_try_echo=$ac_try;;
16241esac
16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243  (eval "$ac_link") 2>conftest.er1
16244  ac_status=$?
16245  grep -v '^ *+' conftest.er1 >conftest.err
16246  rm -f conftest.er1
16247  cat conftest.err >&5
16248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249  (exit $ac_status); } &&
16250	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16251  { (case "(($ac_try" in
16252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253  *) ac_try_echo=$ac_try;;
16254esac
16255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256  (eval "$ac_try") 2>&5
16257  ac_status=$?
16258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259  (exit $ac_status); }; } &&
16260	 { ac_try='test -s conftest$ac_exeext'
16261  { (case "(($ac_try" in
16262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263  *) ac_try_echo=$ac_try;;
16264esac
16265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266  (eval "$ac_try") 2>&5
16267  ac_status=$?
16268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269  (exit $ac_status); }; }; then
16270  ac_cv_lib_gcc___lshrdi3=yes
16271else
16272  echo "$as_me: failed program was:" >&5
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
16275	ac_cv_lib_gcc___lshrdi3=no
16276fi
16277
16278rm -f core conftest.err conftest.$ac_objext \
16279      conftest$ac_exeext conftest.$ac_ext
16280LIBS=$ac_check_lib_save_LIBS
16281fi
16282{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16283echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16284if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16285
16286cat >>confdefs.h <<\_ACEOF
16287#define HAVE___LSHRDI3 1
16288_ACEOF
16289
16290fi
16291
16292  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16293echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16294if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16295  echo $ECHO_N "(cached) $ECHO_C" >&6
16296else
16297  ac_check_lib_save_LIBS=$LIBS
16298LIBS="-lgcc  $LIBS"
16299cat >conftest.$ac_ext <<_ACEOF
16300/* confdefs.h.  */
16301_ACEOF
16302cat confdefs.h >>conftest.$ac_ext
16303cat >>conftest.$ac_ext <<_ACEOF
16304/* end confdefs.h.  */
16305
16306/* Override any GCC internal prototype to avoid an error.
16307   Use char because int might match the return type of a GCC
16308   builtin and then its argument prototype would still apply.  */
16309#ifdef __cplusplus
16310extern "C"
16311#endif
16312char __moddi3 ();
16313int
16314main ()
16315{
16316return __moddi3 ();
16317  ;
16318  return 0;
16319}
16320_ACEOF
16321rm -f conftest.$ac_objext conftest$ac_exeext
16322if { (ac_try="$ac_link"
16323case "(($ac_try" in
16324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325  *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328  (eval "$ac_link") 2>conftest.er1
16329  ac_status=$?
16330  grep -v '^ *+' conftest.er1 >conftest.err
16331  rm -f conftest.er1
16332  cat conftest.err >&5
16333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334  (exit $ac_status); } &&
16335	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336  { (case "(($ac_try" in
16337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338  *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341  (eval "$ac_try") 2>&5
16342  ac_status=$?
16343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344  (exit $ac_status); }; } &&
16345	 { ac_try='test -s conftest$ac_exeext'
16346  { (case "(($ac_try" in
16347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348  *) ac_try_echo=$ac_try;;
16349esac
16350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351  (eval "$ac_try") 2>&5
16352  ac_status=$?
16353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354  (exit $ac_status); }; }; then
16355  ac_cv_lib_gcc___moddi3=yes
16356else
16357  echo "$as_me: failed program was:" >&5
16358sed 's/^/| /' conftest.$ac_ext >&5
16359
16360	ac_cv_lib_gcc___moddi3=no
16361fi
16362
16363rm -f core conftest.err conftest.$ac_objext \
16364      conftest$ac_exeext conftest.$ac_ext
16365LIBS=$ac_check_lib_save_LIBS
16366fi
16367{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16368echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16369if test $ac_cv_lib_gcc___moddi3 = yes; then
16370
16371cat >>confdefs.h <<\_ACEOF
16372#define HAVE___MODDI3 1
16373_ACEOF
16374
16375fi
16376
16377  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16378echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16379if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16380  echo $ECHO_N "(cached) $ECHO_C" >&6
16381else
16382  ac_check_lib_save_LIBS=$LIBS
16383LIBS="-lgcc  $LIBS"
16384cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h.  */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h.  */
16390
16391/* Override any GCC internal prototype to avoid an error.
16392   Use char because int might match the return type of a GCC
16393   builtin and then its argument prototype would still apply.  */
16394#ifdef __cplusplus
16395extern "C"
16396#endif
16397char __udivdi3 ();
16398int
16399main ()
16400{
16401return __udivdi3 ();
16402  ;
16403  return 0;
16404}
16405_ACEOF
16406rm -f conftest.$ac_objext conftest$ac_exeext
16407if { (ac_try="$ac_link"
16408case "(($ac_try" in
16409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410  *) ac_try_echo=$ac_try;;
16411esac
16412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413  (eval "$ac_link") 2>conftest.er1
16414  ac_status=$?
16415  grep -v '^ *+' conftest.er1 >conftest.err
16416  rm -f conftest.er1
16417  cat conftest.err >&5
16418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419  (exit $ac_status); } &&
16420	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16421  { (case "(($ac_try" in
16422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423  *) ac_try_echo=$ac_try;;
16424esac
16425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426  (eval "$ac_try") 2>&5
16427  ac_status=$?
16428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429  (exit $ac_status); }; } &&
16430	 { ac_try='test -s conftest$ac_exeext'
16431  { (case "(($ac_try" in
16432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433  *) ac_try_echo=$ac_try;;
16434esac
16435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436  (eval "$ac_try") 2>&5
16437  ac_status=$?
16438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439  (exit $ac_status); }; }; then
16440  ac_cv_lib_gcc___udivdi3=yes
16441else
16442  echo "$as_me: failed program was:" >&5
16443sed 's/^/| /' conftest.$ac_ext >&5
16444
16445	ac_cv_lib_gcc___udivdi3=no
16446fi
16447
16448rm -f core conftest.err conftest.$ac_objext \
16449      conftest$ac_exeext conftest.$ac_ext
16450LIBS=$ac_check_lib_save_LIBS
16451fi
16452{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16453echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16454if test $ac_cv_lib_gcc___udivdi3 = yes; then
16455
16456cat >>confdefs.h <<\_ACEOF
16457#define HAVE___UDIVDI3 1
16458_ACEOF
16459
16460fi
16461
16462  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16463echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16464if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16465  echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467  ac_check_lib_save_LIBS=$LIBS
16468LIBS="-lgcc  $LIBS"
16469cat >conftest.$ac_ext <<_ACEOF
16470/* confdefs.h.  */
16471_ACEOF
16472cat confdefs.h >>conftest.$ac_ext
16473cat >>conftest.$ac_ext <<_ACEOF
16474/* end confdefs.h.  */
16475
16476/* Override any GCC internal prototype to avoid an error.
16477   Use char because int might match the return type of a GCC
16478   builtin and then its argument prototype would still apply.  */
16479#ifdef __cplusplus
16480extern "C"
16481#endif
16482char __umoddi3 ();
16483int
16484main ()
16485{
16486return __umoddi3 ();
16487  ;
16488  return 0;
16489}
16490_ACEOF
16491rm -f conftest.$ac_objext conftest$ac_exeext
16492if { (ac_try="$ac_link"
16493case "(($ac_try" in
16494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495  *) ac_try_echo=$ac_try;;
16496esac
16497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498  (eval "$ac_link") 2>conftest.er1
16499  ac_status=$?
16500  grep -v '^ *+' conftest.er1 >conftest.err
16501  rm -f conftest.er1
16502  cat conftest.err >&5
16503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504  (exit $ac_status); } &&
16505	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16506  { (case "(($ac_try" in
16507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508  *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511  (eval "$ac_try") 2>&5
16512  ac_status=$?
16513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514  (exit $ac_status); }; } &&
16515	 { ac_try='test -s conftest$ac_exeext'
16516  { (case "(($ac_try" in
16517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518  *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521  (eval "$ac_try") 2>&5
16522  ac_status=$?
16523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524  (exit $ac_status); }; }; then
16525  ac_cv_lib_gcc___umoddi3=yes
16526else
16527  echo "$as_me: failed program was:" >&5
16528sed 's/^/| /' conftest.$ac_ext >&5
16529
16530	ac_cv_lib_gcc___umoddi3=no
16531fi
16532
16533rm -f core conftest.err conftest.$ac_objext \
16534      conftest$ac_exeext conftest.$ac_ext
16535LIBS=$ac_check_lib_save_LIBS
16536fi
16537{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16538echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16539if test $ac_cv_lib_gcc___umoddi3 = yes; then
16540
16541cat >>confdefs.h <<\_ACEOF
16542#define HAVE___UMODDI3 1
16543_ACEOF
16544
16545fi
16546
16547
16548  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16549echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16550if test "${ac_cv_lib_gcc___main+set}" = set; then
16551  echo $ECHO_N "(cached) $ECHO_C" >&6
16552else
16553  ac_check_lib_save_LIBS=$LIBS
16554LIBS="-lgcc  $LIBS"
16555cat >conftest.$ac_ext <<_ACEOF
16556/* confdefs.h.  */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h.  */
16561
16562/* Override any GCC internal prototype to avoid an error.
16563   Use char because int might match the return type of a GCC
16564   builtin and then its argument prototype would still apply.  */
16565#ifdef __cplusplus
16566extern "C"
16567#endif
16568char __main ();
16569int
16570main ()
16571{
16572return __main ();
16573  ;
16574  return 0;
16575}
16576_ACEOF
16577rm -f conftest.$ac_objext conftest$ac_exeext
16578if { (ac_try="$ac_link"
16579case "(($ac_try" in
16580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581  *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584  (eval "$ac_link") 2>conftest.er1
16585  ac_status=$?
16586  grep -v '^ *+' conftest.er1 >conftest.err
16587  rm -f conftest.er1
16588  cat conftest.err >&5
16589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590  (exit $ac_status); } &&
16591	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16592  { (case "(($ac_try" in
16593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594  *) ac_try_echo=$ac_try;;
16595esac
16596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597  (eval "$ac_try") 2>&5
16598  ac_status=$?
16599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600  (exit $ac_status); }; } &&
16601	 { ac_try='test -s conftest$ac_exeext'
16602  { (case "(($ac_try" in
16603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604  *) ac_try_echo=$ac_try;;
16605esac
16606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607  (eval "$ac_try") 2>&5
16608  ac_status=$?
16609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610  (exit $ac_status); }; }; then
16611  ac_cv_lib_gcc___main=yes
16612else
16613  echo "$as_me: failed program was:" >&5
16614sed 's/^/| /' conftest.$ac_ext >&5
16615
16616	ac_cv_lib_gcc___main=no
16617fi
16618
16619rm -f core conftest.err conftest.$ac_objext \
16620      conftest$ac_exeext conftest.$ac_ext
16621LIBS=$ac_check_lib_save_LIBS
16622fi
16623{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16624echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16625if test $ac_cv_lib_gcc___main = yes; then
16626
16627cat >>confdefs.h <<\_ACEOF
16628#define HAVE___MAIN 1
16629_ACEOF
16630
16631fi
16632
16633  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16634echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16635if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16636  echo $ECHO_N "(cached) $ECHO_C" >&6
16637else
16638  ac_check_lib_save_LIBS=$LIBS
16639LIBS="-lgcc  $LIBS"
16640cat >conftest.$ac_ext <<_ACEOF
16641/* confdefs.h.  */
16642_ACEOF
16643cat confdefs.h >>conftest.$ac_ext
16644cat >>conftest.$ac_ext <<_ACEOF
16645/* end confdefs.h.  */
16646
16647/* Override any GCC internal prototype to avoid an error.
16648   Use char because int might match the return type of a GCC
16649   builtin and then its argument prototype would still apply.  */
16650#ifdef __cplusplus
16651extern "C"
16652#endif
16653char __cmpdi2 ();
16654int
16655main ()
16656{
16657return __cmpdi2 ();
16658  ;
16659  return 0;
16660}
16661_ACEOF
16662rm -f conftest.$ac_objext conftest$ac_exeext
16663if { (ac_try="$ac_link"
16664case "(($ac_try" in
16665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666  *) ac_try_echo=$ac_try;;
16667esac
16668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669  (eval "$ac_link") 2>conftest.er1
16670  ac_status=$?
16671  grep -v '^ *+' conftest.er1 >conftest.err
16672  rm -f conftest.er1
16673  cat conftest.err >&5
16674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675  (exit $ac_status); } &&
16676	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16677  { (case "(($ac_try" in
16678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679  *) ac_try_echo=$ac_try;;
16680esac
16681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682  (eval "$ac_try") 2>&5
16683  ac_status=$?
16684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685  (exit $ac_status); }; } &&
16686	 { ac_try='test -s conftest$ac_exeext'
16687  { (case "(($ac_try" in
16688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689  *) ac_try_echo=$ac_try;;
16690esac
16691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692  (eval "$ac_try") 2>&5
16693  ac_status=$?
16694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695  (exit $ac_status); }; }; then
16696  ac_cv_lib_gcc___cmpdi2=yes
16697else
16698  echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
16701	ac_cv_lib_gcc___cmpdi2=no
16702fi
16703
16704rm -f core conftest.err conftest.$ac_objext \
16705      conftest$ac_exeext conftest.$ac_ext
16706LIBS=$ac_check_lib_save_LIBS
16707fi
16708{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16709echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16710if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16711
16712cat >>confdefs.h <<\_ACEOF
16713#define HAVE___CMPDI2 1
16714_ACEOF
16715
16716fi
16717
16718fi
16719
16720if test "$llvm_cv_os_type" = "MingW" ; then
16721  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16722echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16723  cat >conftest.$ac_ext <<_ACEOF
16724
16725  /* confdefs.h.  */
16726_ACEOF
16727cat confdefs.h >>conftest.$ac_ext
16728cat >>conftest.$ac_ext <<_ACEOF
16729/* end confdefs.h.  */
16730
16731    #include <windows.h>
16732    #include <imagehlp.h>
16733    extern void foo(PENUMLOADED_MODULES_CALLBACK);
16734    extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16735
16736
16737_ACEOF
16738rm -f conftest.$ac_objext
16739if { (ac_try="$ac_compile"
16740case "(($ac_try" in
16741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742  *) ac_try_echo=$ac_try;;
16743esac
16744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745  (eval "$ac_compile") 2>conftest.er1
16746  ac_status=$?
16747  grep -v '^ *+' conftest.er1 >conftest.err
16748  rm -f conftest.er1
16749  cat conftest.err >&5
16750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751  (exit $ac_status); } &&
16752	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753  { (case "(($ac_try" in
16754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755  *) ac_try_echo=$ac_try;;
16756esac
16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758  (eval "$ac_try") 2>&5
16759  ac_status=$?
16760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761  (exit $ac_status); }; } &&
16762	 { ac_try='test -s conftest.$ac_objext'
16763  { (case "(($ac_try" in
16764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765  *) ac_try_echo=$ac_try;;
16766esac
16767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768  (eval "$ac_try") 2>&5
16769  ac_status=$?
16770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771  (exit $ac_status); }; }; then
16772
16773  { echo "$as_me:$LINENO: result: yes" >&5
16774echo "${ECHO_T}yes" >&6; }
16775  llvm_cv_win32_elmcb_pcstr="PCSTR"
16776
16777else
16778  echo "$as_me: failed program was:" >&5
16779sed 's/^/| /' conftest.$ac_ext >&5
16780
16781
16782  { echo "$as_me:$LINENO: result: no" >&5
16783echo "${ECHO_T}no" >&6; }
16784  llvm_cv_win32_elmcb_pcstr="PSTR"
16785
16786fi
16787
16788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789
16790cat >>confdefs.h <<_ACEOF
16791#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16792_ACEOF
16793
16794fi
16795
16796
16797
16798  { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
16799echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
16800if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
16801  echo $ECHO_N "(cached) $ECHO_C" >&6
16802else
16803
16804    ac_ext=cpp
16805ac_cpp='$CXXCPP $CPPFLAGS'
16806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16809
16810    cat >conftest.$ac_ext <<_ACEOF
16811/* confdefs.h.  */
16812_ACEOF
16813cat confdefs.h >>conftest.$ac_ext
16814cat >>conftest.$ac_ext <<_ACEOF
16815/* end confdefs.h.  */
16816#include <math.h>
16817int
16818main ()
16819{
16820float f; isnan(f);
16821  ;
16822  return 0;
16823}
16824_ACEOF
16825rm -f conftest.$ac_objext
16826if { (ac_try="$ac_compile"
16827case "(($ac_try" in
16828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829  *) ac_try_echo=$ac_try;;
16830esac
16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832  (eval "$ac_compile") 2>conftest.er1
16833  ac_status=$?
16834  grep -v '^ *+' conftest.er1 >conftest.err
16835  rm -f conftest.er1
16836  cat conftest.err >&5
16837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838  (exit $ac_status); } &&
16839	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16840  { (case "(($ac_try" in
16841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842  *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845  (eval "$ac_try") 2>&5
16846  ac_status=$?
16847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848  (exit $ac_status); }; } &&
16849	 { ac_try='test -s conftest.$ac_objext'
16850  { (case "(($ac_try" in
16851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852  *) ac_try_echo=$ac_try;;
16853esac
16854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855  (eval "$ac_try") 2>&5
16856  ac_status=$?
16857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858  (exit $ac_status); }; }; then
16859  ac_cv_func_isnan_in_math_h=yes
16860else
16861  echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864	ac_cv_func_isnan_in_math_h=no
16865fi
16866
16867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868    ac_ext=c
16869ac_cpp='$CPP $CPPFLAGS'
16870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16872ac_compiler_gnu=$ac_cv_c_compiler_gnu
16873
16874
16875fi
16876{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
16877echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
16878
16879
16880if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
16881
16882cat >>confdefs.h <<\_ACEOF
16883#define HAVE_ISNAN_IN_MATH_H 1
16884_ACEOF
16885
16886fi
16887
16888
16889  { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
16890echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
16891if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
16892  echo $ECHO_N "(cached) $ECHO_C" >&6
16893else
16894
16895    ac_ext=cpp
16896ac_cpp='$CXXCPP $CPPFLAGS'
16897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16900
16901    cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h.  */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h.  */
16907#include <cmath>
16908int
16909main ()
16910{
16911float f; isnan(f);
16912  ;
16913  return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext
16917if { (ac_try="$ac_compile"
16918case "(($ac_try" in
16919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920  *) ac_try_echo=$ac_try;;
16921esac
16922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923  (eval "$ac_compile") 2>conftest.er1
16924  ac_status=$?
16925  grep -v '^ *+' conftest.er1 >conftest.err
16926  rm -f conftest.er1
16927  cat conftest.err >&5
16928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929  (exit $ac_status); } &&
16930	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16931  { (case "(($ac_try" in
16932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933  *) ac_try_echo=$ac_try;;
16934esac
16935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936  (eval "$ac_try") 2>&5
16937  ac_status=$?
16938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939  (exit $ac_status); }; } &&
16940	 { ac_try='test -s conftest.$ac_objext'
16941  { (case "(($ac_try" in
16942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943  *) ac_try_echo=$ac_try;;
16944esac
16945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946  (eval "$ac_try") 2>&5
16947  ac_status=$?
16948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949  (exit $ac_status); }; }; then
16950  ac_cv_func_isnan_in_cmath=yes
16951else
16952  echo "$as_me: failed program was:" >&5
16953sed 's/^/| /' conftest.$ac_ext >&5
16954
16955	ac_cv_func_isnan_in_cmath=no
16956fi
16957
16958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16959    ac_ext=c
16960ac_cpp='$CPP $CPPFLAGS'
16961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16963ac_compiler_gnu=$ac_cv_c_compiler_gnu
16964
16965
16966fi
16967{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
16968echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
16969
16970if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
16971
16972cat >>confdefs.h <<\_ACEOF
16973#define HAVE_ISNAN_IN_CMATH 1
16974_ACEOF
16975
16976fi
16977
16978
16979  { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
16980echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
16981if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
16982  echo $ECHO_N "(cached) $ECHO_C" >&6
16983else
16984
16985    ac_ext=cpp
16986ac_cpp='$CXXCPP $CPPFLAGS'
16987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16990
16991    cat >conftest.$ac_ext <<_ACEOF
16992/* confdefs.h.  */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h.  */
16997#include <cmath>
16998int
16999main ()
17000{
17001float f; std::isnan(f);
17002  ;
17003  return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext
17007if { (ac_try="$ac_compile"
17008case "(($ac_try" in
17009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010  *) ac_try_echo=$ac_try;;
17011esac
17012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013  (eval "$ac_compile") 2>conftest.er1
17014  ac_status=$?
17015  grep -v '^ *+' conftest.er1 >conftest.err
17016  rm -f conftest.er1
17017  cat conftest.err >&5
17018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019  (exit $ac_status); } &&
17020	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17021  { (case "(($ac_try" in
17022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023  *) ac_try_echo=$ac_try;;
17024esac
17025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026  (eval "$ac_try") 2>&5
17027  ac_status=$?
17028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029  (exit $ac_status); }; } &&
17030	 { ac_try='test -s conftest.$ac_objext'
17031  { (case "(($ac_try" in
17032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033  *) ac_try_echo=$ac_try;;
17034esac
17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036  (eval "$ac_try") 2>&5
17037  ac_status=$?
17038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039  (exit $ac_status); }; }; then
17040  ac_cv_func_std_isnan_in_cmath=yes
17041else
17042  echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045	ac_cv_func_std_isnan_in_cmath=no
17046fi
17047
17048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049    ac_ext=c
17050ac_cpp='$CPP $CPPFLAGS'
17051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17053ac_compiler_gnu=$ac_cv_c_compiler_gnu
17054
17055
17056fi
17057{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17058echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17059
17060if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17061
17062cat >>confdefs.h <<\_ACEOF
17063#define HAVE_STD_ISNAN_IN_CMATH 1
17064_ACEOF
17065
17066fi
17067
17068
17069
17070
17071  { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17072echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17073if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17074  echo $ECHO_N "(cached) $ECHO_C" >&6
17075else
17076
17077    ac_ext=cpp
17078ac_cpp='$CXXCPP $CPPFLAGS'
17079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17082
17083    cat >conftest.$ac_ext <<_ACEOF
17084/* confdefs.h.  */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h.  */
17089#include <math.h>
17090int
17091main ()
17092{
17093float f; isinf(f);
17094  ;
17095  return 0;
17096}
17097_ACEOF
17098rm -f conftest.$ac_objext
17099if { (ac_try="$ac_compile"
17100case "(($ac_try" in
17101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102  *) ac_try_echo=$ac_try;;
17103esac
17104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105  (eval "$ac_compile") 2>conftest.er1
17106  ac_status=$?
17107  grep -v '^ *+' conftest.er1 >conftest.err
17108  rm -f conftest.er1
17109  cat conftest.err >&5
17110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111  (exit $ac_status); } &&
17112	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17113  { (case "(($ac_try" in
17114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115  *) ac_try_echo=$ac_try;;
17116esac
17117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118  (eval "$ac_try") 2>&5
17119  ac_status=$?
17120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121  (exit $ac_status); }; } &&
17122	 { ac_try='test -s conftest.$ac_objext'
17123  { (case "(($ac_try" in
17124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125  *) ac_try_echo=$ac_try;;
17126esac
17127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128  (eval "$ac_try") 2>&5
17129  ac_status=$?
17130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131  (exit $ac_status); }; }; then
17132  ac_cv_func_isinf_in_math_h=yes
17133else
17134  echo "$as_me: failed program was:" >&5
17135sed 's/^/| /' conftest.$ac_ext >&5
17136
17137	ac_cv_func_isinf_in_math_h=no
17138fi
17139
17140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141    ac_ext=c
17142ac_cpp='$CPP $CPPFLAGS'
17143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17145ac_compiler_gnu=$ac_cv_c_compiler_gnu
17146
17147
17148fi
17149{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17150echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17151
17152if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17153
17154cat >>confdefs.h <<\_ACEOF
17155#define HAVE_ISINF_IN_MATH_H 1
17156_ACEOF
17157
17158fi
17159
17160
17161  { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17162echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17163if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17164  echo $ECHO_N "(cached) $ECHO_C" >&6
17165else
17166
17167    ac_ext=cpp
17168ac_cpp='$CXXCPP $CPPFLAGS'
17169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17172
17173    cat >conftest.$ac_ext <<_ACEOF
17174/* confdefs.h.  */
17175_ACEOF
17176cat confdefs.h >>conftest.$ac_ext
17177cat >>conftest.$ac_ext <<_ACEOF
17178/* end confdefs.h.  */
17179#include <cmath>
17180int
17181main ()
17182{
17183float f; isinf(f);
17184  ;
17185  return 0;
17186}
17187_ACEOF
17188rm -f conftest.$ac_objext
17189if { (ac_try="$ac_compile"
17190case "(($ac_try" in
17191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192  *) ac_try_echo=$ac_try;;
17193esac
17194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195  (eval "$ac_compile") 2>conftest.er1
17196  ac_status=$?
17197  grep -v '^ *+' conftest.er1 >conftest.err
17198  rm -f conftest.er1
17199  cat conftest.err >&5
17200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201  (exit $ac_status); } &&
17202	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17203  { (case "(($ac_try" in
17204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205  *) ac_try_echo=$ac_try;;
17206esac
17207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208  (eval "$ac_try") 2>&5
17209  ac_status=$?
17210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211  (exit $ac_status); }; } &&
17212	 { ac_try='test -s conftest.$ac_objext'
17213  { (case "(($ac_try" in
17214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215  *) ac_try_echo=$ac_try;;
17216esac
17217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218  (eval "$ac_try") 2>&5
17219  ac_status=$?
17220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221  (exit $ac_status); }; }; then
17222  ac_cv_func_isinf_in_cmath=yes
17223else
17224  echo "$as_me: failed program was:" >&5
17225sed 's/^/| /' conftest.$ac_ext >&5
17226
17227	ac_cv_func_isinf_in_cmath=no
17228fi
17229
17230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231    ac_ext=c
17232ac_cpp='$CPP $CPPFLAGS'
17233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17235ac_compiler_gnu=$ac_cv_c_compiler_gnu
17236
17237
17238fi
17239{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17240echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17241
17242if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17243
17244cat >>confdefs.h <<\_ACEOF
17245#define HAVE_ISINF_IN_CMATH 1
17246_ACEOF
17247
17248fi
17249
17250
17251  { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17252echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17253if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17254  echo $ECHO_N "(cached) $ECHO_C" >&6
17255else
17256
17257    ac_ext=cpp
17258ac_cpp='$CXXCPP $CPPFLAGS'
17259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17262
17263    cat >conftest.$ac_ext <<_ACEOF
17264/* confdefs.h.  */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h.  */
17269#include <cmath>
17270int
17271main ()
17272{
17273float f; std::isinf(f);
17274  ;
17275  return 0;
17276}
17277_ACEOF
17278rm -f conftest.$ac_objext
17279if { (ac_try="$ac_compile"
17280case "(($ac_try" in
17281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282  *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285  (eval "$ac_compile") 2>conftest.er1
17286  ac_status=$?
17287  grep -v '^ *+' conftest.er1 >conftest.err
17288  rm -f conftest.er1
17289  cat conftest.err >&5
17290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291  (exit $ac_status); } &&
17292	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17293  { (case "(($ac_try" in
17294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295  *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298  (eval "$ac_try") 2>&5
17299  ac_status=$?
17300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301  (exit $ac_status); }; } &&
17302	 { ac_try='test -s conftest.$ac_objext'
17303  { (case "(($ac_try" in
17304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305  *) ac_try_echo=$ac_try;;
17306esac
17307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308  (eval "$ac_try") 2>&5
17309  ac_status=$?
17310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311  (exit $ac_status); }; }; then
17312  ac_cv_func_std_isinf_in_cmath=yes
17313else
17314  echo "$as_me: failed program was:" >&5
17315sed 's/^/| /' conftest.$ac_ext >&5
17316
17317	ac_cv_func_std_isinf_in_cmath=no
17318fi
17319
17320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17321    ac_ext=c
17322ac_cpp='$CPP $CPPFLAGS'
17323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17325ac_compiler_gnu=$ac_cv_c_compiler_gnu
17326
17327
17328fi
17329{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17330echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17331
17332if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17333
17334cat >>confdefs.h <<\_ACEOF
17335#define HAVE_STD_ISINF_IN_CMATH 1
17336_ACEOF
17337
17338fi
17339
17340
17341  { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17342echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17343if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17344  echo $ECHO_N "(cached) $ECHO_C" >&6
17345else
17346
17347    ac_ext=cpp
17348ac_cpp='$CXXCPP $CPPFLAGS'
17349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17352
17353    cat >conftest.$ac_ext <<_ACEOF
17354/* confdefs.h.  */
17355_ACEOF
17356cat confdefs.h >>conftest.$ac_ext
17357cat >>conftest.$ac_ext <<_ACEOF
17358/* end confdefs.h.  */
17359#include <ieeefp.h>
17360int
17361main ()
17362{
17363float f; finite(f);
17364  ;
17365  return 0;
17366}
17367_ACEOF
17368rm -f conftest.$ac_objext
17369if { (ac_try="$ac_compile"
17370case "(($ac_try" in
17371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372  *) ac_try_echo=$ac_try;;
17373esac
17374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375  (eval "$ac_compile") 2>conftest.er1
17376  ac_status=$?
17377  grep -v '^ *+' conftest.er1 >conftest.err
17378  rm -f conftest.er1
17379  cat conftest.err >&5
17380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381  (exit $ac_status); } &&
17382	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17383  { (case "(($ac_try" in
17384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385  *) ac_try_echo=$ac_try;;
17386esac
17387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388  (eval "$ac_try") 2>&5
17389  ac_status=$?
17390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391  (exit $ac_status); }; } &&
17392	 { ac_try='test -s conftest.$ac_objext'
17393  { (case "(($ac_try" in
17394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395  *) ac_try_echo=$ac_try;;
17396esac
17397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398  (eval "$ac_try") 2>&5
17399  ac_status=$?
17400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401  (exit $ac_status); }; }; then
17402  ac_cv_func_finite_in_ieeefp_h=yes
17403else
17404  echo "$as_me: failed program was:" >&5
17405sed 's/^/| /' conftest.$ac_ext >&5
17406
17407	ac_cv_func_finite_in_ieeefp_h=no
17408fi
17409
17410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411    ac_ext=c
17412ac_cpp='$CPP $CPPFLAGS'
17413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415ac_compiler_gnu=$ac_cv_c_compiler_gnu
17416
17417
17418fi
17419{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17420echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17421
17422if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17423
17424cat >>confdefs.h <<\_ACEOF
17425#define HAVE_FINITE_IN_IEEEFP_H 1
17426_ACEOF
17427
17428fi
17429
17430
17431
17432if test "$llvm_cv_platform_type" = "Unix" ; then
17433
17434
17435for ac_header in stdlib.h unistd.h
17436do
17437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17439  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17442  echo $ECHO_N "(cached) $ECHO_C" >&6
17443fi
17444ac_res=`eval echo '${'$as_ac_Header'}'`
17445	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17446echo "${ECHO_T}$ac_res" >&6; }
17447else
17448  # Is the header compilable?
17449{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17451cat >conftest.$ac_ext <<_ACEOF
17452/* confdefs.h.  */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h.  */
17457$ac_includes_default
17458#include <$ac_header>
17459_ACEOF
17460rm -f conftest.$ac_objext
17461if { (ac_try="$ac_compile"
17462case "(($ac_try" in
17463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464  *) ac_try_echo=$ac_try;;
17465esac
17466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467  (eval "$ac_compile") 2>conftest.er1
17468  ac_status=$?
17469  grep -v '^ *+' conftest.er1 >conftest.err
17470  rm -f conftest.er1
17471  cat conftest.err >&5
17472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473  (exit $ac_status); } &&
17474	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475  { (case "(($ac_try" in
17476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477  *) ac_try_echo=$ac_try;;
17478esac
17479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480  (eval "$ac_try") 2>&5
17481  ac_status=$?
17482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483  (exit $ac_status); }; } &&
17484	 { ac_try='test -s conftest.$ac_objext'
17485  { (case "(($ac_try" in
17486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487  *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490  (eval "$ac_try") 2>&5
17491  ac_status=$?
17492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493  (exit $ac_status); }; }; then
17494  ac_header_compiler=yes
17495else
17496  echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
17498
17499	ac_header_compiler=no
17500fi
17501
17502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17504echo "${ECHO_T}$ac_header_compiler" >&6; }
17505
17506# Is the header present?
17507{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17509cat >conftest.$ac_ext <<_ACEOF
17510/* confdefs.h.  */
17511_ACEOF
17512cat confdefs.h >>conftest.$ac_ext
17513cat >>conftest.$ac_ext <<_ACEOF
17514/* end confdefs.h.  */
17515#include <$ac_header>
17516_ACEOF
17517if { (ac_try="$ac_cpp conftest.$ac_ext"
17518case "(($ac_try" in
17519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520  *) ac_try_echo=$ac_try;;
17521esac
17522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17524  ac_status=$?
17525  grep -v '^ *+' conftest.er1 >conftest.err
17526  rm -f conftest.er1
17527  cat conftest.err >&5
17528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529  (exit $ac_status); } >/dev/null; then
17530  if test -s conftest.err; then
17531    ac_cpp_err=$ac_c_preproc_warn_flag
17532    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17533  else
17534    ac_cpp_err=
17535  fi
17536else
17537  ac_cpp_err=yes
17538fi
17539if test -z "$ac_cpp_err"; then
17540  ac_header_preproc=yes
17541else
17542  echo "$as_me: failed program was:" >&5
17543sed 's/^/| /' conftest.$ac_ext >&5
17544
17545  ac_header_preproc=no
17546fi
17547
17548rm -f conftest.err conftest.$ac_ext
17549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17550echo "${ECHO_T}$ac_header_preproc" >&6; }
17551
17552# So?  What about this header?
17553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17554  yes:no: )
17555    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17557    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17559    ac_header_preproc=yes
17560    ;;
17561  no:yes:* )
17562    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17564    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17565echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17566    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17568    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17569echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17570    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17572    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17574    ( cat <<\_ASBOX
17575## ------------------------------------ ##
17576## Report this to http://llvm.org/bugs/ ##
17577## ------------------------------------ ##
17578_ASBOX
17579     ) | sed "s/^/$as_me: WARNING:     /" >&2
17580    ;;
17581esac
17582{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585  echo $ECHO_N "(cached) $ECHO_C" >&6
17586else
17587  eval "$as_ac_Header=\$ac_header_preproc"
17588fi
17589ac_res=`eval echo '${'$as_ac_Header'}'`
17590	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17591echo "${ECHO_T}$ac_res" >&6; }
17592
17593fi
17594if test `eval echo '${'$as_ac_Header'}'` = yes; then
17595  cat >>confdefs.h <<_ACEOF
17596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17597_ACEOF
17598
17599fi
17600
17601done
17602
17603
17604for ac_func in getpagesize
17605do
17606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17610  echo $ECHO_N "(cached) $ECHO_C" >&6
17611else
17612  cat >conftest.$ac_ext <<_ACEOF
17613/* confdefs.h.  */
17614_ACEOF
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
17617/* end confdefs.h.  */
17618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17619   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17620#define $ac_func innocuous_$ac_func
17621
17622/* System header to define __stub macros and hopefully few prototypes,
17623    which can conflict with char $ac_func (); below.
17624    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17625    <limits.h> exists even on freestanding compilers.  */
17626
17627#ifdef __STDC__
17628# include <limits.h>
17629#else
17630# include <assert.h>
17631#endif
17632
17633#undef $ac_func
17634
17635/* Override any GCC internal prototype to avoid an error.
17636   Use char because int might match the return type of a GCC
17637   builtin and then its argument prototype would still apply.  */
17638#ifdef __cplusplus
17639extern "C"
17640#endif
17641char $ac_func ();
17642/* The GNU C library defines this for functions which it implements
17643    to always fail with ENOSYS.  Some functions are actually named
17644    something starting with __ and the normal name is an alias.  */
17645#if defined __stub_$ac_func || defined __stub___$ac_func
17646choke me
17647#endif
17648
17649int
17650main ()
17651{
17652return $ac_func ();
17653  ;
17654  return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext conftest$ac_exeext
17658if { (ac_try="$ac_link"
17659case "(($ac_try" in
17660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661  *) ac_try_echo=$ac_try;;
17662esac
17663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664  (eval "$ac_link") 2>conftest.er1
17665  ac_status=$?
17666  grep -v '^ *+' conftest.er1 >conftest.err
17667  rm -f conftest.er1
17668  cat conftest.err >&5
17669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670  (exit $ac_status); } &&
17671	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672  { (case "(($ac_try" in
17673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674  *) ac_try_echo=$ac_try;;
17675esac
17676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677  (eval "$ac_try") 2>&5
17678  ac_status=$?
17679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680  (exit $ac_status); }; } &&
17681	 { ac_try='test -s conftest$ac_exeext'
17682  { (case "(($ac_try" in
17683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684  *) ac_try_echo=$ac_try;;
17685esac
17686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687  (eval "$ac_try") 2>&5
17688  ac_status=$?
17689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690  (exit $ac_status); }; }; then
17691  eval "$as_ac_var=yes"
17692else
17693  echo "$as_me: failed program was:" >&5
17694sed 's/^/| /' conftest.$ac_ext >&5
17695
17696	eval "$as_ac_var=no"
17697fi
17698
17699rm -f core conftest.err conftest.$ac_objext \
17700      conftest$ac_exeext conftest.$ac_ext
17701fi
17702ac_res=`eval echo '${'$as_ac_var'}'`
17703	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17704echo "${ECHO_T}$ac_res" >&6; }
17705if test `eval echo '${'$as_ac_var'}'` = yes; then
17706  cat >>confdefs.h <<_ACEOF
17707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17708_ACEOF
17709
17710fi
17711done
17712
17713{ echo "$as_me:$LINENO: checking for working mmap" >&5
17714echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17715if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17716  echo $ECHO_N "(cached) $ECHO_C" >&6
17717else
17718  if test "$cross_compiling" = yes; then
17719  ac_cv_func_mmap_fixed_mapped=no
17720else
17721  cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h.  */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h.  */
17727$ac_includes_default
17728/* malloc might have been renamed as rpl_malloc. */
17729#undef malloc
17730
17731/* Thanks to Mike Haertel and Jim Avera for this test.
17732   Here is a matrix of mmap possibilities:
17733	mmap private not fixed
17734	mmap private fixed at somewhere currently unmapped
17735	mmap private fixed at somewhere already mapped
17736	mmap shared not fixed
17737	mmap shared fixed at somewhere currently unmapped
17738	mmap shared fixed at somewhere already mapped
17739   For private mappings, we should verify that changes cannot be read()
17740   back from the file, nor mmap's back from the file at a different
17741   address.  (There have been systems where private was not correctly
17742   implemented like the infamous i386 svr4.0, and systems where the
17743   VM page cache was not coherent with the file system buffer cache
17744   like early versions of FreeBSD and possibly contemporary NetBSD.)
17745   For shared mappings, we should conversely verify that changes get
17746   propagated back to all the places they're supposed to be.
17747
17748   Grep wants private fixed already mapped.
17749   The main things grep needs to know about mmap are:
17750   * does it exist and is it safe to write into the mmap'd area
17751   * how to use it (BSD variants)  */
17752
17753#include <fcntl.h>
17754#include <sys/mman.h>
17755
17756#if !STDC_HEADERS && !HAVE_STDLIB_H
17757char *malloc ();
17758#endif
17759
17760/* This mess was copied from the GNU getpagesize.h.  */
17761#if !HAVE_GETPAGESIZE
17762/* Assume that all systems that can run configure have sys/param.h.  */
17763# if !HAVE_SYS_PARAM_H
17764#  define HAVE_SYS_PARAM_H 1
17765# endif
17766
17767# ifdef _SC_PAGESIZE
17768#  define getpagesize() sysconf(_SC_PAGESIZE)
17769# else /* no _SC_PAGESIZE */
17770#  if HAVE_SYS_PARAM_H
17771#   include <sys/param.h>
17772#   ifdef EXEC_PAGESIZE
17773#    define getpagesize() EXEC_PAGESIZE
17774#   else /* no EXEC_PAGESIZE */
17775#    ifdef NBPG
17776#     define getpagesize() NBPG * CLSIZE
17777#     ifndef CLSIZE
17778#      define CLSIZE 1
17779#     endif /* no CLSIZE */
17780#    else /* no NBPG */
17781#     ifdef NBPC
17782#      define getpagesize() NBPC
17783#     else /* no NBPC */
17784#      ifdef PAGESIZE
17785#       define getpagesize() PAGESIZE
17786#      endif /* PAGESIZE */
17787#     endif /* no NBPC */
17788#    endif /* no NBPG */
17789#   endif /* no EXEC_PAGESIZE */
17790#  else /* no HAVE_SYS_PARAM_H */
17791#   define getpagesize() 8192	/* punt totally */
17792#  endif /* no HAVE_SYS_PARAM_H */
17793# endif /* no _SC_PAGESIZE */
17794
17795#endif /* no HAVE_GETPAGESIZE */
17796
17797int
17798main ()
17799{
17800  char *data, *data2, *data3;
17801  int i, pagesize;
17802  int fd;
17803
17804  pagesize = getpagesize ();
17805
17806  /* First, make a file with some known garbage in it. */
17807  data = (char *) malloc (pagesize);
17808  if (!data)
17809    return 1;
17810  for (i = 0; i < pagesize; ++i)
17811    *(data + i) = rand ();
17812  umask (0);
17813  fd = creat ("conftest.mmap", 0600);
17814  if (fd < 0)
17815    return 1;
17816  if (write (fd, data, pagesize) != pagesize)
17817    return 1;
17818  close (fd);
17819
17820  /* Next, try to mmap the file at a fixed address which already has
17821     something else allocated at it.  If we can, also make sure that
17822     we see the same garbage.  */
17823  fd = open ("conftest.mmap", O_RDWR);
17824  if (fd < 0)
17825    return 1;
17826  data2 = (char *) malloc (2 * pagesize);
17827  if (!data2)
17828    return 1;
17829  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17830  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17831		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
17832    return 1;
17833  for (i = 0; i < pagesize; ++i)
17834    if (*(data + i) != *(data2 + i))
17835      return 1;
17836
17837  /* Finally, make sure that changes to the mapped area do not
17838     percolate back to the file as seen by read().  (This is a bug on
17839     some variants of i386 svr4.0.)  */
17840  for (i = 0; i < pagesize; ++i)
17841    *(data2 + i) = *(data2 + i) + 1;
17842  data3 = (char *) malloc (pagesize);
17843  if (!data3)
17844    return 1;
17845  if (read (fd, data3, pagesize) != pagesize)
17846    return 1;
17847  for (i = 0; i < pagesize; ++i)
17848    if (*(data + i) != *(data3 + i))
17849      return 1;
17850  close (fd);
17851  return 0;
17852}
17853_ACEOF
17854rm -f conftest$ac_exeext
17855if { (ac_try="$ac_link"
17856case "(($ac_try" in
17857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858  *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861  (eval "$ac_link") 2>&5
17862  ac_status=$?
17863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17865  { (case "(($ac_try" in
17866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867  *) ac_try_echo=$ac_try;;
17868esac
17869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870  (eval "$ac_try") 2>&5
17871  ac_status=$?
17872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873  (exit $ac_status); }; }; then
17874  ac_cv_func_mmap_fixed_mapped=yes
17875else
17876  echo "$as_me: program exited with status $ac_status" >&5
17877echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880( exit $ac_status )
17881ac_cv_func_mmap_fixed_mapped=no
17882fi
17883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17884fi
17885
17886
17887fi
17888{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17889echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17890if test $ac_cv_func_mmap_fixed_mapped = yes; then
17891
17892cat >>confdefs.h <<\_ACEOF
17893#define HAVE_MMAP 1
17894_ACEOF
17895
17896fi
17897rm -f conftest.mmap
17898
17899  { echo "$as_me:$LINENO: checking for mmap of files" >&5
17900echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17901if test "${ac_cv_func_mmap_file+set}" = set; then
17902  echo $ECHO_N "(cached) $ECHO_C" >&6
17903else
17904   ac_ext=c
17905ac_cpp='$CPP $CPPFLAGS'
17906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17908ac_compiler_gnu=$ac_cv_c_compiler_gnu
17909
17910  if test "$cross_compiling" = yes; then
17911  ac_cv_func_mmap_file=no
17912else
17913  cat >conftest.$ac_ext <<_ACEOF
17914
17915    /* confdefs.h.  */
17916_ACEOF
17917cat confdefs.h >>conftest.$ac_ext
17918cat >>conftest.$ac_ext <<_ACEOF
17919/* end confdefs.h.  */
17920
17921#include <sys/types.h>
17922#include <sys/mman.h>
17923#include <fcntl.h>
17924
17925int
17926main ()
17927{
17928
17929  int fd;
17930  fd = creat ("foo",0777);
17931  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17932  unlink ("foo");
17933  return (fd != (int) MAP_FAILED);
17934  ;
17935  return 0;
17936}
17937_ACEOF
17938rm -f conftest$ac_exeext
17939if { (ac_try="$ac_link"
17940case "(($ac_try" in
17941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942  *) ac_try_echo=$ac_try;;
17943esac
17944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945  (eval "$ac_link") 2>&5
17946  ac_status=$?
17947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_mmap_file=yes
17959else
17960  echo "$as_me: program exited with status $ac_status" >&5
17961echo "$as_me: failed program was:" >&5
17962sed 's/^/| /' conftest.$ac_ext >&5
17963
17964( exit $ac_status )
17965ac_cv_func_mmap_file=no
17966fi
17967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17968fi
17969
17970
17971  ac_ext=c
17972ac_cpp='$CPP $CPPFLAGS'
17973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17975ac_compiler_gnu=$ac_cv_c_compiler_gnu
17976
17977
17978fi
17979{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17980echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17981if test "$ac_cv_func_mmap_file" = yes; then
17982
17983cat >>confdefs.h <<\_ACEOF
17984#define HAVE_MMAP_FILE
17985_ACEOF
17986
17987   MMAP_FILE=yes
17988
17989fi
17990
17991  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17992echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17993if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17994  echo $ECHO_N "(cached) $ECHO_C" >&6
17995else
17996  if test "$llvm_cv_os_type" = "Interix" ; then
17997   ac_cv_need_dev_zero_for_mmap=yes
17998 else
17999   ac_cv_need_dev_zero_for_mmap=no
18000 fi
18001
18002fi
18003{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18004echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18005if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18006
18007cat >>confdefs.h <<\_ACEOF
18008#define NEED_DEV_ZERO_FOR_MMAP 1
18009_ACEOF
18010
18011fi
18012
18013  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18014  then
18015    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18016echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18017  fi
18018  if test "$ac_cv_func_mmap_file" = "no"
18019  then
18020    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18021echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18022  fi
18023fi
18024
18025{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18026echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18027ac_ext=cpp
18028ac_cpp='$CXXCPP $CPPFLAGS'
18029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18032
18033cat >conftest.$ac_ext <<_ACEOF
18034
18035  /* confdefs.h.  */
18036_ACEOF
18037cat confdefs.h >>conftest.$ac_ext
18038cat >>conftest.$ac_ext <<_ACEOF
18039/* end confdefs.h.  */
18040
18041    int main() {
18042      volatile unsigned long val = 1;
18043      __sync_synchronize();
18044      __sync_val_compare_and_swap(&val, 1, 0);
18045      __sync_add_and_fetch(&val, 1);
18046      __sync_sub_and_fetch(&val, 1);
18047      return 0;
18048    }
18049
18050
18051_ACEOF
18052rm -f conftest.$ac_objext conftest$ac_exeext
18053if { (ac_try="$ac_link"
18054case "(($ac_try" in
18055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056  *) ac_try_echo=$ac_try;;
18057esac
18058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059  (eval "$ac_link") 2>conftest.er1
18060  ac_status=$?
18061  grep -v '^ *+' conftest.er1 >conftest.err
18062  rm -f conftest.er1
18063  cat conftest.err >&5
18064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065  (exit $ac_status); } &&
18066	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18067  { (case "(($ac_try" in
18068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069  *) ac_try_echo=$ac_try;;
18070esac
18071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072  (eval "$ac_try") 2>&5
18073  ac_status=$?
18074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075  (exit $ac_status); }; } &&
18076	 { ac_try='test -s conftest$ac_exeext'
18077  { (case "(($ac_try" in
18078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079  *) ac_try_echo=$ac_try;;
18080esac
18081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082  (eval "$ac_try") 2>&5
18083  ac_status=$?
18084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085  (exit $ac_status); }; }; then
18086
18087  { echo "$as_me:$LINENO: result: yes" >&5
18088echo "${ECHO_T}yes" >&6; }
18089
18090cat >>confdefs.h <<\_ACEOF
18091#define LLVM_HAS_ATOMICS 1
18092_ACEOF
18093
18094
18095else
18096  echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099
18100  { echo "$as_me:$LINENO: result: no" >&5
18101echo "${ECHO_T}no" >&6; }
18102
18103cat >>confdefs.h <<\_ACEOF
18104#define LLVM_HAS_ATOMICS 0
18105_ACEOF
18106
18107  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18108echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18109
18110fi
18111
18112rm -f core conftest.err conftest.$ac_objext \
18113      conftest$ac_exeext conftest.$ac_ext
18114ac_ext=c
18115ac_cpp='$CPP $CPPFLAGS'
18116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18118ac_compiler_gnu=$ac_cv_c_compiler_gnu
18119
18120
18121
18122if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18123  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18124echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18125if test "${llvm_cv_linux_mixed+set}" = set; then
18126  echo $ECHO_N "(cached) $ECHO_C" >&6
18127else
18128   ac_ext=c
18129ac_cpp='$CPP $CPPFLAGS'
18130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132ac_compiler_gnu=$ac_cv_c_compiler_gnu
18133
18134  cat >conftest.$ac_ext <<_ACEOF
18135/* confdefs.h.  */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h.  */
18140#ifndef __x86_64__
18141       error: Not x86-64 even if uname says so!
18142      #endif
18143
18144int
18145main ()
18146{
18147
18148  ;
18149  return 0;
18150}
18151_ACEOF
18152rm -f conftest.$ac_objext
18153if { (ac_try="$ac_compile"
18154case "(($ac_try" in
18155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156  *) ac_try_echo=$ac_try;;
18157esac
18158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159  (eval "$ac_compile") 2>conftest.er1
18160  ac_status=$?
18161  grep -v '^ *+' conftest.er1 >conftest.err
18162  rm -f conftest.er1
18163  cat conftest.err >&5
18164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165  (exit $ac_status); } &&
18166	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18167  { (case "(($ac_try" in
18168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169  *) ac_try_echo=$ac_try;;
18170esac
18171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172  (eval "$ac_try") 2>&5
18173  ac_status=$?
18174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175  (exit $ac_status); }; } &&
18176	 { ac_try='test -s conftest.$ac_objext'
18177  { (case "(($ac_try" in
18178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179  *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182  (eval "$ac_try") 2>&5
18183  ac_status=$?
18184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185  (exit $ac_status); }; }; then
18186  llvm_cv_linux_mixed=no
18187else
18188  echo "$as_me: failed program was:" >&5
18189sed 's/^/| /' conftest.$ac_ext >&5
18190
18191	llvm_cv_linux_mixed=yes
18192fi
18193
18194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18195  ac_ext=c
18196ac_cpp='$CPP $CPPFLAGS'
18197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199ac_compiler_gnu=$ac_cv_c_compiler_gnu
18200
18201
18202fi
18203{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18204echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18205
18206  if test "$llvm_cv_linux_mixed" = "yes"; then
18207    llvm_cv_target_arch="x86"
18208    ARCH="x86"
18209  fi
18210fi
18211
18212
18213for ac_func in __dso_handle
18214do
18215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18216{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18218if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18219  echo $ECHO_N "(cached) $ECHO_C" >&6
18220else
18221  cat >conftest.$ac_ext <<_ACEOF
18222/* confdefs.h.  */
18223_ACEOF
18224cat confdefs.h >>conftest.$ac_ext
18225cat >>conftest.$ac_ext <<_ACEOF
18226/* end confdefs.h.  */
18227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18229#define $ac_func innocuous_$ac_func
18230
18231/* System header to define __stub macros and hopefully few prototypes,
18232    which can conflict with char $ac_func (); below.
18233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18234    <limits.h> exists even on freestanding compilers.  */
18235
18236#ifdef __STDC__
18237# include <limits.h>
18238#else
18239# include <assert.h>
18240#endif
18241
18242#undef $ac_func
18243
18244/* Override any GCC internal prototype to avoid an error.
18245   Use char because int might match the return type of a GCC
18246   builtin and then its argument prototype would still apply.  */
18247#ifdef __cplusplus
18248extern "C"
18249#endif
18250char $ac_func ();
18251/* The GNU C library defines this for functions which it implements
18252    to always fail with ENOSYS.  Some functions are actually named
18253    something starting with __ and the normal name is an alias.  */
18254#if defined __stub_$ac_func || defined __stub___$ac_func
18255choke me
18256#endif
18257
18258int
18259main ()
18260{
18261return $ac_func ();
18262  ;
18263  return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext conftest$ac_exeext
18267if { (ac_try="$ac_link"
18268case "(($ac_try" in
18269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270  *) ac_try_echo=$ac_try;;
18271esac
18272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273  (eval "$ac_link") 2>conftest.er1
18274  ac_status=$?
18275  grep -v '^ *+' conftest.er1 >conftest.err
18276  rm -f conftest.er1
18277  cat conftest.err >&5
18278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279  (exit $ac_status); } &&
18280	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18281  { (case "(($ac_try" in
18282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283  *) ac_try_echo=$ac_try;;
18284esac
18285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286  (eval "$ac_try") 2>&5
18287  ac_status=$?
18288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289  (exit $ac_status); }; } &&
18290	 { ac_try='test -s conftest$ac_exeext'
18291  { (case "(($ac_try" in
18292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293  *) ac_try_echo=$ac_try;;
18294esac
18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296  (eval "$ac_try") 2>&5
18297  ac_status=$?
18298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299  (exit $ac_status); }; }; then
18300  eval "$as_ac_var=yes"
18301else
18302  echo "$as_me: failed program was:" >&5
18303sed 's/^/| /' conftest.$ac_ext >&5
18304
18305	eval "$as_ac_var=no"
18306fi
18307
18308rm -f core conftest.err conftest.$ac_objext \
18309      conftest$ac_exeext conftest.$ac_ext
18310fi
18311ac_res=`eval echo '${'$as_ac_var'}'`
18312	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18313echo "${ECHO_T}$ac_res" >&6; }
18314if test `eval echo '${'$as_ac_var'}'` = yes; then
18315  cat >>confdefs.h <<_ACEOF
18316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18317_ACEOF
18318
18319fi
18320done
18321
18322
18323SHLIBEXT=$llvm_shlib_ext
18324
18325
18326if test "${prefix}" = "NONE" ; then
18327  prefix="/usr/local"
18328fi
18329eval LLVM_PREFIX="${prefix}";
18330eval LLVM_BINDIR="${prefix}/bin";
18331eval LLVM_DATADIR="${prefix}/share/llvm";
18332eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18333eval LLVM_ETCDIR="${prefix}/etc/llvm";
18334eval LLVM_INCLUDEDIR="${prefix}/include";
18335eval LLVM_INFODIR="${prefix}/info";
18336eval LLVM_MANDIR="${prefix}/man";
18337LLVM_CONFIGTIME=`date`
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348if test "${ENABLE_TIMESTAMPS}" = "0"; then
18349  LLVM_CONFIGTIME="(timestamp not enabled)"
18350fi
18351
18352
18353cat >>confdefs.h <<_ACEOF
18354#define LLVM_PREFIX "$LLVM_PREFIX"
18355_ACEOF
18356
18357
18358cat >>confdefs.h <<_ACEOF
18359#define LLVM_BINDIR "$LLVM_BINDIR"
18360_ACEOF
18361
18362
18363cat >>confdefs.h <<_ACEOF
18364#define LLVM_DATADIR "$LLVM_DATADIR"
18365_ACEOF
18366
18367
18368cat >>confdefs.h <<_ACEOF
18369#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18370_ACEOF
18371
18372
18373cat >>confdefs.h <<_ACEOF
18374#define LLVM_ETCDIR "$LLVM_ETCDIR"
18375_ACEOF
18376
18377
18378cat >>confdefs.h <<_ACEOF
18379#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18380_ACEOF
18381
18382
18383cat >>confdefs.h <<_ACEOF
18384#define LLVM_INFODIR "$LLVM_INFODIR"
18385_ACEOF
18386
18387
18388cat >>confdefs.h <<_ACEOF
18389#define LLVM_MANDIR "$LLVM_MANDIR"
18390_ACEOF
18391
18392
18393cat >>confdefs.h <<_ACEOF
18394#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18395_ACEOF
18396
18397
18398cat >>confdefs.h <<_ACEOF
18399#define LLVM_HOST_TRIPLE "$host"
18400_ACEOF
18401
18402
18403cat >>confdefs.h <<_ACEOF
18404#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18405_ACEOF
18406
18407
18408if test "$BINDINGS_TO_BUILD" = auto ; then
18409  BINDINGS_TO_BUILD=""
18410  if test "x$OCAMLFIND" != x ; then
18411    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18412  fi
18413  if test "x$GO" != x ; then
18414    if $GO run ${srcdir}/bindings/go/conftest.go ; then
18415      BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
18416    fi
18417  fi
18418fi
18419BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18420
18421
18422binding_prereqs_failed=0
18423for a_binding in $BINDINGS_TO_BUILD ; do
18424  case "$a_binding" in
18425  ocaml)
18426    if test "x$OCAMLFIND" = x ; then
18427      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
18428echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
18429      binding_prereqs_failed=1
18430    fi
18431
18432    if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
18433      HAVE_OCAMLOPT=1
18434    else
18435      HAVE_OCAMLOPT=0
18436    fi
18437
18438
18439    if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
18440      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
18441echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
18442      binding_prereqs_failed=1
18443    fi
18444
18445    if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
18446      HAVE_OCAML_OUNIT=1
18447    else
18448      HAVE_OCAML_OUNIT=0
18449      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
18450echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
18451          fi
18452
18453
18454    if test "x$with_ocaml_libdir" != xauto ; then
18455      OCAML_LIBDIR=$with_ocaml_libdir
18456
18457    else
18458      ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
18459      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18460      then
18461        # ocaml stdlib is beneath our prefix; use stdlib
18462        OCAML_LIBDIR=$ocaml_stdlib
18463
18464      else
18465        # ocaml stdlib is outside our prefix; use libdir/ocaml
18466        OCAML_LIBDIR=${prefix}/lib/ocaml
18467
18468      fi
18469    fi
18470    ;;
18471  go)
18472    if test "x$GO" = x ; then
18473      { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18474echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18475      binding_prereqs_failed=1
18476    else
18477      if $GO run ${srcdir}/bindings/go/conftest.go ; then
18478        :
18479      else
18480        { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18481echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18482        binding_prereqs_failed=1
18483      fi
18484    fi
18485    ;;
18486  esac
18487done
18488if test "$binding_prereqs_failed" = 1 ; then
18489  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18490echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18491   { (exit 1); exit 1; }; }
18492fi
18493
18494{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18495echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18496if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18497  echo $ECHO_N "(cached) $ECHO_C" >&6
18498else
18499   ac_ext=cpp
18500ac_cpp='$CXXCPP $CPPFLAGS'
18501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18504
18505  oldcxxflags="$CXXFLAGS"
18506  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18507  cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h.  */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h.  */
18513template <typename T> struct X { void __attribute__((noinline)) f() {} };
18514int
18515main ()
18516{
18517X<int>().f();
18518  ;
18519  return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext
18523if { (ac_try="$ac_compile"
18524case "(($ac_try" in
18525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526  *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529  (eval "$ac_compile") 2>conftest.er1
18530  ac_status=$?
18531  grep -v '^ *+' conftest.er1 >conftest.err
18532  rm -f conftest.er1
18533  cat conftest.err >&5
18534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535  (exit $ac_status); } &&
18536	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18537  { (case "(($ac_try" in
18538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539  *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542  (eval "$ac_try") 2>&5
18543  ac_status=$?
18544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545  (exit $ac_status); }; } &&
18546	 { ac_try='test -s conftest.$ac_objext'
18547  { (case "(($ac_try" in
18548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549  *) ac_try_echo=$ac_try;;
18550esac
18551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552  (eval "$ac_try") 2>&5
18553  ac_status=$?
18554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555  (exit $ac_status); }; }; then
18556  llvm_cv_cxx_visibility_inlines_hidden=yes
18557else
18558  echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
18561	llvm_cv_cxx_visibility_inlines_hidden=no
18562fi
18563
18564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18565  CXXFLAGS="$oldcxxflags"
18566  ac_ext=c
18567ac_cpp='$CPP $CPPFLAGS'
18568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570ac_compiler_gnu=$ac_cv_c_compiler_gnu
18571
18572
18573fi
18574{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18575echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18576if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18577  ENABLE_VISIBILITY_INLINES_HIDDEN=1
18578
18579else
18580  ENABLE_VISIBILITY_INLINES_HIDDEN=0
18581
18582fi
18583
18584
18585if test "$llvm_cv_link_use_r" = "yes" ; then
18586  RPATH="-Wl,-R"
18587else
18588  RPATH="-Wl,-rpath"
18589fi
18590
18591
18592if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18593  RDYNAMIC="-rdynamic"
18594else
18595  RDYNAMIC=""
18596fi
18597
18598
18599
18600ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18601
18602
18603
18604
18605
18606
18607ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18608
18609ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18610
18611ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18612
18613ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18614
18615ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18616
18617
18618ac_config_files="$ac_config_files Makefile.config"
18619
18620
18621ac_config_files="$ac_config_files llvm.spec"
18622
18623
18624ac_config_files="$ac_config_files docs/doxygen.cfg"
18625
18626
18627if test "${clang_src_root}" = ""; then
18628  clang_src_root="$srcdir/tools/clang"
18629fi
18630if test -f ${clang_src_root}/README.txt; then
18631
18632cat >>confdefs.h <<_ACEOF
18633#define CLANG_LIBDIR_SUFFIX ""
18634_ACEOF
18635
18636
18637    configh="include/clang/Config/config.h"
18638  doxy="docs/doxygen.cfg"
18639  ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18640
18641  ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18642
18643fi
18644
18645ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18646
18647
18648test "x$program_prefix" = "xNONE" && program_prefix=""
18649
18650
18651
18652ac_config_commands="$ac_config_commands setup"
18653
18654ac_config_commands="$ac_config_commands Makefile"
18655
18656
18657ac_config_commands="$ac_config_commands Makefile.common"
18658
18659
18660ac_config_commands="$ac_config_commands examples/Makefile"
18661
18662
18663ac_config_commands="$ac_config_commands lib/Makefile"
18664
18665
18666ac_config_commands="$ac_config_commands test/Makefile"
18667
18668
18669ac_config_commands="$ac_config_commands test/Makefile.tests"
18670
18671
18672ac_config_commands="$ac_config_commands unittests/Makefile"
18673
18674
18675ac_config_commands="$ac_config_commands tools/Makefile"
18676
18677
18678ac_config_commands="$ac_config_commands utils/Makefile"
18679
18680
18681ac_config_commands="$ac_config_commands projects/Makefile"
18682
18683
18684ac_config_commands="$ac_config_commands bindings/Makefile"
18685
18686
18687ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18688
18689
18690
18691cat >confcache <<\_ACEOF
18692# This file is a shell script that caches the results of configure
18693# tests run on this system so they can be shared between configure
18694# scripts and configure runs, see configure's option --config-cache.
18695# It is not useful on other systems.  If it contains results you don't
18696# want to keep, you may remove or edit it.
18697#
18698# config.status only pays attention to the cache file if you give it
18699# the --recheck option to rerun configure.
18700#
18701# `ac_cv_env_foo' variables (set or unset) will be overridden when
18702# loading this file, other *unset* `ac_cv_foo' will be assigned the
18703# following values.
18704
18705_ACEOF
18706
18707# The following way of writing the cache mishandles newlines in values,
18708# but we know of no workaround that is simple, portable, and efficient.
18709# So, we kill variables containing newlines.
18710# Ultrix sh set writes to stderr and can't be redirected directly,
18711# and sets the high bit in the cache file unless we assign to the vars.
18712(
18713  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18714    eval ac_val=\$$ac_var
18715    case $ac_val in #(
18716    *${as_nl}*)
18717      case $ac_var in #(
18718      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18719echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18720      esac
18721      case $ac_var in #(
18722      _ | IFS | as_nl) ;; #(
18723      *) $as_unset $ac_var ;;
18724      esac ;;
18725    esac
18726  done
18727
18728  (set) 2>&1 |
18729    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18730    *${as_nl}ac_space=\ *)
18731      # `set' does not quote correctly, so add quotes (double-quote
18732      # substitution turns \\\\ into \\, and sed turns \\ into \).
18733      sed -n \
18734	"s/'/'\\\\''/g;
18735	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18736      ;; #(
18737    *)
18738      # `set' quotes correctly as required by POSIX, so do not add quotes.
18739      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18740      ;;
18741    esac |
18742    sort
18743) |
18744  sed '
18745     /^ac_cv_env_/b end
18746     t clear
18747     :clear
18748     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18749     t end
18750     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18751     :end' >>confcache
18752if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18753  if test -w "$cache_file"; then
18754    test "x$cache_file" != "x/dev/null" &&
18755      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18756echo "$as_me: updating cache $cache_file" >&6;}
18757    cat confcache >$cache_file
18758  else
18759    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18760echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18761  fi
18762fi
18763rm -f confcache
18764
18765test "x$prefix" = xNONE && prefix=$ac_default_prefix
18766# Let make expand exec_prefix.
18767test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18768
18769DEFS=-DHAVE_CONFIG_H
18770
18771ac_libobjs=
18772ac_ltlibobjs=
18773for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18774  # 1. Remove the extension, and $U if already installed.
18775  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18776  ac_i=`echo "$ac_i" | sed "$ac_script"`
18777  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18778  #    will be set to the directory where LIBOBJS objects are built.
18779  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18780  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18781done
18782LIBOBJS=$ac_libobjs
18783
18784LTLIBOBJS=$ac_ltlibobjs
18785
18786
18787
18788: ${CONFIG_STATUS=./config.status}
18789ac_clean_files_save=$ac_clean_files
18790ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18791{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18792echo "$as_me: creating $CONFIG_STATUS" >&6;}
18793cat >$CONFIG_STATUS <<_ACEOF
18794#! $SHELL
18795# Generated by $as_me.
18796# Run this file to recreate the current configuration.
18797# Compiler output produced by configure, useful for debugging
18798# configure, is in config.log if it exists.
18799
18800debug=false
18801ac_cs_recheck=false
18802ac_cs_silent=false
18803SHELL=\${CONFIG_SHELL-$SHELL}
18804_ACEOF
18805
18806cat >>$CONFIG_STATUS <<\_ACEOF
18807## --------------------- ##
18808## M4sh Initialization.  ##
18809## --------------------- ##
18810
18811# Be Bourne compatible
18812if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18813  emulate sh
18814  NULLCMD=:
18815  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18816  # is contrary to our usage.  Disable this feature.
18817  alias -g '${1+"$@"}'='"$@"'
18818  setopt NO_GLOB_SUBST
18819else
18820  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18821fi
18822BIN_SH=xpg4; export BIN_SH # for Tru64
18823DUALCASE=1; export DUALCASE # for MKS sh
18824
18825
18826# PATH needs CR
18827# Avoid depending upon Character Ranges.
18828as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18829as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18830as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18831as_cr_digits='0123456789'
18832as_cr_alnum=$as_cr_Letters$as_cr_digits
18833
18834# The user is always right.
18835if test "${PATH_SEPARATOR+set}" != set; then
18836  echo "#! /bin/sh" >conf$$.sh
18837  echo  "exit 0"   >>conf$$.sh
18838  chmod +x conf$$.sh
18839  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18840    PATH_SEPARATOR=';'
18841  else
18842    PATH_SEPARATOR=:
18843  fi
18844  rm -f conf$$.sh
18845fi
18846
18847# Support unset when possible.
18848if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18849  as_unset=unset
18850else
18851  as_unset=false
18852fi
18853
18854
18855# IFS
18856# We need space, tab and new line, in precisely that order.  Quoting is
18857# there to prevent editors from complaining about space-tab.
18858# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18859# splitting by setting IFS to empty value.)
18860as_nl='
18861'
18862IFS=" ""	$as_nl"
18863
18864# Find who we are.  Look in the path if we contain no directory separator.
18865case $0 in
18866  *[\\/]* ) as_myself=$0 ;;
18867  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868for as_dir in $PATH
18869do
18870  IFS=$as_save_IFS
18871  test -z "$as_dir" && as_dir=.
18872  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18873done
18874IFS=$as_save_IFS
18875
18876     ;;
18877esac
18878# We did not find ourselves, most probably we were run as `sh COMMAND'
18879# in which case we are not to be found in the path.
18880if test "x$as_myself" = x; then
18881  as_myself=$0
18882fi
18883if test ! -f "$as_myself"; then
18884  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18885  { (exit 1); exit 1; }
18886fi
18887
18888# Work around bugs in pre-3.0 UWIN ksh.
18889for as_var in ENV MAIL MAILPATH
18890do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18891done
18892PS1='$ '
18893PS2='> '
18894PS4='+ '
18895
18896# NLS nuisances.
18897for as_var in \
18898  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18899  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18900  LC_TELEPHONE LC_TIME
18901do
18902  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18903    eval $as_var=C; export $as_var
18904  else
18905    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18906  fi
18907done
18908
18909# Required to use basename.
18910if expr a : '\(a\)' >/dev/null 2>&1 &&
18911   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18912  as_expr=expr
18913else
18914  as_expr=false
18915fi
18916
18917if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18918  as_basename=basename
18919else
18920  as_basename=false
18921fi
18922
18923
18924# Name of the executable.
18925as_me=`$as_basename -- "$0" ||
18926$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18927	 X"$0" : 'X\(//\)$' \| \
18928	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18929echo X/"$0" |
18930    sed '/^.*\/\([^/][^/]*\)\/*$/{
18931	    s//\1/
18932	    q
18933	  }
18934	  /^X\/\(\/\/\)$/{
18935	    s//\1/
18936	    q
18937	  }
18938	  /^X\/\(\/\).*/{
18939	    s//\1/
18940	    q
18941	  }
18942	  s/.*/./; q'`
18943
18944# CDPATH.
18945$as_unset CDPATH
18946
18947
18948
18949  as_lineno_1=$LINENO
18950  as_lineno_2=$LINENO
18951  test "x$as_lineno_1" != "x$as_lineno_2" &&
18952  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18953
18954  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18955  # uniformly replaced by the line number.  The first 'sed' inserts a
18956  # line-number line after each line using $LINENO; the second 'sed'
18957  # does the real work.  The second script uses 'N' to pair each
18958  # line-number line with the line containing $LINENO, and appends
18959  # trailing '-' during substitution so that $LINENO is not a special
18960  # case at line end.
18961  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18962  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18963  # E. McMahon (1931-1989) for sed's syntax.  :-)
18964  sed -n '
18965    p
18966    /[$]LINENO/=
18967  ' <$as_myself |
18968    sed '
18969      s/[$]LINENO.*/&-/
18970      t lineno
18971      b
18972      :lineno
18973      N
18974      :loop
18975      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18976      t loop
18977      s/-\n.*//
18978    ' >$as_me.lineno &&
18979  chmod +x "$as_me.lineno" ||
18980    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18981   { (exit 1); exit 1; }; }
18982
18983  # Don't try to exec as it changes $[0], causing all sort of problems
18984  # (the dirname of $[0] is not the place where we might find the
18985  # original and so on.  Autoconf is especially sensitive to this).
18986  . "./$as_me.lineno"
18987  # Exit status is that of the last command.
18988  exit
18989}
18990
18991
18992if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18993  as_dirname=dirname
18994else
18995  as_dirname=false
18996fi
18997
18998ECHO_C= ECHO_N= ECHO_T=
18999case `echo -n x` in
19000-n*)
19001  case `echo 'x\c'` in
19002  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19003  *)   ECHO_C='\c';;
19004  esac;;
19005*)
19006  ECHO_N='-n';;
19007esac
19008
19009if expr a : '\(a\)' >/dev/null 2>&1 &&
19010   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19011  as_expr=expr
19012else
19013  as_expr=false
19014fi
19015
19016rm -f conf$$ conf$$.exe conf$$.file
19017if test -d conf$$.dir; then
19018  rm -f conf$$.dir/conf$$.file
19019else
19020  rm -f conf$$.dir
19021  mkdir conf$$.dir
19022fi
19023echo >conf$$.file
19024if ln -s conf$$.file conf$$ 2>/dev/null; then
19025  as_ln_s='ln -s'
19026  # ... but there are two gotchas:
19027  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19028  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19029  # In both cases, we have to default to `cp -p'.
19030  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19031    as_ln_s='cp -p'
19032elif ln conf$$.file conf$$ 2>/dev/null; then
19033  as_ln_s=ln
19034else
19035  as_ln_s='cp -p'
19036fi
19037rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19038rmdir conf$$.dir 2>/dev/null
19039
19040if mkdir -p . 2>/dev/null; then
19041  as_mkdir_p=:
19042else
19043  test -d ./-p && rmdir ./-p
19044  as_mkdir_p=false
19045fi
19046
19047# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19048# systems may use methods other than mode bits to determine executability.
19049cat >conf$$.file <<_ASEOF
19050#! /bin/sh
19051exit 0
19052_ASEOF
19053chmod +x conf$$.file
19054if test -x conf$$.file >/dev/null 2>&1; then
19055  as_executable_p="test -x"
19056else
19057  as_executable_p=:
19058fi
19059rm -f conf$$.file
19060
19061# Sed expression to map a string onto a valid CPP name.
19062as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19063
19064# Sed expression to map a string onto a valid variable name.
19065as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19066
19067
19068exec 6>&1
19069
19070# Save the log message, to keep $[0] and so on meaningful, and to
19071# report actual input values of CONFIG_FILES etc. instead of their
19072# values after options handling.
19073ac_log="
19074This file was extended by LLVM $as_me 3.6.1, which was
19075generated by GNU Autoconf 2.60.  Invocation command line was
19076
19077  CONFIG_FILES    = $CONFIG_FILES
19078  CONFIG_HEADERS  = $CONFIG_HEADERS
19079  CONFIG_LINKS    = $CONFIG_LINKS
19080  CONFIG_COMMANDS = $CONFIG_COMMANDS
19081  $ $0 $@
19082
19083on `(hostname || uname -n) 2>/dev/null | sed 1q`
19084"
19085
19086_ACEOF
19087
19088cat >>$CONFIG_STATUS <<_ACEOF
19089# Files that config.status was made for.
19090config_files="$ac_config_files"
19091config_headers="$ac_config_headers"
19092config_commands="$ac_config_commands"
19093
19094_ACEOF
19095
19096cat >>$CONFIG_STATUS <<\_ACEOF
19097ac_cs_usage="\
19098\`$as_me' instantiates files from templates according to the
19099current configuration.
19100
19101Usage: $0 [OPTIONS] [FILE]...
19102
19103  -h, --help       print this help, then exit
19104  -V, --version    print version number, then exit
19105  -q, --quiet      do not print progress messages
19106  -d, --debug      don't remove temporary files
19107      --recheck    update $as_me by reconfiguring in the same conditions
19108  --file=FILE[:TEMPLATE]
19109		   instantiate the configuration file FILE
19110  --header=FILE[:TEMPLATE]
19111		   instantiate the configuration header FILE
19112
19113Configuration files:
19114$config_files
19115
19116Configuration headers:
19117$config_headers
19118
19119Configuration commands:
19120$config_commands
19121
19122Report bugs to <bug-autoconf@gnu.org>."
19123
19124_ACEOF
19125cat >>$CONFIG_STATUS <<_ACEOF
19126ac_cs_version="\\
19127LLVM config.status 3.6.1
19128configured by $0, generated by GNU Autoconf 2.60,
19129  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19130
19131Copyright (C) 2006 Free Software Foundation, Inc.
19132This config.status script is free software; the Free Software Foundation
19133gives unlimited permission to copy, distribute and modify it."
19134
19135ac_pwd='$ac_pwd'
19136srcdir='$srcdir'
19137INSTALL='$INSTALL'
19138_ACEOF
19139
19140cat >>$CONFIG_STATUS <<\_ACEOF
19141# If no file are specified by the user, then we need to provide default
19142# value.  By we need to know if files were specified by the user.
19143ac_need_defaults=:
19144while test $# != 0
19145do
19146  case $1 in
19147  --*=*)
19148    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19149    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19150    ac_shift=:
19151    ;;
19152  *)
19153    ac_option=$1
19154    ac_optarg=$2
19155    ac_shift=shift
19156    ;;
19157  esac
19158
19159  case $ac_option in
19160  # Handling of the options.
19161  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19162    ac_cs_recheck=: ;;
19163  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19164    echo "$ac_cs_version"; exit ;;
19165  --debug | --debu | --deb | --de | --d | -d )
19166    debug=: ;;
19167  --file | --fil | --fi | --f )
19168    $ac_shift
19169    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19170    ac_need_defaults=false;;
19171  --header | --heade | --head | --hea )
19172    $ac_shift
19173    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19174    ac_need_defaults=false;;
19175  --he | --h)
19176    # Conflict between --help and --header
19177    { echo "$as_me: error: ambiguous option: $1
19178Try \`$0 --help' for more information." >&2
19179   { (exit 1); exit 1; }; };;
19180  --help | --hel | -h )
19181    echo "$ac_cs_usage"; exit ;;
19182  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19183  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19184    ac_cs_silent=: ;;
19185
19186  # This is an error.
19187  -*) { echo "$as_me: error: unrecognized option: $1
19188Try \`$0 --help' for more information." >&2
19189   { (exit 1); exit 1; }; } ;;
19190
19191  *) ac_config_targets="$ac_config_targets $1"
19192     ac_need_defaults=false ;;
19193
19194  esac
19195  shift
19196done
19197
19198ac_configure_extra_args=
19199
19200if $ac_cs_silent; then
19201  exec 6>/dev/null
19202  ac_configure_extra_args="$ac_configure_extra_args --silent"
19203fi
19204
19205_ACEOF
19206cat >>$CONFIG_STATUS <<_ACEOF
19207if \$ac_cs_recheck; then
19208  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19209  CONFIG_SHELL=$SHELL
19210  export CONFIG_SHELL
19211  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19212fi
19213
19214_ACEOF
19215cat >>$CONFIG_STATUS <<\_ACEOF
19216exec 5>>config.log
19217{
19218  echo
19219  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19220## Running $as_me. ##
19221_ASBOX
19222  echo "$ac_log"
19223} >&5
19224
19225_ACEOF
19226cat >>$CONFIG_STATUS <<_ACEOF
19227#
19228# INIT-COMMANDS
19229#
19230llvm_src="${srcdir}"
19231
19232_ACEOF
19233
19234cat >>$CONFIG_STATUS <<\_ACEOF
19235
19236# Handling of arguments.
19237for ac_config_target in $ac_config_targets
19238do
19239  case $ac_config_target in
19240    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19241    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19242    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19243    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19244    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19245    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19246    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19247    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19248    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19249    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19250    "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19251    "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19252    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19253    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19254    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19255    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19256    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19257    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19258    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19259    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19260    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19261    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19262    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19263    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19264    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19265    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19266
19267  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19268echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19269   { (exit 1); exit 1; }; };;
19270  esac
19271done
19272
19273
19274# If the user did not use the arguments to specify the items to instantiate,
19275# then the envvar interface is used.  Set only those that are not.
19276# We use the long form for the default assignment because of an extremely
19277# bizarre bug on SunOS 4.1.3.
19278if $ac_need_defaults; then
19279  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19280  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19281  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19282fi
19283
19284# Have a temporary directory for convenience.  Make it in the build tree
19285# simply because there is no reason against having it here, and in addition,
19286# creating and moving files from /tmp can sometimes cause problems.
19287# Hook for its removal unless debugging.
19288# Note that there is a small window in which the directory will not be cleaned:
19289# after its creation but before its name has been assigned to `$tmp'.
19290$debug ||
19291{
19292  tmp=
19293  trap 'exit_status=$?
19294  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19295' 0
19296  trap '{ (exit 1); exit 1; }' 1 2 13 15
19297}
19298# Create a (secure) tmp directory for tmp files.
19299
19300{
19301  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19302  test -n "$tmp" && test -d "$tmp"
19303}  ||
19304{
19305  tmp=./conf$$-$RANDOM
19306  (umask 077 && mkdir "$tmp")
19307} ||
19308{
19309   echo "$me: cannot create a temporary directory in ." >&2
19310   { (exit 1); exit 1; }
19311}
19312
19313#
19314# Set up the sed scripts for CONFIG_FILES section.
19315#
19316
19317# No need to generate the scripts if there are no CONFIG_FILES.
19318# This happens for instance when ./config.status config.h
19319if test -n "$CONFIG_FILES"; then
19320
19321_ACEOF
19322
19323
19324
19325ac_delim='%!_!# '
19326for ac_last_try in false false false false false :; do
19327  cat >conf$$subs.sed <<_ACEOF
19328SHELL!$SHELL$ac_delim
19329PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19330PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19331PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19332PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19333PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19334PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19335exec_prefix!$exec_prefix$ac_delim
19336prefix!$prefix$ac_delim
19337program_transform_name!$program_transform_name$ac_delim
19338bindir!$bindir$ac_delim
19339sbindir!$sbindir$ac_delim
19340libexecdir!$libexecdir$ac_delim
19341datarootdir!$datarootdir$ac_delim
19342datadir!$datadir$ac_delim
19343sysconfdir!$sysconfdir$ac_delim
19344sharedstatedir!$sharedstatedir$ac_delim
19345localstatedir!$localstatedir$ac_delim
19346includedir!$includedir$ac_delim
19347oldincludedir!$oldincludedir$ac_delim
19348docdir!$docdir$ac_delim
19349infodir!$infodir$ac_delim
19350htmldir!$htmldir$ac_delim
19351dvidir!$dvidir$ac_delim
19352pdfdir!$pdfdir$ac_delim
19353psdir!$psdir$ac_delim
19354libdir!$libdir$ac_delim
19355localedir!$localedir$ac_delim
19356mandir!$mandir$ac_delim
19357DEFS!$DEFS$ac_delim
19358ECHO_C!$ECHO_C$ac_delim
19359ECHO_N!$ECHO_N$ac_delim
19360ECHO_T!$ECHO_T$ac_delim
19361LIBS!$LIBS$ac_delim
19362build_alias!$build_alias$ac_delim
19363host_alias!$host_alias$ac_delim
19364target_alias!$target_alias$ac_delim
19365LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19366LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19367LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19368LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19369LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19370CC!$CC$ac_delim
19371CFLAGS!$CFLAGS$ac_delim
19372LDFLAGS!$LDFLAGS$ac_delim
19373CPPFLAGS!$CPPFLAGS$ac_delim
19374ac_ct_CC!$ac_ct_CC$ac_delim
19375EXEEXT!$EXEEXT$ac_delim
19376OBJEXT!$OBJEXT$ac_delim
19377CXX!$CXX$ac_delim
19378CXXFLAGS!$CXXFLAGS$ac_delim
19379ac_ct_CXX!$ac_ct_CXX$ac_delim
19380CPP!$CPP$ac_delim
19381subdirs!$subdirs$ac_delim
19382ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19383LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19384build!$build$ac_delim
19385build_cpu!$build_cpu$ac_delim
19386build_vendor!$build_vendor$ac_delim
19387build_os!$build_os$ac_delim
19388host!$host$ac_delim
19389host_cpu!$host_cpu$ac_delim
19390host_vendor!$host_vendor$ac_delim
19391host_os!$host_os$ac_delim
19392target!$target$ac_delim
19393target_cpu!$target_cpu$ac_delim
19394target_vendor!$target_vendor$ac_delim
19395target_os!$target_os$ac_delim
19396OS!$OS$ac_delim
19397HOST_OS!$HOST_OS$ac_delim
19398TARGET_OS!$TARGET_OS$ac_delim
19399LINKALL!$LINKALL$ac_delim
19400NOLINKALL!$NOLINKALL$ac_delim
19401LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19402LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19403ARCH!$ARCH$ac_delim
19404LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19405HOST_ARCH!$HOST_ARCH$ac_delim
19406LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19407BUILD_CC!$BUILD_CC$ac_delim
19408BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19409BUILD_CXX!$BUILD_CXX$ac_delim
19410CVSBUILD!$CVSBUILD$ac_delim
19411ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19412ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19413ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19414ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19415CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19416ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19417ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19418ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19419DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19420ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19421ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19422EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19423DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19424DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19425_ACEOF
19426
19427  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19428    break
19429  elif $ac_last_try; then
19430    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19431echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19432   { (exit 1); exit 1; }; }
19433  else
19434    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19435  fi
19436done
19437
19438ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19439if test -n "$ac_eof"; then
19440  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19441  ac_eof=`expr $ac_eof + 1`
19442fi
19443
19444cat >>$CONFIG_STATUS <<_ACEOF
19445cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19447_ACEOF
19448sed '
19449s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19450s/^/s,@/; s/!/@,|#_!!_#|/
19451:n
19452t n
19453s/'"$ac_delim"'$/,g/; t
19454s/$/\\/; p
19455N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19456' >>$CONFIG_STATUS <conf$$subs.sed
19457rm -f conf$$subs.sed
19458cat >>$CONFIG_STATUS <<_ACEOF
19459CEOF$ac_eof
19460_ACEOF
19461
19462
19463ac_delim='%!_!# '
19464for ac_last_try in false false false false false :; do
19465  cat >conf$$subs.sed <<_ACEOF
19466KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19467JIT!$JIT$ac_delim
19468TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19469TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19470ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19471ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19472LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19473ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19474LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19475ENABLE_PIC!$ENABLE_PIC$ac_delim
19476ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19477ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19478ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19479ALL_TARGETS!$ALL_TARGETS$ac_delim
19480TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19481LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19482LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19483LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19484LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19485OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19486EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19487EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19488CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19489BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19490ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19491INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19492ifGNUmake!$ifGNUmake$ac_delim
19493LN_S!$LN_S$ac_delim
19494NM!$NM$ac_delim
19495CMP!$CMP$ac_delim
19496CP!$CP$ac_delim
19497DATE!$DATE$ac_delim
19498FIND!$FIND$ac_delim
19499GREP!$GREP$ac_delim
19500MKDIR!$MKDIR$ac_delim
19501MV!$MV$ac_delim
19502RANLIB!$RANLIB$ac_delim
19503AR!$AR$ac_delim
19504RM!$RM$ac_delim
19505SED!$SED$ac_delim
19506TAR!$TAR$ac_delim
19507BINPWD!$BINPWD$ac_delim
19508DOT!$DOT$ac_delim
19509INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19510INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19511INSTALL_DATA!$INSTALL_DATA$ac_delim
19512BZIP2!$BZIP2$ac_delim
19513CAT!$CAT$ac_delim
19514DOXYGEN!$DOXYGEN$ac_delim
19515GROFF!$GROFF$ac_delim
19516GZIPBIN!$GZIPBIN$ac_delim
19517PDFROFF!$PDFROFF$ac_delim
19518ZIP!$ZIP$ac_delim
19519GO!$GO$ac_delim
19520OCAMLFIND!$OCAMLFIND$ac_delim
19521GAS!$GAS$ac_delim
19522HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19523EGREP!$EGREP$ac_delim
19524NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19525NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19526COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19527NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19528NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19529NO_COMMENT!$NO_COMMENT$ac_delim
19530PYTHON!$PYTHON$ac_delim
19531HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19532HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19533USE_OPROFILE!$USE_OPROFILE$ac_delim
19534USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19535XML2CONFIG!$XML2CONFIG$ac_delim
19536LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19537LIBXML2_INC!$LIBXML2_INC$ac_delim
19538HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19539HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19540HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19541MMAP_FILE!$MMAP_FILE$ac_delim
19542SHLIBEXT!$SHLIBEXT$ac_delim
19543LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19544LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19545LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19546LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19547LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19548LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19549LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19550LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19551LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19552BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19553HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19554HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19555OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19556ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19557RPATH!$RPATH$ac_delim
19558RDYNAMIC!$RDYNAMIC$ac_delim
19559program_prefix!$program_prefix$ac_delim
19560LIBOBJS!$LIBOBJS$ac_delim
19561LTLIBOBJS!$LTLIBOBJS$ac_delim
19562_ACEOF
19563
19564  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19565    break
19566  elif $ac_last_try; then
19567    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19568echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19569   { (exit 1); exit 1; }; }
19570  else
19571    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19572  fi
19573done
19574
19575ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19576if test -n "$ac_eof"; then
19577  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19578  ac_eof=`expr $ac_eof + 1`
19579fi
19580
19581cat >>$CONFIG_STATUS <<_ACEOF
19582cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19583/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19584_ACEOF
19585sed '
19586s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19587s/^/s,@/; s/!/@,|#_!!_#|/
19588:n
19589t n
19590s/'"$ac_delim"'$/,g/; t
19591s/$/\\/; p
19592N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19593' >>$CONFIG_STATUS <conf$$subs.sed
19594rm -f conf$$subs.sed
19595cat >>$CONFIG_STATUS <<_ACEOF
19596CEOF$ac_eof
19597_ACEOF
19598
19599
19600# VPATH may cause trouble with some makes, so we remove $(srcdir),
19601# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19602# trailing colons and then remove the whole line if VPATH becomes empty
19603# (actually we leave an empty line to preserve line numbers).
19604if test "x$srcdir" = x.; then
19605  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19606s/:*\$(srcdir):*/:/
19607s/:*\${srcdir}:*/:/
19608s/:*@srcdir@:*/:/
19609s/^\([^=]*=[	 ]*\):*/\1/
19610s/:*$//
19611s/^[^=]*=[	 ]*$//
19612}'
19613fi
19614
19615cat >>$CONFIG_STATUS <<\_ACEOF
19616fi # test -n "$CONFIG_FILES"
19617
19618
19619for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19620do
19621  case $ac_tag in
19622  :[FHLC]) ac_mode=$ac_tag; continue;;
19623  esac
19624  case $ac_mode$ac_tag in
19625  :[FHL]*:*);;
19626  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19627echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19628   { (exit 1); exit 1; }; };;
19629  :[FH]-) ac_tag=-:-;;
19630  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19631  esac
19632  ac_save_IFS=$IFS
19633  IFS=:
19634  set x $ac_tag
19635  IFS=$ac_save_IFS
19636  shift
19637  ac_file=$1
19638  shift
19639
19640  case $ac_mode in
19641  :L) ac_source=$1;;
19642  :[FH])
19643    ac_file_inputs=
19644    for ac_f
19645    do
19646      case $ac_f in
19647      -) ac_f="$tmp/stdin";;
19648      *) # Look for the file first in the build tree, then in the source tree
19649	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19650	 # because $ac_f cannot contain `:'.
19651	 test -f "$ac_f" ||
19652	   case $ac_f in
19653	   [\\/$]*) false;;
19654	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19655	   esac ||
19656	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19657echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19658   { (exit 1); exit 1; }; };;
19659      esac
19660      ac_file_inputs="$ac_file_inputs $ac_f"
19661    done
19662
19663    # Let's still pretend it is `configure' which instantiates (i.e., don't
19664    # use $as_me), people would be surprised to read:
19665    #    /* config.h.  Generated by config.status.  */
19666    configure_input="Generated from "`IFS=:
19667	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19668    if test x"$ac_file" != x-; then
19669      configure_input="$ac_file.  $configure_input"
19670      { echo "$as_me:$LINENO: creating $ac_file" >&5
19671echo "$as_me: creating $ac_file" >&6;}
19672    fi
19673
19674    case $ac_tag in
19675    *:-:* | *:-) cat >"$tmp/stdin";;
19676    esac
19677    ;;
19678  esac
19679
19680  ac_dir=`$as_dirname -- "$ac_file" ||
19681$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19682	 X"$ac_file" : 'X\(//\)[^/]' \| \
19683	 X"$ac_file" : 'X\(//\)$' \| \
19684	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19685echo X"$ac_file" |
19686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19687	    s//\1/
19688	    q
19689	  }
19690	  /^X\(\/\/\)[^/].*/{
19691	    s//\1/
19692	    q
19693	  }
19694	  /^X\(\/\/\)$/{
19695	    s//\1/
19696	    q
19697	  }
19698	  /^X\(\/\).*/{
19699	    s//\1/
19700	    q
19701	  }
19702	  s/.*/./; q'`
19703  { as_dir="$ac_dir"
19704  case $as_dir in #(
19705  -*) as_dir=./$as_dir;;
19706  esac
19707  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19708    as_dirs=
19709    while :; do
19710      case $as_dir in #(
19711      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19712      *) as_qdir=$as_dir;;
19713      esac
19714      as_dirs="'$as_qdir' $as_dirs"
19715      as_dir=`$as_dirname -- "$as_dir" ||
19716$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19717	 X"$as_dir" : 'X\(//\)[^/]' \| \
19718	 X"$as_dir" : 'X\(//\)$' \| \
19719	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19720echo X"$as_dir" |
19721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19722	    s//\1/
19723	    q
19724	  }
19725	  /^X\(\/\/\)[^/].*/{
19726	    s//\1/
19727	    q
19728	  }
19729	  /^X\(\/\/\)$/{
19730	    s//\1/
19731	    q
19732	  }
19733	  /^X\(\/\).*/{
19734	    s//\1/
19735	    q
19736	  }
19737	  s/.*/./; q'`
19738      test -d "$as_dir" && break
19739    done
19740    test -z "$as_dirs" || eval "mkdir $as_dirs"
19741  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19742echo "$as_me: error: cannot create directory $as_dir" >&2;}
19743   { (exit 1); exit 1; }; }; }
19744  ac_builddir=.
19745
19746case "$ac_dir" in
19747.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19748*)
19749  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19750  # A ".." for each directory in $ac_dir_suffix.
19751  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19752  case $ac_top_builddir_sub in
19753  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19754  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19755  esac ;;
19756esac
19757ac_abs_top_builddir=$ac_pwd
19758ac_abs_builddir=$ac_pwd$ac_dir_suffix
19759# for backward compatibility:
19760ac_top_builddir=$ac_top_build_prefix
19761
19762case $srcdir in
19763  .)  # We are building in place.
19764    ac_srcdir=.
19765    ac_top_srcdir=$ac_top_builddir_sub
19766    ac_abs_top_srcdir=$ac_pwd ;;
19767  [\\/]* | ?:[\\/]* )  # Absolute name.
19768    ac_srcdir=$srcdir$ac_dir_suffix;
19769    ac_top_srcdir=$srcdir
19770    ac_abs_top_srcdir=$srcdir ;;
19771  *) # Relative name.
19772    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19773    ac_top_srcdir=$ac_top_build_prefix$srcdir
19774    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19775esac
19776ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19777
19778
19779  case $ac_mode in
19780  :F)
19781  #
19782  # CONFIG_FILE
19783  #
19784
19785  case $INSTALL in
19786  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19787  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19788  esac
19789_ACEOF
19790
19791cat >>$CONFIG_STATUS <<\_ACEOF
19792# If the template does not know about datarootdir, expand it.
19793# FIXME: This hack should be removed a few years after 2.60.
19794ac_datarootdir_hack=; ac_datarootdir_seen=
19795
19796case `sed -n '/datarootdir/ {
19797  p
19798  q
19799}
19800/@datadir@/p
19801/@docdir@/p
19802/@infodir@/p
19803/@localedir@/p
19804/@mandir@/p
19805' $ac_file_inputs` in
19806*datarootdir*) ac_datarootdir_seen=yes;;
19807*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19808  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19809echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19810_ACEOF
19811cat >>$CONFIG_STATUS <<_ACEOF
19812  ac_datarootdir_hack='
19813  s&@datadir@&$datadir&g
19814  s&@docdir@&$docdir&g
19815  s&@infodir@&$infodir&g
19816  s&@localedir@&$localedir&g
19817  s&@mandir@&$mandir&g
19818    s&\\\${datarootdir}&$datarootdir&g' ;;
19819esac
19820_ACEOF
19821
19822# Neutralize VPATH when `$srcdir' = `.'.
19823# Shell code in configure.ac might set extrasub.
19824# FIXME: do we really want to maintain this feature?
19825cat >>$CONFIG_STATUS <<_ACEOF
19826  sed "$ac_vpsub
19827$extrasub
19828_ACEOF
19829cat >>$CONFIG_STATUS <<\_ACEOF
19830:t
19831/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19832s&@configure_input@&$configure_input&;t t
19833s&@top_builddir@&$ac_top_builddir_sub&;t t
19834s&@srcdir@&$ac_srcdir&;t t
19835s&@abs_srcdir@&$ac_abs_srcdir&;t t
19836s&@top_srcdir@&$ac_top_srcdir&;t t
19837s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19838s&@builddir@&$ac_builddir&;t t
19839s&@abs_builddir@&$ac_abs_builddir&;t t
19840s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19841s&@INSTALL@&$ac_INSTALL&;t t
19842$ac_datarootdir_hack
19843" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
19844
19845test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19846  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19847  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19848  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19849which seems to be undefined.  Please make sure it is defined." >&5
19850echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19851which seems to be undefined.  Please make sure it is defined." >&2;}
19852
19853  rm -f "$tmp/stdin"
19854  case $ac_file in
19855  -) cat "$tmp/out"; rm -f "$tmp/out";;
19856  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19857  esac
19858 ;;
19859  :H)
19860  #
19861  # CONFIG_HEADER
19862  #
19863_ACEOF
19864
19865# Transform confdefs.h into a sed script `conftest.defines', that
19866# substitutes the proper values into config.h.in to produce config.h.
19867rm -f conftest.defines conftest.tail
19868# First, append a space to every undef/define line, to ease matching.
19869echo 's/$/ /' >conftest.defines
19870# Then, protect against being on the right side of a sed subst, or in
19871# an unquoted here document, in config.status.  If some macros were
19872# called several times there might be several #defines for the same
19873# symbol, which is useless.  But do not sort them, since the last
19874# AC_DEFINE must be honored.
19875ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19876# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19877# NAME is the cpp macro being defined, VALUE is the value it is being given.
19878# PARAMS is the parameter list in the macro definition--in most cases, it's
19879# just an empty string.
19880ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
19881ac_dB='\\)[	 (].*,\\1define\\2'
19882ac_dC=' '
19883ac_dD=' ,'
19884
19885uniq confdefs.h |
19886  sed -n '
19887	t rset
19888	:rset
19889	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
19890	t ok
19891	d
19892	:ok
19893	s/[\\&,]/\\&/g
19894	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19895	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19896  ' >>conftest.defines
19897
19898# Remove the space that was appended to ease matching.
19899# Then replace #undef with comments.  This is necessary, for
19900# example, in the case of _POSIX_SOURCE, which is predefined and required
19901# on some systems where configure will not decide to define it.
19902# (The regexp can be short, since the line contains either #define or #undef.)
19903echo 's/ $//
19904s,^[	 #]*u.*,/* & */,' >>conftest.defines
19905
19906# Break up conftest.defines:
19907ac_max_sed_lines=50
19908
19909# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19910# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19911# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19912# et cetera.
19913ac_in='$ac_file_inputs'
19914ac_out='"$tmp/out1"'
19915ac_nxt='"$tmp/out2"'
19916
19917while :
19918do
19919  # Write a here document:
19920    cat >>$CONFIG_STATUS <<_ACEOF
19921    # First, check the format of the line:
19922    cat >"\$tmp/defines.sed" <<\\CEOF
19923/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
19924/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
19925b
19926:def
19927_ACEOF
19928  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19929  echo 'CEOF
19930    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19931  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19932  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19933  grep . conftest.tail >/dev/null || break
19934  rm -f conftest.defines
19935  mv conftest.tail conftest.defines
19936done
19937rm -f conftest.defines conftest.tail
19938
19939echo "ac_result=$ac_in" >>$CONFIG_STATUS
19940cat >>$CONFIG_STATUS <<\_ACEOF
19941  if test x"$ac_file" != x-; then
19942    echo "/* $configure_input  */" >"$tmp/config.h"
19943    cat "$ac_result" >>"$tmp/config.h"
19944    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19945      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19946echo "$as_me: $ac_file is unchanged" >&6;}
19947    else
19948      rm -f $ac_file
19949      mv "$tmp/config.h" $ac_file
19950    fi
19951  else
19952    echo "/* $configure_input  */"
19953    cat "$ac_result"
19954  fi
19955  rm -f "$tmp/out12"
19956 ;;
19957
19958  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19959echo "$as_me: executing $ac_file commands" >&6;}
19960 ;;
19961  esac
19962
19963
19964  case $ac_file$ac_mode in
19965    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19966   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19967    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19968   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19969    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19970   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19971    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19972   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19973    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19974   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19975    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19976   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19977    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19978   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19979    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19980   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19981    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19982   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19983    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19984   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19985    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19986   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19987    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19988   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19989
19990  esac
19991done # for ac_tag
19992
19993
19994{ (exit 0); exit 0; }
19995_ACEOF
19996chmod +x $CONFIG_STATUS
19997ac_clean_files=$ac_clean_files_save
19998
19999
20000# configure is writing to config.log, and then calls config.status.
20001# config.status does its own redirection, appending to config.log.
20002# Unfortunately, on DOS this fails, as config.log is still kept open
20003# by configure, so config.status won't be able to write to it; its
20004# output is simply discarded.  So we exec the FD to /dev/null,
20005# effectively closing config.log, so it can be properly (re)opened and
20006# appended to by config.status.  When coming back to configure, we
20007# need to make the FD available again.
20008if test "$no_create" != yes; then
20009  ac_cs_success=:
20010  ac_config_status_args=
20011  test "$silent" = yes &&
20012    ac_config_status_args="$ac_config_status_args --quiet"
20013  exec 5>/dev/null
20014  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20015  exec 5>>config.log
20016  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20017  # would make configure fail if this is the last instruction.
20018  $ac_cs_success || { (exit 1); exit 1; }
20019fi
20020
20021#
20022# CONFIG_SUBDIRS section.
20023#
20024if test "$no_recursion" != yes; then
20025
20026  # Remove --cache-file and --srcdir arguments so they do not pile up.
20027  ac_sub_configure_args=
20028  ac_prev=
20029  eval "set x $ac_configure_args"
20030  shift
20031  for ac_arg
20032  do
20033    if test -n "$ac_prev"; then
20034      ac_prev=
20035      continue
20036    fi
20037    case $ac_arg in
20038    -cache-file | --cache-file | --cache-fil | --cache-fi \
20039    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20040      ac_prev=cache_file ;;
20041    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20042    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20043    | --c=*)
20044      ;;
20045    --config-cache | -C)
20046      ;;
20047    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20048      ac_prev=srcdir ;;
20049    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20050      ;;
20051    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20052      ac_prev=prefix ;;
20053    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20054      ;;
20055    *)
20056      case $ac_arg in
20057      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20058      esac
20059      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20060    esac
20061  done
20062
20063  # Always prepend --prefix to ensure using the same prefix
20064  # in subdir configurations.
20065  ac_arg="--prefix=$prefix"
20066  case $ac_arg in
20067  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20068  esac
20069  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20070
20071  ac_popdir=`pwd`
20072  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20073
20074    # Do not complain, so a configure script can configure whichever
20075    # parts of a large source tree are present.
20076    test -d "$srcdir/$ac_dir" || continue
20077
20078    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20079    echo "$as_me:$LINENO: $ac_msg" >&5
20080    echo "$ac_msg" >&6
20081    { as_dir="$ac_dir"
20082  case $as_dir in #(
20083  -*) as_dir=./$as_dir;;
20084  esac
20085  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20086    as_dirs=
20087    while :; do
20088      case $as_dir in #(
20089      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20090      *) as_qdir=$as_dir;;
20091      esac
20092      as_dirs="'$as_qdir' $as_dirs"
20093      as_dir=`$as_dirname -- "$as_dir" ||
20094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20095	 X"$as_dir" : 'X\(//\)[^/]' \| \
20096	 X"$as_dir" : 'X\(//\)$' \| \
20097	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20098echo X"$as_dir" |
20099    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20100	    s//\1/
20101	    q
20102	  }
20103	  /^X\(\/\/\)[^/].*/{
20104	    s//\1/
20105	    q
20106	  }
20107	  /^X\(\/\/\)$/{
20108	    s//\1/
20109	    q
20110	  }
20111	  /^X\(\/\).*/{
20112	    s//\1/
20113	    q
20114	  }
20115	  s/.*/./; q'`
20116      test -d "$as_dir" && break
20117    done
20118    test -z "$as_dirs" || eval "mkdir $as_dirs"
20119  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20120echo "$as_me: error: cannot create directory $as_dir" >&2;}
20121   { (exit 1); exit 1; }; }; }
20122    ac_builddir=.
20123
20124case "$ac_dir" in
20125.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20126*)
20127  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20128  # A ".." for each directory in $ac_dir_suffix.
20129  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20130  case $ac_top_builddir_sub in
20131  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20132  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20133  esac ;;
20134esac
20135ac_abs_top_builddir=$ac_pwd
20136ac_abs_builddir=$ac_pwd$ac_dir_suffix
20137# for backward compatibility:
20138ac_top_builddir=$ac_top_build_prefix
20139
20140case $srcdir in
20141  .)  # We are building in place.
20142    ac_srcdir=.
20143    ac_top_srcdir=$ac_top_builddir_sub
20144    ac_abs_top_srcdir=$ac_pwd ;;
20145  [\\/]* | ?:[\\/]* )  # Absolute name.
20146    ac_srcdir=$srcdir$ac_dir_suffix;
20147    ac_top_srcdir=$srcdir
20148    ac_abs_top_srcdir=$srcdir ;;
20149  *) # Relative name.
20150    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20151    ac_top_srcdir=$ac_top_build_prefix$srcdir
20152    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20153esac
20154ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20155
20156
20157    cd "$ac_dir"
20158
20159    # Check for guested configure; otherwise get Cygnus style configure.
20160    if test -f "$ac_srcdir/configure.gnu"; then
20161      ac_sub_configure=$ac_srcdir/configure.gnu
20162    elif test -f "$ac_srcdir/configure"; then
20163      ac_sub_configure=$ac_srcdir/configure
20164    elif test -f "$ac_srcdir/configure.in"; then
20165      # This should be Cygnus configure.
20166      ac_sub_configure=$ac_aux_dir/configure
20167    else
20168      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20169echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20170      ac_sub_configure=
20171    fi
20172
20173    # The recursion is here.
20174    if test -n "$ac_sub_configure"; then
20175      # Make the cache file name correct relative to the subdirectory.
20176      case $cache_file in
20177      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20178      *) # Relative name.
20179	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20180      esac
20181
20182      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20183echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20184      # The eval makes quoting arguments work.
20185      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20186	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20187	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20188echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20189   { (exit 1); exit 1; }; }
20190    fi
20191
20192    cd "$ac_popdir"
20193  done
20194fi
20195
20196