configure revision 85dfb8d948f800bfe6608f4ccd65e3f6acedcee9
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
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-2013 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.4svn'
565PACKAGE_STRING='LLVM 3.4svn'
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_COPYRIGHT
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654subdirs
655ENABLE_POLLY
656LLVM_HAS_POLLY
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677HOST_ARCH
678ENDIAN
679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
686ENABLE_LIBCPP
687ENABLE_CXX11
688ENABLE_SPLIT_DWARF
689ENABLE_CLANG_ARCMT
690ENABLE_CLANG_STATIC_ANALYZER
691ENABLE_CLANG_REWRITER
692ENABLE_OPTIMIZED
693ENABLE_PROFILING
694DISABLE_ASSERTIONS
695ENABLE_WERROR
696ENABLE_EXPENSIVE_CHECKS
697EXPENSIVE_CHECKS
698DEBUG_RUNTIME
699DEBUG_SYMBOLS
700KEEP_SYMBOLS
701JIT
702TARGET_HAS_JIT
703ENABLE_DOCS
704ENABLE_DOXYGEN
705LLVM_ENABLE_THREADS
706ENABLE_PTHREADS
707LLVM_ENABLE_ZLIB
708ENABLE_PIC
709ENABLE_SHARED
710ENABLE_EMBED_STDCXX
711ENABLE_TIMESTAMPS
712TARGETS_TO_BUILD
713LLVM_ENUM_TARGETS
714LLVM_ENUM_ASM_PRINTERS
715LLVM_ENUM_ASM_PARSERS
716LLVM_ENUM_DISASSEMBLERS
717OPTIMIZE_OPTION
718EXTRA_OPTIONS
719EXTRA_LD_OPTIONS
720CLANG_SRC_ROOT
721BINUTILS_INCDIR
722INTERNAL_PREFIX
723NM
724ifGNUmake
725LN_S
726CMP
727CP
728DATE
729FIND
730MKDIR
731MV
732RANLIB
733AR
734RM
735SED
736TAR
737BINPWD
738GRAPHVIZ
739DOT
740FDP
741NEATO
742TWOPI
743CIRCO
744GV
745DOTTY
746XDOT
747INSTALL_PROGRAM
748INSTALL_SCRIPT
749INSTALL_DATA
750BZIP2
751CAT
752DOXYGEN
753GROFF
754GZIPBIN
755PDFROFF
756ZIP
757OCAMLC
758OCAMLOPT
759OCAMLDEP
760OCAMLDOC
761GAS
762HAVE_LINK_VERSION_SCRIPT
763INSTALL_LTDL_TRUE
764INSTALL_LTDL_FALSE
765CONVENIENCE_LTDL_TRUE
766CONVENIENCE_LTDL_FALSE
767LIBADD_DL
768NO_VARIADIC_MACROS
769NO_MISSING_FIELD_INITIALIZERS
770COVERED_SWITCH_DEFAULT
771NO_MAYBE_UNINITIALIZED
772NO_UNINITIALIZED
773PYTHON
774USE_UDIS86
775USE_OPROFILE
776USE_INTEL_JITEVENTS
777XML2CONFIG
778LIBXML2_LIBS
779LIBXML2_INC
780CXXCPP
781HAVE_PTHREAD
782HAVE_LIBZ
783HUGE_VAL_SANITY
784MMAP_FILE
785SHLIBEXT
786SHLIBPATH_VAR
787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_DATADIR
790LLVM_DOCSDIR
791LLVM_ETCDIR
792LLVM_INCLUDEDIR
793LLVM_INFODIR
794LLVM_MANDIR
795LLVM_CONFIGTIME
796BINDINGS_TO_BUILD
797ALL_BINDINGS
798OCAML_LIBDIR
799ENABLE_VISIBILITY_INLINES_HIDDEN
800RPATH
801RDYNAMIC
802program_prefix
803LIBOBJS
804LTLIBOBJS'
805ac_subst_files=''
806      ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812CPPFLAGS
813CXX
814CXXFLAGS
815CCC
816CPP
817CXXCPP'
818ac_subdirs_all='projects/llvm-gcc
819projects/test-suite
820projects/llvm-test
821projects/poolalloc
822projects/llvm-poolalloc
823projects/sample
824projects/privbracket
825projects/llvm-stacker
826projects/llvm-reopt
827projects/llvm-java
828projects/llvm-tv
829projects/safecode
830projects/llvm-kernel
831tools/polly'
832
833# Initialize some variables set by options.
834ac_init_help=
835ac_init_version=false
836# The variables have the same names as the options, with
837# dashes changed to underlines.
838cache_file=/dev/null
839exec_prefix=NONE
840no_create=
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
849verbose=
850x_includes=NONE
851x_libraries=NONE
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
858# (The list follows the same order as the GNU Coding Standards.)
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
878
879ac_prev=
880ac_dashdash=
881for ac_option
882do
883  # If the previous option needs an argument, assign it.
884  if test -n "$ac_prev"; then
885    eval $ac_prev=\$ac_option
886    ac_prev=
887    continue
888  fi
889
890  case $ac_option in
891  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892  *)	ac_optarg=yes ;;
893  esac
894
895  # Accept the important Cygnus configure options, so we can diagnose typos.
896
897  case $ac_dashdash$ac_option in
898  --)
899    ac_dashdash=yes ;;
900
901  -bindir | --bindir | --bindi | --bind | --bin | --bi)
902    ac_prev=bindir ;;
903  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904    bindir=$ac_optarg ;;
905
906  -build | --build | --buil | --bui | --bu)
907    ac_prev=build_alias ;;
908  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909    build_alias=$ac_optarg ;;
910
911  -cache-file | --cache-file | --cache-fil | --cache-fi \
912  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913    ac_prev=cache_file ;;
914  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916    cache_file=$ac_optarg ;;
917
918  --config-cache | -C)
919    cache_file=config.cache ;;
920
921  -datadir | --datadir | --datadi | --datad)
922    ac_prev=datadir ;;
923  -datadir=* | --datadir=* | --datadi=* | --datad=*)
924    datadir=$ac_optarg ;;
925
926  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927  | --dataroo | --dataro | --datar)
928    ac_prev=datarootdir ;;
929  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931    datarootdir=$ac_optarg ;;
932
933  -disable-* | --disable-*)
934    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938   { (exit 1); exit 1; }; }
939    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940    eval enable_$ac_feature=no ;;
941
942  -docdir | --docdir | --docdi | --doc | --do)
943    ac_prev=docdir ;;
944  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945    docdir=$ac_optarg ;;
946
947  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948    ac_prev=dvidir ;;
949  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950    dvidir=$ac_optarg ;;
951
952  -enable-* | --enable-*)
953    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957   { (exit 1); exit 1; }; }
958    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959    eval enable_$ac_feature=\$ac_optarg ;;
960
961  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963  | --exec | --exe | --ex)
964    ac_prev=exec_prefix ;;
965  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967  | --exec=* | --exe=* | --ex=*)
968    exec_prefix=$ac_optarg ;;
969
970  -gas | --gas | --ga | --g)
971    # Obsolete; use --with-gas.
972    with_gas=yes ;;
973
974  -help | --help | --hel | --he | -h)
975    ac_init_help=long ;;
976  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977    ac_init_help=recursive ;;
978  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979    ac_init_help=short ;;
980
981  -host | --host | --hos | --ho)
982    ac_prev=host_alias ;;
983  -host=* | --host=* | --hos=* | --ho=*)
984    host_alias=$ac_optarg ;;
985
986  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987    ac_prev=htmldir ;;
988  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989  | --ht=*)
990    htmldir=$ac_optarg ;;
991
992  -includedir | --includedir | --includedi | --included | --include \
993  | --includ | --inclu | --incl | --inc)
994    ac_prev=includedir ;;
995  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996  | --includ=* | --inclu=* | --incl=* | --inc=*)
997    includedir=$ac_optarg ;;
998
999  -infodir | --infodir | --infodi | --infod | --info | --inf)
1000    ac_prev=infodir ;;
1001  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002    infodir=$ac_optarg ;;
1003
1004  -libdir | --libdir | --libdi | --libd)
1005    ac_prev=libdir ;;
1006  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007    libdir=$ac_optarg ;;
1008
1009  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010  | --libexe | --libex | --libe)
1011    ac_prev=libexecdir ;;
1012  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013  | --libexe=* | --libex=* | --libe=*)
1014    libexecdir=$ac_optarg ;;
1015
1016  -localedir | --localedir | --localedi | --localed | --locale)
1017    ac_prev=localedir ;;
1018  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019    localedir=$ac_optarg ;;
1020
1021  -localstatedir | --localstatedir | --localstatedi | --localstated \
1022  | --localstate | --localstat | --localsta | --localst | --locals)
1023    ac_prev=localstatedir ;;
1024  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026    localstatedir=$ac_optarg ;;
1027
1028  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029    ac_prev=mandir ;;
1030  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031    mandir=$ac_optarg ;;
1032
1033  -nfp | --nfp | --nf)
1034    # Obsolete; use --without-fp.
1035    with_fp=no ;;
1036
1037  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038  | --no-cr | --no-c | -n)
1039    no_create=yes ;;
1040
1041  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043    no_recursion=yes ;;
1044
1045  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047  | --oldin | --oldi | --old | --ol | --o)
1048    ac_prev=oldincludedir ;;
1049  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052    oldincludedir=$ac_optarg ;;
1053
1054  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055    ac_prev=prefix ;;
1056  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057    prefix=$ac_optarg ;;
1058
1059  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060  | --program-pre | --program-pr | --program-p)
1061    ac_prev=program_prefix ;;
1062  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064    program_prefix=$ac_optarg ;;
1065
1066  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067  | --program-suf | --program-su | --program-s)
1068    ac_prev=program_suffix ;;
1069  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071    program_suffix=$ac_optarg ;;
1072
1073  -program-transform-name | --program-transform-name \
1074  | --program-transform-nam | --program-transform-na \
1075  | --program-transform-n | --program-transform- \
1076  | --program-transform | --program-transfor \
1077  | --program-transfo | --program-transf \
1078  | --program-trans | --program-tran \
1079  | --progr-tra | --program-tr | --program-t)
1080    ac_prev=program_transform_name ;;
1081  -program-transform-name=* | --program-transform-name=* \
1082  | --program-transform-nam=* | --program-transform-na=* \
1083  | --program-transform-n=* | --program-transform-=* \
1084  | --program-transform=* | --program-transfor=* \
1085  | --program-transfo=* | --program-transf=* \
1086  | --program-trans=* | --program-tran=* \
1087  | --progr-tra=* | --program-tr=* | --program-t=*)
1088    program_transform_name=$ac_optarg ;;
1089
1090  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091    ac_prev=pdfdir ;;
1092  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093    pdfdir=$ac_optarg ;;
1094
1095  -psdir | --psdir | --psdi | --psd | --ps)
1096    ac_prev=psdir ;;
1097  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098    psdir=$ac_optarg ;;
1099
1100  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101  | -silent | --silent | --silen | --sile | --sil)
1102    silent=yes ;;
1103
1104  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105    ac_prev=sbindir ;;
1106  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107  | --sbi=* | --sb=*)
1108    sbindir=$ac_optarg ;;
1109
1110  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112  | --sharedst | --shareds | --shared | --share | --shar \
1113  | --sha | --sh)
1114    ac_prev=sharedstatedir ;;
1115  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118  | --sha=* | --sh=*)
1119    sharedstatedir=$ac_optarg ;;
1120
1121  -site | --site | --sit)
1122    ac_prev=site ;;
1123  -site=* | --site=* | --sit=*)
1124    site=$ac_optarg ;;
1125
1126  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127    ac_prev=srcdir ;;
1128  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129    srcdir=$ac_optarg ;;
1130
1131  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132  | --syscon | --sysco | --sysc | --sys | --sy)
1133    ac_prev=sysconfdir ;;
1134  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136    sysconfdir=$ac_optarg ;;
1137
1138  -target | --target | --targe | --targ | --tar | --ta | --t)
1139    ac_prev=target_alias ;;
1140  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141    target_alias=$ac_optarg ;;
1142
1143  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144    verbose=yes ;;
1145
1146  -version | --version | --versio | --versi | --vers | -V)
1147    ac_init_version=: ;;
1148
1149  -with-* | --with-*)
1150    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153      { echo "$as_me: error: invalid package name: $ac_package" >&2
1154   { (exit 1); exit 1; }; }
1155    ac_package=`echo $ac_package| sed 's/-/_/g'`
1156    eval with_$ac_package=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162      { echo "$as_me: error: invalid package name: $ac_package" >&2
1163   { (exit 1); exit 1; }; }
1164    ac_package=`echo $ac_package | sed 's/-/_/g'`
1165    eval with_$ac_package=no ;;
1166
1167  --x)
1168    # Obsolete; use --with-x.
1169    with_x=yes ;;
1170
1171  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172  | --x-incl | --x-inc | --x-in | --x-i)
1173    ac_prev=x_includes ;;
1174  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176    x_includes=$ac_optarg ;;
1177
1178  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180    ac_prev=x_libraries ;;
1181  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183    x_libraries=$ac_optarg ;;
1184
1185  -*) { echo "$as_me: error: unrecognized option: $ac_option
1186Try \`$0 --help' for more information." >&2
1187   { (exit 1); exit 1; }; }
1188    ;;
1189
1190  *=*)
1191    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192    # Reject names that are not valid shell variable names.
1193    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195   { (exit 1); exit 1; }; }
1196    eval $ac_envvar=\$ac_optarg
1197    export $ac_envvar ;;
1198
1199  *)
1200    # FIXME: should be removed in autoconf 3.0.
1201    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205    ;;
1206
1207  esac
1208done
1209
1210if test -n "$ac_prev"; then
1211  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212  { echo "$as_me: error: missing argument to $ac_option" >&2
1213   { (exit 1); exit 1; }; }
1214fi
1215
1216# Be sure to have absolute directory names.
1217for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218		datadir sysconfdir sharedstatedir localstatedir includedir \
1219		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220		libdir localedir mandir
1221do
1222  eval ac_val=\$$ac_var
1223  case $ac_val in
1224    [\\/$]* | ?:[\\/]* )  continue;;
1225    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226  esac
1227  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228   { (exit 1); exit 1; }; }
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240  if test "x$build_alias" = x; then
1241    cross_compiling=maybe
1242    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243    If a cross compiler is detected then cross compile mode will be used." >&2
1244  elif test "x$build_alias" != "x$host_alias"; then
1245    cross_compiling=yes
1246  fi
1247fi
1248
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
1253
1254
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258  { echo "$as_me: error: Working directory cannot be determined" >&2
1259   { (exit 1); exit 1; }; }
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261  { echo "$as_me: error: pwd does not report name of working directory" >&2
1262   { (exit 1); exit 1; }; }
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$0" ||
1270$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$0" : 'X\(//\)[^/]' \| \
1272	 X"$0" : 'X\(//\)$' \| \
1273	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274echo X"$0" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302   { (exit 1); exit 1; }; }
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307   { (exit 1); exit 1; }; }
1308	pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311  srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_env_${ac_var}_value=\$${ac_var}
1322  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330  # Omit some internal or obsolete options to make the list less imposing.
1331  # This message is too long to be a string in the A/UX 3.1 sh.
1332  cat <<_ACEOF
1333\`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE.  See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343  -h, --help              display this help and exit
1344      --help=short        display options specific to this package
1345      --help=recursive    display the short help of all the included packages
1346  -V, --version           display version information and exit
1347  -q, --quiet, --silent   do not print \`checking...' messages
1348      --cache-file=FILE   cache test results in FILE [disabled]
1349  -C, --config-cache      alias for \`--cache-file=config.cache'
1350  -n, --no-create         do not create output files
1351      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1352
1353Installation directories:
1354  --prefix=PREFIX         install architecture-independent files in PREFIX
1355			  [$ac_default_prefix]
1356  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1357			  [PREFIX]
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
1367  --bindir=DIR           user executables [EPREFIX/bin]
1368  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1369  --libexecdir=DIR       program executables [EPREFIX/libexec]
1370  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1371  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1372  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1373  --libdir=DIR           object code libraries [EPREFIX/lib]
1374  --includedir=DIR       C header files [PREFIX/include]
1375  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1376  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1377  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1378  --infodir=DIR          info documentation [DATAROOTDIR/info]
1379  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1380  --mandir=DIR           man documentation [DATAROOTDIR/man]
1381  --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1382  --htmldir=DIR          html documentation [DOCDIR]
1383  --dvidir=DIR           dvi documentation [DOCDIR]
1384  --pdfdir=DIR           pdf documentation [DOCDIR]
1385  --psdir=DIR            ps documentation [DOCDIR]
1386_ACEOF
1387
1388  cat <<\_ACEOF
1389
1390System types:
1391  --build=BUILD     configure for building on BUILD [guessed]
1392  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393  --target=TARGET   configure for building compilers for TARGET [HOST]
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398  case $ac_init_help in
1399     short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1400   esac
1401  cat <<\_ACEOF
1402
1403Optional Features:
1404  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1405  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1406  --enable-polly          Use polly if available (default is YES)
1407  --enable-libcpp         Use libc++ if available (default is NO)
1408  --enable-cxx11          Use c++11 if available (default is NO)
1409  --enable-split-dwarf    Use split-dwarf if available (default is NO)
1410  --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1411  --enable-clang-static-analyzer
1412                          Enable building of clang Static Analyzer (default is
1413                          YES)
1414  --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415  --enable-optimized      Compile with optimizations enabled (default is NO)
1416  --enable-profiling      Compile with profiling enabled (default is NO)
1417  --enable-assertions     Compile with assertion checks enabled (default is
1418                          YES)
1419  --enable-werror         Compile with -Werror enabled (default is NO)
1420  --enable-expensive-checks
1421                          Compile with expensive debug checks enabled (default
1422                          is NO)
1423  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1424                          NO)
1425  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1426                          optimization is on and YES if it's off)
1427  --enable-keep-symbols   Do not strip installed executables)
1428  --enable-jit            Enable Just In Time Compiling (default is YES)
1429  --enable-docs           Build documents (default is YES)
1430  --enable-doxygen        Build doxygen documentation (default is NO)
1431  --enable-threads        Use threads if available (default is YES)
1432  --enable-pthreads       Use pthreads if available (default is YES)
1433  --enable-zlib           Use zlib for compression/decompression if available
1434                          (default is YES)
1435  --enable-pic            Build LLVM with Position Independent Code (default
1436                          is YES)
1437  --enable-shared         Build a shared library and link tools against it
1438                          (default is NO)
1439  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1440                          Win32 DLL (default is NO)
1441  --enable-timestamps     Enable embedding timestamp information in build
1442                          (default is YES)
1443  --enable-backtraces     Enable embedding backtraces on crash (default is
1444                          YES)
1445  --enable-crash-overrides
1446                          Enable crash handling overrides (default is YES)
1447  --enable-targets        Build specific host targets: all or
1448                          target1,target2,... Valid targets are: host, x86,
1449                          x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1450                          xcore, msp430, nvptx, systemz, r600, and cpp
1451                          (default=all)
1452  --enable-experimental-targets
1453                          Build experimental host targets: disable or
1454                          target1,target2,... (default=disable)
1455  --enable-bindings       Build specific language bindings:
1456                          all,auto,none,{binding-name} (default=auto)
1457  --enable-terminfo       Query the terminfo database if available (default is
1458                          YES)
1459  --enable-libffi         Check for the presence of libffi (default is NO)
1460  --enable-ltdl-install   install libltdl
1461
1462Optional Packages:
1463  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465  --with-optimize-option  Select the compiler options to use for optimized
1466                          builds
1467  --with-extra-options    Specify additional options to compile LLVM with
1468  --with-extra-ld-options Specify additional options to link LLVM with
1469  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1470                          is stdlib)
1471  --with-clang-srcdir     Directory to the out-of-tree Clang source
1472  --with-clang-resource-dir
1473                          Relative directory from the Clang binary for
1474                          resource files
1475  --with-c-include-dirs   Colon separated list of directories clang will
1476                          search for headers
1477  --with-gcc-toolchain    Directory where gcc is installed.
1478  --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1479  --with-binutils-include Specify path to binutils/include/ containing
1480                          plugin-api.h file for gold plugin.
1481  --with-bug-report-url   Specify the URL where bug reports should be
1482                          submitted (default=http://llvm.org/bugs/)
1483  --with-internal-prefix  Installation directory for internal files
1484  --with-python           path to python
1485  --with-udis86=<path>    Use udis86 external x86 disassembler library
1486  --with-oprofile=<prefix>
1487                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1488  --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1489
1490
1491Some influential environment variables:
1492  CC          C compiler command
1493  CFLAGS      C compiler flags
1494  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1495              nonstandard directory <lib dir>
1496  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497              you have headers in a nonstandard directory <include dir>
1498  CXX         C++ compiler command
1499  CXXFLAGS    C++ compiler flags
1500  CPP         C preprocessor
1501  CXXCPP      C++ preprocessor
1502
1503Use these variables to override the choices made by `configure' or to help
1504it to find libraries and programs with nonstandard names/locations.
1505
1506Report bugs to <http://llvm.org/bugs/>.
1507_ACEOF
1508ac_status=$?
1509fi
1510
1511if test "$ac_init_help" = "recursive"; then
1512  # If there are subdirs, report their specific --help.
1513  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514    test -d "$ac_dir" || continue
1515    ac_builddir=.
1516
1517case "$ac_dir" in
1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519*)
1520  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521  # A ".." for each directory in $ac_dir_suffix.
1522  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523  case $ac_top_builddir_sub in
1524  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526  esac ;;
1527esac
1528ac_abs_top_builddir=$ac_pwd
1529ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530# for backward compatibility:
1531ac_top_builddir=$ac_top_build_prefix
1532
1533case $srcdir in
1534  .)  # We are building in place.
1535    ac_srcdir=.
1536    ac_top_srcdir=$ac_top_builddir_sub
1537    ac_abs_top_srcdir=$ac_pwd ;;
1538  [\\/]* | ?:[\\/]* )  # Absolute name.
1539    ac_srcdir=$srcdir$ac_dir_suffix;
1540    ac_top_srcdir=$srcdir
1541    ac_abs_top_srcdir=$srcdir ;;
1542  *) # Relative name.
1543    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544    ac_top_srcdir=$ac_top_build_prefix$srcdir
1545    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546esac
1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549    cd "$ac_dir" || { ac_status=$?; continue; }
1550    # Check for guested configure.
1551    if test -f "$ac_srcdir/configure.gnu"; then
1552      echo &&
1553      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554    elif test -f "$ac_srcdir/configure"; then
1555      echo &&
1556      $SHELL "$ac_srcdir/configure" --help=recursive
1557    else
1558      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559    fi || ac_status=$?
1560    cd "$ac_pwd" || { ac_status=$?; break; }
1561  done
1562fi
1563
1564test -n "$ac_init_help" && exit $ac_status
1565if $ac_init_version; then
1566  cat <<\_ACEOF
1567LLVM configure 3.4svn
1568generated by GNU Autoconf 2.60
1569
1570Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
1574
1575Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1576_ACEOF
1577  exit
1578fi
1579cat >config.log <<_ACEOF
1580This file contains any messages produced by compilers while
1581running configure, to aid debugging if configure makes a mistake.
1582
1583It was created by LLVM $as_me 3.4svn, which was
1584generated by GNU Autoconf 2.60.  Invocation command line was
1585
1586  $ $0 $@
1587
1588_ACEOF
1589exec 5>>config.log
1590{
1591cat <<_ASUNAME
1592## --------- ##
1593## Platform. ##
1594## --------- ##
1595
1596hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601
1602/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1604
1605/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1606/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1607/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1609/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1610/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1611/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1612
1613_ASUNAME
1614
1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618  IFS=$as_save_IFS
1619  test -z "$as_dir" && as_dir=.
1620  echo "PATH: $as_dir"
1621done
1622IFS=$as_save_IFS
1623
1624} >&5
1625
1626cat >&5 <<_ACEOF
1627
1628
1629## ----------- ##
1630## Core tests. ##
1631## ----------- ##
1632
1633_ACEOF
1634
1635
1636# Keep a trace of the command line.
1637# Strip out --no-create and --no-recursion so they do not pile up.
1638# Strip out --silent because we don't want to record it for future runs.
1639# Also quote any args containing shell meta-characters.
1640# Make two passes to allow for proper duplicate-argument suppression.
1641ac_configure_args=
1642ac_configure_args0=
1643ac_configure_args1=
1644ac_must_keep_next=false
1645for ac_pass in 1 2
1646do
1647  for ac_arg
1648  do
1649    case $ac_arg in
1650    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652    | -silent | --silent | --silen | --sile | --sil)
1653      continue ;;
1654    *\'*)
1655      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656    esac
1657    case $ac_pass in
1658    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659    2)
1660      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661      if test $ac_must_keep_next = true; then
1662	ac_must_keep_next=false # Got value, back to normal.
1663      else
1664	case $ac_arg in
1665	  *=* | --config-cache | -C | -disable-* | --disable-* \
1666	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668	  | -with-* | --with-* | -without-* | --without-* | --x)
1669	    case "$ac_configure_args0 " in
1670	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671	    esac
1672	    ;;
1673	  -* ) ac_must_keep_next=true ;;
1674	esac
1675      fi
1676      ac_configure_args="$ac_configure_args '$ac_arg'"
1677      ;;
1678    esac
1679  done
1680done
1681$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683
1684# When interrupted or exit'd, cleanup temporary files, and complete
1685# config.log.  We remove comments because anyway the quotes in there
1686# would cause problems or look ugly.
1687# WARNING: Use '\'' to represent an apostrophe within the trap.
1688# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689trap 'exit_status=$?
1690  # Save into config.log some information that might help in debugging.
1691  {
1692    echo
1693
1694    cat <<\_ASBOX
1695## ---------------- ##
1696## Cache variables. ##
1697## ---------------- ##
1698_ASBOX
1699    echo
1700    # The following way of writing the cache mishandles newlines in values,
1701(
1702  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703    eval ac_val=\$$ac_var
1704    case $ac_val in #(
1705    *${as_nl}*)
1706      case $ac_var in #(
1707      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709      esac
1710      case $ac_var in #(
1711      _ | IFS | as_nl) ;; #(
1712      *) $as_unset $ac_var ;;
1713      esac ;;
1714    esac
1715  done
1716  (set) 2>&1 |
1717    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718    *${as_nl}ac_space=\ *)
1719      sed -n \
1720	"s/'\''/'\''\\\\'\'''\''/g;
1721	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722      ;; #(
1723    *)
1724      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725      ;;
1726    esac |
1727    sort
1728)
1729    echo
1730
1731    cat <<\_ASBOX
1732## ----------------- ##
1733## Output variables. ##
1734## ----------------- ##
1735_ASBOX
1736    echo
1737    for ac_var in $ac_subst_vars
1738    do
1739      eval ac_val=\$$ac_var
1740      case $ac_val in
1741      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742      esac
1743      echo "$ac_var='\''$ac_val'\''"
1744    done | sort
1745    echo
1746
1747    if test -n "$ac_subst_files"; then
1748      cat <<\_ASBOX
1749## ------------------- ##
1750## File substitutions. ##
1751## ------------------- ##
1752_ASBOX
1753      echo
1754      for ac_var in $ac_subst_files
1755      do
1756	eval ac_val=\$$ac_var
1757	case $ac_val in
1758	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759	esac
1760	echo "$ac_var='\''$ac_val'\''"
1761      done | sort
1762      echo
1763    fi
1764
1765    if test -s confdefs.h; then
1766      cat <<\_ASBOX
1767## ----------- ##
1768## confdefs.h. ##
1769## ----------- ##
1770_ASBOX
1771      echo
1772      cat confdefs.h
1773      echo
1774    fi
1775    test "$ac_signal" != 0 &&
1776      echo "$as_me: caught signal $ac_signal"
1777    echo "$as_me: exit $exit_status"
1778  } >&5
1779  rm -f core *.core core.conftest.* &&
1780    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1781    exit $exit_status
1782' 0
1783for ac_signal in 1 2 13 15; do
1784  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785done
1786ac_signal=0
1787
1788# confdefs.h avoids OS command line length limits that DEFS can exceed.
1789rm -f -r conftest* confdefs.h
1790
1791# Predefined preprocessor variables.
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_NAME "$PACKAGE_NAME"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_VERSION "$PACKAGE_VERSION"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_STRING "$PACKAGE_STRING"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815_ACEOF
1816
1817
1818# Let the site file select an alternate cache file if it wants to.
1819# Prefer explicitly selected file to automatically selected ones.
1820if test -n "$CONFIG_SITE"; then
1821  set x "$CONFIG_SITE"
1822elif test "x$prefix" != xNONE; then
1823  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824else
1825  set x "$ac_default_prefix/share/config.site" \
1826	"$ac_default_prefix/etc/config.site"
1827fi
1828shift
1829for ac_site_file
1830do
1831  if test -r "$ac_site_file"; then
1832    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833echo "$as_me: loading site script $ac_site_file" >&6;}
1834    sed 's/^/| /' "$ac_site_file" >&5
1835    . "$ac_site_file"
1836  fi
1837done
1838
1839if test -r "$cache_file"; then
1840  # Some versions of bash will fail to source /dev/null (special
1841  # files actually), so we avoid doing that.
1842  if test -f "$cache_file"; then
1843    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844echo "$as_me: loading cache $cache_file" >&6;}
1845    case $cache_file in
1846      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847      *)                      . "./$cache_file";;
1848    esac
1849  fi
1850else
1851  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852echo "$as_me: creating cache $cache_file" >&6;}
1853  >$cache_file
1854fi
1855
1856# Check that the precious variables saved in the cache have kept the same
1857# value.
1858ac_cache_corrupted=false
1859for ac_var in $ac_precious_vars; do
1860  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861  eval ac_new_set=\$ac_env_${ac_var}_set
1862  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863  eval ac_new_val=\$ac_env_${ac_var}_value
1864  case $ac_old_set,$ac_new_set in
1865    set,)
1866      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868      ac_cache_corrupted=: ;;
1869    ,set)
1870      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872      ac_cache_corrupted=: ;;
1873    ,);;
1874    *)
1875      if test "x$ac_old_val" != "x$ac_new_val"; then
1876	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1879echo "$as_me:   former value:  $ac_old_val" >&2;}
1880	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1881echo "$as_me:   current value: $ac_new_val" >&2;}
1882	ac_cache_corrupted=:
1883      fi;;
1884  esac
1885  # Pass precious variables to config.status.
1886  if test "$ac_new_set" = set; then
1887    case $ac_new_val in
1888    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889    *) ac_arg=$ac_var=$ac_new_val ;;
1890    esac
1891    case " $ac_configure_args " in
1892      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1893      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894    esac
1895  fi
1896done
1897if $ac_cache_corrupted; then
1898  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902   { (exit 1); exit 1; }; }
1903fi
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936
1937cat >>confdefs.h <<\_ACEOF
1938#define LLVM_VERSION_MAJOR 3
1939_ACEOF
1940
1941
1942cat >>confdefs.h <<\_ACEOF
1943#define LLVM_VERSION_MINOR 4
1944_ACEOF
1945
1946
1947LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1948
1949
1950
1951
1952
1953
1954
1955ac_aux_dir=
1956for ac_dir in autoconf "$srcdir"/autoconf; do
1957  if test -f "$ac_dir/install-sh"; then
1958    ac_aux_dir=$ac_dir
1959    ac_install_sh="$ac_aux_dir/install-sh -c"
1960    break
1961  elif test -f "$ac_dir/install.sh"; then
1962    ac_aux_dir=$ac_dir
1963    ac_install_sh="$ac_aux_dir/install.sh -c"
1964    break
1965  elif test -f "$ac_dir/shtool"; then
1966    ac_aux_dir=$ac_dir
1967    ac_install_sh="$ac_aux_dir/shtool install -c"
1968    break
1969  fi
1970done
1971if test -z "$ac_aux_dir"; then
1972  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1973echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1974   { (exit 1); exit 1; }; }
1975fi
1976
1977# These three variables are undocumented and unsupported,
1978# and are intended to be withdrawn in a future Autoconf release.
1979# They can cause serious problems if a builder's source tree is in a directory
1980# whose full name contains unusual characters.
1981ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1982ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1983ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1984
1985
1986
1987if test ${srcdir} != "." ; then
1988  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1989    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1990echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1991   { (exit 1); exit 1; }; }
1992  fi
1993fi
1994
1995: ${CFLAGS=}
1996: ${CXXFLAGS=}
1997
1998ac_ext=c
1999ac_cpp='$CPP $CPPFLAGS'
2000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003if test -n "$ac_tool_prefix"; then
2004  for ac_prog in clang llvm-gcc gcc
2005  do
2006    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010if test "${ac_cv_prog_CC+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  if test -n "$CC"; then
2014  ac_cv_prog_CC="$CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  for ac_exec_ext in '' $ac_executable_extensions; do
2022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025    break 2
2026  fi
2027done
2028done
2029IFS=$as_save_IFS
2030
2031fi
2032fi
2033CC=$ac_cv_prog_CC
2034if test -n "$CC"; then
2035  { echo "$as_me:$LINENO: result: $CC" >&5
2036echo "${ECHO_T}$CC" >&6; }
2037else
2038  { echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6; }
2040fi
2041
2042
2043    test -n "$CC" && break
2044  done
2045fi
2046if test -z "$CC"; then
2047  ac_ct_CC=$CC
2048  for ac_prog in clang llvm-gcc gcc
2049do
2050  # Extract the first word of "$ac_prog", so it can be a program name with args.
2051set dummy $ac_prog; ac_word=$2
2052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055  echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057  if test -n "$ac_ct_CC"; then
2058  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059else
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065  for ac_exec_ext in '' $ac_executable_extensions; do
2066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2067    ac_cv_prog_ac_ct_CC="$ac_prog"
2068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069    break 2
2070  fi
2071done
2072done
2073IFS=$as_save_IFS
2074
2075fi
2076fi
2077ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078if test -n "$ac_ct_CC"; then
2079  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080echo "${ECHO_T}$ac_ct_CC" >&6; }
2081else
2082  { echo "$as_me:$LINENO: result: no" >&5
2083echo "${ECHO_T}no" >&6; }
2084fi
2085
2086
2087  test -n "$ac_ct_CC" && break
2088done
2089
2090  if test "x$ac_ct_CC" = x; then
2091    CC=""
2092  else
2093    case $cross_compiling:$ac_tool_warned in
2094yes:)
2095{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096whose name does not start with the host triplet.  If you think this
2097configuration is useful to you, please write to autoconf@gnu.org." >&5
2098echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099whose name does not start with the host triplet.  If you think this
2100configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101ac_tool_warned=yes ;;
2102esac
2103    CC=$ac_ct_CC
2104  fi
2105fi
2106
2107
2108test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: no acceptable C compiler found in \$PATH
2111See \`config.log' for more details." >&2;}
2112   { (exit 1); exit 1; }; }
2113
2114# Provide some information about the compiler.
2115echo "$as_me:$LINENO: checking for C compiler version" >&5
2116ac_compiler=`set X $ac_compile; echo $2`
2117{ (ac_try="$ac_compiler --version >&5"
2118case "(($ac_try" in
2119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120  *) ac_try_echo=$ac_try;;
2121esac
2122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2123  (eval "$ac_compiler --version >&5") 2>&5
2124  ac_status=$?
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); }
2127{ (ac_try="$ac_compiler -v >&5"
2128case "(($ac_try" in
2129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130  *) ac_try_echo=$ac_try;;
2131esac
2132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2133  (eval "$ac_compiler -v >&5") 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }
2137{ (ac_try="$ac_compiler -V >&5"
2138case "(($ac_try" in
2139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140  *) ac_try_echo=$ac_try;;
2141esac
2142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2143  (eval "$ac_compiler -V >&5") 2>&5
2144  ac_status=$?
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); }
2147
2148cat >conftest.$ac_ext <<_ACEOF
2149/* confdefs.h.  */
2150_ACEOF
2151cat confdefs.h >>conftest.$ac_ext
2152cat >>conftest.$ac_ext <<_ACEOF
2153/* end confdefs.h.  */
2154
2155int
2156main ()
2157{
2158
2159  ;
2160  return 0;
2161}
2162_ACEOF
2163ac_clean_files_save=$ac_clean_files
2164ac_clean_files="$ac_clean_files a.out a.exe b.out"
2165# Try to create an executable without -o first, disregard a.out.
2166# It will help us diagnose broken compilers, and finding out an intuition
2167# of exeext.
2168{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2169echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2170ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2171#
2172# List of possible output files, starting from the most likely.
2173# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2174# only as a last resort.  b.out is created by i960 compilers.
2175ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2176#
2177# The IRIX 6 linker writes into existing files which may not be
2178# executable, retaining their permissions.  Remove them first so a
2179# subsequent execution test works.
2180ac_rmfiles=
2181for ac_file in $ac_files
2182do
2183  case $ac_file in
2184    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2185    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2186  esac
2187done
2188rm -f $ac_rmfiles
2189
2190if { (ac_try="$ac_link_default"
2191case "(($ac_try" in
2192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193  *) ac_try_echo=$ac_try;;
2194esac
2195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196  (eval "$ac_link_default") 2>&5
2197  ac_status=$?
2198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199  (exit $ac_status); }; then
2200  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2202# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2203# so that the user can short-circuit this test for compilers unknown to
2204# Autoconf.
2205for ac_file in $ac_files
2206do
2207  test -f "$ac_file" || continue
2208  case $ac_file in
2209    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2210	;;
2211    [ab].out )
2212	# We found the default executable, but exeext='' is most
2213	# certainly right.
2214	break;;
2215    *.* )
2216        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2217	then :; else
2218	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219	fi
2220	# We set ac_cv_exeext here because the later test for it is not
2221	# safe: cross compilers may not add the suffix if given an `-o'
2222	# argument, so we may need to know it at that point already.
2223	# Even if this section looks crufty: it has the advantage of
2224	# actually working.
2225	break;;
2226    * )
2227	break;;
2228  esac
2229done
2230test "$ac_cv_exeext" = no && ac_cv_exeext=
2231
2232else
2233  echo "$as_me: failed program was:" >&5
2234sed 's/^/| /' conftest.$ac_ext >&5
2235
2236{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2237See \`config.log' for more details." >&5
2238echo "$as_me: error: C compiler cannot create executables
2239See \`config.log' for more details." >&2;}
2240   { (exit 77); exit 77; }; }
2241fi
2242
2243ac_exeext=$ac_cv_exeext
2244{ echo "$as_me:$LINENO: result: $ac_file" >&5
2245echo "${ECHO_T}$ac_file" >&6; }
2246
2247# Check that the compiler produces executables we can run.  If not, either
2248# the compiler is broken, or we cross compile.
2249{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2250echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2251# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2252# If not cross compiling, check that we can run a simple program.
2253if test "$cross_compiling" != yes; then
2254  if { ac_try='./$ac_file'
2255  { (case "(($ac_try" in
2256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257  *) ac_try_echo=$ac_try;;
2258esac
2259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260  (eval "$ac_try") 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; }; then
2264    cross_compiling=no
2265  else
2266    if test "$cross_compiling" = maybe; then
2267	cross_compiling=yes
2268    else
2269	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: cannot run C compiled programs.
2273If you meant to cross compile, use \`--host'.
2274See \`config.log' for more details." >&2;}
2275   { (exit 1); exit 1; }; }
2276    fi
2277  fi
2278fi
2279{ echo "$as_me:$LINENO: result: yes" >&5
2280echo "${ECHO_T}yes" >&6; }
2281
2282rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283ac_clean_files=$ac_clean_files_save
2284# Check that the compiler produces executables we can run.  If not, either
2285# the compiler is broken, or we cross compile.
2286{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2288{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289echo "${ECHO_T}$cross_compiling" >&6; }
2290
2291{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2293if { (ac_try="$ac_link"
2294case "(($ac_try" in
2295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296  *) ac_try_echo=$ac_try;;
2297esac
2298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2299  (eval "$ac_link") 2>&5
2300  ac_status=$?
2301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302  (exit $ac_status); }; then
2303  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2304# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2305# work properly (i.e., refer to `conftest.exe'), while it won't with
2306# `rm'.
2307for ac_file in conftest.exe conftest conftest.*; do
2308  test -f "$ac_file" || continue
2309  case $ac_file in
2310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2311    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312	  break;;
2313    * ) break;;
2314  esac
2315done
2316else
2317  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2318See \`config.log' for more details." >&5
2319echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2320See \`config.log' for more details." >&2;}
2321   { (exit 1); exit 1; }; }
2322fi
2323
2324rm -f conftest$ac_cv_exeext
2325{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2326echo "${ECHO_T}$ac_cv_exeext" >&6; }
2327
2328rm -f conftest.$ac_ext
2329EXEEXT=$ac_cv_exeext
2330ac_exeext=$EXEEXT
2331{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2332echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2333if test "${ac_cv_objext+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h.  */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h.  */
2342
2343int
2344main ()
2345{
2346
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351rm -f conftest.o conftest.obj
2352if { (ac_try="$ac_compile"
2353case "(($ac_try" in
2354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355  *) ac_try_echo=$ac_try;;
2356esac
2357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358  (eval "$ac_compile") 2>&5
2359  ac_status=$?
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); }; then
2362  for ac_file in conftest.o conftest.obj conftest.*; do
2363  test -f "$ac_file" || continue;
2364  case $ac_file in
2365    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2366    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2367       break;;
2368  esac
2369done
2370else
2371  echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2375See \`config.log' for more details." >&5
2376echo "$as_me: error: cannot compute suffix of object files: cannot compile
2377See \`config.log' for more details." >&2;}
2378   { (exit 1); exit 1; }; }
2379fi
2380
2381rm -f conftest.$ac_cv_objext conftest.$ac_ext
2382fi
2383{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2384echo "${ECHO_T}$ac_cv_objext" >&6; }
2385OBJEXT=$ac_cv_objext
2386ac_objext=$OBJEXT
2387{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2388echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2389if test "${ac_cv_c_compiler_gnu+set}" = set; then
2390  echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392  cat >conftest.$ac_ext <<_ACEOF
2393/* confdefs.h.  */
2394_ACEOF
2395cat confdefs.h >>conftest.$ac_ext
2396cat >>conftest.$ac_ext <<_ACEOF
2397/* end confdefs.h.  */
2398
2399int
2400main ()
2401{
2402#ifndef __GNUC__
2403       choke me
2404#endif
2405
2406  ;
2407  return 0;
2408}
2409_ACEOF
2410rm -f conftest.$ac_objext
2411if { (ac_try="$ac_compile"
2412case "(($ac_try" in
2413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414  *) ac_try_echo=$ac_try;;
2415esac
2416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417  (eval "$ac_compile") 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2425  { (case "(($ac_try" in
2426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427  *) ac_try_echo=$ac_try;;
2428esac
2429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430  (eval "$ac_try") 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; } &&
2434	 { ac_try='test -s conftest.$ac_objext'
2435  { (case "(($ac_try" in
2436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437  *) ac_try_echo=$ac_try;;
2438esac
2439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440  (eval "$ac_try") 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; }; then
2444  ac_compiler_gnu=yes
2445else
2446  echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449	ac_compiler_gnu=no
2450fi
2451
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453ac_cv_c_compiler_gnu=$ac_compiler_gnu
2454
2455fi
2456{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2458GCC=`test $ac_compiler_gnu = yes && echo yes`
2459ac_test_CFLAGS=${CFLAGS+set}
2460ac_save_CFLAGS=$CFLAGS
2461{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2463if test "${ac_cv_prog_cc_g+set}" = set; then
2464  echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466  ac_save_c_werror_flag=$ac_c_werror_flag
2467   ac_c_werror_flag=yes
2468   ac_cv_prog_cc_g=no
2469   CFLAGS="-g"
2470   cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (ac_try="$ac_compile"
2487case "(($ac_try" in
2488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489  *) ac_try_echo=$ac_try;;
2490esac
2491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492  (eval "$ac_compile") 2>conftest.er1
2493  ac_status=$?
2494  grep -v '^ *+' conftest.er1 >conftest.err
2495  rm -f conftest.er1
2496  cat conftest.err >&5
2497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498  (exit $ac_status); } &&
2499	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2500  { (case "(($ac_try" in
2501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502  *) ac_try_echo=$ac_try;;
2503esac
2504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505  (eval "$ac_try") 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; } &&
2509	 { ac_try='test -s conftest.$ac_objext'
2510  { (case "(($ac_try" in
2511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512  *) ac_try_echo=$ac_try;;
2513esac
2514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515  (eval "$ac_try") 2>&5
2516  ac_status=$?
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); }; }; then
2519  ac_cv_prog_cc_g=yes
2520else
2521  echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524	CFLAGS=""
2525      cat >conftest.$ac_ext <<_ACEOF
2526/* confdefs.h.  */
2527_ACEOF
2528cat confdefs.h >>conftest.$ac_ext
2529cat >>conftest.$ac_ext <<_ACEOF
2530/* end confdefs.h.  */
2531
2532int
2533main ()
2534{
2535
2536  ;
2537  return 0;
2538}
2539_ACEOF
2540rm -f conftest.$ac_objext
2541if { (ac_try="$ac_compile"
2542case "(($ac_try" in
2543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544  *) ac_try_echo=$ac_try;;
2545esac
2546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547  (eval "$ac_compile") 2>conftest.er1
2548  ac_status=$?
2549  grep -v '^ *+' conftest.er1 >conftest.err
2550  rm -f conftest.er1
2551  cat conftest.err >&5
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); } &&
2554	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555  { (case "(($ac_try" in
2556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557  *) ac_try_echo=$ac_try;;
2558esac
2559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560  (eval "$ac_try") 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; } &&
2564	 { ac_try='test -s conftest.$ac_objext'
2565  { (case "(($ac_try" in
2566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567  *) ac_try_echo=$ac_try;;
2568esac
2569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570  (eval "$ac_try") 2>&5
2571  ac_status=$?
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); }; }; then
2574  :
2575else
2576  echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579	ac_c_werror_flag=$ac_save_c_werror_flag
2580	 CFLAGS="-g"
2581	 cat >conftest.$ac_ext <<_ACEOF
2582/* confdefs.h.  */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
2586/* end confdefs.h.  */
2587
2588int
2589main ()
2590{
2591
2592  ;
2593  return 0;
2594}
2595_ACEOF
2596rm -f conftest.$ac_objext
2597if { (ac_try="$ac_compile"
2598case "(($ac_try" in
2599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600  *) ac_try_echo=$ac_try;;
2601esac
2602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603  (eval "$ac_compile") 2>conftest.er1
2604  ac_status=$?
2605  grep -v '^ *+' conftest.er1 >conftest.err
2606  rm -f conftest.er1
2607  cat conftest.err >&5
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } &&
2610	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2611  { (case "(($ac_try" in
2612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613  *) ac_try_echo=$ac_try;;
2614esac
2615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616  (eval "$ac_try") 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620	 { ac_try='test -s conftest.$ac_objext'
2621  { (case "(($ac_try" in
2622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623  *) ac_try_echo=$ac_try;;
2624esac
2625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626  (eval "$ac_try") 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; }; then
2630  ac_cv_prog_cc_g=yes
2631else
2632  echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635
2636fi
2637
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640
2641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642fi
2643
2644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645   ac_c_werror_flag=$ac_save_c_werror_flag
2646fi
2647{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2648echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2649if test "$ac_test_CFLAGS" = set; then
2650  CFLAGS=$ac_save_CFLAGS
2651elif test $ac_cv_prog_cc_g = yes; then
2652  if test "$GCC" = yes; then
2653    CFLAGS="-g -O2"
2654  else
2655    CFLAGS="-g"
2656  fi
2657else
2658  if test "$GCC" = yes; then
2659    CFLAGS="-O2"
2660  else
2661    CFLAGS=
2662  fi
2663fi
2664{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2665echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2666if test "${ac_cv_prog_cc_c89+set}" = set; then
2667  echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669  ac_cv_prog_cc_c89=no
2670ac_save_CC=$CC
2671cat >conftest.$ac_ext <<_ACEOF
2672/* confdefs.h.  */
2673_ACEOF
2674cat confdefs.h >>conftest.$ac_ext
2675cat >>conftest.$ac_ext <<_ACEOF
2676/* end confdefs.h.  */
2677#include <stdarg.h>
2678#include <stdio.h>
2679#include <sys/types.h>
2680#include <sys/stat.h>
2681/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2682struct buf { int x; };
2683FILE * (*rcsopen) (struct buf *, struct stat *, int);
2684static char *e (p, i)
2685     char **p;
2686     int i;
2687{
2688  return p[i];
2689}
2690static char *f (char * (*g) (char **, int), char **p, ...)
2691{
2692  char *s;
2693  va_list v;
2694  va_start (v,p);
2695  s = g (p, va_arg (v,int));
2696  va_end (v);
2697  return s;
2698}
2699
2700/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2701   function prototypes and stuff, but not '\xHH' hex character constants.
2702   These don't provoke an error unfortunately, instead are silently treated
2703   as 'x'.  The following induces an error, until -std is added to get
2704   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2705   array size at least.  It's necessary to write '\x00'==0 to get something
2706   that's true only with -std.  */
2707int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708
2709/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2710   inside strings and character constants.  */
2711#define FOO(x) 'x'
2712int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713
2714int test (int i, double x);
2715struct s1 {int (*f) (int a);};
2716struct s2 {int (*f) (double a);};
2717int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718int argc;
2719char **argv;
2720int
2721main ()
2722{
2723return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2724  ;
2725  return 0;
2726}
2727_ACEOF
2728for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2729	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730do
2731  CC="$ac_save_CC $ac_arg"
2732  rm -f conftest.$ac_objext
2733if { (ac_try="$ac_compile"
2734case "(($ac_try" in
2735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736  *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739  (eval "$ac_compile") 2>conftest.er1
2740  ac_status=$?
2741  grep -v '^ *+' conftest.er1 >conftest.err
2742  rm -f conftest.er1
2743  cat conftest.err >&5
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); } &&
2746	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2747  { (case "(($ac_try" in
2748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749  *) ac_try_echo=$ac_try;;
2750esac
2751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752  (eval "$ac_try") 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; } &&
2756	 { ac_try='test -s conftest.$ac_objext'
2757  { (case "(($ac_try" in
2758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759  *) ac_try_echo=$ac_try;;
2760esac
2761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762  (eval "$ac_try") 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; }; then
2766  ac_cv_prog_cc_c89=$ac_arg
2767else
2768  echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771
2772fi
2773
2774rm -f core conftest.err conftest.$ac_objext
2775  test "x$ac_cv_prog_cc_c89" != "xno" && break
2776done
2777rm -f conftest.$ac_ext
2778CC=$ac_save_CC
2779
2780fi
2781# AC_CACHE_VAL
2782case "x$ac_cv_prog_cc_c89" in
2783  x)
2784    { echo "$as_me:$LINENO: result: none needed" >&5
2785echo "${ECHO_T}none needed" >&6; } ;;
2786  xno)
2787    { echo "$as_me:$LINENO: result: unsupported" >&5
2788echo "${ECHO_T}unsupported" >&6; } ;;
2789  *)
2790    CC="$CC $ac_cv_prog_cc_c89"
2791    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2792echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2793esac
2794
2795
2796ac_ext=c
2797ac_cpp='$CPP $CPPFLAGS'
2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801
2802ac_ext=cpp
2803ac_cpp='$CXXCPP $CPPFLAGS'
2804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2807if test -z "$CXX"; then
2808  if test -n "$CCC"; then
2809    CXX=$CCC
2810  else
2811    if test -n "$ac_tool_prefix"; then
2812  for ac_prog in clang++ llvm-g++ g++
2813  do
2814    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818if test "${ac_cv_prog_CXX+set}" = set; then
2819  echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821  if test -n "$CXX"; then
2822  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829  for ac_exec_ext in '' $ac_executable_extensions; do
2830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841CXX=$ac_cv_prog_CXX
2842if test -n "$CXX"; then
2843  { echo "$as_me:$LINENO: result: $CXX" >&5
2844echo "${ECHO_T}$CXX" >&6; }
2845else
2846  { echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6; }
2848fi
2849
2850
2851    test -n "$CXX" && break
2852  done
2853fi
2854if test -z "$CXX"; then
2855  ac_ct_CXX=$CXX
2856  for ac_prog in clang++ llvm-g++ g++
2857do
2858  # Extract the first word of "$ac_prog", so it can be a program name with args.
2859set dummy $ac_prog; ac_word=$2
2860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2862if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2863  echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865  if test -n "$ac_ct_CXX"; then
2866  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871  IFS=$as_save_IFS
2872  test -z "$as_dir" && as_dir=.
2873  for ac_exec_ext in '' $ac_executable_extensions; do
2874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2875    ac_cv_prog_ac_ct_CXX="$ac_prog"
2876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2886if test -n "$ac_ct_CXX"; then
2887  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2888echo "${ECHO_T}$ac_ct_CXX" >&6; }
2889else
2890  { echo "$as_me:$LINENO: result: no" >&5
2891echo "${ECHO_T}no" >&6; }
2892fi
2893
2894
2895  test -n "$ac_ct_CXX" && break
2896done
2897
2898  if test "x$ac_ct_CXX" = x; then
2899    CXX="g++"
2900  else
2901    case $cross_compiling:$ac_tool_warned in
2902yes:)
2903{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2904whose name does not start with the host triplet.  If you think this
2905configuration is useful to you, please write to autoconf@gnu.org." >&5
2906echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2907whose name does not start with the host triplet.  If you think this
2908configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2909ac_tool_warned=yes ;;
2910esac
2911    CXX=$ac_ct_CXX
2912  fi
2913fi
2914
2915  fi
2916fi
2917# Provide some information about the compiler.
2918echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2919ac_compiler=`set X $ac_compile; echo $2`
2920{ (ac_try="$ac_compiler --version >&5"
2921case "(($ac_try" in
2922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923  *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926  (eval "$ac_compiler --version >&5") 2>&5
2927  ac_status=$?
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); }
2930{ (ac_try="$ac_compiler -v >&5"
2931case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936  (eval "$ac_compiler -v >&5") 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }
2940{ (ac_try="$ac_compiler -V >&5"
2941case "(($ac_try" in
2942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943  *) ac_try_echo=$ac_try;;
2944esac
2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946  (eval "$ac_compiler -V >&5") 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }
2950
2951{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2952echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2953if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2954  echo $ECHO_N "(cached) $ECHO_C" >&6
2955else
2956  cat >conftest.$ac_ext <<_ACEOF
2957/* confdefs.h.  */
2958_ACEOF
2959cat confdefs.h >>conftest.$ac_ext
2960cat >>conftest.$ac_ext <<_ACEOF
2961/* end confdefs.h.  */
2962
2963int
2964main ()
2965{
2966#ifndef __GNUC__
2967       choke me
2968#endif
2969
2970  ;
2971  return 0;
2972}
2973_ACEOF
2974rm -f conftest.$ac_objext
2975if { (ac_try="$ac_compile"
2976case "(($ac_try" in
2977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978  *) ac_try_echo=$ac_try;;
2979esac
2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981  (eval "$ac_compile") 2>conftest.er1
2982  ac_status=$?
2983  grep -v '^ *+' conftest.er1 >conftest.err
2984  rm -f conftest.er1
2985  cat conftest.err >&5
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); } &&
2988	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2989  { (case "(($ac_try" in
2990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991  *) ac_try_echo=$ac_try;;
2992esac
2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994  (eval "$ac_try") 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }; } &&
2998	 { ac_try='test -s conftest.$ac_objext'
2999  { (case "(($ac_try" in
3000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001  *) ac_try_echo=$ac_try;;
3002esac
3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004  (eval "$ac_try") 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; }; then
3008  ac_compiler_gnu=yes
3009else
3010  echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013	ac_compiler_gnu=no
3014fi
3015
3016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3018
3019fi
3020{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3021echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3022GXX=`test $ac_compiler_gnu = yes && echo yes`
3023ac_test_CXXFLAGS=${CXXFLAGS+set}
3024ac_save_CXXFLAGS=$CXXFLAGS
3025{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3026echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3027if test "${ac_cv_prog_cxx_g+set}" = set; then
3028  echo $ECHO_N "(cached) $ECHO_C" >&6
3029else
3030  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3031   ac_cxx_werror_flag=yes
3032   ac_cv_prog_cxx_g=no
3033   CXXFLAGS="-g"
3034   cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h.  */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h.  */
3040
3041int
3042main ()
3043{
3044
3045  ;
3046  return 0;
3047}
3048_ACEOF
3049rm -f conftest.$ac_objext
3050if { (ac_try="$ac_compile"
3051case "(($ac_try" in
3052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053  *) ac_try_echo=$ac_try;;
3054esac
3055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056  (eval "$ac_compile") 2>conftest.er1
3057  ac_status=$?
3058  grep -v '^ *+' conftest.er1 >conftest.err
3059  rm -f conftest.er1
3060  cat conftest.err >&5
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); } &&
3063	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3064  { (case "(($ac_try" in
3065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066  *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069  (eval "$ac_try") 2>&5
3070  ac_status=$?
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); }; } &&
3073	 { ac_try='test -s conftest.$ac_objext'
3074  { (case "(($ac_try" in
3075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076  *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079  (eval "$ac_try") 2>&5
3080  ac_status=$?
3081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082  (exit $ac_status); }; }; then
3083  ac_cv_prog_cxx_g=yes
3084else
3085  echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088	CXXFLAGS=""
3089      cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (ac_try="$ac_compile"
3106case "(($ac_try" in
3107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108  *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111  (eval "$ac_compile") 2>conftest.er1
3112  ac_status=$?
3113  grep -v '^ *+' conftest.er1 >conftest.err
3114  rm -f conftest.er1
3115  cat conftest.err >&5
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); } &&
3118	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3119  { (case "(($ac_try" in
3120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121  *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124  (eval "$ac_try") 2>&5
3125  ac_status=$?
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); }; } &&
3128	 { ac_try='test -s conftest.$ac_objext'
3129  { (case "(($ac_try" in
3130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131  *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134  (eval "$ac_try") 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; }; then
3138  :
3139else
3140  echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3144	 CXXFLAGS="-g"
3145	 cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151
3152int
3153main ()
3154{
3155
3156  ;
3157  return 0;
3158}
3159_ACEOF
3160rm -f conftest.$ac_objext
3161if { (ac_try="$ac_compile"
3162case "(($ac_try" in
3163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164  *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167  (eval "$ac_compile") 2>conftest.er1
3168  ac_status=$?
3169  grep -v '^ *+' conftest.er1 >conftest.err
3170  rm -f conftest.er1
3171  cat conftest.err >&5
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); } &&
3174	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3175  { (case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180  (eval "$ac_try") 2>&5
3181  ac_status=$?
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); }; } &&
3184	 { ac_try='test -s conftest.$ac_objext'
3185  { (case "(($ac_try" in
3186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187  *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190  (eval "$ac_try") 2>&5
3191  ac_status=$?
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); }; }; then
3194  ac_cv_prog_cxx_g=yes
3195else
3196  echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199
3200fi
3201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203fi
3204
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206fi
3207
3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3210fi
3211{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3212echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3213if test "$ac_test_CXXFLAGS" = set; then
3214  CXXFLAGS=$ac_save_CXXFLAGS
3215elif test $ac_cv_prog_cxx_g = yes; then
3216  if test "$GXX" = yes; then
3217    CXXFLAGS="-g -O2"
3218  else
3219    CXXFLAGS="-g"
3220  fi
3221else
3222  if test "$GXX" = yes; then
3223    CXXFLAGS="-O2"
3224  else
3225    CXXFLAGS=
3226  fi
3227fi
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241# On Suns, sometimes $CPP names a directory.
3242if test -n "$CPP" && test -d "$CPP"; then
3243  CPP=
3244fi
3245if test -z "$CPP"; then
3246  if test "${ac_cv_prog_CPP+set}" = set; then
3247  echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249      # Double quotes because CPP needs to be expanded
3250    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251    do
3252      ac_preproc_ok=false
3253for ac_c_preproc_warn_flag in '' yes
3254do
3255  # Use a header file that comes with gcc, so configuring glibc
3256  # with a fresh cross-compiler works.
3257  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258  # <limits.h> exists even on freestanding compilers.
3259  # On the NeXT, cc -E runs the code through the compiler's parser,
3260  # not just through cpp. "Syntax error" is here to catch this case.
3261  cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h.  */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h.  */
3267#ifdef __STDC__
3268# include <limits.h>
3269#else
3270# include <assert.h>
3271#endif
3272		     Syntax error
3273_ACEOF
3274if { (ac_try="$ac_cpp conftest.$ac_ext"
3275case "(($ac_try" in
3276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277  *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281  ac_status=$?
3282  grep -v '^ *+' conftest.er1 >conftest.err
3283  rm -f conftest.er1
3284  cat conftest.err >&5
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); } >/dev/null; then
3287  if test -s conftest.err; then
3288    ac_cpp_err=$ac_c_preproc_warn_flag
3289    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290  else
3291    ac_cpp_err=
3292  fi
3293else
3294  ac_cpp_err=yes
3295fi
3296if test -z "$ac_cpp_err"; then
3297  :
3298else
3299  echo "$as_me: failed program was:" >&5
3300sed 's/^/| /' conftest.$ac_ext >&5
3301
3302  # Broken: fails on valid input.
3303continue
3304fi
3305
3306rm -f conftest.err conftest.$ac_ext
3307
3308  # OK, works on sane cases.  Now check whether nonexistent headers
3309  # can be detected and how.
3310  cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h.  */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h.  */
3316#include <ac_nonexistent.h>
3317_ACEOF
3318if { (ac_try="$ac_cpp conftest.$ac_ext"
3319case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325  ac_status=$?
3326  grep -v '^ *+' conftest.er1 >conftest.err
3327  rm -f conftest.er1
3328  cat conftest.err >&5
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); } >/dev/null; then
3331  if test -s conftest.err; then
3332    ac_cpp_err=$ac_c_preproc_warn_flag
3333    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3334  else
3335    ac_cpp_err=
3336  fi
3337else
3338  ac_cpp_err=yes
3339fi
3340if test -z "$ac_cpp_err"; then
3341  # Broken: success on invalid input.
3342continue
3343else
3344  echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
3347  # Passes both tests.
3348ac_preproc_ok=:
3349break
3350fi
3351
3352rm -f conftest.err conftest.$ac_ext
3353
3354done
3355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356rm -f conftest.err conftest.$ac_ext
3357if $ac_preproc_ok; then
3358  break
3359fi
3360
3361    done
3362    ac_cv_prog_CPP=$CPP
3363
3364fi
3365  CPP=$ac_cv_prog_CPP
3366else
3367  ac_cv_prog_CPP=$CPP
3368fi
3369{ echo "$as_me:$LINENO: result: $CPP" >&5
3370echo "${ECHO_T}$CPP" >&6; }
3371ac_preproc_ok=false
3372for ac_c_preproc_warn_flag in '' yes
3373do
3374  # Use a header file that comes with gcc, so configuring glibc
3375  # with a fresh cross-compiler works.
3376  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377  # <limits.h> exists even on freestanding compilers.
3378  # On the NeXT, cc -E runs the code through the compiler's parser,
3379  # not just through cpp. "Syntax error" is here to catch this case.
3380  cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h.  */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h.  */
3386#ifdef __STDC__
3387# include <limits.h>
3388#else
3389# include <assert.h>
3390#endif
3391		     Syntax error
3392_ACEOF
3393if { (ac_try="$ac_cpp conftest.$ac_ext"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400  ac_status=$?
3401  grep -v '^ *+' conftest.er1 >conftest.err
3402  rm -f conftest.er1
3403  cat conftest.err >&5
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); } >/dev/null; then
3406  if test -s conftest.err; then
3407    ac_cpp_err=$ac_c_preproc_warn_flag
3408    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409  else
3410    ac_cpp_err=
3411  fi
3412else
3413  ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
3416  :
3417else
3418  echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421  # Broken: fails on valid input.
3422continue
3423fi
3424
3425rm -f conftest.err conftest.$ac_ext
3426
3427  # OK, works on sane cases.  Now check whether nonexistent headers
3428  # can be detected and how.
3429  cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h.  */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h.  */
3435#include <ac_nonexistent.h>
3436_ACEOF
3437if { (ac_try="$ac_cpp conftest.$ac_ext"
3438case "(($ac_try" in
3439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440  *) ac_try_echo=$ac_try;;
3441esac
3442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444  ac_status=$?
3445  grep -v '^ *+' conftest.er1 >conftest.err
3446  rm -f conftest.er1
3447  cat conftest.err >&5
3448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449  (exit $ac_status); } >/dev/null; then
3450  if test -s conftest.err; then
3451    ac_cpp_err=$ac_c_preproc_warn_flag
3452    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453  else
3454    ac_cpp_err=
3455  fi
3456else
3457  ac_cpp_err=yes
3458fi
3459if test -z "$ac_cpp_err"; then
3460  # Broken: success on invalid input.
3461continue
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466  # Passes both tests.
3467ac_preproc_ok=:
3468break
3469fi
3470
3471rm -f conftest.err conftest.$ac_ext
3472
3473done
3474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475rm -f conftest.err conftest.$ac_ext
3476if $ac_preproc_ok; then
3477  :
3478else
3479  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3480See \`config.log' for more details." >&5
3481echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3482See \`config.log' for more details." >&2;}
3483   { (exit 1); exit 1; }; }
3484fi
3485
3486ac_ext=c
3487ac_cpp='$CPP $CPPFLAGS'
3488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491
3492
3493if test "$CXX" = "clang++" ; then
3494  { echo "$as_me:$LINENO: checking whether clang works" >&5
3495echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3496  ac_ext=cpp
3497ac_cpp='$CXXCPP $CPPFLAGS'
3498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3501
3502
3503cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h.  */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h.  */
3509#include <limits>
3510#if __has_include (<cxxabi.h>)
3511#include <cxxabi.h>
3512#endif
3513#if __has_include (<unwind.h>)
3514#include <unwind.h>
3515#endif
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (ac_try="$ac_compile"
3527case "(($ac_try" in
3528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529  *) ac_try_echo=$ac_try;;
3530esac
3531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532  (eval "$ac_compile") 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } &&
3539	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3540  { (case "(($ac_try" in
3541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542  *) ac_try_echo=$ac_try;;
3543esac
3544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545  (eval "$ac_try") 2>&5
3546  ac_status=$?
3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548  (exit $ac_status); }; } &&
3549	 { ac_try='test -s conftest.$ac_objext'
3550  { (case "(($ac_try" in
3551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552  *) ac_try_echo=$ac_try;;
3553esac
3554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555  (eval "$ac_try") 2>&5
3556  ac_status=$?
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); }; }; then
3559
3560  { echo "$as_me:$LINENO: result: yes" >&5
3561echo "${ECHO_T}yes" >&6; }
3562
3563else
3564  echo "$as_me: failed program was:" >&5
3565sed 's/^/| /' conftest.$ac_ext >&5
3566
3567
3568  { echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6; }
3570  { { 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
3571echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3572   { (exit 1); exit 1; }; }
3573
3574fi
3575
3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577  ac_ext=c
3578ac_cpp='$CPP $CPPFLAGS'
3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582
3583fi
3584
3585
3586
3587if test -d ${srcdir}/projects/llvm-gcc ; then
3588  subdirs="$subdirs projects/llvm-gcc"
3589
3590fi
3591
3592if test -d ${srcdir}/projects/test-suite ; then
3593  subdirs="$subdirs projects/test-suite"
3594
3595fi
3596
3597if test -d ${srcdir}/projects/llvm-test ; then
3598  subdirs="$subdirs projects/llvm-test"
3599
3600fi
3601
3602if test -d ${srcdir}/projects/poolalloc ; then
3603  subdirs="$subdirs projects/poolalloc"
3604
3605fi
3606
3607if test -d ${srcdir}/projects/llvm-poolalloc ; then
3608  subdirs="$subdirs projects/llvm-poolalloc"
3609
3610fi
3611
3612for i in `ls ${srcdir}/projects`
3613do
3614  if test -d ${srcdir}/projects/${i} ; then
3615    case ${i} in
3616      sample)       subdirs="$subdirs projects/sample"
3617    ;;
3618      privbracket)  subdirs="$subdirs projects/privbracket"
3619 ;;
3620      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3621 ;;
3622      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3623;;
3624      llvm-java)    subdirs="$subdirs projects/llvm-java"
3625 ;;
3626      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3627   ;;
3628      safecode)     subdirs="$subdirs projects/safecode"
3629 ;;
3630      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3631 ;;
3632      compiler-rt)       ;;
3633      llvm-gcc)       ;;
3634      test-suite)     ;;
3635      llvm-test)      ;;
3636      poolalloc)      ;;
3637      llvm-poolalloc) ;;
3638      *)
3639        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3640echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3641        ;;
3642    esac
3643  fi
3644done
3645
3646# Check whether --enable-polly was given.
3647if test "${enable_polly+set}" = set; then
3648  enableval=$enable_polly;
3649else
3650  enableval=default
3651fi
3652
3653case "$enableval" in
3654  yes) ENABLE_POLLY=1
3655 ;;
3656  no)  ENABLE_POLLY=0
3657 ;;
3658  default) ENABLE_POLLY=1
3659 ;;
3660  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3661echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3662   { (exit 1); exit 1; }; } ;;
3663esac
3664
3665
3666if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3667  LLVM_HAS_POLLY=1
3668
3669  subdirs="$subdirs tools/polly"
3670
3671fi
3672
3673
3674# Make sure we can run config.sub.
3675$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3676  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3677echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3678   { (exit 1); exit 1; }; }
3679
3680{ echo "$as_me:$LINENO: checking build system type" >&5
3681echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3682if test "${ac_cv_build+set}" = set; then
3683  echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685  ac_build_alias=$build_alias
3686test "x$ac_build_alias" = x &&
3687  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3688test "x$ac_build_alias" = x &&
3689  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3690echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3691   { (exit 1); exit 1; }; }
3692ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3693  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3694echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3695   { (exit 1); exit 1; }; }
3696
3697fi
3698{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3699echo "${ECHO_T}$ac_cv_build" >&6; }
3700case $ac_cv_build in
3701*-*-*) ;;
3702*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3703echo "$as_me: error: invalid value of canonical build" >&2;}
3704   { (exit 1); exit 1; }; };;
3705esac
3706build=$ac_cv_build
3707ac_save_IFS=$IFS; IFS='-'
3708set x $ac_cv_build
3709shift
3710build_cpu=$1
3711build_vendor=$2
3712shift; shift
3713# Remember, the first character of IFS is used to create $*,
3714# except with old shells:
3715build_os=$*
3716IFS=$ac_save_IFS
3717case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3718
3719
3720{ echo "$as_me:$LINENO: checking host system type" >&5
3721echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3722if test "${ac_cv_host+set}" = set; then
3723  echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725  if test "x$host_alias" = x; then
3726  ac_cv_host=$ac_cv_build
3727else
3728  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3729    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3730echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3731   { (exit 1); exit 1; }; }
3732fi
3733
3734fi
3735{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3736echo "${ECHO_T}$ac_cv_host" >&6; }
3737case $ac_cv_host in
3738*-*-*) ;;
3739*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3740echo "$as_me: error: invalid value of canonical host" >&2;}
3741   { (exit 1); exit 1; }; };;
3742esac
3743host=$ac_cv_host
3744ac_save_IFS=$IFS; IFS='-'
3745set x $ac_cv_host
3746shift
3747host_cpu=$1
3748host_vendor=$2
3749shift; shift
3750# Remember, the first character of IFS is used to create $*,
3751# except with old shells:
3752host_os=$*
3753IFS=$ac_save_IFS
3754case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3755
3756
3757{ echo "$as_me:$LINENO: checking target system type" >&5
3758echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3759if test "${ac_cv_target+set}" = set; then
3760  echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762  if test "x$target_alias" = x; then
3763  ac_cv_target=$ac_cv_host
3764else
3765  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3766    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3767echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3768   { (exit 1); exit 1; }; }
3769fi
3770
3771fi
3772{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3773echo "${ECHO_T}$ac_cv_target" >&6; }
3774case $ac_cv_target in
3775*-*-*) ;;
3776*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3777echo "$as_me: error: invalid value of canonical target" >&2;}
3778   { (exit 1); exit 1; }; };;
3779esac
3780target=$ac_cv_target
3781ac_save_IFS=$IFS; IFS='-'
3782set x $ac_cv_target
3783shift
3784target_cpu=$1
3785target_vendor=$2
3786shift; shift
3787# Remember, the first character of IFS is used to create $*,
3788# except with old shells:
3789target_os=$*
3790IFS=$ac_save_IFS
3791case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3792
3793
3794# The aliases save the names the user supplied, while $host etc.
3795# will get canonicalized.
3796test -n "$target_alias" &&
3797  test "$program_prefix$program_suffix$program_transform_name" = \
3798    NONENONEs,x,x, &&
3799  program_prefix=${target_alias}-
3800
3801{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3802echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3803if test "${llvm_cv_os_type+set}" = set; then
3804  echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806  case $host in
3807  *-*-aix*)
3808    llvm_cv_link_all_option="-Wl,--whole-archive"
3809    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810    llvm_cv_os_type="AIX"
3811    llvm_cv_platform_type="Unix" ;;
3812  *-*-irix*)
3813    llvm_cv_link_all_option="-Wl,--whole-archive"
3814    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815    llvm_cv_os_type="IRIX"
3816    llvm_cv_platform_type="Unix" ;;
3817  *-*-cygwin*)
3818    llvm_cv_link_all_option="-Wl,--whole-archive"
3819    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3820    llvm_cv_os_type="Cygwin"
3821    llvm_cv_platform_type="Unix" ;;
3822  *-*-darwin*)
3823    llvm_cv_link_all_option="-Wl,-all_load"
3824    llvm_cv_no_link_all_option="-Wl,-noall_load"
3825    llvm_cv_os_type="Darwin"
3826    llvm_cv_platform_type="Unix" ;;
3827  *-*-minix*)
3828    llvm_cv_link_all_option="-Wl,-all_load"
3829    llvm_cv_no_link_all_option="-Wl,-noall_load"
3830    llvm_cv_os_type="Minix"
3831    llvm_cv_platform_type="Unix" ;;
3832  *-*-freebsd*)
3833    llvm_cv_link_all_option="-Wl,--whole-archive"
3834    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835    llvm_cv_os_type="FreeBSD"
3836    llvm_cv_platform_type="Unix" ;;
3837  *-*-kfreebsd-gnu)
3838    llvm_cv_link_all_option="-Wl,--whole-archive"
3839    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840    llvm_cv_os_type="GNU/kFreeBSD"
3841    llvm_cv_platform_type="Unix" ;;
3842  *-*-openbsd*)
3843    llvm_cv_link_all_option="-Wl,--whole-archive"
3844    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845    llvm_cv_os_type="OpenBSD"
3846    llvm_cv_platform_type="Unix" ;;
3847  *-*-netbsd*)
3848    llvm_cv_link_all_option="-Wl,--whole-archive"
3849    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850    llvm_cv_os_type="NetBSD"
3851    llvm_cv_platform_type="Unix" ;;
3852  *-*-dragonfly*)
3853    llvm_cv_link_all_option="-Wl,--whole-archive"
3854    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855    llvm_cv_os_type="DragonFly"
3856    llvm_cv_platform_type="Unix" ;;
3857  *-*-hpux*)
3858    llvm_cv_link_all_option="-Wl,--whole-archive"
3859    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860    llvm_cv_os_type="HP-UX"
3861    llvm_cv_platform_type="Unix" ;;
3862  *-*-interix*)
3863    llvm_cv_link_all_option="-Wl,--whole-archive"
3864    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865    llvm_cv_os_type="Interix"
3866    llvm_cv_platform_type="Unix" ;;
3867  *-*-linux*)
3868    llvm_cv_link_all_option="-Wl,--whole-archive"
3869    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3870    llvm_cv_os_type="Linux"
3871    llvm_cv_platform_type="Unix" ;;
3872  *-*-gnu*)
3873    llvm_cv_link_all_option="-Wl,--whole-archive"
3874    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3875    llvm_cv_os_type="GNU"
3876    llvm_cv_platform_type="Unix" ;;
3877  *-*-solaris*)
3878    llvm_cv_link_all_option="-Wl,-z,allextract"
3879    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3880    llvm_cv_os_type="SunOS"
3881    llvm_cv_platform_type="Unix" ;;
3882  *-*-auroraux*)
3883    llvm_cv_link_all_option="-Wl,-z,allextract"
3884    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3885    llvm_cv_os_type="AuroraUX"
3886    llvm_cv_platform_type="Unix" ;;
3887  *-*-win32*)
3888    llvm_cv_link_all_option="-Wl,--whole-archive"
3889    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890    llvm_cv_os_type="Win32"
3891    llvm_cv_platform_type="Win32" ;;
3892  *-*-mingw*)
3893    llvm_cv_link_all_option="-Wl,--whole-archive"
3894    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895    llvm_cv_os_type="MingW"
3896    llvm_cv_platform_type="Win32" ;;
3897  *-*-haiku*)
3898    llvm_cv_link_all_option="-Wl,--whole-archive"
3899    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900    llvm_cv_os_type="Haiku"
3901    llvm_cv_platform_type="Unix" ;;
3902  *-unknown-eabi*)
3903    llvm_cv_link_all_option="-Wl,--whole-archive"
3904    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3905    llvm_cv_os_type="Freestanding"
3906    llvm_cv_platform_type="Unix" ;;
3907  *-unknown-elf*)
3908    llvm_cv_link_all_option="-Wl,--whole-archive"
3909    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3910    llvm_cv_os_type="Freestanding"
3911    llvm_cv_platform_type="Unix" ;;
3912  *)
3913    llvm_cv_link_all_option=""
3914    llvm_cv_no_link_all_option=""
3915    llvm_cv_os_type="Unknown"
3916    llvm_cv_platform_type="Unknown" ;;
3917esac
3918fi
3919{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3920echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3921
3922{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3923echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3924if test "${llvm_cv_target_os_type+set}" = set; then
3925  echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927  case $target in
3928  *-*-aix*)
3929    llvm_cv_target_os_type="AIX" ;;
3930  *-*-irix*)
3931    llvm_cv_target_os_type="IRIX" ;;
3932  *-*-cygwin*)
3933    llvm_cv_target_os_type="Cygwin" ;;
3934  *-*-darwin*)
3935    llvm_cv_target_os_type="Darwin" ;;
3936  *-*-minix*)
3937    llvm_cv_target_os_type="Minix" ;;
3938  *-*-freebsd*)
3939    llvm_cv_target_os_type="FreeBSD" ;;
3940  *-*-kfreebsd-gnu)
3941    llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3942  *-*-openbsd*)
3943    llvm_cv_target_os_type="OpenBSD" ;;
3944  *-*-netbsd*)
3945    llvm_cv_target_os_type="NetBSD" ;;
3946  *-*-dragonfly*)
3947    llvm_cv_target_os_type="DragonFly" ;;
3948  *-*-hpux*)
3949    llvm_cv_target_os_type="HP-UX" ;;
3950  *-*-interix*)
3951    llvm_cv_target_os_type="Interix" ;;
3952  *-*-linux*)
3953    llvm_cv_target_os_type="Linux" ;;
3954  *-*-gnu*)
3955    llvm_cv_target_os_type="GNU" ;;
3956  *-*-solaris*)
3957    llvm_cv_target_os_type="SunOS" ;;
3958  *-*-auroraux*)
3959    llvm_cv_target_os_type="AuroraUX" ;;
3960  *-*-win32*)
3961    llvm_cv_target_os_type="Win32" ;;
3962  *-*-mingw*)
3963    llvm_cv_target_os_type="MingW" ;;
3964  *-*-haiku*)
3965    llvm_cv_target_os_type="Haiku" ;;
3966  *-*-rtems*)
3967    llvm_cv_target_os_type="RTEMS" ;;
3968  *-*-nacl*)
3969    llvm_cv_target_os_type="NativeClient" ;;
3970  *-unknown-eabi*)
3971    llvm_cv_target_os_type="Freestanding" ;;
3972  *)
3973    llvm_cv_target_os_type="Unknown" ;;
3974esac
3975fi
3976{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3977echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3978
3979if test "$llvm_cv_os_type" = "Unknown" ; then
3980  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3981echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3982   { (exit 1); exit 1; }; }
3983fi
3984
3985OS=$llvm_cv_os_type
3986
3987HOST_OS=$llvm_cv_os_type
3988
3989TARGET_OS=$llvm_cv_target_os_type
3990
3991
3992LINKALL=$llvm_cv_link_all_option
3993
3994NOLINKALL=$llvm_cv_no_link_all_option
3995
3996
3997case $llvm_cv_platform_type in
3998  Unix)
3999
4000cat >>confdefs.h <<\_ACEOF
4001#define LLVM_ON_UNIX 1
4002_ACEOF
4003
4004    LLVM_ON_UNIX=1
4005
4006    LLVM_ON_WIN32=0
4007
4008    ;;
4009  Win32)
4010
4011cat >>confdefs.h <<\_ACEOF
4012#define LLVM_ON_WIN32 1
4013_ACEOF
4014
4015    LLVM_ON_UNIX=0
4016
4017    LLVM_ON_WIN32=1
4018
4019    ;;
4020esac
4021
4022{ echo "$as_me:$LINENO: checking target architecture" >&5
4023echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4024if test "${llvm_cv_target_arch+set}" = set; then
4025  echo $ECHO_N "(cached) $ECHO_C" >&6
4026else
4027  case $target in
4028  i?86-*)                 llvm_cv_target_arch="x86" ;;
4029  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4030  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4031  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4032  arm*-*)                 llvm_cv_target_arch="ARM" ;;
4033  aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4034  mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4035  mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4036  xcore-*)                llvm_cv_target_arch="XCore" ;;
4037  msp430-*)               llvm_cv_target_arch="MSP430" ;;
4038  hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4039  nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4040  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4041  *)                      llvm_cv_target_arch="Unknown" ;;
4042esac
4043fi
4044{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4045echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4046
4047if test "$llvm_cv_target_arch" = "Unknown" ; then
4048  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4049echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4050fi
4051
4052case "$llvm_cv_target_arch" in
4053    x86)     LLVM_NATIVE_ARCH="X86" ;;
4054    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4055    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4056esac
4057
4058ARCH=$llvm_cv_target_arch
4059
4060
4061case $host in
4062  i?86-*)                 host_arch="x86" ;;
4063  amd64-* | x86_64-*)     host_arch="x86_64" ;;
4064  sparc*-*)               host_arch="Sparc" ;;
4065  powerpc*-*)             host_arch="PowerPC" ;;
4066  arm*-*)                 host_arch="ARM" ;;
4067  aarch64*-*)             host_arch="AArch64" ;;
4068  mips-* | mips64-*)      host_arch="Mips" ;;
4069  mipsel-* | mips64el-*)  host_arch="Mips" ;;
4070  xcore-*)                host_arch="XCore" ;;
4071  msp430-*)               host_arch="MSP430" ;;
4072  hexagon-*)              host_arch="Hexagon" ;;
4073  s390x-*)                host_arch="SystemZ" ;;
4074  *)                      host_arch="Unknown" ;;
4075esac
4076
4077if test "$host_arch" = "Unknown" ; then
4078  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4079echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4080fi
4081
4082HOST_ARCH=$host_arch
4083
4084
4085
4086
4087{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4088echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4089if test "${ac_cv_path_GREP+set}" = set; then
4090  echo $ECHO_N "(cached) $ECHO_C" >&6
4091else
4092  # Extract the first word of "grep ggrep" to use in msg output
4093if test -z "$GREP"; then
4094set dummy grep ggrep; ac_prog_name=$2
4095if test "${ac_cv_path_GREP+set}" = set; then
4096  echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098  ac_path_GREP_found=false
4099# Loop through the user's path and test for each of PROGNAME-LIST
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102do
4103  IFS=$as_save_IFS
4104  test -z "$as_dir" && as_dir=.
4105  for ac_prog in grep ggrep; do
4106  for ac_exec_ext in '' $ac_executable_extensions; do
4107    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4109    # Check for GNU ac_path_GREP and select it if it is found.
4110  # Check for GNU $ac_path_GREP
4111case `"$ac_path_GREP" --version 2>&1` in
4112*GNU*)
4113  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4114*)
4115  ac_count=0
4116  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4117  while :
4118  do
4119    cat "conftest.in" "conftest.in" >"conftest.tmp"
4120    mv "conftest.tmp" "conftest.in"
4121    cp "conftest.in" "conftest.nl"
4122    echo 'GREP' >> "conftest.nl"
4123    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125    ac_count=`expr $ac_count + 1`
4126    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127      # Best one so far, save it but keep looking for a better one
4128      ac_cv_path_GREP="$ac_path_GREP"
4129      ac_path_GREP_max=$ac_count
4130    fi
4131    # 10*(2^10) chars as input seems more than enough
4132    test $ac_count -gt 10 && break
4133  done
4134  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135esac
4136
4137
4138    $ac_path_GREP_found && break 3
4139  done
4140done
4141
4142done
4143IFS=$as_save_IFS
4144
4145
4146fi
4147
4148GREP="$ac_cv_path_GREP"
4149if test -z "$GREP"; then
4150  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152   { (exit 1); exit 1; }; }
4153fi
4154
4155else
4156  ac_cv_path_GREP=$GREP
4157fi
4158
4159
4160fi
4161{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4162echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4163 GREP="$ac_cv_path_GREP"
4164
4165
4166{ echo "$as_me:$LINENO: checking for egrep" >&5
4167echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4168if test "${ac_cv_path_EGREP+set}" = set; then
4169  echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172   then ac_cv_path_EGREP="$GREP -E"
4173   else
4174     # Extract the first word of "egrep" to use in msg output
4175if test -z "$EGREP"; then
4176set dummy egrep; ac_prog_name=$2
4177if test "${ac_cv_path_EGREP+set}" = set; then
4178  echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180  ac_path_EGREP_found=false
4181# Loop through the user's path and test for each of PROGNAME-LIST
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4184do
4185  IFS=$as_save_IFS
4186  test -z "$as_dir" && as_dir=.
4187  for ac_prog in egrep; do
4188  for ac_exec_ext in '' $ac_executable_extensions; do
4189    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4190    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4191    # Check for GNU ac_path_EGREP and select it if it is found.
4192  # Check for GNU $ac_path_EGREP
4193case `"$ac_path_EGREP" --version 2>&1` in
4194*GNU*)
4195  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4196*)
4197  ac_count=0
4198  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4199  while :
4200  do
4201    cat "conftest.in" "conftest.in" >"conftest.tmp"
4202    mv "conftest.tmp" "conftest.in"
4203    cp "conftest.in" "conftest.nl"
4204    echo 'EGREP' >> "conftest.nl"
4205    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207    ac_count=`expr $ac_count + 1`
4208    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4209      # Best one so far, save it but keep looking for a better one
4210      ac_cv_path_EGREP="$ac_path_EGREP"
4211      ac_path_EGREP_max=$ac_count
4212    fi
4213    # 10*(2^10) chars as input seems more than enough
4214    test $ac_count -gt 10 && break
4215  done
4216  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217esac
4218
4219
4220    $ac_path_EGREP_found && break 3
4221  done
4222done
4223
4224done
4225IFS=$as_save_IFS
4226
4227
4228fi
4229
4230EGREP="$ac_cv_path_EGREP"
4231if test -z "$EGREP"; then
4232  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4233echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4234   { (exit 1); exit 1; }; }
4235fi
4236
4237else
4238  ac_cv_path_EGREP=$EGREP
4239fi
4240
4241
4242   fi
4243fi
4244{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4245echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4246 EGREP="$ac_cv_path_EGREP"
4247
4248
4249{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4250echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4251if test "${ac_cv_header_stdc+set}" = set; then
4252  echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254  cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h.  */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h.  */
4260#include <stdlib.h>
4261#include <stdarg.h>
4262#include <string.h>
4263#include <float.h>
4264
4265int
4266main ()
4267{
4268
4269  ;
4270  return 0;
4271}
4272_ACEOF
4273rm -f conftest.$ac_objext
4274if { (ac_try="$ac_compile"
4275case "(($ac_try" in
4276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277  *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280  (eval "$ac_compile") 2>conftest.er1
4281  ac_status=$?
4282  grep -v '^ *+' conftest.er1 >conftest.err
4283  rm -f conftest.er1
4284  cat conftest.err >&5
4285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286  (exit $ac_status); } &&
4287	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288  { (case "(($ac_try" in
4289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290  *) ac_try_echo=$ac_try;;
4291esac
4292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293  (eval "$ac_try") 2>&5
4294  ac_status=$?
4295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296  (exit $ac_status); }; } &&
4297	 { ac_try='test -s conftest.$ac_objext'
4298  { (case "(($ac_try" in
4299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300  *) ac_try_echo=$ac_try;;
4301esac
4302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303  (eval "$ac_try") 2>&5
4304  ac_status=$?
4305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306  (exit $ac_status); }; }; then
4307  ac_cv_header_stdc=yes
4308else
4309  echo "$as_me: failed program was:" >&5
4310sed 's/^/| /' conftest.$ac_ext >&5
4311
4312	ac_cv_header_stdc=no
4313fi
4314
4315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316
4317if test $ac_cv_header_stdc = yes; then
4318  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4319  cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h.  */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h.  */
4325#include <string.h>
4326
4327_ACEOF
4328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329  $EGREP "memchr" >/dev/null 2>&1; then
4330  :
4331else
4332  ac_cv_header_stdc=no
4333fi
4334rm -f conftest*
4335
4336fi
4337
4338if test $ac_cv_header_stdc = yes; then
4339  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4340  cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h.  */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h.  */
4346#include <stdlib.h>
4347
4348_ACEOF
4349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350  $EGREP "free" >/dev/null 2>&1; then
4351  :
4352else
4353  ac_cv_header_stdc=no
4354fi
4355rm -f conftest*
4356
4357fi
4358
4359if test $ac_cv_header_stdc = yes; then
4360  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4361  if test "$cross_compiling" = yes; then
4362  :
4363else
4364  cat >conftest.$ac_ext <<_ACEOF
4365/* confdefs.h.  */
4366_ACEOF
4367cat confdefs.h >>conftest.$ac_ext
4368cat >>conftest.$ac_ext <<_ACEOF
4369/* end confdefs.h.  */
4370#include <ctype.h>
4371#include <stdlib.h>
4372#if ((' ' & 0x0FF) == 0x020)
4373# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375#else
4376# define ISLOWER(c) \
4377		   (('a' <= (c) && (c) <= 'i') \
4378		     || ('j' <= (c) && (c) <= 'r') \
4379		     || ('s' <= (c) && (c) <= 'z'))
4380# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4381#endif
4382
4383#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4384int
4385main ()
4386{
4387  int i;
4388  for (i = 0; i < 256; i++)
4389    if (XOR (islower (i), ISLOWER (i))
4390	|| toupper (i) != TOUPPER (i))
4391      return 2;
4392  return 0;
4393}
4394_ACEOF
4395rm -f conftest$ac_exeext
4396if { (ac_try="$ac_link"
4397case "(($ac_try" in
4398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399  *) ac_try_echo=$ac_try;;
4400esac
4401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402  (eval "$ac_link") 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4406  { (case "(($ac_try" in
4407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408  *) ac_try_echo=$ac_try;;
4409esac
4410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411  (eval "$ac_try") 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; }; then
4415  :
4416else
4417  echo "$as_me: program exited with status $ac_status" >&5
4418echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421( exit $ac_status )
4422ac_cv_header_stdc=no
4423fi
4424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4425fi
4426
4427
4428fi
4429fi
4430{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4431echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4432if test $ac_cv_header_stdc = yes; then
4433
4434cat >>confdefs.h <<\_ACEOF
4435#define STDC_HEADERS 1
4436_ACEOF
4437
4438fi
4439
4440# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4451		  inttypes.h stdint.h unistd.h
4452do
4453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4457  echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459  cat >conftest.$ac_ext <<_ACEOF
4460/* confdefs.h.  */
4461_ACEOF
4462cat confdefs.h >>conftest.$ac_ext
4463cat >>conftest.$ac_ext <<_ACEOF
4464/* end confdefs.h.  */
4465$ac_includes_default
4466
4467#include <$ac_header>
4468_ACEOF
4469rm -f conftest.$ac_objext
4470if { (ac_try="$ac_compile"
4471case "(($ac_try" in
4472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473  *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476  (eval "$ac_compile") 2>conftest.er1
4477  ac_status=$?
4478  grep -v '^ *+' conftest.er1 >conftest.err
4479  rm -f conftest.er1
4480  cat conftest.err >&5
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); } &&
4483	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484  { (case "(($ac_try" in
4485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486  *) ac_try_echo=$ac_try;;
4487esac
4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489  (eval "$ac_try") 2>&5
4490  ac_status=$?
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); }; } &&
4493	 { ac_try='test -s conftest.$ac_objext'
4494  { (case "(($ac_try" in
4495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496  *) ac_try_echo=$ac_try;;
4497esac
4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499  (eval "$ac_try") 2>&5
4500  ac_status=$?
4501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502  (exit $ac_status); }; }; then
4503  eval "$as_ac_Header=yes"
4504else
4505  echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
4508	eval "$as_ac_Header=no"
4509fi
4510
4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512fi
4513ac_res=`eval echo '${'$as_ac_Header'}'`
4514	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4515echo "${ECHO_T}$ac_res" >&6; }
4516if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517  cat >>confdefs.h <<_ACEOF
4518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4519_ACEOF
4520
4521fi
4522
4523done
4524
4525
4526{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4527echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4528if test "${ac_cv_c_bigendian+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  # See if sys/param.h defines the BYTE_ORDER macro.
4532cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h.  */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h.  */
4538#include <sys/types.h>
4539#include <sys/param.h>
4540
4541int
4542main ()
4543{
4544#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4545 bogus endian macros
4546#endif
4547
4548  ;
4549  return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext
4553if { (ac_try="$ac_compile"
4554case "(($ac_try" in
4555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556  *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559  (eval "$ac_compile") 2>conftest.er1
4560  ac_status=$?
4561  grep -v '^ *+' conftest.er1 >conftest.err
4562  rm -f conftest.er1
4563  cat conftest.err >&5
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); } &&
4566	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567  { (case "(($ac_try" in
4568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569  *) ac_try_echo=$ac_try;;
4570esac
4571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572  (eval "$ac_try") 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); }; } &&
4576	 { ac_try='test -s conftest.$ac_objext'
4577  { (case "(($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_try") 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); }; }; then
4586  # It does; now see whether it defined to BIG_ENDIAN or not.
4587cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h.  */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h.  */
4593#include <sys/types.h>
4594#include <sys/param.h>
4595
4596int
4597main ()
4598{
4599#if BYTE_ORDER != BIG_ENDIAN
4600 not big endian
4601#endif
4602
4603  ;
4604  return 0;
4605}
4606_ACEOF
4607rm -f conftest.$ac_objext
4608if { (ac_try="$ac_compile"
4609case "(($ac_try" in
4610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611  *) ac_try_echo=$ac_try;;
4612esac
4613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614  (eval "$ac_compile") 2>conftest.er1
4615  ac_status=$?
4616  grep -v '^ *+' conftest.er1 >conftest.err
4617  rm -f conftest.er1
4618  cat conftest.err >&5
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); } &&
4621	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4622  { (case "(($ac_try" in
4623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624  *) ac_try_echo=$ac_try;;
4625esac
4626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627  (eval "$ac_try") 2>&5
4628  ac_status=$?
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); }; } &&
4631	 { ac_try='test -s conftest.$ac_objext'
4632  { (case "(($ac_try" in
4633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634  *) ac_try_echo=$ac_try;;
4635esac
4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637  (eval "$ac_try") 2>&5
4638  ac_status=$?
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); }; }; then
4641  ac_cv_c_bigendian=yes
4642else
4643  echo "$as_me: failed program was:" >&5
4644sed 's/^/| /' conftest.$ac_ext >&5
4645
4646	ac_cv_c_bigendian=no
4647fi
4648
4649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650else
4651  echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654	# It does not; compile a test program.
4655if test "$cross_compiling" = yes; then
4656  # try to guess the endianness by grepping values into an object file
4657  ac_cv_c_bigendian=unknown
4658  cat >conftest.$ac_ext <<_ACEOF
4659/* confdefs.h.  */
4660_ACEOF
4661cat confdefs.h >>conftest.$ac_ext
4662cat >>conftest.$ac_ext <<_ACEOF
4663/* end confdefs.h.  */
4664short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4665short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4666void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4667short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4668short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4669void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4670int
4671main ()
4672{
4673 _ascii (); _ebcdic ();
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678rm -f conftest.$ac_objext
4679if { (ac_try="$ac_compile"
4680case "(($ac_try" in
4681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682  *) ac_try_echo=$ac_try;;
4683esac
4684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685  (eval "$ac_compile") 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } &&
4692	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4693  { (case "(($ac_try" in
4694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695  *) ac_try_echo=$ac_try;;
4696esac
4697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698  (eval "$ac_try") 2>&5
4699  ac_status=$?
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); }; } &&
4702	 { ac_try='test -s conftest.$ac_objext'
4703  { (case "(($ac_try" in
4704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705  *) ac_try_echo=$ac_try;;
4706esac
4707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708  (eval "$ac_try") 2>&5
4709  ac_status=$?
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); }; }; then
4712  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4713  ac_cv_c_bigendian=yes
4714fi
4715if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4716  if test "$ac_cv_c_bigendian" = unknown; then
4717    ac_cv_c_bigendian=no
4718  else
4719    # finding both strings is unlikely to happen, but who knows?
4720    ac_cv_c_bigendian=unknown
4721  fi
4722fi
4723else
4724  echo "$as_me: failed program was:" >&5
4725sed 's/^/| /' conftest.$ac_ext >&5
4726
4727
4728fi
4729
4730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731else
4732  cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h.  */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h.  */
4738$ac_includes_default
4739int
4740main ()
4741{
4742
4743  /* Are we little or big endian?  From Harbison&Steele.  */
4744  union
4745  {
4746    long int l;
4747    char c[sizeof (long int)];
4748  } u;
4749  u.l = 1;
4750  return u.c[sizeof (long int) - 1] == 1;
4751
4752  ;
4753  return 0;
4754}
4755_ACEOF
4756rm -f conftest$ac_exeext
4757if { (ac_try="$ac_link"
4758case "(($ac_try" in
4759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760  *) ac_try_echo=$ac_try;;
4761esac
4762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763  (eval "$ac_link") 2>&5
4764  ac_status=$?
4765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4767  { (case "(($ac_try" in
4768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769  *) ac_try_echo=$ac_try;;
4770esac
4771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772  (eval "$ac_try") 2>&5
4773  ac_status=$?
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); }; }; then
4776  ac_cv_c_bigendian=no
4777else
4778  echo "$as_me: program exited with status $ac_status" >&5
4779echo "$as_me: failed program was:" >&5
4780sed 's/^/| /' conftest.$ac_ext >&5
4781
4782( exit $ac_status )
4783ac_cv_c_bigendian=yes
4784fi
4785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4786fi
4787
4788
4789fi
4790
4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792fi
4793{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4794echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4795case $ac_cv_c_bigendian in
4796  yes)
4797    ENDIAN=big
4798 ;;
4799  no)
4800    ENDIAN=little
4801 ;;
4802  *)
4803    { { echo "$as_me:$LINENO: error: unknown endianness
4804presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4805echo "$as_me: error: unknown endianness
4806presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4807   { (exit 1); exit 1; }; } ;;
4808esac
4809
4810
4811if test "$cross_compiling" = yes; then
4812  LLVM_CROSS_COMPILING=1
4813
4814
4815{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4816echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4817if test "${ac_cv_build_exeext+set}" = set; then
4818  echo $ECHO_N "(cached) $ECHO_C" >&6
4819else
4820  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4821  ac_cv_build_exeext=.exe
4822else
4823  ac_build_prefix=${build_alias}-
4824
4825  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4826set dummy ${ac_build_prefix}gcc; ac_word=$2
4827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4830  echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832  if test -n "$BUILD_CC"; then
4833  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840  for ac_exec_ext in '' $ac_executable_extensions; do
4841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4842    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844    break 2
4845  fi
4846done
4847done
4848IFS=$as_save_IFS
4849
4850fi
4851fi
4852BUILD_CC=$ac_cv_prog_BUILD_CC
4853if test -n "$BUILD_CC"; then
4854  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4855echo "${ECHO_T}$BUILD_CC" >&6; }
4856else
4857  { echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6; }
4859fi
4860
4861
4862  if test -z "$BUILD_CC"; then
4863     # Extract the first word of "gcc", so it can be a program name with args.
4864set dummy gcc; ac_word=$2
4865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4868  echo $ECHO_N "(cached) $ECHO_C" >&6
4869else
4870  if test -n "$BUILD_CC"; then
4871  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4872else
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878  for ac_exec_ext in '' $ac_executable_extensions; do
4879  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880    ac_cv_prog_BUILD_CC="gcc"
4881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882    break 2
4883  fi
4884done
4885done
4886IFS=$as_save_IFS
4887
4888fi
4889fi
4890BUILD_CC=$ac_cv_prog_BUILD_CC
4891if test -n "$BUILD_CC"; then
4892  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4893echo "${ECHO_T}$BUILD_CC" >&6; }
4894else
4895  { echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6; }
4897fi
4898
4899
4900     if test -z "$BUILD_CC"; then
4901       # Extract the first word of "cc", so it can be a program name with args.
4902set dummy cc; ac_word=$2
4903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4906  echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908  if test -n "$BUILD_CC"; then
4909  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4910else
4911  ac_prog_rejected=no
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915  IFS=$as_save_IFS
4916  test -z "$as_dir" && as_dir=.
4917  for ac_exec_ext in '' $ac_executable_extensions; do
4918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4919    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4920       ac_prog_rejected=yes
4921       continue
4922     fi
4923    ac_cv_prog_BUILD_CC="cc"
4924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925    break 2
4926  fi
4927done
4928done
4929IFS=$as_save_IFS
4930
4931if test $ac_prog_rejected = yes; then
4932  # We found a bogon in the path, so make sure we never use it.
4933  set dummy $ac_cv_prog_BUILD_CC
4934  shift
4935  if test $# != 0; then
4936    # We chose a different compiler from the bogus one.
4937    # However, it has the same basename, so the bogon will be chosen
4938    # first if we set BUILD_CC to just the basename; use the full file name.
4939    shift
4940    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4941  fi
4942fi
4943fi
4944fi
4945BUILD_CC=$ac_cv_prog_BUILD_CC
4946if test -n "$BUILD_CC"; then
4947  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4948echo "${ECHO_T}$BUILD_CC" >&6; }
4949else
4950  { echo "$as_me:$LINENO: result: no" >&5
4951echo "${ECHO_T}no" >&6; }
4952fi
4953
4954
4955     fi
4956  fi
4957  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4958echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4959   { (exit 1); exit 1; }; }
4960  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4961  rm -f conftest*
4962  echo 'int main () { return 0; }' > conftest.$ac_ext
4963  ac_cv_build_exeext=
4964  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4965  (eval $ac_build_link) 2>&5
4966  ac_status=$?
4967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968  (exit $ac_status); }; then
4969    for file in conftest.*; do
4970      case $file in
4971      *.c | *.o | *.obj | *.dSYM) ;;
4972      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4973      esac
4974    done
4975  else
4976    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4977echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4978   { (exit 1); exit 1; }; }
4979  fi
4980  rm -f conftest*
4981  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4982fi
4983fi
4984
4985BUILD_EXEEXT=""
4986test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4987{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4988echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4989ac_build_exeext=$BUILD_EXEEXT
4990
4991  ac_build_prefix=${build_alias}-
4992  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4993set dummy ${ac_build_prefix}g++; ac_word=$2
4994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4997  echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999  if test -n "$BUILD_CXX"; then
5000  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5001else
5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005  IFS=$as_save_IFS
5006  test -z "$as_dir" && as_dir=.
5007  for ac_exec_ext in '' $ac_executable_extensions; do
5008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5009    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011    break 2
5012  fi
5013done
5014done
5015IFS=$as_save_IFS
5016
5017fi
5018fi
5019BUILD_CXX=$ac_cv_prog_BUILD_CXX
5020if test -n "$BUILD_CXX"; then
5021  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5022echo "${ECHO_T}$BUILD_CXX" >&6; }
5023else
5024  { echo "$as_me:$LINENO: result: no" >&5
5025echo "${ECHO_T}no" >&6; }
5026fi
5027
5028
5029  if test -z "$BUILD_CXX"; then
5030     # Extract the first word of "g++", so it can be a program name with args.
5031set dummy g++; ac_word=$2
5032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5035  echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037  if test -n "$BUILD_CXX"; then
5038  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5039else
5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043  IFS=$as_save_IFS
5044  test -z "$as_dir" && as_dir=.
5045  for ac_exec_ext in '' $ac_executable_extensions; do
5046  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5047    ac_cv_prog_BUILD_CXX="g++"
5048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049    break 2
5050  fi
5051done
5052done
5053IFS=$as_save_IFS
5054
5055fi
5056fi
5057BUILD_CXX=$ac_cv_prog_BUILD_CXX
5058if test -n "$BUILD_CXX"; then
5059  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5060echo "${ECHO_T}$BUILD_CXX" >&6; }
5061else
5062  { echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6; }
5064fi
5065
5066
5067     if test -z "$BUILD_CXX"; then
5068       # Extract the first word of "c++", so it can be a program name with args.
5069set dummy c++; ac_word=$2
5070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5073  echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075  if test -n "$BUILD_CXX"; then
5076  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5077else
5078  ac_prog_rejected=no
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082  IFS=$as_save_IFS
5083  test -z "$as_dir" && as_dir=.
5084  for ac_exec_ext in '' $ac_executable_extensions; do
5085  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5086    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5087       ac_prog_rejected=yes
5088       continue
5089     fi
5090    ac_cv_prog_BUILD_CXX="c++"
5091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092    break 2
5093  fi
5094done
5095done
5096IFS=$as_save_IFS
5097
5098if test $ac_prog_rejected = yes; then
5099  # We found a bogon in the path, so make sure we never use it.
5100  set dummy $ac_cv_prog_BUILD_CXX
5101  shift
5102  if test $# != 0; then
5103    # We chose a different compiler from the bogus one.
5104    # However, it has the same basename, so the bogon will be chosen
5105    # first if we set BUILD_CXX to just the basename; use the full file name.
5106    shift
5107    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5108  fi
5109fi
5110fi
5111fi
5112BUILD_CXX=$ac_cv_prog_BUILD_CXX
5113if test -n "$BUILD_CXX"; then
5114  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5115echo "${ECHO_T}$BUILD_CXX" >&6; }
5116else
5117  { echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6; }
5119fi
5120
5121
5122     fi
5123  fi
5124else
5125  LLVM_CROSS_COMPILING=0
5126
5127fi
5128
5129if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5130  cvsbuild="yes"
5131  optimize="no"
5132  CVSBUILD=CVSBUILD=1
5133
5134else
5135  cvsbuild="no"
5136  optimize="yes"
5137fi
5138
5139
5140# Check whether --enable-libcpp was given.
5141if test "${enable_libcpp+set}" = set; then
5142  enableval=$enable_libcpp;
5143else
5144  enableval=default
5145fi
5146
5147case "$enableval" in
5148  yes) ENABLE_LIBCPP=1
5149 ;;
5150  no)  ENABLE_LIBCPP=0
5151 ;;
5152  default) ENABLE_LIBCPP=0
5153;;
5154  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5155echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5156   { (exit 1); exit 1; }; } ;;
5157esac
5158
5159# Check whether --enable-cxx11 was given.
5160if test "${enable_cxx11+set}" = set; then
5161  enableval=$enable_cxx11;
5162else
5163  enableval=default
5164fi
5165
5166case "$enableval" in
5167  yes) ENABLE_CXX11=1
5168 ;;
5169  no)  ENABLE_CXX11=0
5170 ;;
5171  default) ENABLE_CXX11=0
5172;;
5173  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5174echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5175   { (exit 1); exit 1; }; } ;;
5176esac
5177
5178# Check whether --enable-split-dwarf was given.
5179if test "${enable_split_dwarf+set}" = set; then
5180  enableval=$enable_split_dwarf;
5181else
5182  enableval=default
5183fi
5184
5185case "$enableval" in
5186  yes) ENABLE_SPLIT_DWARF=1
5187 ;;
5188  no)  ENABLE_SPLIT_DWARF=0
5189 ;;
5190  default) ENABLE_SPLIT_DWARF=0
5191;;
5192  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5193echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5194   { (exit 1); exit 1; }; } ;;
5195esac
5196
5197clang_arcmt="yes"
5198# Check whether --enable-clang-arcmt was given.
5199if test "${enable_clang_arcmt+set}" = set; then
5200  enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5201else
5202  enableval="yes"
5203fi
5204
5205case "$enableval" in
5206  yes) ENABLE_CLANG_ARCMT=1
5207 ;;
5208  no)  ENABLE_CLANG_ARCMT=0
5209 ;;
5210  default) ENABLE_CLANG_ARCMT=1
5211;;
5212  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5213echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5214   { (exit 1); exit 1; }; } ;;
5215esac
5216
5217clang_static_analyzer="yes"
5218# Check whether --enable-clang-static-analyzer was given.
5219if test "${enable_clang_static_analyzer+set}" = set; then
5220  enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5221else
5222  enableval="yes"
5223fi
5224
5225case "$enableval" in
5226  yes) ENABLE_CLANG_STATIC_ANALYZER=1
5227 ;;
5228  no)
5229    if test ${clang_arcmt} != "no" ; then
5230      { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
5231echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
5232   { (exit 1); exit 1; }; }
5233    fi
5234    ENABLE_CLANG_STATIC_ANALYZER=0
5235
5236    ;;
5237  default) ENABLE_CLANG_STATIC_ANALYZER=1
5238;;
5239  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5240echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5241   { (exit 1); exit 1; }; } ;;
5242esac
5243
5244# Check whether --enable-clang-rewriter was given.
5245if test "${enable_clang_rewriter+set}" = set; then
5246  enableval=$enable_clang_rewriter;
5247else
5248  enableval="yes"
5249fi
5250
5251case "$enableval" in
5252  yes) ENABLE_CLANG_REWRITER=1
5253 ;;
5254  no)
5255    if test ${clang_arcmt} != "no" ; then
5256      { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5257echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5258   { (exit 1); exit 1; }; }
5259    fi
5260    if test ${clang_static_analyzer} != "no" ; then
5261      { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5262echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5263   { (exit 1); exit 1; }; }
5264    fi
5265    ENABLE_CLANG_REWRITER=0
5266
5267    ;;
5268  default) ENABLE_CLANG_REWRITER=1
5269;;
5270  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5271echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5272   { (exit 1); exit 1; }; } ;;
5273esac
5274
5275# Check whether --enable-optimized was given.
5276if test "${enable_optimized+set}" = set; then
5277  enableval=$enable_optimized;
5278else
5279  enableval=$optimize
5280fi
5281
5282if test ${enableval} = "no" ; then
5283  ENABLE_OPTIMIZED=
5284
5285else
5286  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5287
5288fi
5289
5290# Check whether --enable-profiling was given.
5291if test "${enable_profiling+set}" = set; then
5292  enableval=$enable_profiling;
5293else
5294  enableval="no"
5295fi
5296
5297if test ${enableval} = "no" ; then
5298  ENABLE_PROFILING=
5299
5300else
5301  ENABLE_PROFILING=ENABLE_PROFILING=1
5302
5303fi
5304
5305# Check whether --enable-assertions was given.
5306if test "${enable_assertions+set}" = set; then
5307  enableval=$enable_assertions;
5308else
5309  enableval="yes"
5310fi
5311
5312if test ${enableval} = "yes" ; then
5313  DISABLE_ASSERTIONS=
5314
5315else
5316  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5317
5318fi
5319
5320# Check whether --enable-werror was given.
5321if test "${enable_werror+set}" = set; then
5322  enableval=$enable_werror;
5323else
5324  enableval="no"
5325fi
5326
5327case "$enableval" in
5328  yes) ENABLE_WERROR=1
5329 ;;
5330  no)  ENABLE_WERROR=0
5331 ;;
5332  default) ENABLE_WERROR=0
5333;;
5334  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5335echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5336   { (exit 1); exit 1; }; } ;;
5337esac
5338
5339# Check whether --enable-expensive-checks was given.
5340if test "${enable_expensive_checks+set}" = set; then
5341  enableval=$enable_expensive_checks;
5342else
5343  enableval="no"
5344fi
5345
5346if test ${enableval} = "yes" ; then
5347  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5348
5349  EXPENSIVE_CHECKS=yes
5350
5351else
5352  ENABLE_EXPENSIVE_CHECKS=
5353
5354  EXPENSIVE_CHECKS=no
5355
5356fi
5357
5358# Check whether --enable-debug-runtime was given.
5359if test "${enable_debug_runtime+set}" = set; then
5360  enableval=$enable_debug_runtime;
5361else
5362  enableval=no
5363fi
5364
5365if test ${enableval} = "no" ; then
5366  DEBUG_RUNTIME=
5367
5368else
5369  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5370
5371fi
5372
5373# Check whether --enable-debug-symbols was given.
5374if test "${enable_debug_symbols+set}" = set; then
5375  enableval=$enable_debug_symbols;
5376else
5377  enableval=no
5378fi
5379
5380if test ${enableval} = "no" ; then
5381  DEBUG_SYMBOLS=
5382
5383else
5384  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5385
5386fi
5387
5388# Check whether --enable-keep-symbols was given.
5389if test "${enable_keep_symbols+set}" = set; then
5390  enableval=$enable_keep_symbols;
5391else
5392  enableval=no
5393fi
5394
5395if test ${enableval} = "no" ; then
5396  KEEP_SYMBOLS=
5397
5398else
5399  KEEP_SYMBOLS=KEEP_SYMBOLS=1
5400
5401fi
5402
5403# Check whether --enable-jit was given.
5404if test "${enable_jit+set}" = set; then
5405  enableval=$enable_jit;
5406else
5407  enableval=default
5408fi
5409
5410if test ${enableval} = "no"
5411then
5412  JIT=
5413
5414else
5415  case "$llvm_cv_target_arch" in
5416    x86)         TARGET_HAS_JIT=1
5417 ;;
5418    Sparc)       TARGET_HAS_JIT=0
5419 ;;
5420    PowerPC)     TARGET_HAS_JIT=1
5421 ;;
5422    x86_64)      TARGET_HAS_JIT=1
5423 ;;
5424    ARM)         TARGET_HAS_JIT=1
5425 ;;
5426    AArch64)     TARGET_HAS_JIT=0
5427 ;;
5428    Mips)        TARGET_HAS_JIT=1
5429 ;;
5430    XCore)       TARGET_HAS_JIT=0
5431 ;;
5432    MSP430)      TARGET_HAS_JIT=0
5433 ;;
5434    Hexagon)     TARGET_HAS_JIT=0
5435 ;;
5436    NVPTX)       TARGET_HAS_JIT=0
5437 ;;
5438    SystemZ)     TARGET_HAS_JIT=1
5439 ;;
5440    *)           TARGET_HAS_JIT=0
5441 ;;
5442  esac
5443fi
5444
5445# Check whether --enable-docs was given.
5446if test "${enable_docs+set}" = set; then
5447  enableval=$enable_docs;
5448else
5449  enableval=default
5450fi
5451
5452case "$enableval" in
5453  yes) ENABLE_DOCS=1
5454 ;;
5455  no)  ENABLE_DOCS=0
5456 ;;
5457  default) ENABLE_DOCS=1
5458 ;;
5459  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5460echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5461   { (exit 1); exit 1; }; } ;;
5462esac
5463
5464# Check whether --enable-doxygen was given.
5465if test "${enable_doxygen+set}" = set; then
5466  enableval=$enable_doxygen;
5467else
5468  enableval=default
5469fi
5470
5471case "$enableval" in
5472  yes) ENABLE_DOXYGEN=1
5473 ;;
5474  no)  ENABLE_DOXYGEN=0
5475 ;;
5476  default) ENABLE_DOXYGEN=0
5477 ;;
5478  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5479echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5480   { (exit 1); exit 1; }; } ;;
5481esac
5482
5483# Check whether --enable-threads was given.
5484if test "${enable_threads+set}" = set; then
5485  enableval=$enable_threads;
5486else
5487  enableval=default
5488fi
5489
5490case "$enableval" in
5491  yes) LLVM_ENABLE_THREADS=1
5492 ;;
5493  no)  LLVM_ENABLE_THREADS=0
5494 ;;
5495  default) LLVM_ENABLE_THREADS=1
5496 ;;
5497  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5498echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5499   { (exit 1); exit 1; }; } ;;
5500esac
5501
5502cat >>confdefs.h <<_ACEOF
5503#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5504_ACEOF
5505
5506
5507# Check whether --enable-pthreads was given.
5508if test "${enable_pthreads+set}" = set; then
5509  enableval=$enable_pthreads;
5510else
5511  enableval=default
5512fi
5513
5514case "$enableval" in
5515  yes) ENABLE_PTHREADS=1
5516 ;;
5517  no)  ENABLE_PTHREADS=0
5518 ;;
5519  default) ENABLE_PTHREADS=1
5520 ;;
5521  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5522echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5523   { (exit 1); exit 1; }; } ;;
5524esac
5525
5526# Check whether --enable-zlib was given.
5527if test "${enable_zlib+set}" = set; then
5528  enableval=$enable_zlib;
5529else
5530  enableval=default
5531fi
5532
5533case "$enableval" in
5534  yes) LLVM_ENABLE_ZLIB=1
5535 ;;
5536  no)  LLVM_ENABLE_ZLIB=0
5537 ;;
5538  default) LLVM_ENABLE_ZLIB=1
5539 ;;
5540  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5541echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5542   { (exit 1); exit 1; }; } ;;
5543esac
5544
5545cat >>confdefs.h <<_ACEOF
5546#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5547_ACEOF
5548
5549
5550# Check whether --enable-pic was given.
5551if test "${enable_pic+set}" = set; then
5552  enableval=$enable_pic;
5553else
5554  enableval=default
5555fi
5556
5557case "$enableval" in
5558  yes) ENABLE_PIC=1
5559 ;;
5560  no)  ENABLE_PIC=0
5561 ;;
5562  default) ENABLE_PIC=1
5563 ;;
5564  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5565echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5566   { (exit 1); exit 1; }; } ;;
5567esac
5568
5569cat >>confdefs.h <<_ACEOF
5570#define ENABLE_PIC $ENABLE_PIC
5571_ACEOF
5572
5573
5574# Check whether --enable-shared was given.
5575if test "${enable_shared+set}" = set; then
5576  enableval=$enable_shared;
5577else
5578  enableval=default
5579fi
5580
5581case "$enableval" in
5582  yes) ENABLE_SHARED=1
5583 ;;
5584  no)  ENABLE_SHARED=0
5585 ;;
5586  default) ENABLE_SHARED=0
5587 ;;
5588  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5589echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5590   { (exit 1); exit 1; }; } ;;
5591esac
5592
5593# Check whether --enable-embed-stdcxx was given.
5594if test "${enable_embed_stdcxx+set}" = set; then
5595  enableval=$enable_embed_stdcxx;
5596else
5597  enableval=default
5598fi
5599
5600case "$enableval" in
5601  yes) ENABLE_EMBED_STDCXX=1
5602 ;;
5603  no)  ENABLE_EMBED_STDCXX=0
5604 ;;
5605  default) ENABLE_EMBED_STDCXX=0
5606 ;;
5607  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5608echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5609   { (exit 1); exit 1; }; } ;;
5610esac
5611
5612# Check whether --enable-timestamps was given.
5613if test "${enable_timestamps+set}" = set; then
5614  enableval=$enable_timestamps;
5615else
5616  enableval=default
5617fi
5618
5619case "$enableval" in
5620  yes) ENABLE_TIMESTAMPS=1
5621 ;;
5622  no)  ENABLE_TIMESTAMPS=0
5623 ;;
5624  default) ENABLE_TIMESTAMPS=1
5625 ;;
5626  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5627echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5628   { (exit 1); exit 1; }; } ;;
5629esac
5630
5631cat >>confdefs.h <<_ACEOF
5632#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5633_ACEOF
5634
5635
5636# Check whether --enable-backtraces was given.
5637if test "${enable_backtraces+set}" = set; then
5638  enableval=$enable_backtraces; case "$enableval" in
5639    yes) llvm_cv_enable_backtraces="yes" ;;
5640    no)  llvm_cv_enable_backtraces="no"  ;;
5641    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5642echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5643   { (exit 1); exit 1; }; } ;;
5644  esac
5645else
5646  llvm_cv_enable_backtraces="yes"
5647fi
5648
5649if test "$llvm_cv_enable_backtraces" = "yes" ; then
5650
5651cat >>confdefs.h <<\_ACEOF
5652#define ENABLE_BACKTRACES 1
5653_ACEOF
5654
5655fi
5656
5657# Check whether --enable-crash-overrides was given.
5658if test "${enable_crash_overrides+set}" = set; then
5659  enableval=$enable_crash_overrides; case "$enableval" in
5660    yes) llvm_cv_enable_crash_overrides="yes" ;;
5661    no)  llvm_cv_enable_crash_overrides="no"  ;;
5662    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5663echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5664   { (exit 1); exit 1; }; } ;;
5665  esac
5666else
5667  llvm_cv_enable_crash_overrides="yes"
5668fi
5669
5670if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5671
5672cat >>confdefs.h <<\_ACEOF
5673#define ENABLE_CRASH_OVERRIDES 1
5674_ACEOF
5675
5676fi
5677
5678TARGETS_TO_BUILD=""
5679# Check whether --enable-targets was given.
5680if test "${enable_targets+set}" = set; then
5681  enableval=$enable_targets;
5682else
5683  enableval=all
5684fi
5685
5686if test "$enableval" = host-only ; then
5687  enableval=host
5688fi
5689case "$enableval" in
5690  all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5691  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5692      case "$a_target" in
5693        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5694        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5695        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5696        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5697        aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5698        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5699        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5700        mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5701        mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5702        mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5703        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5704        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5705        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5706        hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5707        nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5708        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5709        r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5710        host) case "$llvm_cv_target_arch" in
5711            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5712            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5713            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5714            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5715            AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5716            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5717            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5718            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5719            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5720            Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5721            NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5722            SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5723            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5724echo "$as_me: error: Can not set target to build" >&2;}
5725   { (exit 1); exit 1; }; } ;;
5726          esac ;;
5727        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5728echo "$as_me: error: Unrecognized target $a_target" >&2;}
5729   { (exit 1); exit 1; }; } ;;
5730      esac
5731  done
5732  ;;
5733esac
5734
5735# Check whether --enable-experimental-targets was given.
5736if test "${enable_experimental_targets+set}" = set; then
5737  enableval=$enable_experimental_targets;
5738else
5739  enableval=disable
5740fi
5741
5742
5743if test ${enableval} != "disable"
5744then
5745  TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5746fi
5747
5748TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5749
5750
5751for a_target in $TARGETS_TO_BUILD; do
5752  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5753
5754cat >>confdefs.h <<_ACEOF
5755#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5756_ACEOF
5757
5758    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5759    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5760    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5761    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5762    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5763      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5764    fi
5765    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5766      LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5767    fi
5768
5769cat >>confdefs.h <<_ACEOF
5770#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5771_ACEOF
5772
5773
5774cat >>confdefs.h <<_ACEOF
5775#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5776_ACEOF
5777
5778
5779cat >>confdefs.h <<_ACEOF
5780#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5781_ACEOF
5782
5783
5784cat >>confdefs.h <<_ACEOF
5785#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5786_ACEOF
5787
5788    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5789
5790cat >>confdefs.h <<_ACEOF
5791#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5792_ACEOF
5793
5794    fi
5795    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5796
5797cat >>confdefs.h <<_ACEOF
5798#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5799_ACEOF
5800
5801    fi
5802  fi
5803done
5804
5805LLVM_ENUM_TARGETS=""
5806LLVM_ENUM_ASM_PRINTERS=""
5807LLVM_ENUM_ASM_PARSERS=""
5808LLVM_ENUM_DISASSEMBLERS=""
5809for target_to_build in $TARGETS_TO_BUILD; do
5810  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5811  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5812    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5813  fi
5814  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5815    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5816  fi
5817  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5818    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5819  fi
5820done
5821
5822
5823
5824
5825
5826
5827# Check whether --with-optimize-option was given.
5828if test "${with_optimize_option+set}" = set; then
5829  withval=$with_optimize_option;
5830else
5831  withval=default
5832fi
5833
5834{ echo "$as_me:$LINENO: checking optimization flags" >&5
5835echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5836case "$withval" in
5837  default)
5838    case "$llvm_cv_os_type" in
5839    FreeBSD) optimize_option=-O2 ;;
5840    MingW) optimize_option=-O2 ;;
5841    *)     optimize_option=-O3 ;;
5842    esac ;;
5843  *) optimize_option="$withval" ;;
5844esac
5845OPTIMIZE_OPTION=$optimize_option
5846
5847{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5848echo "${ECHO_T}$optimize_option" >&6; }
5849
5850
5851# Check whether --with-extra-options was given.
5852if test "${with_extra_options+set}" = set; then
5853  withval=$with_extra_options;
5854else
5855  withval=default
5856fi
5857
5858case "$withval" in
5859  default) EXTRA_OPTIONS= ;;
5860  *) EXTRA_OPTIONS=$withval ;;
5861esac
5862EXTRA_OPTIONS=$EXTRA_OPTIONS
5863
5864
5865
5866# Check whether --with-extra-ld-options was given.
5867if test "${with_extra_ld_options+set}" = set; then
5868  withval=$with_extra_ld_options;
5869else
5870  withval=default
5871fi
5872
5873case "$withval" in
5874  default) EXTRA_LD_OPTIONS= ;;
5875  *) EXTRA_LD_OPTIONS=$withval ;;
5876esac
5877EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5878
5879
5880# Check whether --enable-bindings was given.
5881if test "${enable_bindings+set}" = set; then
5882  enableval=$enable_bindings;
5883else
5884  enableval=default
5885fi
5886
5887BINDINGS_TO_BUILD=""
5888case "$enableval" in
5889  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5890  all ) BINDINGS_TO_BUILD="ocaml" ;;
5891  none | no) BINDINGS_TO_BUILD="" ;;
5892  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5893      case "$a_binding" in
5894        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5895        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5896echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5897   { (exit 1); exit 1; }; } ;;
5898      esac
5899  done
5900  ;;
5901esac
5902
5903
5904# Check whether --with-ocaml-libdir was given.
5905if test "${with_ocaml_libdir+set}" = set; then
5906  withval=$with_ocaml_libdir;
5907else
5908  withval=auto
5909fi
5910
5911case "$withval" in
5912  auto) with_ocaml_libdir="$withval" ;;
5913  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5914  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5915echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5916   { (exit 1); exit 1; }; } ;;
5917esac
5918
5919
5920# Check whether --with-clang-srcdir was given.
5921if test "${with_clang_srcdir+set}" = set; then
5922  withval=$with_clang_srcdir;
5923else
5924  withval="-"
5925fi
5926
5927case "$withval" in
5928  -) clang_src_root="" ;;
5929  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5930  *) clang_src_root="$ac_pwd/$withval" ;;
5931esac
5932CLANG_SRC_ROOT=$clang_src_root
5933
5934
5935
5936# Check whether --with-clang-resource-dir was given.
5937if test "${with_clang_resource_dir+set}" = set; then
5938  withval=$with_clang_resource_dir;
5939else
5940  withval=""
5941fi
5942
5943
5944cat >>confdefs.h <<_ACEOF
5945#define CLANG_RESOURCE_DIR "$withval"
5946_ACEOF
5947
5948
5949
5950# Check whether --with-c-include-dirs was given.
5951if test "${with_c_include_dirs+set}" = set; then
5952  withval=$with_c_include_dirs;
5953else
5954  withval=""
5955fi
5956
5957
5958cat >>confdefs.h <<_ACEOF
5959#define C_INCLUDE_DIRS "$withval"
5960_ACEOF
5961
5962
5963# Clang normally uses the system c++ headers and libraries. With this option,
5964# clang will use the ones provided by a gcc installation instead. This option should
5965# be passed the same value that was used with --prefix when configuring gcc.
5966
5967# Check whether --with-gcc-toolchain was given.
5968if test "${with_gcc_toolchain+set}" = set; then
5969  withval=$with_gcc_toolchain;
5970else
5971  withval=""
5972fi
5973
5974
5975cat >>confdefs.h <<_ACEOF
5976#define GCC_INSTALL_PREFIX "$withval"
5977_ACEOF
5978
5979
5980
5981# Check whether --with-default-sysroot was given.
5982if test "${with_default_sysroot+set}" = set; then
5983  withval=$with_default_sysroot;
5984else
5985  withval=""
5986fi
5987
5988
5989cat >>confdefs.h <<_ACEOF
5990#define DEFAULT_SYSROOT "$withval"
5991_ACEOF
5992
5993
5994
5995# Check whether --with-binutils-include was given.
5996if test "${with_binutils_include+set}" = set; then
5997  withval=$with_binutils_include;
5998else
5999  withval=default
6000fi
6001
6002case "$withval" in
6003  default) WITH_BINUTILS_INCDIR=default ;;
6004  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
6005  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
6006echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
6007   { (exit 1); exit 1; }; } ;;
6008esac
6009if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
6010  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
6011
6012  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
6013     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
6014     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
6015echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
6016   { (exit 1); exit 1; }; };
6017  fi
6018fi
6019
6020
6021# Check whether --with-bug-report-url was given.
6022if test "${with_bug_report_url+set}" = set; then
6023  withval=$with_bug_report_url;
6024else
6025  withval="http://llvm.org/bugs/"
6026fi
6027
6028
6029cat >>confdefs.h <<_ACEOF
6030#define BUG_REPORT_URL "$withval"
6031_ACEOF
6032
6033
6034# Check whether --enable-terminfo was given.
6035if test "${enable_terminfo+set}" = set; then
6036  enableval=$enable_terminfo; case "$enableval" in
6037    yes) llvm_cv_enable_terminfo="yes" ;;
6038    no)  llvm_cv_enable_terminfo="no"  ;;
6039    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6040echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6041   { (exit 1); exit 1; }; } ;;
6042  esac
6043else
6044  llvm_cv_enable_terminfo="yes"
6045fi
6046
6047
6048# Check whether --enable-libffi was given.
6049if test "${enable_libffi+set}" = set; then
6050  enableval=$enable_libffi; case "$enableval" in
6051    yes) llvm_cv_enable_libffi="yes" ;;
6052    no)  llvm_cv_enable_libffi="no"  ;;
6053    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6054echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6055   { (exit 1); exit 1; }; } ;;
6056  esac
6057else
6058  llvm_cv_enable_libffi=no
6059fi
6060
6061
6062
6063# Check whether --with-internal-prefix was given.
6064if test "${with_internal_prefix+set}" = set; then
6065  withval=$with_internal_prefix;
6066else
6067  withval=""
6068fi
6069
6070INTERNAL_PREFIX=$withval
6071
6072
6073
6074{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6075echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6076if test "${lt_cv_path_NM+set}" = set; then
6077  echo $ECHO_N "(cached) $ECHO_C" >&6
6078else
6079  if test -n "$NM"; then
6080  # Let the user override the test.
6081  lt_cv_path_NM="$NM"
6082else
6083  lt_nm_to_check="${ac_tool_prefix}nm"
6084  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6085    lt_nm_to_check="$lt_nm_to_check nm"
6086  fi
6087  for lt_tmp_nm in $lt_nm_to_check; do
6088    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6089    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6090      IFS="$lt_save_ifs"
6091      test -z "$ac_dir" && ac_dir=.
6092      tmp_nm="$ac_dir/$lt_tmp_nm"
6093      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6094	# Check to see if the nm accepts a BSD-compat flag.
6095	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6096	#   nm: unknown option "B" ignored
6097	# Tru64's nm complains that /dev/null is an invalid object file
6098	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6099	*/dev/null* | *'Invalid file or object type'*)
6100	  lt_cv_path_NM="$tmp_nm -B"
6101	  break
6102	  ;;
6103	*)
6104	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6105	  */dev/null*)
6106	    lt_cv_path_NM="$tmp_nm -p"
6107	    break
6108	    ;;
6109	  *)
6110	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6111	    continue # so that we can try to find one that supports BSD flags
6112	    ;;
6113	  esac
6114	  ;;
6115	esac
6116      fi
6117    done
6118    IFS="$lt_save_ifs"
6119  done
6120  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6121fi
6122fi
6123{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6124echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6125NM="$lt_cv_path_NM"
6126
6127
6128
6129{ echo "$as_me:$LINENO: checking for GNU make" >&5
6130echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6131if test "${llvm_cv_gnu_make_command+set}" = set; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  llvm_cv_gnu_make_command=''
6135 for a in "$MAKE" make gmake gnumake ; do
6136  if test -z "$a" ; then continue ; fi ;
6137  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6138  then
6139   llvm_cv_gnu_make_command=$a ;
6140   break;
6141  fi
6142 done
6143fi
6144{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6145echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6146 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6147   ifGNUmake='' ;
6148 else
6149   ifGNUmake='#' ;
6150   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6151echo "${ECHO_T}\"Not found\"" >&6; };
6152 fi
6153
6154
6155{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6156echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6157LN_S=$as_ln_s
6158if test "$LN_S" = "ln -s"; then
6159  { echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6; }
6161else
6162  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6163echo "${ECHO_T}no, using $LN_S" >&6; }
6164fi
6165
6166# Extract the first word of "cmp", so it can be a program name with args.
6167set dummy cmp; ac_word=$2
6168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170if test "${ac_cv_path_CMP+set}" = set; then
6171  echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173  case $CMP in
6174  [\\/]* | ?:[\\/]*)
6175  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6176  ;;
6177  *)
6178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183  for ac_exec_ext in '' $ac_executable_extensions; do
6184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190done
6191IFS=$as_save_IFS
6192
6193  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6194  ;;
6195esac
6196fi
6197CMP=$ac_cv_path_CMP
6198if test -n "$CMP"; then
6199  { echo "$as_me:$LINENO: result: $CMP" >&5
6200echo "${ECHO_T}$CMP" >&6; }
6201else
6202  { echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6; }
6204fi
6205
6206
6207# Extract the first word of "cp", so it can be a program name with args.
6208set dummy cp; ac_word=$2
6209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211if test "${ac_cv_path_CP+set}" = set; then
6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
6214  case $CP in
6215  [\\/]* | ?:[\\/]*)
6216  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6217  ;;
6218  *)
6219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220for as_dir in $PATH
6221do
6222  IFS=$as_save_IFS
6223  test -z "$as_dir" && as_dir=.
6224  for ac_exec_ext in '' $ac_executable_extensions; do
6225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228    break 2
6229  fi
6230done
6231done
6232IFS=$as_save_IFS
6233
6234  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6235  ;;
6236esac
6237fi
6238CP=$ac_cv_path_CP
6239if test -n "$CP"; then
6240  { echo "$as_me:$LINENO: result: $CP" >&5
6241echo "${ECHO_T}$CP" >&6; }
6242else
6243  { echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6; }
6245fi
6246
6247
6248# Extract the first word of "date", so it can be a program name with args.
6249set dummy date; ac_word=$2
6250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252if test "${ac_cv_path_DATE+set}" = set; then
6253  echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255  case $DATE in
6256  [\\/]* | ?:[\\/]*)
6257  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6258  ;;
6259  *)
6260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263  IFS=$as_save_IFS
6264  test -z "$as_dir" && as_dir=.
6265  for ac_exec_ext in '' $ac_executable_extensions; do
6266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269    break 2
6270  fi
6271done
6272done
6273IFS=$as_save_IFS
6274
6275  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6276  ;;
6277esac
6278fi
6279DATE=$ac_cv_path_DATE
6280if test -n "$DATE"; then
6281  { echo "$as_me:$LINENO: result: $DATE" >&5
6282echo "${ECHO_T}$DATE" >&6; }
6283else
6284  { echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6; }
6286fi
6287
6288
6289# Extract the first word of "find", so it can be a program name with args.
6290set dummy find; ac_word=$2
6291{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293if test "${ac_cv_path_FIND+set}" = set; then
6294  echo $ECHO_N "(cached) $ECHO_C" >&6
6295else
6296  case $FIND in
6297  [\\/]* | ?:[\\/]*)
6298  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6299  ;;
6300  *)
6301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  test -z "$as_dir" && as_dir=.
6306  for ac_exec_ext in '' $ac_executable_extensions; do
6307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6308    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310    break 2
6311  fi
6312done
6313done
6314IFS=$as_save_IFS
6315
6316  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6317  ;;
6318esac
6319fi
6320FIND=$ac_cv_path_FIND
6321if test -n "$FIND"; then
6322  { echo "$as_me:$LINENO: result: $FIND" >&5
6323echo "${ECHO_T}$FIND" >&6; }
6324else
6325  { echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6; }
6327fi
6328
6329
6330# Extract the first word of "grep", so it can be a program name with args.
6331set dummy grep; ac_word=$2
6332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334if test "${ac_cv_path_GREP+set}" = set; then
6335  echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337  case $GREP in
6338  [\\/]* | ?:[\\/]*)
6339  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6340  ;;
6341  *)
6342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345  IFS=$as_save_IFS
6346  test -z "$as_dir" && as_dir=.
6347  for ac_exec_ext in '' $ac_executable_extensions; do
6348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354done
6355IFS=$as_save_IFS
6356
6357  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6358  ;;
6359esac
6360fi
6361GREP=$ac_cv_path_GREP
6362if test -n "$GREP"; then
6363  { echo "$as_me:$LINENO: result: $GREP" >&5
6364echo "${ECHO_T}$GREP" >&6; }
6365else
6366  { echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6; }
6368fi
6369
6370
6371# Extract the first word of "mkdir", so it can be a program name with args.
6372set dummy mkdir; ac_word=$2
6373{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6375if test "${ac_cv_path_MKDIR+set}" = set; then
6376  echo $ECHO_N "(cached) $ECHO_C" >&6
6377else
6378  case $MKDIR in
6379  [\\/]* | ?:[\\/]*)
6380  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6381  ;;
6382  *)
6383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386  IFS=$as_save_IFS
6387  test -z "$as_dir" && as_dir=.
6388  for ac_exec_ext in '' $ac_executable_extensions; do
6389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392    break 2
6393  fi
6394done
6395done
6396IFS=$as_save_IFS
6397
6398  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6399  ;;
6400esac
6401fi
6402MKDIR=$ac_cv_path_MKDIR
6403if test -n "$MKDIR"; then
6404  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6405echo "${ECHO_T}$MKDIR" >&6; }
6406else
6407  { echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6; }
6409fi
6410
6411
6412# Extract the first word of "mv", so it can be a program name with args.
6413set dummy mv; ac_word=$2
6414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416if test "${ac_cv_path_MV+set}" = set; then
6417  echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419  case $MV in
6420  [\\/]* | ?:[\\/]*)
6421  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6422  ;;
6423  *)
6424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429  for ac_exec_ext in '' $ac_executable_extensions; do
6430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6431    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436done
6437IFS=$as_save_IFS
6438
6439  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6440  ;;
6441esac
6442fi
6443MV=$ac_cv_path_MV
6444if test -n "$MV"; then
6445  { echo "$as_me:$LINENO: result: $MV" >&5
6446echo "${ECHO_T}$MV" >&6; }
6447else
6448  { echo "$as_me:$LINENO: result: no" >&5
6449echo "${ECHO_T}no" >&6; }
6450fi
6451
6452
6453if test -n "$ac_tool_prefix"; then
6454  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6455set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6456{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458if test "${ac_cv_prog_RANLIB+set}" = set; then
6459  echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461  if test -n "$RANLIB"; then
6462  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467  IFS=$as_save_IFS
6468  test -z "$as_dir" && as_dir=.
6469  for ac_exec_ext in '' $ac_executable_extensions; do
6470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6471    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6472    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473    break 2
6474  fi
6475done
6476done
6477IFS=$as_save_IFS
6478
6479fi
6480fi
6481RANLIB=$ac_cv_prog_RANLIB
6482if test -n "$RANLIB"; then
6483  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6484echo "${ECHO_T}$RANLIB" >&6; }
6485else
6486  { echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6; }
6488fi
6489
6490
6491fi
6492if test -z "$ac_cv_prog_RANLIB"; then
6493  ac_ct_RANLIB=$RANLIB
6494  # Extract the first word of "ranlib", so it can be a program name with args.
6495set dummy ranlib; ac_word=$2
6496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6499  echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501  if test -n "$ac_ct_RANLIB"; then
6502  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6503else
6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505for as_dir in $PATH
6506do
6507  IFS=$as_save_IFS
6508  test -z "$as_dir" && as_dir=.
6509  for ac_exec_ext in '' $ac_executable_extensions; do
6510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511    ac_cv_prog_ac_ct_RANLIB="ranlib"
6512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513    break 2
6514  fi
6515done
6516done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6522if test -n "$ac_ct_RANLIB"; then
6523  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6524echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6525else
6526  { echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6; }
6528fi
6529
6530  if test "x$ac_ct_RANLIB" = x; then
6531    RANLIB=":"
6532  else
6533    case $cross_compiling:$ac_tool_warned in
6534yes:)
6535{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6536whose name does not start with the host triplet.  If you think this
6537configuration is useful to you, please write to autoconf@gnu.org." >&5
6538echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6539whose name does not start with the host triplet.  If you think this
6540configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6541ac_tool_warned=yes ;;
6542esac
6543    RANLIB=$ac_ct_RANLIB
6544  fi
6545else
6546  RANLIB="$ac_cv_prog_RANLIB"
6547fi
6548
6549if test -n "$ac_tool_prefix"; then
6550  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6551set dummy ${ac_tool_prefix}ar; ac_word=$2
6552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554if test "${ac_cv_prog_AR+set}" = set; then
6555  echo $ECHO_N "(cached) $ECHO_C" >&6
6556else
6557  if test -n "$AR"; then
6558  ac_cv_prog_AR="$AR" # Let the user override the test.
6559else
6560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563  IFS=$as_save_IFS
6564  test -z "$as_dir" && as_dir=.
6565  for ac_exec_ext in '' $ac_executable_extensions; do
6566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567    ac_cv_prog_AR="${ac_tool_prefix}ar"
6568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569    break 2
6570  fi
6571done
6572done
6573IFS=$as_save_IFS
6574
6575fi
6576fi
6577AR=$ac_cv_prog_AR
6578if test -n "$AR"; then
6579  { echo "$as_me:$LINENO: result: $AR" >&5
6580echo "${ECHO_T}$AR" >&6; }
6581else
6582  { echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6; }
6584fi
6585
6586
6587fi
6588if test -z "$ac_cv_prog_AR"; then
6589  ac_ct_AR=$AR
6590  # Extract the first word of "ar", so it can be a program name with args.
6591set dummy ar; ac_word=$2
6592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6595  echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
6597  if test -n "$ac_ct_AR"; then
6598  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603  IFS=$as_save_IFS
6604  test -z "$as_dir" && as_dir=.
6605  for ac_exec_ext in '' $ac_executable_extensions; do
6606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6607    ac_cv_prog_ac_ct_AR="ar"
6608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618if test -n "$ac_ct_AR"; then
6619  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6620echo "${ECHO_T}$ac_ct_AR" >&6; }
6621else
6622  { echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6; }
6624fi
6625
6626  if test "x$ac_ct_AR" = x; then
6627    AR="false"
6628  else
6629    case $cross_compiling:$ac_tool_warned in
6630yes:)
6631{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632whose name does not start with the host triplet.  If you think this
6633configuration is useful to you, please write to autoconf@gnu.org." >&5
6634echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635whose name does not start with the host triplet.  If you think this
6636configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637ac_tool_warned=yes ;;
6638esac
6639    AR=$ac_ct_AR
6640  fi
6641else
6642  AR="$ac_cv_prog_AR"
6643fi
6644
6645# Extract the first word of "rm", so it can be a program name with args.
6646set dummy rm; ac_word=$2
6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649if test "${ac_cv_path_RM+set}" = set; then
6650  echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652  case $RM in
6653  [\\/]* | ?:[\\/]*)
6654  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6655  ;;
6656  *)
6657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662  for ac_exec_ext in '' $ac_executable_extensions; do
6663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669done
6670IFS=$as_save_IFS
6671
6672  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6673  ;;
6674esac
6675fi
6676RM=$ac_cv_path_RM
6677if test -n "$RM"; then
6678  { echo "$as_me:$LINENO: result: $RM" >&5
6679echo "${ECHO_T}$RM" >&6; }
6680else
6681  { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
6683fi
6684
6685
6686# Extract the first word of "sed", so it can be a program name with args.
6687set dummy sed; ac_word=$2
6688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690if test "${ac_cv_path_SED+set}" = set; then
6691  echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693  case $SED in
6694  [\\/]* | ?:[\\/]*)
6695  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6696  ;;
6697  *)
6698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701  IFS=$as_save_IFS
6702  test -z "$as_dir" && as_dir=.
6703  for ac_exec_ext in '' $ac_executable_extensions; do
6704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707    break 2
6708  fi
6709done
6710done
6711IFS=$as_save_IFS
6712
6713  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6714  ;;
6715esac
6716fi
6717SED=$ac_cv_path_SED
6718if test -n "$SED"; then
6719  { echo "$as_me:$LINENO: result: $SED" >&5
6720echo "${ECHO_T}$SED" >&6; }
6721else
6722  { echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6; }
6724fi
6725
6726
6727# Extract the first word of "tar", so it can be a program name with args.
6728set dummy tar; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_TAR+set}" = set; then
6732  echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734  case $TAR in
6735  [\\/]* | ?:[\\/]*)
6736  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6737  ;;
6738  *)
6739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742  IFS=$as_save_IFS
6743  test -z "$as_dir" && as_dir=.
6744  for ac_exec_ext in '' $ac_executable_extensions; do
6745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748    break 2
6749  fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6755  ;;
6756esac
6757fi
6758TAR=$ac_cv_path_TAR
6759if test -n "$TAR"; then
6760  { echo "$as_me:$LINENO: result: $TAR" >&5
6761echo "${ECHO_T}$TAR" >&6; }
6762else
6763  { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765fi
6766
6767
6768# Extract the first word of "pwd", so it can be a program name with args.
6769set dummy pwd; ac_word=$2
6770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772if test "${ac_cv_path_BINPWD+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  case $BINPWD in
6776  [\\/]* | ?:[\\/]*)
6777  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6778  ;;
6779  *)
6780  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783  IFS=$as_save_IFS
6784  test -z "$as_dir" && as_dir=.
6785  for ac_exec_ext in '' $ac_executable_extensions; do
6786  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789    break 2
6790  fi
6791done
6792done
6793IFS=$as_save_IFS
6794
6795  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6796  ;;
6797esac
6798fi
6799BINPWD=$ac_cv_path_BINPWD
6800if test -n "$BINPWD"; then
6801  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6802echo "${ECHO_T}$BINPWD" >&6; }
6803else
6804  { echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6; }
6806fi
6807
6808
6809
6810# Extract the first word of "Graphviz", so it can be a program name with args.
6811set dummy Graphviz; ac_word=$2
6812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6815  echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817  case $GRAPHVIZ in
6818  [\\/]* | ?:[\\/]*)
6819  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6820  ;;
6821  *)
6822  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825  IFS=$as_save_IFS
6826  test -z "$as_dir" && as_dir=.
6827  for ac_exec_ext in '' $ac_executable_extensions; do
6828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831    break 2
6832  fi
6833done
6834done
6835IFS=$as_save_IFS
6836
6837  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6838  ;;
6839esac
6840fi
6841GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6842if test -n "$GRAPHVIZ"; then
6843  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6844echo "${ECHO_T}$GRAPHVIZ" >&6; }
6845else
6846  { echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6; }
6848fi
6849
6850
6851if test "$GRAPHVIZ" != "echo Graphviz" ; then
6852
6853cat >>confdefs.h <<\_ACEOF
6854#define HAVE_GRAPHVIZ 1
6855_ACEOF
6856
6857    if test "$llvm_cv_os_type" = "MingW" ; then
6858    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6859  fi
6860
6861cat >>confdefs.h <<_ACEOF
6862#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6863_ACEOF
6864
6865fi
6866# Extract the first word of "dot", so it can be a program name with args.
6867set dummy dot; ac_word=$2
6868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870if test "${ac_cv_path_DOT+set}" = set; then
6871  echo $ECHO_N "(cached) $ECHO_C" >&6
6872else
6873  case $DOT in
6874  [\\/]* | ?:[\\/]*)
6875  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6876  ;;
6877  *)
6878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881  IFS=$as_save_IFS
6882  test -z "$as_dir" && as_dir=.
6883  for ac_exec_ext in '' $ac_executable_extensions; do
6884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887    break 2
6888  fi
6889done
6890done
6891IFS=$as_save_IFS
6892
6893  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6894  ;;
6895esac
6896fi
6897DOT=$ac_cv_path_DOT
6898if test -n "$DOT"; then
6899  { echo "$as_me:$LINENO: result: $DOT" >&5
6900echo "${ECHO_T}$DOT" >&6; }
6901else
6902  { echo "$as_me:$LINENO: result: no" >&5
6903echo "${ECHO_T}no" >&6; }
6904fi
6905
6906
6907if test "$DOT" != "echo dot" ; then
6908
6909cat >>confdefs.h <<\_ACEOF
6910#define HAVE_DOT 1
6911_ACEOF
6912
6913    if test "$llvm_cv_os_type" = "MingW" ; then
6914    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6915  fi
6916
6917cat >>confdefs.h <<_ACEOF
6918#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6919_ACEOF
6920
6921fi
6922# Extract the first word of "fdp", so it can be a program name with args.
6923set dummy fdp; ac_word=$2
6924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926if test "${ac_cv_path_FDP+set}" = set; then
6927  echo $ECHO_N "(cached) $ECHO_C" >&6
6928else
6929  case $FDP in
6930  [\\/]* | ?:[\\/]*)
6931  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6932  ;;
6933  *)
6934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937  IFS=$as_save_IFS
6938  test -z "$as_dir" && as_dir=.
6939  for ac_exec_ext in '' $ac_executable_extensions; do
6940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943    break 2
6944  fi
6945done
6946done
6947IFS=$as_save_IFS
6948
6949  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6950  ;;
6951esac
6952fi
6953FDP=$ac_cv_path_FDP
6954if test -n "$FDP"; then
6955  { echo "$as_me:$LINENO: result: $FDP" >&5
6956echo "${ECHO_T}$FDP" >&6; }
6957else
6958  { echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6; }
6960fi
6961
6962
6963if test "$FDP" != "echo fdp" ; then
6964
6965cat >>confdefs.h <<\_ACEOF
6966#define HAVE_FDP 1
6967_ACEOF
6968
6969    if test "$llvm_cv_os_type" = "MingW" ; then
6970    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6971  fi
6972
6973cat >>confdefs.h <<_ACEOF
6974#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6975_ACEOF
6976
6977fi
6978# Extract the first word of "neato", so it can be a program name with args.
6979set dummy neato; ac_word=$2
6980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982if test "${ac_cv_path_NEATO+set}" = set; then
6983  echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985  case $NEATO in
6986  [\\/]* | ?:[\\/]*)
6987  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6988  ;;
6989  *)
6990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993  IFS=$as_save_IFS
6994  test -z "$as_dir" && as_dir=.
6995  for ac_exec_ext in '' $ac_executable_extensions; do
6996  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999    break 2
7000  fi
7001done
7002done
7003IFS=$as_save_IFS
7004
7005  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7006  ;;
7007esac
7008fi
7009NEATO=$ac_cv_path_NEATO
7010if test -n "$NEATO"; then
7011  { echo "$as_me:$LINENO: result: $NEATO" >&5
7012echo "${ECHO_T}$NEATO" >&6; }
7013else
7014  { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
7016fi
7017
7018
7019if test "$NEATO" != "echo neato" ; then
7020
7021cat >>confdefs.h <<\_ACEOF
7022#define HAVE_NEATO 1
7023_ACEOF
7024
7025    if test "$llvm_cv_os_type" = "MingW" ; then
7026    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027  fi
7028
7029cat >>confdefs.h <<_ACEOF
7030#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7031_ACEOF
7032
7033fi
7034# Extract the first word of "twopi", so it can be a program name with args.
7035set dummy twopi; ac_word=$2
7036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038if test "${ac_cv_path_TWOPI+set}" = set; then
7039  echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041  case $TWOPI in
7042  [\\/]* | ?:[\\/]*)
7043  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7044  ;;
7045  *)
7046  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049  IFS=$as_save_IFS
7050  test -z "$as_dir" && as_dir=.
7051  for ac_exec_ext in '' $ac_executable_extensions; do
7052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7054    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055    break 2
7056  fi
7057done
7058done
7059IFS=$as_save_IFS
7060
7061  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7062  ;;
7063esac
7064fi
7065TWOPI=$ac_cv_path_TWOPI
7066if test -n "$TWOPI"; then
7067  { echo "$as_me:$LINENO: result: $TWOPI" >&5
7068echo "${ECHO_T}$TWOPI" >&6; }
7069else
7070  { echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6; }
7072fi
7073
7074
7075if test "$TWOPI" != "echo twopi" ; then
7076
7077cat >>confdefs.h <<\_ACEOF
7078#define HAVE_TWOPI 1
7079_ACEOF
7080
7081    if test "$llvm_cv_os_type" = "MingW" ; then
7082    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7083  fi
7084
7085cat >>confdefs.h <<_ACEOF
7086#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7087_ACEOF
7088
7089fi
7090# Extract the first word of "circo", so it can be a program name with args.
7091set dummy circo; ac_word=$2
7092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094if test "${ac_cv_path_CIRCO+set}" = set; then
7095  echo $ECHO_N "(cached) $ECHO_C" >&6
7096else
7097  case $CIRCO in
7098  [\\/]* | ?:[\\/]*)
7099  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7100  ;;
7101  *)
7102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  test -z "$as_dir" && as_dir=.
7107  for ac_exec_ext in '' $ac_executable_extensions; do
7108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111    break 2
7112  fi
7113done
7114done
7115IFS=$as_save_IFS
7116
7117  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7118  ;;
7119esac
7120fi
7121CIRCO=$ac_cv_path_CIRCO
7122if test -n "$CIRCO"; then
7123  { echo "$as_me:$LINENO: result: $CIRCO" >&5
7124echo "${ECHO_T}$CIRCO" >&6; }
7125else
7126  { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
7128fi
7129
7130
7131if test "$CIRCO" != "echo circo" ; then
7132
7133cat >>confdefs.h <<\_ACEOF
7134#define HAVE_CIRCO 1
7135_ACEOF
7136
7137    if test "$llvm_cv_os_type" = "MingW" ; then
7138    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7139  fi
7140
7141cat >>confdefs.h <<_ACEOF
7142#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7143_ACEOF
7144
7145fi
7146for ac_prog in gv gsview32
7147do
7148  # Extract the first word of "$ac_prog", so it can be a program name with args.
7149set dummy $ac_prog; ac_word=$2
7150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152if test "${ac_cv_path_GV+set}" = set; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155  case $GV in
7156  [\\/]* | ?:[\\/]*)
7157  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7158  ;;
7159  *)
7160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161for as_dir in $PATH
7162do
7163  IFS=$as_save_IFS
7164  test -z "$as_dir" && as_dir=.
7165  for ac_exec_ext in '' $ac_executable_extensions; do
7166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169    break 2
7170  fi
7171done
7172done
7173IFS=$as_save_IFS
7174
7175  ;;
7176esac
7177fi
7178GV=$ac_cv_path_GV
7179if test -n "$GV"; then
7180  { echo "$as_me:$LINENO: result: $GV" >&5
7181echo "${ECHO_T}$GV" >&6; }
7182else
7183  { echo "$as_me:$LINENO: result: no" >&5
7184echo "${ECHO_T}no" >&6; }
7185fi
7186
7187
7188  test -n "$GV" && break
7189done
7190test -n "$GV" || GV="echo gv"
7191
7192if test "$GV" != "echo gv" ; then
7193
7194cat >>confdefs.h <<\_ACEOF
7195#define HAVE_GV 1
7196_ACEOF
7197
7198    if test "$llvm_cv_os_type" = "MingW" ; then
7199    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7200  fi
7201
7202cat >>confdefs.h <<_ACEOF
7203#define LLVM_PATH_GV "$GV${EXEEXT}"
7204_ACEOF
7205
7206fi
7207# Extract the first word of "dotty", so it can be a program name with args.
7208set dummy dotty; ac_word=$2
7209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7211if test "${ac_cv_path_DOTTY+set}" = set; then
7212  echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214  case $DOTTY in
7215  [\\/]* | ?:[\\/]*)
7216  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7217  ;;
7218  *)
7219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222  IFS=$as_save_IFS
7223  test -z "$as_dir" && as_dir=.
7224  for ac_exec_ext in '' $ac_executable_extensions; do
7225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7226    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228    break 2
7229  fi
7230done
7231done
7232IFS=$as_save_IFS
7233
7234  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7235  ;;
7236esac
7237fi
7238DOTTY=$ac_cv_path_DOTTY
7239if test -n "$DOTTY"; then
7240  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7241echo "${ECHO_T}$DOTTY" >&6; }
7242else
7243  { echo "$as_me:$LINENO: result: no" >&5
7244echo "${ECHO_T}no" >&6; }
7245fi
7246
7247
7248if test "$DOTTY" != "echo dotty" ; then
7249
7250cat >>confdefs.h <<\_ACEOF
7251#define HAVE_DOTTY 1
7252_ACEOF
7253
7254    if test "$llvm_cv_os_type" = "MingW" ; then
7255    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7256  fi
7257
7258cat >>confdefs.h <<_ACEOF
7259#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7260_ACEOF
7261
7262fi
7263for ac_prog in xdot xdot.py
7264do
7265  # Extract the first word of "$ac_prog", so it can be a program name with args.
7266set dummy $ac_prog; ac_word=$2
7267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269if test "${ac_cv_path_XDOT+set}" = set; then
7270  echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272  case $XDOT in
7273  [\\/]* | ?:[\\/]*)
7274  ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7275  ;;
7276  *)
7277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282  for ac_exec_ext in '' $ac_executable_extensions; do
7283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284    ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289done
7290IFS=$as_save_IFS
7291
7292  ;;
7293esac
7294fi
7295XDOT=$ac_cv_path_XDOT
7296if test -n "$XDOT"; then
7297  { echo "$as_me:$LINENO: result: $XDOT" >&5
7298echo "${ECHO_T}$XDOT" >&6; }
7299else
7300  { echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6; }
7302fi
7303
7304
7305  test -n "$XDOT" && break
7306done
7307test -n "$XDOT" || XDOT="echo xdot"
7308
7309if test "$XDOT" != "echo xdot" ; then
7310
7311cat >>confdefs.h <<\_ACEOF
7312#define HAVE_XDOT 1
7313_ACEOF
7314
7315    if test "$llvm_cv_os_type" = "MingW" ; then
7316    XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7317  fi
7318
7319cat >>confdefs.h <<_ACEOF
7320#define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7321_ACEOF
7322
7323fi
7324
7325# Find a good install program.  We prefer a C program (faster),
7326# so one script is as good as another.  But avoid the broken or
7327# incompatible versions:
7328# SysV /etc/install, /usr/sbin/install
7329# SunOS /usr/etc/install
7330# IRIX /sbin/install
7331# AIX /bin/install
7332# AmigaOS /C/install, which installs bootblocks on floppy discs
7333# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7334# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7335# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7336# OS/2's system install, which has a completely different semantic
7337# ./install, which can be erroneously created by make from ./install.sh.
7338{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7339echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7340if test -z "$INSTALL"; then
7341if test "${ac_cv_path_install+set}" = set; then
7342  echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349  # Account for people who put trailing slashes in PATH elements.
7350case $as_dir/ in
7351  ./ | .// | /cC/* | \
7352  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7353  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7354  /usr/ucb/* ) ;;
7355  *)
7356    # OSF1 and SCO ODT 3.0 have their own names for install.
7357    # Don't use installbsd from OSF since it installs stuff as root
7358    # by default.
7359    for ac_prog in ginstall scoinst install; do
7360      for ac_exec_ext in '' $ac_executable_extensions; do
7361	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7362	  if test $ac_prog = install &&
7363	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7364	    # AIX install.  It has an incompatible calling convention.
7365	    :
7366	  elif test $ac_prog = install &&
7367	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7368	    # program-specific install script used by HP pwplus--don't use.
7369	    :
7370	  else
7371	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7372	    break 3
7373	  fi
7374	fi
7375      done
7376    done
7377    ;;
7378esac
7379done
7380IFS=$as_save_IFS
7381
7382
7383fi
7384  if test "${ac_cv_path_install+set}" = set; then
7385    INSTALL=$ac_cv_path_install
7386  else
7387    # As a last resort, use the slow shell script.  Don't cache a
7388    # value for INSTALL within a source directory, because that will
7389    # break other packages using the cache if that directory is
7390    # removed, or if the value is a relative name.
7391    INSTALL=$ac_install_sh
7392  fi
7393fi
7394{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7395echo "${ECHO_T}$INSTALL" >&6; }
7396
7397# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7398# It thinks the first close brace ends the variable substitution.
7399test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7400
7401test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7402
7403test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7404
7405case "$INSTALL" in
7406 [\\/$]* | ?:[\\/]* ) ;;
7407 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7408esac
7409
7410# Extract the first word of "bzip2", so it can be a program name with args.
7411set dummy bzip2; ac_word=$2
7412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414if test "${ac_cv_path_BZIP2+set}" = set; then
7415  echo $ECHO_N "(cached) $ECHO_C" >&6
7416else
7417  case $BZIP2 in
7418  [\\/]* | ?:[\\/]*)
7419  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7420  ;;
7421  *)
7422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425  IFS=$as_save_IFS
7426  test -z "$as_dir" && as_dir=.
7427  for ac_exec_ext in '' $ac_executable_extensions; do
7428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431    break 2
7432  fi
7433done
7434done
7435IFS=$as_save_IFS
7436
7437  ;;
7438esac
7439fi
7440BZIP2=$ac_cv_path_BZIP2
7441if test -n "$BZIP2"; then
7442  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7443echo "${ECHO_T}$BZIP2" >&6; }
7444else
7445  { echo "$as_me:$LINENO: result: no" >&5
7446echo "${ECHO_T}no" >&6; }
7447fi
7448
7449
7450# Extract the first word of "cat", so it can be a program name with args.
7451set dummy cat; ac_word=$2
7452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454if test "${ac_cv_path_CAT+set}" = set; then
7455  echo $ECHO_N "(cached) $ECHO_C" >&6
7456else
7457  case $CAT in
7458  [\\/]* | ?:[\\/]*)
7459  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7460  ;;
7461  *)
7462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465  IFS=$as_save_IFS
7466  test -z "$as_dir" && as_dir=.
7467  for ac_exec_ext in '' $ac_executable_extensions; do
7468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471    break 2
7472  fi
7473done
7474done
7475IFS=$as_save_IFS
7476
7477  ;;
7478esac
7479fi
7480CAT=$ac_cv_path_CAT
7481if test -n "$CAT"; then
7482  { echo "$as_me:$LINENO: result: $CAT" >&5
7483echo "${ECHO_T}$CAT" >&6; }
7484else
7485  { echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6; }
7487fi
7488
7489
7490# Extract the first word of "doxygen", so it can be a program name with args.
7491set dummy doxygen; ac_word=$2
7492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494if test "${ac_cv_path_DOXYGEN+set}" = set; then
7495  echo $ECHO_N "(cached) $ECHO_C" >&6
7496else
7497  case $DOXYGEN in
7498  [\\/]* | ?:[\\/]*)
7499  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7500  ;;
7501  *)
7502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505  IFS=$as_save_IFS
7506  test -z "$as_dir" && as_dir=.
7507  for ac_exec_ext in '' $ac_executable_extensions; do
7508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7510    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511    break 2
7512  fi
7513done
7514done
7515IFS=$as_save_IFS
7516
7517  ;;
7518esac
7519fi
7520DOXYGEN=$ac_cv_path_DOXYGEN
7521if test -n "$DOXYGEN"; then
7522  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7523echo "${ECHO_T}$DOXYGEN" >&6; }
7524else
7525  { echo "$as_me:$LINENO: result: no" >&5
7526echo "${ECHO_T}no" >&6; }
7527fi
7528
7529
7530# Extract the first word of "groff", so it can be a program name with args.
7531set dummy groff; ac_word=$2
7532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534if test "${ac_cv_path_GROFF+set}" = set; then
7535  echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537  case $GROFF in
7538  [\\/]* | ?:[\\/]*)
7539  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7540  ;;
7541  *)
7542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545  IFS=$as_save_IFS
7546  test -z "$as_dir" && as_dir=.
7547  for ac_exec_ext in '' $ac_executable_extensions; do
7548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551    break 2
7552  fi
7553done
7554done
7555IFS=$as_save_IFS
7556
7557  ;;
7558esac
7559fi
7560GROFF=$ac_cv_path_GROFF
7561if test -n "$GROFF"; then
7562  { echo "$as_me:$LINENO: result: $GROFF" >&5
7563echo "${ECHO_T}$GROFF" >&6; }
7564else
7565  { echo "$as_me:$LINENO: result: no" >&5
7566echo "${ECHO_T}no" >&6; }
7567fi
7568
7569
7570# Extract the first word of "gzip", so it can be a program name with args.
7571set dummy gzip; ac_word=$2
7572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7574if test "${ac_cv_path_GZIPBIN+set}" = set; then
7575  echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577  case $GZIPBIN in
7578  [\\/]* | ?:[\\/]*)
7579  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7580  ;;
7581  *)
7582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583for as_dir in $PATH
7584do
7585  IFS=$as_save_IFS
7586  test -z "$as_dir" && as_dir=.
7587  for ac_exec_ext in '' $ac_executable_extensions; do
7588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7589    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591    break 2
7592  fi
7593done
7594done
7595IFS=$as_save_IFS
7596
7597  ;;
7598esac
7599fi
7600GZIPBIN=$ac_cv_path_GZIPBIN
7601if test -n "$GZIPBIN"; then
7602  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7603echo "${ECHO_T}$GZIPBIN" >&6; }
7604else
7605  { echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6; }
7607fi
7608
7609
7610# Extract the first word of "pdfroff", so it can be a program name with args.
7611set dummy pdfroff; ac_word=$2
7612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614if test "${ac_cv_path_PDFROFF+set}" = set; then
7615  echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
7617  case $PDFROFF in
7618  [\\/]* | ?:[\\/]*)
7619  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7620  ;;
7621  *)
7622  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623for as_dir in $PATH
7624do
7625  IFS=$as_save_IFS
7626  test -z "$as_dir" && as_dir=.
7627  for ac_exec_ext in '' $ac_executable_extensions; do
7628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7629    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631    break 2
7632  fi
7633done
7634done
7635IFS=$as_save_IFS
7636
7637  ;;
7638esac
7639fi
7640PDFROFF=$ac_cv_path_PDFROFF
7641if test -n "$PDFROFF"; then
7642  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7643echo "${ECHO_T}$PDFROFF" >&6; }
7644else
7645  { echo "$as_me:$LINENO: result: no" >&5
7646echo "${ECHO_T}no" >&6; }
7647fi
7648
7649
7650# Extract the first word of "zip", so it can be a program name with args.
7651set dummy zip; ac_word=$2
7652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654if test "${ac_cv_path_ZIP+set}" = set; then
7655  echo $ECHO_N "(cached) $ECHO_C" >&6
7656else
7657  case $ZIP in
7658  [\\/]* | ?:[\\/]*)
7659  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7660  ;;
7661  *)
7662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665  IFS=$as_save_IFS
7666  test -z "$as_dir" && as_dir=.
7667  for ac_exec_ext in '' $ac_executable_extensions; do
7668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7669    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671    break 2
7672  fi
7673done
7674done
7675IFS=$as_save_IFS
7676
7677  ;;
7678esac
7679fi
7680ZIP=$ac_cv_path_ZIP
7681if test -n "$ZIP"; then
7682  { echo "$as_me:$LINENO: result: $ZIP" >&5
7683echo "${ECHO_T}$ZIP" >&6; }
7684else
7685  { echo "$as_me:$LINENO: result: no" >&5
7686echo "${ECHO_T}no" >&6; }
7687fi
7688
7689
7690for ac_prog in ocamlc
7691do
7692  # Extract the first word of "$ac_prog", so it can be a program name with args.
7693set dummy $ac_prog; ac_word=$2
7694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696if test "${ac_cv_path_OCAMLC+set}" = set; then
7697  echo $ECHO_N "(cached) $ECHO_C" >&6
7698else
7699  case $OCAMLC in
7700  [\\/]* | ?:[\\/]*)
7701  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7702  ;;
7703  *)
7704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707  IFS=$as_save_IFS
7708  test -z "$as_dir" && as_dir=.
7709  for ac_exec_ext in '' $ac_executable_extensions; do
7710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7711    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713    break 2
7714  fi
7715done
7716done
7717IFS=$as_save_IFS
7718
7719  ;;
7720esac
7721fi
7722OCAMLC=$ac_cv_path_OCAMLC
7723if test -n "$OCAMLC"; then
7724  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7725echo "${ECHO_T}$OCAMLC" >&6; }
7726else
7727  { echo "$as_me:$LINENO: result: no" >&5
7728echo "${ECHO_T}no" >&6; }
7729fi
7730
7731
7732  test -n "$OCAMLC" && break
7733done
7734
7735for ac_prog in ocamlopt
7736do
7737  # Extract the first word of "$ac_prog", so it can be a program name with args.
7738set dummy $ac_prog; ac_word=$2
7739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7742  echo $ECHO_N "(cached) $ECHO_C" >&6
7743else
7744  case $OCAMLOPT in
7745  [\\/]* | ?:[\\/]*)
7746  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7747  ;;
7748  *)
7749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  test -z "$as_dir" && as_dir=.
7754  for ac_exec_ext in '' $ac_executable_extensions; do
7755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7756    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758    break 2
7759  fi
7760done
7761done
7762IFS=$as_save_IFS
7763
7764  ;;
7765esac
7766fi
7767OCAMLOPT=$ac_cv_path_OCAMLOPT
7768if test -n "$OCAMLOPT"; then
7769  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7770echo "${ECHO_T}$OCAMLOPT" >&6; }
7771else
7772  { echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6; }
7774fi
7775
7776
7777  test -n "$OCAMLOPT" && break
7778done
7779
7780for ac_prog in ocamldep
7781do
7782  # Extract the first word of "$ac_prog", so it can be a program name with args.
7783set dummy $ac_prog; ac_word=$2
7784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7787  echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789  case $OCAMLDEP in
7790  [\\/]* | ?:[\\/]*)
7791  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7792  ;;
7793  *)
7794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797  IFS=$as_save_IFS
7798  test -z "$as_dir" && as_dir=.
7799  for ac_exec_ext in '' $ac_executable_extensions; do
7800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803    break 2
7804  fi
7805done
7806done
7807IFS=$as_save_IFS
7808
7809  ;;
7810esac
7811fi
7812OCAMLDEP=$ac_cv_path_OCAMLDEP
7813if test -n "$OCAMLDEP"; then
7814  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7815echo "${ECHO_T}$OCAMLDEP" >&6; }
7816else
7817  { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
7819fi
7820
7821
7822  test -n "$OCAMLDEP" && break
7823done
7824
7825for ac_prog in ocamldoc
7826do
7827  # Extract the first word of "$ac_prog", so it can be a program name with args.
7828set dummy $ac_prog; ac_word=$2
7829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7832  echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834  case $OCAMLDOC in
7835  [\\/]* | ?:[\\/]*)
7836  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7837  ;;
7838  *)
7839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842  IFS=$as_save_IFS
7843  test -z "$as_dir" && as_dir=.
7844  for ac_exec_ext in '' $ac_executable_extensions; do
7845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848    break 2
7849  fi
7850done
7851done
7852IFS=$as_save_IFS
7853
7854  ;;
7855esac
7856fi
7857OCAMLDOC=$ac_cv_path_OCAMLDOC
7858if test -n "$OCAMLDOC"; then
7859  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7860echo "${ECHO_T}$OCAMLDOC" >&6; }
7861else
7862  { echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6; }
7864fi
7865
7866
7867  test -n "$OCAMLDOC" && break
7868done
7869
7870for ac_prog in gas as
7871do
7872  # Extract the first word of "$ac_prog", so it can be a program name with args.
7873set dummy $ac_prog; ac_word=$2
7874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7876if test "${ac_cv_path_GAS+set}" = set; then
7877  echo $ECHO_N "(cached) $ECHO_C" >&6
7878else
7879  case $GAS in
7880  [\\/]* | ?:[\\/]*)
7881  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7882  ;;
7883  *)
7884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887  IFS=$as_save_IFS
7888  test -z "$as_dir" && as_dir=.
7889  for ac_exec_ext in '' $ac_executable_extensions; do
7890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7891    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896done
7897IFS=$as_save_IFS
7898
7899  ;;
7900esac
7901fi
7902GAS=$ac_cv_path_GAS
7903if test -n "$GAS"; then
7904  { echo "$as_me:$LINENO: result: $GAS" >&5
7905echo "${ECHO_T}$GAS" >&6; }
7906else
7907  { echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6; }
7909fi
7910
7911
7912  test -n "$GAS" && break
7913done
7914
7915
7916{ echo "$as_me:$LINENO: checking for linker version" >&5
7917echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7918if test "${llvm_cv_link_version+set}" = set; then
7919  echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921
7922   version_string="$(ld -v 2>&1 | head -1)"
7923
7924   # Check for ld64.
7925   if (echo "$version_string" | grep -q "ld64"); then
7926     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7927   else
7928     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7929   fi
7930
7931fi
7932{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7933echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7934
7935cat >>confdefs.h <<_ACEOF
7936#define HOST_LINK_VERSION "$llvm_cv_link_version"
7937_ACEOF
7938
7939
7940
7941{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7942echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7943if test "${llvm_cv_link_use_r+set}" = set; then
7944  echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946   ac_ext=c
7947ac_cpp='$CPP $CPPFLAGS'
7948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951
7952  oldcflags="$CFLAGS"
7953  CFLAGS="$CFLAGS -Wl,-R."
7954  cat >conftest.$ac_ext <<_ACEOF
7955/* confdefs.h.  */
7956_ACEOF
7957cat confdefs.h >>conftest.$ac_ext
7958cat >>conftest.$ac_ext <<_ACEOF
7959/* end confdefs.h.  */
7960
7961int
7962main ()
7963{
7964
7965  ;
7966  return 0;
7967}
7968_ACEOF
7969rm -f conftest.$ac_objext conftest$ac_exeext
7970if { (ac_try="$ac_link"
7971case "(($ac_try" in
7972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973  *) ac_try_echo=$ac_try;;
7974esac
7975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976  (eval "$ac_link") 2>conftest.er1
7977  ac_status=$?
7978  grep -v '^ *+' conftest.er1 >conftest.err
7979  rm -f conftest.er1
7980  cat conftest.err >&5
7981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982  (exit $ac_status); } &&
7983	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7984  { (case "(($ac_try" in
7985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986  *) ac_try_echo=$ac_try;;
7987esac
7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989  (eval "$ac_try") 2>&5
7990  ac_status=$?
7991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992  (exit $ac_status); }; } &&
7993	 { ac_try='test -s conftest$ac_exeext'
7994  { (case "(($ac_try" in
7995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996  *) ac_try_echo=$ac_try;;
7997esac
7998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999  (eval "$ac_try") 2>&5
8000  ac_status=$?
8001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002  (exit $ac_status); }; }; then
8003  llvm_cv_link_use_r=yes
8004else
8005  echo "$as_me: failed program was:" >&5
8006sed 's/^/| /' conftest.$ac_ext >&5
8007
8008	llvm_cv_link_use_r=no
8009fi
8010
8011rm -f core conftest.err conftest.$ac_objext \
8012      conftest$ac_exeext conftest.$ac_ext
8013  CFLAGS="$oldcflags"
8014  ac_ext=c
8015ac_cpp='$CPP $CPPFLAGS'
8016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019
8020
8021fi
8022{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8023echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8024if test "$llvm_cv_link_use_r" = yes ; then
8025
8026cat >>confdefs.h <<\_ACEOF
8027#define HAVE_LINK_R 1
8028_ACEOF
8029
8030  fi
8031
8032
8033{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8034echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8035if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8036  echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038   ac_ext=c
8039ac_cpp='$CPP $CPPFLAGS'
8040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042ac_compiler_gnu=$ac_cv_c_compiler_gnu
8043
8044  oldcflags="$CFLAGS"
8045  CFLAGS="$CFLAGS -rdynamic"
8046  cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h.  */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h.  */
8052
8053int
8054main ()
8055{
8056
8057  ;
8058  return 0;
8059}
8060_ACEOF
8061rm -f conftest.$ac_objext conftest$ac_exeext
8062if { (ac_try="$ac_link"
8063case "(($ac_try" in
8064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065  *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068  (eval "$ac_link") 2>conftest.er1
8069  ac_status=$?
8070  grep -v '^ *+' conftest.er1 >conftest.err
8071  rm -f conftest.er1
8072  cat conftest.err >&5
8073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074  (exit $ac_status); } &&
8075	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8076  { (case "(($ac_try" in
8077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078  *) ac_try_echo=$ac_try;;
8079esac
8080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081  (eval "$ac_try") 2>&5
8082  ac_status=$?
8083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084  (exit $ac_status); }; } &&
8085	 { ac_try='test -s conftest$ac_exeext'
8086  { (case "(($ac_try" in
8087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088  *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091  (eval "$ac_try") 2>&5
8092  ac_status=$?
8093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094  (exit $ac_status); }; }; then
8095  llvm_cv_link_use_export_dynamic=yes
8096else
8097  echo "$as_me: failed program was:" >&5
8098sed 's/^/| /' conftest.$ac_ext >&5
8099
8100	llvm_cv_link_use_export_dynamic=no
8101fi
8102
8103rm -f core conftest.err conftest.$ac_objext \
8104      conftest$ac_exeext conftest.$ac_ext
8105  CFLAGS="$oldcflags"
8106  ac_ext=c
8107ac_cpp='$CPP $CPPFLAGS'
8108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8110ac_compiler_gnu=$ac_cv_c_compiler_gnu
8111
8112
8113fi
8114{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8115echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8116if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8117
8118cat >>confdefs.h <<\_ACEOF
8119#define HAVE_LINK_EXPORT_DYNAMIC 1
8120_ACEOF
8121
8122  fi
8123
8124
8125{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8126echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8127if test "${llvm_cv_link_use_version_script+set}" = set; then
8128  echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130   ac_ext=c
8131ac_cpp='$CPP $CPPFLAGS'
8132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136  oldcflags="$CFLAGS"
8137
8138  # The following code is from the autoconf manual,
8139  # "11.13: Limitations of Usual Tools".
8140  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8141  # Use mktemp if possible; otherwise fall back on mkdir,
8142  # with $RANDOM to make collisions less likely.
8143  : ${TMPDIR=/tmp}
8144  {
8145    tmp=`
8146      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8147    ` &&
8148    test -n "$tmp" && test -d "$tmp"
8149  } || {
8150    tmp=$TMPDIR/foo$$-$RANDOM
8151    (umask 077 && mkdir "$tmp")
8152  } || exit $?
8153
8154  echo "{" > "$tmp/export.map"
8155  echo "  global: main;" >> "$tmp/export.map"
8156  echo "  local: *;" >> "$tmp/export.map"
8157  echo "};" >> "$tmp/export.map"
8158
8159  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8160  cat >conftest.$ac_ext <<_ACEOF
8161/* confdefs.h.  */
8162_ACEOF
8163cat confdefs.h >>conftest.$ac_ext
8164cat >>conftest.$ac_ext <<_ACEOF
8165/* end confdefs.h.  */
8166
8167int
8168main ()
8169{
8170
8171  ;
8172  return 0;
8173}
8174_ACEOF
8175rm -f conftest.$ac_objext conftest$ac_exeext
8176if { (ac_try="$ac_link"
8177case "(($ac_try" in
8178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179  *) ac_try_echo=$ac_try;;
8180esac
8181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182  (eval "$ac_link") 2>conftest.er1
8183  ac_status=$?
8184  grep -v '^ *+' conftest.er1 >conftest.err
8185  rm -f conftest.er1
8186  cat conftest.err >&5
8187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188  (exit $ac_status); } &&
8189	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190  { (case "(($ac_try" in
8191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192  *) ac_try_echo=$ac_try;;
8193esac
8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195  (eval "$ac_try") 2>&5
8196  ac_status=$?
8197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198  (exit $ac_status); }; } &&
8199	 { ac_try='test -s conftest$ac_exeext'
8200  { (case "(($ac_try" in
8201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202  *) ac_try_echo=$ac_try;;
8203esac
8204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205  (eval "$ac_try") 2>&5
8206  ac_status=$?
8207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208  (exit $ac_status); }; }; then
8209  llvm_cv_link_use_version_script=yes
8210else
8211  echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
8214	llvm_cv_link_use_version_script=no
8215fi
8216
8217rm -f core conftest.err conftest.$ac_objext \
8218      conftest$ac_exeext conftest.$ac_ext
8219  rm "$tmp/export.map"
8220  rmdir "$tmp"
8221  CFLAGS="$oldcflags"
8222  ac_ext=c
8223ac_cpp='$CPP $CPPFLAGS'
8224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228
8229fi
8230{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8231echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8232if test "$llvm_cv_link_use_version_script" = yes ; then
8233  HAVE_LINK_VERSION_SCRIPT=1
8234
8235  fi
8236
8237
8238
8239
8240{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8241echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8242if test "${ac_cv_c_const+set}" = set; then
8243  echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245  cat >conftest.$ac_ext <<_ACEOF
8246/* confdefs.h.  */
8247_ACEOF
8248cat confdefs.h >>conftest.$ac_ext
8249cat >>conftest.$ac_ext <<_ACEOF
8250/* end confdefs.h.  */
8251
8252int
8253main ()
8254{
8255/* FIXME: Include the comments suggested by Paul. */
8256#ifndef __cplusplus
8257  /* Ultrix mips cc rejects this.  */
8258  typedef int charset[2];
8259  const charset x;
8260  /* SunOS 4.1.1 cc rejects this.  */
8261  char const *const *ccp;
8262  char **p;
8263  /* NEC SVR4.0.2 mips cc rejects this.  */
8264  struct point {int x, y;};
8265  static struct point const zero = {0,0};
8266  /* AIX XL C 1.02.0.0 rejects this.
8267     It does not let you subtract one const X* pointer from another in
8268     an arm of an if-expression whose if-part is not a constant
8269     expression */
8270  const char *g = "string";
8271  ccp = &g + (g ? g-g : 0);
8272  /* HPUX 7.0 cc rejects these. */
8273  ++ccp;
8274  p = (char**) ccp;
8275  ccp = (char const *const *) p;
8276  { /* SCO 3.2v4 cc rejects this.  */
8277    char *t;
8278    char const *s = 0 ? (char *) 0 : (char const *) 0;
8279
8280    *t++ = 0;
8281    if (s) return 0;
8282  }
8283  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8284    int x[] = {25, 17};
8285    const int *foo = &x[0];
8286    ++foo;
8287  }
8288  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8289    typedef const int *iptr;
8290    iptr p = 0;
8291    ++p;
8292  }
8293  { /* AIX XL C 1.02.0.0 rejects this saying
8294       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8295    struct s { int j; const int *ap[3]; };
8296    struct s *b; b->j = 5;
8297  }
8298  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8299    const int foo = 10;
8300    if (!foo) return 0;
8301  }
8302  return !x[0] && !zero.x;
8303#endif
8304
8305  ;
8306  return 0;
8307}
8308_ACEOF
8309rm -f conftest.$ac_objext
8310if { (ac_try="$ac_compile"
8311case "(($ac_try" in
8312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313  *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316  (eval "$ac_compile") 2>conftest.er1
8317  ac_status=$?
8318  grep -v '^ *+' conftest.er1 >conftest.err
8319  rm -f conftest.er1
8320  cat conftest.err >&5
8321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322  (exit $ac_status); } &&
8323	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324  { (case "(($ac_try" in
8325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326  *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329  (eval "$ac_try") 2>&5
8330  ac_status=$?
8331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332  (exit $ac_status); }; } &&
8333	 { ac_try='test -s conftest.$ac_objext'
8334  { (case "(($ac_try" in
8335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336  *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339  (eval "$ac_try") 2>&5
8340  ac_status=$?
8341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342  (exit $ac_status); }; }; then
8343  ac_cv_c_const=yes
8344else
8345  echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
8348	ac_cv_c_const=no
8349fi
8350
8351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352fi
8353{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8354echo "${ECHO_T}$ac_cv_c_const" >&6; }
8355if test $ac_cv_c_const = no; then
8356
8357cat >>confdefs.h <<\_ACEOF
8358#define const
8359_ACEOF
8360
8361fi
8362
8363
8364
8365
8366
8367
8368ac_header_dirent=no
8369for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8370  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8371{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8372echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374  echo $ECHO_N "(cached) $ECHO_C" >&6
8375else
8376  cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h.  */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h.  */
8382#include <sys/types.h>
8383#include <$ac_hdr>
8384
8385int
8386main ()
8387{
8388if ((DIR *) 0)
8389return 0;
8390  ;
8391  return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext
8395if { (ac_try="$ac_compile"
8396case "(($ac_try" in
8397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398  *) ac_try_echo=$ac_try;;
8399esac
8400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401  (eval "$ac_compile") 2>conftest.er1
8402  ac_status=$?
8403  grep -v '^ *+' conftest.er1 >conftest.err
8404  rm -f conftest.er1
8405  cat conftest.err >&5
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); } &&
8408	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409  { (case "(($ac_try" in
8410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411  *) ac_try_echo=$ac_try;;
8412esac
8413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414  (eval "$ac_try") 2>&5
8415  ac_status=$?
8416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417  (exit $ac_status); }; } &&
8418	 { ac_try='test -s conftest.$ac_objext'
8419  { (case "(($ac_try" in
8420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421  *) ac_try_echo=$ac_try;;
8422esac
8423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424  (eval "$ac_try") 2>&5
8425  ac_status=$?
8426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427  (exit $ac_status); }; }; then
8428  eval "$as_ac_Header=yes"
8429else
8430  echo "$as_me: failed program was:" >&5
8431sed 's/^/| /' conftest.$ac_ext >&5
8432
8433	eval "$as_ac_Header=no"
8434fi
8435
8436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437fi
8438ac_res=`eval echo '${'$as_ac_Header'}'`
8439	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8440echo "${ECHO_T}$ac_res" >&6; }
8441if test `eval echo '${'$as_ac_Header'}'` = yes; then
8442  cat >>confdefs.h <<_ACEOF
8443#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8444_ACEOF
8445
8446ac_header_dirent=$ac_hdr; break
8447fi
8448
8449done
8450# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8451if test $ac_header_dirent = dirent.h; then
8452  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8453echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8454if test "${ac_cv_search_opendir+set}" = set; then
8455  echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457  ac_func_search_save_LIBS=$LIBS
8458cat >conftest.$ac_ext <<_ACEOF
8459/* confdefs.h.  */
8460_ACEOF
8461cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF
8463/* end confdefs.h.  */
8464
8465/* Override any GCC internal prototype to avoid an error.
8466   Use char because int might match the return type of a GCC
8467   builtin and then its argument prototype would still apply.  */
8468#ifdef __cplusplus
8469extern "C"
8470#endif
8471char opendir ();
8472int
8473main ()
8474{
8475return opendir ();
8476  ;
8477  return 0;
8478}
8479_ACEOF
8480for ac_lib in '' dir; do
8481  if test -z "$ac_lib"; then
8482    ac_res="none required"
8483  else
8484    ac_res=-l$ac_lib
8485    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8486  fi
8487  rm -f conftest.$ac_objext conftest$ac_exeext
8488if { (ac_try="$ac_link"
8489case "(($ac_try" in
8490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491  *) ac_try_echo=$ac_try;;
8492esac
8493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494  (eval "$ac_link") 2>conftest.er1
8495  ac_status=$?
8496  grep -v '^ *+' conftest.er1 >conftest.err
8497  rm -f conftest.er1
8498  cat conftest.err >&5
8499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500  (exit $ac_status); } &&
8501	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8502  { (case "(($ac_try" in
8503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504  *) ac_try_echo=$ac_try;;
8505esac
8506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507  (eval "$ac_try") 2>&5
8508  ac_status=$?
8509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510  (exit $ac_status); }; } &&
8511	 { ac_try='test -s conftest$ac_exeext'
8512  { (case "(($ac_try" in
8513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514  *) ac_try_echo=$ac_try;;
8515esac
8516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517  (eval "$ac_try") 2>&5
8518  ac_status=$?
8519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520  (exit $ac_status); }; }; then
8521  ac_cv_search_opendir=$ac_res
8522else
8523  echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
8526
8527fi
8528
8529rm -f core conftest.err conftest.$ac_objext \
8530      conftest$ac_exeext
8531  if test "${ac_cv_search_opendir+set}" = set; then
8532  break
8533fi
8534done
8535if test "${ac_cv_search_opendir+set}" = set; then
8536  :
8537else
8538  ac_cv_search_opendir=no
8539fi
8540rm conftest.$ac_ext
8541LIBS=$ac_func_search_save_LIBS
8542fi
8543{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8544echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8545ac_res=$ac_cv_search_opendir
8546if test "$ac_res" != no; then
8547  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8548
8549fi
8550
8551else
8552  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8553echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8554if test "${ac_cv_search_opendir+set}" = set; then
8555  echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557  ac_func_search_save_LIBS=$LIBS
8558cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h.  */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h.  */
8564
8565/* Override any GCC internal prototype to avoid an error.
8566   Use char because int might match the return type of a GCC
8567   builtin and then its argument prototype would still apply.  */
8568#ifdef __cplusplus
8569extern "C"
8570#endif
8571char opendir ();
8572int
8573main ()
8574{
8575return opendir ();
8576  ;
8577  return 0;
8578}
8579_ACEOF
8580for ac_lib in '' x; do
8581  if test -z "$ac_lib"; then
8582    ac_res="none required"
8583  else
8584    ac_res=-l$ac_lib
8585    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8586  fi
8587  rm -f conftest.$ac_objext conftest$ac_exeext
8588if { (ac_try="$ac_link"
8589case "(($ac_try" in
8590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591  *) ac_try_echo=$ac_try;;
8592esac
8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594  (eval "$ac_link") 2>conftest.er1
8595  ac_status=$?
8596  grep -v '^ *+' conftest.er1 >conftest.err
8597  rm -f conftest.er1
8598  cat conftest.err >&5
8599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600  (exit $ac_status); } &&
8601	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602  { (case "(($ac_try" in
8603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604  *) ac_try_echo=$ac_try;;
8605esac
8606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607  (eval "$ac_try") 2>&5
8608  ac_status=$?
8609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); }; } &&
8611	 { ac_try='test -s conftest$ac_exeext'
8612  { (case "(($ac_try" in
8613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614  *) ac_try_echo=$ac_try;;
8615esac
8616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617  (eval "$ac_try") 2>&5
8618  ac_status=$?
8619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620  (exit $ac_status); }; }; then
8621  ac_cv_search_opendir=$ac_res
8622else
8623  echo "$as_me: failed program was:" >&5
8624sed 's/^/| /' conftest.$ac_ext >&5
8625
8626
8627fi
8628
8629rm -f core conftest.err conftest.$ac_objext \
8630      conftest$ac_exeext
8631  if test "${ac_cv_search_opendir+set}" = set; then
8632  break
8633fi
8634done
8635if test "${ac_cv_search_opendir+set}" = set; then
8636  :
8637else
8638  ac_cv_search_opendir=no
8639fi
8640rm conftest.$ac_ext
8641LIBS=$ac_func_search_save_LIBS
8642fi
8643{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8644echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8645ac_res=$ac_cv_search_opendir
8646if test "$ac_res" != no; then
8647  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8648
8649fi
8650
8651fi
8652
8653
8654for ac_header in dlfcn.h
8655do
8656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661  echo $ECHO_N "(cached) $ECHO_C" >&6
8662fi
8663ac_res=`eval echo '${'$as_ac_Header'}'`
8664	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8665echo "${ECHO_T}$ac_res" >&6; }
8666else
8667  # Is the header compilable?
8668{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8670cat >conftest.$ac_ext <<_ACEOF
8671/* confdefs.h.  */
8672_ACEOF
8673cat confdefs.h >>conftest.$ac_ext
8674cat >>conftest.$ac_ext <<_ACEOF
8675/* end confdefs.h.  */
8676$ac_includes_default
8677#include <$ac_header>
8678_ACEOF
8679rm -f conftest.$ac_objext
8680if { (ac_try="$ac_compile"
8681case "(($ac_try" in
8682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683  *) ac_try_echo=$ac_try;;
8684esac
8685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686  (eval "$ac_compile") 2>conftest.er1
8687  ac_status=$?
8688  grep -v '^ *+' conftest.er1 >conftest.err
8689  rm -f conftest.er1
8690  cat conftest.err >&5
8691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692  (exit $ac_status); } &&
8693	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694  { (case "(($ac_try" in
8695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696  *) ac_try_echo=$ac_try;;
8697esac
8698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699  (eval "$ac_try") 2>&5
8700  ac_status=$?
8701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702  (exit $ac_status); }; } &&
8703	 { ac_try='test -s conftest.$ac_objext'
8704  { (case "(($ac_try" in
8705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706  *) ac_try_echo=$ac_try;;
8707esac
8708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709  (eval "$ac_try") 2>&5
8710  ac_status=$?
8711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712  (exit $ac_status); }; }; then
8713  ac_header_compiler=yes
8714else
8715  echo "$as_me: failed program was:" >&5
8716sed 's/^/| /' conftest.$ac_ext >&5
8717
8718	ac_header_compiler=no
8719fi
8720
8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8723echo "${ECHO_T}$ac_header_compiler" >&6; }
8724
8725# Is the header present?
8726{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8728cat >conftest.$ac_ext <<_ACEOF
8729/* confdefs.h.  */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
8733/* end confdefs.h.  */
8734#include <$ac_header>
8735_ACEOF
8736if { (ac_try="$ac_cpp conftest.$ac_ext"
8737case "(($ac_try" in
8738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739  *) ac_try_echo=$ac_try;;
8740esac
8741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8743  ac_status=$?
8744  grep -v '^ *+' conftest.er1 >conftest.err
8745  rm -f conftest.er1
8746  cat conftest.err >&5
8747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748  (exit $ac_status); } >/dev/null; then
8749  if test -s conftest.err; then
8750    ac_cpp_err=$ac_c_preproc_warn_flag
8751    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8752  else
8753    ac_cpp_err=
8754  fi
8755else
8756  ac_cpp_err=yes
8757fi
8758if test -z "$ac_cpp_err"; then
8759  ac_header_preproc=yes
8760else
8761  echo "$as_me: failed program was:" >&5
8762sed 's/^/| /' conftest.$ac_ext >&5
8763
8764  ac_header_preproc=no
8765fi
8766
8767rm -f conftest.err conftest.$ac_ext
8768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8769echo "${ECHO_T}$ac_header_preproc" >&6; }
8770
8771# So?  What about this header?
8772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8773  yes:no: )
8774    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8776    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8777echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8778    ac_header_preproc=yes
8779    ;;
8780  no:yes:* )
8781    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8783    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8784echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8785    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8786echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8787    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8788echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8789    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8790echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8791    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8792echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8793    ( cat <<\_ASBOX
8794## ------------------------------------ ##
8795## Report this to http://llvm.org/bugs/ ##
8796## ------------------------------------ ##
8797_ASBOX
8798     ) | sed "s/^/$as_me: WARNING:     /" >&2
8799    ;;
8800esac
8801{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8804  echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806  eval "$as_ac_Header=\$ac_header_preproc"
8807fi
8808ac_res=`eval echo '${'$as_ac_Header'}'`
8809	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8810echo "${ECHO_T}$ac_res" >&6; }
8811
8812fi
8813if test `eval echo '${'$as_ac_Header'}'` = yes; then
8814  cat >>confdefs.h <<_ACEOF
8815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8816_ACEOF
8817
8818fi
8819
8820done
8821
8822# Check whether --enable-ltdl-install was given.
8823if test "${enable_ltdl_install+set}" = set; then
8824  enableval=$enable_ltdl_install;
8825fi
8826
8827
8828
8829
8830if test x"${enable_ltdl_install-no}" != xno; then
8831  INSTALL_LTDL_TRUE=
8832  INSTALL_LTDL_FALSE='#'
8833else
8834  INSTALL_LTDL_TRUE='#'
8835  INSTALL_LTDL_FALSE=
8836fi
8837
8838
8839
8840if test x"${enable_ltdl_convenience-no}" != xno; then
8841  CONVENIENCE_LTDL_TRUE=
8842  CONVENIENCE_LTDL_FALSE='#'
8843else
8844  CONVENIENCE_LTDL_TRUE='#'
8845  CONVENIENCE_LTDL_FALSE=
8846fi
8847
8848
8849{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8850echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8851library_names_spec=
8852libname_spec='lib$name'
8853soname_spec=
8854shrext_cmds=".so"
8855postinstall_cmds=
8856postuninstall_cmds=
8857finish_cmds=
8858finish_eval=
8859shlibpath_var=
8860shlibpath_overrides_runpath=unknown
8861version_type=none
8862dynamic_linker="$host_os ld.so"
8863sys_lib_dlsearch_path_spec="/lib /usr/lib"
8864if test "$GCC" = yes; then
8865  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8866  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8867    # if the path contains ";" then we assume it to be the separator
8868    # otherwise default to the standard path separator (i.e. ":") - it is
8869    # assumed that no part of a normal pathname contains ";" but that should
8870    # okay in the real world where ";" in dirpaths is itself problematic.
8871    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8872  else
8873    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8874  fi
8875else
8876  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8877fi
8878need_lib_prefix=unknown
8879hardcode_into_libs=no
8880
8881# when you set need_version to no, make sure it does not cause -set_version
8882# flags to be left without arguments
8883need_version=unknown
8884
8885case $host_os in
8886aix3*)
8887  version_type=linux
8888  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8889  shlibpath_var=LIBPATH
8890
8891  # AIX 3 has no versioning support, so we append a major version to the name.
8892  soname_spec='${libname}${release}${shared_ext}$major'
8893  ;;
8894
8895aix4* | aix5*)
8896  version_type=linux
8897  need_lib_prefix=no
8898  need_version=no
8899  hardcode_into_libs=yes
8900  if test "$host_cpu" = ia64; then
8901    # AIX 5 supports IA64
8902    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8903    shlibpath_var=LD_LIBRARY_PATH
8904  else
8905    # With GCC up to 2.95.x, collect2 would create an import file
8906    # for dependence libraries.  The import file would start with
8907    # the line `#! .'.  This would cause the generated library to
8908    # depend on `.', always an invalid library.  This was fixed in
8909    # development snapshots of GCC prior to 3.0.
8910    case $host_os in
8911      aix4 | aix4.[01] | aix4.[01].*)
8912      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8913	   echo ' yes '
8914	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8915	:
8916      else
8917	can_build_shared=no
8918      fi
8919      ;;
8920    esac
8921    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8922    # soname into executable. Probably we can add versioning support to
8923    # collect2, so additional links can be useful in future.
8924    if test "$aix_use_runtimelinking" = yes; then
8925      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8926      # instead of lib<name>.a to let people know that these are not
8927      # typical AIX shared libraries.
8928      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8929    else
8930      # We preserve .a as extension for shared libraries through AIX4.2
8931      # and later when we are not doing run time linking.
8932      library_names_spec='${libname}${release}.a $libname.a'
8933      soname_spec='${libname}${release}${shared_ext}$major'
8934    fi
8935    shlibpath_var=LIBPATH
8936  fi
8937  ;;
8938
8939amigaos*)
8940  library_names_spec='$libname.ixlibrary $libname.a'
8941  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8942  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8943  ;;
8944
8945beos*)
8946  library_names_spec='${libname}${shared_ext}'
8947  dynamic_linker="$host_os ld.so"
8948  shlibpath_var=LIBRARY_PATH
8949  ;;
8950
8951bsdi[45]*)
8952  version_type=linux
8953  need_version=no
8954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955  soname_spec='${libname}${release}${shared_ext}$major'
8956  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8957  shlibpath_var=LD_LIBRARY_PATH
8958  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8959  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8960  # the default ld.so.conf also contains /usr/contrib/lib and
8961  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8962  # libtool to hard-code these into programs
8963  ;;
8964
8965cygwin* | mingw* | pw32*)
8966  version_type=windows
8967  shrext_cmds=".dll"
8968  need_version=no
8969  need_lib_prefix=no
8970
8971  case $GCC,$host_os in
8972  yes,cygwin* | yes,mingw* | yes,pw32*)
8973    library_names_spec='$libname.dll.a'
8974    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8975    postinstall_cmds='base_file=`basename \${file}`~
8976      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8977      dldir=$destdir/`dirname \$dlpath`~
8978      test -d \$dldir || mkdir -p \$dldir~
8979      $install_prog $dir/$dlname \$dldir/$dlname~
8980      chmod a+x \$dldir/$dlname'
8981    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8982      dlpath=$dir/\$dldll~
8983       $rm \$dlpath'
8984    shlibpath_overrides_runpath=yes
8985
8986    case $host_os in
8987    cygwin*)
8988      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8989      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8991      ;;
8992    mingw*)
8993      # MinGW DLLs use traditional 'lib' prefix
8994      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8996      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8997        # It is most probably a Windows format PATH printed by
8998        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8999        # path with ; separators, and with drive letters. We can handle the
9000        # drive letters (cygwin fileutils understands them), so leave them,
9001        # especially as we might pass files found there to a mingw objdump,
9002        # which wouldn't understand a cygwinified path. Ahh.
9003        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9004      else
9005        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9006      fi
9007      ;;
9008    pw32*)
9009      # pw32 DLLs use 'pw' prefix rather than 'lib'
9010      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9011      ;;
9012    esac
9013    ;;
9014
9015  *)
9016    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9017    ;;
9018  esac
9019  dynamic_linker='Win32 ld.exe'
9020  # FIXME: first we should search . and the directory the executable is in
9021  shlibpath_var=PATH
9022  ;;
9023
9024darwin* | rhapsody*)
9025  dynamic_linker="$host_os dyld"
9026  version_type=darwin
9027  need_lib_prefix=no
9028  need_version=no
9029  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9030  soname_spec='${libname}${release}${major}$shared_ext'
9031  shlibpath_overrides_runpath=yes
9032  shlibpath_var=DYLD_LIBRARY_PATH
9033  shrext_cmds='.dylib'
9034  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9035  if test "$GCC" = yes; then
9036    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9037  else
9038    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9039  fi
9040  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9041  ;;
9042
9043dgux*)
9044  version_type=linux
9045  need_lib_prefix=no
9046  need_version=no
9047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9048  soname_spec='${libname}${release}${shared_ext}$major'
9049  shlibpath_var=LD_LIBRARY_PATH
9050  ;;
9051
9052freebsd1.*)
9053  dynamic_linker=no
9054  ;;
9055
9056kfreebsd*-gnu)
9057  version_type=linux
9058  need_lib_prefix=no
9059  need_version=no
9060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9061  soname_spec='${libname}${release}${shared_ext}$major'
9062  shlibpath_var=LD_LIBRARY_PATH
9063  shlibpath_overrides_runpath=no
9064  hardcode_into_libs=yes
9065  dynamic_linker='GNU ld.so'
9066  ;;
9067
9068freebsd* | dragonfly*)
9069  # DragonFly does not have aout.  When/if they implement a new
9070  # versioning mechanism, adjust this.
9071  if test -x /usr/bin/objformat; then
9072    objformat=`/usr/bin/objformat`
9073  else
9074    case $host_os in
9075    freebsd[123].*) objformat=aout ;;
9076    *) objformat=elf ;;
9077    esac
9078  fi
9079  version_type=freebsd-$objformat
9080  case $version_type in
9081    freebsd-elf*)
9082      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9083      need_version=no
9084      need_lib_prefix=no
9085      ;;
9086    freebsd-*)
9087      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9088      need_version=yes
9089      ;;
9090  esac
9091  shlibpath_var=LD_LIBRARY_PATH
9092  case $host_os in
9093  freebsd2.*)
9094    shlibpath_overrides_runpath=yes
9095    ;;
9096  freebsd3.[01]* | freebsdelf3.[01]*)
9097    shlibpath_overrides_runpath=yes
9098    hardcode_into_libs=yes
9099    ;;
9100  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9101  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9102    shlibpath_overrides_runpath=no
9103    hardcode_into_libs=yes
9104    ;;
9105  freebsd*) # from 4.6 on
9106    shlibpath_overrides_runpath=yes
9107    hardcode_into_libs=yes
9108    ;;
9109  esac
9110  ;;
9111
9112gnu*)
9113  version_type=linux
9114  need_lib_prefix=no
9115  need_version=no
9116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9117  soname_spec='${libname}${release}${shared_ext}$major'
9118  shlibpath_var=LD_LIBRARY_PATH
9119  hardcode_into_libs=yes
9120  ;;
9121
9122hpux9* | hpux10* | hpux11*)
9123  # Give a soname corresponding to the major version so that dld.sl refuses to
9124  # link against other versions.
9125  version_type=sunos
9126  need_lib_prefix=no
9127  need_version=no
9128  case $host_cpu in
9129  ia64*)
9130    shrext_cmds='.so'
9131    hardcode_into_libs=yes
9132    dynamic_linker="$host_os dld.so"
9133    shlibpath_var=LD_LIBRARY_PATH
9134    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9135    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136    soname_spec='${libname}${release}${shared_ext}$major'
9137    if test "X$HPUX_IA64_MODE" = X32; then
9138      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9139    else
9140      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9141    fi
9142    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9143    ;;
9144   hppa*64*)
9145     shrext_cmds='.sl'
9146     hardcode_into_libs=yes
9147     dynamic_linker="$host_os dld.sl"
9148     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9149     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151     soname_spec='${libname}${release}${shared_ext}$major'
9152     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9153     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9154     ;;
9155   *)
9156    shrext_cmds='.sl'
9157    dynamic_linker="$host_os dld.sl"
9158    shlibpath_var=SHLIB_PATH
9159    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161    soname_spec='${libname}${release}${shared_ext}$major'
9162    ;;
9163  esac
9164  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9165  postinstall_cmds='chmod 555 $lib'
9166  ;;
9167
9168interix3*)
9169  version_type=linux
9170  need_lib_prefix=no
9171  need_version=no
9172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9173  soname_spec='${libname}${release}${shared_ext}$major'
9174  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9175  shlibpath_var=LD_LIBRARY_PATH
9176  shlibpath_overrides_runpath=no
9177  hardcode_into_libs=yes
9178  ;;
9179
9180irix5* | irix6* | nonstopux*)
9181  case $host_os in
9182    nonstopux*) version_type=nonstopux ;;
9183    *)
9184	if test "$lt_cv_prog_gnu_ld" = yes; then
9185		version_type=linux
9186	else
9187		version_type=irix
9188	fi ;;
9189  esac
9190  need_lib_prefix=no
9191  need_version=no
9192  soname_spec='${libname}${release}${shared_ext}$major'
9193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9194  case $host_os in
9195  irix5* | nonstopux*)
9196    libsuff= shlibsuff=
9197    ;;
9198  *)
9199    case $LD in # libtool.m4 will add one of these switches to LD
9200    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9201      libsuff= shlibsuff= libmagic=32-bit;;
9202    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9203      libsuff=32 shlibsuff=N32 libmagic=N32;;
9204    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9205      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9206    *) libsuff= shlibsuff= libmagic=never-match;;
9207    esac
9208    ;;
9209  esac
9210  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9211  shlibpath_overrides_runpath=no
9212  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9213  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9214  hardcode_into_libs=yes
9215  ;;
9216
9217# No shared lib support for Linux oldld, aout, or coff.
9218linux*oldld* | linux*aout* | linux*coff*)
9219  dynamic_linker=no
9220  ;;
9221
9222# This must be Linux ELF.
9223linux*)
9224  version_type=linux
9225  need_lib_prefix=no
9226  need_version=no
9227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228  soname_spec='${libname}${release}${shared_ext}$major'
9229  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9230  shlibpath_var=LD_LIBRARY_PATH
9231  shlibpath_overrides_runpath=no
9232  # This implies no fast_install, which is unacceptable.
9233  # Some rework will be needed to allow for fast_install
9234  # before this can be enabled.
9235  hardcode_into_libs=yes
9236
9237  # Append ld.so.conf contents to the search path
9238  if test -f /etc/ld.so.conf; then
9239    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9240    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9241  fi
9242
9243  # We used to test for /lib/ld.so.1 and disable shared libraries on
9244  # powerpc, because MkLinux only supported shared libraries with the
9245  # GNU dynamic linker.  Since this was broken with cross compilers,
9246  # most powerpc-linux boxes support dynamic linking these days and
9247  # people can always --disable-shared, the test was removed, and we
9248  # assume the GNU/Linux dynamic linker is in use.
9249  dynamic_linker='GNU/Linux ld.so'
9250  ;;
9251
9252knetbsd*-gnu)
9253  version_type=linux
9254  need_lib_prefix=no
9255  need_version=no
9256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9257  soname_spec='${libname}${release}${shared_ext}$major'
9258  shlibpath_var=LD_LIBRARY_PATH
9259  shlibpath_overrides_runpath=no
9260  hardcode_into_libs=yes
9261  dynamic_linker='GNU ld.so'
9262  ;;
9263
9264netbsd*)
9265  version_type=sunos
9266  need_lib_prefix=no
9267  need_version=no
9268  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9270    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9271    dynamic_linker='NetBSD (a.out) ld.so'
9272  else
9273    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9274    soname_spec='${libname}${release}${shared_ext}$major'
9275    dynamic_linker='NetBSD ld.elf_so'
9276  fi
9277  shlibpath_var=LD_LIBRARY_PATH
9278  shlibpath_overrides_runpath=yes
9279  hardcode_into_libs=yes
9280  ;;
9281
9282newsos6)
9283  version_type=linux
9284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285  shlibpath_var=LD_LIBRARY_PATH
9286  shlibpath_overrides_runpath=yes
9287  ;;
9288
9289nto-qnx*)
9290  version_type=linux
9291  need_lib_prefix=no
9292  need_version=no
9293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294  soname_spec='${libname}${release}${shared_ext}$major'
9295  shlibpath_var=LD_LIBRARY_PATH
9296  shlibpath_overrides_runpath=yes
9297  ;;
9298
9299openbsd* | bitrig*)
9300  version_type=sunos
9301  sys_lib_dlsearch_path_spec="/usr/lib"
9302  need_lib_prefix=no
9303  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9304  case $host_os in
9305    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9306    *)                         need_version=no  ;;
9307  esac
9308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9309  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9310  shlibpath_var=LD_LIBRARY_PATH
9311  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9312    case $host_os in
9313      openbsd2.[89] | openbsd2.[89].*)
9314	shlibpath_overrides_runpath=no
9315	;;
9316      *)
9317	shlibpath_overrides_runpath=yes
9318	;;
9319      esac
9320  else
9321    shlibpath_overrides_runpath=yes
9322  fi
9323  ;;
9324
9325os2*)
9326  libname_spec='$name'
9327  shrext_cmds=".dll"
9328  need_lib_prefix=no
9329  library_names_spec='$libname${shared_ext} $libname.a'
9330  dynamic_linker='OS/2 ld.exe'
9331  shlibpath_var=LIBPATH
9332  ;;
9333
9334osf3* | osf4* | osf5*)
9335  version_type=osf
9336  need_lib_prefix=no
9337  need_version=no
9338  soname_spec='${libname}${release}${shared_ext}$major'
9339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340  shlibpath_var=LD_LIBRARY_PATH
9341  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9342  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9343  ;;
9344
9345solaris*)
9346  version_type=linux
9347  need_lib_prefix=no
9348  need_version=no
9349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350  soname_spec='${libname}${release}${shared_ext}$major'
9351  shlibpath_var=LD_LIBRARY_PATH
9352  shlibpath_overrides_runpath=yes
9353  hardcode_into_libs=yes
9354  # ldd complains unless libraries are executable
9355  postinstall_cmds='chmod +x $lib'
9356  ;;
9357
9358sunos4*)
9359  version_type=sunos
9360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9361  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9362  shlibpath_var=LD_LIBRARY_PATH
9363  shlibpath_overrides_runpath=yes
9364  if test "$with_gnu_ld" = yes; then
9365    need_lib_prefix=no
9366  fi
9367  need_version=yes
9368  ;;
9369
9370sysv4 | sysv4.3*)
9371  version_type=linux
9372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373  soname_spec='${libname}${release}${shared_ext}$major'
9374  shlibpath_var=LD_LIBRARY_PATH
9375  case $host_vendor in
9376    sni)
9377      shlibpath_overrides_runpath=no
9378      need_lib_prefix=no
9379      export_dynamic_flag_spec='${wl}-Blargedynsym'
9380      runpath_var=LD_RUN_PATH
9381      ;;
9382    siemens)
9383      need_lib_prefix=no
9384      ;;
9385    motorola)
9386      need_lib_prefix=no
9387      need_version=no
9388      shlibpath_overrides_runpath=no
9389      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9390      ;;
9391  esac
9392  ;;
9393
9394sysv4*MP*)
9395  if test -d /usr/nec ;then
9396    version_type=linux
9397    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9398    soname_spec='$libname${shared_ext}.$major'
9399    shlibpath_var=LD_LIBRARY_PATH
9400  fi
9401  ;;
9402
9403sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9404  version_type=freebsd-elf
9405  need_lib_prefix=no
9406  need_version=no
9407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9408  soname_spec='${libname}${release}${shared_ext}$major'
9409  shlibpath_var=LD_LIBRARY_PATH
9410  hardcode_into_libs=yes
9411  if test "$with_gnu_ld" = yes; then
9412    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9413    shlibpath_overrides_runpath=no
9414  else
9415    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9416    shlibpath_overrides_runpath=yes
9417    case $host_os in
9418      sco3.2v5*)
9419        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9420	;;
9421    esac
9422  fi
9423  sys_lib_dlsearch_path_spec='/usr/lib'
9424  ;;
9425
9426uts4*)
9427  version_type=linux
9428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429  soname_spec='${libname}${release}${shared_ext}$major'
9430  shlibpath_var=LD_LIBRARY_PATH
9431  ;;
9432
9433*)
9434  dynamic_linker=no
9435  ;;
9436esac
9437{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9438echo "${ECHO_T}$dynamic_linker" >&6; }
9439test "$dynamic_linker" = no && can_build_shared=no
9440
9441variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9442if test "$GCC" = yes; then
9443  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9444fi
9445
9446
9447{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9448echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9449if test "${libltdl_cv_shlibext+set}" = set; then
9450  echo $ECHO_N "(cached) $ECHO_C" >&6
9451else
9452
9453module=yes
9454eval libltdl_cv_shlibext=$shrext_cmds
9455
9456fi
9457{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9458echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9459if test -n "$libltdl_cv_shlibext"; then
9460
9461cat >>confdefs.h <<_ACEOF
9462#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9463_ACEOF
9464
9465fi
9466
9467
9468{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9469echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9470if test "${libltdl_cv_sys_search_path+set}" = set; then
9471  echo $ECHO_N "(cached) $ECHO_C" >&6
9472else
9473  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9474fi
9475{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9476echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9477if test -n "$libltdl_cv_sys_search_path"; then
9478  sys_search_path=
9479  for dir in $libltdl_cv_sys_search_path; do
9480    if test -z "$sys_search_path"; then
9481      sys_search_path="$dir"
9482    else
9483      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9484    fi
9485  done
9486
9487cat >>confdefs.h <<_ACEOF
9488#define LTDL_SYSSEARCHPATH "$sys_search_path"
9489_ACEOF
9490
9491fi
9492
9493{ echo "$as_me:$LINENO: checking for objdir" >&5
9494echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9495if test "${libltdl_cv_objdir+set}" = set; then
9496  echo $ECHO_N "(cached) $ECHO_C" >&6
9497else
9498  libltdl_cv_objdir="$objdir"
9499  if test -n "$objdir"; then
9500    :
9501  else
9502    rm -f .libs 2>/dev/null
9503    mkdir .libs 2>/dev/null
9504    if test -d .libs; then
9505      libltdl_cv_objdir=.libs
9506    else
9507      # MS-DOS does not allow filenames that begin with a dot.
9508      libltdl_cv_objdir=_libs
9509    fi
9510  rmdir .libs 2>/dev/null
9511  fi
9512
9513fi
9514{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9515echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9516
9517cat >>confdefs.h <<_ACEOF
9518#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9519_ACEOF
9520
9521
9522
9523
9524
9525
9526# Check for command to grab the raw symbol name followed by C symbol from nm.
9527{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9528echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9529if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9530  echo $ECHO_N "(cached) $ECHO_C" >&6
9531else
9532
9533# These are sane defaults that work on at least a few old systems.
9534# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9535
9536# Character class describing NM global symbol codes.
9537symcode='[BCDEGRST]'
9538
9539# Regexp to match symbols that can be accessed directly from C.
9540sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9541
9542# Transform an extracted symbol line into a proper C declaration
9543lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9544
9545# Transform an extracted symbol line into symbol name and symbol address
9546lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9547
9548# Define system-specific variables.
9549case $host_os in
9550aix*)
9551  symcode='[BCDT]'
9552  ;;
9553cygwin* | mingw* | pw32*)
9554  symcode='[ABCDGISTW]'
9555  ;;
9556hpux*) # Its linker distinguishes data from code symbols
9557  if test "$host_cpu" = ia64; then
9558    symcode='[ABCDEGRST]'
9559  fi
9560  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9561  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9562  ;;
9563linux*)
9564  if test "$host_cpu" = ia64; then
9565    symcode='[ABCDGIRSTW]'
9566    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9567    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9568  fi
9569  ;;
9570irix* | nonstopux*)
9571  symcode='[BCDEGRST]'
9572  ;;
9573osf*)
9574  symcode='[BCDEGQRST]'
9575  ;;
9576solaris*)
9577  symcode='[BDRT]'
9578  ;;
9579sco3.2v5*)
9580  symcode='[DT]'
9581  ;;
9582sysv4.2uw2*)
9583  symcode='[DT]'
9584  ;;
9585sysv5* | sco5v6* | unixware* | OpenUNIX*)
9586  symcode='[ABDT]'
9587  ;;
9588sysv4)
9589  symcode='[DFNSTU]'
9590  ;;
9591esac
9592
9593# Handle CRLF in mingw tool chain
9594opt_cr=
9595case $build_os in
9596mingw*)
9597  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9598  ;;
9599esac
9600
9601# If we're using GNU nm, then use its standard symbol codes.
9602case `$NM -V 2>&1` in
9603*GNU* | *'with BFD'*)
9604  symcode='[ABCDGIRSTW]' ;;
9605esac
9606
9607# Try without a prefix undercore, then with it.
9608for ac_symprfx in "" "_"; do
9609
9610  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9611  symxfrm="\\1 $ac_symprfx\\2 \\2"
9612
9613  # Write the raw and C identifiers.
9614  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9615
9616  # Check to see that the pipe works correctly.
9617  pipe_works=no
9618
9619  rm -f conftest*
9620  cat > conftest.$ac_ext <<EOF
9621#ifdef __cplusplus
9622extern "C" {
9623#endif
9624char nm_test_var;
9625void nm_test_func(){}
9626#ifdef __cplusplus
9627}
9628#endif
9629int main(){nm_test_var='a';nm_test_func();return(0);}
9630EOF
9631
9632  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9633  (eval $ac_compile) 2>&5
9634  ac_status=$?
9635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636  (exit $ac_status); }; then
9637    # Now try to grab the symbols.
9638    nlist=conftest.nm
9639    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9640  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9641  ac_status=$?
9642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643  (exit $ac_status); } && test -s "$nlist"; then
9644      # Try sorting and uniquifying the output.
9645      if sort "$nlist" | uniq > "$nlist"T; then
9646	mv -f "$nlist"T "$nlist"
9647      else
9648	rm -f "$nlist"T
9649      fi
9650
9651      # Make sure that we snagged all the symbols we need.
9652      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9653	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9654	  cat <<EOF > conftest.$ac_ext
9655#ifdef __cplusplus
9656extern "C" {
9657#endif
9658
9659EOF
9660	  # Now generate the symbol file.
9661	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9662
9663	  cat <<EOF >> conftest.$ac_ext
9664#if defined (__STDC__) && __STDC__
9665# define lt_ptr_t void *
9666#else
9667# define lt_ptr_t char *
9668# define const
9669#endif
9670
9671/* The mapping between symbol names and symbols. */
9672const struct {
9673  const char *name;
9674  lt_ptr_t address;
9675}
9676lt_preloaded_symbols[] =
9677{
9678EOF
9679	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9680	  cat <<\EOF >> conftest.$ac_ext
9681  {0, (lt_ptr_t) 0}
9682};
9683
9684#ifdef __cplusplus
9685}
9686#endif
9687EOF
9688	  # Now try linking the two files.
9689	  mv conftest.$ac_objext conftstm.$ac_objext
9690	  lt_save_LIBS="$LIBS"
9691	  lt_save_CFLAGS="$CFLAGS"
9692	  LIBS="conftstm.$ac_objext"
9693	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9694	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695  (eval $ac_link) 2>&5
9696  ac_status=$?
9697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9699	    pipe_works=yes
9700	  fi
9701	  LIBS="$lt_save_LIBS"
9702	  CFLAGS="$lt_save_CFLAGS"
9703	else
9704	  echo "cannot find nm_test_func in $nlist" >&5
9705	fi
9706      else
9707	echo "cannot find nm_test_var in $nlist" >&5
9708      fi
9709    else
9710      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9711    fi
9712  else
9713    echo "$progname: failed program was:" >&5
9714    cat conftest.$ac_ext >&5
9715  fi
9716  rm -f conftest* conftst*
9717
9718  # Do not use the global_symbol_pipe unless it works.
9719  if test "$pipe_works" = yes; then
9720    break
9721  else
9722    lt_cv_sys_global_symbol_pipe=
9723  fi
9724done
9725
9726fi
9727
9728if test -z "$lt_cv_sys_global_symbol_pipe"; then
9729  lt_cv_sys_global_symbol_to_cdecl=
9730fi
9731if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9732  { echo "$as_me:$LINENO: result: failed" >&5
9733echo "${ECHO_T}failed" >&6; }
9734else
9735  { echo "$as_me:$LINENO: result: ok" >&5
9736echo "${ECHO_T}ok" >&6; }
9737fi
9738
9739
9740{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9741echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9742if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9743  echo $ECHO_N "(cached) $ECHO_C" >&6
9744else
9745  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9746    libltdl_cv_preloaded_symbols=yes
9747  else
9748    libltdl_cv_preloaded_symbols=no
9749  fi
9750
9751fi
9752{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9753echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9754if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9755
9756cat >>confdefs.h <<\_ACEOF
9757#define HAVE_PRELOADED_SYMBOLS 1
9758_ACEOF
9759
9760fi
9761
9762LIBADD_DL=
9763
9764ac_ext=c
9765ac_cpp='$CPP $CPPFLAGS'
9766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9768ac_compiler_gnu=$ac_cv_c_compiler_gnu
9769
9770
9771{ echo "$as_me:$LINENO: checking for shl_load" >&5
9772echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9773if test "${ac_cv_func_shl_load+set}" = set; then
9774  echo $ECHO_N "(cached) $ECHO_C" >&6
9775else
9776  cat >conftest.$ac_ext <<_ACEOF
9777/* confdefs.h.  */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h.  */
9782/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9783   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9784#define shl_load innocuous_shl_load
9785
9786/* System header to define __stub macros and hopefully few prototypes,
9787    which can conflict with char shl_load (); below.
9788    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789    <limits.h> exists even on freestanding compilers.  */
9790
9791#ifdef __STDC__
9792# include <limits.h>
9793#else
9794# include <assert.h>
9795#endif
9796
9797#undef shl_load
9798
9799/* Override any GCC internal prototype to avoid an error.
9800   Use char because int might match the return type of a GCC
9801   builtin and then its argument prototype would still apply.  */
9802#ifdef __cplusplus
9803extern "C"
9804#endif
9805char shl_load ();
9806/* The GNU C library defines this for functions which it implements
9807    to always fail with ENOSYS.  Some functions are actually named
9808    something starting with __ and the normal name is an alias.  */
9809#if defined __stub_shl_load || defined __stub___shl_load
9810choke me
9811#endif
9812
9813int
9814main ()
9815{
9816return shl_load ();
9817  ;
9818  return 0;
9819}
9820_ACEOF
9821rm -f conftest.$ac_objext conftest$ac_exeext
9822if { (ac_try="$ac_link"
9823case "(($ac_try" in
9824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825  *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828  (eval "$ac_link") 2>conftest.er1
9829  ac_status=$?
9830  grep -v '^ *+' conftest.er1 >conftest.err
9831  rm -f conftest.er1
9832  cat conftest.err >&5
9833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834  (exit $ac_status); } &&
9835	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836  { (case "(($ac_try" in
9837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838  *) ac_try_echo=$ac_try;;
9839esac
9840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841  (eval "$ac_try") 2>&5
9842  ac_status=$?
9843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844  (exit $ac_status); }; } &&
9845	 { ac_try='test -s conftest$ac_exeext'
9846  { (case "(($ac_try" in
9847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848  *) ac_try_echo=$ac_try;;
9849esac
9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851  (eval "$ac_try") 2>&5
9852  ac_status=$?
9853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854  (exit $ac_status); }; }; then
9855  ac_cv_func_shl_load=yes
9856else
9857  echo "$as_me: failed program was:" >&5
9858sed 's/^/| /' conftest.$ac_ext >&5
9859
9860	ac_cv_func_shl_load=no
9861fi
9862
9863rm -f core conftest.err conftest.$ac_objext \
9864      conftest$ac_exeext conftest.$ac_ext
9865fi
9866{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9867echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9868if test $ac_cv_func_shl_load = yes; then
9869
9870cat >>confdefs.h <<\_ACEOF
9871#define HAVE_SHL_LOAD 1
9872_ACEOF
9873
9874else
9875  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9876echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9877if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9878  echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880  ac_check_lib_save_LIBS=$LIBS
9881LIBS="-ldld  $LIBS"
9882cat >conftest.$ac_ext <<_ACEOF
9883/* confdefs.h.  */
9884_ACEOF
9885cat confdefs.h >>conftest.$ac_ext
9886cat >>conftest.$ac_ext <<_ACEOF
9887/* end confdefs.h.  */
9888
9889/* Override any GCC internal prototype to avoid an error.
9890   Use char because int might match the return type of a GCC
9891   builtin and then its argument prototype would still apply.  */
9892#ifdef __cplusplus
9893extern "C"
9894#endif
9895char shl_load ();
9896int
9897main ()
9898{
9899return shl_load ();
9900  ;
9901  return 0;
9902}
9903_ACEOF
9904rm -f conftest.$ac_objext conftest$ac_exeext
9905if { (ac_try="$ac_link"
9906case "(($ac_try" in
9907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908  *) ac_try_echo=$ac_try;;
9909esac
9910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911  (eval "$ac_link") 2>conftest.er1
9912  ac_status=$?
9913  grep -v '^ *+' conftest.er1 >conftest.err
9914  rm -f conftest.er1
9915  cat conftest.err >&5
9916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917  (exit $ac_status); } &&
9918	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9919  { (case "(($ac_try" in
9920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921  *) ac_try_echo=$ac_try;;
9922esac
9923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924  (eval "$ac_try") 2>&5
9925  ac_status=$?
9926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927  (exit $ac_status); }; } &&
9928	 { ac_try='test -s conftest$ac_exeext'
9929  { (case "(($ac_try" in
9930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931  *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934  (eval "$ac_try") 2>&5
9935  ac_status=$?
9936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937  (exit $ac_status); }; }; then
9938  ac_cv_lib_dld_shl_load=yes
9939else
9940  echo "$as_me: failed program was:" >&5
9941sed 's/^/| /' conftest.$ac_ext >&5
9942
9943	ac_cv_lib_dld_shl_load=no
9944fi
9945
9946rm -f core conftest.err conftest.$ac_objext \
9947      conftest$ac_exeext conftest.$ac_ext
9948LIBS=$ac_check_lib_save_LIBS
9949fi
9950{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9951echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9952if test $ac_cv_lib_dld_shl_load = yes; then
9953
9954cat >>confdefs.h <<\_ACEOF
9955#define HAVE_SHL_LOAD 1
9956_ACEOF
9957
9958	LIBADD_DL="$LIBADD_DL -ldld"
9959else
9960  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9961echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9962if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9963  echo $ECHO_N "(cached) $ECHO_C" >&6
9964else
9965  ac_check_lib_save_LIBS=$LIBS
9966LIBS="-ldl  $LIBS"
9967cat >conftest.$ac_ext <<_ACEOF
9968/* confdefs.h.  */
9969_ACEOF
9970cat confdefs.h >>conftest.$ac_ext
9971cat >>conftest.$ac_ext <<_ACEOF
9972/* end confdefs.h.  */
9973
9974/* Override any GCC internal prototype to avoid an error.
9975   Use char because int might match the return type of a GCC
9976   builtin and then its argument prototype would still apply.  */
9977#ifdef __cplusplus
9978extern "C"
9979#endif
9980char dlopen ();
9981int
9982main ()
9983{
9984return dlopen ();
9985  ;
9986  return 0;
9987}
9988_ACEOF
9989rm -f conftest.$ac_objext conftest$ac_exeext
9990if { (ac_try="$ac_link"
9991case "(($ac_try" in
9992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993  *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996  (eval "$ac_link") 2>conftest.er1
9997  ac_status=$?
9998  grep -v '^ *+' conftest.er1 >conftest.err
9999  rm -f conftest.er1
10000  cat conftest.err >&5
10001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002  (exit $ac_status); } &&
10003	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004  { (case "(($ac_try" in
10005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006  *) ac_try_echo=$ac_try;;
10007esac
10008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009  (eval "$ac_try") 2>&5
10010  ac_status=$?
10011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012  (exit $ac_status); }; } &&
10013	 { ac_try='test -s conftest$ac_exeext'
10014  { (case "(($ac_try" in
10015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016  *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019  (eval "$ac_try") 2>&5
10020  ac_status=$?
10021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022  (exit $ac_status); }; }; then
10023  ac_cv_lib_dl_dlopen=yes
10024else
10025  echo "$as_me: failed program was:" >&5
10026sed 's/^/| /' conftest.$ac_ext >&5
10027
10028	ac_cv_lib_dl_dlopen=no
10029fi
10030
10031rm -f core conftest.err conftest.$ac_objext \
10032      conftest$ac_exeext conftest.$ac_ext
10033LIBS=$ac_check_lib_save_LIBS
10034fi
10035{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10036echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10037if test $ac_cv_lib_dl_dlopen = yes; then
10038
10039cat >>confdefs.h <<\_ACEOF
10040#define HAVE_LIBDL 1
10041_ACEOF
10042
10043	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10044else
10045  cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h.  */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h.  */
10051#if HAVE_DLFCN_H
10052#  include <dlfcn.h>
10053#endif
10054
10055int
10056main ()
10057{
10058dlopen(0, 0);
10059  ;
10060  return 0;
10061}
10062_ACEOF
10063rm -f conftest.$ac_objext conftest$ac_exeext
10064if { (ac_try="$ac_link"
10065case "(($ac_try" in
10066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067  *) ac_try_echo=$ac_try;;
10068esac
10069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070  (eval "$ac_link") 2>conftest.er1
10071  ac_status=$?
10072  grep -v '^ *+' conftest.er1 >conftest.err
10073  rm -f conftest.er1
10074  cat conftest.err >&5
10075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); } &&
10077	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10078  { (case "(($ac_try" in
10079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080  *) ac_try_echo=$ac_try;;
10081esac
10082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083  (eval "$ac_try") 2>&5
10084  ac_status=$?
10085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086  (exit $ac_status); }; } &&
10087	 { ac_try='test -s conftest$ac_exeext'
10088  { (case "(($ac_try" in
10089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090  *) ac_try_echo=$ac_try;;
10091esac
10092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093  (eval "$ac_try") 2>&5
10094  ac_status=$?
10095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096  (exit $ac_status); }; }; then
10097
10098cat >>confdefs.h <<\_ACEOF
10099#define HAVE_LIBDL 1
10100_ACEOF
10101 libltdl_cv_func_dlopen="yes"
10102else
10103  echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10107echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10108if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10109  echo $ECHO_N "(cached) $ECHO_C" >&6
10110else
10111  ac_check_lib_save_LIBS=$LIBS
10112LIBS="-lsvld  $LIBS"
10113cat >conftest.$ac_ext <<_ACEOF
10114/* confdefs.h.  */
10115_ACEOF
10116cat confdefs.h >>conftest.$ac_ext
10117cat >>conftest.$ac_ext <<_ACEOF
10118/* end confdefs.h.  */
10119
10120/* Override any GCC internal prototype to avoid an error.
10121   Use char because int might match the return type of a GCC
10122   builtin and then its argument prototype would still apply.  */
10123#ifdef __cplusplus
10124extern "C"
10125#endif
10126char dlopen ();
10127int
10128main ()
10129{
10130return dlopen ();
10131  ;
10132  return 0;
10133}
10134_ACEOF
10135rm -f conftest.$ac_objext conftest$ac_exeext
10136if { (ac_try="$ac_link"
10137case "(($ac_try" in
10138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139  *) ac_try_echo=$ac_try;;
10140esac
10141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142  (eval "$ac_link") 2>conftest.er1
10143  ac_status=$?
10144  grep -v '^ *+' conftest.er1 >conftest.err
10145  rm -f conftest.er1
10146  cat conftest.err >&5
10147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148  (exit $ac_status); } &&
10149	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150  { (case "(($ac_try" in
10151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152  *) ac_try_echo=$ac_try;;
10153esac
10154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155  (eval "$ac_try") 2>&5
10156  ac_status=$?
10157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158  (exit $ac_status); }; } &&
10159	 { ac_try='test -s conftest$ac_exeext'
10160  { (case "(($ac_try" in
10161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162  *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165  (eval "$ac_try") 2>&5
10166  ac_status=$?
10167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); }; }; then
10169  ac_cv_lib_svld_dlopen=yes
10170else
10171  echo "$as_me: failed program was:" >&5
10172sed 's/^/| /' conftest.$ac_ext >&5
10173
10174	ac_cv_lib_svld_dlopen=no
10175fi
10176
10177rm -f core conftest.err conftest.$ac_objext \
10178      conftest$ac_exeext conftest.$ac_ext
10179LIBS=$ac_check_lib_save_LIBS
10180fi
10181{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10182echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10183if test $ac_cv_lib_svld_dlopen = yes; then
10184
10185cat >>confdefs.h <<\_ACEOF
10186#define HAVE_LIBDL 1
10187_ACEOF
10188
10189	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10190else
10191  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10192echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10193if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10194  echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196  ac_check_lib_save_LIBS=$LIBS
10197LIBS="-ldld  $LIBS"
10198cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h.  */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h.  */
10204
10205/* Override any GCC internal prototype to avoid an error.
10206   Use char because int might match the return type of a GCC
10207   builtin and then its argument prototype would still apply.  */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211char dld_link ();
10212int
10213main ()
10214{
10215return dld_link ();
10216  ;
10217  return 0;
10218}
10219_ACEOF
10220rm -f conftest.$ac_objext conftest$ac_exeext
10221if { (ac_try="$ac_link"
10222case "(($ac_try" in
10223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224  *) ac_try_echo=$ac_try;;
10225esac
10226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227  (eval "$ac_link") 2>conftest.er1
10228  ac_status=$?
10229  grep -v '^ *+' conftest.er1 >conftest.err
10230  rm -f conftest.er1
10231  cat conftest.err >&5
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); } &&
10234	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235  { (case "(($ac_try" in
10236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237  *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240  (eval "$ac_try") 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; } &&
10244	 { ac_try='test -s conftest$ac_exeext'
10245  { (case "(($ac_try" in
10246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247  *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250  (eval "$ac_try") 2>&5
10251  ac_status=$?
10252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); }; }; then
10254  ac_cv_lib_dld_dld_link=yes
10255else
10256  echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
10259	ac_cv_lib_dld_dld_link=no
10260fi
10261
10262rm -f core conftest.err conftest.$ac_objext \
10263      conftest$ac_exeext conftest.$ac_ext
10264LIBS=$ac_check_lib_save_LIBS
10265fi
10266{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10267echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10268if test $ac_cv_lib_dld_dld_link = yes; then
10269
10270cat >>confdefs.h <<\_ACEOF
10271#define HAVE_DLD 1
10272_ACEOF
10273
10274	 	LIBADD_DL="$LIBADD_DL -ldld"
10275else
10276  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10277echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10278if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10279  echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281  cat >conftest.$ac_ext <<_ACEOF
10282/* confdefs.h.  */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h.  */
10287/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10288   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10289#define _dyld_func_lookup innocuous__dyld_func_lookup
10290
10291/* System header to define __stub macros and hopefully few prototypes,
10292    which can conflict with char _dyld_func_lookup (); below.
10293    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10294    <limits.h> exists even on freestanding compilers.  */
10295
10296#ifdef __STDC__
10297# include <limits.h>
10298#else
10299# include <assert.h>
10300#endif
10301
10302#undef _dyld_func_lookup
10303
10304/* Override any GCC internal prototype to avoid an error.
10305   Use char because int might match the return type of a GCC
10306   builtin and then its argument prototype would still apply.  */
10307#ifdef __cplusplus
10308extern "C"
10309#endif
10310char _dyld_func_lookup ();
10311/* The GNU C library defines this for functions which it implements
10312    to always fail with ENOSYS.  Some functions are actually named
10313    something starting with __ and the normal name is an alias.  */
10314#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10315choke me
10316#endif
10317
10318int
10319main ()
10320{
10321return _dyld_func_lookup ();
10322  ;
10323  return 0;
10324}
10325_ACEOF
10326rm -f conftest.$ac_objext conftest$ac_exeext
10327if { (ac_try="$ac_link"
10328case "(($ac_try" in
10329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330  *) ac_try_echo=$ac_try;;
10331esac
10332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333  (eval "$ac_link") 2>conftest.er1
10334  ac_status=$?
10335  grep -v '^ *+' conftest.er1 >conftest.err
10336  rm -f conftest.er1
10337  cat conftest.err >&5
10338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339  (exit $ac_status); } &&
10340	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10341  { (case "(($ac_try" in
10342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343  *) ac_try_echo=$ac_try;;
10344esac
10345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346  (eval "$ac_try") 2>&5
10347  ac_status=$?
10348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349  (exit $ac_status); }; } &&
10350	 { ac_try='test -s conftest$ac_exeext'
10351  { (case "(($ac_try" in
10352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353  *) ac_try_echo=$ac_try;;
10354esac
10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356  (eval "$ac_try") 2>&5
10357  ac_status=$?
10358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); }; }; then
10360  ac_cv_func__dyld_func_lookup=yes
10361else
10362  echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
10365	ac_cv_func__dyld_func_lookup=no
10366fi
10367
10368rm -f core conftest.err conftest.$ac_objext \
10369      conftest$ac_exeext conftest.$ac_ext
10370fi
10371{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10372echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10373if test $ac_cv_func__dyld_func_lookup = yes; then
10374
10375cat >>confdefs.h <<\_ACEOF
10376#define HAVE_DYLD 1
10377_ACEOF
10378
10379fi
10380
10381
10382fi
10383
10384
10385fi
10386
10387
10388fi
10389
10390rm -f core conftest.err conftest.$ac_objext \
10391      conftest$ac_exeext conftest.$ac_ext
10392
10393fi
10394
10395
10396fi
10397
10398
10399fi
10400
10401
10402if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10403then
10404  lt_save_LIBS="$LIBS"
10405  LIBS="$LIBS $LIBADD_DL"
10406
10407for ac_func in dlerror
10408do
10409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10410{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10413  echo $ECHO_N "(cached) $ECHO_C" >&6
10414else
10415  cat >conftest.$ac_ext <<_ACEOF
10416/* confdefs.h.  */
10417_ACEOF
10418cat confdefs.h >>conftest.$ac_ext
10419cat >>conftest.$ac_ext <<_ACEOF
10420/* end confdefs.h.  */
10421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10422   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10423#define $ac_func innocuous_$ac_func
10424
10425/* System header to define __stub macros and hopefully few prototypes,
10426    which can conflict with char $ac_func (); below.
10427    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10428    <limits.h> exists even on freestanding compilers.  */
10429
10430#ifdef __STDC__
10431# include <limits.h>
10432#else
10433# include <assert.h>
10434#endif
10435
10436#undef $ac_func
10437
10438/* Override any GCC internal prototype to avoid an error.
10439   Use char because int might match the return type of a GCC
10440   builtin and then its argument prototype would still apply.  */
10441#ifdef __cplusplus
10442extern "C"
10443#endif
10444char $ac_func ();
10445/* The GNU C library defines this for functions which it implements
10446    to always fail with ENOSYS.  Some functions are actually named
10447    something starting with __ and the normal name is an alias.  */
10448#if defined __stub_$ac_func || defined __stub___$ac_func
10449choke me
10450#endif
10451
10452int
10453main ()
10454{
10455return $ac_func ();
10456  ;
10457  return 0;
10458}
10459_ACEOF
10460rm -f conftest.$ac_objext conftest$ac_exeext
10461if { (ac_try="$ac_link"
10462case "(($ac_try" in
10463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464  *) ac_try_echo=$ac_try;;
10465esac
10466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467  (eval "$ac_link") 2>conftest.er1
10468  ac_status=$?
10469  grep -v '^ *+' conftest.er1 >conftest.err
10470  rm -f conftest.er1
10471  cat conftest.err >&5
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); } &&
10474	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10475  { (case "(($ac_try" in
10476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477  *) ac_try_echo=$ac_try;;
10478esac
10479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480  (eval "$ac_try") 2>&5
10481  ac_status=$?
10482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483  (exit $ac_status); }; } &&
10484	 { ac_try='test -s conftest$ac_exeext'
10485  { (case "(($ac_try" in
10486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487  *) ac_try_echo=$ac_try;;
10488esac
10489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490  (eval "$ac_try") 2>&5
10491  ac_status=$?
10492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493  (exit $ac_status); }; }; then
10494  eval "$as_ac_var=yes"
10495else
10496  echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499	eval "$as_ac_var=no"
10500fi
10501
10502rm -f core conftest.err conftest.$ac_objext \
10503      conftest$ac_exeext conftest.$ac_ext
10504fi
10505ac_res=`eval echo '${'$as_ac_var'}'`
10506	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10507echo "${ECHO_T}$ac_res" >&6; }
10508if test `eval echo '${'$as_ac_var'}'` = yes; then
10509  cat >>confdefs.h <<_ACEOF
10510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10511_ACEOF
10512
10513fi
10514done
10515
10516  LIBS="$lt_save_LIBS"
10517fi
10518ac_ext=c
10519ac_cpp='$CPP $CPPFLAGS'
10520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10522ac_compiler_gnu=$ac_cv_c_compiler_gnu
10523
10524
10525
10526{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10527echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10528if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10529  echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531  ac_cv_sys_symbol_underscore=no
10532  cat > conftest.$ac_ext <<EOF
10533void nm_test_func(){}
10534int main(){nm_test_func;return 0;}
10535EOF
10536  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10537  (eval $ac_compile) 2>&5
10538  ac_status=$?
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); }; then
10541    # Now try to grab the symbols.
10542    ac_nlist=conftest.nm
10543    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10544  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10545  ac_status=$?
10546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547  (exit $ac_status); } && test -s "$ac_nlist"; then
10548      # See whether the symbols have a leading underscore.
10549      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10550        ac_cv_sys_symbol_underscore=yes
10551      else
10552        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10553	  :
10554        else
10555	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10556        fi
10557      fi
10558    else
10559      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10560    fi
10561  else
10562    echo "configure: failed program was:" >&5
10563    cat conftest.c >&5
10564  fi
10565  rm -rf conftest*
10566
10567fi
10568{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10569echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10570
10571
10572if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10573  if test x"$libltdl_cv_func_dlopen" = xyes ||
10574     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10575	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10576echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10577if test "${libltdl_cv_need_uscore+set}" = set; then
10578  echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580  libltdl_cv_need_uscore=unknown
10581          save_LIBS="$LIBS"
10582          LIBS="$LIBS $LIBADD_DL"
10583	  if test "$cross_compiling" = yes; then :
10584  libltdl_cv_need_uscore=cross
10585else
10586  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10587  lt_status=$lt_dlunknown
10588  cat > conftest.$ac_ext <<EOF
10589#line 10589 "configure"
10590#include "confdefs.h"
10591
10592#if HAVE_DLFCN_H
10593#include <dlfcn.h>
10594#endif
10595
10596#include <stdio.h>
10597
10598#ifdef RTLD_GLOBAL
10599#  define LT_DLGLOBAL		RTLD_GLOBAL
10600#else
10601#  ifdef DL_GLOBAL
10602#    define LT_DLGLOBAL		DL_GLOBAL
10603#  else
10604#    define LT_DLGLOBAL		0
10605#  endif
10606#endif
10607
10608/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10609   find out it does not work in some platform. */
10610#ifndef LT_DLLAZY_OR_NOW
10611#  ifdef RTLD_LAZY
10612#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10613#  else
10614#    ifdef DL_LAZY
10615#      define LT_DLLAZY_OR_NOW		DL_LAZY
10616#    else
10617#      ifdef RTLD_NOW
10618#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10619#      else
10620#        ifdef DL_NOW
10621#          define LT_DLLAZY_OR_NOW	DL_NOW
10622#        else
10623#          define LT_DLLAZY_OR_NOW	0
10624#        endif
10625#      endif
10626#    endif
10627#  endif
10628#endif
10629
10630#ifdef __cplusplus
10631extern "C" void exit (int);
10632#endif
10633
10634void fnord() { int i=42;}
10635int main ()
10636{
10637  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10638  int status = $lt_dlunknown;
10639
10640  if (self)
10641    {
10642      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10643      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10644      /* dlclose (self); */
10645    }
10646  else
10647    puts (dlerror ());
10648
10649    exit (status);
10650}
10651EOF
10652  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653  (eval $ac_link) 2>&5
10654  ac_status=$?
10655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10657    (./conftest; exit; ) >&5 2>/dev/null
10658    lt_status=$?
10659    case x$lt_status in
10660      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10661      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10662      x$lt_dlunknown|x*)  ;;
10663    esac
10664  else :
10665    # compilation failed
10666
10667  fi
10668fi
10669rm -fr conftest*
10670
10671	  LIBS="$save_LIBS"
10672
10673fi
10674{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10675echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10676  fi
10677fi
10678
10679if test x"$libltdl_cv_need_uscore" = xyes; then
10680
10681cat >>confdefs.h <<\_ACEOF
10682#define NEED_USCORE 1
10683_ACEOF
10684
10685fi
10686
10687
10688{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10689echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10690if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10691  echo $ECHO_N "(cached) $ECHO_C" >&6
10692else
10693  # PORTME does your system automatically load deplibs for dlopen?
10694  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10695  # For now, we just catch OSes we know something about -- in the
10696  # future, we'll try test this programmatically.
10697  libltdl_cv_sys_dlopen_deplibs=unknown
10698  case "$host_os" in
10699  aix3*|aix4.1.*|aix4.2.*)
10700    # Unknown whether this is true for these versions of AIX, but
10701    # we want this `case' here to explicitly catch those versions.
10702    libltdl_cv_sys_dlopen_deplibs=unknown
10703    ;;
10704  aix[45]*)
10705    libltdl_cv_sys_dlopen_deplibs=yes
10706    ;;
10707  darwin*)
10708    # Assuming the user has installed a libdl from somewhere, this is true
10709    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10710    libltdl_cv_sys_dlopen_deplibs=yes
10711    ;;
10712  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10713    # GNU and its variants, using gnu ld.so (Glibc)
10714    libltdl_cv_sys_dlopen_deplibs=yes
10715    ;;
10716  hpux10*|hpux11*)
10717    libltdl_cv_sys_dlopen_deplibs=yes
10718    ;;
10719  interix*)
10720    libltdl_cv_sys_dlopen_deplibs=yes
10721    ;;
10722  irix[12345]*|irix6.[01]*)
10723    # Catch all versions of IRIX before 6.2, and indicate that we don't
10724    # know how it worked for any of those versions.
10725    libltdl_cv_sys_dlopen_deplibs=unknown
10726    ;;
10727  irix*)
10728    # The case above catches anything before 6.2, and it's known that
10729    # at 6.2 and later dlopen does load deplibs.
10730    libltdl_cv_sys_dlopen_deplibs=yes
10731    ;;
10732  netbsd*)
10733    libltdl_cv_sys_dlopen_deplibs=yes
10734    ;;
10735  openbsd*)
10736    libltdl_cv_sys_dlopen_deplibs=yes
10737    ;;
10738  osf[1234]*)
10739    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10740    # it did *not* use an RPATH in a shared library to find objects the
10741    # library depends on, so we explicitly say `no'.
10742    libltdl_cv_sys_dlopen_deplibs=no
10743    ;;
10744  osf5.0|osf5.0a|osf5.1)
10745    # dlopen *does* load deplibs and with the right loader patch applied
10746    # it even uses RPATH in a shared library to search for shared objects
10747    # that the library depends on, but there's no easy way to know if that
10748    # patch is installed.  Since this is the case, all we can really
10749    # say is unknown -- it depends on the patch being installed.  If
10750    # it is, this changes to `yes'.  Without it, it would be `no'.
10751    libltdl_cv_sys_dlopen_deplibs=unknown
10752    ;;
10753  osf*)
10754    # the two cases above should catch all versions of osf <= 5.1.  Read
10755    # the comments above for what we know about them.
10756    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10757    # is used to find them so we can finally say `yes'.
10758    libltdl_cv_sys_dlopen_deplibs=yes
10759    ;;
10760  solaris*)
10761    libltdl_cv_sys_dlopen_deplibs=yes
10762    ;;
10763  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10764    libltdl_cv_sys_dlopen_deplibs=yes
10765    ;;
10766  esac
10767
10768fi
10769{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10770echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10771if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10772
10773cat >>confdefs.h <<\_ACEOF
10774#define LTDL_DLOPEN_DEPLIBS 1
10775_ACEOF
10776
10777fi
10778
10779
10780for ac_header in argz.h
10781do
10782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787  echo $ECHO_N "(cached) $ECHO_C" >&6
10788fi
10789ac_res=`eval echo '${'$as_ac_Header'}'`
10790	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10791echo "${ECHO_T}$ac_res" >&6; }
10792else
10793  # Is the header compilable?
10794{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796cat >conftest.$ac_ext <<_ACEOF
10797/* confdefs.h.  */
10798_ACEOF
10799cat confdefs.h >>conftest.$ac_ext
10800cat >>conftest.$ac_ext <<_ACEOF
10801/* end confdefs.h.  */
10802$ac_includes_default
10803#include <$ac_header>
10804_ACEOF
10805rm -f conftest.$ac_objext
10806if { (ac_try="$ac_compile"
10807case "(($ac_try" in
10808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809  *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812  (eval "$ac_compile") 2>conftest.er1
10813  ac_status=$?
10814  grep -v '^ *+' conftest.er1 >conftest.err
10815  rm -f conftest.er1
10816  cat conftest.err >&5
10817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818  (exit $ac_status); } &&
10819	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820  { (case "(($ac_try" in
10821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822  *) ac_try_echo=$ac_try;;
10823esac
10824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825  (eval "$ac_try") 2>&5
10826  ac_status=$?
10827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828  (exit $ac_status); }; } &&
10829	 { ac_try='test -s conftest.$ac_objext'
10830  { (case "(($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_try") 2>&5
10836  ac_status=$?
10837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838  (exit $ac_status); }; }; then
10839  ac_header_compiler=yes
10840else
10841  echo "$as_me: failed program was:" >&5
10842sed 's/^/| /' conftest.$ac_ext >&5
10843
10844	ac_header_compiler=no
10845fi
10846
10847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10849echo "${ECHO_T}$ac_header_compiler" >&6; }
10850
10851# Is the header present?
10852{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10854cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h.  */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h.  */
10860#include <$ac_header>
10861_ACEOF
10862if { (ac_try="$ac_cpp conftest.$ac_ext"
10863case "(($ac_try" in
10864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865  *) ac_try_echo=$ac_try;;
10866esac
10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10869  ac_status=$?
10870  grep -v '^ *+' conftest.er1 >conftest.err
10871  rm -f conftest.er1
10872  cat conftest.err >&5
10873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874  (exit $ac_status); } >/dev/null; then
10875  if test -s conftest.err; then
10876    ac_cpp_err=$ac_c_preproc_warn_flag
10877    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10878  else
10879    ac_cpp_err=
10880  fi
10881else
10882  ac_cpp_err=yes
10883fi
10884if test -z "$ac_cpp_err"; then
10885  ac_header_preproc=yes
10886else
10887  echo "$as_me: failed program was:" >&5
10888sed 's/^/| /' conftest.$ac_ext >&5
10889
10890  ac_header_preproc=no
10891fi
10892
10893rm -f conftest.err conftest.$ac_ext
10894{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10895echo "${ECHO_T}$ac_header_preproc" >&6; }
10896
10897# So?  What about this header?
10898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10899  yes:no: )
10900    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10904    ac_header_preproc=yes
10905    ;;
10906  no:yes:* )
10907    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10909    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10910echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10911    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10913    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10914echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10917    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10919    ( cat <<\_ASBOX
10920## ------------------------------------ ##
10921## Report this to http://llvm.org/bugs/ ##
10922## ------------------------------------ ##
10923_ASBOX
10924     ) | sed "s/^/$as_me: WARNING:     /" >&2
10925    ;;
10926esac
10927{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10930  echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
10932  eval "$as_ac_Header=\$ac_header_preproc"
10933fi
10934ac_res=`eval echo '${'$as_ac_Header'}'`
10935	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10936echo "${ECHO_T}$ac_res" >&6; }
10937
10938fi
10939if test `eval echo '${'$as_ac_Header'}'` = yes; then
10940  cat >>confdefs.h <<_ACEOF
10941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10942_ACEOF
10943
10944fi
10945
10946done
10947
10948
10949{ echo "$as_me:$LINENO: checking for error_t" >&5
10950echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10951if test "${ac_cv_type_error_t+set}" = set; then
10952  echo $ECHO_N "(cached) $ECHO_C" >&6
10953else
10954  cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h.  */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h.  */
10960#if HAVE_ARGZ_H
10961#  include <argz.h>
10962#endif
10963
10964typedef error_t ac__type_new_;
10965int
10966main ()
10967{
10968if ((ac__type_new_ *) 0)
10969  return 0;
10970if (sizeof (ac__type_new_))
10971  return 0;
10972  ;
10973  return 0;
10974}
10975_ACEOF
10976rm -f conftest.$ac_objext
10977if { (ac_try="$ac_compile"
10978case "(($ac_try" in
10979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980  *) ac_try_echo=$ac_try;;
10981esac
10982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983  (eval "$ac_compile") 2>conftest.er1
10984  ac_status=$?
10985  grep -v '^ *+' conftest.er1 >conftest.err
10986  rm -f conftest.er1
10987  cat conftest.err >&5
10988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989  (exit $ac_status); } &&
10990	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10991  { (case "(($ac_try" in
10992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993  *) ac_try_echo=$ac_try;;
10994esac
10995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996  (eval "$ac_try") 2>&5
10997  ac_status=$?
10998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999  (exit $ac_status); }; } &&
11000	 { ac_try='test -s conftest.$ac_objext'
11001  { (case "(($ac_try" in
11002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003  *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006  (eval "$ac_try") 2>&5
11007  ac_status=$?
11008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009  (exit $ac_status); }; }; then
11010  ac_cv_type_error_t=yes
11011else
11012  echo "$as_me: failed program was:" >&5
11013sed 's/^/| /' conftest.$ac_ext >&5
11014
11015	ac_cv_type_error_t=no
11016fi
11017
11018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019fi
11020{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11021echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11022if test $ac_cv_type_error_t = yes; then
11023
11024cat >>confdefs.h <<_ACEOF
11025#define HAVE_ERROR_T 1
11026_ACEOF
11027
11028
11029else
11030
11031cat >>confdefs.h <<\_ACEOF
11032#define error_t int
11033_ACEOF
11034
11035fi
11036
11037
11038
11039
11040
11041
11042
11043for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11044do
11045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11046{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11048if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11049  echo $ECHO_N "(cached) $ECHO_C" >&6
11050else
11051  cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11058   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11059#define $ac_func innocuous_$ac_func
11060
11061/* System header to define __stub macros and hopefully few prototypes,
11062    which can conflict with char $ac_func (); below.
11063    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11064    <limits.h> exists even on freestanding compilers.  */
11065
11066#ifdef __STDC__
11067# include <limits.h>
11068#else
11069# include <assert.h>
11070#endif
11071
11072#undef $ac_func
11073
11074/* Override any GCC internal prototype to avoid an error.
11075   Use char because int might match the return type of a GCC
11076   builtin and then its argument prototype would still apply.  */
11077#ifdef __cplusplus
11078extern "C"
11079#endif
11080char $ac_func ();
11081/* The GNU C library defines this for functions which it implements
11082    to always fail with ENOSYS.  Some functions are actually named
11083    something starting with __ and the normal name is an alias.  */
11084#if defined __stub_$ac_func || defined __stub___$ac_func
11085choke me
11086#endif
11087
11088int
11089main ()
11090{
11091return $ac_func ();
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096rm -f conftest.$ac_objext conftest$ac_exeext
11097if { (ac_try="$ac_link"
11098case "(($ac_try" in
11099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100  *) ac_try_echo=$ac_try;;
11101esac
11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103  (eval "$ac_link") 2>conftest.er1
11104  ac_status=$?
11105  grep -v '^ *+' conftest.er1 >conftest.err
11106  rm -f conftest.er1
11107  cat conftest.err >&5
11108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109  (exit $ac_status); } &&
11110	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11111  { (case "(($ac_try" in
11112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113  *) ac_try_echo=$ac_try;;
11114esac
11115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116  (eval "$ac_try") 2>&5
11117  ac_status=$?
11118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119  (exit $ac_status); }; } &&
11120	 { ac_try='test -s conftest$ac_exeext'
11121  { (case "(($ac_try" in
11122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123  *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126  (eval "$ac_try") 2>&5
11127  ac_status=$?
11128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129  (exit $ac_status); }; }; then
11130  eval "$as_ac_var=yes"
11131else
11132  echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
11135	eval "$as_ac_var=no"
11136fi
11137
11138rm -f core conftest.err conftest.$ac_objext \
11139      conftest$ac_exeext conftest.$ac_ext
11140fi
11141ac_res=`eval echo '${'$as_ac_var'}'`
11142	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11143echo "${ECHO_T}$ac_res" >&6; }
11144if test `eval echo '${'$as_ac_var'}'` = yes; then
11145  cat >>confdefs.h <<_ACEOF
11146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11147_ACEOF
11148
11149fi
11150done
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174for ac_header in errno.h malloc.h memory.h unistd.h
11175do
11176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11181  echo $ECHO_N "(cached) $ECHO_C" >&6
11182fi
11183ac_res=`eval echo '${'$as_ac_Header'}'`
11184	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11185echo "${ECHO_T}$ac_res" >&6; }
11186else
11187  # Is the header compilable?
11188{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11190cat >conftest.$ac_ext <<_ACEOF
11191/* confdefs.h.  */
11192_ACEOF
11193cat confdefs.h >>conftest.$ac_ext
11194cat >>conftest.$ac_ext <<_ACEOF
11195/* end confdefs.h.  */
11196$ac_includes_default
11197#include <$ac_header>
11198_ACEOF
11199rm -f conftest.$ac_objext
11200if { (ac_try="$ac_compile"
11201case "(($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_compile") 2>conftest.er1
11207  ac_status=$?
11208  grep -v '^ *+' conftest.er1 >conftest.err
11209  rm -f conftest.er1
11210  cat conftest.err >&5
11211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212  (exit $ac_status); } &&
11213	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11214  { (case "(($ac_try" in
11215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216  *) ac_try_echo=$ac_try;;
11217esac
11218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219  (eval "$ac_try") 2>&5
11220  ac_status=$?
11221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222  (exit $ac_status); }; } &&
11223	 { ac_try='test -s conftest.$ac_objext'
11224  { (case "(($ac_try" in
11225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226  *) ac_try_echo=$ac_try;;
11227esac
11228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229  (eval "$ac_try") 2>&5
11230  ac_status=$?
11231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232  (exit $ac_status); }; }; then
11233  ac_header_compiler=yes
11234else
11235  echo "$as_me: failed program was:" >&5
11236sed 's/^/| /' conftest.$ac_ext >&5
11237
11238	ac_header_compiler=no
11239fi
11240
11241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11243echo "${ECHO_T}$ac_header_compiler" >&6; }
11244
11245# Is the header present?
11246{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11248cat >conftest.$ac_ext <<_ACEOF
11249/* confdefs.h.  */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h.  */
11254#include <$ac_header>
11255_ACEOF
11256if { (ac_try="$ac_cpp conftest.$ac_ext"
11257case "(($ac_try" in
11258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259  *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11263  ac_status=$?
11264  grep -v '^ *+' conftest.er1 >conftest.err
11265  rm -f conftest.er1
11266  cat conftest.err >&5
11267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268  (exit $ac_status); } >/dev/null; then
11269  if test -s conftest.err; then
11270    ac_cpp_err=$ac_c_preproc_warn_flag
11271    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11272  else
11273    ac_cpp_err=
11274  fi
11275else
11276  ac_cpp_err=yes
11277fi
11278if test -z "$ac_cpp_err"; then
11279  ac_header_preproc=yes
11280else
11281  echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284  ac_header_preproc=no
11285fi
11286
11287rm -f conftest.err conftest.$ac_ext
11288{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289echo "${ECHO_T}$ac_header_preproc" >&6; }
11290
11291# So?  What about this header?
11292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293  yes:no: )
11294    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298    ac_header_preproc=yes
11299    ;;
11300  no:yes:* )
11301    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11304echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11305    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11308echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11309    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11313    ( cat <<\_ASBOX
11314## ------------------------------------ ##
11315## Report this to http://llvm.org/bugs/ ##
11316## ------------------------------------ ##
11317_ASBOX
11318     ) | sed "s/^/$as_me: WARNING:     /" >&2
11319    ;;
11320esac
11321{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324  echo $ECHO_N "(cached) $ECHO_C" >&6
11325else
11326  eval "$as_ac_Header=\$ac_header_preproc"
11327fi
11328ac_res=`eval echo '${'$as_ac_Header'}'`
11329	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11330echo "${ECHO_T}$ac_res" >&6; }
11331
11332fi
11333if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334  cat >>confdefs.h <<_ACEOF
11335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11336_ACEOF
11337
11338fi
11339
11340done
11341
11342
11343for ac_header in mach-o/dyld.h
11344do
11345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350  echo $ECHO_N "(cached) $ECHO_C" >&6
11351fi
11352ac_res=`eval echo '${'$as_ac_Header'}'`
11353	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11354echo "${ECHO_T}$ac_res" >&6; }
11355else
11356  # Is the header compilable?
11357{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11359cat >conftest.$ac_ext <<_ACEOF
11360/* confdefs.h.  */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h.  */
11365$ac_includes_default
11366#include <$ac_header>
11367_ACEOF
11368rm -f conftest.$ac_objext
11369if { (ac_try="$ac_compile"
11370case "(($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_compile") 2>conftest.er1
11376  ac_status=$?
11377  grep -v '^ *+' conftest.er1 >conftest.err
11378  rm -f conftest.er1
11379  cat conftest.err >&5
11380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381  (exit $ac_status); } &&
11382	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383  { (case "(($ac_try" in
11384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385  *) ac_try_echo=$ac_try;;
11386esac
11387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388  (eval "$ac_try") 2>&5
11389  ac_status=$?
11390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391  (exit $ac_status); }; } &&
11392	 { ac_try='test -s conftest.$ac_objext'
11393  { (case "(($ac_try" in
11394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395  *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398  (eval "$ac_try") 2>&5
11399  ac_status=$?
11400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401  (exit $ac_status); }; }; then
11402  ac_header_compiler=yes
11403else
11404  echo "$as_me: failed program was:" >&5
11405sed 's/^/| /' conftest.$ac_ext >&5
11406
11407	ac_header_compiler=no
11408fi
11409
11410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412echo "${ECHO_T}$ac_header_compiler" >&6; }
11413
11414# Is the header present?
11415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11417cat >conftest.$ac_ext <<_ACEOF
11418/* confdefs.h.  */
11419_ACEOF
11420cat confdefs.h >>conftest.$ac_ext
11421cat >>conftest.$ac_ext <<_ACEOF
11422/* end confdefs.h.  */
11423#include <$ac_header>
11424_ACEOF
11425if { (ac_try="$ac_cpp conftest.$ac_ext"
11426case "(($ac_try" in
11427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428  *) ac_try_echo=$ac_try;;
11429esac
11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11432  ac_status=$?
11433  grep -v '^ *+' conftest.er1 >conftest.err
11434  rm -f conftest.er1
11435  cat conftest.err >&5
11436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437  (exit $ac_status); } >/dev/null; then
11438  if test -s conftest.err; then
11439    ac_cpp_err=$ac_c_preproc_warn_flag
11440    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11441  else
11442    ac_cpp_err=
11443  fi
11444else
11445  ac_cpp_err=yes
11446fi
11447if test -z "$ac_cpp_err"; then
11448  ac_header_preproc=yes
11449else
11450  echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
11453  ac_header_preproc=no
11454fi
11455
11456rm -f conftest.err conftest.$ac_ext
11457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458echo "${ECHO_T}$ac_header_preproc" >&6; }
11459
11460# So?  What about this header?
11461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11462  yes:no: )
11463    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467    ac_header_preproc=yes
11468    ;;
11469  no:yes:* )
11470    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11473echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11474    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11477echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11478    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11482    ( cat <<\_ASBOX
11483## ------------------------------------ ##
11484## Report this to http://llvm.org/bugs/ ##
11485## ------------------------------------ ##
11486_ASBOX
11487     ) | sed "s/^/$as_me: WARNING:     /" >&2
11488    ;;
11489esac
11490{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493  echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495  eval "$as_ac_Header=\$ac_header_preproc"
11496fi
11497ac_res=`eval echo '${'$as_ac_Header'}'`
11498	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11499echo "${ECHO_T}$ac_res" >&6; }
11500
11501fi
11502if test `eval echo '${'$as_ac_Header'}'` = yes; then
11503  cat >>confdefs.h <<_ACEOF
11504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11505_ACEOF
11506
11507fi
11508
11509done
11510
11511
11512
11513
11514
11515for ac_func in closedir opendir readdir
11516do
11517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11521  echo $ECHO_N "(cached) $ECHO_C" >&6
11522else
11523  cat >conftest.$ac_ext <<_ACEOF
11524/* confdefs.h.  */
11525_ACEOF
11526cat confdefs.h >>conftest.$ac_ext
11527cat >>conftest.$ac_ext <<_ACEOF
11528/* end confdefs.h.  */
11529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11530   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11531#define $ac_func innocuous_$ac_func
11532
11533/* System header to define __stub macros and hopefully few prototypes,
11534    which can conflict with char $ac_func (); below.
11535    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11536    <limits.h> exists even on freestanding compilers.  */
11537
11538#ifdef __STDC__
11539# include <limits.h>
11540#else
11541# include <assert.h>
11542#endif
11543
11544#undef $ac_func
11545
11546/* Override any GCC internal prototype to avoid an error.
11547   Use char because int might match the return type of a GCC
11548   builtin and then its argument prototype would still apply.  */
11549#ifdef __cplusplus
11550extern "C"
11551#endif
11552char $ac_func ();
11553/* The GNU C library defines this for functions which it implements
11554    to always fail with ENOSYS.  Some functions are actually named
11555    something starting with __ and the normal name is an alias.  */
11556#if defined __stub_$ac_func || defined __stub___$ac_func
11557choke me
11558#endif
11559
11560int
11561main ()
11562{
11563return $ac_func ();
11564  ;
11565  return 0;
11566}
11567_ACEOF
11568rm -f conftest.$ac_objext conftest$ac_exeext
11569if { (ac_try="$ac_link"
11570case "(($ac_try" in
11571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572  *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575  (eval "$ac_link") 2>conftest.er1
11576  ac_status=$?
11577  grep -v '^ *+' conftest.er1 >conftest.err
11578  rm -f conftest.er1
11579  cat conftest.err >&5
11580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581  (exit $ac_status); } &&
11582	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583  { (case "(($ac_try" in
11584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585  *) ac_try_echo=$ac_try;;
11586esac
11587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588  (eval "$ac_try") 2>&5
11589  ac_status=$?
11590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591  (exit $ac_status); }; } &&
11592	 { ac_try='test -s conftest$ac_exeext'
11593  { (case "(($ac_try" in
11594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595  *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598  (eval "$ac_try") 2>&5
11599  ac_status=$?
11600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601  (exit $ac_status); }; }; then
11602  eval "$as_ac_var=yes"
11603else
11604  echo "$as_me: failed program was:" >&5
11605sed 's/^/| /' conftest.$ac_ext >&5
11606
11607	eval "$as_ac_var=no"
11608fi
11609
11610rm -f core conftest.err conftest.$ac_objext \
11611      conftest$ac_exeext conftest.$ac_ext
11612fi
11613ac_res=`eval echo '${'$as_ac_var'}'`
11614	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11615echo "${ECHO_T}$ac_res" >&6; }
11616if test `eval echo '${'$as_ac_var'}'` = yes; then
11617  cat >>confdefs.h <<_ACEOF
11618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11619_ACEOF
11620
11621fi
11622done
11623
11624
11625
11626{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11627echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11628
11629ICC=no
11630IXX=no
11631case $CC in
11632  icc*|icpc*)
11633    ICC=yes
11634    IXX=yes
11635    ;;
11636   *)
11637    ;;
11638esac
11639
11640if test "$GCC" != "yes" && test "$ICC" != "yes"
11641then
11642  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11643echo "$as_me: error: gcc|icc required but not found" >&2;}
11644   { (exit 1); exit 1; }; }
11645fi
11646
11647if test "$GXX" != "yes" && test "$IXX" != "yes"
11648then
11649  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11650echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11651   { (exit 1); exit 1; }; }
11652fi
11653
11654if test "$GCC" = "yes"
11655then
11656  cat >conftest.$ac_ext <<_ACEOF
11657
11658  /* confdefs.h.  */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h.  */
11663
11664    #if !defined(__GNUC__) || __GNUC__ < 3
11665    #error Unsupported GCC version
11666    #endif
11667
11668
11669_ACEOF
11670rm -f conftest.$ac_objext
11671if { (ac_try="$ac_compile"
11672case "(($ac_try" in
11673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674  *) ac_try_echo=$ac_try;;
11675esac
11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677  (eval "$ac_compile") 2>conftest.er1
11678  ac_status=$?
11679  grep -v '^ *+' conftest.er1 >conftest.err
11680  rm -f conftest.er1
11681  cat conftest.err >&5
11682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683  (exit $ac_status); } &&
11684	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11685  { (case "(($ac_try" in
11686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687  *) ac_try_echo=$ac_try;;
11688esac
11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690  (eval "$ac_try") 2>&5
11691  ac_status=$?
11692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693  (exit $ac_status); }; } &&
11694	 { ac_try='test -s conftest.$ac_objext'
11695  { (case "(($ac_try" in
11696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697  *) ac_try_echo=$ac_try;;
11698esac
11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700  (eval "$ac_try") 2>&5
11701  ac_status=$?
11702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703  (exit $ac_status); }; }; then
11704  :
11705else
11706  echo "$as_me: failed program was:" >&5
11707sed 's/^/| /' conftest.$ac_ext >&5
11708
11709	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11710echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11711   { (exit 1); exit 1; }; }
11712fi
11713
11714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11715fi
11716
11717if test -z "$llvm_cv_gnu_make_command"
11718then
11719  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11720echo "$as_me: error: GNU Make required but not found" >&2;}
11721   { (exit 1); exit 1; }; }
11722fi
11723
11724{ echo "$as_me:$LINENO: result: ok" >&5
11725echo "${ECHO_T}ok" >&6; }
11726
11727{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
11728echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11729NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11730
11731NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11732
11733COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11734
11735
11736NO_UNINITIALIZED=
11737NO_MAYBE_UNINITIALIZED=
11738if test "$GXX" = "yes"
11739then
11740  NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11741
11742        if test -z "$NO_MAYBE_UNINITIALIZED"
11743  then
11744    NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11745
11746  fi
11747fi
11748{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11749echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11750
11751
11752# Check whether --with-python was given.
11753if test "${with_python+set}" = set; then
11754  withval=$with_python; PYTHON="$withval"
11755fi
11756
11757
11758if test -n "$PYTHON" && test -x "$PYTHON" ; then
11759  { echo "$as_me:$LINENO: checking for python" >&5
11760echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11761  { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11762echo "${ECHO_T}user defined: $with_python" >&6; }
11763else
11764  if test -n "$PYTHON" ; then
11765    { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11766echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11767  fi
11768
11769  # Extract the first word of "python python2 python26", so it can be a program name with args.
11770set dummy python python2 python26; ac_word=$2
11771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11773if test "${ac_cv_path_PYTHON+set}" = set; then
11774  echo $ECHO_N "(cached) $ECHO_C" >&6
11775else
11776  case $PYTHON in
11777  [\\/]* | ?:[\\/]*)
11778  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11779  ;;
11780  *)
11781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782for as_dir in $PATH
11783do
11784  IFS=$as_save_IFS
11785  test -z "$as_dir" && as_dir=.
11786  for ac_exec_ext in '' $ac_executable_extensions; do
11787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11788    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11790    break 2
11791  fi
11792done
11793done
11794IFS=$as_save_IFS
11795
11796  test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11797echo "${ECHO_T}not found" >&6; }
11798                { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11799echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11800   { (exit 1); exit 1; }; }"
11801  ;;
11802esac
11803fi
11804PYTHON=$ac_cv_path_PYTHON
11805if test -n "$PYTHON"; then
11806  { echo "$as_me:$LINENO: result: $PYTHON" >&5
11807echo "${ECHO_T}$PYTHON" >&6; }
11808else
11809  { echo "$as_me:$LINENO: result: no" >&5
11810echo "${ECHO_T}no" >&6; }
11811fi
11812
11813
11814fi
11815
11816{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11817echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11818ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11819ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11820ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11821ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11822if test "$ac_python_version_major" -gt "2" || \
11823   (test "$ac_python_version_major" -eq "2" && \
11824    test "$ac_python_version_minor" -ge "5") ; then
11825  { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11826echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11827else
11828  { echo "$as_me:$LINENO: result: not found" >&5
11829echo "${ECHO_T}not found" >&6; }
11830  { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11831See \`config.log' for more details." >&5
11832echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11833See \`config.log' for more details." >&2;}
11834   { (exit 1); exit 1; }; }
11835fi
11836
11837
11838
11839{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
11840echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11841if test "${ac_cv_lib_m_sin+set}" = set; then
11842  echo $ECHO_N "(cached) $ECHO_C" >&6
11843else
11844  ac_check_lib_save_LIBS=$LIBS
11845LIBS="-lm  $LIBS"
11846cat >conftest.$ac_ext <<_ACEOF
11847/* confdefs.h.  */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h.  */
11852
11853/* Override any GCC internal prototype to avoid an error.
11854   Use char because int might match the return type of a GCC
11855   builtin and then its argument prototype would still apply.  */
11856#ifdef __cplusplus
11857extern "C"
11858#endif
11859char sin ();
11860int
11861main ()
11862{
11863return sin ();
11864  ;
11865  return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext conftest$ac_exeext
11869if { (ac_try="$ac_link"
11870case "(($ac_try" in
11871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872  *) ac_try_echo=$ac_try;;
11873esac
11874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875  (eval "$ac_link") 2>conftest.er1
11876  ac_status=$?
11877  grep -v '^ *+' conftest.er1 >conftest.err
11878  rm -f conftest.er1
11879  cat conftest.err >&5
11880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881  (exit $ac_status); } &&
11882	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11892	 { ac_try='test -s conftest$ac_exeext'
11893  { (case "(($ac_try" in
11894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895  *) ac_try_echo=$ac_try;;
11896esac
11897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898  (eval "$ac_try") 2>&5
11899  ac_status=$?
11900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901  (exit $ac_status); }; }; then
11902  ac_cv_lib_m_sin=yes
11903else
11904  echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907	ac_cv_lib_m_sin=no
11908fi
11909
11910rm -f core conftest.err conftest.$ac_objext \
11911      conftest$ac_exeext conftest.$ac_ext
11912LIBS=$ac_check_lib_save_LIBS
11913fi
11914{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11915echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11916if test $ac_cv_lib_m_sin = yes; then
11917  cat >>confdefs.h <<_ACEOF
11918#define HAVE_LIBM 1
11919_ACEOF
11920
11921  LIBS="-lm $LIBS"
11922
11923fi
11924
11925if test "$llvm_cv_os_type" = "MingW" ; then
11926
11927{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11928echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11929if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11930  echo $ECHO_N "(cached) $ECHO_C" >&6
11931else
11932  ac_check_lib_save_LIBS=$LIBS
11933LIBS="-limagehlp  $LIBS"
11934cat >conftest.$ac_ext <<_ACEOF
11935/* confdefs.h.  */
11936_ACEOF
11937cat confdefs.h >>conftest.$ac_ext
11938cat >>conftest.$ac_ext <<_ACEOF
11939/* end confdefs.h.  */
11940
11941
11942int
11943main ()
11944{
11945return main ();
11946  ;
11947  return 0;
11948}
11949_ACEOF
11950rm -f conftest.$ac_objext conftest$ac_exeext
11951if { (ac_try="$ac_link"
11952case "(($ac_try" in
11953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954  *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957  (eval "$ac_link") 2>conftest.er1
11958  ac_status=$?
11959  grep -v '^ *+' conftest.er1 >conftest.err
11960  rm -f conftest.er1
11961  cat conftest.err >&5
11962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963  (exit $ac_status); } &&
11964	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11965  { (case "(($ac_try" in
11966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967  *) ac_try_echo=$ac_try;;
11968esac
11969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970  (eval "$ac_try") 2>&5
11971  ac_status=$?
11972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973  (exit $ac_status); }; } &&
11974	 { ac_try='test -s conftest$ac_exeext'
11975  { (case "(($ac_try" in
11976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977  *) ac_try_echo=$ac_try;;
11978esac
11979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980  (eval "$ac_try") 2>&5
11981  ac_status=$?
11982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983  (exit $ac_status); }; }; then
11984  ac_cv_lib_imagehlp_main=yes
11985else
11986  echo "$as_me: failed program was:" >&5
11987sed 's/^/| /' conftest.$ac_ext >&5
11988
11989	ac_cv_lib_imagehlp_main=no
11990fi
11991
11992rm -f core conftest.err conftest.$ac_objext \
11993      conftest$ac_exeext conftest.$ac_ext
11994LIBS=$ac_check_lib_save_LIBS
11995fi
11996{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11997echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11998if test $ac_cv_lib_imagehlp_main = yes; then
11999  cat >>confdefs.h <<_ACEOF
12000#define HAVE_LIBIMAGEHLP 1
12001_ACEOF
12002
12003  LIBS="-limagehlp $LIBS"
12004
12005fi
12006
12007
12008{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12009echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12010if test "${ac_cv_lib_psapi_main+set}" = set; then
12011  echo $ECHO_N "(cached) $ECHO_C" >&6
12012else
12013  ac_check_lib_save_LIBS=$LIBS
12014LIBS="-lpsapi  $LIBS"
12015cat >conftest.$ac_ext <<_ACEOF
12016/* confdefs.h.  */
12017_ACEOF
12018cat confdefs.h >>conftest.$ac_ext
12019cat >>conftest.$ac_ext <<_ACEOF
12020/* end confdefs.h.  */
12021
12022
12023int
12024main ()
12025{
12026return main ();
12027  ;
12028  return 0;
12029}
12030_ACEOF
12031rm -f conftest.$ac_objext conftest$ac_exeext
12032if { (ac_try="$ac_link"
12033case "(($ac_try" in
12034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035  *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038  (eval "$ac_link") 2>conftest.er1
12039  ac_status=$?
12040  grep -v '^ *+' conftest.er1 >conftest.err
12041  rm -f conftest.er1
12042  cat conftest.err >&5
12043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044  (exit $ac_status); } &&
12045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12046  { (case "(($ac_try" in
12047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048  *) ac_try_echo=$ac_try;;
12049esac
12050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051  (eval "$ac_try") 2>&5
12052  ac_status=$?
12053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054  (exit $ac_status); }; } &&
12055	 { ac_try='test -s conftest$ac_exeext'
12056  { (case "(($ac_try" in
12057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058  *) ac_try_echo=$ac_try;;
12059esac
12060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061  (eval "$ac_try") 2>&5
12062  ac_status=$?
12063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064  (exit $ac_status); }; }; then
12065  ac_cv_lib_psapi_main=yes
12066else
12067  echo "$as_me: failed program was:" >&5
12068sed 's/^/| /' conftest.$ac_ext >&5
12069
12070	ac_cv_lib_psapi_main=no
12071fi
12072
12073rm -f core conftest.err conftest.$ac_objext \
12074      conftest$ac_exeext conftest.$ac_ext
12075LIBS=$ac_check_lib_save_LIBS
12076fi
12077{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12078echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12079if test $ac_cv_lib_psapi_main = yes; then
12080  cat >>confdefs.h <<_ACEOF
12081#define HAVE_LIBPSAPI 1
12082_ACEOF
12083
12084  LIBS="-lpsapi $LIBS"
12085
12086fi
12087
12088
12089{ echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12090echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12091if test "${ac_cv_lib_shell32_main+set}" = set; then
12092  echo $ECHO_N "(cached) $ECHO_C" >&6
12093else
12094  ac_check_lib_save_LIBS=$LIBS
12095LIBS="-lshell32  $LIBS"
12096cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h.  */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h.  */
12102
12103
12104int
12105main ()
12106{
12107return main ();
12108  ;
12109  return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext conftest$ac_exeext
12113if { (ac_try="$ac_link"
12114case "(($ac_try" in
12115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116  *) ac_try_echo=$ac_try;;
12117esac
12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119  (eval "$ac_link") 2>conftest.er1
12120  ac_status=$?
12121  grep -v '^ *+' conftest.er1 >conftest.err
12122  rm -f conftest.er1
12123  cat conftest.err >&5
12124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125  (exit $ac_status); } &&
12126	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127  { (case "(($ac_try" in
12128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129  *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132  (eval "$ac_try") 2>&5
12133  ac_status=$?
12134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135  (exit $ac_status); }; } &&
12136	 { ac_try='test -s conftest$ac_exeext'
12137  { (case "(($ac_try" in
12138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139  *) ac_try_echo=$ac_try;;
12140esac
12141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142  (eval "$ac_try") 2>&5
12143  ac_status=$?
12144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145  (exit $ac_status); }; }; then
12146  ac_cv_lib_shell32_main=yes
12147else
12148  echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151	ac_cv_lib_shell32_main=no
12152fi
12153
12154rm -f core conftest.err conftest.$ac_objext \
12155      conftest$ac_exeext conftest.$ac_ext
12156LIBS=$ac_check_lib_save_LIBS
12157fi
12158{ echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12159echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12160if test $ac_cv_lib_shell32_main = yes; then
12161  cat >>confdefs.h <<_ACEOF
12162#define HAVE_LIBSHELL32 1
12163_ACEOF
12164
12165  LIBS="-lshell32 $LIBS"
12166
12167fi
12168
12169fi
12170
12171{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12172echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12173if test "${ac_cv_search_dlopen+set}" = set; then
12174  echo $ECHO_N "(cached) $ECHO_C" >&6
12175else
12176  ac_func_search_save_LIBS=$LIBS
12177cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h.  */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h.  */
12183
12184/* Override any GCC internal prototype to avoid an error.
12185   Use char because int might match the return type of a GCC
12186   builtin and then its argument prototype would still apply.  */
12187#ifdef __cplusplus
12188extern "C"
12189#endif
12190char dlopen ();
12191int
12192main ()
12193{
12194return dlopen ();
12195  ;
12196  return 0;
12197}
12198_ACEOF
12199for ac_lib in '' dl; do
12200  if test -z "$ac_lib"; then
12201    ac_res="none required"
12202  else
12203    ac_res=-l$ac_lib
12204    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12205  fi
12206  rm -f conftest.$ac_objext conftest$ac_exeext
12207if { (ac_try="$ac_link"
12208case "(($ac_try" in
12209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210  *) ac_try_echo=$ac_try;;
12211esac
12212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213  (eval "$ac_link") 2>conftest.er1
12214  ac_status=$?
12215  grep -v '^ *+' conftest.er1 >conftest.err
12216  rm -f conftest.er1
12217  cat conftest.err >&5
12218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); } &&
12220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12221  { (case "(($ac_try" in
12222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223  *) ac_try_echo=$ac_try;;
12224esac
12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226  (eval "$ac_try") 2>&5
12227  ac_status=$?
12228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229  (exit $ac_status); }; } &&
12230	 { ac_try='test -s conftest$ac_exeext'
12231  { (case "(($ac_try" in
12232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233  *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236  (eval "$ac_try") 2>&5
12237  ac_status=$?
12238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239  (exit $ac_status); }; }; then
12240  ac_cv_search_dlopen=$ac_res
12241else
12242  echo "$as_me: failed program was:" >&5
12243sed 's/^/| /' conftest.$ac_ext >&5
12244
12245
12246fi
12247
12248rm -f core conftest.err conftest.$ac_objext \
12249      conftest$ac_exeext
12250  if test "${ac_cv_search_dlopen+set}" = set; then
12251  break
12252fi
12253done
12254if test "${ac_cv_search_dlopen+set}" = set; then
12255  :
12256else
12257  ac_cv_search_dlopen=no
12258fi
12259rm conftest.$ac_ext
12260LIBS=$ac_func_search_save_LIBS
12261fi
12262{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12263echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12264ac_res=$ac_cv_search_dlopen
12265if test "$ac_res" != no; then
12266  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12267
12268cat >>confdefs.h <<\_ACEOF
12269#define HAVE_DLOPEN 1
12270_ACEOF
12271
12272else
12273  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12274echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12275fi
12276
12277
12278{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12279echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12280if test "${ac_cv_search_clock_gettime+set}" = set; then
12281  echo $ECHO_N "(cached) $ECHO_C" >&6
12282else
12283  ac_func_search_save_LIBS=$LIBS
12284cat >conftest.$ac_ext <<_ACEOF
12285/* confdefs.h.  */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h.  */
12290
12291/* Override any GCC internal prototype to avoid an error.
12292   Use char because int might match the return type of a GCC
12293   builtin and then its argument prototype would still apply.  */
12294#ifdef __cplusplus
12295extern "C"
12296#endif
12297char clock_gettime ();
12298int
12299main ()
12300{
12301return clock_gettime ();
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306for ac_lib in '' rt; do
12307  if test -z "$ac_lib"; then
12308    ac_res="none required"
12309  else
12310    ac_res=-l$ac_lib
12311    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12312  fi
12313  rm -f conftest.$ac_objext conftest$ac_exeext
12314if { (ac_try="$ac_link"
12315case "(($ac_try" in
12316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317  *) ac_try_echo=$ac_try;;
12318esac
12319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320  (eval "$ac_link") 2>conftest.er1
12321  ac_status=$?
12322  grep -v '^ *+' conftest.er1 >conftest.err
12323  rm -f conftest.er1
12324  cat conftest.err >&5
12325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326  (exit $ac_status); } &&
12327	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328  { (case "(($ac_try" in
12329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330  *) ac_try_echo=$ac_try;;
12331esac
12332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333  (eval "$ac_try") 2>&5
12334  ac_status=$?
12335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336  (exit $ac_status); }; } &&
12337	 { ac_try='test -s conftest$ac_exeext'
12338  { (case "(($ac_try" in
12339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340  *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343  (eval "$ac_try") 2>&5
12344  ac_status=$?
12345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346  (exit $ac_status); }; }; then
12347  ac_cv_search_clock_gettime=$ac_res
12348else
12349  echo "$as_me: failed program was:" >&5
12350sed 's/^/| /' conftest.$ac_ext >&5
12351
12352
12353fi
12354
12355rm -f core conftest.err conftest.$ac_objext \
12356      conftest$ac_exeext
12357  if test "${ac_cv_search_clock_gettime+set}" = set; then
12358  break
12359fi
12360done
12361if test "${ac_cv_search_clock_gettime+set}" = set; then
12362  :
12363else
12364  ac_cv_search_clock_gettime=no
12365fi
12366rm conftest.$ac_ext
12367LIBS=$ac_func_search_save_LIBS
12368fi
12369{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12370echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12371ac_res=$ac_cv_search_clock_gettime
12372if test "$ac_res" != no; then
12373  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12374
12375fi
12376
12377
12378if test "$llvm_cv_enable_terminfo" = "yes" ; then
12379    { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12380echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12381if test "${ac_cv_search_setupterm+set}" = set; then
12382  echo $ECHO_N "(cached) $ECHO_C" >&6
12383else
12384  ac_func_search_save_LIBS=$LIBS
12385cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h.  */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h.  */
12391
12392/* Override any GCC internal prototype to avoid an error.
12393   Use char because int might match the return type of a GCC
12394   builtin and then its argument prototype would still apply.  */
12395#ifdef __cplusplus
12396extern "C"
12397#endif
12398char setupterm ();
12399int
12400main ()
12401{
12402return setupterm ();
12403  ;
12404  return 0;
12405}
12406_ACEOF
12407for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12408  if test -z "$ac_lib"; then
12409    ac_res="none required"
12410  else
12411    ac_res=-l$ac_lib
12412    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12413  fi
12414  rm -f conftest.$ac_objext conftest$ac_exeext
12415if { (ac_try="$ac_link"
12416case "(($ac_try" in
12417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418  *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421  (eval "$ac_link") 2>conftest.er1
12422  ac_status=$?
12423  grep -v '^ *+' conftest.er1 >conftest.err
12424  rm -f conftest.er1
12425  cat conftest.err >&5
12426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427  (exit $ac_status); } &&
12428	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429  { (case "(($ac_try" in
12430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431  *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434  (eval "$ac_try") 2>&5
12435  ac_status=$?
12436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437  (exit $ac_status); }; } &&
12438	 { ac_try='test -s conftest$ac_exeext'
12439  { (case "(($ac_try" in
12440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441  *) ac_try_echo=$ac_try;;
12442esac
12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444  (eval "$ac_try") 2>&5
12445  ac_status=$?
12446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447  (exit $ac_status); }; }; then
12448  ac_cv_search_setupterm=$ac_res
12449else
12450  echo "$as_me: failed program was:" >&5
12451sed 's/^/| /' conftest.$ac_ext >&5
12452
12453
12454fi
12455
12456rm -f core conftest.err conftest.$ac_objext \
12457      conftest$ac_exeext
12458  if test "${ac_cv_search_setupterm+set}" = set; then
12459  break
12460fi
12461done
12462if test "${ac_cv_search_setupterm+set}" = set; then
12463  :
12464else
12465  ac_cv_search_setupterm=no
12466fi
12467rm conftest.$ac_ext
12468LIBS=$ac_func_search_save_LIBS
12469fi
12470{ echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12471echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12472ac_res=$ac_cv_search_setupterm
12473if test "$ac_res" != no; then
12474  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12475
12476cat >>confdefs.h <<\_ACEOF
12477#define HAVE_TERMINFO 1
12478_ACEOF
12479
12480fi
12481
12482fi
12483
12484if test "$llvm_cv_enable_libffi" = "yes" ; then
12485  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12486echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12487if test "${ac_cv_search_ffi_call+set}" = set; then
12488  echo $ECHO_N "(cached) $ECHO_C" >&6
12489else
12490  ac_func_search_save_LIBS=$LIBS
12491cat >conftest.$ac_ext <<_ACEOF
12492/* confdefs.h.  */
12493_ACEOF
12494cat confdefs.h >>conftest.$ac_ext
12495cat >>conftest.$ac_ext <<_ACEOF
12496/* end confdefs.h.  */
12497
12498/* Override any GCC internal prototype to avoid an error.
12499   Use char because int might match the return type of a GCC
12500   builtin and then its argument prototype would still apply.  */
12501#ifdef __cplusplus
12502extern "C"
12503#endif
12504char ffi_call ();
12505int
12506main ()
12507{
12508return ffi_call ();
12509  ;
12510  return 0;
12511}
12512_ACEOF
12513for ac_lib in '' ffi; do
12514  if test -z "$ac_lib"; then
12515    ac_res="none required"
12516  else
12517    ac_res=-l$ac_lib
12518    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12519  fi
12520  rm -f conftest.$ac_objext conftest$ac_exeext
12521if { (ac_try="$ac_link"
12522case "(($ac_try" in
12523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524  *) ac_try_echo=$ac_try;;
12525esac
12526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527  (eval "$ac_link") 2>conftest.er1
12528  ac_status=$?
12529  grep -v '^ *+' conftest.er1 >conftest.err
12530  rm -f conftest.er1
12531  cat conftest.err >&5
12532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533  (exit $ac_status); } &&
12534	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12535  { (case "(($ac_try" in
12536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537  *) ac_try_echo=$ac_try;;
12538esac
12539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540  (eval "$ac_try") 2>&5
12541  ac_status=$?
12542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543  (exit $ac_status); }; } &&
12544	 { ac_try='test -s conftest$ac_exeext'
12545  { (case "(($ac_try" in
12546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547  *) ac_try_echo=$ac_try;;
12548esac
12549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550  (eval "$ac_try") 2>&5
12551  ac_status=$?
12552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553  (exit $ac_status); }; }; then
12554  ac_cv_search_ffi_call=$ac_res
12555else
12556  echo "$as_me: failed program was:" >&5
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559
12560fi
12561
12562rm -f core conftest.err conftest.$ac_objext \
12563      conftest$ac_exeext
12564  if test "${ac_cv_search_ffi_call+set}" = set; then
12565  break
12566fi
12567done
12568if test "${ac_cv_search_ffi_call+set}" = set; then
12569  :
12570else
12571  ac_cv_search_ffi_call=no
12572fi
12573rm conftest.$ac_ext
12574LIBS=$ac_func_search_save_LIBS
12575fi
12576{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12577echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12578ac_res=$ac_cv_search_ffi_call
12579if test "$ac_res" != no; then
12580  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12581
12582cat >>confdefs.h <<\_ACEOF
12583#define HAVE_FFI_CALL 1
12584_ACEOF
12585
12586else
12587  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12588echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12589   { (exit 1); exit 1; }; }
12590fi
12591
12592fi
12593
12594{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12595echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12596if test "${ac_cv_search_mallinfo+set}" = set; then
12597  echo $ECHO_N "(cached) $ECHO_C" >&6
12598else
12599  ac_func_search_save_LIBS=$LIBS
12600cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h.  */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h.  */
12606
12607/* Override any GCC internal prototype to avoid an error.
12608   Use char because int might match the return type of a GCC
12609   builtin and then its argument prototype would still apply.  */
12610#ifdef __cplusplus
12611extern "C"
12612#endif
12613char mallinfo ();
12614int
12615main ()
12616{
12617return mallinfo ();
12618  ;
12619  return 0;
12620}
12621_ACEOF
12622for ac_lib in '' malloc; do
12623  if test -z "$ac_lib"; then
12624    ac_res="none required"
12625  else
12626    ac_res=-l$ac_lib
12627    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12628  fi
12629  rm -f conftest.$ac_objext conftest$ac_exeext
12630if { (ac_try="$ac_link"
12631case "(($ac_try" in
12632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633  *) ac_try_echo=$ac_try;;
12634esac
12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636  (eval "$ac_link") 2>conftest.er1
12637  ac_status=$?
12638  grep -v '^ *+' conftest.er1 >conftest.err
12639  rm -f conftest.er1
12640  cat conftest.err >&5
12641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642  (exit $ac_status); } &&
12643	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12644  { (case "(($ac_try" in
12645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646  *) ac_try_echo=$ac_try;;
12647esac
12648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649  (eval "$ac_try") 2>&5
12650  ac_status=$?
12651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652  (exit $ac_status); }; } &&
12653	 { ac_try='test -s conftest$ac_exeext'
12654  { (case "(($ac_try" in
12655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656  *) ac_try_echo=$ac_try;;
12657esac
12658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659  (eval "$ac_try") 2>&5
12660  ac_status=$?
12661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662  (exit $ac_status); }; }; then
12663  ac_cv_search_mallinfo=$ac_res
12664else
12665  echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668
12669fi
12670
12671rm -f core conftest.err conftest.$ac_objext \
12672      conftest$ac_exeext
12673  if test "${ac_cv_search_mallinfo+set}" = set; then
12674  break
12675fi
12676done
12677if test "${ac_cv_search_mallinfo+set}" = set; then
12678  :
12679else
12680  ac_cv_search_mallinfo=no
12681fi
12682rm conftest.$ac_ext
12683LIBS=$ac_func_search_save_LIBS
12684fi
12685{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12686echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12687ac_res=$ac_cv_search_mallinfo
12688if test "$ac_res" != no; then
12689  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690
12691cat >>confdefs.h <<\_ACEOF
12692#define HAVE_MALLINFO 1
12693_ACEOF
12694
12695fi
12696
12697
12698if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12699
12700{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12701echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12702if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12703  echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705  ac_check_lib_save_LIBS=$LIBS
12706LIBS="-lpthread  $LIBS"
12707cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h.  */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h.  */
12713
12714/* Override any GCC internal prototype to avoid an error.
12715   Use char because int might match the return type of a GCC
12716   builtin and then its argument prototype would still apply.  */
12717#ifdef __cplusplus
12718extern "C"
12719#endif
12720char pthread_mutex_init ();
12721int
12722main ()
12723{
12724return pthread_mutex_init ();
12725  ;
12726  return 0;
12727}
12728_ACEOF
12729rm -f conftest.$ac_objext conftest$ac_exeext
12730if { (ac_try="$ac_link"
12731case "(($ac_try" in
12732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733  *) ac_try_echo=$ac_try;;
12734esac
12735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736  (eval "$ac_link") 2>conftest.er1
12737  ac_status=$?
12738  grep -v '^ *+' conftest.er1 >conftest.err
12739  rm -f conftest.er1
12740  cat conftest.err >&5
12741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742  (exit $ac_status); } &&
12743	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12744  { (case "(($ac_try" in
12745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746  *) ac_try_echo=$ac_try;;
12747esac
12748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749  (eval "$ac_try") 2>&5
12750  ac_status=$?
12751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752  (exit $ac_status); }; } &&
12753	 { ac_try='test -s conftest$ac_exeext'
12754  { (case "(($ac_try" in
12755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756  *) ac_try_echo=$ac_try;;
12757esac
12758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759  (eval "$ac_try") 2>&5
12760  ac_status=$?
12761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762  (exit $ac_status); }; }; then
12763  ac_cv_lib_pthread_pthread_mutex_init=yes
12764else
12765  echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768	ac_cv_lib_pthread_pthread_mutex_init=no
12769fi
12770
12771rm -f core conftest.err conftest.$ac_objext \
12772      conftest$ac_exeext conftest.$ac_ext
12773LIBS=$ac_check_lib_save_LIBS
12774fi
12775{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12776echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12777if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12778  cat >>confdefs.h <<_ACEOF
12779#define HAVE_LIBPTHREAD 1
12780_ACEOF
12781
12782  LIBS="-lpthread $LIBS"
12783
12784fi
12785
12786  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12787echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12788if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12789  echo $ECHO_N "(cached) $ECHO_C" >&6
12790else
12791  ac_func_search_save_LIBS=$LIBS
12792cat >conftest.$ac_ext <<_ACEOF
12793/* confdefs.h.  */
12794_ACEOF
12795cat confdefs.h >>conftest.$ac_ext
12796cat >>conftest.$ac_ext <<_ACEOF
12797/* end confdefs.h.  */
12798
12799/* Override any GCC internal prototype to avoid an error.
12800   Use char because int might match the return type of a GCC
12801   builtin and then its argument prototype would still apply.  */
12802#ifdef __cplusplus
12803extern "C"
12804#endif
12805char pthread_mutex_lock ();
12806int
12807main ()
12808{
12809return pthread_mutex_lock ();
12810  ;
12811  return 0;
12812}
12813_ACEOF
12814for ac_lib in '' pthread; do
12815  if test -z "$ac_lib"; then
12816    ac_res="none required"
12817  else
12818    ac_res=-l$ac_lib
12819    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12820  fi
12821  rm -f conftest.$ac_objext conftest$ac_exeext
12822if { (ac_try="$ac_link"
12823case "(($ac_try" in
12824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825  *) ac_try_echo=$ac_try;;
12826esac
12827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828  (eval "$ac_link") 2>conftest.er1
12829  ac_status=$?
12830  grep -v '^ *+' conftest.er1 >conftest.err
12831  rm -f conftest.er1
12832  cat conftest.err >&5
12833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834  (exit $ac_status); } &&
12835	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12836  { (case "(($ac_try" in
12837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838  *) ac_try_echo=$ac_try;;
12839esac
12840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841  (eval "$ac_try") 2>&5
12842  ac_status=$?
12843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844  (exit $ac_status); }; } &&
12845	 { ac_try='test -s conftest$ac_exeext'
12846  { (case "(($ac_try" in
12847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848  *) ac_try_echo=$ac_try;;
12849esac
12850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851  (eval "$ac_try") 2>&5
12852  ac_status=$?
12853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854  (exit $ac_status); }; }; then
12855  ac_cv_search_pthread_mutex_lock=$ac_res
12856else
12857  echo "$as_me: failed program was:" >&5
12858sed 's/^/| /' conftest.$ac_ext >&5
12859
12860
12861fi
12862
12863rm -f core conftest.err conftest.$ac_objext \
12864      conftest$ac_exeext
12865  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12866  break
12867fi
12868done
12869if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12870  :
12871else
12872  ac_cv_search_pthread_mutex_lock=no
12873fi
12874rm conftest.$ac_ext
12875LIBS=$ac_func_search_save_LIBS
12876fi
12877{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12878echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12879ac_res=$ac_cv_search_pthread_mutex_lock
12880if test "$ac_res" != no; then
12881  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12882
12883cat >>confdefs.h <<\_ACEOF
12884#define HAVE_PTHREAD_MUTEX_LOCK 1
12885_ACEOF
12886
12887fi
12888
12889  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12890echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12891if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12892  echo $ECHO_N "(cached) $ECHO_C" >&6
12893else
12894  ac_func_search_save_LIBS=$LIBS
12895cat >conftest.$ac_ext <<_ACEOF
12896/* confdefs.h.  */
12897_ACEOF
12898cat confdefs.h >>conftest.$ac_ext
12899cat >>conftest.$ac_ext <<_ACEOF
12900/* end confdefs.h.  */
12901
12902/* Override any GCC internal prototype to avoid an error.
12903   Use char because int might match the return type of a GCC
12904   builtin and then its argument prototype would still apply.  */
12905#ifdef __cplusplus
12906extern "C"
12907#endif
12908char pthread_rwlock_init ();
12909int
12910main ()
12911{
12912return pthread_rwlock_init ();
12913  ;
12914  return 0;
12915}
12916_ACEOF
12917for ac_lib in '' pthread; do
12918  if test -z "$ac_lib"; then
12919    ac_res="none required"
12920  else
12921    ac_res=-l$ac_lib
12922    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12923  fi
12924  rm -f conftest.$ac_objext conftest$ac_exeext
12925if { (ac_try="$ac_link"
12926case "(($ac_try" in
12927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12928  *) ac_try_echo=$ac_try;;
12929esac
12930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12931  (eval "$ac_link") 2>conftest.er1
12932  ac_status=$?
12933  grep -v '^ *+' conftest.er1 >conftest.err
12934  rm -f conftest.er1
12935  cat conftest.err >&5
12936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937  (exit $ac_status); } &&
12938	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12939  { (case "(($ac_try" in
12940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941  *) ac_try_echo=$ac_try;;
12942esac
12943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944  (eval "$ac_try") 2>&5
12945  ac_status=$?
12946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947  (exit $ac_status); }; } &&
12948	 { ac_try='test -s conftest$ac_exeext'
12949  { (case "(($ac_try" in
12950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951  *) ac_try_echo=$ac_try;;
12952esac
12953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954  (eval "$ac_try") 2>&5
12955  ac_status=$?
12956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957  (exit $ac_status); }; }; then
12958  ac_cv_search_pthread_rwlock_init=$ac_res
12959else
12960  echo "$as_me: failed program was:" >&5
12961sed 's/^/| /' conftest.$ac_ext >&5
12962
12963
12964fi
12965
12966rm -f core conftest.err conftest.$ac_objext \
12967      conftest$ac_exeext
12968  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12969  break
12970fi
12971done
12972if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12973  :
12974else
12975  ac_cv_search_pthread_rwlock_init=no
12976fi
12977rm conftest.$ac_ext
12978LIBS=$ac_func_search_save_LIBS
12979fi
12980{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12981echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12982ac_res=$ac_cv_search_pthread_rwlock_init
12983if test "$ac_res" != no; then
12984  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12985
12986cat >>confdefs.h <<\_ACEOF
12987#define HAVE_PTHREAD_RWLOCK_INIT 1
12988_ACEOF
12989
12990fi
12991
12992  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12993echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12994if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12995  echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997  ac_func_search_save_LIBS=$LIBS
12998cat >conftest.$ac_ext <<_ACEOF
12999/* confdefs.h.  */
13000_ACEOF
13001cat confdefs.h >>conftest.$ac_ext
13002cat >>conftest.$ac_ext <<_ACEOF
13003/* end confdefs.h.  */
13004
13005/* Override any GCC internal prototype to avoid an error.
13006   Use char because int might match the return type of a GCC
13007   builtin and then its argument prototype would still apply.  */
13008#ifdef __cplusplus
13009extern "C"
13010#endif
13011char pthread_getspecific ();
13012int
13013main ()
13014{
13015return pthread_getspecific ();
13016  ;
13017  return 0;
13018}
13019_ACEOF
13020for ac_lib in '' pthread; do
13021  if test -z "$ac_lib"; then
13022    ac_res="none required"
13023  else
13024    ac_res=-l$ac_lib
13025    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13026  fi
13027  rm -f conftest.$ac_objext conftest$ac_exeext
13028if { (ac_try="$ac_link"
13029case "(($ac_try" in
13030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031  *) ac_try_echo=$ac_try;;
13032esac
13033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034  (eval "$ac_link") 2>conftest.er1
13035  ac_status=$?
13036  grep -v '^ *+' conftest.er1 >conftest.err
13037  rm -f conftest.er1
13038  cat conftest.err >&5
13039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040  (exit $ac_status); } &&
13041	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13042  { (case "(($ac_try" in
13043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044  *) ac_try_echo=$ac_try;;
13045esac
13046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047  (eval "$ac_try") 2>&5
13048  ac_status=$?
13049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050  (exit $ac_status); }; } &&
13051	 { ac_try='test -s conftest$ac_exeext'
13052  { (case "(($ac_try" in
13053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054  *) ac_try_echo=$ac_try;;
13055esac
13056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057  (eval "$ac_try") 2>&5
13058  ac_status=$?
13059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060  (exit $ac_status); }; }; then
13061  ac_cv_search_pthread_getspecific=$ac_res
13062else
13063  echo "$as_me: failed program was:" >&5
13064sed 's/^/| /' conftest.$ac_ext >&5
13065
13066
13067fi
13068
13069rm -f core conftest.err conftest.$ac_objext \
13070      conftest$ac_exeext
13071  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13072  break
13073fi
13074done
13075if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13076  :
13077else
13078  ac_cv_search_pthread_getspecific=no
13079fi
13080rm conftest.$ac_ext
13081LIBS=$ac_func_search_save_LIBS
13082fi
13083{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13084echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13085ac_res=$ac_cv_search_pthread_getspecific
13086if test "$ac_res" != no; then
13087  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13088
13089cat >>confdefs.h <<\_ACEOF
13090#define HAVE_PTHREAD_GETSPECIFIC 1
13091_ACEOF
13092
13093fi
13094
13095fi
13096
13097if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13098
13099{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13100echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13101if test "${ac_cv_lib_z_compress2+set}" = set; then
13102  echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104  ac_check_lib_save_LIBS=$LIBS
13105LIBS="-lz  $LIBS"
13106cat >conftest.$ac_ext <<_ACEOF
13107/* confdefs.h.  */
13108_ACEOF
13109cat confdefs.h >>conftest.$ac_ext
13110cat >>conftest.$ac_ext <<_ACEOF
13111/* end confdefs.h.  */
13112
13113/* Override any GCC internal prototype to avoid an error.
13114   Use char because int might match the return type of a GCC
13115   builtin and then its argument prototype would still apply.  */
13116#ifdef __cplusplus
13117extern "C"
13118#endif
13119char compress2 ();
13120int
13121main ()
13122{
13123return compress2 ();
13124  ;
13125  return 0;
13126}
13127_ACEOF
13128rm -f conftest.$ac_objext conftest$ac_exeext
13129if { (ac_try="$ac_link"
13130case "(($ac_try" in
13131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132  *) ac_try_echo=$ac_try;;
13133esac
13134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135  (eval "$ac_link") 2>conftest.er1
13136  ac_status=$?
13137  grep -v '^ *+' conftest.er1 >conftest.err
13138  rm -f conftest.er1
13139  cat conftest.err >&5
13140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141  (exit $ac_status); } &&
13142	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143  { (case "(($ac_try" in
13144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145  *) ac_try_echo=$ac_try;;
13146esac
13147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148  (eval "$ac_try") 2>&5
13149  ac_status=$?
13150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151  (exit $ac_status); }; } &&
13152	 { ac_try='test -s conftest$ac_exeext'
13153  { (case "(($ac_try" in
13154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155  *) ac_try_echo=$ac_try;;
13156esac
13157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158  (eval "$ac_try") 2>&5
13159  ac_status=$?
13160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161  (exit $ac_status); }; }; then
13162  ac_cv_lib_z_compress2=yes
13163else
13164  echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167	ac_cv_lib_z_compress2=no
13168fi
13169
13170rm -f core conftest.err conftest.$ac_objext \
13171      conftest$ac_exeext conftest.$ac_ext
13172LIBS=$ac_check_lib_save_LIBS
13173fi
13174{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13175echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13176if test $ac_cv_lib_z_compress2 = yes; then
13177  cat >>confdefs.h <<_ACEOF
13178#define HAVE_LIBZ 1
13179_ACEOF
13180
13181  LIBS="-lz $LIBS"
13182
13183fi
13184
13185fi
13186
13187
13188# Check whether --with-udis86 was given.
13189if test "${with_udis86+set}" = set; then
13190  withval=$with_udis86;
13191      USE_UDIS86=1
13192
13193      case "$withval" in
13194        /usr/lib|yes) ;;
13195        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13196      esac
13197
13198{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13199echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13200if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13201  echo $ECHO_N "(cached) $ECHO_C" >&6
13202else
13203  ac_check_lib_save_LIBS=$LIBS
13204LIBS="-ludis86  $LIBS"
13205cat >conftest.$ac_ext <<_ACEOF
13206/* confdefs.h.  */
13207_ACEOF
13208cat confdefs.h >>conftest.$ac_ext
13209cat >>conftest.$ac_ext <<_ACEOF
13210/* end confdefs.h.  */
13211
13212/* Override any GCC internal prototype to avoid an error.
13213   Use char because int might match the return type of a GCC
13214   builtin and then its argument prototype would still apply.  */
13215#ifdef __cplusplus
13216extern "C"
13217#endif
13218char ud_init ();
13219int
13220main ()
13221{
13222return ud_init ();
13223  ;
13224  return 0;
13225}
13226_ACEOF
13227rm -f conftest.$ac_objext conftest$ac_exeext
13228if { (ac_try="$ac_link"
13229case "(($ac_try" in
13230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231  *) ac_try_echo=$ac_try;;
13232esac
13233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234  (eval "$ac_link") 2>conftest.er1
13235  ac_status=$?
13236  grep -v '^ *+' conftest.er1 >conftest.err
13237  rm -f conftest.er1
13238  cat conftest.err >&5
13239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240  (exit $ac_status); } &&
13241	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13242  { (case "(($ac_try" in
13243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244  *) ac_try_echo=$ac_try;;
13245esac
13246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247  (eval "$ac_try") 2>&5
13248  ac_status=$?
13249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250  (exit $ac_status); }; } &&
13251	 { ac_try='test -s conftest$ac_exeext'
13252  { (case "(($ac_try" in
13253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254  *) ac_try_echo=$ac_try;;
13255esac
13256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257  (eval "$ac_try") 2>&5
13258  ac_status=$?
13259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260  (exit $ac_status); }; }; then
13261  ac_cv_lib_udis86_ud_init=yes
13262else
13263  echo "$as_me: failed program was:" >&5
13264sed 's/^/| /' conftest.$ac_ext >&5
13265
13266	ac_cv_lib_udis86_ud_init=no
13267fi
13268
13269rm -f core conftest.err conftest.$ac_objext \
13270      conftest$ac_exeext conftest.$ac_ext
13271LIBS=$ac_check_lib_save_LIBS
13272fi
13273{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13274echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13275if test $ac_cv_lib_udis86_ud_init = yes; then
13276  cat >>confdefs.h <<_ACEOF
13277#define HAVE_LIBUDIS86 1
13278_ACEOF
13279
13280  LIBS="-ludis86 $LIBS"
13281
13282else
13283
13284        echo "Error! You need to have libudis86 around."
13285        exit -1
13286
13287fi
13288
13289
13290else
13291  USE_UDIS86=0
13292
13293fi
13294
13295
13296cat >>confdefs.h <<_ACEOF
13297#define USE_UDIS86 $USE_UDIS86
13298_ACEOF
13299
13300
13301
13302# Check whether --with-oprofile was given.
13303if test "${with_oprofile+set}" = set; then
13304  withval=$with_oprofile;
13305      USE_OPROFILE=1
13306
13307      case "$withval" in
13308        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13309        no) llvm_cv_oppath=
13310            USE_OPROFILE=0
13311 ;;
13312        *) llvm_cv_oppath="${withval}/lib/oprofile"
13313           CPPFLAGS="-I${withval}/include";;
13314      esac
13315      case $llvm_cv_os_type in
13316        Linux)
13317          if test -n "$llvm_cv_oppath" ; then
13318            LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13319                                                            { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13320echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13321if test "${ac_cv_search_bfd_init+set}" = set; then
13322  echo $ECHO_N "(cached) $ECHO_C" >&6
13323else
13324  ac_func_search_save_LIBS=$LIBS
13325cat >conftest.$ac_ext <<_ACEOF
13326/* confdefs.h.  */
13327_ACEOF
13328cat confdefs.h >>conftest.$ac_ext
13329cat >>conftest.$ac_ext <<_ACEOF
13330/* end confdefs.h.  */
13331
13332/* Override any GCC internal prototype to avoid an error.
13333   Use char because int might match the return type of a GCC
13334   builtin and then its argument prototype would still apply.  */
13335#ifdef __cplusplus
13336extern "C"
13337#endif
13338char bfd_init ();
13339int
13340main ()
13341{
13342return bfd_init ();
13343  ;
13344  return 0;
13345}
13346_ACEOF
13347for ac_lib in '' bfd; do
13348  if test -z "$ac_lib"; then
13349    ac_res="none required"
13350  else
13351    ac_res=-l$ac_lib
13352    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13353  fi
13354  rm -f conftest.$ac_objext conftest$ac_exeext
13355if { (ac_try="$ac_link"
13356case "(($ac_try" in
13357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358  *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361  (eval "$ac_link") 2>conftest.er1
13362  ac_status=$?
13363  grep -v '^ *+' conftest.er1 >conftest.err
13364  rm -f conftest.er1
13365  cat conftest.err >&5
13366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367  (exit $ac_status); } &&
13368	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13369  { (case "(($ac_try" in
13370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371  *) ac_try_echo=$ac_try;;
13372esac
13373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374  (eval "$ac_try") 2>&5
13375  ac_status=$?
13376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377  (exit $ac_status); }; } &&
13378	 { ac_try='test -s conftest$ac_exeext'
13379  { (case "(($ac_try" in
13380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381  *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384  (eval "$ac_try") 2>&5
13385  ac_status=$?
13386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387  (exit $ac_status); }; }; then
13388  ac_cv_search_bfd_init=$ac_res
13389else
13390  echo "$as_me: failed program was:" >&5
13391sed 's/^/| /' conftest.$ac_ext >&5
13392
13393
13394fi
13395
13396rm -f core conftest.err conftest.$ac_objext \
13397      conftest$ac_exeext
13398  if test "${ac_cv_search_bfd_init+set}" = set; then
13399  break
13400fi
13401done
13402if test "${ac_cv_search_bfd_init+set}" = set; then
13403  :
13404else
13405  ac_cv_search_bfd_init=no
13406fi
13407rm conftest.$ac_ext
13408LIBS=$ac_func_search_save_LIBS
13409fi
13410{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13411echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13412ac_res=$ac_cv_search_bfd_init
13413if test "$ac_res" != no; then
13414  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13415
13416fi
13417
13418            { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13419echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13420if test "${ac_cv_search_op_open_agent+set}" = set; then
13421  echo $ECHO_N "(cached) $ECHO_C" >&6
13422else
13423  ac_func_search_save_LIBS=$LIBS
13424cat >conftest.$ac_ext <<_ACEOF
13425/* confdefs.h.  */
13426_ACEOF
13427cat confdefs.h >>conftest.$ac_ext
13428cat >>conftest.$ac_ext <<_ACEOF
13429/* end confdefs.h.  */
13430
13431/* Override any GCC internal prototype to avoid an error.
13432   Use char because int might match the return type of a GCC
13433   builtin and then its argument prototype would still apply.  */
13434#ifdef __cplusplus
13435extern "C"
13436#endif
13437char op_open_agent ();
13438int
13439main ()
13440{
13441return op_open_agent ();
13442  ;
13443  return 0;
13444}
13445_ACEOF
13446for ac_lib in '' opagent; do
13447  if test -z "$ac_lib"; then
13448    ac_res="none required"
13449  else
13450    ac_res=-l$ac_lib
13451    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13452  fi
13453  rm -f conftest.$ac_objext conftest$ac_exeext
13454if { (ac_try="$ac_link"
13455case "(($ac_try" in
13456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457  *) ac_try_echo=$ac_try;;
13458esac
13459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460  (eval "$ac_link") 2>conftest.er1
13461  ac_status=$?
13462  grep -v '^ *+' conftest.er1 >conftest.err
13463  rm -f conftest.er1
13464  cat conftest.err >&5
13465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466  (exit $ac_status); } &&
13467	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13468  { (case "(($ac_try" in
13469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470  *) ac_try_echo=$ac_try;;
13471esac
13472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473  (eval "$ac_try") 2>&5
13474  ac_status=$?
13475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476  (exit $ac_status); }; } &&
13477	 { ac_try='test -s conftest$ac_exeext'
13478  { (case "(($ac_try" in
13479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480  *) ac_try_echo=$ac_try;;
13481esac
13482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483  (eval "$ac_try") 2>&5
13484  ac_status=$?
13485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486  (exit $ac_status); }; }; then
13487  ac_cv_search_op_open_agent=$ac_res
13488else
13489  echo "$as_me: failed program was:" >&5
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
13492
13493fi
13494
13495rm -f core conftest.err conftest.$ac_objext \
13496      conftest$ac_exeext
13497  if test "${ac_cv_search_op_open_agent+set}" = set; then
13498  break
13499fi
13500done
13501if test "${ac_cv_search_op_open_agent+set}" = set; then
13502  :
13503else
13504  ac_cv_search_op_open_agent=no
13505fi
13506rm conftest.$ac_ext
13507LIBS=$ac_func_search_save_LIBS
13508fi
13509{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13510echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13511ac_res=$ac_cv_search_op_open_agent
13512if test "$ac_res" != no; then
13513  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13514
13515else
13516
13517              echo "Error! You need to have libopagent around."
13518              exit -1
13519
13520fi
13521
13522            if test "${ac_cv_header_opagent_h+set}" = set; then
13523  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13524echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13525if test "${ac_cv_header_opagent_h+set}" = set; then
13526  echo $ECHO_N "(cached) $ECHO_C" >&6
13527fi
13528{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13529echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13530else
13531  # Is the header compilable?
13532{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13533echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13534cat >conftest.$ac_ext <<_ACEOF
13535/* confdefs.h.  */
13536_ACEOF
13537cat confdefs.h >>conftest.$ac_ext
13538cat >>conftest.$ac_ext <<_ACEOF
13539/* end confdefs.h.  */
13540$ac_includes_default
13541#include <opagent.h>
13542_ACEOF
13543rm -f conftest.$ac_objext
13544if { (ac_try="$ac_compile"
13545case "(($ac_try" in
13546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547  *) ac_try_echo=$ac_try;;
13548esac
13549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550  (eval "$ac_compile") 2>conftest.er1
13551  ac_status=$?
13552  grep -v '^ *+' conftest.er1 >conftest.err
13553  rm -f conftest.er1
13554  cat conftest.err >&5
13555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556  (exit $ac_status); } &&
13557	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558  { (case "(($ac_try" in
13559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560  *) ac_try_echo=$ac_try;;
13561esac
13562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563  (eval "$ac_try") 2>&5
13564  ac_status=$?
13565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566  (exit $ac_status); }; } &&
13567	 { ac_try='test -s conftest.$ac_objext'
13568  { (case "(($ac_try" in
13569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570  *) ac_try_echo=$ac_try;;
13571esac
13572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573  (eval "$ac_try") 2>&5
13574  ac_status=$?
13575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576  (exit $ac_status); }; }; then
13577  ac_header_compiler=yes
13578else
13579  echo "$as_me: failed program was:" >&5
13580sed 's/^/| /' conftest.$ac_ext >&5
13581
13582	ac_header_compiler=no
13583fi
13584
13585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13587echo "${ECHO_T}$ac_header_compiler" >&6; }
13588
13589# Is the header present?
13590{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13591echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h.  */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h.  */
13598#include <opagent.h>
13599_ACEOF
13600if { (ac_try="$ac_cpp conftest.$ac_ext"
13601case "(($ac_try" in
13602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603  *) ac_try_echo=$ac_try;;
13604esac
13605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13607  ac_status=$?
13608  grep -v '^ *+' conftest.er1 >conftest.err
13609  rm -f conftest.er1
13610  cat conftest.err >&5
13611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612  (exit $ac_status); } >/dev/null; then
13613  if test -s conftest.err; then
13614    ac_cpp_err=$ac_c_preproc_warn_flag
13615    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13616  else
13617    ac_cpp_err=
13618  fi
13619else
13620  ac_cpp_err=yes
13621fi
13622if test -z "$ac_cpp_err"; then
13623  ac_header_preproc=yes
13624else
13625  echo "$as_me: failed program was:" >&5
13626sed 's/^/| /' conftest.$ac_ext >&5
13627
13628  ac_header_preproc=no
13629fi
13630
13631rm -f conftest.err conftest.$ac_ext
13632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633echo "${ECHO_T}$ac_header_preproc" >&6; }
13634
13635# So?  What about this header?
13636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637  yes:no: )
13638    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13639echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13641echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13642    ac_header_preproc=yes
13643    ;;
13644  no:yes:* )
13645    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13646echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13647    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13648echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13649    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13650echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13651    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13652echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13653    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13654echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13655    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13656echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13657    ( cat <<\_ASBOX
13658## ------------------------------------ ##
13659## Report this to http://llvm.org/bugs/ ##
13660## ------------------------------------ ##
13661_ASBOX
13662     ) | sed "s/^/$as_me: WARNING:     /" >&2
13663    ;;
13664esac
13665{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13666echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13667if test "${ac_cv_header_opagent_h+set}" = set; then
13668  echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670  ac_cv_header_opagent_h=$ac_header_preproc
13671fi
13672{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13673echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13674
13675fi
13676if test $ac_cv_header_opagent_h = yes; then
13677  :
13678else
13679
13680              echo "Error! You need to have opagent.h around."
13681              exit -1
13682
13683fi
13684
13685
13686          fi ;;
13687        *)
13688          { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13689echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13690   { (exit 1); exit 1; }; } ;;
13691      esac
13692
13693else
13694
13695      USE_OPROFILE=0
13696
13697
13698fi
13699
13700
13701cat >>confdefs.h <<_ACEOF
13702#define LLVM_USE_OPROFILE $USE_OPROFILE
13703_ACEOF
13704
13705
13706
13707# Check whether --with-intel-jitevents was given.
13708if test "${with_intel_jitevents+set}" = set; then
13709  withval=$with_intel_jitevents;
13710       case "$withval" in
13711          yes) USE_INTEL_JITEVENTS=1
13712;;
13713          no)  USE_INTEL_JITEVENTS=0
13714;;
13715          *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13716echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13717   { (exit 1); exit 1; }; };;
13718       esac
13719
13720      case $llvm_cv_os_type in
13721        Linux|Win32|Cygwin|MingW) ;;
13722        *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13723echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13724   { (exit 1); exit 1; }; };;
13725      esac
13726
13727      case "$llvm_cv_target_arch" in
13728        x86|x86_64) ;;
13729        *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13730echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13731   { (exit 1); exit 1; }; };;
13732      esac
13733
13734else
13735
13736      USE_INTEL_JITEVENTS=0
13737
13738
13739fi
13740
13741
13742cat >>confdefs.h <<_ACEOF
13743#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13744_ACEOF
13745
13746
13747for ac_prog in xml2-config
13748do
13749  # Extract the first word of "$ac_prog", so it can be a program name with args.
13750set dummy $ac_prog; ac_word=$2
13751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13753if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13754  echo $ECHO_N "(cached) $ECHO_C" >&6
13755else
13756  if test -n "$XML2CONFIG"; then
13757  ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13758else
13759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760for as_dir in $PATH
13761do
13762  IFS=$as_save_IFS
13763  test -z "$as_dir" && as_dir=.
13764  for ac_exec_ext in '' $ac_executable_extensions; do
13765  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13766    ac_cv_prog_XML2CONFIG="$ac_prog"
13767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13768    break 2
13769  fi
13770done
13771done
13772IFS=$as_save_IFS
13773
13774fi
13775fi
13776XML2CONFIG=$ac_cv_prog_XML2CONFIG
13777if test -n "$XML2CONFIG"; then
13778  { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13779echo "${ECHO_T}$XML2CONFIG" >&6; }
13780else
13781  { echo "$as_me:$LINENO: result: no" >&5
13782echo "${ECHO_T}no" >&6; }
13783fi
13784
13785
13786  test -n "$XML2CONFIG" && break
13787done
13788
13789
13790{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13791echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13792if test "x$XML2CONFIG" = "x"; then
13793 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13794echo "${ECHO_T}xml2-config not found" >&6; }
13795else
13796 LIBXML2_INC=`$XML2CONFIG --cflags`
13797 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13798echo "${ECHO_T}$LIBXML2_INC" >&6; }
13799 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13800echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13801if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13802  echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804  ac_check_lib_save_LIBS=$LIBS
13805LIBS="-lxml2  $LIBS"
13806cat >conftest.$ac_ext <<_ACEOF
13807/* confdefs.h.  */
13808_ACEOF
13809cat confdefs.h >>conftest.$ac_ext
13810cat >>conftest.$ac_ext <<_ACEOF
13811/* end confdefs.h.  */
13812
13813/* Override any GCC internal prototype to avoid an error.
13814   Use char because int might match the return type of a GCC
13815   builtin and then its argument prototype would still apply.  */
13816#ifdef __cplusplus
13817extern "C"
13818#endif
13819char xmlReadFile ();
13820int
13821main ()
13822{
13823return xmlReadFile ();
13824  ;
13825  return 0;
13826}
13827_ACEOF
13828rm -f conftest.$ac_objext conftest$ac_exeext
13829if { (ac_try="$ac_link"
13830case "(($ac_try" in
13831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832  *) ac_try_echo=$ac_try;;
13833esac
13834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835  (eval "$ac_link") 2>conftest.er1
13836  ac_status=$?
13837  grep -v '^ *+' conftest.er1 >conftest.err
13838  rm -f conftest.er1
13839  cat conftest.err >&5
13840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841  (exit $ac_status); } &&
13842	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843  { (case "(($ac_try" in
13844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845  *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848  (eval "$ac_try") 2>&5
13849  ac_status=$?
13850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851  (exit $ac_status); }; } &&
13852	 { ac_try='test -s conftest$ac_exeext'
13853  { (case "(($ac_try" in
13854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855  *) ac_try_echo=$ac_try;;
13856esac
13857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858  (eval "$ac_try") 2>&5
13859  ac_status=$?
13860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861  (exit $ac_status); }; }; then
13862  ac_cv_lib_xml2_xmlReadFile=yes
13863else
13864  echo "$as_me: failed program was:" >&5
13865sed 's/^/| /' conftest.$ac_ext >&5
13866
13867	ac_cv_lib_xml2_xmlReadFile=no
13868fi
13869
13870rm -f core conftest.err conftest.$ac_objext \
13871      conftest$ac_exeext conftest.$ac_ext
13872LIBS=$ac_check_lib_save_LIBS
13873fi
13874{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13875echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13876if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13877
13878cat >>confdefs.h <<\_ACEOF
13879#define CLANG_HAVE_LIBXML 1
13880_ACEOF
13881
13882                                LIBXML2_LIBS="-lxml2"
13883fi
13884
13885fi
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895ac_header_dirent=no
13896for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13897  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13898{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13899echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13901  echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903  cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h.  */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h.  */
13909#include <sys/types.h>
13910#include <$ac_hdr>
13911
13912int
13913main ()
13914{
13915if ((DIR *) 0)
13916return 0;
13917  ;
13918  return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext
13922if { (ac_try="$ac_compile"
13923case "(($ac_try" in
13924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925  *) ac_try_echo=$ac_try;;
13926esac
13927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928  (eval "$ac_compile") 2>conftest.er1
13929  ac_status=$?
13930  grep -v '^ *+' conftest.er1 >conftest.err
13931  rm -f conftest.er1
13932  cat conftest.err >&5
13933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934  (exit $ac_status); } &&
13935	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936  { (case "(($ac_try" in
13937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938  *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941  (eval "$ac_try") 2>&5
13942  ac_status=$?
13943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944  (exit $ac_status); }; } &&
13945	 { ac_try='test -s conftest.$ac_objext'
13946  { (case "(($ac_try" in
13947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948  *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951  (eval "$ac_try") 2>&5
13952  ac_status=$?
13953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954  (exit $ac_status); }; }; then
13955  eval "$as_ac_Header=yes"
13956else
13957  echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
13959
13960	eval "$as_ac_Header=no"
13961fi
13962
13963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964fi
13965ac_res=`eval echo '${'$as_ac_Header'}'`
13966	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13967echo "${ECHO_T}$ac_res" >&6; }
13968if test `eval echo '${'$as_ac_Header'}'` = yes; then
13969  cat >>confdefs.h <<_ACEOF
13970#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13971_ACEOF
13972
13973ac_header_dirent=$ac_hdr; break
13974fi
13975
13976done
13977# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13978if test $ac_header_dirent = dirent.h; then
13979  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13980echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13981if test "${ac_cv_search_opendir+set}" = set; then
13982  echo $ECHO_N "(cached) $ECHO_C" >&6
13983else
13984  ac_func_search_save_LIBS=$LIBS
13985cat >conftest.$ac_ext <<_ACEOF
13986/* confdefs.h.  */
13987_ACEOF
13988cat confdefs.h >>conftest.$ac_ext
13989cat >>conftest.$ac_ext <<_ACEOF
13990/* end confdefs.h.  */
13991
13992/* Override any GCC internal prototype to avoid an error.
13993   Use char because int might match the return type of a GCC
13994   builtin and then its argument prototype would still apply.  */
13995#ifdef __cplusplus
13996extern "C"
13997#endif
13998char opendir ();
13999int
14000main ()
14001{
14002return opendir ();
14003  ;
14004  return 0;
14005}
14006_ACEOF
14007for ac_lib in '' dir; do
14008  if test -z "$ac_lib"; then
14009    ac_res="none required"
14010  else
14011    ac_res=-l$ac_lib
14012    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14013  fi
14014  rm -f conftest.$ac_objext conftest$ac_exeext
14015if { (ac_try="$ac_link"
14016case "(($ac_try" in
14017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018  *) ac_try_echo=$ac_try;;
14019esac
14020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021  (eval "$ac_link") 2>conftest.er1
14022  ac_status=$?
14023  grep -v '^ *+' conftest.er1 >conftest.err
14024  rm -f conftest.er1
14025  cat conftest.err >&5
14026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027  (exit $ac_status); } &&
14028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14029  { (case "(($ac_try" in
14030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031  *) ac_try_echo=$ac_try;;
14032esac
14033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034  (eval "$ac_try") 2>&5
14035  ac_status=$?
14036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037  (exit $ac_status); }; } &&
14038	 { ac_try='test -s conftest$ac_exeext'
14039  { (case "(($ac_try" in
14040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041  *) ac_try_echo=$ac_try;;
14042esac
14043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044  (eval "$ac_try") 2>&5
14045  ac_status=$?
14046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047  (exit $ac_status); }; }; then
14048  ac_cv_search_opendir=$ac_res
14049else
14050  echo "$as_me: failed program was:" >&5
14051sed 's/^/| /' conftest.$ac_ext >&5
14052
14053
14054fi
14055
14056rm -f core conftest.err conftest.$ac_objext \
14057      conftest$ac_exeext
14058  if test "${ac_cv_search_opendir+set}" = set; then
14059  break
14060fi
14061done
14062if test "${ac_cv_search_opendir+set}" = set; then
14063  :
14064else
14065  ac_cv_search_opendir=no
14066fi
14067rm conftest.$ac_ext
14068LIBS=$ac_func_search_save_LIBS
14069fi
14070{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14071echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14072ac_res=$ac_cv_search_opendir
14073if test "$ac_res" != no; then
14074  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14075
14076fi
14077
14078else
14079  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14080echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14081if test "${ac_cv_search_opendir+set}" = set; then
14082  echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084  ac_func_search_save_LIBS=$LIBS
14085cat >conftest.$ac_ext <<_ACEOF
14086/* confdefs.h.  */
14087_ACEOF
14088cat confdefs.h >>conftest.$ac_ext
14089cat >>conftest.$ac_ext <<_ACEOF
14090/* end confdefs.h.  */
14091
14092/* Override any GCC internal prototype to avoid an error.
14093   Use char because int might match the return type of a GCC
14094   builtin and then its argument prototype would still apply.  */
14095#ifdef __cplusplus
14096extern "C"
14097#endif
14098char opendir ();
14099int
14100main ()
14101{
14102return opendir ();
14103  ;
14104  return 0;
14105}
14106_ACEOF
14107for ac_lib in '' x; do
14108  if test -z "$ac_lib"; then
14109    ac_res="none required"
14110  else
14111    ac_res=-l$ac_lib
14112    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14113  fi
14114  rm -f conftest.$ac_objext conftest$ac_exeext
14115if { (ac_try="$ac_link"
14116case "(($ac_try" in
14117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118  *) ac_try_echo=$ac_try;;
14119esac
14120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121  (eval "$ac_link") 2>conftest.er1
14122  ac_status=$?
14123  grep -v '^ *+' conftest.er1 >conftest.err
14124  rm -f conftest.er1
14125  cat conftest.err >&5
14126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127  (exit $ac_status); } &&
14128	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14129  { (case "(($ac_try" in
14130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131  *) ac_try_echo=$ac_try;;
14132esac
14133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134  (eval "$ac_try") 2>&5
14135  ac_status=$?
14136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137  (exit $ac_status); }; } &&
14138	 { ac_try='test -s conftest$ac_exeext'
14139  { (case "(($ac_try" in
14140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141  *) ac_try_echo=$ac_try;;
14142esac
14143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144  (eval "$ac_try") 2>&5
14145  ac_status=$?
14146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147  (exit $ac_status); }; }; then
14148  ac_cv_search_opendir=$ac_res
14149else
14150  echo "$as_me: failed program was:" >&5
14151sed 's/^/| /' conftest.$ac_ext >&5
14152
14153
14154fi
14155
14156rm -f core conftest.err conftest.$ac_objext \
14157      conftest$ac_exeext
14158  if test "${ac_cv_search_opendir+set}" = set; then
14159  break
14160fi
14161done
14162if test "${ac_cv_search_opendir+set}" = set; then
14163  :
14164else
14165  ac_cv_search_opendir=no
14166fi
14167rm conftest.$ac_ext
14168LIBS=$ac_func_search_save_LIBS
14169fi
14170{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14171echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14172ac_res=$ac_cv_search_opendir
14173if test "$ac_res" != no; then
14174  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14175
14176fi
14177
14178fi
14179
14180{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14181echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14182if test "${ac_cv_header_mmap_anon+set}" = set; then
14183  echo $ECHO_N "(cached) $ECHO_C" >&6
14184else
14185   ac_ext=c
14186ac_cpp='$CPP $CPPFLAGS'
14187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189ac_compiler_gnu=$ac_cv_c_compiler_gnu
14190
14191  cat >conftest.$ac_ext <<_ACEOF
14192/* confdefs.h.  */
14193_ACEOF
14194cat confdefs.h >>conftest.$ac_ext
14195cat >>conftest.$ac_ext <<_ACEOF
14196/* end confdefs.h.  */
14197#include <sys/mman.h>
14198#include <unistd.h>
14199#include <fcntl.h>
14200int
14201main ()
14202{
14203mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14204  ;
14205  return 0;
14206}
14207_ACEOF
14208rm -f conftest.$ac_objext
14209if { (ac_try="$ac_compile"
14210case "(($ac_try" in
14211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212  *) ac_try_echo=$ac_try;;
14213esac
14214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215  (eval "$ac_compile") 2>conftest.er1
14216  ac_status=$?
14217  grep -v '^ *+' conftest.er1 >conftest.err
14218  rm -f conftest.er1
14219  cat conftest.err >&5
14220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221  (exit $ac_status); } &&
14222	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14223  { (case "(($ac_try" in
14224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225  *) ac_try_echo=$ac_try;;
14226esac
14227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228  (eval "$ac_try") 2>&5
14229  ac_status=$?
14230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231  (exit $ac_status); }; } &&
14232	 { ac_try='test -s conftest.$ac_objext'
14233  { (case "(($ac_try" in
14234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235  *) ac_try_echo=$ac_try;;
14236esac
14237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238  (eval "$ac_try") 2>&5
14239  ac_status=$?
14240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241  (exit $ac_status); }; }; then
14242  ac_cv_header_mmap_anon=yes
14243else
14244  echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247	ac_cv_header_mmap_anon=no
14248fi
14249
14250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251  ac_ext=c
14252ac_cpp='$CPP $CPPFLAGS'
14253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14255ac_compiler_gnu=$ac_cv_c_compiler_gnu
14256
14257
14258fi
14259{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14260echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14261if test "$ac_cv_header_mmap_anon" = yes; then
14262
14263cat >>confdefs.h <<\_ACEOF
14264#define HAVE_MMAP_ANONYMOUS 1
14265_ACEOF
14266
14267fi
14268
14269{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14270echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14271if test "${ac_cv_header_stat_broken+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#include <sys/types.h>
14281#include <sys/stat.h>
14282
14283#if defined S_ISBLK && defined S_IFDIR
14284# if S_ISBLK (S_IFDIR)
14285You lose.
14286# endif
14287#endif
14288
14289#if defined S_ISBLK && defined S_IFCHR
14290# if S_ISBLK (S_IFCHR)
14291You lose.
14292# endif
14293#endif
14294
14295#if defined S_ISLNK && defined S_IFREG
14296# if S_ISLNK (S_IFREG)
14297You lose.
14298# endif
14299#endif
14300
14301#if defined S_ISSOCK && defined S_IFREG
14302# if S_ISSOCK (S_IFREG)
14303You lose.
14304# endif
14305#endif
14306
14307_ACEOF
14308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14309  $EGREP "You lose" >/dev/null 2>&1; then
14310  ac_cv_header_stat_broken=yes
14311else
14312  ac_cv_header_stat_broken=no
14313fi
14314rm -f conftest*
14315
14316fi
14317{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14318echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14319if test $ac_cv_header_stat_broken = yes; then
14320
14321cat >>confdefs.h <<\_ACEOF
14322#define STAT_MACROS_BROKEN 1
14323_ACEOF
14324
14325fi
14326
14327{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14328echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14329if test "${ac_cv_header_sys_wait_h+set}" = set; then
14330  echo $ECHO_N "(cached) $ECHO_C" >&6
14331else
14332  cat >conftest.$ac_ext <<_ACEOF
14333/* confdefs.h.  */
14334_ACEOF
14335cat confdefs.h >>conftest.$ac_ext
14336cat >>conftest.$ac_ext <<_ACEOF
14337/* end confdefs.h.  */
14338#include <sys/types.h>
14339#include <sys/wait.h>
14340#ifndef WEXITSTATUS
14341# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14342#endif
14343#ifndef WIFEXITED
14344# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14345#endif
14346
14347int
14348main ()
14349{
14350  int s;
14351  wait (&s);
14352  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14353  ;
14354  return 0;
14355}
14356_ACEOF
14357rm -f conftest.$ac_objext
14358if { (ac_try="$ac_compile"
14359case "(($ac_try" in
14360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361  *) ac_try_echo=$ac_try;;
14362esac
14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364  (eval "$ac_compile") 2>conftest.er1
14365  ac_status=$?
14366  grep -v '^ *+' conftest.er1 >conftest.err
14367  rm -f conftest.er1
14368  cat conftest.err >&5
14369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370  (exit $ac_status); } &&
14371	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14372  { (case "(($ac_try" in
14373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374  *) ac_try_echo=$ac_try;;
14375esac
14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377  (eval "$ac_try") 2>&5
14378  ac_status=$?
14379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380  (exit $ac_status); }; } &&
14381	 { ac_try='test -s conftest.$ac_objext'
14382  { (case "(($ac_try" in
14383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384  *) ac_try_echo=$ac_try;;
14385esac
14386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387  (eval "$ac_try") 2>&5
14388  ac_status=$?
14389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390  (exit $ac_status); }; }; then
14391  ac_cv_header_sys_wait_h=yes
14392else
14393  echo "$as_me: failed program was:" >&5
14394sed 's/^/| /' conftest.$ac_ext >&5
14395
14396	ac_cv_header_sys_wait_h=no
14397fi
14398
14399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400fi
14401{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14402echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14403if test $ac_cv_header_sys_wait_h = yes; then
14404
14405cat >>confdefs.h <<\_ACEOF
14406#define HAVE_SYS_WAIT_H 1
14407_ACEOF
14408
14409fi
14410
14411{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14412echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14413if test "${ac_cv_header_time+set}" = set; then
14414  echo $ECHO_N "(cached) $ECHO_C" >&6
14415else
14416  cat >conftest.$ac_ext <<_ACEOF
14417/* confdefs.h.  */
14418_ACEOF
14419cat confdefs.h >>conftest.$ac_ext
14420cat >>conftest.$ac_ext <<_ACEOF
14421/* end confdefs.h.  */
14422#include <sys/types.h>
14423#include <sys/time.h>
14424#include <time.h>
14425
14426int
14427main ()
14428{
14429if ((struct tm *) 0)
14430return 0;
14431  ;
14432  return 0;
14433}
14434_ACEOF
14435rm -f conftest.$ac_objext
14436if { (ac_try="$ac_compile"
14437case "(($ac_try" in
14438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439  *) ac_try_echo=$ac_try;;
14440esac
14441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442  (eval "$ac_compile") 2>conftest.er1
14443  ac_status=$?
14444  grep -v '^ *+' conftest.er1 >conftest.err
14445  rm -f conftest.er1
14446  cat conftest.err >&5
14447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448  (exit $ac_status); } &&
14449	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14450  { (case "(($ac_try" in
14451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452  *) ac_try_echo=$ac_try;;
14453esac
14454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455  (eval "$ac_try") 2>&5
14456  ac_status=$?
14457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458  (exit $ac_status); }; } &&
14459	 { ac_try='test -s conftest.$ac_objext'
14460  { (case "(($ac_try" in
14461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462  *) ac_try_echo=$ac_try;;
14463esac
14464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465  (eval "$ac_try") 2>&5
14466  ac_status=$?
14467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468  (exit $ac_status); }; }; then
14469  ac_cv_header_time=yes
14470else
14471  echo "$as_me: failed program was:" >&5
14472sed 's/^/| /' conftest.$ac_ext >&5
14473
14474	ac_cv_header_time=no
14475fi
14476
14477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478fi
14479{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14480echo "${ECHO_T}$ac_cv_header_time" >&6; }
14481if test $ac_cv_header_time = yes; then
14482
14483cat >>confdefs.h <<\_ACEOF
14484#define TIME_WITH_SYS_TIME 1
14485_ACEOF
14486
14487fi
14488
14489
14490ac_ext=cpp
14491ac_cpp='$CXXCPP $CPPFLAGS'
14492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14495
14496ac_ext=cpp
14497ac_cpp='$CXXCPP $CPPFLAGS'
14498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14501{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14502echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14503if test -z "$CXXCPP"; then
14504  if test "${ac_cv_prog_CXXCPP+set}" = set; then
14505  echo $ECHO_N "(cached) $ECHO_C" >&6
14506else
14507      # Double quotes because CXXCPP needs to be expanded
14508    for CXXCPP in "$CXX -E" "/lib/cpp"
14509    do
14510      ac_preproc_ok=false
14511for ac_cxx_preproc_warn_flag in '' yes
14512do
14513  # Use a header file that comes with gcc, so configuring glibc
14514  # with a fresh cross-compiler works.
14515  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14516  # <limits.h> exists even on freestanding compilers.
14517  # On the NeXT, cc -E runs the code through the compiler's parser,
14518  # not just through cpp. "Syntax error" is here to catch this case.
14519  cat >conftest.$ac_ext <<_ACEOF
14520/* confdefs.h.  */
14521_ACEOF
14522cat confdefs.h >>conftest.$ac_ext
14523cat >>conftest.$ac_ext <<_ACEOF
14524/* end confdefs.h.  */
14525#ifdef __STDC__
14526# include <limits.h>
14527#else
14528# include <assert.h>
14529#endif
14530		     Syntax error
14531_ACEOF
14532if { (ac_try="$ac_cpp conftest.$ac_ext"
14533case "(($ac_try" in
14534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535  *) ac_try_echo=$ac_try;;
14536esac
14537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14539  ac_status=$?
14540  grep -v '^ *+' conftest.er1 >conftest.err
14541  rm -f conftest.er1
14542  cat conftest.err >&5
14543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544  (exit $ac_status); } >/dev/null; then
14545  if test -s conftest.err; then
14546    ac_cpp_err=$ac_cxx_preproc_warn_flag
14547    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14548  else
14549    ac_cpp_err=
14550  fi
14551else
14552  ac_cpp_err=yes
14553fi
14554if test -z "$ac_cpp_err"; then
14555  :
14556else
14557  echo "$as_me: failed program was:" >&5
14558sed 's/^/| /' conftest.$ac_ext >&5
14559
14560  # Broken: fails on valid input.
14561continue
14562fi
14563
14564rm -f conftest.err conftest.$ac_ext
14565
14566  # OK, works on sane cases.  Now check whether nonexistent headers
14567  # can be detected and how.
14568  cat >conftest.$ac_ext <<_ACEOF
14569/* confdefs.h.  */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h.  */
14574#include <ac_nonexistent.h>
14575_ACEOF
14576if { (ac_try="$ac_cpp conftest.$ac_ext"
14577case "(($ac_try" in
14578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579  *) ac_try_echo=$ac_try;;
14580esac
14581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14583  ac_status=$?
14584  grep -v '^ *+' conftest.er1 >conftest.err
14585  rm -f conftest.er1
14586  cat conftest.err >&5
14587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588  (exit $ac_status); } >/dev/null; then
14589  if test -s conftest.err; then
14590    ac_cpp_err=$ac_cxx_preproc_warn_flag
14591    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14592  else
14593    ac_cpp_err=
14594  fi
14595else
14596  ac_cpp_err=yes
14597fi
14598if test -z "$ac_cpp_err"; then
14599  # Broken: success on invalid input.
14600continue
14601else
14602  echo "$as_me: failed program was:" >&5
14603sed 's/^/| /' conftest.$ac_ext >&5
14604
14605  # Passes both tests.
14606ac_preproc_ok=:
14607break
14608fi
14609
14610rm -f conftest.err conftest.$ac_ext
14611
14612done
14613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14614rm -f conftest.err conftest.$ac_ext
14615if $ac_preproc_ok; then
14616  break
14617fi
14618
14619    done
14620    ac_cv_prog_CXXCPP=$CXXCPP
14621
14622fi
14623  CXXCPP=$ac_cv_prog_CXXCPP
14624else
14625  ac_cv_prog_CXXCPP=$CXXCPP
14626fi
14627{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
14628echo "${ECHO_T}$CXXCPP" >&6; }
14629ac_preproc_ok=false
14630for ac_cxx_preproc_warn_flag in '' yes
14631do
14632  # Use a header file that comes with gcc, so configuring glibc
14633  # with a fresh cross-compiler works.
14634  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14635  # <limits.h> exists even on freestanding compilers.
14636  # On the NeXT, cc -E runs the code through the compiler's parser,
14637  # not just through cpp. "Syntax error" is here to catch this case.
14638  cat >conftest.$ac_ext <<_ACEOF
14639/* confdefs.h.  */
14640_ACEOF
14641cat confdefs.h >>conftest.$ac_ext
14642cat >>conftest.$ac_ext <<_ACEOF
14643/* end confdefs.h.  */
14644#ifdef __STDC__
14645# include <limits.h>
14646#else
14647# include <assert.h>
14648#endif
14649		     Syntax error
14650_ACEOF
14651if { (ac_try="$ac_cpp conftest.$ac_ext"
14652case "(($ac_try" in
14653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654  *) ac_try_echo=$ac_try;;
14655esac
14656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658  ac_status=$?
14659  grep -v '^ *+' conftest.er1 >conftest.err
14660  rm -f conftest.er1
14661  cat conftest.err >&5
14662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663  (exit $ac_status); } >/dev/null; then
14664  if test -s conftest.err; then
14665    ac_cpp_err=$ac_cxx_preproc_warn_flag
14666    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14667  else
14668    ac_cpp_err=
14669  fi
14670else
14671  ac_cpp_err=yes
14672fi
14673if test -z "$ac_cpp_err"; then
14674  :
14675else
14676  echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
14679  # Broken: fails on valid input.
14680continue
14681fi
14682
14683rm -f conftest.err conftest.$ac_ext
14684
14685  # OK, works on sane cases.  Now check whether nonexistent headers
14686  # can be detected and how.
14687  cat >conftest.$ac_ext <<_ACEOF
14688/* confdefs.h.  */
14689_ACEOF
14690cat confdefs.h >>conftest.$ac_ext
14691cat >>conftest.$ac_ext <<_ACEOF
14692/* end confdefs.h.  */
14693#include <ac_nonexistent.h>
14694_ACEOF
14695if { (ac_try="$ac_cpp conftest.$ac_ext"
14696case "(($ac_try" in
14697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698  *) ac_try_echo=$ac_try;;
14699esac
14700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14702  ac_status=$?
14703  grep -v '^ *+' conftest.er1 >conftest.err
14704  rm -f conftest.er1
14705  cat conftest.err >&5
14706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707  (exit $ac_status); } >/dev/null; then
14708  if test -s conftest.err; then
14709    ac_cpp_err=$ac_cxx_preproc_warn_flag
14710    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14711  else
14712    ac_cpp_err=
14713  fi
14714else
14715  ac_cpp_err=yes
14716fi
14717if test -z "$ac_cpp_err"; then
14718  # Broken: success on invalid input.
14719continue
14720else
14721  echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
14724  # Passes both tests.
14725ac_preproc_ok=:
14726break
14727fi
14728
14729rm -f conftest.err conftest.$ac_ext
14730
14731done
14732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14733rm -f conftest.err conftest.$ac_ext
14734if $ac_preproc_ok; then
14735  :
14736else
14737  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14738See \`config.log' for more details." >&5
14739echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14740See \`config.log' for more details." >&2;}
14741   { (exit 1); exit 1; }; }
14742fi
14743
14744ac_ext=cpp
14745ac_cpp='$CXXCPP $CPPFLAGS'
14746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14749
14750
14751
14752for ac_header in cxxabi.h
14753do
14754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14756  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759  echo $ECHO_N "(cached) $ECHO_C" >&6
14760fi
14761ac_res=`eval echo '${'$as_ac_Header'}'`
14762	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14763echo "${ECHO_T}$ac_res" >&6; }
14764else
14765  # Is the header compilable?
14766{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14768cat >conftest.$ac_ext <<_ACEOF
14769/* confdefs.h.  */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h.  */
14774$ac_includes_default
14775#include <$ac_header>
14776_ACEOF
14777rm -f conftest.$ac_objext
14778if { (ac_try="$ac_compile"
14779case "(($ac_try" in
14780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781  *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784  (eval "$ac_compile") 2>conftest.er1
14785  ac_status=$?
14786  grep -v '^ *+' conftest.er1 >conftest.err
14787  rm -f conftest.er1
14788  cat conftest.err >&5
14789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790  (exit $ac_status); } &&
14791	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14792  { (case "(($ac_try" in
14793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794  *) ac_try_echo=$ac_try;;
14795esac
14796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797  (eval "$ac_try") 2>&5
14798  ac_status=$?
14799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800  (exit $ac_status); }; } &&
14801	 { ac_try='test -s conftest.$ac_objext'
14802  { (case "(($ac_try" in
14803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804  *) ac_try_echo=$ac_try;;
14805esac
14806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807  (eval "$ac_try") 2>&5
14808  ac_status=$?
14809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810  (exit $ac_status); }; }; then
14811  ac_header_compiler=yes
14812else
14813  echo "$as_me: failed program was:" >&5
14814sed 's/^/| /' conftest.$ac_ext >&5
14815
14816	ac_header_compiler=no
14817fi
14818
14819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821echo "${ECHO_T}$ac_header_compiler" >&6; }
14822
14823# Is the header present?
14824{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14825echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14826cat >conftest.$ac_ext <<_ACEOF
14827/* confdefs.h.  */
14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h.  */
14832#include <$ac_header>
14833_ACEOF
14834if { (ac_try="$ac_cpp conftest.$ac_ext"
14835case "(($ac_try" in
14836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837  *) ac_try_echo=$ac_try;;
14838esac
14839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14841  ac_status=$?
14842  grep -v '^ *+' conftest.er1 >conftest.err
14843  rm -f conftest.er1
14844  cat conftest.err >&5
14845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846  (exit $ac_status); } >/dev/null; then
14847  if test -s conftest.err; then
14848    ac_cpp_err=$ac_cxx_preproc_warn_flag
14849    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14850  else
14851    ac_cpp_err=
14852  fi
14853else
14854  ac_cpp_err=yes
14855fi
14856if test -z "$ac_cpp_err"; then
14857  ac_header_preproc=yes
14858else
14859  echo "$as_me: failed program was:" >&5
14860sed 's/^/| /' conftest.$ac_ext >&5
14861
14862  ac_header_preproc=no
14863fi
14864
14865rm -f conftest.err conftest.$ac_ext
14866{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14867echo "${ECHO_T}$ac_header_preproc" >&6; }
14868
14869# So?  What about this header?
14870case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14871  yes:no: )
14872    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14876    ac_header_preproc=yes
14877    ;;
14878  no:yes:* )
14879    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14881    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14882echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14883    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14885    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14886echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14887    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14889    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14891    ( cat <<\_ASBOX
14892## ------------------------------------ ##
14893## Report this to http://llvm.org/bugs/ ##
14894## ------------------------------------ ##
14895_ASBOX
14896     ) | sed "s/^/$as_me: WARNING:     /" >&2
14897    ;;
14898esac
14899{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14902  echo $ECHO_N "(cached) $ECHO_C" >&6
14903else
14904  eval "$as_ac_Header=\$ac_header_preproc"
14905fi
14906ac_res=`eval echo '${'$as_ac_Header'}'`
14907	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14908echo "${ECHO_T}$ac_res" >&6; }
14909
14910fi
14911if test `eval echo '${'$as_ac_Header'}'` = yes; then
14912  cat >>confdefs.h <<_ACEOF
14913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14914_ACEOF
14915
14916fi
14917
14918done
14919
14920ac_ext=c
14921ac_cpp='$CPP $CPPFLAGS'
14922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14924ac_compiler_gnu=$ac_cv_c_compiler_gnu
14925
14926
14927
14928
14929
14930
14931for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14932do
14933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14935  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14938  echo $ECHO_N "(cached) $ECHO_C" >&6
14939fi
14940ac_res=`eval echo '${'$as_ac_Header'}'`
14941	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14942echo "${ECHO_T}$ac_res" >&6; }
14943else
14944  # Is the header compilable?
14945{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14947cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h.  */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h.  */
14953$ac_includes_default
14954#include <$ac_header>
14955_ACEOF
14956rm -f conftest.$ac_objext
14957if { (ac_try="$ac_compile"
14958case "(($ac_try" in
14959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960  *) ac_try_echo=$ac_try;;
14961esac
14962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963  (eval "$ac_compile") 2>conftest.er1
14964  ac_status=$?
14965  grep -v '^ *+' conftest.er1 >conftest.err
14966  rm -f conftest.er1
14967  cat conftest.err >&5
14968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969  (exit $ac_status); } &&
14970	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14971  { (case "(($ac_try" in
14972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973  *) ac_try_echo=$ac_try;;
14974esac
14975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976  (eval "$ac_try") 2>&5
14977  ac_status=$?
14978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979  (exit $ac_status); }; } &&
14980	 { ac_try='test -s conftest.$ac_objext'
14981  { (case "(($ac_try" in
14982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983  *) ac_try_echo=$ac_try;;
14984esac
14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986  (eval "$ac_try") 2>&5
14987  ac_status=$?
14988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989  (exit $ac_status); }; }; then
14990  ac_header_compiler=yes
14991else
14992  echo "$as_me: failed program was:" >&5
14993sed 's/^/| /' conftest.$ac_ext >&5
14994
14995	ac_header_compiler=no
14996fi
14997
14998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15000echo "${ECHO_T}$ac_header_compiler" >&6; }
15001
15002# Is the header present?
15003{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15005cat >conftest.$ac_ext <<_ACEOF
15006/* confdefs.h.  */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h.  */
15011#include <$ac_header>
15012_ACEOF
15013if { (ac_try="$ac_cpp conftest.$ac_ext"
15014case "(($ac_try" in
15015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016  *) ac_try_echo=$ac_try;;
15017esac
15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15020  ac_status=$?
15021  grep -v '^ *+' conftest.er1 >conftest.err
15022  rm -f conftest.er1
15023  cat conftest.err >&5
15024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025  (exit $ac_status); } >/dev/null; then
15026  if test -s conftest.err; then
15027    ac_cpp_err=$ac_c_preproc_warn_flag
15028    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15029  else
15030    ac_cpp_err=
15031  fi
15032else
15033  ac_cpp_err=yes
15034fi
15035if test -z "$ac_cpp_err"; then
15036  ac_header_preproc=yes
15037else
15038  echo "$as_me: failed program was:" >&5
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
15041  ac_header_preproc=no
15042fi
15043
15044rm -f conftest.err conftest.$ac_ext
15045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15046echo "${ECHO_T}$ac_header_preproc" >&6; }
15047
15048# So?  What about this header?
15049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15050  yes:no: )
15051    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15053    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15055    ac_header_preproc=yes
15056    ;;
15057  no:yes:* )
15058    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15060    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15061echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15062    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15064    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15065echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15066    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15068    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15070    ( cat <<\_ASBOX
15071## ------------------------------------ ##
15072## Report this to http://llvm.org/bugs/ ##
15073## ------------------------------------ ##
15074_ASBOX
15075     ) | sed "s/^/$as_me: WARNING:     /" >&2
15076    ;;
15077esac
15078{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15081  echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
15083  eval "$as_ac_Header=\$ac_header_preproc"
15084fi
15085ac_res=`eval echo '${'$as_ac_Header'}'`
15086	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15087echo "${ECHO_T}$ac_res" >&6; }
15088
15089fi
15090if test `eval echo '${'$as_ac_Header'}'` = yes; then
15091  cat >>confdefs.h <<_ACEOF
15092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15093_ACEOF
15094
15095fi
15096
15097done
15098
15099
15100
15101
15102
15103
15104
15105for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15106do
15107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112  echo $ECHO_N "(cached) $ECHO_C" >&6
15113fi
15114ac_res=`eval echo '${'$as_ac_Header'}'`
15115	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15116echo "${ECHO_T}$ac_res" >&6; }
15117else
15118  # Is the header compilable?
15119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h.  */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h.  */
15127$ac_includes_default
15128#include <$ac_header>
15129_ACEOF
15130rm -f conftest.$ac_objext
15131if { (ac_try="$ac_compile"
15132case "(($ac_try" in
15133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134  *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137  (eval "$ac_compile") 2>conftest.er1
15138  ac_status=$?
15139  grep -v '^ *+' conftest.er1 >conftest.err
15140  rm -f conftest.er1
15141  cat conftest.err >&5
15142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143  (exit $ac_status); } &&
15144	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145  { (case "(($ac_try" in
15146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147  *) ac_try_echo=$ac_try;;
15148esac
15149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150  (eval "$ac_try") 2>&5
15151  ac_status=$?
15152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153  (exit $ac_status); }; } &&
15154	 { ac_try='test -s conftest.$ac_objext'
15155  { (case "(($ac_try" in
15156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157  *) ac_try_echo=$ac_try;;
15158esac
15159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160  (eval "$ac_try") 2>&5
15161  ac_status=$?
15162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163  (exit $ac_status); }; }; then
15164  ac_header_compiler=yes
15165else
15166  echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169	ac_header_compiler=no
15170fi
15171
15172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15174echo "${ECHO_T}$ac_header_compiler" >&6; }
15175
15176# Is the header present?
15177{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15178echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15179cat >conftest.$ac_ext <<_ACEOF
15180/* confdefs.h.  */
15181_ACEOF
15182cat confdefs.h >>conftest.$ac_ext
15183cat >>conftest.$ac_ext <<_ACEOF
15184/* end confdefs.h.  */
15185#include <$ac_header>
15186_ACEOF
15187if { (ac_try="$ac_cpp conftest.$ac_ext"
15188case "(($ac_try" in
15189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190  *) ac_try_echo=$ac_try;;
15191esac
15192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15194  ac_status=$?
15195  grep -v '^ *+' conftest.er1 >conftest.err
15196  rm -f conftest.er1
15197  cat conftest.err >&5
15198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199  (exit $ac_status); } >/dev/null; then
15200  if test -s conftest.err; then
15201    ac_cpp_err=$ac_c_preproc_warn_flag
15202    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203  else
15204    ac_cpp_err=
15205  fi
15206else
15207  ac_cpp_err=yes
15208fi
15209if test -z "$ac_cpp_err"; then
15210  ac_header_preproc=yes
15211else
15212  echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215  ac_header_preproc=no
15216fi
15217
15218rm -f conftest.err conftest.$ac_ext
15219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220echo "${ECHO_T}$ac_header_preproc" >&6; }
15221
15222# So?  What about this header?
15223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224  yes:no: )
15225    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229    ac_header_preproc=yes
15230    ;;
15231  no:yes:* )
15232    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15235echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15236    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15239echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15240    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15244    ( cat <<\_ASBOX
15245## ------------------------------------ ##
15246## Report this to http://llvm.org/bugs/ ##
15247## ------------------------------------ ##
15248_ASBOX
15249     ) | sed "s/^/$as_me: WARNING:     /" >&2
15250    ;;
15251esac
15252{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255  echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
15257  eval "$as_ac_Header=\$ac_header_preproc"
15258fi
15259ac_res=`eval echo '${'$as_ac_Header'}'`
15260	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15261echo "${ECHO_T}$ac_res" >&6; }
15262
15263fi
15264if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265  cat >>confdefs.h <<_ACEOF
15266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15267_ACEOF
15268
15269fi
15270
15271done
15272
15273
15274for ac_header in utime.h
15275do
15276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281  echo $ECHO_N "(cached) $ECHO_C" >&6
15282fi
15283ac_res=`eval echo '${'$as_ac_Header'}'`
15284	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15285echo "${ECHO_T}$ac_res" >&6; }
15286else
15287  # Is the header compilable?
15288{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15290cat >conftest.$ac_ext <<_ACEOF
15291/* confdefs.h.  */
15292_ACEOF
15293cat confdefs.h >>conftest.$ac_ext
15294cat >>conftest.$ac_ext <<_ACEOF
15295/* end confdefs.h.  */
15296$ac_includes_default
15297#include <$ac_header>
15298_ACEOF
15299rm -f conftest.$ac_objext
15300if { (ac_try="$ac_compile"
15301case "(($ac_try" in
15302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303  *) ac_try_echo=$ac_try;;
15304esac
15305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306  (eval "$ac_compile") 2>conftest.er1
15307  ac_status=$?
15308  grep -v '^ *+' conftest.er1 >conftest.err
15309  rm -f conftest.er1
15310  cat conftest.err >&5
15311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312  (exit $ac_status); } &&
15313	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15314  { (case "(($ac_try" in
15315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316  *) ac_try_echo=$ac_try;;
15317esac
15318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319  (eval "$ac_try") 2>&5
15320  ac_status=$?
15321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322  (exit $ac_status); }; } &&
15323	 { ac_try='test -s conftest.$ac_objext'
15324  { (case "(($ac_try" in
15325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326  *) ac_try_echo=$ac_try;;
15327esac
15328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329  (eval "$ac_try") 2>&5
15330  ac_status=$?
15331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332  (exit $ac_status); }; }; then
15333  ac_header_compiler=yes
15334else
15335  echo "$as_me: failed program was:" >&5
15336sed 's/^/| /' conftest.$ac_ext >&5
15337
15338	ac_header_compiler=no
15339fi
15340
15341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15342{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15343echo "${ECHO_T}$ac_header_compiler" >&6; }
15344
15345# Is the header present?
15346{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15348cat >conftest.$ac_ext <<_ACEOF
15349/* confdefs.h.  */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
15353/* end confdefs.h.  */
15354#include <$ac_header>
15355_ACEOF
15356if { (ac_try="$ac_cpp conftest.$ac_ext"
15357case "(($ac_try" in
15358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359  *) ac_try_echo=$ac_try;;
15360esac
15361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15363  ac_status=$?
15364  grep -v '^ *+' conftest.er1 >conftest.err
15365  rm -f conftest.er1
15366  cat conftest.err >&5
15367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368  (exit $ac_status); } >/dev/null; then
15369  if test -s conftest.err; then
15370    ac_cpp_err=$ac_c_preproc_warn_flag
15371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15372  else
15373    ac_cpp_err=
15374  fi
15375else
15376  ac_cpp_err=yes
15377fi
15378if test -z "$ac_cpp_err"; then
15379  ac_header_preproc=yes
15380else
15381  echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384  ac_header_preproc=no
15385fi
15386
15387rm -f conftest.err conftest.$ac_ext
15388{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389echo "${ECHO_T}$ac_header_preproc" >&6; }
15390
15391# So?  What about this header?
15392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15393  yes:no: )
15394    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398    ac_header_preproc=yes
15399    ;;
15400  no:yes:* )
15401    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15404echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15405    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15408echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15409    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15413    ( cat <<\_ASBOX
15414## ------------------------------------ ##
15415## Report this to http://llvm.org/bugs/ ##
15416## ------------------------------------ ##
15417_ASBOX
15418     ) | sed "s/^/$as_me: WARNING:     /" >&2
15419    ;;
15420esac
15421{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15424  echo $ECHO_N "(cached) $ECHO_C" >&6
15425else
15426  eval "$as_ac_Header=\$ac_header_preproc"
15427fi
15428ac_res=`eval echo '${'$as_ac_Header'}'`
15429	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15430echo "${ECHO_T}$ac_res" >&6; }
15431
15432fi
15433if test `eval echo '${'$as_ac_Header'}'` = yes; then
15434  cat >>confdefs.h <<_ACEOF
15435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15436_ACEOF
15437
15438fi
15439
15440done
15441
15442
15443
15444
15445
15446
15447for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15448do
15449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15454  echo $ECHO_N "(cached) $ECHO_C" >&6
15455fi
15456ac_res=`eval echo '${'$as_ac_Header'}'`
15457	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15458echo "${ECHO_T}$ac_res" >&6; }
15459else
15460  # Is the header compilable?
15461{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15463cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h.  */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h.  */
15469$ac_includes_default
15470#include <$ac_header>
15471_ACEOF
15472rm -f conftest.$ac_objext
15473if { (ac_try="$ac_compile"
15474case "(($ac_try" in
15475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476  *) ac_try_echo=$ac_try;;
15477esac
15478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479  (eval "$ac_compile") 2>conftest.er1
15480  ac_status=$?
15481  grep -v '^ *+' conftest.er1 >conftest.err
15482  rm -f conftest.er1
15483  cat conftest.err >&5
15484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485  (exit $ac_status); } &&
15486	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15487  { (case "(($ac_try" in
15488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489  *) ac_try_echo=$ac_try;;
15490esac
15491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492  (eval "$ac_try") 2>&5
15493  ac_status=$?
15494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495  (exit $ac_status); }; } &&
15496	 { ac_try='test -s conftest.$ac_objext'
15497  { (case "(($ac_try" in
15498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499  *) ac_try_echo=$ac_try;;
15500esac
15501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502  (eval "$ac_try") 2>&5
15503  ac_status=$?
15504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505  (exit $ac_status); }; }; then
15506  ac_header_compiler=yes
15507else
15508  echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511	ac_header_compiler=no
15512fi
15513
15514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15516echo "${ECHO_T}$ac_header_compiler" >&6; }
15517
15518# Is the header present?
15519{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15521cat >conftest.$ac_ext <<_ACEOF
15522/* confdefs.h.  */
15523_ACEOF
15524cat confdefs.h >>conftest.$ac_ext
15525cat >>conftest.$ac_ext <<_ACEOF
15526/* end confdefs.h.  */
15527#include <$ac_header>
15528_ACEOF
15529if { (ac_try="$ac_cpp conftest.$ac_ext"
15530case "(($ac_try" in
15531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532  *) ac_try_echo=$ac_try;;
15533esac
15534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15536  ac_status=$?
15537  grep -v '^ *+' conftest.er1 >conftest.err
15538  rm -f conftest.er1
15539  cat conftest.err >&5
15540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541  (exit $ac_status); } >/dev/null; then
15542  if test -s conftest.err; then
15543    ac_cpp_err=$ac_c_preproc_warn_flag
15544    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15545  else
15546    ac_cpp_err=
15547  fi
15548else
15549  ac_cpp_err=yes
15550fi
15551if test -z "$ac_cpp_err"; then
15552  ac_header_preproc=yes
15553else
15554  echo "$as_me: failed program was:" >&5
15555sed 's/^/| /' conftest.$ac_ext >&5
15556
15557  ac_header_preproc=no
15558fi
15559
15560rm -f conftest.err conftest.$ac_ext
15561{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15562echo "${ECHO_T}$ac_header_preproc" >&6; }
15563
15564# So?  What about this header?
15565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566  yes:no: )
15567    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15569    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15571    ac_header_preproc=yes
15572    ;;
15573  no:yes:* )
15574    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15576    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15577echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15578    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15580    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15581echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15582    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15584    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15586    ( cat <<\_ASBOX
15587## ------------------------------------ ##
15588## Report this to http://llvm.org/bugs/ ##
15589## ------------------------------------ ##
15590_ASBOX
15591     ) | sed "s/^/$as_me: WARNING:     /" >&2
15592    ;;
15593esac
15594{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15597  echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
15599  eval "$as_ac_Header=\$ac_header_preproc"
15600fi
15601ac_res=`eval echo '${'$as_ac_Header'}'`
15602	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15603echo "${ECHO_T}$ac_res" >&6; }
15604
15605fi
15606if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607  cat >>confdefs.h <<_ACEOF
15608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15609_ACEOF
15610
15611fi
15612
15613done
15614
15615
15616
15617
15618for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15619do
15620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625  echo $ECHO_N "(cached) $ECHO_C" >&6
15626fi
15627ac_res=`eval echo '${'$as_ac_Header'}'`
15628	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15629echo "${ECHO_T}$ac_res" >&6; }
15630else
15631  # Is the header compilable?
15632{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15633echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15634cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h.  */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h.  */
15640$ac_includes_default
15641#include <$ac_header>
15642_ACEOF
15643rm -f conftest.$ac_objext
15644if { (ac_try="$ac_compile"
15645case "(($ac_try" in
15646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647  *) ac_try_echo=$ac_try;;
15648esac
15649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650  (eval "$ac_compile") 2>conftest.er1
15651  ac_status=$?
15652  grep -v '^ *+' conftest.er1 >conftest.err
15653  rm -f conftest.er1
15654  cat conftest.err >&5
15655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656  (exit $ac_status); } &&
15657	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15658  { (case "(($ac_try" in
15659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660  *) ac_try_echo=$ac_try;;
15661esac
15662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663  (eval "$ac_try") 2>&5
15664  ac_status=$?
15665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666  (exit $ac_status); }; } &&
15667	 { ac_try='test -s conftest.$ac_objext'
15668  { (case "(($ac_try" in
15669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670  *) ac_try_echo=$ac_try;;
15671esac
15672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673  (eval "$ac_try") 2>&5
15674  ac_status=$?
15675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676  (exit $ac_status); }; }; then
15677  ac_header_compiler=yes
15678else
15679  echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
15682	ac_header_compiler=no
15683fi
15684
15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15687echo "${ECHO_T}$ac_header_compiler" >&6; }
15688
15689# Is the header present?
15690{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15692cat >conftest.$ac_ext <<_ACEOF
15693/* confdefs.h.  */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h.  */
15698#include <$ac_header>
15699_ACEOF
15700if { (ac_try="$ac_cpp conftest.$ac_ext"
15701case "(($ac_try" in
15702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703  *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15707  ac_status=$?
15708  grep -v '^ *+' conftest.er1 >conftest.err
15709  rm -f conftest.er1
15710  cat conftest.err >&5
15711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712  (exit $ac_status); } >/dev/null; then
15713  if test -s conftest.err; then
15714    ac_cpp_err=$ac_c_preproc_warn_flag
15715    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15716  else
15717    ac_cpp_err=
15718  fi
15719else
15720  ac_cpp_err=yes
15721fi
15722if test -z "$ac_cpp_err"; then
15723  ac_header_preproc=yes
15724else
15725  echo "$as_me: failed program was:" >&5
15726sed 's/^/| /' conftest.$ac_ext >&5
15727
15728  ac_header_preproc=no
15729fi
15730
15731rm -f conftest.err conftest.$ac_ext
15732{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15733echo "${ECHO_T}$ac_header_preproc" >&6; }
15734
15735# So?  What about this header?
15736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15737  yes:no: )
15738    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15740    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15742    ac_header_preproc=yes
15743    ;;
15744  no:yes:* )
15745    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15747    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15748echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15749    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15751    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15752echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15753    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15755    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15757    ( cat <<\_ASBOX
15758## ------------------------------------ ##
15759## Report this to http://llvm.org/bugs/ ##
15760## ------------------------------------ ##
15761_ASBOX
15762     ) | sed "s/^/$as_me: WARNING:     /" >&2
15763    ;;
15764esac
15765{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768  echo $ECHO_N "(cached) $ECHO_C" >&6
15769else
15770  eval "$as_ac_Header=\$ac_header_preproc"
15771fi
15772ac_res=`eval echo '${'$as_ac_Header'}'`
15773	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15774echo "${ECHO_T}$ac_res" >&6; }
15775
15776fi
15777if test `eval echo '${'$as_ac_Header'}'` = yes; then
15778  cat >>confdefs.h <<_ACEOF
15779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15780_ACEOF
15781
15782fi
15783
15784done
15785
15786
15787for ac_header in valgrind/valgrind.h
15788do
15789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794  echo $ECHO_N "(cached) $ECHO_C" >&6
15795fi
15796ac_res=`eval echo '${'$as_ac_Header'}'`
15797	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15798echo "${ECHO_T}$ac_res" >&6; }
15799else
15800  # Is the header compilable?
15801{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15803cat >conftest.$ac_ext <<_ACEOF
15804/* confdefs.h.  */
15805_ACEOF
15806cat confdefs.h >>conftest.$ac_ext
15807cat >>conftest.$ac_ext <<_ACEOF
15808/* end confdefs.h.  */
15809$ac_includes_default
15810#include <$ac_header>
15811_ACEOF
15812rm -f conftest.$ac_objext
15813if { (ac_try="$ac_compile"
15814case "(($ac_try" in
15815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816  *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819  (eval "$ac_compile") 2>conftest.er1
15820  ac_status=$?
15821  grep -v '^ *+' conftest.er1 >conftest.err
15822  rm -f conftest.er1
15823  cat conftest.err >&5
15824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825  (exit $ac_status); } &&
15826	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15827  { (case "(($ac_try" in
15828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829  *) ac_try_echo=$ac_try;;
15830esac
15831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832  (eval "$ac_try") 2>&5
15833  ac_status=$?
15834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835  (exit $ac_status); }; } &&
15836	 { ac_try='test -s conftest.$ac_objext'
15837  { (case "(($ac_try" in
15838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839  *) ac_try_echo=$ac_try;;
15840esac
15841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842  (eval "$ac_try") 2>&5
15843  ac_status=$?
15844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845  (exit $ac_status); }; }; then
15846  ac_header_compiler=yes
15847else
15848  echo "$as_me: failed program was:" >&5
15849sed 's/^/| /' conftest.$ac_ext >&5
15850
15851	ac_header_compiler=no
15852fi
15853
15854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15856echo "${ECHO_T}$ac_header_compiler" >&6; }
15857
15858# Is the header present?
15859{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15861cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h.  */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h.  */
15867#include <$ac_header>
15868_ACEOF
15869if { (ac_try="$ac_cpp conftest.$ac_ext"
15870case "(($ac_try" in
15871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872  *) ac_try_echo=$ac_try;;
15873esac
15874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15876  ac_status=$?
15877  grep -v '^ *+' conftest.er1 >conftest.err
15878  rm -f conftest.er1
15879  cat conftest.err >&5
15880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881  (exit $ac_status); } >/dev/null; then
15882  if test -s conftest.err; then
15883    ac_cpp_err=$ac_c_preproc_warn_flag
15884    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15885  else
15886    ac_cpp_err=
15887  fi
15888else
15889  ac_cpp_err=yes
15890fi
15891if test -z "$ac_cpp_err"; then
15892  ac_header_preproc=yes
15893else
15894  echo "$as_me: failed program was:" >&5
15895sed 's/^/| /' conftest.$ac_ext >&5
15896
15897  ac_header_preproc=no
15898fi
15899
15900rm -f conftest.err conftest.$ac_ext
15901{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902echo "${ECHO_T}$ac_header_preproc" >&6; }
15903
15904# So?  What about this header?
15905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15906  yes:no: )
15907    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15911    ac_header_preproc=yes
15912    ;;
15913  no:yes:* )
15914    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15916    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15917echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15918    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15920    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15921echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15922    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15924    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15926    ( cat <<\_ASBOX
15927## ------------------------------------ ##
15928## Report this to http://llvm.org/bugs/ ##
15929## ------------------------------------ ##
15930_ASBOX
15931     ) | sed "s/^/$as_me: WARNING:     /" >&2
15932    ;;
15933esac
15934{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15937  echo $ECHO_N "(cached) $ECHO_C" >&6
15938else
15939  eval "$as_ac_Header=\$ac_header_preproc"
15940fi
15941ac_res=`eval echo '${'$as_ac_Header'}'`
15942	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15943echo "${ECHO_T}$ac_res" >&6; }
15944
15945fi
15946if test `eval echo '${'$as_ac_Header'}'` = yes; then
15947  cat >>confdefs.h <<_ACEOF
15948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15949_ACEOF
15950
15951fi
15952
15953done
15954
15955
15956for ac_header in fenv.h
15957do
15958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963  echo $ECHO_N "(cached) $ECHO_C" >&6
15964fi
15965ac_res=`eval echo '${'$as_ac_Header'}'`
15966	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15967echo "${ECHO_T}$ac_res" >&6; }
15968else
15969  # Is the header compilable?
15970{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15972cat >conftest.$ac_ext <<_ACEOF
15973/* confdefs.h.  */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h.  */
15978$ac_includes_default
15979#include <$ac_header>
15980_ACEOF
15981rm -f conftest.$ac_objext
15982if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_header_compiler=yes
16016else
16017  echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020	ac_header_compiler=no
16021fi
16022
16023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16025echo "${ECHO_T}$ac_header_compiler" >&6; }
16026
16027# Is the header present?
16028{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16030cat >conftest.$ac_ext <<_ACEOF
16031/* confdefs.h.  */
16032_ACEOF
16033cat confdefs.h >>conftest.$ac_ext
16034cat >>conftest.$ac_ext <<_ACEOF
16035/* end confdefs.h.  */
16036#include <$ac_header>
16037_ACEOF
16038if { (ac_try="$ac_cpp conftest.$ac_ext"
16039case "(($ac_try" in
16040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041  *) ac_try_echo=$ac_try;;
16042esac
16043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16045  ac_status=$?
16046  grep -v '^ *+' conftest.er1 >conftest.err
16047  rm -f conftest.er1
16048  cat conftest.err >&5
16049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050  (exit $ac_status); } >/dev/null; then
16051  if test -s conftest.err; then
16052    ac_cpp_err=$ac_c_preproc_warn_flag
16053    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16054  else
16055    ac_cpp_err=
16056  fi
16057else
16058  ac_cpp_err=yes
16059fi
16060if test -z "$ac_cpp_err"; then
16061  ac_header_preproc=yes
16062else
16063  echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
16066  ac_header_preproc=no
16067fi
16068
16069rm -f conftest.err conftest.$ac_ext
16070{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16071echo "${ECHO_T}$ac_header_preproc" >&6; }
16072
16073# So?  What about this header?
16074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16075  yes:no: )
16076    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16078    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16080    ac_header_preproc=yes
16081    ;;
16082  no:yes:* )
16083    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16085    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16086echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16087    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16089    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16090echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16091    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16093    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16095    ( cat <<\_ASBOX
16096## ------------------------------------ ##
16097## Report this to http://llvm.org/bugs/ ##
16098## ------------------------------------ ##
16099_ASBOX
16100     ) | sed "s/^/$as_me: WARNING:     /" >&2
16101    ;;
16102esac
16103{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16106  echo $ECHO_N "(cached) $ECHO_C" >&6
16107else
16108  eval "$as_ac_Header=\$ac_header_preproc"
16109fi
16110ac_res=`eval echo '${'$as_ac_Header'}'`
16111	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16112echo "${ECHO_T}$ac_res" >&6; }
16113
16114fi
16115if test `eval echo '${'$as_ac_Header'}'` = yes; then
16116  cat >>confdefs.h <<_ACEOF
16117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16118_ACEOF
16119
16120fi
16121
16122done
16123
16124{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16125echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16126if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16127  echo $ECHO_N "(cached) $ECHO_C" >&6
16128else
16129  cat >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#include <fenv.h>
16136
16137int
16138main ()
16139{
16140#ifndef FE_ALL_EXCEPT
16141  char *p = (char *) FE_ALL_EXCEPT;
16142  return !p;
16143#endif
16144
16145  ;
16146  return 0;
16147}
16148_ACEOF
16149rm -f conftest.$ac_objext
16150if { (ac_try="$ac_compile"
16151case "(($ac_try" in
16152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153  *) ac_try_echo=$ac_try;;
16154esac
16155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156  (eval "$ac_compile") 2>conftest.er1
16157  ac_status=$?
16158  grep -v '^ *+' conftest.er1 >conftest.err
16159  rm -f conftest.er1
16160  cat conftest.err >&5
16161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162  (exit $ac_status); } &&
16163	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16164  { (case "(($ac_try" in
16165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166  *) ac_try_echo=$ac_try;;
16167esac
16168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169  (eval "$ac_try") 2>&5
16170  ac_status=$?
16171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172  (exit $ac_status); }; } &&
16173	 { ac_try='test -s conftest.$ac_objext'
16174  { (case "(($ac_try" in
16175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176  *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179  (eval "$ac_try") 2>&5
16180  ac_status=$?
16181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182  (exit $ac_status); }; }; then
16183  ac_cv_have_decl_FE_ALL_EXCEPT=yes
16184else
16185  echo "$as_me: failed program was:" >&5
16186sed 's/^/| /' conftest.$ac_ext >&5
16187
16188	ac_cv_have_decl_FE_ALL_EXCEPT=no
16189fi
16190
16191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192fi
16193{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16194echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16195if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16196
16197cat >>confdefs.h <<_ACEOF
16198#define HAVE_DECL_FE_ALL_EXCEPT 1
16199_ACEOF
16200
16201
16202else
16203  cat >>confdefs.h <<_ACEOF
16204#define HAVE_DECL_FE_ALL_EXCEPT 0
16205_ACEOF
16206
16207
16208fi
16209{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16210echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16211if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16212  echo $ECHO_N "(cached) $ECHO_C" >&6
16213else
16214  cat >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#include <fenv.h>
16221
16222int
16223main ()
16224{
16225#ifndef FE_INEXACT
16226  char *p = (char *) FE_INEXACT;
16227  return !p;
16228#endif
16229
16230  ;
16231  return 0;
16232}
16233_ACEOF
16234rm -f conftest.$ac_objext
16235if { (ac_try="$ac_compile"
16236case "(($ac_try" in
16237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238  *) ac_try_echo=$ac_try;;
16239esac
16240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241  (eval "$ac_compile") 2>conftest.er1
16242  ac_status=$?
16243  grep -v '^ *+' conftest.er1 >conftest.err
16244  rm -f conftest.er1
16245  cat conftest.err >&5
16246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247  (exit $ac_status); } &&
16248	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16249  { (case "(($ac_try" in
16250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251  *) ac_try_echo=$ac_try;;
16252esac
16253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254  (eval "$ac_try") 2>&5
16255  ac_status=$?
16256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257  (exit $ac_status); }; } &&
16258	 { ac_try='test -s conftest.$ac_objext'
16259  { (case "(($ac_try" in
16260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261  *) ac_try_echo=$ac_try;;
16262esac
16263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264  (eval "$ac_try") 2>&5
16265  ac_status=$?
16266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267  (exit $ac_status); }; }; then
16268  ac_cv_have_decl_FE_INEXACT=yes
16269else
16270  echo "$as_me: failed program was:" >&5
16271sed 's/^/| /' conftest.$ac_ext >&5
16272
16273	ac_cv_have_decl_FE_INEXACT=no
16274fi
16275
16276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277fi
16278{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16279echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16280if test $ac_cv_have_decl_FE_INEXACT = yes; then
16281
16282cat >>confdefs.h <<_ACEOF
16283#define HAVE_DECL_FE_INEXACT 1
16284_ACEOF
16285
16286
16287else
16288  cat >>confdefs.h <<_ACEOF
16289#define HAVE_DECL_FE_INEXACT 0
16290_ACEOF
16291
16292
16293fi
16294
16295
16296if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16297
16298for ac_header in pthread.h
16299do
16300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16302  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305  echo $ECHO_N "(cached) $ECHO_C" >&6
16306fi
16307ac_res=`eval echo '${'$as_ac_Header'}'`
16308	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16309echo "${ECHO_T}$ac_res" >&6; }
16310else
16311  # Is the header compilable?
16312{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16314cat >conftest.$ac_ext <<_ACEOF
16315/* confdefs.h.  */
16316_ACEOF
16317cat confdefs.h >>conftest.$ac_ext
16318cat >>conftest.$ac_ext <<_ACEOF
16319/* end confdefs.h.  */
16320$ac_includes_default
16321#include <$ac_header>
16322_ACEOF
16323rm -f conftest.$ac_objext
16324if { (ac_try="$ac_compile"
16325case "(($ac_try" in
16326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327  *) ac_try_echo=$ac_try;;
16328esac
16329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330  (eval "$ac_compile") 2>conftest.er1
16331  ac_status=$?
16332  grep -v '^ *+' conftest.er1 >conftest.err
16333  rm -f conftest.er1
16334  cat conftest.err >&5
16335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336  (exit $ac_status); } &&
16337	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338  { (case "(($ac_try" in
16339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340  *) ac_try_echo=$ac_try;;
16341esac
16342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343  (eval "$ac_try") 2>&5
16344  ac_status=$?
16345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346  (exit $ac_status); }; } &&
16347	 { ac_try='test -s conftest.$ac_objext'
16348  { (case "(($ac_try" in
16349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350  *) ac_try_echo=$ac_try;;
16351esac
16352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353  (eval "$ac_try") 2>&5
16354  ac_status=$?
16355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356  (exit $ac_status); }; }; then
16357  ac_header_compiler=yes
16358else
16359  echo "$as_me: failed program was:" >&5
16360sed 's/^/| /' conftest.$ac_ext >&5
16361
16362	ac_header_compiler=no
16363fi
16364
16365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16366{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16367echo "${ECHO_T}$ac_header_compiler" >&6; }
16368
16369# Is the header present?
16370{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16372cat >conftest.$ac_ext <<_ACEOF
16373/* confdefs.h.  */
16374_ACEOF
16375cat confdefs.h >>conftest.$ac_ext
16376cat >>conftest.$ac_ext <<_ACEOF
16377/* end confdefs.h.  */
16378#include <$ac_header>
16379_ACEOF
16380if { (ac_try="$ac_cpp conftest.$ac_ext"
16381case "(($ac_try" in
16382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383  *) ac_try_echo=$ac_try;;
16384esac
16385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16387  ac_status=$?
16388  grep -v '^ *+' conftest.er1 >conftest.err
16389  rm -f conftest.er1
16390  cat conftest.err >&5
16391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392  (exit $ac_status); } >/dev/null; then
16393  if test -s conftest.err; then
16394    ac_cpp_err=$ac_c_preproc_warn_flag
16395    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16396  else
16397    ac_cpp_err=
16398  fi
16399else
16400  ac_cpp_err=yes
16401fi
16402if test -z "$ac_cpp_err"; then
16403  ac_header_preproc=yes
16404else
16405  echo "$as_me: failed program was:" >&5
16406sed 's/^/| /' conftest.$ac_ext >&5
16407
16408  ac_header_preproc=no
16409fi
16410
16411rm -f conftest.err conftest.$ac_ext
16412{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16413echo "${ECHO_T}$ac_header_preproc" >&6; }
16414
16415# So?  What about this header?
16416case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16417  yes:no: )
16418    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16419echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16421echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16422    ac_header_preproc=yes
16423    ;;
16424  no:yes:* )
16425    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16426echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16427    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16428echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16429    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16430echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16431    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16432echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16433    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16435    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16436echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16437    ( cat <<\_ASBOX
16438## ------------------------------------ ##
16439## Report this to http://llvm.org/bugs/ ##
16440## ------------------------------------ ##
16441_ASBOX
16442     ) | sed "s/^/$as_me: WARNING:     /" >&2
16443    ;;
16444esac
16445{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16448  echo $ECHO_N "(cached) $ECHO_C" >&6
16449else
16450  eval "$as_ac_Header=\$ac_header_preproc"
16451fi
16452ac_res=`eval echo '${'$as_ac_Header'}'`
16453	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16454echo "${ECHO_T}$ac_res" >&6; }
16455
16456fi
16457if test `eval echo '${'$as_ac_Header'}'` = yes; then
16458  cat >>confdefs.h <<_ACEOF
16459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16460_ACEOF
16461 HAVE_PTHREAD=1
16462
16463else
16464  HAVE_PTHREAD=0
16465
16466fi
16467
16468done
16469
16470else
16471  HAVE_PTHREAD=0
16472
16473fi
16474if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16475
16476for ac_header in zlib.h
16477do
16478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16480  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16483  echo $ECHO_N "(cached) $ECHO_C" >&6
16484fi
16485ac_res=`eval echo '${'$as_ac_Header'}'`
16486	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16487echo "${ECHO_T}$ac_res" >&6; }
16488else
16489  # Is the header compilable?
16490{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16491echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16492cat >conftest.$ac_ext <<_ACEOF
16493/* confdefs.h.  */
16494_ACEOF
16495cat confdefs.h >>conftest.$ac_ext
16496cat >>conftest.$ac_ext <<_ACEOF
16497/* end confdefs.h.  */
16498$ac_includes_default
16499#include <$ac_header>
16500_ACEOF
16501rm -f conftest.$ac_objext
16502if { (ac_try="$ac_compile"
16503case "(($ac_try" in
16504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505  *) ac_try_echo=$ac_try;;
16506esac
16507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508  (eval "$ac_compile") 2>conftest.er1
16509  ac_status=$?
16510  grep -v '^ *+' conftest.er1 >conftest.err
16511  rm -f conftest.er1
16512  cat conftest.err >&5
16513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514  (exit $ac_status); } &&
16515	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16525	 { ac_try='test -s conftest.$ac_objext'
16526  { (case "(($ac_try" in
16527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528  *) ac_try_echo=$ac_try;;
16529esac
16530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531  (eval "$ac_try") 2>&5
16532  ac_status=$?
16533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534  (exit $ac_status); }; }; then
16535  ac_header_compiler=yes
16536else
16537  echo "$as_me: failed program was:" >&5
16538sed 's/^/| /' conftest.$ac_ext >&5
16539
16540	ac_header_compiler=no
16541fi
16542
16543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16545echo "${ECHO_T}$ac_header_compiler" >&6; }
16546
16547# Is the header present?
16548{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16550cat >conftest.$ac_ext <<_ACEOF
16551/* confdefs.h.  */
16552_ACEOF
16553cat confdefs.h >>conftest.$ac_ext
16554cat >>conftest.$ac_ext <<_ACEOF
16555/* end confdefs.h.  */
16556#include <$ac_header>
16557_ACEOF
16558if { (ac_try="$ac_cpp conftest.$ac_ext"
16559case "(($ac_try" in
16560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561  *) ac_try_echo=$ac_try;;
16562esac
16563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16565  ac_status=$?
16566  grep -v '^ *+' conftest.er1 >conftest.err
16567  rm -f conftest.er1
16568  cat conftest.err >&5
16569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570  (exit $ac_status); } >/dev/null; then
16571  if test -s conftest.err; then
16572    ac_cpp_err=$ac_c_preproc_warn_flag
16573    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16574  else
16575    ac_cpp_err=
16576  fi
16577else
16578  ac_cpp_err=yes
16579fi
16580if test -z "$ac_cpp_err"; then
16581  ac_header_preproc=yes
16582else
16583  echo "$as_me: failed program was:" >&5
16584sed 's/^/| /' conftest.$ac_ext >&5
16585
16586  ac_header_preproc=no
16587fi
16588
16589rm -f conftest.err conftest.$ac_ext
16590{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16591echo "${ECHO_T}$ac_header_preproc" >&6; }
16592
16593# So?  What about this header?
16594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16595  yes:no: )
16596    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16597echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16598    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16599echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16600    ac_header_preproc=yes
16601    ;;
16602  no:yes:* )
16603    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16604echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16605    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16606echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16607    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16608echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16609    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16610echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16611    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16612echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16613    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16614echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16615    ( cat <<\_ASBOX
16616## ------------------------------------ ##
16617## Report this to http://llvm.org/bugs/ ##
16618## ------------------------------------ ##
16619_ASBOX
16620     ) | sed "s/^/$as_me: WARNING:     /" >&2
16621    ;;
16622esac
16623{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16626  echo $ECHO_N "(cached) $ECHO_C" >&6
16627else
16628  eval "$as_ac_Header=\$ac_header_preproc"
16629fi
16630ac_res=`eval echo '${'$as_ac_Header'}'`
16631	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16632echo "${ECHO_T}$ac_res" >&6; }
16633
16634fi
16635if test `eval echo '${'$as_ac_Header'}'` = yes; then
16636  cat >>confdefs.h <<_ACEOF
16637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16638_ACEOF
16639 HAVE_LIBZ=1
16640
16641else
16642  HAVE_LIBZ=0
16643
16644fi
16645
16646done
16647
16648else
16649  HAVE_LIBZ=0
16650
16651fi
16652
16653if test "$llvm_cv_enable_libffi" = "yes" ; then
16654
16655
16656for ac_header in ffi.h ffi/ffi.h
16657do
16658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16660  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16663  echo $ECHO_N "(cached) $ECHO_C" >&6
16664fi
16665ac_res=`eval echo '${'$as_ac_Header'}'`
16666	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16667echo "${ECHO_T}$ac_res" >&6; }
16668else
16669  # Is the header compilable?
16670{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16672cat >conftest.$ac_ext <<_ACEOF
16673/* confdefs.h.  */
16674_ACEOF
16675cat confdefs.h >>conftest.$ac_ext
16676cat >>conftest.$ac_ext <<_ACEOF
16677/* end confdefs.h.  */
16678$ac_includes_default
16679#include <$ac_header>
16680_ACEOF
16681rm -f conftest.$ac_objext
16682if { (ac_try="$ac_compile"
16683case "(($ac_try" in
16684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685  *) ac_try_echo=$ac_try;;
16686esac
16687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688  (eval "$ac_compile") 2>conftest.er1
16689  ac_status=$?
16690  grep -v '^ *+' conftest.er1 >conftest.err
16691  rm -f conftest.er1
16692  cat conftest.err >&5
16693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694  (exit $ac_status); } &&
16695	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16696  { (case "(($ac_try" in
16697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698  *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701  (eval "$ac_try") 2>&5
16702  ac_status=$?
16703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704  (exit $ac_status); }; } &&
16705	 { ac_try='test -s conftest.$ac_objext'
16706  { (case "(($ac_try" in
16707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708  *) ac_try_echo=$ac_try;;
16709esac
16710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711  (eval "$ac_try") 2>&5
16712  ac_status=$?
16713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714  (exit $ac_status); }; }; then
16715  ac_header_compiler=yes
16716else
16717  echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
16720	ac_header_compiler=no
16721fi
16722
16723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16725echo "${ECHO_T}$ac_header_compiler" >&6; }
16726
16727# Is the header present?
16728{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16729echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16730cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h.  */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h.  */
16736#include <$ac_header>
16737_ACEOF
16738if { (ac_try="$ac_cpp conftest.$ac_ext"
16739case "(($ac_try" in
16740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741  *) ac_try_echo=$ac_try;;
16742esac
16743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16745  ac_status=$?
16746  grep -v '^ *+' conftest.er1 >conftest.err
16747  rm -f conftest.er1
16748  cat conftest.err >&5
16749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750  (exit $ac_status); } >/dev/null; then
16751  if test -s conftest.err; then
16752    ac_cpp_err=$ac_c_preproc_warn_flag
16753    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16754  else
16755    ac_cpp_err=
16756  fi
16757else
16758  ac_cpp_err=yes
16759fi
16760if test -z "$ac_cpp_err"; then
16761  ac_header_preproc=yes
16762else
16763  echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
16766  ac_header_preproc=no
16767fi
16768
16769rm -f conftest.err conftest.$ac_ext
16770{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16771echo "${ECHO_T}$ac_header_preproc" >&6; }
16772
16773# So?  What about this header?
16774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16775  yes:no: )
16776    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16778    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16780    ac_header_preproc=yes
16781    ;;
16782  no:yes:* )
16783    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16785    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16786echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16787    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16789    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16790echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16793    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16795    ( cat <<\_ASBOX
16796## ------------------------------------ ##
16797## Report this to http://llvm.org/bugs/ ##
16798## ------------------------------------ ##
16799_ASBOX
16800     ) | sed "s/^/$as_me: WARNING:     /" >&2
16801    ;;
16802esac
16803{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16806  echo $ECHO_N "(cached) $ECHO_C" >&6
16807else
16808  eval "$as_ac_Header=\$ac_header_preproc"
16809fi
16810ac_res=`eval echo '${'$as_ac_Header'}'`
16811	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16812echo "${ECHO_T}$ac_res" >&6; }
16813
16814fi
16815if test `eval echo '${'$as_ac_Header'}'` = yes; then
16816  cat >>confdefs.h <<_ACEOF
16817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16818_ACEOF
16819
16820fi
16821
16822done
16823
16824fi
16825
16826
16827for ac_header in CrashReporterClient.h
16828do
16829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16831  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834  echo $ECHO_N "(cached) $ECHO_C" >&6
16835fi
16836ac_res=`eval echo '${'$as_ac_Header'}'`
16837	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16838echo "${ECHO_T}$ac_res" >&6; }
16839else
16840  # Is the header compilable?
16841{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16842echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16843cat >conftest.$ac_ext <<_ACEOF
16844/* confdefs.h.  */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h.  */
16849$ac_includes_default
16850#include <$ac_header>
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (ac_try="$ac_compile"
16854case "(($ac_try" in
16855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856  *) ac_try_echo=$ac_try;;
16857esac
16858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859  (eval "$ac_compile") 2>conftest.er1
16860  ac_status=$?
16861  grep -v '^ *+' conftest.er1 >conftest.err
16862  rm -f conftest.er1
16863  cat conftest.err >&5
16864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865  (exit $ac_status); } &&
16866	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867  { (case "(($ac_try" in
16868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869  *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872  (eval "$ac_try") 2>&5
16873  ac_status=$?
16874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875  (exit $ac_status); }; } &&
16876	 { ac_try='test -s conftest.$ac_objext'
16877  { (case "(($ac_try" in
16878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879  *) ac_try_echo=$ac_try;;
16880esac
16881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882  (eval "$ac_try") 2>&5
16883  ac_status=$?
16884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885  (exit $ac_status); }; }; then
16886  ac_header_compiler=yes
16887else
16888  echo "$as_me: failed program was:" >&5
16889sed 's/^/| /' conftest.$ac_ext >&5
16890
16891	ac_header_compiler=no
16892fi
16893
16894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16896echo "${ECHO_T}$ac_header_compiler" >&6; }
16897
16898# Is the header present?
16899{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16901cat >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 <$ac_header>
16908_ACEOF
16909if { (ac_try="$ac_cpp conftest.$ac_ext"
16910case "(($ac_try" in
16911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912  *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16916  ac_status=$?
16917  grep -v '^ *+' conftest.er1 >conftest.err
16918  rm -f conftest.er1
16919  cat conftest.err >&5
16920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921  (exit $ac_status); } >/dev/null; then
16922  if test -s conftest.err; then
16923    ac_cpp_err=$ac_c_preproc_warn_flag
16924    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16925  else
16926    ac_cpp_err=
16927  fi
16928else
16929  ac_cpp_err=yes
16930fi
16931if test -z "$ac_cpp_err"; then
16932  ac_header_preproc=yes
16933else
16934  echo "$as_me: failed program was:" >&5
16935sed 's/^/| /' conftest.$ac_ext >&5
16936
16937  ac_header_preproc=no
16938fi
16939
16940rm -f conftest.err conftest.$ac_ext
16941{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16942echo "${ECHO_T}$ac_header_preproc" >&6; }
16943
16944# So?  What about this header?
16945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16946  yes:no: )
16947    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16949    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16951    ac_header_preproc=yes
16952    ;;
16953  no:yes:* )
16954    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16956    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16957echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16958    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16960    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16961echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16962    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16964    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16966    ( cat <<\_ASBOX
16967## ------------------------------------ ##
16968## Report this to http://llvm.org/bugs/ ##
16969## ------------------------------------ ##
16970_ASBOX
16971     ) | sed "s/^/$as_me: WARNING:     /" >&2
16972    ;;
16973esac
16974{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977  echo $ECHO_N "(cached) $ECHO_C" >&6
16978else
16979  eval "$as_ac_Header=\$ac_header_preproc"
16980fi
16981ac_res=`eval echo '${'$as_ac_Header'}'`
16982	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16983echo "${ECHO_T}$ac_res" >&6; }
16984
16985fi
16986if test `eval echo '${'$as_ac_Header'}'` = yes; then
16987  cat >>confdefs.h <<_ACEOF
16988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16989_ACEOF
16990
16991fi
16992
16993done
16994
16995
16996{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16997echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16998cat >conftest.$ac_ext <<_ACEOF
16999
17000  /* confdefs.h.  */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h.  */
17005
17006    extern const char *__crashreporter_info__;
17007    int main() {
17008      __crashreporter_info__ = "test";
17009      return 0;
17010    }
17011
17012
17013_ACEOF
17014rm -f conftest.$ac_objext conftest$ac_exeext
17015if { (ac_try="$ac_link"
17016case "(($ac_try" in
17017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018  *) ac_try_echo=$ac_try;;
17019esac
17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021  (eval "$ac_link") 2>conftest.er1
17022  ac_status=$?
17023  grep -v '^ *+' conftest.er1 >conftest.err
17024  rm -f conftest.er1
17025  cat conftest.err >&5
17026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027  (exit $ac_status); } &&
17028	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17029  { (case "(($ac_try" in
17030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031  *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034  (eval "$ac_try") 2>&5
17035  ac_status=$?
17036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037  (exit $ac_status); }; } &&
17038	 { ac_try='test -s conftest$ac_exeext'
17039  { (case "(($ac_try" in
17040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041  *) ac_try_echo=$ac_try;;
17042esac
17043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044  (eval "$ac_try") 2>&5
17045  ac_status=$?
17046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047  (exit $ac_status); }; }; then
17048
17049  { echo "$as_me:$LINENO: result: yes" >&5
17050echo "${ECHO_T}yes" >&6; }
17051
17052cat >>confdefs.h <<\_ACEOF
17053#define HAVE_CRASHREPORTER_INFO 1
17054_ACEOF
17055
17056
17057else
17058  echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
17061
17062  { echo "$as_me:$LINENO: result: no" >&5
17063echo "${ECHO_T}no" >&6; }
17064
17065cat >>confdefs.h <<\_ACEOF
17066#define HAVE_CRASHREPORTER_INFO 0
17067_ACEOF
17068
17069
17070fi
17071
17072rm -f core conftest.err conftest.$ac_objext \
17073      conftest$ac_exeext conftest.$ac_ext
17074
17075
17076
17077  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17078echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17079if test "${ac_cv_huge_val_sanity+set}" = set; then
17080  echo $ECHO_N "(cached) $ECHO_C" >&6
17081else
17082
17083    ac_ext=cpp
17084ac_cpp='$CXXCPP $CPPFLAGS'
17085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17088
17089    ac_save_CXXFLAGS=$CXXFLAGS
17090    CXXFLAGS="$CXXFLAGS -pedantic"
17091    if test "$cross_compiling" = yes; then
17092  ac_cv_huge_val_sanity=yes
17093else
17094  cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h.  */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h.  */
17100#include <math.h>
17101int
17102main ()
17103{
17104double x = HUGE_VAL; return x != x;
17105  ;
17106  return 0;
17107}
17108_ACEOF
17109rm -f conftest$ac_exeext
17110if { (ac_try="$ac_link"
17111case "(($ac_try" in
17112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113  *) ac_try_echo=$ac_try;;
17114esac
17115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116  (eval "$ac_link") 2>&5
17117  ac_status=$?
17118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17120  { (case "(($ac_try" in
17121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122  *) ac_try_echo=$ac_try;;
17123esac
17124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125  (eval "$ac_try") 2>&5
17126  ac_status=$?
17127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128  (exit $ac_status); }; }; then
17129  ac_cv_huge_val_sanity=yes
17130else
17131  echo "$as_me: program exited with status $ac_status" >&5
17132echo "$as_me: failed program was:" >&5
17133sed 's/^/| /' conftest.$ac_ext >&5
17134
17135( exit $ac_status )
17136ac_cv_huge_val_sanity=no
17137fi
17138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17139fi
17140
17141
17142    CXXFLAGS=$ac_save_CXXFLAGS
17143    ac_ext=c
17144ac_cpp='$CPP $CPPFLAGS'
17145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17147ac_compiler_gnu=$ac_cv_c_compiler_gnu
17148
17149
17150fi
17151{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17152echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17153  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17154
17155
17156{ echo "$as_me:$LINENO: checking for pid_t" >&5
17157echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17158if test "${ac_cv_type_pid_t+set}" = set; then
17159  echo $ECHO_N "(cached) $ECHO_C" >&6
17160else
17161  cat >conftest.$ac_ext <<_ACEOF
17162/* confdefs.h.  */
17163_ACEOF
17164cat confdefs.h >>conftest.$ac_ext
17165cat >>conftest.$ac_ext <<_ACEOF
17166/* end confdefs.h.  */
17167$ac_includes_default
17168typedef pid_t ac__type_new_;
17169int
17170main ()
17171{
17172if ((ac__type_new_ *) 0)
17173  return 0;
17174if (sizeof (ac__type_new_))
17175  return 0;
17176  ;
17177  return 0;
17178}
17179_ACEOF
17180rm -f conftest.$ac_objext
17181if { (ac_try="$ac_compile"
17182case "(($ac_try" in
17183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184  *) ac_try_echo=$ac_try;;
17185esac
17186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187  (eval "$ac_compile") 2>conftest.er1
17188  ac_status=$?
17189  grep -v '^ *+' conftest.er1 >conftest.err
17190  rm -f conftest.er1
17191  cat conftest.err >&5
17192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193  (exit $ac_status); } &&
17194	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195  { (case "(($ac_try" in
17196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197  *) ac_try_echo=$ac_try;;
17198esac
17199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200  (eval "$ac_try") 2>&5
17201  ac_status=$?
17202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203  (exit $ac_status); }; } &&
17204	 { ac_try='test -s conftest.$ac_objext'
17205  { (case "(($ac_try" in
17206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207  *) ac_try_echo=$ac_try;;
17208esac
17209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210  (eval "$ac_try") 2>&5
17211  ac_status=$?
17212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213  (exit $ac_status); }; }; then
17214  ac_cv_type_pid_t=yes
17215else
17216  echo "$as_me: failed program was:" >&5
17217sed 's/^/| /' conftest.$ac_ext >&5
17218
17219	ac_cv_type_pid_t=no
17220fi
17221
17222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223fi
17224{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17225echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17226if test $ac_cv_type_pid_t = yes; then
17227  :
17228else
17229
17230cat >>confdefs.h <<_ACEOF
17231#define pid_t int
17232_ACEOF
17233
17234fi
17235
17236{ echo "$as_me:$LINENO: checking for size_t" >&5
17237echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17238if test "${ac_cv_type_size_t+set}" = set; then
17239  echo $ECHO_N "(cached) $ECHO_C" >&6
17240else
17241  cat >conftest.$ac_ext <<_ACEOF
17242/* confdefs.h.  */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h.  */
17247$ac_includes_default
17248typedef size_t ac__type_new_;
17249int
17250main ()
17251{
17252if ((ac__type_new_ *) 0)
17253  return 0;
17254if (sizeof (ac__type_new_))
17255  return 0;
17256  ;
17257  return 0;
17258}
17259_ACEOF
17260rm -f conftest.$ac_objext
17261if { (ac_try="$ac_compile"
17262case "(($ac_try" in
17263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264  *) ac_try_echo=$ac_try;;
17265esac
17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267  (eval "$ac_compile") 2>conftest.er1
17268  ac_status=$?
17269  grep -v '^ *+' conftest.er1 >conftest.err
17270  rm -f conftest.er1
17271  cat conftest.err >&5
17272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273  (exit $ac_status); } &&
17274	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275  { (case "(($ac_try" in
17276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277  *) ac_try_echo=$ac_try;;
17278esac
17279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280  (eval "$ac_try") 2>&5
17281  ac_status=$?
17282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283  (exit $ac_status); }; } &&
17284	 { ac_try='test -s conftest.$ac_objext'
17285  { (case "(($ac_try" in
17286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287  *) ac_try_echo=$ac_try;;
17288esac
17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290  (eval "$ac_try") 2>&5
17291  ac_status=$?
17292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293  (exit $ac_status); }; }; then
17294  ac_cv_type_size_t=yes
17295else
17296  echo "$as_me: failed program was:" >&5
17297sed 's/^/| /' conftest.$ac_ext >&5
17298
17299	ac_cv_type_size_t=no
17300fi
17301
17302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303fi
17304{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17305echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17306if test $ac_cv_type_size_t = yes; then
17307  :
17308else
17309
17310cat >>confdefs.h <<_ACEOF
17311#define size_t unsigned int
17312_ACEOF
17313
17314fi
17315
17316
17317cat >>confdefs.h <<_ACEOF
17318#define RETSIGTYPE void
17319_ACEOF
17320
17321{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17322echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17323if test "${ac_cv_struct_tm+set}" = set; then
17324  echo $ECHO_N "(cached) $ECHO_C" >&6
17325else
17326  cat >conftest.$ac_ext <<_ACEOF
17327/* confdefs.h.  */
17328_ACEOF
17329cat confdefs.h >>conftest.$ac_ext
17330cat >>conftest.$ac_ext <<_ACEOF
17331/* end confdefs.h.  */
17332#include <sys/types.h>
17333#include <time.h>
17334
17335int
17336main ()
17337{
17338struct tm *tp; tp->tm_sec;
17339  ;
17340  return 0;
17341}
17342_ACEOF
17343rm -f conftest.$ac_objext
17344if { (ac_try="$ac_compile"
17345case "(($ac_try" in
17346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347  *) ac_try_echo=$ac_try;;
17348esac
17349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350  (eval "$ac_compile") 2>conftest.er1
17351  ac_status=$?
17352  grep -v '^ *+' conftest.er1 >conftest.err
17353  rm -f conftest.er1
17354  cat conftest.err >&5
17355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356  (exit $ac_status); } &&
17357	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17358  { (case "(($ac_try" in
17359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360  *) ac_try_echo=$ac_try;;
17361esac
17362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363  (eval "$ac_try") 2>&5
17364  ac_status=$?
17365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366  (exit $ac_status); }; } &&
17367	 { ac_try='test -s conftest.$ac_objext'
17368  { (case "(($ac_try" in
17369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370  *) ac_try_echo=$ac_try;;
17371esac
17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373  (eval "$ac_try") 2>&5
17374  ac_status=$?
17375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376  (exit $ac_status); }; }; then
17377  ac_cv_struct_tm=time.h
17378else
17379  echo "$as_me: failed program was:" >&5
17380sed 's/^/| /' conftest.$ac_ext >&5
17381
17382	ac_cv_struct_tm=sys/time.h
17383fi
17384
17385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386fi
17387{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17388echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17389if test $ac_cv_struct_tm = sys/time.h; then
17390
17391cat >>confdefs.h <<\_ACEOF
17392#define TM_IN_SYS_TIME 1
17393_ACEOF
17394
17395fi
17396
17397{ echo "$as_me:$LINENO: checking for int64_t" >&5
17398echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17399if test "${ac_cv_type_int64_t+set}" = set; then
17400  echo $ECHO_N "(cached) $ECHO_C" >&6
17401else
17402  cat >conftest.$ac_ext <<_ACEOF
17403/* confdefs.h.  */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h.  */
17408$ac_includes_default
17409typedef int64_t ac__type_new_;
17410int
17411main ()
17412{
17413if ((ac__type_new_ *) 0)
17414  return 0;
17415if (sizeof (ac__type_new_))
17416  return 0;
17417  ;
17418  return 0;
17419}
17420_ACEOF
17421rm -f conftest.$ac_objext
17422if { (ac_try="$ac_compile"
17423case "(($ac_try" in
17424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425  *) ac_try_echo=$ac_try;;
17426esac
17427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428  (eval "$ac_compile") 2>conftest.er1
17429  ac_status=$?
17430  grep -v '^ *+' conftest.er1 >conftest.err
17431  rm -f conftest.er1
17432  cat conftest.err >&5
17433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434  (exit $ac_status); } &&
17435	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17436  { (case "(($ac_try" in
17437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438  *) ac_try_echo=$ac_try;;
17439esac
17440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441  (eval "$ac_try") 2>&5
17442  ac_status=$?
17443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444  (exit $ac_status); }; } &&
17445	 { ac_try='test -s conftest.$ac_objext'
17446  { (case "(($ac_try" in
17447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448  *) ac_try_echo=$ac_try;;
17449esac
17450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451  (eval "$ac_try") 2>&5
17452  ac_status=$?
17453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454  (exit $ac_status); }; }; then
17455  ac_cv_type_int64_t=yes
17456else
17457  echo "$as_me: failed program was:" >&5
17458sed 's/^/| /' conftest.$ac_ext >&5
17459
17460	ac_cv_type_int64_t=no
17461fi
17462
17463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464fi
17465{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17466echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17467if test $ac_cv_type_int64_t = yes; then
17468
17469cat >>confdefs.h <<_ACEOF
17470#define HAVE_INT64_T 1
17471_ACEOF
17472
17473
17474else
17475  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17476echo "$as_me: error: Type int64_t required but not found" >&2;}
17477   { (exit 1); exit 1; }; }
17478fi
17479
17480{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17481echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17482if test "${ac_cv_type_uint64_t+set}" = set; then
17483  echo $ECHO_N "(cached) $ECHO_C" >&6
17484else
17485  cat >conftest.$ac_ext <<_ACEOF
17486/* confdefs.h.  */
17487_ACEOF
17488cat confdefs.h >>conftest.$ac_ext
17489cat >>conftest.$ac_ext <<_ACEOF
17490/* end confdefs.h.  */
17491$ac_includes_default
17492typedef uint64_t ac__type_new_;
17493int
17494main ()
17495{
17496if ((ac__type_new_ *) 0)
17497  return 0;
17498if (sizeof (ac__type_new_))
17499  return 0;
17500  ;
17501  return 0;
17502}
17503_ACEOF
17504rm -f conftest.$ac_objext
17505if { (ac_try="$ac_compile"
17506case "(($ac_try" in
17507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508  *) ac_try_echo=$ac_try;;
17509esac
17510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511  (eval "$ac_compile") 2>conftest.er1
17512  ac_status=$?
17513  grep -v '^ *+' conftest.er1 >conftest.err
17514  rm -f conftest.er1
17515  cat conftest.err >&5
17516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517  (exit $ac_status); } &&
17518	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17519  { (case "(($ac_try" in
17520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521  *) ac_try_echo=$ac_try;;
17522esac
17523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524  (eval "$ac_try") 2>&5
17525  ac_status=$?
17526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527  (exit $ac_status); }; } &&
17528	 { ac_try='test -s conftest.$ac_objext'
17529  { (case "(($ac_try" in
17530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531  *) ac_try_echo=$ac_try;;
17532esac
17533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534  (eval "$ac_try") 2>&5
17535  ac_status=$?
17536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537  (exit $ac_status); }; }; then
17538  ac_cv_type_uint64_t=yes
17539else
17540  echo "$as_me: failed program was:" >&5
17541sed 's/^/| /' conftest.$ac_ext >&5
17542
17543	ac_cv_type_uint64_t=no
17544fi
17545
17546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547fi
17548{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17549echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17550if test $ac_cv_type_uint64_t = yes; then
17551
17552cat >>confdefs.h <<_ACEOF
17553#define HAVE_UINT64_T 1
17554_ACEOF
17555
17556
17557else
17558  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17559echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17560if test "${ac_cv_type_u_int64_t+set}" = set; then
17561  echo $ECHO_N "(cached) $ECHO_C" >&6
17562else
17563  cat >conftest.$ac_ext <<_ACEOF
17564/* confdefs.h.  */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h.  */
17569$ac_includes_default
17570typedef u_int64_t ac__type_new_;
17571int
17572main ()
17573{
17574if ((ac__type_new_ *) 0)
17575  return 0;
17576if (sizeof (ac__type_new_))
17577  return 0;
17578  ;
17579  return 0;
17580}
17581_ACEOF
17582rm -f conftest.$ac_objext
17583if { (ac_try="$ac_compile"
17584case "(($ac_try" in
17585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586  *) ac_try_echo=$ac_try;;
17587esac
17588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589  (eval "$ac_compile") 2>conftest.er1
17590  ac_status=$?
17591  grep -v '^ *+' conftest.er1 >conftest.err
17592  rm -f conftest.er1
17593  cat conftest.err >&5
17594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595  (exit $ac_status); } &&
17596	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17597  { (case "(($ac_try" in
17598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599  *) ac_try_echo=$ac_try;;
17600esac
17601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602  (eval "$ac_try") 2>&5
17603  ac_status=$?
17604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605  (exit $ac_status); }; } &&
17606	 { ac_try='test -s conftest.$ac_objext'
17607  { (case "(($ac_try" in
17608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609  *) ac_try_echo=$ac_try;;
17610esac
17611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612  (eval "$ac_try") 2>&5
17613  ac_status=$?
17614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615  (exit $ac_status); }; }; then
17616  ac_cv_type_u_int64_t=yes
17617else
17618  echo "$as_me: failed program was:" >&5
17619sed 's/^/| /' conftest.$ac_ext >&5
17620
17621	ac_cv_type_u_int64_t=no
17622fi
17623
17624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625fi
17626{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17627echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17628if test $ac_cv_type_u_int64_t = yes; then
17629
17630cat >>confdefs.h <<_ACEOF
17631#define HAVE_U_INT64_T 1
17632_ACEOF
17633
17634
17635else
17636  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17637echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17638   { (exit 1); exit 1; }; }
17639fi
17640
17641fi
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17653do
17654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17655{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17657if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17658  echo $ECHO_N "(cached) $ECHO_C" >&6
17659else
17660  cat >conftest.$ac_ext <<_ACEOF
17661/* confdefs.h.  */
17662_ACEOF
17663cat confdefs.h >>conftest.$ac_ext
17664cat >>conftest.$ac_ext <<_ACEOF
17665/* end confdefs.h.  */
17666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17667   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17668#define $ac_func innocuous_$ac_func
17669
17670/* System header to define __stub macros and hopefully few prototypes,
17671    which can conflict with char $ac_func (); below.
17672    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17673    <limits.h> exists even on freestanding compilers.  */
17674
17675#ifdef __STDC__
17676# include <limits.h>
17677#else
17678# include <assert.h>
17679#endif
17680
17681#undef $ac_func
17682
17683/* Override any GCC internal prototype to avoid an error.
17684   Use char because int might match the return type of a GCC
17685   builtin and then its argument prototype would still apply.  */
17686#ifdef __cplusplus
17687extern "C"
17688#endif
17689char $ac_func ();
17690/* The GNU C library defines this for functions which it implements
17691    to always fail with ENOSYS.  Some functions are actually named
17692    something starting with __ and the normal name is an alias.  */
17693#if defined __stub_$ac_func || defined __stub___$ac_func
17694choke me
17695#endif
17696
17697int
17698main ()
17699{
17700return $ac_func ();
17701  ;
17702  return 0;
17703}
17704_ACEOF
17705rm -f conftest.$ac_objext conftest$ac_exeext
17706if { (ac_try="$ac_link"
17707case "(($ac_try" in
17708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709  *) ac_try_echo=$ac_try;;
17710esac
17711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712  (eval "$ac_link") 2>conftest.er1
17713  ac_status=$?
17714  grep -v '^ *+' conftest.er1 >conftest.err
17715  rm -f conftest.er1
17716  cat conftest.err >&5
17717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718  (exit $ac_status); } &&
17719	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17720  { (case "(($ac_try" in
17721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722  *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725  (eval "$ac_try") 2>&5
17726  ac_status=$?
17727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728  (exit $ac_status); }; } &&
17729	 { ac_try='test -s conftest$ac_exeext'
17730  { (case "(($ac_try" in
17731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732  *) ac_try_echo=$ac_try;;
17733esac
17734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735  (eval "$ac_try") 2>&5
17736  ac_status=$?
17737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738  (exit $ac_status); }; }; then
17739  eval "$as_ac_var=yes"
17740else
17741  echo "$as_me: failed program was:" >&5
17742sed 's/^/| /' conftest.$ac_ext >&5
17743
17744	eval "$as_ac_var=no"
17745fi
17746
17747rm -f core conftest.err conftest.$ac_objext \
17748      conftest$ac_exeext conftest.$ac_ext
17749fi
17750ac_res=`eval echo '${'$as_ac_var'}'`
17751	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17752echo "${ECHO_T}$ac_res" >&6; }
17753if test `eval echo '${'$as_ac_var'}'` = yes; then
17754  cat >>confdefs.h <<_ACEOF
17755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17756_ACEOF
17757
17758fi
17759done
17760
17761
17762
17763
17764
17765for ac_func in powf fmodf strtof round
17766do
17767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17768{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17770if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17771  echo $ECHO_N "(cached) $ECHO_C" >&6
17772else
17773  cat >conftest.$ac_ext <<_ACEOF
17774/* confdefs.h.  */
17775_ACEOF
17776cat confdefs.h >>conftest.$ac_ext
17777cat >>conftest.$ac_ext <<_ACEOF
17778/* end confdefs.h.  */
17779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17780   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17781#define $ac_func innocuous_$ac_func
17782
17783/* System header to define __stub macros and hopefully few prototypes,
17784    which can conflict with char $ac_func (); below.
17785    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17786    <limits.h> exists even on freestanding compilers.  */
17787
17788#ifdef __STDC__
17789# include <limits.h>
17790#else
17791# include <assert.h>
17792#endif
17793
17794#undef $ac_func
17795
17796/* Override any GCC internal prototype to avoid an error.
17797   Use char because int might match the return type of a GCC
17798   builtin and then its argument prototype would still apply.  */
17799#ifdef __cplusplus
17800extern "C"
17801#endif
17802char $ac_func ();
17803/* The GNU C library defines this for functions which it implements
17804    to always fail with ENOSYS.  Some functions are actually named
17805    something starting with __ and the normal name is an alias.  */
17806#if defined __stub_$ac_func || defined __stub___$ac_func
17807choke me
17808#endif
17809
17810int
17811main ()
17812{
17813return $ac_func ();
17814  ;
17815  return 0;
17816}
17817_ACEOF
17818rm -f conftest.$ac_objext conftest$ac_exeext
17819if { (ac_try="$ac_link"
17820case "(($ac_try" in
17821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822  *) ac_try_echo=$ac_try;;
17823esac
17824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825  (eval "$ac_link") 2>conftest.er1
17826  ac_status=$?
17827  grep -v '^ *+' conftest.er1 >conftest.err
17828  rm -f conftest.er1
17829  cat conftest.err >&5
17830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831  (exit $ac_status); } &&
17832	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17833  { (case "(($ac_try" in
17834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835  *) ac_try_echo=$ac_try;;
17836esac
17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838  (eval "$ac_try") 2>&5
17839  ac_status=$?
17840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841  (exit $ac_status); }; } &&
17842	 { ac_try='test -s conftest$ac_exeext'
17843  { (case "(($ac_try" in
17844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845  *) ac_try_echo=$ac_try;;
17846esac
17847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848  (eval "$ac_try") 2>&5
17849  ac_status=$?
17850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851  (exit $ac_status); }; }; then
17852  eval "$as_ac_var=yes"
17853else
17854  echo "$as_me: failed program was:" >&5
17855sed 's/^/| /' conftest.$ac_ext >&5
17856
17857	eval "$as_ac_var=no"
17858fi
17859
17860rm -f core conftest.err conftest.$ac_objext \
17861      conftest$ac_exeext conftest.$ac_ext
17862fi
17863ac_res=`eval echo '${'$as_ac_var'}'`
17864	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17865echo "${ECHO_T}$ac_res" >&6; }
17866if test `eval echo '${'$as_ac_var'}'` = yes; then
17867  cat >>confdefs.h <<_ACEOF
17868#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17869_ACEOF
17870
17871fi
17872done
17873
17874
17875
17876
17877
17878
17879for ac_func in log log2 log10 exp exp2
17880do
17881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17885  echo $ECHO_N "(cached) $ECHO_C" >&6
17886else
17887  cat >conftest.$ac_ext <<_ACEOF
17888/* confdefs.h.  */
17889_ACEOF
17890cat confdefs.h >>conftest.$ac_ext
17891cat >>conftest.$ac_ext <<_ACEOF
17892/* end confdefs.h.  */
17893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17894   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17895#define $ac_func innocuous_$ac_func
17896
17897/* System header to define __stub macros and hopefully few prototypes,
17898    which can conflict with char $ac_func (); below.
17899    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17900    <limits.h> exists even on freestanding compilers.  */
17901
17902#ifdef __STDC__
17903# include <limits.h>
17904#else
17905# include <assert.h>
17906#endif
17907
17908#undef $ac_func
17909
17910/* Override any GCC internal prototype to avoid an error.
17911   Use char because int might match the return type of a GCC
17912   builtin and then its argument prototype would still apply.  */
17913#ifdef __cplusplus
17914extern "C"
17915#endif
17916char $ac_func ();
17917/* The GNU C library defines this for functions which it implements
17918    to always fail with ENOSYS.  Some functions are actually named
17919    something starting with __ and the normal name is an alias.  */
17920#if defined __stub_$ac_func || defined __stub___$ac_func
17921choke me
17922#endif
17923
17924int
17925main ()
17926{
17927return $ac_func ();
17928  ;
17929  return 0;
17930}
17931_ACEOF
17932rm -f conftest.$ac_objext conftest$ac_exeext
17933if { (ac_try="$ac_link"
17934case "(($ac_try" in
17935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936  *) ac_try_echo=$ac_try;;
17937esac
17938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939  (eval "$ac_link") 2>conftest.er1
17940  ac_status=$?
17941  grep -v '^ *+' conftest.er1 >conftest.err
17942  rm -f conftest.er1
17943  cat conftest.err >&5
17944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945  (exit $ac_status); } &&
17946	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947  { (case "(($ac_try" in
17948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949  *) ac_try_echo=$ac_try;;
17950esac
17951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952  (eval "$ac_try") 2>&5
17953  ac_status=$?
17954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955  (exit $ac_status); }; } &&
17956	 { ac_try='test -s conftest$ac_exeext'
17957  { (case "(($ac_try" in
17958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959  *) ac_try_echo=$ac_try;;
17960esac
17961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962  (eval "$ac_try") 2>&5
17963  ac_status=$?
17964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965  (exit $ac_status); }; }; then
17966  eval "$as_ac_var=yes"
17967else
17968  echo "$as_me: failed program was:" >&5
17969sed 's/^/| /' conftest.$ac_ext >&5
17970
17971	eval "$as_ac_var=no"
17972fi
17973
17974rm -f core conftest.err conftest.$ac_objext \
17975      conftest$ac_exeext conftest.$ac_ext
17976fi
17977ac_res=`eval echo '${'$as_ac_var'}'`
17978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17979echo "${ECHO_T}$ac_res" >&6; }
17980if test `eval echo '${'$as_ac_var'}'` = yes; then
17981  cat >>confdefs.h <<_ACEOF
17982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17983_ACEOF
17984
17985fi
17986done
17987
17988
17989
17990
17991
17992
17993for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17994do
17995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17999  echo $ECHO_N "(cached) $ECHO_C" >&6
18000else
18001  cat >conftest.$ac_ext <<_ACEOF
18002/* confdefs.h.  */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
18006/* end confdefs.h.  */
18007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18008   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18009#define $ac_func innocuous_$ac_func
18010
18011/* System header to define __stub macros and hopefully few prototypes,
18012    which can conflict with char $ac_func (); below.
18013    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18014    <limits.h> exists even on freestanding compilers.  */
18015
18016#ifdef __STDC__
18017# include <limits.h>
18018#else
18019# include <assert.h>
18020#endif
18021
18022#undef $ac_func
18023
18024/* Override any GCC internal prototype to avoid an error.
18025   Use char because int might match the return type of a GCC
18026   builtin and then its argument prototype would still apply.  */
18027#ifdef __cplusplus
18028extern "C"
18029#endif
18030char $ac_func ();
18031/* The GNU C library defines this for functions which it implements
18032    to always fail with ENOSYS.  Some functions are actually named
18033    something starting with __ and the normal name is an alias.  */
18034#if defined __stub_$ac_func || defined __stub___$ac_func
18035choke me
18036#endif
18037
18038int
18039main ()
18040{
18041return $ac_func ();
18042  ;
18043  return 0;
18044}
18045_ACEOF
18046rm -f conftest.$ac_objext conftest$ac_exeext
18047if { (ac_try="$ac_link"
18048case "(($ac_try" in
18049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050  *) ac_try_echo=$ac_try;;
18051esac
18052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053  (eval "$ac_link") 2>conftest.er1
18054  ac_status=$?
18055  grep -v '^ *+' conftest.er1 >conftest.err
18056  rm -f conftest.er1
18057  cat conftest.err >&5
18058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059  (exit $ac_status); } &&
18060	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061  { (case "(($ac_try" in
18062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063  *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066  (eval "$ac_try") 2>&5
18067  ac_status=$?
18068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069  (exit $ac_status); }; } &&
18070	 { ac_try='test -s conftest$ac_exeext'
18071  { (case "(($ac_try" in
18072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073  *) ac_try_echo=$ac_try;;
18074esac
18075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076  (eval "$ac_try") 2>&5
18077  ac_status=$?
18078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079  (exit $ac_status); }; }; then
18080  eval "$as_ac_var=yes"
18081else
18082  echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085	eval "$as_ac_var=no"
18086fi
18087
18088rm -f core conftest.err conftest.$ac_objext \
18089      conftest$ac_exeext conftest.$ac_ext
18090fi
18091ac_res=`eval echo '${'$as_ac_var'}'`
18092	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18093echo "${ECHO_T}$ac_res" >&6; }
18094if test `eval echo '${'$as_ac_var'}'` = yes; then
18095  cat >>confdefs.h <<_ACEOF
18096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18097_ACEOF
18098
18099fi
18100done
18101
18102
18103
18104
18105for ac_func in isatty mkdtemp mkstemp
18106do
18107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18108{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18110if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18111  echo $ECHO_N "(cached) $ECHO_C" >&6
18112else
18113  cat >conftest.$ac_ext <<_ACEOF
18114/* confdefs.h.  */
18115_ACEOF
18116cat confdefs.h >>conftest.$ac_ext
18117cat >>conftest.$ac_ext <<_ACEOF
18118/* end confdefs.h.  */
18119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18120   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18121#define $ac_func innocuous_$ac_func
18122
18123/* System header to define __stub macros and hopefully few prototypes,
18124    which can conflict with char $ac_func (); below.
18125    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18126    <limits.h> exists even on freestanding compilers.  */
18127
18128#ifdef __STDC__
18129# include <limits.h>
18130#else
18131# include <assert.h>
18132#endif
18133
18134#undef $ac_func
18135
18136/* Override any GCC internal prototype to avoid an error.
18137   Use char because int might match the return type of a GCC
18138   builtin and then its argument prototype would still apply.  */
18139#ifdef __cplusplus
18140extern "C"
18141#endif
18142char $ac_func ();
18143/* The GNU C library defines this for functions which it implements
18144    to always fail with ENOSYS.  Some functions are actually named
18145    something starting with __ and the normal name is an alias.  */
18146#if defined __stub_$ac_func || defined __stub___$ac_func
18147choke me
18148#endif
18149
18150int
18151main ()
18152{
18153return $ac_func ();
18154  ;
18155  return 0;
18156}
18157_ACEOF
18158rm -f conftest.$ac_objext conftest$ac_exeext
18159if { (ac_try="$ac_link"
18160case "(($ac_try" in
18161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162  *) ac_try_echo=$ac_try;;
18163esac
18164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165  (eval "$ac_link") 2>conftest.er1
18166  ac_status=$?
18167  grep -v '^ *+' conftest.er1 >conftest.err
18168  rm -f conftest.er1
18169  cat conftest.err >&5
18170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171  (exit $ac_status); } &&
18172	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173  { (case "(($ac_try" in
18174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175  *) ac_try_echo=$ac_try;;
18176esac
18177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178  (eval "$ac_try") 2>&5
18179  ac_status=$?
18180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181  (exit $ac_status); }; } &&
18182	 { ac_try='test -s conftest$ac_exeext'
18183  { (case "(($ac_try" in
18184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185  *) ac_try_echo=$ac_try;;
18186esac
18187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188  (eval "$ac_try") 2>&5
18189  ac_status=$?
18190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191  (exit $ac_status); }; }; then
18192  eval "$as_ac_var=yes"
18193else
18194  echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197	eval "$as_ac_var=no"
18198fi
18199
18200rm -f core conftest.err conftest.$ac_objext \
18201      conftest$ac_exeext conftest.$ac_ext
18202fi
18203ac_res=`eval echo '${'$as_ac_var'}'`
18204	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18205echo "${ECHO_T}$ac_res" >&6; }
18206if test `eval echo '${'$as_ac_var'}'` = yes; then
18207  cat >>confdefs.h <<_ACEOF
18208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18209_ACEOF
18210
18211fi
18212done
18213
18214
18215
18216
18217
18218
18219
18220for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18221do
18222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18223{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18225if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18226  echo $ECHO_N "(cached) $ECHO_C" >&6
18227else
18228  cat >conftest.$ac_ext <<_ACEOF
18229/* confdefs.h.  */
18230_ACEOF
18231cat confdefs.h >>conftest.$ac_ext
18232cat >>conftest.$ac_ext <<_ACEOF
18233/* end confdefs.h.  */
18234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18235   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18236#define $ac_func innocuous_$ac_func
18237
18238/* System header to define __stub macros and hopefully few prototypes,
18239    which can conflict with char $ac_func (); below.
18240    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18241    <limits.h> exists even on freestanding compilers.  */
18242
18243#ifdef __STDC__
18244# include <limits.h>
18245#else
18246# include <assert.h>
18247#endif
18248
18249#undef $ac_func
18250
18251/* Override any GCC internal prototype to avoid an error.
18252   Use char because int might match the return type of a GCC
18253   builtin and then its argument prototype would still apply.  */
18254#ifdef __cplusplus
18255extern "C"
18256#endif
18257char $ac_func ();
18258/* The GNU C library defines this for functions which it implements
18259    to always fail with ENOSYS.  Some functions are actually named
18260    something starting with __ and the normal name is an alias.  */
18261#if defined __stub_$ac_func || defined __stub___$ac_func
18262choke me
18263#endif
18264
18265int
18266main ()
18267{
18268return $ac_func ();
18269  ;
18270  return 0;
18271}
18272_ACEOF
18273rm -f conftest.$ac_objext conftest$ac_exeext
18274if { (ac_try="$ac_link"
18275case "(($ac_try" in
18276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277  *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280  (eval "$ac_link") 2>conftest.er1
18281  ac_status=$?
18282  grep -v '^ *+' conftest.er1 >conftest.err
18283  rm -f conftest.er1
18284  cat conftest.err >&5
18285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286  (exit $ac_status); } &&
18287	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18288  { (case "(($ac_try" in
18289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290  *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293  (eval "$ac_try") 2>&5
18294  ac_status=$?
18295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296  (exit $ac_status); }; } &&
18297	 { ac_try='test -s conftest$ac_exeext'
18298  { (case "(($ac_try" in
18299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300  *) ac_try_echo=$ac_try;;
18301esac
18302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303  (eval "$ac_try") 2>&5
18304  ac_status=$?
18305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306  (exit $ac_status); }; }; then
18307  eval "$as_ac_var=yes"
18308else
18309  echo "$as_me: failed program was:" >&5
18310sed 's/^/| /' conftest.$ac_ext >&5
18311
18312	eval "$as_ac_var=no"
18313fi
18314
18315rm -f core conftest.err conftest.$ac_objext \
18316      conftest$ac_exeext conftest.$ac_ext
18317fi
18318ac_res=`eval echo '${'$as_ac_var'}'`
18319	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18320echo "${ECHO_T}$ac_res" >&6; }
18321if test `eval echo '${'$as_ac_var'}'` = yes; then
18322  cat >>confdefs.h <<_ACEOF
18323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18324_ACEOF
18325
18326fi
18327done
18328
18329
18330
18331
18332
18333for ac_func in strerror strerror_r setenv arc4random
18334do
18335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18336{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18338if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18339  echo $ECHO_N "(cached) $ECHO_C" >&6
18340else
18341  cat >conftest.$ac_ext <<_ACEOF
18342/* confdefs.h.  */
18343_ACEOF
18344cat confdefs.h >>conftest.$ac_ext
18345cat >>conftest.$ac_ext <<_ACEOF
18346/* end confdefs.h.  */
18347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18348   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18349#define $ac_func innocuous_$ac_func
18350
18351/* System header to define __stub macros and hopefully few prototypes,
18352    which can conflict with char $ac_func (); below.
18353    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18354    <limits.h> exists even on freestanding compilers.  */
18355
18356#ifdef __STDC__
18357# include <limits.h>
18358#else
18359# include <assert.h>
18360#endif
18361
18362#undef $ac_func
18363
18364/* Override any GCC internal prototype to avoid an error.
18365   Use char because int might match the return type of a GCC
18366   builtin and then its argument prototype would still apply.  */
18367#ifdef __cplusplus
18368extern "C"
18369#endif
18370char $ac_func ();
18371/* The GNU C library defines this for functions which it implements
18372    to always fail with ENOSYS.  Some functions are actually named
18373    something starting with __ and the normal name is an alias.  */
18374#if defined __stub_$ac_func || defined __stub___$ac_func
18375choke me
18376#endif
18377
18378int
18379main ()
18380{
18381return $ac_func ();
18382  ;
18383  return 0;
18384}
18385_ACEOF
18386rm -f conftest.$ac_objext conftest$ac_exeext
18387if { (ac_try="$ac_link"
18388case "(($ac_try" in
18389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390  *) ac_try_echo=$ac_try;;
18391esac
18392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393  (eval "$ac_link") 2>conftest.er1
18394  ac_status=$?
18395  grep -v '^ *+' conftest.er1 >conftest.err
18396  rm -f conftest.er1
18397  cat conftest.err >&5
18398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399  (exit $ac_status); } &&
18400	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18401  { (case "(($ac_try" in
18402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403  *) ac_try_echo=$ac_try;;
18404esac
18405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406  (eval "$ac_try") 2>&5
18407  ac_status=$?
18408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409  (exit $ac_status); }; } &&
18410	 { ac_try='test -s conftest$ac_exeext'
18411  { (case "(($ac_try" in
18412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413  *) ac_try_echo=$ac_try;;
18414esac
18415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416  (eval "$ac_try") 2>&5
18417  ac_status=$?
18418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419  (exit $ac_status); }; }; then
18420  eval "$as_ac_var=yes"
18421else
18422  echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425	eval "$as_ac_var=no"
18426fi
18427
18428rm -f core conftest.err conftest.$ac_objext \
18429      conftest$ac_exeext conftest.$ac_ext
18430fi
18431ac_res=`eval echo '${'$as_ac_var'}'`
18432	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18433echo "${ECHO_T}$ac_res" >&6; }
18434if test `eval echo '${'$as_ac_var'}'` = yes; then
18435  cat >>confdefs.h <<_ACEOF
18436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18437_ACEOF
18438
18439fi
18440done
18441
18442
18443
18444
18445
18446for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18447do
18448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18449{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18451if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18452  echo $ECHO_N "(cached) $ECHO_C" >&6
18453else
18454  cat >conftest.$ac_ext <<_ACEOF
18455/* confdefs.h.  */
18456_ACEOF
18457cat confdefs.h >>conftest.$ac_ext
18458cat >>conftest.$ac_ext <<_ACEOF
18459/* end confdefs.h.  */
18460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18461   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18462#define $ac_func innocuous_$ac_func
18463
18464/* System header to define __stub macros and hopefully few prototypes,
18465    which can conflict with char $ac_func (); below.
18466    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18467    <limits.h> exists even on freestanding compilers.  */
18468
18469#ifdef __STDC__
18470# include <limits.h>
18471#else
18472# include <assert.h>
18473#endif
18474
18475#undef $ac_func
18476
18477/* Override any GCC internal prototype to avoid an error.
18478   Use char because int might match the return type of a GCC
18479   builtin and then its argument prototype would still apply.  */
18480#ifdef __cplusplus
18481extern "C"
18482#endif
18483char $ac_func ();
18484/* The GNU C library defines this for functions which it implements
18485    to always fail with ENOSYS.  Some functions are actually named
18486    something starting with __ and the normal name is an alias.  */
18487#if defined __stub_$ac_func || defined __stub___$ac_func
18488choke me
18489#endif
18490
18491int
18492main ()
18493{
18494return $ac_func ();
18495  ;
18496  return 0;
18497}
18498_ACEOF
18499rm -f conftest.$ac_objext conftest$ac_exeext
18500if { (ac_try="$ac_link"
18501case "(($ac_try" in
18502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503  *) ac_try_echo=$ac_try;;
18504esac
18505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506  (eval "$ac_link") 2>conftest.er1
18507  ac_status=$?
18508  grep -v '^ *+' conftest.er1 >conftest.err
18509  rm -f conftest.er1
18510  cat conftest.err >&5
18511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512  (exit $ac_status); } &&
18513	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18514  { (case "(($ac_try" in
18515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516  *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519  (eval "$ac_try") 2>&5
18520  ac_status=$?
18521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522  (exit $ac_status); }; } &&
18523	 { ac_try='test -s conftest$ac_exeext'
18524  { (case "(($ac_try" in
18525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526  *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529  (eval "$ac_try") 2>&5
18530  ac_status=$?
18531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532  (exit $ac_status); }; }; then
18533  eval "$as_ac_var=yes"
18534else
18535  echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538	eval "$as_ac_var=no"
18539fi
18540
18541rm -f core conftest.err conftest.$ac_objext \
18542      conftest$ac_exeext conftest.$ac_ext
18543fi
18544ac_res=`eval echo '${'$as_ac_var'}'`
18545	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18546echo "${ECHO_T}$ac_res" >&6; }
18547if test `eval echo '${'$as_ac_var'}'` = yes; then
18548  cat >>confdefs.h <<_ACEOF
18549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18550_ACEOF
18551
18552fi
18553done
18554
18555
18556
18557
18558
18559
18560for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18561do
18562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18563{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18565if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18566  echo $ECHO_N "(cached) $ECHO_C" >&6
18567else
18568  cat >conftest.$ac_ext <<_ACEOF
18569/* confdefs.h.  */
18570_ACEOF
18571cat confdefs.h >>conftest.$ac_ext
18572cat >>conftest.$ac_ext <<_ACEOF
18573/* end confdefs.h.  */
18574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18575   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18576#define $ac_func innocuous_$ac_func
18577
18578/* System header to define __stub macros and hopefully few prototypes,
18579    which can conflict with char $ac_func (); below.
18580    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18581    <limits.h> exists even on freestanding compilers.  */
18582
18583#ifdef __STDC__
18584# include <limits.h>
18585#else
18586# include <assert.h>
18587#endif
18588
18589#undef $ac_func
18590
18591/* Override any GCC internal prototype to avoid an error.
18592   Use char because int might match the return type of a GCC
18593   builtin and then its argument prototype would still apply.  */
18594#ifdef __cplusplus
18595extern "C"
18596#endif
18597char $ac_func ();
18598/* The GNU C library defines this for functions which it implements
18599    to always fail with ENOSYS.  Some functions are actually named
18600    something starting with __ and the normal name is an alias.  */
18601#if defined __stub_$ac_func || defined __stub___$ac_func
18602choke me
18603#endif
18604
18605int
18606main ()
18607{
18608return $ac_func ();
18609  ;
18610  return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext conftest$ac_exeext
18614if { (ac_try="$ac_link"
18615case "(($ac_try" in
18616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617  *) ac_try_echo=$ac_try;;
18618esac
18619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620  (eval "$ac_link") 2>conftest.er1
18621  ac_status=$?
18622  grep -v '^ *+' conftest.er1 >conftest.err
18623  rm -f conftest.er1
18624  cat conftest.err >&5
18625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626  (exit $ac_status); } &&
18627	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18628  { (case "(($ac_try" in
18629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630  *) ac_try_echo=$ac_try;;
18631esac
18632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633  (eval "$ac_try") 2>&5
18634  ac_status=$?
18635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636  (exit $ac_status); }; } &&
18637	 { ac_try='test -s conftest$ac_exeext'
18638  { (case "(($ac_try" in
18639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640  *) ac_try_echo=$ac_try;;
18641esac
18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643  (eval "$ac_try") 2>&5
18644  ac_status=$?
18645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646  (exit $ac_status); }; }; then
18647  eval "$as_ac_var=yes"
18648else
18649  echo "$as_me: failed program was:" >&5
18650sed 's/^/| /' conftest.$ac_ext >&5
18651
18652	eval "$as_ac_var=no"
18653fi
18654
18655rm -f core conftest.err conftest.$ac_objext \
18656      conftest$ac_exeext conftest.$ac_ext
18657fi
18658ac_res=`eval echo '${'$as_ac_var'}'`
18659	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18660echo "${ECHO_T}$ac_res" >&6; }
18661if test `eval echo '${'$as_ac_var'}'` = yes; then
18662  cat >>confdefs.h <<_ACEOF
18663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18664_ACEOF
18665
18666fi
18667done
18668
18669
18670
18671for ac_func in futimes futimens
18672do
18673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18677  echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679  cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h.  */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h.  */
18685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18687#define $ac_func innocuous_$ac_func
18688
18689/* System header to define __stub macros and hopefully few prototypes,
18690    which can conflict with char $ac_func (); below.
18691    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692    <limits.h> exists even on freestanding compilers.  */
18693
18694#ifdef __STDC__
18695# include <limits.h>
18696#else
18697# include <assert.h>
18698#endif
18699
18700#undef $ac_func
18701
18702/* Override any GCC internal prototype to avoid an error.
18703   Use char because int might match the return type of a GCC
18704   builtin and then its argument prototype would still apply.  */
18705#ifdef __cplusplus
18706extern "C"
18707#endif
18708char $ac_func ();
18709/* The GNU C library defines this for functions which it implements
18710    to always fail with ENOSYS.  Some functions are actually named
18711    something starting with __ and the normal name is an alias.  */
18712#if defined __stub_$ac_func || defined __stub___$ac_func
18713choke me
18714#endif
18715
18716int
18717main ()
18718{
18719return $ac_func ();
18720  ;
18721  return 0;
18722}
18723_ACEOF
18724rm -f conftest.$ac_objext conftest$ac_exeext
18725if { (ac_try="$ac_link"
18726case "(($ac_try" in
18727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728  *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731  (eval "$ac_link") 2>conftest.er1
18732  ac_status=$?
18733  grep -v '^ *+' conftest.er1 >conftest.err
18734  rm -f conftest.er1
18735  cat conftest.err >&5
18736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737  (exit $ac_status); } &&
18738	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18739  { (case "(($ac_try" in
18740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741  *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744  (eval "$ac_try") 2>&5
18745  ac_status=$?
18746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747  (exit $ac_status); }; } &&
18748	 { ac_try='test -s conftest$ac_exeext'
18749  { (case "(($ac_try" in
18750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751  *) ac_try_echo=$ac_try;;
18752esac
18753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754  (eval "$ac_try") 2>&5
18755  ac_status=$?
18756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757  (exit $ac_status); }; }; then
18758  eval "$as_ac_var=yes"
18759else
18760  echo "$as_me: failed program was:" >&5
18761sed 's/^/| /' conftest.$ac_ext >&5
18762
18763	eval "$as_ac_var=no"
18764fi
18765
18766rm -f core conftest.err conftest.$ac_objext \
18767      conftest$ac_exeext conftest.$ac_ext
18768fi
18769ac_res=`eval echo '${'$as_ac_var'}'`
18770	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18771echo "${ECHO_T}$ac_res" >&6; }
18772if test `eval echo '${'$as_ac_var'}'` = yes; then
18773  cat >>confdefs.h <<_ACEOF
18774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18775_ACEOF
18776
18777fi
18778done
18779
18780{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18781echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18782if test "${llvm_cv_c_printf_a+set}" = set; then
18783  echo $ECHO_N "(cached) $ECHO_C" >&6
18784else
18785  ac_ext=c
18786ac_cpp='$CPP $CPPFLAGS'
18787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18789ac_compiler_gnu=$ac_cv_c_compiler_gnu
18790
18791 if test "$cross_compiling" = yes; then
18792  llvmac_cv_c_printf_a=no
18793else
18794  cat >conftest.$ac_ext <<_ACEOF
18795
18796  /* confdefs.h.  */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h.  */
18801
18802#include <stdio.h>
18803#include <stdlib.h>
18804
18805int
18806main ()
18807{
18808
18809volatile double A, B;
18810char Buffer[100];
18811A = 1;
18812A /= 10.0;
18813sprintf(Buffer, "%a", A);
18814B = atof(Buffer);
18815if (A != B)
18816  return (1);
18817if (A != 0x1.999999999999ap-4)
18818  return (1);
18819return (0);
18820  ;
18821  return 0;
18822}
18823_ACEOF
18824rm -f conftest$ac_exeext
18825if { (ac_try="$ac_link"
18826case "(($ac_try" in
18827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828  *) ac_try_echo=$ac_try;;
18829esac
18830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831  (eval "$ac_link") 2>&5
18832  ac_status=$?
18833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18835  { (case "(($ac_try" in
18836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837  *) ac_try_echo=$ac_try;;
18838esac
18839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840  (eval "$ac_try") 2>&5
18841  ac_status=$?
18842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843  (exit $ac_status); }; }; then
18844  llvm_cv_c_printf_a=yes
18845else
18846  echo "$as_me: program exited with status $ac_status" >&5
18847echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850( exit $ac_status )
18851llvmac_cv_c_printf_a=no
18852fi
18853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18854fi
18855
18856
18857 ac_ext=c
18858ac_cpp='$CPP $CPPFLAGS'
18859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861ac_compiler_gnu=$ac_cv_c_compiler_gnu
18862
18863fi
18864{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18865echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18866 if test "$llvm_cv_c_printf_a" = "yes"; then
18867
18868cat >>confdefs.h <<\_ACEOF
18869#define HAVE_PRINTF_A 1
18870_ACEOF
18871
18872 fi
18873
18874
18875
18876  { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18877echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18878if test "${ac_cv_func_rand48+set}" = set; then
18879  echo $ECHO_N "(cached) $ECHO_C" >&6
18880else
18881
18882    ac_ext=cpp
18883ac_cpp='$CXXCPP $CPPFLAGS'
18884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18887
18888    cat >conftest.$ac_ext <<_ACEOF
18889/* confdefs.h.  */
18890_ACEOF
18891cat confdefs.h >>conftest.$ac_ext
18892cat >>conftest.$ac_ext <<_ACEOF
18893/* end confdefs.h.  */
18894#include <stdlib.h>
18895int
18896main ()
18897{
18898srand48(0);lrand48();drand48();
18899  ;
18900  return 0;
18901}
18902_ACEOF
18903rm -f conftest.$ac_objext
18904if { (ac_try="$ac_compile"
18905case "(($ac_try" in
18906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907  *) ac_try_echo=$ac_try;;
18908esac
18909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910  (eval "$ac_compile") 2>conftest.er1
18911  ac_status=$?
18912  grep -v '^ *+' conftest.er1 >conftest.err
18913  rm -f conftest.er1
18914  cat conftest.err >&5
18915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916  (exit $ac_status); } &&
18917	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18918  { (case "(($ac_try" in
18919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920  *) ac_try_echo=$ac_try;;
18921esac
18922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18923  (eval "$ac_try") 2>&5
18924  ac_status=$?
18925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926  (exit $ac_status); }; } &&
18927	 { ac_try='test -s conftest.$ac_objext'
18928  { (case "(($ac_try" in
18929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930  *) ac_try_echo=$ac_try;;
18931esac
18932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933  (eval "$ac_try") 2>&5
18934  ac_status=$?
18935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936  (exit $ac_status); }; }; then
18937  ac_cv_func_rand48=yes
18938else
18939  echo "$as_me: failed program was:" >&5
18940sed 's/^/| /' conftest.$ac_ext >&5
18941
18942	ac_cv_func_rand48=no
18943fi
18944
18945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18946    ac_ext=c
18947ac_cpp='$CPP $CPPFLAGS'
18948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950ac_compiler_gnu=$ac_cv_c_compiler_gnu
18951
18952
18953fi
18954{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18955echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18956
18957if test "$ac_cv_func_rand48" = "yes" ; then
18958
18959cat >>confdefs.h <<\_ACEOF
18960#define HAVE_RAND48 1
18961_ACEOF
18962
18963fi
18964
18965
18966{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18967echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18968if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18969  echo $ECHO_N "(cached) $ECHO_C" >&6
18970else
18971  cat >conftest.$ac_ext <<_ACEOF
18972/* confdefs.h.  */
18973_ACEOF
18974cat confdefs.h >>conftest.$ac_ext
18975cat >>conftest.$ac_ext <<_ACEOF
18976/* end confdefs.h.  */
18977$ac_includes_default
18978int
18979main ()
18980{
18981#ifndef strerror_s
18982  char *p = (char *) strerror_s;
18983  return !p;
18984#endif
18985
18986  ;
18987  return 0;
18988}
18989_ACEOF
18990rm -f conftest.$ac_objext
18991if { (ac_try="$ac_compile"
18992case "(($ac_try" in
18993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994  *) ac_try_echo=$ac_try;;
18995esac
18996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997  (eval "$ac_compile") 2>conftest.er1
18998  ac_status=$?
18999  grep -v '^ *+' conftest.er1 >conftest.err
19000  rm -f conftest.er1
19001  cat conftest.err >&5
19002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003  (exit $ac_status); } &&
19004	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19005  { (case "(($ac_try" in
19006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007  *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010  (eval "$ac_try") 2>&5
19011  ac_status=$?
19012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013  (exit $ac_status); }; } &&
19014	 { ac_try='test -s conftest.$ac_objext'
19015  { (case "(($ac_try" in
19016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017  *) ac_try_echo=$ac_try;;
19018esac
19019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020  (eval "$ac_try") 2>&5
19021  ac_status=$?
19022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023  (exit $ac_status); }; }; then
19024  ac_cv_have_decl_strerror_s=yes
19025else
19026  echo "$as_me: failed program was:" >&5
19027sed 's/^/| /' conftest.$ac_ext >&5
19028
19029	ac_cv_have_decl_strerror_s=no
19030fi
19031
19032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033fi
19034{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19035echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19036if test $ac_cv_have_decl_strerror_s = yes; then
19037
19038cat >>confdefs.h <<_ACEOF
19039#define HAVE_DECL_STRERROR_S 1
19040_ACEOF
19041
19042
19043else
19044  cat >>confdefs.h <<_ACEOF
19045#define HAVE_DECL_STRERROR_S 0
19046_ACEOF
19047
19048
19049fi
19050
19051
19052
19053if test "$llvm_cv_os_type" = "MingW" ; then
19054  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19055echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19056if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19057  echo $ECHO_N "(cached) $ECHO_C" >&6
19058else
19059  ac_check_lib_save_LIBS=$LIBS
19060LIBS="-lgcc  $LIBS"
19061cat >conftest.$ac_ext <<_ACEOF
19062/* confdefs.h.  */
19063_ACEOF
19064cat confdefs.h >>conftest.$ac_ext
19065cat >>conftest.$ac_ext <<_ACEOF
19066/* end confdefs.h.  */
19067
19068/* Override any GCC internal prototype to avoid an error.
19069   Use char because int might match the return type of a GCC
19070   builtin and then its argument prototype would still apply.  */
19071#ifdef __cplusplus
19072extern "C"
19073#endif
19074char _alloca ();
19075int
19076main ()
19077{
19078return _alloca ();
19079  ;
19080  return 0;
19081}
19082_ACEOF
19083rm -f conftest.$ac_objext conftest$ac_exeext
19084if { (ac_try="$ac_link"
19085case "(($ac_try" in
19086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19087  *) ac_try_echo=$ac_try;;
19088esac
19089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19090  (eval "$ac_link") 2>conftest.er1
19091  ac_status=$?
19092  grep -v '^ *+' conftest.er1 >conftest.err
19093  rm -f conftest.er1
19094  cat conftest.err >&5
19095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096  (exit $ac_status); } &&
19097	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19098  { (case "(($ac_try" in
19099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100  *) ac_try_echo=$ac_try;;
19101esac
19102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103  (eval "$ac_try") 2>&5
19104  ac_status=$?
19105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106  (exit $ac_status); }; } &&
19107	 { ac_try='test -s conftest$ac_exeext'
19108  { (case "(($ac_try" in
19109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110  *) ac_try_echo=$ac_try;;
19111esac
19112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113  (eval "$ac_try") 2>&5
19114  ac_status=$?
19115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116  (exit $ac_status); }; }; then
19117  ac_cv_lib_gcc__alloca=yes
19118else
19119  echo "$as_me: failed program was:" >&5
19120sed 's/^/| /' conftest.$ac_ext >&5
19121
19122	ac_cv_lib_gcc__alloca=no
19123fi
19124
19125rm -f core conftest.err conftest.$ac_objext \
19126      conftest$ac_exeext conftest.$ac_ext
19127LIBS=$ac_check_lib_save_LIBS
19128fi
19129{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19130echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19131if test $ac_cv_lib_gcc__alloca = yes; then
19132
19133cat >>confdefs.h <<\_ACEOF
19134#define HAVE__ALLOCA 1
19135_ACEOF
19136
19137fi
19138
19139  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19140echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19141if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19142  echo $ECHO_N "(cached) $ECHO_C" >&6
19143else
19144  ac_check_lib_save_LIBS=$LIBS
19145LIBS="-lgcc  $LIBS"
19146cat >conftest.$ac_ext <<_ACEOF
19147/* confdefs.h.  */
19148_ACEOF
19149cat confdefs.h >>conftest.$ac_ext
19150cat >>conftest.$ac_ext <<_ACEOF
19151/* end confdefs.h.  */
19152
19153/* Override any GCC internal prototype to avoid an error.
19154   Use char because int might match the return type of a GCC
19155   builtin and then its argument prototype would still apply.  */
19156#ifdef __cplusplus
19157extern "C"
19158#endif
19159char __alloca ();
19160int
19161main ()
19162{
19163return __alloca ();
19164  ;
19165  return 0;
19166}
19167_ACEOF
19168rm -f conftest.$ac_objext conftest$ac_exeext
19169if { (ac_try="$ac_link"
19170case "(($ac_try" in
19171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172  *) ac_try_echo=$ac_try;;
19173esac
19174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175  (eval "$ac_link") 2>conftest.er1
19176  ac_status=$?
19177  grep -v '^ *+' conftest.er1 >conftest.err
19178  rm -f conftest.er1
19179  cat conftest.err >&5
19180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181  (exit $ac_status); } &&
19182	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19183  { (case "(($ac_try" in
19184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185  *) ac_try_echo=$ac_try;;
19186esac
19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188  (eval "$ac_try") 2>&5
19189  ac_status=$?
19190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191  (exit $ac_status); }; } &&
19192	 { ac_try='test -s conftest$ac_exeext'
19193  { (case "(($ac_try" in
19194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195  *) ac_try_echo=$ac_try;;
19196esac
19197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198  (eval "$ac_try") 2>&5
19199  ac_status=$?
19200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201  (exit $ac_status); }; }; then
19202  ac_cv_lib_gcc___alloca=yes
19203else
19204  echo "$as_me: failed program was:" >&5
19205sed 's/^/| /' conftest.$ac_ext >&5
19206
19207	ac_cv_lib_gcc___alloca=no
19208fi
19209
19210rm -f core conftest.err conftest.$ac_objext \
19211      conftest$ac_exeext conftest.$ac_ext
19212LIBS=$ac_check_lib_save_LIBS
19213fi
19214{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19215echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19216if test $ac_cv_lib_gcc___alloca = yes; then
19217
19218cat >>confdefs.h <<\_ACEOF
19219#define HAVE___ALLOCA 1
19220_ACEOF
19221
19222fi
19223
19224  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19225echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19226if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19227  echo $ECHO_N "(cached) $ECHO_C" >&6
19228else
19229  ac_check_lib_save_LIBS=$LIBS
19230LIBS="-lgcc  $LIBS"
19231cat >conftest.$ac_ext <<_ACEOF
19232/* confdefs.h.  */
19233_ACEOF
19234cat confdefs.h >>conftest.$ac_ext
19235cat >>conftest.$ac_ext <<_ACEOF
19236/* end confdefs.h.  */
19237
19238/* Override any GCC internal prototype to avoid an error.
19239   Use char because int might match the return type of a GCC
19240   builtin and then its argument prototype would still apply.  */
19241#ifdef __cplusplus
19242extern "C"
19243#endif
19244char __chkstk ();
19245int
19246main ()
19247{
19248return __chkstk ();
19249  ;
19250  return 0;
19251}
19252_ACEOF
19253rm -f conftest.$ac_objext conftest$ac_exeext
19254if { (ac_try="$ac_link"
19255case "(($ac_try" in
19256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257  *) ac_try_echo=$ac_try;;
19258esac
19259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260  (eval "$ac_link") 2>conftest.er1
19261  ac_status=$?
19262  grep -v '^ *+' conftest.er1 >conftest.err
19263  rm -f conftest.er1
19264  cat conftest.err >&5
19265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266  (exit $ac_status); } &&
19267	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19268  { (case "(($ac_try" in
19269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270  *) ac_try_echo=$ac_try;;
19271esac
19272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273  (eval "$ac_try") 2>&5
19274  ac_status=$?
19275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276  (exit $ac_status); }; } &&
19277	 { ac_try='test -s conftest$ac_exeext'
19278  { (case "(($ac_try" in
19279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280  *) ac_try_echo=$ac_try;;
19281esac
19282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283  (eval "$ac_try") 2>&5
19284  ac_status=$?
19285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286  (exit $ac_status); }; }; then
19287  ac_cv_lib_gcc___chkstk=yes
19288else
19289  echo "$as_me: failed program was:" >&5
19290sed 's/^/| /' conftest.$ac_ext >&5
19291
19292	ac_cv_lib_gcc___chkstk=no
19293fi
19294
19295rm -f core conftest.err conftest.$ac_objext \
19296      conftest$ac_exeext conftest.$ac_ext
19297LIBS=$ac_check_lib_save_LIBS
19298fi
19299{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19300echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19301if test $ac_cv_lib_gcc___chkstk = yes; then
19302
19303cat >>confdefs.h <<\_ACEOF
19304#define HAVE___CHKSTK 1
19305_ACEOF
19306
19307fi
19308
19309  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19310echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19311if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19312  echo $ECHO_N "(cached) $ECHO_C" >&6
19313else
19314  ac_check_lib_save_LIBS=$LIBS
19315LIBS="-lgcc  $LIBS"
19316cat >conftest.$ac_ext <<_ACEOF
19317/* confdefs.h.  */
19318_ACEOF
19319cat confdefs.h >>conftest.$ac_ext
19320cat >>conftest.$ac_ext <<_ACEOF
19321/* end confdefs.h.  */
19322
19323/* Override any GCC internal prototype to avoid an error.
19324   Use char because int might match the return type of a GCC
19325   builtin and then its argument prototype would still apply.  */
19326#ifdef __cplusplus
19327extern "C"
19328#endif
19329char ___chkstk ();
19330int
19331main ()
19332{
19333return ___chkstk ();
19334  ;
19335  return 0;
19336}
19337_ACEOF
19338rm -f conftest.$ac_objext conftest$ac_exeext
19339if { (ac_try="$ac_link"
19340case "(($ac_try" in
19341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342  *) ac_try_echo=$ac_try;;
19343esac
19344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345  (eval "$ac_link") 2>conftest.er1
19346  ac_status=$?
19347  grep -v '^ *+' conftest.er1 >conftest.err
19348  rm -f conftest.er1
19349  cat conftest.err >&5
19350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351  (exit $ac_status); } &&
19352	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19353  { (case "(($ac_try" in
19354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355  *) ac_try_echo=$ac_try;;
19356esac
19357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358  (eval "$ac_try") 2>&5
19359  ac_status=$?
19360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361  (exit $ac_status); }; } &&
19362	 { ac_try='test -s conftest$ac_exeext'
19363  { (case "(($ac_try" in
19364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365  *) ac_try_echo=$ac_try;;
19366esac
19367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368  (eval "$ac_try") 2>&5
19369  ac_status=$?
19370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371  (exit $ac_status); }; }; then
19372  ac_cv_lib_gcc____chkstk=yes
19373else
19374  echo "$as_me: failed program was:" >&5
19375sed 's/^/| /' conftest.$ac_ext >&5
19376
19377	ac_cv_lib_gcc____chkstk=no
19378fi
19379
19380rm -f core conftest.err conftest.$ac_objext \
19381      conftest$ac_exeext conftest.$ac_ext
19382LIBS=$ac_check_lib_save_LIBS
19383fi
19384{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19385echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19386if test $ac_cv_lib_gcc____chkstk = yes; then
19387
19388cat >>confdefs.h <<\_ACEOF
19389#define HAVE____CHKSTK 1
19390_ACEOF
19391
19392fi
19393
19394
19395  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19396echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19397if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19398  echo $ECHO_N "(cached) $ECHO_C" >&6
19399else
19400  ac_check_lib_save_LIBS=$LIBS
19401LIBS="-lgcc  $LIBS"
19402cat >conftest.$ac_ext <<_ACEOF
19403/* confdefs.h.  */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h.  */
19408
19409/* Override any GCC internal prototype to avoid an error.
19410   Use char because int might match the return type of a GCC
19411   builtin and then its argument prototype would still apply.  */
19412#ifdef __cplusplus
19413extern "C"
19414#endif
19415char __ashldi3 ();
19416int
19417main ()
19418{
19419return __ashldi3 ();
19420  ;
19421  return 0;
19422}
19423_ACEOF
19424rm -f conftest.$ac_objext conftest$ac_exeext
19425if { (ac_try="$ac_link"
19426case "(($ac_try" in
19427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428  *) ac_try_echo=$ac_try;;
19429esac
19430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431  (eval "$ac_link") 2>conftest.er1
19432  ac_status=$?
19433  grep -v '^ *+' conftest.er1 >conftest.err
19434  rm -f conftest.er1
19435  cat conftest.err >&5
19436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437  (exit $ac_status); } &&
19438	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19439  { (case "(($ac_try" in
19440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441  *) ac_try_echo=$ac_try;;
19442esac
19443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444  (eval "$ac_try") 2>&5
19445  ac_status=$?
19446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447  (exit $ac_status); }; } &&
19448	 { ac_try='test -s conftest$ac_exeext'
19449  { (case "(($ac_try" in
19450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451  *) ac_try_echo=$ac_try;;
19452esac
19453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454  (eval "$ac_try") 2>&5
19455  ac_status=$?
19456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457  (exit $ac_status); }; }; then
19458  ac_cv_lib_gcc___ashldi3=yes
19459else
19460  echo "$as_me: failed program was:" >&5
19461sed 's/^/| /' conftest.$ac_ext >&5
19462
19463	ac_cv_lib_gcc___ashldi3=no
19464fi
19465
19466rm -f core conftest.err conftest.$ac_objext \
19467      conftest$ac_exeext conftest.$ac_ext
19468LIBS=$ac_check_lib_save_LIBS
19469fi
19470{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19471echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19472if test $ac_cv_lib_gcc___ashldi3 = yes; then
19473
19474cat >>confdefs.h <<\_ACEOF
19475#define HAVE___ASHLDI3 1
19476_ACEOF
19477
19478fi
19479
19480  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19481echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19482if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19483  echo $ECHO_N "(cached) $ECHO_C" >&6
19484else
19485  ac_check_lib_save_LIBS=$LIBS
19486LIBS="-lgcc  $LIBS"
19487cat >conftest.$ac_ext <<_ACEOF
19488/* confdefs.h.  */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h.  */
19493
19494/* Override any GCC internal prototype to avoid an error.
19495   Use char because int might match the return type of a GCC
19496   builtin and then its argument prototype would still apply.  */
19497#ifdef __cplusplus
19498extern "C"
19499#endif
19500char __ashrdi3 ();
19501int
19502main ()
19503{
19504return __ashrdi3 ();
19505  ;
19506  return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext conftest$ac_exeext
19510if { (ac_try="$ac_link"
19511case "(($ac_try" in
19512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513  *) ac_try_echo=$ac_try;;
19514esac
19515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516  (eval "$ac_link") 2>conftest.er1
19517  ac_status=$?
19518  grep -v '^ *+' conftest.er1 >conftest.err
19519  rm -f conftest.er1
19520  cat conftest.err >&5
19521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522  (exit $ac_status); } &&
19523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19524  { (case "(($ac_try" in
19525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526  *) ac_try_echo=$ac_try;;
19527esac
19528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529  (eval "$ac_try") 2>&5
19530  ac_status=$?
19531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532  (exit $ac_status); }; } &&
19533	 { ac_try='test -s conftest$ac_exeext'
19534  { (case "(($ac_try" in
19535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536  *) ac_try_echo=$ac_try;;
19537esac
19538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539  (eval "$ac_try") 2>&5
19540  ac_status=$?
19541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542  (exit $ac_status); }; }; then
19543  ac_cv_lib_gcc___ashrdi3=yes
19544else
19545  echo "$as_me: failed program was:" >&5
19546sed 's/^/| /' conftest.$ac_ext >&5
19547
19548	ac_cv_lib_gcc___ashrdi3=no
19549fi
19550
19551rm -f core conftest.err conftest.$ac_objext \
19552      conftest$ac_exeext conftest.$ac_ext
19553LIBS=$ac_check_lib_save_LIBS
19554fi
19555{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19556echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19557if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19558
19559cat >>confdefs.h <<\_ACEOF
19560#define HAVE___ASHRDI3 1
19561_ACEOF
19562
19563fi
19564
19565  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19566echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19567if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19568  echo $ECHO_N "(cached) $ECHO_C" >&6
19569else
19570  ac_check_lib_save_LIBS=$LIBS
19571LIBS="-lgcc  $LIBS"
19572cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h.  */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h.  */
19578
19579/* Override any GCC internal prototype to avoid an error.
19580   Use char because int might match the return type of a GCC
19581   builtin and then its argument prototype would still apply.  */
19582#ifdef __cplusplus
19583extern "C"
19584#endif
19585char __divdi3 ();
19586int
19587main ()
19588{
19589return __divdi3 ();
19590  ;
19591  return 0;
19592}
19593_ACEOF
19594rm -f conftest.$ac_objext conftest$ac_exeext
19595if { (ac_try="$ac_link"
19596case "(($ac_try" in
19597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598  *) ac_try_echo=$ac_try;;
19599esac
19600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601  (eval "$ac_link") 2>conftest.er1
19602  ac_status=$?
19603  grep -v '^ *+' conftest.er1 >conftest.err
19604  rm -f conftest.er1
19605  cat conftest.err >&5
19606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607  (exit $ac_status); } &&
19608	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19609  { (case "(($ac_try" in
19610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611  *) ac_try_echo=$ac_try;;
19612esac
19613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614  (eval "$ac_try") 2>&5
19615  ac_status=$?
19616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617  (exit $ac_status); }; } &&
19618	 { ac_try='test -s conftest$ac_exeext'
19619  { (case "(($ac_try" in
19620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621  *) ac_try_echo=$ac_try;;
19622esac
19623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624  (eval "$ac_try") 2>&5
19625  ac_status=$?
19626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627  (exit $ac_status); }; }; then
19628  ac_cv_lib_gcc___divdi3=yes
19629else
19630  echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
19633	ac_cv_lib_gcc___divdi3=no
19634fi
19635
19636rm -f core conftest.err conftest.$ac_objext \
19637      conftest$ac_exeext conftest.$ac_ext
19638LIBS=$ac_check_lib_save_LIBS
19639fi
19640{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19641echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19642if test $ac_cv_lib_gcc___divdi3 = yes; then
19643
19644cat >>confdefs.h <<\_ACEOF
19645#define HAVE___DIVDI3 1
19646_ACEOF
19647
19648fi
19649
19650  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19651echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19652if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19653  echo $ECHO_N "(cached) $ECHO_C" >&6
19654else
19655  ac_check_lib_save_LIBS=$LIBS
19656LIBS="-lgcc  $LIBS"
19657cat >conftest.$ac_ext <<_ACEOF
19658/* confdefs.h.  */
19659_ACEOF
19660cat confdefs.h >>conftest.$ac_ext
19661cat >>conftest.$ac_ext <<_ACEOF
19662/* end confdefs.h.  */
19663
19664/* Override any GCC internal prototype to avoid an error.
19665   Use char because int might match the return type of a GCC
19666   builtin and then its argument prototype would still apply.  */
19667#ifdef __cplusplus
19668extern "C"
19669#endif
19670char __fixdfdi ();
19671int
19672main ()
19673{
19674return __fixdfdi ();
19675  ;
19676  return 0;
19677}
19678_ACEOF
19679rm -f conftest.$ac_objext conftest$ac_exeext
19680if { (ac_try="$ac_link"
19681case "(($ac_try" in
19682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683  *) ac_try_echo=$ac_try;;
19684esac
19685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686  (eval "$ac_link") 2>conftest.er1
19687  ac_status=$?
19688  grep -v '^ *+' conftest.er1 >conftest.err
19689  rm -f conftest.er1
19690  cat conftest.err >&5
19691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692  (exit $ac_status); } &&
19693	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19694  { (case "(($ac_try" in
19695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696  *) ac_try_echo=$ac_try;;
19697esac
19698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699  (eval "$ac_try") 2>&5
19700  ac_status=$?
19701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702  (exit $ac_status); }; } &&
19703	 { ac_try='test -s conftest$ac_exeext'
19704  { (case "(($ac_try" in
19705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706  *) ac_try_echo=$ac_try;;
19707esac
19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709  (eval "$ac_try") 2>&5
19710  ac_status=$?
19711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712  (exit $ac_status); }; }; then
19713  ac_cv_lib_gcc___fixdfdi=yes
19714else
19715  echo "$as_me: failed program was:" >&5
19716sed 's/^/| /' conftest.$ac_ext >&5
19717
19718	ac_cv_lib_gcc___fixdfdi=no
19719fi
19720
19721rm -f core conftest.err conftest.$ac_objext \
19722      conftest$ac_exeext conftest.$ac_ext
19723LIBS=$ac_check_lib_save_LIBS
19724fi
19725{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19726echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19727if test $ac_cv_lib_gcc___fixdfdi = yes; then
19728
19729cat >>confdefs.h <<\_ACEOF
19730#define HAVE___FIXDFDI 1
19731_ACEOF
19732
19733fi
19734
19735  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19736echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19737if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19738  echo $ECHO_N "(cached) $ECHO_C" >&6
19739else
19740  ac_check_lib_save_LIBS=$LIBS
19741LIBS="-lgcc  $LIBS"
19742cat >conftest.$ac_ext <<_ACEOF
19743/* confdefs.h.  */
19744_ACEOF
19745cat confdefs.h >>conftest.$ac_ext
19746cat >>conftest.$ac_ext <<_ACEOF
19747/* end confdefs.h.  */
19748
19749/* Override any GCC internal prototype to avoid an error.
19750   Use char because int might match the return type of a GCC
19751   builtin and then its argument prototype would still apply.  */
19752#ifdef __cplusplus
19753extern "C"
19754#endif
19755char __fixsfdi ();
19756int
19757main ()
19758{
19759return __fixsfdi ();
19760  ;
19761  return 0;
19762}
19763_ACEOF
19764rm -f conftest.$ac_objext conftest$ac_exeext
19765if { (ac_try="$ac_link"
19766case "(($ac_try" in
19767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768  *) ac_try_echo=$ac_try;;
19769esac
19770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771  (eval "$ac_link") 2>conftest.er1
19772  ac_status=$?
19773  grep -v '^ *+' conftest.er1 >conftest.err
19774  rm -f conftest.er1
19775  cat conftest.err >&5
19776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777  (exit $ac_status); } &&
19778	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19779  { (case "(($ac_try" in
19780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781  *) ac_try_echo=$ac_try;;
19782esac
19783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784  (eval "$ac_try") 2>&5
19785  ac_status=$?
19786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787  (exit $ac_status); }; } &&
19788	 { ac_try='test -s conftest$ac_exeext'
19789  { (case "(($ac_try" in
19790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791  *) ac_try_echo=$ac_try;;
19792esac
19793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794  (eval "$ac_try") 2>&5
19795  ac_status=$?
19796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797  (exit $ac_status); }; }; then
19798  ac_cv_lib_gcc___fixsfdi=yes
19799else
19800  echo "$as_me: failed program was:" >&5
19801sed 's/^/| /' conftest.$ac_ext >&5
19802
19803	ac_cv_lib_gcc___fixsfdi=no
19804fi
19805
19806rm -f core conftest.err conftest.$ac_objext \
19807      conftest$ac_exeext conftest.$ac_ext
19808LIBS=$ac_check_lib_save_LIBS
19809fi
19810{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19811echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19812if test $ac_cv_lib_gcc___fixsfdi = yes; then
19813
19814cat >>confdefs.h <<\_ACEOF
19815#define HAVE___FIXSFDI 1
19816_ACEOF
19817
19818fi
19819
19820  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19821echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19822if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19823  echo $ECHO_N "(cached) $ECHO_C" >&6
19824else
19825  ac_check_lib_save_LIBS=$LIBS
19826LIBS="-lgcc  $LIBS"
19827cat >conftest.$ac_ext <<_ACEOF
19828/* confdefs.h.  */
19829_ACEOF
19830cat confdefs.h >>conftest.$ac_ext
19831cat >>conftest.$ac_ext <<_ACEOF
19832/* end confdefs.h.  */
19833
19834/* Override any GCC internal prototype to avoid an error.
19835   Use char because int might match the return type of a GCC
19836   builtin and then its argument prototype would still apply.  */
19837#ifdef __cplusplus
19838extern "C"
19839#endif
19840char __floatdidf ();
19841int
19842main ()
19843{
19844return __floatdidf ();
19845  ;
19846  return 0;
19847}
19848_ACEOF
19849rm -f conftest.$ac_objext conftest$ac_exeext
19850if { (ac_try="$ac_link"
19851case "(($ac_try" in
19852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853  *) ac_try_echo=$ac_try;;
19854esac
19855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856  (eval "$ac_link") 2>conftest.er1
19857  ac_status=$?
19858  grep -v '^ *+' conftest.er1 >conftest.err
19859  rm -f conftest.er1
19860  cat conftest.err >&5
19861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862  (exit $ac_status); } &&
19863	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19864  { (case "(($ac_try" in
19865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866  *) ac_try_echo=$ac_try;;
19867esac
19868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869  (eval "$ac_try") 2>&5
19870  ac_status=$?
19871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872  (exit $ac_status); }; } &&
19873	 { ac_try='test -s conftest$ac_exeext'
19874  { (case "(($ac_try" in
19875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876  *) ac_try_echo=$ac_try;;
19877esac
19878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879  (eval "$ac_try") 2>&5
19880  ac_status=$?
19881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882  (exit $ac_status); }; }; then
19883  ac_cv_lib_gcc___floatdidf=yes
19884else
19885  echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888	ac_cv_lib_gcc___floatdidf=no
19889fi
19890
19891rm -f core conftest.err conftest.$ac_objext \
19892      conftest$ac_exeext conftest.$ac_ext
19893LIBS=$ac_check_lib_save_LIBS
19894fi
19895{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19896echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19897if test $ac_cv_lib_gcc___floatdidf = yes; then
19898
19899cat >>confdefs.h <<\_ACEOF
19900#define HAVE___FLOATDIDF 1
19901_ACEOF
19902
19903fi
19904
19905  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19906echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19907if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19908  echo $ECHO_N "(cached) $ECHO_C" >&6
19909else
19910  ac_check_lib_save_LIBS=$LIBS
19911LIBS="-lgcc  $LIBS"
19912cat >conftest.$ac_ext <<_ACEOF
19913/* confdefs.h.  */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h.  */
19918
19919/* Override any GCC internal prototype to avoid an error.
19920   Use char because int might match the return type of a GCC
19921   builtin and then its argument prototype would still apply.  */
19922#ifdef __cplusplus
19923extern "C"
19924#endif
19925char __lshrdi3 ();
19926int
19927main ()
19928{
19929return __lshrdi3 ();
19930  ;
19931  return 0;
19932}
19933_ACEOF
19934rm -f conftest.$ac_objext conftest$ac_exeext
19935if { (ac_try="$ac_link"
19936case "(($ac_try" in
19937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938  *) ac_try_echo=$ac_try;;
19939esac
19940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941  (eval "$ac_link") 2>conftest.er1
19942  ac_status=$?
19943  grep -v '^ *+' conftest.er1 >conftest.err
19944  rm -f conftest.er1
19945  cat conftest.err >&5
19946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947  (exit $ac_status); } &&
19948	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949  { (case "(($ac_try" in
19950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951  *) ac_try_echo=$ac_try;;
19952esac
19953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954  (eval "$ac_try") 2>&5
19955  ac_status=$?
19956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957  (exit $ac_status); }; } &&
19958	 { ac_try='test -s conftest$ac_exeext'
19959  { (case "(($ac_try" in
19960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961  *) ac_try_echo=$ac_try;;
19962esac
19963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964  (eval "$ac_try") 2>&5
19965  ac_status=$?
19966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967  (exit $ac_status); }; }; then
19968  ac_cv_lib_gcc___lshrdi3=yes
19969else
19970  echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973	ac_cv_lib_gcc___lshrdi3=no
19974fi
19975
19976rm -f core conftest.err conftest.$ac_objext \
19977      conftest$ac_exeext conftest.$ac_ext
19978LIBS=$ac_check_lib_save_LIBS
19979fi
19980{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19981echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19982if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19983
19984cat >>confdefs.h <<\_ACEOF
19985#define HAVE___LSHRDI3 1
19986_ACEOF
19987
19988fi
19989
19990  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19991echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19992if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19993  echo $ECHO_N "(cached) $ECHO_C" >&6
19994else
19995  ac_check_lib_save_LIBS=$LIBS
19996LIBS="-lgcc  $LIBS"
19997cat >conftest.$ac_ext <<_ACEOF
19998/* confdefs.h.  */
19999_ACEOF
20000cat confdefs.h >>conftest.$ac_ext
20001cat >>conftest.$ac_ext <<_ACEOF
20002/* end confdefs.h.  */
20003
20004/* Override any GCC internal prototype to avoid an error.
20005   Use char because int might match the return type of a GCC
20006   builtin and then its argument prototype would still apply.  */
20007#ifdef __cplusplus
20008extern "C"
20009#endif
20010char __moddi3 ();
20011int
20012main ()
20013{
20014return __moddi3 ();
20015  ;
20016  return 0;
20017}
20018_ACEOF
20019rm -f conftest.$ac_objext conftest$ac_exeext
20020if { (ac_try="$ac_link"
20021case "(($ac_try" in
20022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023  *) ac_try_echo=$ac_try;;
20024esac
20025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026  (eval "$ac_link") 2>conftest.er1
20027  ac_status=$?
20028  grep -v '^ *+' conftest.er1 >conftest.err
20029  rm -f conftest.er1
20030  cat conftest.err >&5
20031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032  (exit $ac_status); } &&
20033	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20034  { (case "(($ac_try" in
20035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036  *) ac_try_echo=$ac_try;;
20037esac
20038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039  (eval "$ac_try") 2>&5
20040  ac_status=$?
20041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042  (exit $ac_status); }; } &&
20043	 { ac_try='test -s conftest$ac_exeext'
20044  { (case "(($ac_try" in
20045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046  *) ac_try_echo=$ac_try;;
20047esac
20048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049  (eval "$ac_try") 2>&5
20050  ac_status=$?
20051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052  (exit $ac_status); }; }; then
20053  ac_cv_lib_gcc___moddi3=yes
20054else
20055  echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058	ac_cv_lib_gcc___moddi3=no
20059fi
20060
20061rm -f core conftest.err conftest.$ac_objext \
20062      conftest$ac_exeext conftest.$ac_ext
20063LIBS=$ac_check_lib_save_LIBS
20064fi
20065{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20066echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20067if test $ac_cv_lib_gcc___moddi3 = yes; then
20068
20069cat >>confdefs.h <<\_ACEOF
20070#define HAVE___MODDI3 1
20071_ACEOF
20072
20073fi
20074
20075  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20076echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20077if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20078  echo $ECHO_N "(cached) $ECHO_C" >&6
20079else
20080  ac_check_lib_save_LIBS=$LIBS
20081LIBS="-lgcc  $LIBS"
20082cat >conftest.$ac_ext <<_ACEOF
20083/* confdefs.h.  */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h.  */
20088
20089/* Override any GCC internal prototype to avoid an error.
20090   Use char because int might match the return type of a GCC
20091   builtin and then its argument prototype would still apply.  */
20092#ifdef __cplusplus
20093extern "C"
20094#endif
20095char __udivdi3 ();
20096int
20097main ()
20098{
20099return __udivdi3 ();
20100  ;
20101  return 0;
20102}
20103_ACEOF
20104rm -f conftest.$ac_objext conftest$ac_exeext
20105if { (ac_try="$ac_link"
20106case "(($ac_try" in
20107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108  *) ac_try_echo=$ac_try;;
20109esac
20110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111  (eval "$ac_link") 2>conftest.er1
20112  ac_status=$?
20113  grep -v '^ *+' conftest.er1 >conftest.err
20114  rm -f conftest.er1
20115  cat conftest.err >&5
20116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117  (exit $ac_status); } &&
20118	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20119  { (case "(($ac_try" in
20120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121  *) ac_try_echo=$ac_try;;
20122esac
20123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124  (eval "$ac_try") 2>&5
20125  ac_status=$?
20126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127  (exit $ac_status); }; } &&
20128	 { ac_try='test -s conftest$ac_exeext'
20129  { (case "(($ac_try" in
20130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131  *) ac_try_echo=$ac_try;;
20132esac
20133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134  (eval "$ac_try") 2>&5
20135  ac_status=$?
20136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137  (exit $ac_status); }; }; then
20138  ac_cv_lib_gcc___udivdi3=yes
20139else
20140  echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143	ac_cv_lib_gcc___udivdi3=no
20144fi
20145
20146rm -f core conftest.err conftest.$ac_objext \
20147      conftest$ac_exeext conftest.$ac_ext
20148LIBS=$ac_check_lib_save_LIBS
20149fi
20150{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20151echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20152if test $ac_cv_lib_gcc___udivdi3 = yes; then
20153
20154cat >>confdefs.h <<\_ACEOF
20155#define HAVE___UDIVDI3 1
20156_ACEOF
20157
20158fi
20159
20160  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20161echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20162if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20163  echo $ECHO_N "(cached) $ECHO_C" >&6
20164else
20165  ac_check_lib_save_LIBS=$LIBS
20166LIBS="-lgcc  $LIBS"
20167cat >conftest.$ac_ext <<_ACEOF
20168/* confdefs.h.  */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h.  */
20173
20174/* Override any GCC internal prototype to avoid an error.
20175   Use char because int might match the return type of a GCC
20176   builtin and then its argument prototype would still apply.  */
20177#ifdef __cplusplus
20178extern "C"
20179#endif
20180char __umoddi3 ();
20181int
20182main ()
20183{
20184return __umoddi3 ();
20185  ;
20186  return 0;
20187}
20188_ACEOF
20189rm -f conftest.$ac_objext conftest$ac_exeext
20190if { (ac_try="$ac_link"
20191case "(($ac_try" in
20192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193  *) ac_try_echo=$ac_try;;
20194esac
20195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196  (eval "$ac_link") 2>conftest.er1
20197  ac_status=$?
20198  grep -v '^ *+' conftest.er1 >conftest.err
20199  rm -f conftest.er1
20200  cat conftest.err >&5
20201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202  (exit $ac_status); } &&
20203	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20204  { (case "(($ac_try" in
20205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206  *) ac_try_echo=$ac_try;;
20207esac
20208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209  (eval "$ac_try") 2>&5
20210  ac_status=$?
20211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212  (exit $ac_status); }; } &&
20213	 { ac_try='test -s conftest$ac_exeext'
20214  { (case "(($ac_try" in
20215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216  *) ac_try_echo=$ac_try;;
20217esac
20218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219  (eval "$ac_try") 2>&5
20220  ac_status=$?
20221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222  (exit $ac_status); }; }; then
20223  ac_cv_lib_gcc___umoddi3=yes
20224else
20225  echo "$as_me: failed program was:" >&5
20226sed 's/^/| /' conftest.$ac_ext >&5
20227
20228	ac_cv_lib_gcc___umoddi3=no
20229fi
20230
20231rm -f core conftest.err conftest.$ac_objext \
20232      conftest$ac_exeext conftest.$ac_ext
20233LIBS=$ac_check_lib_save_LIBS
20234fi
20235{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20236echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20237if test $ac_cv_lib_gcc___umoddi3 = yes; then
20238
20239cat >>confdefs.h <<\_ACEOF
20240#define HAVE___UMODDI3 1
20241_ACEOF
20242
20243fi
20244
20245
20246  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20247echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20248if test "${ac_cv_lib_gcc___main+set}" = set; then
20249  echo $ECHO_N "(cached) $ECHO_C" >&6
20250else
20251  ac_check_lib_save_LIBS=$LIBS
20252LIBS="-lgcc  $LIBS"
20253cat >conftest.$ac_ext <<_ACEOF
20254/* confdefs.h.  */
20255_ACEOF
20256cat confdefs.h >>conftest.$ac_ext
20257cat >>conftest.$ac_ext <<_ACEOF
20258/* end confdefs.h.  */
20259
20260/* Override any GCC internal prototype to avoid an error.
20261   Use char because int might match the return type of a GCC
20262   builtin and then its argument prototype would still apply.  */
20263#ifdef __cplusplus
20264extern "C"
20265#endif
20266char __main ();
20267int
20268main ()
20269{
20270return __main ();
20271  ;
20272  return 0;
20273}
20274_ACEOF
20275rm -f conftest.$ac_objext conftest$ac_exeext
20276if { (ac_try="$ac_link"
20277case "(($ac_try" in
20278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279  *) ac_try_echo=$ac_try;;
20280esac
20281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282  (eval "$ac_link") 2>conftest.er1
20283  ac_status=$?
20284  grep -v '^ *+' conftest.er1 >conftest.err
20285  rm -f conftest.er1
20286  cat conftest.err >&5
20287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288  (exit $ac_status); } &&
20289	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20290  { (case "(($ac_try" in
20291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292  *) ac_try_echo=$ac_try;;
20293esac
20294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295  (eval "$ac_try") 2>&5
20296  ac_status=$?
20297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298  (exit $ac_status); }; } &&
20299	 { ac_try='test -s conftest$ac_exeext'
20300  { (case "(($ac_try" in
20301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302  *) ac_try_echo=$ac_try;;
20303esac
20304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305  (eval "$ac_try") 2>&5
20306  ac_status=$?
20307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308  (exit $ac_status); }; }; then
20309  ac_cv_lib_gcc___main=yes
20310else
20311  echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314	ac_cv_lib_gcc___main=no
20315fi
20316
20317rm -f core conftest.err conftest.$ac_objext \
20318      conftest$ac_exeext conftest.$ac_ext
20319LIBS=$ac_check_lib_save_LIBS
20320fi
20321{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20322echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20323if test $ac_cv_lib_gcc___main = yes; then
20324
20325cat >>confdefs.h <<\_ACEOF
20326#define HAVE___MAIN 1
20327_ACEOF
20328
20329fi
20330
20331  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20332echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20333if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20334  echo $ECHO_N "(cached) $ECHO_C" >&6
20335else
20336  ac_check_lib_save_LIBS=$LIBS
20337LIBS="-lgcc  $LIBS"
20338cat >conftest.$ac_ext <<_ACEOF
20339/* confdefs.h.  */
20340_ACEOF
20341cat confdefs.h >>conftest.$ac_ext
20342cat >>conftest.$ac_ext <<_ACEOF
20343/* end confdefs.h.  */
20344
20345/* Override any GCC internal prototype to avoid an error.
20346   Use char because int might match the return type of a GCC
20347   builtin and then its argument prototype would still apply.  */
20348#ifdef __cplusplus
20349extern "C"
20350#endif
20351char __cmpdi2 ();
20352int
20353main ()
20354{
20355return __cmpdi2 ();
20356  ;
20357  return 0;
20358}
20359_ACEOF
20360rm -f conftest.$ac_objext conftest$ac_exeext
20361if { (ac_try="$ac_link"
20362case "(($ac_try" in
20363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364  *) ac_try_echo=$ac_try;;
20365esac
20366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367  (eval "$ac_link") 2>conftest.er1
20368  ac_status=$?
20369  grep -v '^ *+' conftest.er1 >conftest.err
20370  rm -f conftest.er1
20371  cat conftest.err >&5
20372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373  (exit $ac_status); } &&
20374	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20375  { (case "(($ac_try" in
20376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377  *) ac_try_echo=$ac_try;;
20378esac
20379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380  (eval "$ac_try") 2>&5
20381  ac_status=$?
20382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383  (exit $ac_status); }; } &&
20384	 { ac_try='test -s conftest$ac_exeext'
20385  { (case "(($ac_try" in
20386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387  *) ac_try_echo=$ac_try;;
20388esac
20389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390  (eval "$ac_try") 2>&5
20391  ac_status=$?
20392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393  (exit $ac_status); }; }; then
20394  ac_cv_lib_gcc___cmpdi2=yes
20395else
20396  echo "$as_me: failed program was:" >&5
20397sed 's/^/| /' conftest.$ac_ext >&5
20398
20399	ac_cv_lib_gcc___cmpdi2=no
20400fi
20401
20402rm -f core conftest.err conftest.$ac_objext \
20403      conftest$ac_exeext conftest.$ac_ext
20404LIBS=$ac_check_lib_save_LIBS
20405fi
20406{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20407echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20408if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20409
20410cat >>confdefs.h <<\_ACEOF
20411#define HAVE___CMPDI2 1
20412_ACEOF
20413
20414fi
20415
20416fi
20417
20418if test "$llvm_cv_os_type" = "MingW" ; then
20419  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20420echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20421  cat >conftest.$ac_ext <<_ACEOF
20422
20423  /* confdefs.h.  */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h.  */
20428
20429    #include <windows.h>
20430    #include <imagehlp.h>
20431    extern void foo(PENUMLOADED_MODULES_CALLBACK);
20432    extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20433
20434
20435_ACEOF
20436rm -f conftest.$ac_objext
20437if { (ac_try="$ac_compile"
20438case "(($ac_try" in
20439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440  *) ac_try_echo=$ac_try;;
20441esac
20442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443  (eval "$ac_compile") 2>conftest.er1
20444  ac_status=$?
20445  grep -v '^ *+' conftest.er1 >conftest.err
20446  rm -f conftest.er1
20447  cat conftest.err >&5
20448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449  (exit $ac_status); } &&
20450	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20451  { (case "(($ac_try" in
20452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453  *) ac_try_echo=$ac_try;;
20454esac
20455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456  (eval "$ac_try") 2>&5
20457  ac_status=$?
20458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459  (exit $ac_status); }; } &&
20460	 { ac_try='test -s conftest.$ac_objext'
20461  { (case "(($ac_try" in
20462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463  *) ac_try_echo=$ac_try;;
20464esac
20465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466  (eval "$ac_try") 2>&5
20467  ac_status=$?
20468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469  (exit $ac_status); }; }; then
20470
20471  { echo "$as_me:$LINENO: result: yes" >&5
20472echo "${ECHO_T}yes" >&6; }
20473  llvm_cv_win32_elmcb_pcstr="PCSTR"
20474
20475else
20476  echo "$as_me: failed program was:" >&5
20477sed 's/^/| /' conftest.$ac_ext >&5
20478
20479
20480  { echo "$as_me:$LINENO: result: no" >&5
20481echo "${ECHO_T}no" >&6; }
20482  llvm_cv_win32_elmcb_pcstr="PSTR"
20483
20484fi
20485
20486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487
20488cat >>confdefs.h <<_ACEOF
20489#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20490_ACEOF
20491
20492fi
20493
20494
20495
20496  { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20497echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20498if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20499  echo $ECHO_N "(cached) $ECHO_C" >&6
20500else
20501
20502    ac_ext=cpp
20503ac_cpp='$CXXCPP $CPPFLAGS'
20504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20507
20508    cat >conftest.$ac_ext <<_ACEOF
20509/* confdefs.h.  */
20510_ACEOF
20511cat confdefs.h >>conftest.$ac_ext
20512cat >>conftest.$ac_ext <<_ACEOF
20513/* end confdefs.h.  */
20514#include <math.h>
20515int
20516main ()
20517{
20518float f; isnan(f);
20519  ;
20520  return 0;
20521}
20522_ACEOF
20523rm -f conftest.$ac_objext
20524if { (ac_try="$ac_compile"
20525case "(($ac_try" in
20526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527  *) ac_try_echo=$ac_try;;
20528esac
20529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530  (eval "$ac_compile") 2>conftest.er1
20531  ac_status=$?
20532  grep -v '^ *+' conftest.er1 >conftest.err
20533  rm -f conftest.er1
20534  cat conftest.err >&5
20535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536  (exit $ac_status); } &&
20537	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20538  { (case "(($ac_try" in
20539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540  *) ac_try_echo=$ac_try;;
20541esac
20542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543  (eval "$ac_try") 2>&5
20544  ac_status=$?
20545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546  (exit $ac_status); }; } &&
20547	 { ac_try='test -s conftest.$ac_objext'
20548  { (case "(($ac_try" in
20549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550  *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553  (eval "$ac_try") 2>&5
20554  ac_status=$?
20555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556  (exit $ac_status); }; }; then
20557  ac_cv_func_isnan_in_math_h=yes
20558else
20559  echo "$as_me: failed program was:" >&5
20560sed 's/^/| /' conftest.$ac_ext >&5
20561
20562	ac_cv_func_isnan_in_math_h=no
20563fi
20564
20565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566    ac_ext=c
20567ac_cpp='$CPP $CPPFLAGS'
20568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20570ac_compiler_gnu=$ac_cv_c_compiler_gnu
20571
20572
20573fi
20574{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20575echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20576
20577
20578if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20579
20580cat >>confdefs.h <<\_ACEOF
20581#define HAVE_ISNAN_IN_MATH_H 1
20582_ACEOF
20583
20584fi
20585
20586
20587  { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20588echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20589if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20590  echo $ECHO_N "(cached) $ECHO_C" >&6
20591else
20592
20593    ac_ext=cpp
20594ac_cpp='$CXXCPP $CPPFLAGS'
20595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20598
20599    cat >conftest.$ac_ext <<_ACEOF
20600/* confdefs.h.  */
20601_ACEOF
20602cat confdefs.h >>conftest.$ac_ext
20603cat >>conftest.$ac_ext <<_ACEOF
20604/* end confdefs.h.  */
20605#include <cmath>
20606int
20607main ()
20608{
20609float f; isnan(f);
20610  ;
20611  return 0;
20612}
20613_ACEOF
20614rm -f conftest.$ac_objext
20615if { (ac_try="$ac_compile"
20616case "(($ac_try" in
20617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618  *) ac_try_echo=$ac_try;;
20619esac
20620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621  (eval "$ac_compile") 2>conftest.er1
20622  ac_status=$?
20623  grep -v '^ *+' conftest.er1 >conftest.err
20624  rm -f conftest.er1
20625  cat conftest.err >&5
20626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627  (exit $ac_status); } &&
20628	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20629  { (case "(($ac_try" in
20630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631  *) ac_try_echo=$ac_try;;
20632esac
20633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634  (eval "$ac_try") 2>&5
20635  ac_status=$?
20636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637  (exit $ac_status); }; } &&
20638	 { ac_try='test -s conftest.$ac_objext'
20639  { (case "(($ac_try" in
20640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641  *) ac_try_echo=$ac_try;;
20642esac
20643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644  (eval "$ac_try") 2>&5
20645  ac_status=$?
20646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647  (exit $ac_status); }; }; then
20648  ac_cv_func_isnan_in_cmath=yes
20649else
20650  echo "$as_me: failed program was:" >&5
20651sed 's/^/| /' conftest.$ac_ext >&5
20652
20653	ac_cv_func_isnan_in_cmath=no
20654fi
20655
20656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657    ac_ext=c
20658ac_cpp='$CPP $CPPFLAGS'
20659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20661ac_compiler_gnu=$ac_cv_c_compiler_gnu
20662
20663
20664fi
20665{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20666echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20667
20668if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20669
20670cat >>confdefs.h <<\_ACEOF
20671#define HAVE_ISNAN_IN_CMATH 1
20672_ACEOF
20673
20674fi
20675
20676
20677  { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20678echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20679if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20680  echo $ECHO_N "(cached) $ECHO_C" >&6
20681else
20682
20683    ac_ext=cpp
20684ac_cpp='$CXXCPP $CPPFLAGS'
20685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20688
20689    cat >conftest.$ac_ext <<_ACEOF
20690/* confdefs.h.  */
20691_ACEOF
20692cat confdefs.h >>conftest.$ac_ext
20693cat >>conftest.$ac_ext <<_ACEOF
20694/* end confdefs.h.  */
20695#include <cmath>
20696int
20697main ()
20698{
20699float f; std::isnan(f);
20700  ;
20701  return 0;
20702}
20703_ACEOF
20704rm -f conftest.$ac_objext
20705if { (ac_try="$ac_compile"
20706case "(($ac_try" in
20707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708  *) ac_try_echo=$ac_try;;
20709esac
20710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711  (eval "$ac_compile") 2>conftest.er1
20712  ac_status=$?
20713  grep -v '^ *+' conftest.er1 >conftest.err
20714  rm -f conftest.er1
20715  cat conftest.err >&5
20716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717  (exit $ac_status); } &&
20718	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20719  { (case "(($ac_try" in
20720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721  *) ac_try_echo=$ac_try;;
20722esac
20723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724  (eval "$ac_try") 2>&5
20725  ac_status=$?
20726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727  (exit $ac_status); }; } &&
20728	 { ac_try='test -s conftest.$ac_objext'
20729  { (case "(($ac_try" in
20730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731  *) ac_try_echo=$ac_try;;
20732esac
20733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734  (eval "$ac_try") 2>&5
20735  ac_status=$?
20736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737  (exit $ac_status); }; }; then
20738  ac_cv_func_std_isnan_in_cmath=yes
20739else
20740  echo "$as_me: failed program was:" >&5
20741sed 's/^/| /' conftest.$ac_ext >&5
20742
20743	ac_cv_func_std_isnan_in_cmath=no
20744fi
20745
20746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20747    ac_ext=c
20748ac_cpp='$CPP $CPPFLAGS'
20749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751ac_compiler_gnu=$ac_cv_c_compiler_gnu
20752
20753
20754fi
20755{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20756echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20757
20758if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20759
20760cat >>confdefs.h <<\_ACEOF
20761#define HAVE_STD_ISNAN_IN_CMATH 1
20762_ACEOF
20763
20764fi
20765
20766
20767
20768
20769  { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20770echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20771if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20772  echo $ECHO_N "(cached) $ECHO_C" >&6
20773else
20774
20775    ac_ext=cpp
20776ac_cpp='$CXXCPP $CPPFLAGS'
20777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20780
20781    cat >conftest.$ac_ext <<_ACEOF
20782/* confdefs.h.  */
20783_ACEOF
20784cat confdefs.h >>conftest.$ac_ext
20785cat >>conftest.$ac_ext <<_ACEOF
20786/* end confdefs.h.  */
20787#include <math.h>
20788int
20789main ()
20790{
20791float f; isinf(f);
20792  ;
20793  return 0;
20794}
20795_ACEOF
20796rm -f conftest.$ac_objext
20797if { (ac_try="$ac_compile"
20798case "(($ac_try" in
20799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800  *) ac_try_echo=$ac_try;;
20801esac
20802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803  (eval "$ac_compile") 2>conftest.er1
20804  ac_status=$?
20805  grep -v '^ *+' conftest.er1 >conftest.err
20806  rm -f conftest.er1
20807  cat conftest.err >&5
20808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809  (exit $ac_status); } &&
20810	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20811  { (case "(($ac_try" in
20812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813  *) ac_try_echo=$ac_try;;
20814esac
20815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816  (eval "$ac_try") 2>&5
20817  ac_status=$?
20818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819  (exit $ac_status); }; } &&
20820	 { ac_try='test -s conftest.$ac_objext'
20821  { (case "(($ac_try" in
20822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823  *) ac_try_echo=$ac_try;;
20824esac
20825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826  (eval "$ac_try") 2>&5
20827  ac_status=$?
20828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829  (exit $ac_status); }; }; then
20830  ac_cv_func_isinf_in_math_h=yes
20831else
20832  echo "$as_me: failed program was:" >&5
20833sed 's/^/| /' conftest.$ac_ext >&5
20834
20835	ac_cv_func_isinf_in_math_h=no
20836fi
20837
20838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839    ac_ext=c
20840ac_cpp='$CPP $CPPFLAGS'
20841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20843ac_compiler_gnu=$ac_cv_c_compiler_gnu
20844
20845
20846fi
20847{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20848echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20849
20850if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20851
20852cat >>confdefs.h <<\_ACEOF
20853#define HAVE_ISINF_IN_MATH_H 1
20854_ACEOF
20855
20856fi
20857
20858
20859  { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20860echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20861if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20862  echo $ECHO_N "(cached) $ECHO_C" >&6
20863else
20864
20865    ac_ext=cpp
20866ac_cpp='$CXXCPP $CPPFLAGS'
20867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20870
20871    cat >conftest.$ac_ext <<_ACEOF
20872/* confdefs.h.  */
20873_ACEOF
20874cat confdefs.h >>conftest.$ac_ext
20875cat >>conftest.$ac_ext <<_ACEOF
20876/* end confdefs.h.  */
20877#include <cmath>
20878int
20879main ()
20880{
20881float f; isinf(f);
20882  ;
20883  return 0;
20884}
20885_ACEOF
20886rm -f conftest.$ac_objext
20887if { (ac_try="$ac_compile"
20888case "(($ac_try" in
20889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890  *) ac_try_echo=$ac_try;;
20891esac
20892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893  (eval "$ac_compile") 2>conftest.er1
20894  ac_status=$?
20895  grep -v '^ *+' conftest.er1 >conftest.err
20896  rm -f conftest.er1
20897  cat conftest.err >&5
20898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899  (exit $ac_status); } &&
20900	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20901  { (case "(($ac_try" in
20902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903  *) ac_try_echo=$ac_try;;
20904esac
20905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906  (eval "$ac_try") 2>&5
20907  ac_status=$?
20908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909  (exit $ac_status); }; } &&
20910	 { ac_try='test -s conftest.$ac_objext'
20911  { (case "(($ac_try" in
20912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913  *) ac_try_echo=$ac_try;;
20914esac
20915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916  (eval "$ac_try") 2>&5
20917  ac_status=$?
20918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919  (exit $ac_status); }; }; then
20920  ac_cv_func_isinf_in_cmath=yes
20921else
20922  echo "$as_me: failed program was:" >&5
20923sed 's/^/| /' conftest.$ac_ext >&5
20924
20925	ac_cv_func_isinf_in_cmath=no
20926fi
20927
20928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929    ac_ext=c
20930ac_cpp='$CPP $CPPFLAGS'
20931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20933ac_compiler_gnu=$ac_cv_c_compiler_gnu
20934
20935
20936fi
20937{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20938echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20939
20940if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20941
20942cat >>confdefs.h <<\_ACEOF
20943#define HAVE_ISINF_IN_CMATH 1
20944_ACEOF
20945
20946fi
20947
20948
20949  { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20950echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20951if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20952  echo $ECHO_N "(cached) $ECHO_C" >&6
20953else
20954
20955    ac_ext=cpp
20956ac_cpp='$CXXCPP $CPPFLAGS'
20957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20960
20961    cat >conftest.$ac_ext <<_ACEOF
20962/* confdefs.h.  */
20963_ACEOF
20964cat confdefs.h >>conftest.$ac_ext
20965cat >>conftest.$ac_ext <<_ACEOF
20966/* end confdefs.h.  */
20967#include <cmath>
20968int
20969main ()
20970{
20971float f; std::isinf(f);
20972  ;
20973  return 0;
20974}
20975_ACEOF
20976rm -f conftest.$ac_objext
20977if { (ac_try="$ac_compile"
20978case "(($ac_try" in
20979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980  *) ac_try_echo=$ac_try;;
20981esac
20982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983  (eval "$ac_compile") 2>conftest.er1
20984  ac_status=$?
20985  grep -v '^ *+' conftest.er1 >conftest.err
20986  rm -f conftest.er1
20987  cat conftest.err >&5
20988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989  (exit $ac_status); } &&
20990	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20991  { (case "(($ac_try" in
20992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993  *) ac_try_echo=$ac_try;;
20994esac
20995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996  (eval "$ac_try") 2>&5
20997  ac_status=$?
20998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999  (exit $ac_status); }; } &&
21000	 { ac_try='test -s conftest.$ac_objext'
21001  { (case "(($ac_try" in
21002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003  *) ac_try_echo=$ac_try;;
21004esac
21005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006  (eval "$ac_try") 2>&5
21007  ac_status=$?
21008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009  (exit $ac_status); }; }; then
21010  ac_cv_func_std_isinf_in_cmath=yes
21011else
21012  echo "$as_me: failed program was:" >&5
21013sed 's/^/| /' conftest.$ac_ext >&5
21014
21015	ac_cv_func_std_isinf_in_cmath=no
21016fi
21017
21018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019    ac_ext=c
21020ac_cpp='$CPP $CPPFLAGS'
21021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21023ac_compiler_gnu=$ac_cv_c_compiler_gnu
21024
21025
21026fi
21027{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21028echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21029
21030if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21031
21032cat >>confdefs.h <<\_ACEOF
21033#define HAVE_STD_ISINF_IN_CMATH 1
21034_ACEOF
21035
21036fi
21037
21038
21039  { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21040echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21041if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21042  echo $ECHO_N "(cached) $ECHO_C" >&6
21043else
21044
21045    ac_ext=cpp
21046ac_cpp='$CXXCPP $CPPFLAGS'
21047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21050
21051    cat >conftest.$ac_ext <<_ACEOF
21052/* confdefs.h.  */
21053_ACEOF
21054cat confdefs.h >>conftest.$ac_ext
21055cat >>conftest.$ac_ext <<_ACEOF
21056/* end confdefs.h.  */
21057#include <ieeefp.h>
21058int
21059main ()
21060{
21061float f; finite(f);
21062  ;
21063  return 0;
21064}
21065_ACEOF
21066rm -f conftest.$ac_objext
21067if { (ac_try="$ac_compile"
21068case "(($ac_try" in
21069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070  *) ac_try_echo=$ac_try;;
21071esac
21072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073  (eval "$ac_compile") 2>conftest.er1
21074  ac_status=$?
21075  grep -v '^ *+' conftest.er1 >conftest.err
21076  rm -f conftest.er1
21077  cat conftest.err >&5
21078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079  (exit $ac_status); } &&
21080	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21081  { (case "(($ac_try" in
21082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083  *) ac_try_echo=$ac_try;;
21084esac
21085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086  (eval "$ac_try") 2>&5
21087  ac_status=$?
21088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089  (exit $ac_status); }; } &&
21090	 { ac_try='test -s conftest.$ac_objext'
21091  { (case "(($ac_try" in
21092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093  *) ac_try_echo=$ac_try;;
21094esac
21095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096  (eval "$ac_try") 2>&5
21097  ac_status=$?
21098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099  (exit $ac_status); }; }; then
21100  ac_cv_func_finite_in_ieeefp_h=yes
21101else
21102  echo "$as_me: failed program was:" >&5
21103sed 's/^/| /' conftest.$ac_ext >&5
21104
21105	ac_cv_func_finite_in_ieeefp_h=no
21106fi
21107
21108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109    ac_ext=c
21110ac_cpp='$CPP $CPPFLAGS'
21111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114
21115
21116fi
21117{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21118echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21119
21120if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21121
21122cat >>confdefs.h <<\_ACEOF
21123#define HAVE_FINITE_IN_IEEEFP_H 1
21124_ACEOF
21125
21126fi
21127
21128
21129
21130if test "$llvm_cv_platform_type" = "Unix" ; then
21131
21132
21133for ac_header in stdlib.h unistd.h
21134do
21135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21137  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21140  echo $ECHO_N "(cached) $ECHO_C" >&6
21141fi
21142ac_res=`eval echo '${'$as_ac_Header'}'`
21143	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21144echo "${ECHO_T}$ac_res" >&6; }
21145else
21146  # Is the header compilable?
21147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21149cat >conftest.$ac_ext <<_ACEOF
21150/* confdefs.h.  */
21151_ACEOF
21152cat confdefs.h >>conftest.$ac_ext
21153cat >>conftest.$ac_ext <<_ACEOF
21154/* end confdefs.h.  */
21155$ac_includes_default
21156#include <$ac_header>
21157_ACEOF
21158rm -f conftest.$ac_objext
21159if { (ac_try="$ac_compile"
21160case "(($ac_try" in
21161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162  *) ac_try_echo=$ac_try;;
21163esac
21164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165  (eval "$ac_compile") 2>conftest.er1
21166  ac_status=$?
21167  grep -v '^ *+' conftest.er1 >conftest.err
21168  rm -f conftest.er1
21169  cat conftest.err >&5
21170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171  (exit $ac_status); } &&
21172	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21173  { (case "(($ac_try" in
21174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175  *) ac_try_echo=$ac_try;;
21176esac
21177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178  (eval "$ac_try") 2>&5
21179  ac_status=$?
21180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181  (exit $ac_status); }; } &&
21182	 { ac_try='test -s conftest.$ac_objext'
21183  { (case "(($ac_try" in
21184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185  *) ac_try_echo=$ac_try;;
21186esac
21187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188  (eval "$ac_try") 2>&5
21189  ac_status=$?
21190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191  (exit $ac_status); }; }; then
21192  ac_header_compiler=yes
21193else
21194  echo "$as_me: failed program was:" >&5
21195sed 's/^/| /' conftest.$ac_ext >&5
21196
21197	ac_header_compiler=no
21198fi
21199
21200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21201{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21202echo "${ECHO_T}$ac_header_compiler" >&6; }
21203
21204# Is the header present?
21205{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21207cat >conftest.$ac_ext <<_ACEOF
21208/* confdefs.h.  */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
21212/* end confdefs.h.  */
21213#include <$ac_header>
21214_ACEOF
21215if { (ac_try="$ac_cpp conftest.$ac_ext"
21216case "(($ac_try" in
21217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218  *) ac_try_echo=$ac_try;;
21219esac
21220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21222  ac_status=$?
21223  grep -v '^ *+' conftest.er1 >conftest.err
21224  rm -f conftest.er1
21225  cat conftest.err >&5
21226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227  (exit $ac_status); } >/dev/null; then
21228  if test -s conftest.err; then
21229    ac_cpp_err=$ac_c_preproc_warn_flag
21230    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21231  else
21232    ac_cpp_err=
21233  fi
21234else
21235  ac_cpp_err=yes
21236fi
21237if test -z "$ac_cpp_err"; then
21238  ac_header_preproc=yes
21239else
21240  echo "$as_me: failed program was:" >&5
21241sed 's/^/| /' conftest.$ac_ext >&5
21242
21243  ac_header_preproc=no
21244fi
21245
21246rm -f conftest.err conftest.$ac_ext
21247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21248echo "${ECHO_T}$ac_header_preproc" >&6; }
21249
21250# So?  What about this header?
21251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21252  yes:no: )
21253    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21255    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21257    ac_header_preproc=yes
21258    ;;
21259  no:yes:* )
21260    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21262    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21263echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21264    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21266    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21267echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21268    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21270    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21272    ( cat <<\_ASBOX
21273## ------------------------------------ ##
21274## Report this to http://llvm.org/bugs/ ##
21275## ------------------------------------ ##
21276_ASBOX
21277     ) | sed "s/^/$as_me: WARNING:     /" >&2
21278    ;;
21279esac
21280{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21283  echo $ECHO_N "(cached) $ECHO_C" >&6
21284else
21285  eval "$as_ac_Header=\$ac_header_preproc"
21286fi
21287ac_res=`eval echo '${'$as_ac_Header'}'`
21288	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21289echo "${ECHO_T}$ac_res" >&6; }
21290
21291fi
21292if test `eval echo '${'$as_ac_Header'}'` = yes; then
21293  cat >>confdefs.h <<_ACEOF
21294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21295_ACEOF
21296
21297fi
21298
21299done
21300
21301
21302for ac_func in getpagesize
21303do
21304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21305{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21307if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21308  echo $ECHO_N "(cached) $ECHO_C" >&6
21309else
21310  cat >conftest.$ac_ext <<_ACEOF
21311/* confdefs.h.  */
21312_ACEOF
21313cat confdefs.h >>conftest.$ac_ext
21314cat >>conftest.$ac_ext <<_ACEOF
21315/* end confdefs.h.  */
21316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21317   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21318#define $ac_func innocuous_$ac_func
21319
21320/* System header to define __stub macros and hopefully few prototypes,
21321    which can conflict with char $ac_func (); below.
21322    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21323    <limits.h> exists even on freestanding compilers.  */
21324
21325#ifdef __STDC__
21326# include <limits.h>
21327#else
21328# include <assert.h>
21329#endif
21330
21331#undef $ac_func
21332
21333/* Override any GCC internal prototype to avoid an error.
21334   Use char because int might match the return type of a GCC
21335   builtin and then its argument prototype would still apply.  */
21336#ifdef __cplusplus
21337extern "C"
21338#endif
21339char $ac_func ();
21340/* The GNU C library defines this for functions which it implements
21341    to always fail with ENOSYS.  Some functions are actually named
21342    something starting with __ and the normal name is an alias.  */
21343#if defined __stub_$ac_func || defined __stub___$ac_func
21344choke me
21345#endif
21346
21347int
21348main ()
21349{
21350return $ac_func ();
21351  ;
21352  return 0;
21353}
21354_ACEOF
21355rm -f conftest.$ac_objext conftest$ac_exeext
21356if { (ac_try="$ac_link"
21357case "(($ac_try" in
21358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359  *) ac_try_echo=$ac_try;;
21360esac
21361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362  (eval "$ac_link") 2>conftest.er1
21363  ac_status=$?
21364  grep -v '^ *+' conftest.er1 >conftest.err
21365  rm -f conftest.er1
21366  cat conftest.err >&5
21367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368  (exit $ac_status); } &&
21369	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21370  { (case "(($ac_try" in
21371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372  *) ac_try_echo=$ac_try;;
21373esac
21374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375  (eval "$ac_try") 2>&5
21376  ac_status=$?
21377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378  (exit $ac_status); }; } &&
21379	 { ac_try='test -s conftest$ac_exeext'
21380  { (case "(($ac_try" in
21381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382  *) ac_try_echo=$ac_try;;
21383esac
21384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385  (eval "$ac_try") 2>&5
21386  ac_status=$?
21387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388  (exit $ac_status); }; }; then
21389  eval "$as_ac_var=yes"
21390else
21391  echo "$as_me: failed program was:" >&5
21392sed 's/^/| /' conftest.$ac_ext >&5
21393
21394	eval "$as_ac_var=no"
21395fi
21396
21397rm -f core conftest.err conftest.$ac_objext \
21398      conftest$ac_exeext conftest.$ac_ext
21399fi
21400ac_res=`eval echo '${'$as_ac_var'}'`
21401	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21402echo "${ECHO_T}$ac_res" >&6; }
21403if test `eval echo '${'$as_ac_var'}'` = yes; then
21404  cat >>confdefs.h <<_ACEOF
21405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21406_ACEOF
21407
21408fi
21409done
21410
21411{ echo "$as_me:$LINENO: checking for working mmap" >&5
21412echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21413if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21414  echo $ECHO_N "(cached) $ECHO_C" >&6
21415else
21416  if test "$cross_compiling" = yes; then
21417  ac_cv_func_mmap_fixed_mapped=no
21418else
21419  cat >conftest.$ac_ext <<_ACEOF
21420/* confdefs.h.  */
21421_ACEOF
21422cat confdefs.h >>conftest.$ac_ext
21423cat >>conftest.$ac_ext <<_ACEOF
21424/* end confdefs.h.  */
21425$ac_includes_default
21426/* malloc might have been renamed as rpl_malloc. */
21427#undef malloc
21428
21429/* Thanks to Mike Haertel and Jim Avera for this test.
21430   Here is a matrix of mmap possibilities:
21431	mmap private not fixed
21432	mmap private fixed at somewhere currently unmapped
21433	mmap private fixed at somewhere already mapped
21434	mmap shared not fixed
21435	mmap shared fixed at somewhere currently unmapped
21436	mmap shared fixed at somewhere already mapped
21437   For private mappings, we should verify that changes cannot be read()
21438   back from the file, nor mmap's back from the file at a different
21439   address.  (There have been systems where private was not correctly
21440   implemented like the infamous i386 svr4.0, and systems where the
21441   VM page cache was not coherent with the file system buffer cache
21442   like early versions of FreeBSD and possibly contemporary NetBSD.)
21443   For shared mappings, we should conversely verify that changes get
21444   propagated back to all the places they're supposed to be.
21445
21446   Grep wants private fixed already mapped.
21447   The main things grep needs to know about mmap are:
21448   * does it exist and is it safe to write into the mmap'd area
21449   * how to use it (BSD variants)  */
21450
21451#include <fcntl.h>
21452#include <sys/mman.h>
21453
21454#if !STDC_HEADERS && !HAVE_STDLIB_H
21455char *malloc ();
21456#endif
21457
21458/* This mess was copied from the GNU getpagesize.h.  */
21459#if !HAVE_GETPAGESIZE
21460/* Assume that all systems that can run configure have sys/param.h.  */
21461# if !HAVE_SYS_PARAM_H
21462#  define HAVE_SYS_PARAM_H 1
21463# endif
21464
21465# ifdef _SC_PAGESIZE
21466#  define getpagesize() sysconf(_SC_PAGESIZE)
21467# else /* no _SC_PAGESIZE */
21468#  if HAVE_SYS_PARAM_H
21469#   include <sys/param.h>
21470#   ifdef EXEC_PAGESIZE
21471#    define getpagesize() EXEC_PAGESIZE
21472#   else /* no EXEC_PAGESIZE */
21473#    ifdef NBPG
21474#     define getpagesize() NBPG * CLSIZE
21475#     ifndef CLSIZE
21476#      define CLSIZE 1
21477#     endif /* no CLSIZE */
21478#    else /* no NBPG */
21479#     ifdef NBPC
21480#      define getpagesize() NBPC
21481#     else /* no NBPC */
21482#      ifdef PAGESIZE
21483#       define getpagesize() PAGESIZE
21484#      endif /* PAGESIZE */
21485#     endif /* no NBPC */
21486#    endif /* no NBPG */
21487#   endif /* no EXEC_PAGESIZE */
21488#  else /* no HAVE_SYS_PARAM_H */
21489#   define getpagesize() 8192	/* punt totally */
21490#  endif /* no HAVE_SYS_PARAM_H */
21491# endif /* no _SC_PAGESIZE */
21492
21493#endif /* no HAVE_GETPAGESIZE */
21494
21495int
21496main ()
21497{
21498  char *data, *data2, *data3;
21499  int i, pagesize;
21500  int fd;
21501
21502  pagesize = getpagesize ();
21503
21504  /* First, make a file with some known garbage in it. */
21505  data = (char *) malloc (pagesize);
21506  if (!data)
21507    return 1;
21508  for (i = 0; i < pagesize; ++i)
21509    *(data + i) = rand ();
21510  umask (0);
21511  fd = creat ("conftest.mmap", 0600);
21512  if (fd < 0)
21513    return 1;
21514  if (write (fd, data, pagesize) != pagesize)
21515    return 1;
21516  close (fd);
21517
21518  /* Next, try to mmap the file at a fixed address which already has
21519     something else allocated at it.  If we can, also make sure that
21520     we see the same garbage.  */
21521  fd = open ("conftest.mmap", O_RDWR);
21522  if (fd < 0)
21523    return 1;
21524  data2 = (char *) malloc (2 * pagesize);
21525  if (!data2)
21526    return 1;
21527  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21528  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21529		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
21530    return 1;
21531  for (i = 0; i < pagesize; ++i)
21532    if (*(data + i) != *(data2 + i))
21533      return 1;
21534
21535  /* Finally, make sure that changes to the mapped area do not
21536     percolate back to the file as seen by read().  (This is a bug on
21537     some variants of i386 svr4.0.)  */
21538  for (i = 0; i < pagesize; ++i)
21539    *(data2 + i) = *(data2 + i) + 1;
21540  data3 = (char *) malloc (pagesize);
21541  if (!data3)
21542    return 1;
21543  if (read (fd, data3, pagesize) != pagesize)
21544    return 1;
21545  for (i = 0; i < pagesize; ++i)
21546    if (*(data + i) != *(data3 + i))
21547      return 1;
21548  close (fd);
21549  return 0;
21550}
21551_ACEOF
21552rm -f conftest$ac_exeext
21553if { (ac_try="$ac_link"
21554case "(($ac_try" in
21555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556  *) ac_try_echo=$ac_try;;
21557esac
21558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559  (eval "$ac_link") 2>&5
21560  ac_status=$?
21561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21563  { (case "(($ac_try" in
21564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565  *) ac_try_echo=$ac_try;;
21566esac
21567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21568  (eval "$ac_try") 2>&5
21569  ac_status=$?
21570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571  (exit $ac_status); }; }; then
21572  ac_cv_func_mmap_fixed_mapped=yes
21573else
21574  echo "$as_me: program exited with status $ac_status" >&5
21575echo "$as_me: failed program was:" >&5
21576sed 's/^/| /' conftest.$ac_ext >&5
21577
21578( exit $ac_status )
21579ac_cv_func_mmap_fixed_mapped=no
21580fi
21581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21582fi
21583
21584
21585fi
21586{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21587echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21588if test $ac_cv_func_mmap_fixed_mapped = yes; then
21589
21590cat >>confdefs.h <<\_ACEOF
21591#define HAVE_MMAP 1
21592_ACEOF
21593
21594fi
21595rm -f conftest.mmap
21596
21597  { echo "$as_me:$LINENO: checking for mmap of files" >&5
21598echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21599if test "${ac_cv_func_mmap_file+set}" = set; then
21600  echo $ECHO_N "(cached) $ECHO_C" >&6
21601else
21602   ac_ext=c
21603ac_cpp='$CPP $CPPFLAGS'
21604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21606ac_compiler_gnu=$ac_cv_c_compiler_gnu
21607
21608  if test "$cross_compiling" = yes; then
21609  ac_cv_func_mmap_file=no
21610else
21611  cat >conftest.$ac_ext <<_ACEOF
21612
21613    /* confdefs.h.  */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h.  */
21618
21619#include <sys/types.h>
21620#include <sys/mman.h>
21621#include <fcntl.h>
21622
21623int
21624main ()
21625{
21626
21627  int fd;
21628  fd = creat ("foo",0777);
21629  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21630  unlink ("foo");
21631  return (fd != (int) MAP_FAILED);
21632  ;
21633  return 0;
21634}
21635_ACEOF
21636rm -f conftest$ac_exeext
21637if { (ac_try="$ac_link"
21638case "(($ac_try" in
21639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640  *) ac_try_echo=$ac_try;;
21641esac
21642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643  (eval "$ac_link") 2>&5
21644  ac_status=$?
21645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21647  { (case "(($ac_try" in
21648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649  *) ac_try_echo=$ac_try;;
21650esac
21651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652  (eval "$ac_try") 2>&5
21653  ac_status=$?
21654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655  (exit $ac_status); }; }; then
21656  ac_cv_func_mmap_file=yes
21657else
21658  echo "$as_me: program exited with status $ac_status" >&5
21659echo "$as_me: failed program was:" >&5
21660sed 's/^/| /' conftest.$ac_ext >&5
21661
21662( exit $ac_status )
21663ac_cv_func_mmap_file=no
21664fi
21665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21666fi
21667
21668
21669  ac_ext=c
21670ac_cpp='$CPP $CPPFLAGS'
21671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21673ac_compiler_gnu=$ac_cv_c_compiler_gnu
21674
21675
21676fi
21677{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21678echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21679if test "$ac_cv_func_mmap_file" = yes; then
21680
21681cat >>confdefs.h <<\_ACEOF
21682#define HAVE_MMAP_FILE
21683_ACEOF
21684
21685   MMAP_FILE=yes
21686
21687fi
21688
21689  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21690echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21691if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21692  echo $ECHO_N "(cached) $ECHO_C" >&6
21693else
21694  if test "$llvm_cv_os_type" = "Interix" ; then
21695   ac_cv_need_dev_zero_for_mmap=yes
21696 else
21697   ac_cv_need_dev_zero_for_mmap=no
21698 fi
21699
21700fi
21701{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21702echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21703if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21704
21705cat >>confdefs.h <<\_ACEOF
21706#define NEED_DEV_ZERO_FOR_MMAP 1
21707_ACEOF
21708
21709fi
21710
21711  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21712  then
21713    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21714echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21715  fi
21716  if test "$ac_cv_func_mmap_file" = "no"
21717  then
21718    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21719echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21720  fi
21721fi
21722
21723{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21724echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21725ac_ext=cpp
21726ac_cpp='$CXXCPP $CPPFLAGS'
21727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21730
21731cat >conftest.$ac_ext <<_ACEOF
21732
21733  /* confdefs.h.  */
21734_ACEOF
21735cat confdefs.h >>conftest.$ac_ext
21736cat >>conftest.$ac_ext <<_ACEOF
21737/* end confdefs.h.  */
21738
21739    int main() {
21740      volatile unsigned long val = 1;
21741      __sync_synchronize();
21742      __sync_val_compare_and_swap(&val, 1, 0);
21743      __sync_add_and_fetch(&val, 1);
21744      __sync_sub_and_fetch(&val, 1);
21745      return 0;
21746    }
21747
21748
21749_ACEOF
21750rm -f conftest.$ac_objext conftest$ac_exeext
21751if { (ac_try="$ac_link"
21752case "(($ac_try" in
21753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754  *) ac_try_echo=$ac_try;;
21755esac
21756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757  (eval "$ac_link") 2>conftest.er1
21758  ac_status=$?
21759  grep -v '^ *+' conftest.er1 >conftest.err
21760  rm -f conftest.er1
21761  cat conftest.err >&5
21762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763  (exit $ac_status); } &&
21764	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21765  { (case "(($ac_try" in
21766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767  *) ac_try_echo=$ac_try;;
21768esac
21769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770  (eval "$ac_try") 2>&5
21771  ac_status=$?
21772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773  (exit $ac_status); }; } &&
21774	 { ac_try='test -s conftest$ac_exeext'
21775  { (case "(($ac_try" in
21776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777  *) ac_try_echo=$ac_try;;
21778esac
21779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780  (eval "$ac_try") 2>&5
21781  ac_status=$?
21782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783  (exit $ac_status); }; }; then
21784
21785  { echo "$as_me:$LINENO: result: yes" >&5
21786echo "${ECHO_T}yes" >&6; }
21787
21788cat >>confdefs.h <<\_ACEOF
21789#define LLVM_HAS_ATOMICS 1
21790_ACEOF
21791
21792
21793else
21794  echo "$as_me: failed program was:" >&5
21795sed 's/^/| /' conftest.$ac_ext >&5
21796
21797
21798  { echo "$as_me:$LINENO: result: no" >&5
21799echo "${ECHO_T}no" >&6; }
21800
21801cat >>confdefs.h <<\_ACEOF
21802#define LLVM_HAS_ATOMICS 0
21803_ACEOF
21804
21805  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21806echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21807
21808fi
21809
21810rm -f core conftest.err conftest.$ac_objext \
21811      conftest$ac_exeext conftest.$ac_ext
21812ac_ext=c
21813ac_cpp='$CPP $CPPFLAGS'
21814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816ac_compiler_gnu=$ac_cv_c_compiler_gnu
21817
21818
21819
21820if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21821  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21822echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21823if test "${llvm_cv_linux_mixed+set}" = set; then
21824  echo $ECHO_N "(cached) $ECHO_C" >&6
21825else
21826   ac_ext=c
21827ac_cpp='$CPP $CPPFLAGS'
21828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21830ac_compiler_gnu=$ac_cv_c_compiler_gnu
21831
21832  cat >conftest.$ac_ext <<_ACEOF
21833/* confdefs.h.  */
21834_ACEOF
21835cat confdefs.h >>conftest.$ac_ext
21836cat >>conftest.$ac_ext <<_ACEOF
21837/* end confdefs.h.  */
21838#ifndef __x86_64__
21839       error: Not x86-64 even if uname says so!
21840      #endif
21841
21842int
21843main ()
21844{
21845
21846  ;
21847  return 0;
21848}
21849_ACEOF
21850rm -f conftest.$ac_objext
21851if { (ac_try="$ac_compile"
21852case "(($ac_try" in
21853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854  *) ac_try_echo=$ac_try;;
21855esac
21856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857  (eval "$ac_compile") 2>conftest.er1
21858  ac_status=$?
21859  grep -v '^ *+' conftest.er1 >conftest.err
21860  rm -f conftest.er1
21861  cat conftest.err >&5
21862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863  (exit $ac_status); } &&
21864	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21865  { (case "(($ac_try" in
21866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867  *) ac_try_echo=$ac_try;;
21868esac
21869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870  (eval "$ac_try") 2>&5
21871  ac_status=$?
21872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873  (exit $ac_status); }; } &&
21874	 { ac_try='test -s conftest.$ac_objext'
21875  { (case "(($ac_try" in
21876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877  *) ac_try_echo=$ac_try;;
21878esac
21879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880  (eval "$ac_try") 2>&5
21881  ac_status=$?
21882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883  (exit $ac_status); }; }; then
21884  llvm_cv_linux_mixed=no
21885else
21886  echo "$as_me: failed program was:" >&5
21887sed 's/^/| /' conftest.$ac_ext >&5
21888
21889	llvm_cv_linux_mixed=yes
21890fi
21891
21892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893  ac_ext=c
21894ac_cpp='$CPP $CPPFLAGS'
21895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897ac_compiler_gnu=$ac_cv_c_compiler_gnu
21898
21899
21900fi
21901{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21902echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21903
21904  if test "$llvm_cv_linux_mixed" = "yes"; then
21905    llvm_cv_target_arch="x86"
21906    ARCH="x86"
21907  fi
21908fi
21909
21910
21911for ac_func in __dso_handle
21912do
21913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21914{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21916if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21917  echo $ECHO_N "(cached) $ECHO_C" >&6
21918else
21919  cat >conftest.$ac_ext <<_ACEOF
21920/* confdefs.h.  */
21921_ACEOF
21922cat confdefs.h >>conftest.$ac_ext
21923cat >>conftest.$ac_ext <<_ACEOF
21924/* end confdefs.h.  */
21925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21926   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21927#define $ac_func innocuous_$ac_func
21928
21929/* System header to define __stub macros and hopefully few prototypes,
21930    which can conflict with char $ac_func (); below.
21931    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21932    <limits.h> exists even on freestanding compilers.  */
21933
21934#ifdef __STDC__
21935# include <limits.h>
21936#else
21937# include <assert.h>
21938#endif
21939
21940#undef $ac_func
21941
21942/* Override any GCC internal prototype to avoid an error.
21943   Use char because int might match the return type of a GCC
21944   builtin and then its argument prototype would still apply.  */
21945#ifdef __cplusplus
21946extern "C"
21947#endif
21948char $ac_func ();
21949/* The GNU C library defines this for functions which it implements
21950    to always fail with ENOSYS.  Some functions are actually named
21951    something starting with __ and the normal name is an alias.  */
21952#if defined __stub_$ac_func || defined __stub___$ac_func
21953choke me
21954#endif
21955
21956int
21957main ()
21958{
21959return $ac_func ();
21960  ;
21961  return 0;
21962}
21963_ACEOF
21964rm -f conftest.$ac_objext conftest$ac_exeext
21965if { (ac_try="$ac_link"
21966case "(($ac_try" in
21967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968  *) ac_try_echo=$ac_try;;
21969esac
21970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971  (eval "$ac_link") 2>conftest.er1
21972  ac_status=$?
21973  grep -v '^ *+' conftest.er1 >conftest.err
21974  rm -f conftest.er1
21975  cat conftest.err >&5
21976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977  (exit $ac_status); } &&
21978	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21979  { (case "(($ac_try" in
21980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981  *) ac_try_echo=$ac_try;;
21982esac
21983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984  (eval "$ac_try") 2>&5
21985  ac_status=$?
21986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987  (exit $ac_status); }; } &&
21988	 { ac_try='test -s conftest$ac_exeext'
21989  { (case "(($ac_try" in
21990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991  *) ac_try_echo=$ac_try;;
21992esac
21993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994  (eval "$ac_try") 2>&5
21995  ac_status=$?
21996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997  (exit $ac_status); }; }; then
21998  eval "$as_ac_var=yes"
21999else
22000  echo "$as_me: failed program was:" >&5
22001sed 's/^/| /' conftest.$ac_ext >&5
22002
22003	eval "$as_ac_var=no"
22004fi
22005
22006rm -f core conftest.err conftest.$ac_objext \
22007      conftest$ac_exeext conftest.$ac_ext
22008fi
22009ac_res=`eval echo '${'$as_ac_var'}'`
22010	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22011echo "${ECHO_T}$ac_res" >&6; }
22012if test `eval echo '${'$as_ac_var'}'` = yes; then
22013  cat >>confdefs.h <<_ACEOF
22014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22015_ACEOF
22016
22017fi
22018done
22019
22020
22021SHLIBEXT=$libltdl_cv_shlibext
22022
22023
22024SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22025
22026
22027if test "${prefix}" = "NONE" ; then
22028  prefix="/usr/local"
22029fi
22030eval LLVM_PREFIX="${prefix}";
22031eval LLVM_BINDIR="${prefix}/bin";
22032eval LLVM_DATADIR="${prefix}/share/llvm";
22033eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22034eval LLVM_ETCDIR="${prefix}/etc/llvm";
22035eval LLVM_INCLUDEDIR="${prefix}/include";
22036eval LLVM_INFODIR="${prefix}/info";
22037eval LLVM_MANDIR="${prefix}/man";
22038LLVM_CONFIGTIME=`date`
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049if test "${ENABLE_TIMESTAMPS}" = "0"; then
22050  LLVM_CONFIGTIME="(timestamp not enabled)"
22051fi
22052
22053
22054cat >>confdefs.h <<_ACEOF
22055#define LLVM_PREFIX "$LLVM_PREFIX"
22056_ACEOF
22057
22058
22059cat >>confdefs.h <<_ACEOF
22060#define LLVM_BINDIR "$LLVM_BINDIR"
22061_ACEOF
22062
22063
22064cat >>confdefs.h <<_ACEOF
22065#define LLVM_DATADIR "$LLVM_DATADIR"
22066_ACEOF
22067
22068
22069cat >>confdefs.h <<_ACEOF
22070#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22071_ACEOF
22072
22073
22074cat >>confdefs.h <<_ACEOF
22075#define LLVM_ETCDIR "$LLVM_ETCDIR"
22076_ACEOF
22077
22078
22079cat >>confdefs.h <<_ACEOF
22080#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22081_ACEOF
22082
22083
22084cat >>confdefs.h <<_ACEOF
22085#define LLVM_INFODIR "$LLVM_INFODIR"
22086_ACEOF
22087
22088
22089cat >>confdefs.h <<_ACEOF
22090#define LLVM_MANDIR "$LLVM_MANDIR"
22091_ACEOF
22092
22093
22094cat >>confdefs.h <<_ACEOF
22095#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22096_ACEOF
22097
22098
22099cat >>confdefs.h <<_ACEOF
22100#define LLVM_HOST_TRIPLE "$host"
22101_ACEOF
22102
22103
22104cat >>confdefs.h <<_ACEOF
22105#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22106_ACEOF
22107
22108
22109if test "$BINDINGS_TO_BUILD" = auto ; then
22110  BINDINGS_TO_BUILD=""
22111  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22112    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22113  fi
22114fi
22115BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22116
22117
22118ALL_BINDINGS=ocaml
22119
22120
22121binding_prereqs_failed=0
22122for a_binding in $BINDINGS_TO_BUILD ; do
22123  case "$a_binding" in
22124  ocaml)
22125    if test "x$OCAMLC" = x ; then
22126      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22127echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22128      binding_prereqs_failed=1
22129    fi
22130    if test "x$OCAMLDEP" = x ; then
22131      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22132echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22133      binding_prereqs_failed=1
22134    fi
22135    if test "x$OCAMLOPT" = x ; then
22136      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22137echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22138          fi
22139    if test "x$with_ocaml_libdir" != xauto ; then
22140      OCAML_LIBDIR=$with_ocaml_libdir
22141
22142    else
22143      ocaml_stdlib="`"$OCAMLC" -where`"
22144      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22145      then
22146        # ocaml stdlib is beneath our prefix; use stdlib
22147        OCAML_LIBDIR=$ocaml_stdlib
22148
22149      else
22150        # ocaml stdlib is outside our prefix; use libdir/ocaml
22151        OCAML_LIBDIR=${prefix}/lib/ocaml
22152
22153      fi
22154    fi
22155    ;;
22156  esac
22157done
22158if test "$binding_prereqs_failed" = 1 ; then
22159  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22160echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22161   { (exit 1); exit 1; }; }
22162fi
22163
22164{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22165echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22166if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22167  echo $ECHO_N "(cached) $ECHO_C" >&6
22168else
22169   ac_ext=cpp
22170ac_cpp='$CXXCPP $CPPFLAGS'
22171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22174
22175  oldcxxflags="$CXXFLAGS"
22176  CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22177  cat >conftest.$ac_ext <<_ACEOF
22178/* confdefs.h.  */
22179_ACEOF
22180cat confdefs.h >>conftest.$ac_ext
22181cat >>conftest.$ac_ext <<_ACEOF
22182/* end confdefs.h.  */
22183template <typename T> struct X { void __attribute__((noinline)) f() {} };
22184int
22185main ()
22186{
22187X<int>().f();
22188  ;
22189  return 0;
22190}
22191_ACEOF
22192rm -f conftest.$ac_objext
22193if { (ac_try="$ac_compile"
22194case "(($ac_try" in
22195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196  *) ac_try_echo=$ac_try;;
22197esac
22198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199  (eval "$ac_compile") 2>conftest.er1
22200  ac_status=$?
22201  grep -v '^ *+' conftest.er1 >conftest.err
22202  rm -f conftest.er1
22203  cat conftest.err >&5
22204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205  (exit $ac_status); } &&
22206	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22207  { (case "(($ac_try" in
22208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209  *) ac_try_echo=$ac_try;;
22210esac
22211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212  (eval "$ac_try") 2>&5
22213  ac_status=$?
22214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215  (exit $ac_status); }; } &&
22216	 { ac_try='test -s conftest.$ac_objext'
22217  { (case "(($ac_try" in
22218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219  *) ac_try_echo=$ac_try;;
22220esac
22221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222  (eval "$ac_try") 2>&5
22223  ac_status=$?
22224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225  (exit $ac_status); }; }; then
22226  llvm_cv_cxx_visibility_inlines_hidden=yes
22227else
22228  echo "$as_me: failed program was:" >&5
22229sed 's/^/| /' conftest.$ac_ext >&5
22230
22231	llvm_cv_cxx_visibility_inlines_hidden=no
22232fi
22233
22234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235  CXXFLAGS="$oldcxxflags"
22236  ac_ext=c
22237ac_cpp='$CPP $CPPFLAGS'
22238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22240ac_compiler_gnu=$ac_cv_c_compiler_gnu
22241
22242
22243fi
22244{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22245echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22246if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22247  ENABLE_VISIBILITY_INLINES_HIDDEN=1
22248
22249else
22250  ENABLE_VISIBILITY_INLINES_HIDDEN=0
22251
22252fi
22253
22254
22255if test "$llvm_cv_link_use_r" = "yes" ; then
22256  RPATH="-Wl,-R"
22257else
22258  RPATH="-Wl,-rpath"
22259fi
22260
22261
22262if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22263  RDYNAMIC="-rdynamic"
22264else
22265  RDYNAMIC=""
22266fi
22267
22268
22269
22270ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22271
22272
22273
22274
22275
22276
22277ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22278
22279ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22280
22281ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22282
22283ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22284
22285ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22286
22287
22288ac_config_files="$ac_config_files Makefile.config"
22289
22290
22291ac_config_files="$ac_config_files llvm.spec"
22292
22293
22294ac_config_files="$ac_config_files docs/doxygen.cfg"
22295
22296
22297if test "${clang_src_root}" = ""; then
22298  clang_src_root="$srcdir/tools/clang"
22299fi
22300if test -f ${clang_src_root}/README.txt; then
22301    configh="include/clang/Config/config.h"
22302  doxy="docs/doxygen.cfg"
22303  ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22304
22305  ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22306
22307fi
22308
22309ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22310
22311
22312test "x$program_prefix" = "xNONE" && program_prefix=""
22313
22314
22315
22316ac_config_commands="$ac_config_commands setup"
22317
22318ac_config_commands="$ac_config_commands Makefile"
22319
22320
22321ac_config_commands="$ac_config_commands Makefile.common"
22322
22323
22324ac_config_commands="$ac_config_commands examples/Makefile"
22325
22326
22327ac_config_commands="$ac_config_commands lib/Makefile"
22328
22329
22330ac_config_commands="$ac_config_commands test/Makefile"
22331
22332
22333ac_config_commands="$ac_config_commands test/Makefile.tests"
22334
22335
22336ac_config_commands="$ac_config_commands unittests/Makefile"
22337
22338
22339ac_config_commands="$ac_config_commands tools/Makefile"
22340
22341
22342ac_config_commands="$ac_config_commands utils/Makefile"
22343
22344
22345ac_config_commands="$ac_config_commands projects/Makefile"
22346
22347
22348ac_config_commands="$ac_config_commands bindings/Makefile"
22349
22350
22351ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22352
22353
22354
22355cat >confcache <<\_ACEOF
22356# This file is a shell script that caches the results of configure
22357# tests run on this system so they can be shared between configure
22358# scripts and configure runs, see configure's option --config-cache.
22359# It is not useful on other systems.  If it contains results you don't
22360# want to keep, you may remove or edit it.
22361#
22362# config.status only pays attention to the cache file if you give it
22363# the --recheck option to rerun configure.
22364#
22365# `ac_cv_env_foo' variables (set or unset) will be overridden when
22366# loading this file, other *unset* `ac_cv_foo' will be assigned the
22367# following values.
22368
22369_ACEOF
22370
22371# The following way of writing the cache mishandles newlines in values,
22372# but we know of no workaround that is simple, portable, and efficient.
22373# So, we kill variables containing newlines.
22374# Ultrix sh set writes to stderr and can't be redirected directly,
22375# and sets the high bit in the cache file unless we assign to the vars.
22376(
22377  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22378    eval ac_val=\$$ac_var
22379    case $ac_val in #(
22380    *${as_nl}*)
22381      case $ac_var in #(
22382      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22383echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22384      esac
22385      case $ac_var in #(
22386      _ | IFS | as_nl) ;; #(
22387      *) $as_unset $ac_var ;;
22388      esac ;;
22389    esac
22390  done
22391
22392  (set) 2>&1 |
22393    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22394    *${as_nl}ac_space=\ *)
22395      # `set' does not quote correctly, so add quotes (double-quote
22396      # substitution turns \\\\ into \\, and sed turns \\ into \).
22397      sed -n \
22398	"s/'/'\\\\''/g;
22399	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22400      ;; #(
22401    *)
22402      # `set' quotes correctly as required by POSIX, so do not add quotes.
22403      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22404      ;;
22405    esac |
22406    sort
22407) |
22408  sed '
22409     /^ac_cv_env_/b end
22410     t clear
22411     :clear
22412     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22413     t end
22414     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22415     :end' >>confcache
22416if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22417  if test -w "$cache_file"; then
22418    test "x$cache_file" != "x/dev/null" &&
22419      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22420echo "$as_me: updating cache $cache_file" >&6;}
22421    cat confcache >$cache_file
22422  else
22423    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22424echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22425  fi
22426fi
22427rm -f confcache
22428
22429test "x$prefix" = xNONE && prefix=$ac_default_prefix
22430# Let make expand exec_prefix.
22431test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22432
22433DEFS=-DHAVE_CONFIG_H
22434
22435ac_libobjs=
22436ac_ltlibobjs=
22437for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22438  # 1. Remove the extension, and $U if already installed.
22439  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22440  ac_i=`echo "$ac_i" | sed "$ac_script"`
22441  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22442  #    will be set to the directory where LIBOBJS objects are built.
22443  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22444  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22445done
22446LIBOBJS=$ac_libobjs
22447
22448LTLIBOBJS=$ac_ltlibobjs
22449
22450
22451if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22452  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22453Usually this means the macro was only invoked conditionally." >&5
22454echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22455Usually this means the macro was only invoked conditionally." >&2;}
22456   { (exit 1); exit 1; }; }
22457fi
22458if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22459  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22460Usually this means the macro was only invoked conditionally." >&5
22461echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22462Usually this means the macro was only invoked conditionally." >&2;}
22463   { (exit 1); exit 1; }; }
22464fi
22465
22466: ${CONFIG_STATUS=./config.status}
22467ac_clean_files_save=$ac_clean_files
22468ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22469{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22470echo "$as_me: creating $CONFIG_STATUS" >&6;}
22471cat >$CONFIG_STATUS <<_ACEOF
22472#! $SHELL
22473# Generated by $as_me.
22474# Run this file to recreate the current configuration.
22475# Compiler output produced by configure, useful for debugging
22476# configure, is in config.log if it exists.
22477
22478debug=false
22479ac_cs_recheck=false
22480ac_cs_silent=false
22481SHELL=\${CONFIG_SHELL-$SHELL}
22482_ACEOF
22483
22484cat >>$CONFIG_STATUS <<\_ACEOF
22485## --------------------- ##
22486## M4sh Initialization.  ##
22487## --------------------- ##
22488
22489# Be Bourne compatible
22490if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22491  emulate sh
22492  NULLCMD=:
22493  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22494  # is contrary to our usage.  Disable this feature.
22495  alias -g '${1+"$@"}'='"$@"'
22496  setopt NO_GLOB_SUBST
22497else
22498  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22499fi
22500BIN_SH=xpg4; export BIN_SH # for Tru64
22501DUALCASE=1; export DUALCASE # for MKS sh
22502
22503
22504# PATH needs CR
22505# Avoid depending upon Character Ranges.
22506as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22507as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22508as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22509as_cr_digits='0123456789'
22510as_cr_alnum=$as_cr_Letters$as_cr_digits
22511
22512# The user is always right.
22513if test "${PATH_SEPARATOR+set}" != set; then
22514  echo "#! /bin/sh" >conf$$.sh
22515  echo  "exit 0"   >>conf$$.sh
22516  chmod +x conf$$.sh
22517  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22518    PATH_SEPARATOR=';'
22519  else
22520    PATH_SEPARATOR=:
22521  fi
22522  rm -f conf$$.sh
22523fi
22524
22525# Support unset when possible.
22526if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22527  as_unset=unset
22528else
22529  as_unset=false
22530fi
22531
22532
22533# IFS
22534# We need space, tab and new line, in precisely that order.  Quoting is
22535# there to prevent editors from complaining about space-tab.
22536# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22537# splitting by setting IFS to empty value.)
22538as_nl='
22539'
22540IFS=" ""	$as_nl"
22541
22542# Find who we are.  Look in the path if we contain no directory separator.
22543case $0 in
22544  *[\\/]* ) as_myself=$0 ;;
22545  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22546for as_dir in $PATH
22547do
22548  IFS=$as_save_IFS
22549  test -z "$as_dir" && as_dir=.
22550  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22551done
22552IFS=$as_save_IFS
22553
22554     ;;
22555esac
22556# We did not find ourselves, most probably we were run as `sh COMMAND'
22557# in which case we are not to be found in the path.
22558if test "x$as_myself" = x; then
22559  as_myself=$0
22560fi
22561if test ! -f "$as_myself"; then
22562  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22563  { (exit 1); exit 1; }
22564fi
22565
22566# Work around bugs in pre-3.0 UWIN ksh.
22567for as_var in ENV MAIL MAILPATH
22568do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22569done
22570PS1='$ '
22571PS2='> '
22572PS4='+ '
22573
22574# NLS nuisances.
22575for as_var in \
22576  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22577  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22578  LC_TELEPHONE LC_TIME
22579do
22580  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22581    eval $as_var=C; export $as_var
22582  else
22583    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22584  fi
22585done
22586
22587# Required to use basename.
22588if expr a : '\(a\)' >/dev/null 2>&1 &&
22589   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22590  as_expr=expr
22591else
22592  as_expr=false
22593fi
22594
22595if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22596  as_basename=basename
22597else
22598  as_basename=false
22599fi
22600
22601
22602# Name of the executable.
22603as_me=`$as_basename -- "$0" ||
22604$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22605	 X"$0" : 'X\(//\)$' \| \
22606	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22607echo X/"$0" |
22608    sed '/^.*\/\([^/][^/]*\)\/*$/{
22609	    s//\1/
22610	    q
22611	  }
22612	  /^X\/\(\/\/\)$/{
22613	    s//\1/
22614	    q
22615	  }
22616	  /^X\/\(\/\).*/{
22617	    s//\1/
22618	    q
22619	  }
22620	  s/.*/./; q'`
22621
22622# CDPATH.
22623$as_unset CDPATH
22624
22625
22626
22627  as_lineno_1=$LINENO
22628  as_lineno_2=$LINENO
22629  test "x$as_lineno_1" != "x$as_lineno_2" &&
22630  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22631
22632  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22633  # uniformly replaced by the line number.  The first 'sed' inserts a
22634  # line-number line after each line using $LINENO; the second 'sed'
22635  # does the real work.  The second script uses 'N' to pair each
22636  # line-number line with the line containing $LINENO, and appends
22637  # trailing '-' during substitution so that $LINENO is not a special
22638  # case at line end.
22639  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22640  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22641  # E. McMahon (1931-1989) for sed's syntax.  :-)
22642  sed -n '
22643    p
22644    /[$]LINENO/=
22645  ' <$as_myself |
22646    sed '
22647      s/[$]LINENO.*/&-/
22648      t lineno
22649      b
22650      :lineno
22651      N
22652      :loop
22653      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22654      t loop
22655      s/-\n.*//
22656    ' >$as_me.lineno &&
22657  chmod +x "$as_me.lineno" ||
22658    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22659   { (exit 1); exit 1; }; }
22660
22661  # Don't try to exec as it changes $[0], causing all sort of problems
22662  # (the dirname of $[0] is not the place where we might find the
22663  # original and so on.  Autoconf is especially sensitive to this).
22664  . "./$as_me.lineno"
22665  # Exit status is that of the last command.
22666  exit
22667}
22668
22669
22670if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22671  as_dirname=dirname
22672else
22673  as_dirname=false
22674fi
22675
22676ECHO_C= ECHO_N= ECHO_T=
22677case `echo -n x` in
22678-n*)
22679  case `echo 'x\c'` in
22680  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22681  *)   ECHO_C='\c';;
22682  esac;;
22683*)
22684  ECHO_N='-n';;
22685esac
22686
22687if expr a : '\(a\)' >/dev/null 2>&1 &&
22688   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22689  as_expr=expr
22690else
22691  as_expr=false
22692fi
22693
22694rm -f conf$$ conf$$.exe conf$$.file
22695if test -d conf$$.dir; then
22696  rm -f conf$$.dir/conf$$.file
22697else
22698  rm -f conf$$.dir
22699  mkdir conf$$.dir
22700fi
22701echo >conf$$.file
22702if ln -s conf$$.file conf$$ 2>/dev/null; then
22703  as_ln_s='ln -s'
22704  # ... but there are two gotchas:
22705  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22706  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22707  # In both cases, we have to default to `cp -p'.
22708  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22709    as_ln_s='cp -p'
22710elif ln conf$$.file conf$$ 2>/dev/null; then
22711  as_ln_s=ln
22712else
22713  as_ln_s='cp -p'
22714fi
22715rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22716rmdir conf$$.dir 2>/dev/null
22717
22718if mkdir -p . 2>/dev/null; then
22719  as_mkdir_p=:
22720else
22721  test -d ./-p && rmdir ./-p
22722  as_mkdir_p=false
22723fi
22724
22725# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
22726# systems may use methods other than mode bits to determine executability.
22727cat >conf$$.file <<_ASEOF
22728#! /bin/sh
22729exit 0
22730_ASEOF
22731chmod +x conf$$.file
22732if test -x conf$$.file >/dev/null 2>&1; then
22733  as_executable_p="test -x"
22734else
22735  as_executable_p=:
22736fi
22737rm -f conf$$.file
22738
22739# Sed expression to map a string onto a valid CPP name.
22740as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22741
22742# Sed expression to map a string onto a valid variable name.
22743as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22744
22745
22746exec 6>&1
22747
22748# Save the log message, to keep $[0] and so on meaningful, and to
22749# report actual input values of CONFIG_FILES etc. instead of their
22750# values after options handling.
22751ac_log="
22752This file was extended by LLVM $as_me 3.4svn, which was
22753generated by GNU Autoconf 2.60.  Invocation command line was
22754
22755  CONFIG_FILES    = $CONFIG_FILES
22756  CONFIG_HEADERS  = $CONFIG_HEADERS
22757  CONFIG_LINKS    = $CONFIG_LINKS
22758  CONFIG_COMMANDS = $CONFIG_COMMANDS
22759  $ $0 $@
22760
22761on `(hostname || uname -n) 2>/dev/null | sed 1q`
22762"
22763
22764_ACEOF
22765
22766cat >>$CONFIG_STATUS <<_ACEOF
22767# Files that config.status was made for.
22768config_files="$ac_config_files"
22769config_headers="$ac_config_headers"
22770config_commands="$ac_config_commands"
22771
22772_ACEOF
22773
22774cat >>$CONFIG_STATUS <<\_ACEOF
22775ac_cs_usage="\
22776\`$as_me' instantiates files from templates according to the
22777current configuration.
22778
22779Usage: $0 [OPTIONS] [FILE]...
22780
22781  -h, --help       print this help, then exit
22782  -V, --version    print version number, then exit
22783  -q, --quiet      do not print progress messages
22784  -d, --debug      don't remove temporary files
22785      --recheck    update $as_me by reconfiguring in the same conditions
22786  --file=FILE[:TEMPLATE]
22787		   instantiate the configuration file FILE
22788  --header=FILE[:TEMPLATE]
22789		   instantiate the configuration header FILE
22790
22791Configuration files:
22792$config_files
22793
22794Configuration headers:
22795$config_headers
22796
22797Configuration commands:
22798$config_commands
22799
22800Report bugs to <bug-autoconf@gnu.org>."
22801
22802_ACEOF
22803cat >>$CONFIG_STATUS <<_ACEOF
22804ac_cs_version="\\
22805LLVM config.status 3.4svn
22806configured by $0, generated by GNU Autoconf 2.60,
22807  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22808
22809Copyright (C) 2006 Free Software Foundation, Inc.
22810This config.status script is free software; the Free Software Foundation
22811gives unlimited permission to copy, distribute and modify it."
22812
22813ac_pwd='$ac_pwd'
22814srcdir='$srcdir'
22815INSTALL='$INSTALL'
22816_ACEOF
22817
22818cat >>$CONFIG_STATUS <<\_ACEOF
22819# If no file are specified by the user, then we need to provide default
22820# value.  By we need to know if files were specified by the user.
22821ac_need_defaults=:
22822while test $# != 0
22823do
22824  case $1 in
22825  --*=*)
22826    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22827    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22828    ac_shift=:
22829    ;;
22830  *)
22831    ac_option=$1
22832    ac_optarg=$2
22833    ac_shift=shift
22834    ;;
22835  esac
22836
22837  case $ac_option in
22838  # Handling of the options.
22839  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22840    ac_cs_recheck=: ;;
22841  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22842    echo "$ac_cs_version"; exit ;;
22843  --debug | --debu | --deb | --de | --d | -d )
22844    debug=: ;;
22845  --file | --fil | --fi | --f )
22846    $ac_shift
22847    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22848    ac_need_defaults=false;;
22849  --header | --heade | --head | --hea )
22850    $ac_shift
22851    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22852    ac_need_defaults=false;;
22853  --he | --h)
22854    # Conflict between --help and --header
22855    { echo "$as_me: error: ambiguous option: $1
22856Try \`$0 --help' for more information." >&2
22857   { (exit 1); exit 1; }; };;
22858  --help | --hel | -h )
22859    echo "$ac_cs_usage"; exit ;;
22860  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22861  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22862    ac_cs_silent=: ;;
22863
22864  # This is an error.
22865  -*) { echo "$as_me: error: unrecognized option: $1
22866Try \`$0 --help' for more information." >&2
22867   { (exit 1); exit 1; }; } ;;
22868
22869  *) ac_config_targets="$ac_config_targets $1"
22870     ac_need_defaults=false ;;
22871
22872  esac
22873  shift
22874done
22875
22876ac_configure_extra_args=
22877
22878if $ac_cs_silent; then
22879  exec 6>/dev/null
22880  ac_configure_extra_args="$ac_configure_extra_args --silent"
22881fi
22882
22883_ACEOF
22884cat >>$CONFIG_STATUS <<_ACEOF
22885if \$ac_cs_recheck; then
22886  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22887  CONFIG_SHELL=$SHELL
22888  export CONFIG_SHELL
22889  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22890fi
22891
22892_ACEOF
22893cat >>$CONFIG_STATUS <<\_ACEOF
22894exec 5>>config.log
22895{
22896  echo
22897  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22898## Running $as_me. ##
22899_ASBOX
22900  echo "$ac_log"
22901} >&5
22902
22903_ACEOF
22904cat >>$CONFIG_STATUS <<_ACEOF
22905#
22906# INIT-COMMANDS
22907#
22908llvm_src="${srcdir}"
22909
22910_ACEOF
22911
22912cat >>$CONFIG_STATUS <<\_ACEOF
22913
22914# Handling of arguments.
22915for ac_config_target in $ac_config_targets
22916do
22917  case $ac_config_target in
22918    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22919    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22920    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22921    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22922    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22923    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22924    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22925    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22926    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22927    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22928    "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22929    "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22930    "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22931    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22932    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22933    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22934    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22935    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22936    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22937    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22938    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22939    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22940    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22941    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22942    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22943    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22944
22945  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22946echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22947   { (exit 1); exit 1; }; };;
22948  esac
22949done
22950
22951
22952# If the user did not use the arguments to specify the items to instantiate,
22953# then the envvar interface is used.  Set only those that are not.
22954# We use the long form for the default assignment because of an extremely
22955# bizarre bug on SunOS 4.1.3.
22956if $ac_need_defaults; then
22957  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22958  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22959  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22960fi
22961
22962# Have a temporary directory for convenience.  Make it in the build tree
22963# simply because there is no reason against having it here, and in addition,
22964# creating and moving files from /tmp can sometimes cause problems.
22965# Hook for its removal unless debugging.
22966# Note that there is a small window in which the directory will not be cleaned:
22967# after its creation but before its name has been assigned to `$tmp'.
22968$debug ||
22969{
22970  tmp=
22971  trap 'exit_status=$?
22972  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22973' 0
22974  trap '{ (exit 1); exit 1; }' 1 2 13 15
22975}
22976# Create a (secure) tmp directory for tmp files.
22977
22978{
22979  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22980  test -n "$tmp" && test -d "$tmp"
22981}  ||
22982{
22983  tmp=./conf$$-$RANDOM
22984  (umask 077 && mkdir "$tmp")
22985} ||
22986{
22987   echo "$me: cannot create a temporary directory in ." >&2
22988   { (exit 1); exit 1; }
22989}
22990
22991#
22992# Set up the sed scripts for CONFIG_FILES section.
22993#
22994
22995# No need to generate the scripts if there are no CONFIG_FILES.
22996# This happens for instance when ./config.status config.h
22997if test -n "$CONFIG_FILES"; then
22998
22999_ACEOF
23000
23001
23002
23003ac_delim='%!_!# '
23004for ac_last_try in false false false false false :; do
23005  cat >conf$$subs.sed <<_ACEOF
23006SHELL!$SHELL$ac_delim
23007PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23008PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23009PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23010PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23011PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23012PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23013exec_prefix!$exec_prefix$ac_delim
23014prefix!$prefix$ac_delim
23015program_transform_name!$program_transform_name$ac_delim
23016bindir!$bindir$ac_delim
23017sbindir!$sbindir$ac_delim
23018libexecdir!$libexecdir$ac_delim
23019datarootdir!$datarootdir$ac_delim
23020datadir!$datadir$ac_delim
23021sysconfdir!$sysconfdir$ac_delim
23022sharedstatedir!$sharedstatedir$ac_delim
23023localstatedir!$localstatedir$ac_delim
23024includedir!$includedir$ac_delim
23025oldincludedir!$oldincludedir$ac_delim
23026docdir!$docdir$ac_delim
23027infodir!$infodir$ac_delim
23028htmldir!$htmldir$ac_delim
23029dvidir!$dvidir$ac_delim
23030pdfdir!$pdfdir$ac_delim
23031psdir!$psdir$ac_delim
23032libdir!$libdir$ac_delim
23033localedir!$localedir$ac_delim
23034mandir!$mandir$ac_delim
23035DEFS!$DEFS$ac_delim
23036ECHO_C!$ECHO_C$ac_delim
23037ECHO_N!$ECHO_N$ac_delim
23038ECHO_T!$ECHO_T$ac_delim
23039LIBS!$LIBS$ac_delim
23040build_alias!$build_alias$ac_delim
23041host_alias!$host_alias$ac_delim
23042target_alias!$target_alias$ac_delim
23043LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23044CC!$CC$ac_delim
23045CFLAGS!$CFLAGS$ac_delim
23046LDFLAGS!$LDFLAGS$ac_delim
23047CPPFLAGS!$CPPFLAGS$ac_delim
23048ac_ct_CC!$ac_ct_CC$ac_delim
23049EXEEXT!$EXEEXT$ac_delim
23050OBJEXT!$OBJEXT$ac_delim
23051CXX!$CXX$ac_delim
23052CXXFLAGS!$CXXFLAGS$ac_delim
23053ac_ct_CXX!$ac_ct_CXX$ac_delim
23054CPP!$CPP$ac_delim
23055subdirs!$subdirs$ac_delim
23056ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23057LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23058build!$build$ac_delim
23059build_cpu!$build_cpu$ac_delim
23060build_vendor!$build_vendor$ac_delim
23061build_os!$build_os$ac_delim
23062host!$host$ac_delim
23063host_cpu!$host_cpu$ac_delim
23064host_vendor!$host_vendor$ac_delim
23065host_os!$host_os$ac_delim
23066target!$target$ac_delim
23067target_cpu!$target_cpu$ac_delim
23068target_vendor!$target_vendor$ac_delim
23069target_os!$target_os$ac_delim
23070OS!$OS$ac_delim
23071HOST_OS!$HOST_OS$ac_delim
23072TARGET_OS!$TARGET_OS$ac_delim
23073LINKALL!$LINKALL$ac_delim
23074NOLINKALL!$NOLINKALL$ac_delim
23075LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23076LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23077ARCH!$ARCH$ac_delim
23078HOST_ARCH!$HOST_ARCH$ac_delim
23079ENDIAN!$ENDIAN$ac_delim
23080GREP!$GREP$ac_delim
23081EGREP!$EGREP$ac_delim
23082LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23083BUILD_CC!$BUILD_CC$ac_delim
23084BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23085BUILD_CXX!$BUILD_CXX$ac_delim
23086CVSBUILD!$CVSBUILD$ac_delim
23087ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23088ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23089ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23090ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23091ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23092ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23093ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23094ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23095DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23096ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23097ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23098EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23099DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23100DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23101KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23102JIT!$JIT$ac_delim
23103_ACEOF
23104
23105  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23106    break
23107  elif $ac_last_try; then
23108    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23109echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23110   { (exit 1); exit 1; }; }
23111  else
23112    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23113  fi
23114done
23115
23116ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23117if test -n "$ac_eof"; then
23118  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23119  ac_eof=`expr $ac_eof + 1`
23120fi
23121
23122cat >>$CONFIG_STATUS <<_ACEOF
23123cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23125_ACEOF
23126sed '
23127s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23128s/^/s,@/; s/!/@,|#_!!_#|/
23129:n
23130t n
23131s/'"$ac_delim"'$/,g/; t
23132s/$/\\/; p
23133N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23134' >>$CONFIG_STATUS <conf$$subs.sed
23135rm -f conf$$subs.sed
23136cat >>$CONFIG_STATUS <<_ACEOF
23137CEOF$ac_eof
23138_ACEOF
23139
23140
23141ac_delim='%!_!# '
23142for ac_last_try in false false false false false :; do
23143  cat >conf$$subs.sed <<_ACEOF
23144TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23145ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23146ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23147LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23148ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23149LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23150ENABLE_PIC!$ENABLE_PIC$ac_delim
23151ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23152ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23153ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23154TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23155LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23156LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23157LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23158LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23159OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23160EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23161EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23162CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23163BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23164INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23165NM!$NM$ac_delim
23166ifGNUmake!$ifGNUmake$ac_delim
23167LN_S!$LN_S$ac_delim
23168CMP!$CMP$ac_delim
23169CP!$CP$ac_delim
23170DATE!$DATE$ac_delim
23171FIND!$FIND$ac_delim
23172MKDIR!$MKDIR$ac_delim
23173MV!$MV$ac_delim
23174RANLIB!$RANLIB$ac_delim
23175AR!$AR$ac_delim
23176RM!$RM$ac_delim
23177SED!$SED$ac_delim
23178TAR!$TAR$ac_delim
23179BINPWD!$BINPWD$ac_delim
23180GRAPHVIZ!$GRAPHVIZ$ac_delim
23181DOT!$DOT$ac_delim
23182FDP!$FDP$ac_delim
23183NEATO!$NEATO$ac_delim
23184TWOPI!$TWOPI$ac_delim
23185CIRCO!$CIRCO$ac_delim
23186GV!$GV$ac_delim
23187DOTTY!$DOTTY$ac_delim
23188XDOT!$XDOT$ac_delim
23189INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23190INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23191INSTALL_DATA!$INSTALL_DATA$ac_delim
23192BZIP2!$BZIP2$ac_delim
23193CAT!$CAT$ac_delim
23194DOXYGEN!$DOXYGEN$ac_delim
23195GROFF!$GROFF$ac_delim
23196GZIPBIN!$GZIPBIN$ac_delim
23197PDFROFF!$PDFROFF$ac_delim
23198ZIP!$ZIP$ac_delim
23199OCAMLC!$OCAMLC$ac_delim
23200OCAMLOPT!$OCAMLOPT$ac_delim
23201OCAMLDEP!$OCAMLDEP$ac_delim
23202OCAMLDOC!$OCAMLDOC$ac_delim
23203GAS!$GAS$ac_delim
23204HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23205INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23206INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23207CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23208CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23209LIBADD_DL!$LIBADD_DL$ac_delim
23210NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23211NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23212COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23213NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23214NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23215PYTHON!$PYTHON$ac_delim
23216USE_UDIS86!$USE_UDIS86$ac_delim
23217USE_OPROFILE!$USE_OPROFILE$ac_delim
23218USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23219XML2CONFIG!$XML2CONFIG$ac_delim
23220LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23221LIBXML2_INC!$LIBXML2_INC$ac_delim
23222CXXCPP!$CXXCPP$ac_delim
23223HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23224HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23225HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23226MMAP_FILE!$MMAP_FILE$ac_delim
23227SHLIBEXT!$SHLIBEXT$ac_delim
23228SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23229LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23230LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23231LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23232LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23233LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23234LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23235LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23236LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23237LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23238BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23239ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23240OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23241_ACEOF
23242
23243  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23244    break
23245  elif $ac_last_try; then
23246    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23247echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23248   { (exit 1); exit 1; }; }
23249  else
23250    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23251  fi
23252done
23253
23254ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23255if test -n "$ac_eof"; then
23256  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23257  ac_eof=`expr $ac_eof + 1`
23258fi
23259
23260cat >>$CONFIG_STATUS <<_ACEOF
23261cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23263_ACEOF
23264sed '
23265s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23266s/^/s,@/; s/!/@,|#_!!_#|/
23267:n
23268t n
23269s/'"$ac_delim"'$/,g/; t
23270s/$/\\/; p
23271N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23272' >>$CONFIG_STATUS <conf$$subs.sed
23273rm -f conf$$subs.sed
23274cat >>$CONFIG_STATUS <<_ACEOF
23275CEOF$ac_eof
23276_ACEOF
23277
23278
23279ac_delim='%!_!# '
23280for ac_last_try in false false false false false :; do
23281  cat >conf$$subs.sed <<_ACEOF
23282ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23283RPATH!$RPATH$ac_delim
23284RDYNAMIC!$RDYNAMIC$ac_delim
23285program_prefix!$program_prefix$ac_delim
23286LIBOBJS!$LIBOBJS$ac_delim
23287LTLIBOBJS!$LTLIBOBJS$ac_delim
23288_ACEOF
23289
23290  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23291    break
23292  elif $ac_last_try; then
23293    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23294echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23295   { (exit 1); exit 1; }; }
23296  else
23297    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23298  fi
23299done
23300
23301ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23302if test -n "$ac_eof"; then
23303  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23304  ac_eof=`expr $ac_eof + 1`
23305fi
23306
23307cat >>$CONFIG_STATUS <<_ACEOF
23308cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23309/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23310_ACEOF
23311sed '
23312s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23313s/^/s,@/; s/!/@,|#_!!_#|/
23314:n
23315t n
23316s/'"$ac_delim"'$/,g/; t
23317s/$/\\/; p
23318N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23319' >>$CONFIG_STATUS <conf$$subs.sed
23320rm -f conf$$subs.sed
23321cat >>$CONFIG_STATUS <<_ACEOF
23322:end
23323s/|#_!!_#|//g
23324CEOF$ac_eof
23325_ACEOF
23326
23327
23328# VPATH may cause trouble with some makes, so we remove $(srcdir),
23329# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23330# trailing colons and then remove the whole line if VPATH becomes empty
23331# (actually we leave an empty line to preserve line numbers).
23332if test "x$srcdir" = x.; then
23333  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23334s/:*\$(srcdir):*/:/
23335s/:*\${srcdir}:*/:/
23336s/:*@srcdir@:*/:/
23337s/^\([^=]*=[	 ]*\):*/\1/
23338s/:*$//
23339s/^[^=]*=[	 ]*$//
23340}'
23341fi
23342
23343cat >>$CONFIG_STATUS <<\_ACEOF
23344fi # test -n "$CONFIG_FILES"
23345
23346
23347for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23348do
23349  case $ac_tag in
23350  :[FHLC]) ac_mode=$ac_tag; continue;;
23351  esac
23352  case $ac_mode$ac_tag in
23353  :[FHL]*:*);;
23354  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23355echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23356   { (exit 1); exit 1; }; };;
23357  :[FH]-) ac_tag=-:-;;
23358  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23359  esac
23360  ac_save_IFS=$IFS
23361  IFS=:
23362  set x $ac_tag
23363  IFS=$ac_save_IFS
23364  shift
23365  ac_file=$1
23366  shift
23367
23368  case $ac_mode in
23369  :L) ac_source=$1;;
23370  :[FH])
23371    ac_file_inputs=
23372    for ac_f
23373    do
23374      case $ac_f in
23375      -) ac_f="$tmp/stdin";;
23376      *) # Look for the file first in the build tree, then in the source tree
23377	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23378	 # because $ac_f cannot contain `:'.
23379	 test -f "$ac_f" ||
23380	   case $ac_f in
23381	   [\\/$]*) false;;
23382	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23383	   esac ||
23384	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23385echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23386   { (exit 1); exit 1; }; };;
23387      esac
23388      ac_file_inputs="$ac_file_inputs $ac_f"
23389    done
23390
23391    # Let's still pretend it is `configure' which instantiates (i.e., don't
23392    # use $as_me), people would be surprised to read:
23393    #    /* config.h.  Generated by config.status.  */
23394    configure_input="Generated from "`IFS=:
23395	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23396    if test x"$ac_file" != x-; then
23397      configure_input="$ac_file.  $configure_input"
23398      { echo "$as_me:$LINENO: creating $ac_file" >&5
23399echo "$as_me: creating $ac_file" >&6;}
23400    fi
23401
23402    case $ac_tag in
23403    *:-:* | *:-) cat >"$tmp/stdin";;
23404    esac
23405    ;;
23406  esac
23407
23408  ac_dir=`$as_dirname -- "$ac_file" ||
23409$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23410	 X"$ac_file" : 'X\(//\)[^/]' \| \
23411	 X"$ac_file" : 'X\(//\)$' \| \
23412	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23413echo X"$ac_file" |
23414    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23415	    s//\1/
23416	    q
23417	  }
23418	  /^X\(\/\/\)[^/].*/{
23419	    s//\1/
23420	    q
23421	  }
23422	  /^X\(\/\/\)$/{
23423	    s//\1/
23424	    q
23425	  }
23426	  /^X\(\/\).*/{
23427	    s//\1/
23428	    q
23429	  }
23430	  s/.*/./; q'`
23431  { as_dir="$ac_dir"
23432  case $as_dir in #(
23433  -*) as_dir=./$as_dir;;
23434  esac
23435  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23436    as_dirs=
23437    while :; do
23438      case $as_dir in #(
23439      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23440      *) as_qdir=$as_dir;;
23441      esac
23442      as_dirs="'$as_qdir' $as_dirs"
23443      as_dir=`$as_dirname -- "$as_dir" ||
23444$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23445	 X"$as_dir" : 'X\(//\)[^/]' \| \
23446	 X"$as_dir" : 'X\(//\)$' \| \
23447	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23448echo X"$as_dir" |
23449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23450	    s//\1/
23451	    q
23452	  }
23453	  /^X\(\/\/\)[^/].*/{
23454	    s//\1/
23455	    q
23456	  }
23457	  /^X\(\/\/\)$/{
23458	    s//\1/
23459	    q
23460	  }
23461	  /^X\(\/\).*/{
23462	    s//\1/
23463	    q
23464	  }
23465	  s/.*/./; q'`
23466      test -d "$as_dir" && break
23467    done
23468    test -z "$as_dirs" || eval "mkdir $as_dirs"
23469  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23470echo "$as_me: error: cannot create directory $as_dir" >&2;}
23471   { (exit 1); exit 1; }; }; }
23472  ac_builddir=.
23473
23474case "$ac_dir" in
23475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23476*)
23477  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23478  # A ".." for each directory in $ac_dir_suffix.
23479  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23480  case $ac_top_builddir_sub in
23481  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23482  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23483  esac ;;
23484esac
23485ac_abs_top_builddir=$ac_pwd
23486ac_abs_builddir=$ac_pwd$ac_dir_suffix
23487# for backward compatibility:
23488ac_top_builddir=$ac_top_build_prefix
23489
23490case $srcdir in
23491  .)  # We are building in place.
23492    ac_srcdir=.
23493    ac_top_srcdir=$ac_top_builddir_sub
23494    ac_abs_top_srcdir=$ac_pwd ;;
23495  [\\/]* | ?:[\\/]* )  # Absolute name.
23496    ac_srcdir=$srcdir$ac_dir_suffix;
23497    ac_top_srcdir=$srcdir
23498    ac_abs_top_srcdir=$srcdir ;;
23499  *) # Relative name.
23500    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23501    ac_top_srcdir=$ac_top_build_prefix$srcdir
23502    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23503esac
23504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23505
23506
23507  case $ac_mode in
23508  :F)
23509  #
23510  # CONFIG_FILE
23511  #
23512
23513  case $INSTALL in
23514  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23515  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23516  esac
23517_ACEOF
23518
23519cat >>$CONFIG_STATUS <<\_ACEOF
23520# If the template does not know about datarootdir, expand it.
23521# FIXME: This hack should be removed a few years after 2.60.
23522ac_datarootdir_hack=; ac_datarootdir_seen=
23523
23524case `sed -n '/datarootdir/ {
23525  p
23526  q
23527}
23528/@datadir@/p
23529/@docdir@/p
23530/@infodir@/p
23531/@localedir@/p
23532/@mandir@/p
23533' $ac_file_inputs` in
23534*datarootdir*) ac_datarootdir_seen=yes;;
23535*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23536  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23537echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23538_ACEOF
23539cat >>$CONFIG_STATUS <<_ACEOF
23540  ac_datarootdir_hack='
23541  s&@datadir@&$datadir&g
23542  s&@docdir@&$docdir&g
23543  s&@infodir@&$infodir&g
23544  s&@localedir@&$localedir&g
23545  s&@mandir@&$mandir&g
23546    s&\\\${datarootdir}&$datarootdir&g' ;;
23547esac
23548_ACEOF
23549
23550# Neutralize VPATH when `$srcdir' = `.'.
23551# Shell code in configure.ac might set extrasub.
23552# FIXME: do we really want to maintain this feature?
23553cat >>$CONFIG_STATUS <<_ACEOF
23554  sed "$ac_vpsub
23555$extrasub
23556_ACEOF
23557cat >>$CONFIG_STATUS <<\_ACEOF
23558:t
23559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23560s&@configure_input@&$configure_input&;t t
23561s&@top_builddir@&$ac_top_builddir_sub&;t t
23562s&@srcdir@&$ac_srcdir&;t t
23563s&@abs_srcdir@&$ac_abs_srcdir&;t t
23564s&@top_srcdir@&$ac_top_srcdir&;t t
23565s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23566s&@builddir@&$ac_builddir&;t t
23567s&@abs_builddir@&$ac_abs_builddir&;t t
23568s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23569s&@INSTALL@&$ac_INSTALL&;t t
23570$ac_datarootdir_hack
23571" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23572
23573test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23574  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23575  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23576  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23577which seems to be undefined.  Please make sure it is defined." >&5
23578echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23579which seems to be undefined.  Please make sure it is defined." >&2;}
23580
23581  rm -f "$tmp/stdin"
23582  case $ac_file in
23583  -) cat "$tmp/out"; rm -f "$tmp/out";;
23584  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23585  esac
23586 ;;
23587  :H)
23588  #
23589  # CONFIG_HEADER
23590  #
23591_ACEOF
23592
23593# Transform confdefs.h into a sed script `conftest.defines', that
23594# substitutes the proper values into config.h.in to produce config.h.
23595rm -f conftest.defines conftest.tail
23596# First, append a space to every undef/define line, to ease matching.
23597echo 's/$/ /' >conftest.defines
23598# Then, protect against being on the right side of a sed subst, or in
23599# an unquoted here document, in config.status.  If some macros were
23600# called several times there might be several #defines for the same
23601# symbol, which is useless.  But do not sort them, since the last
23602# AC_DEFINE must be honored.
23603ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23604# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23605# NAME is the cpp macro being defined, VALUE is the value it is being given.
23606# PARAMS is the parameter list in the macro definition--in most cases, it's
23607# just an empty string.
23608ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
23609ac_dB='\\)[	 (].*,\\1define\\2'
23610ac_dC=' '
23611ac_dD=' ,'
23612
23613uniq confdefs.h |
23614  sed -n '
23615	t rset
23616	:rset
23617	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
23618	t ok
23619	d
23620	:ok
23621	s/[\\&,]/\\&/g
23622	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23623	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23624  ' >>conftest.defines
23625
23626# Remove the space that was appended to ease matching.
23627# Then replace #undef with comments.  This is necessary, for
23628# example, in the case of _POSIX_SOURCE, which is predefined and required
23629# on some systems where configure will not decide to define it.
23630# (The regexp can be short, since the line contains either #define or #undef.)
23631echo 's/ $//
23632s,^[	 #]*u.*,/* & */,' >>conftest.defines
23633
23634# Break up conftest.defines:
23635ac_max_sed_lines=50
23636
23637# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23638# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23639# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23640# et cetera.
23641ac_in='$ac_file_inputs'
23642ac_out='"$tmp/out1"'
23643ac_nxt='"$tmp/out2"'
23644
23645while :
23646do
23647  # Write a here document:
23648    cat >>$CONFIG_STATUS <<_ACEOF
23649    # First, check the format of the line:
23650    cat >"\$tmp/defines.sed" <<\\CEOF
23651/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
23652/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
23653b
23654:def
23655_ACEOF
23656  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23657  echo 'CEOF
23658    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23659  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23660  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23661  grep . conftest.tail >/dev/null || break
23662  rm -f conftest.defines
23663  mv conftest.tail conftest.defines
23664done
23665rm -f conftest.defines conftest.tail
23666
23667echo "ac_result=$ac_in" >>$CONFIG_STATUS
23668cat >>$CONFIG_STATUS <<\_ACEOF
23669  if test x"$ac_file" != x-; then
23670    echo "/* $configure_input  */" >"$tmp/config.h"
23671    cat "$ac_result" >>"$tmp/config.h"
23672    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23673      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23674echo "$as_me: $ac_file is unchanged" >&6;}
23675    else
23676      rm -f $ac_file
23677      mv "$tmp/config.h" $ac_file
23678    fi
23679  else
23680    echo "/* $configure_input  */"
23681    cat "$ac_result"
23682  fi
23683  rm -f "$tmp/out12"
23684 ;;
23685
23686  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23687echo "$as_me: executing $ac_file commands" >&6;}
23688 ;;
23689  esac
23690
23691
23692  case $ac_file$ac_mode in
23693    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23694   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23695    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23696   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23697    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23698   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23699    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23700   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23701    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23702   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23703    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23704   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23705    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23706   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23707    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23708   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23709    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23710   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23711    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23712   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23713    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23714   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23715    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23716   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23717
23718  esac
23719done # for ac_tag
23720
23721
23722{ (exit 0); exit 0; }
23723_ACEOF
23724chmod +x $CONFIG_STATUS
23725ac_clean_files=$ac_clean_files_save
23726
23727
23728# configure is writing to config.log, and then calls config.status.
23729# config.status does its own redirection, appending to config.log.
23730# Unfortunately, on DOS this fails, as config.log is still kept open
23731# by configure, so config.status won't be able to write to it; its
23732# output is simply discarded.  So we exec the FD to /dev/null,
23733# effectively closing config.log, so it can be properly (re)opened and
23734# appended to by config.status.  When coming back to configure, we
23735# need to make the FD available again.
23736if test "$no_create" != yes; then
23737  ac_cs_success=:
23738  ac_config_status_args=
23739  test "$silent" = yes &&
23740    ac_config_status_args="$ac_config_status_args --quiet"
23741  exec 5>/dev/null
23742  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23743  exec 5>>config.log
23744  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23745  # would make configure fail if this is the last instruction.
23746  $ac_cs_success || { (exit 1); exit 1; }
23747fi
23748
23749#
23750# CONFIG_SUBDIRS section.
23751#
23752if test "$no_recursion" != yes; then
23753
23754  # Remove --cache-file and --srcdir arguments so they do not pile up.
23755  ac_sub_configure_args=
23756  ac_prev=
23757  eval "set x $ac_configure_args"
23758  shift
23759  for ac_arg
23760  do
23761    if test -n "$ac_prev"; then
23762      ac_prev=
23763      continue
23764    fi
23765    case $ac_arg in
23766    -cache-file | --cache-file | --cache-fil | --cache-fi \
23767    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23768      ac_prev=cache_file ;;
23769    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23770    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23771    | --c=*)
23772      ;;
23773    --config-cache | -C)
23774      ;;
23775    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23776      ac_prev=srcdir ;;
23777    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23778      ;;
23779    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23780      ac_prev=prefix ;;
23781    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23782      ;;
23783    *)
23784      case $ac_arg in
23785      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23786      esac
23787      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23788    esac
23789  done
23790
23791  # Always prepend --prefix to ensure using the same prefix
23792  # in subdir configurations.
23793  ac_arg="--prefix=$prefix"
23794  case $ac_arg in
23795  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23796  esac
23797  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23798
23799  ac_popdir=`pwd`
23800  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23801
23802    # Do not complain, so a configure script can configure whichever
23803    # parts of a large source tree are present.
23804    test -d "$srcdir/$ac_dir" || continue
23805
23806    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23807    echo "$as_me:$LINENO: $ac_msg" >&5
23808    echo "$ac_msg" >&6
23809    { as_dir="$ac_dir"
23810  case $as_dir in #(
23811  -*) as_dir=./$as_dir;;
23812  esac
23813  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23814    as_dirs=
23815    while :; do
23816      case $as_dir in #(
23817      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23818      *) as_qdir=$as_dir;;
23819      esac
23820      as_dirs="'$as_qdir' $as_dirs"
23821      as_dir=`$as_dirname -- "$as_dir" ||
23822$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23823	 X"$as_dir" : 'X\(//\)[^/]' \| \
23824	 X"$as_dir" : 'X\(//\)$' \| \
23825	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23826echo X"$as_dir" |
23827    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23828	    s//\1/
23829	    q
23830	  }
23831	  /^X\(\/\/\)[^/].*/{
23832	    s//\1/
23833	    q
23834	  }
23835	  /^X\(\/\/\)$/{
23836	    s//\1/
23837	    q
23838	  }
23839	  /^X\(\/\).*/{
23840	    s//\1/
23841	    q
23842	  }
23843	  s/.*/./; q'`
23844      test -d "$as_dir" && break
23845    done
23846    test -z "$as_dirs" || eval "mkdir $as_dirs"
23847  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23848echo "$as_me: error: cannot create directory $as_dir" >&2;}
23849   { (exit 1); exit 1; }; }; }
23850    ac_builddir=.
23851
23852case "$ac_dir" in
23853.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23854*)
23855  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23856  # A ".." for each directory in $ac_dir_suffix.
23857  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23858  case $ac_top_builddir_sub in
23859  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23860  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23861  esac ;;
23862esac
23863ac_abs_top_builddir=$ac_pwd
23864ac_abs_builddir=$ac_pwd$ac_dir_suffix
23865# for backward compatibility:
23866ac_top_builddir=$ac_top_build_prefix
23867
23868case $srcdir in
23869  .)  # We are building in place.
23870    ac_srcdir=.
23871    ac_top_srcdir=$ac_top_builddir_sub
23872    ac_abs_top_srcdir=$ac_pwd ;;
23873  [\\/]* | ?:[\\/]* )  # Absolute name.
23874    ac_srcdir=$srcdir$ac_dir_suffix;
23875    ac_top_srcdir=$srcdir
23876    ac_abs_top_srcdir=$srcdir ;;
23877  *) # Relative name.
23878    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23879    ac_top_srcdir=$ac_top_build_prefix$srcdir
23880    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23881esac
23882ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23883
23884
23885    cd "$ac_dir"
23886
23887    # Check for guested configure; otherwise get Cygnus style configure.
23888    if test -f "$ac_srcdir/configure.gnu"; then
23889      ac_sub_configure=$ac_srcdir/configure.gnu
23890    elif test -f "$ac_srcdir/configure"; then
23891      ac_sub_configure=$ac_srcdir/configure
23892    elif test -f "$ac_srcdir/configure.in"; then
23893      # This should be Cygnus configure.
23894      ac_sub_configure=$ac_aux_dir/configure
23895    else
23896      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23897echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23898      ac_sub_configure=
23899    fi
23900
23901    # The recursion is here.
23902    if test -n "$ac_sub_configure"; then
23903      # Make the cache file name correct relative to the subdirectory.
23904      case $cache_file in
23905      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23906      *) # Relative name.
23907	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23908      esac
23909
23910      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23911echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23912      # The eval makes quoting arguments work.
23913      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23914	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23915	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23916echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23917   { (exit 1); exit 1; }; }
23918    fi
23919
23920    cd "$ac_popdir"
23921  done
23922fi
23923
23924