configure revision 29074ccf6cb00a3cbe32a3b7809d970ecaf8c9bf
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 3.1svn.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2011 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.1svn'
565PACKAGE_STRING='llvm 3.1svn'
566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568ac_unique_file="lib/VMCore/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
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
694ENABLE_DOCS
695ENABLE_DOXYGEN
696ENABLE_THREADS
697ENABLE_PTHREADS
698ENABLE_PIC
699ENABLE_SHARED
700ENABLE_EMBED_STDCXX
701ENABLE_TIMESTAMPS
702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711CLANG_SRC_ROOT
712BINUTILS_INCDIR
713NM
714ifGNUmake
715LN_S
716CMP
717CP
718DATE
719FIND
720MKDIR
721MV
722RANLIB
723AR
724RM
725SED
726TAR
727BINPWD
728GRAPHVIZ
729DOT
730FDP
731NEATO
732TWOPI
733CIRCO
734GV
735DOTTY
736XDOT_PY
737PERL
738HAVE_PERL
739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
743CAT
744DOXYGEN
745GROFF
746GZIPBIN
747POD2HTML
748POD2MAN
749PDFROFF
750RUNTEST
751TCLSH
752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
757GAS
758HAVE_LINK_VERSION_SCRIPT
759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771SHLIBEXT
772SHLIBPATH_VAR
773LLVM_PREFIX
774LLVM_BINDIR
775LLVM_LIBDIR
776LLVM_DATADIR
777LLVM_DOCSDIR
778LLVM_ETCDIR
779LLVM_INCLUDEDIR
780LLVM_INFODIR
781LLVM_MANDIR
782LLVM_CONFIGTIME
783BINDINGS_TO_BUILD
784ALL_BINDINGS
785OCAML_LIBDIR
786ENABLE_VISIBILITY_INLINES_HIDDEN
787RPATH
788RDYNAMIC
789LIBOBJS
790LTLIBOBJS'
791ac_subst_files=''
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798CPPFLAGS
799CXX
800CXXFLAGS
801CCC
802CPP'
803ac_subdirs_all='projects/llvm-gcc
804projects/test-suite
805projects/llvm-test
806projects/poolalloc
807projects/llvm-poolalloc
808projects/sample
809projects/privbracket
810projects/llvm-stacker
811projects/llvm-reopt
812projects/llvm-java
813projects/llvm-tv
814projects/safecode
815projects/llvm-kernel
816tools/polly'
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
843# (The list follows the same order as the GNU Coding Standards.)
844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
852includedir='${prefix}/include'
853oldincludedir='/usr/include'
854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
863
864ac_prev=
865ac_dashdash=
866for ac_option
867do
868  # If the previous option needs an argument, assign it.
869  if test -n "$ac_prev"; then
870    eval $ac_prev=\$ac_option
871    ac_prev=
872    continue
873  fi
874
875  case $ac_option in
876  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877  *)	ac_optarg=yes ;;
878  esac
879
880  # Accept the important Cygnus configure options, so we can diagnose typos.
881
882  case $ac_dashdash$ac_option in
883  --)
884    ac_dashdash=yes ;;
885
886  -bindir | --bindir | --bindi | --bind | --bin | --bi)
887    ac_prev=bindir ;;
888  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889    bindir=$ac_optarg ;;
890
891  -build | --build | --buil | --bui | --bu)
892    ac_prev=build_alias ;;
893  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894    build_alias=$ac_optarg ;;
895
896  -cache-file | --cache-file | --cache-fil | --cache-fi \
897  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898    ac_prev=cache_file ;;
899  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901    cache_file=$ac_optarg ;;
902
903  --config-cache | -C)
904    cache_file=config.cache ;;
905
906  -datadir | --datadir | --datadi | --datad)
907    ac_prev=datadir ;;
908  -datadir=* | --datadir=* | --datadi=* | --datad=*)
909    datadir=$ac_optarg ;;
910
911  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912  | --dataroo | --dataro | --datar)
913    ac_prev=datarootdir ;;
914  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916    datarootdir=$ac_optarg ;;
917
918  -disable-* | --disable-*)
919    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923   { (exit 1); exit 1; }; }
924    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925    eval enable_$ac_feature=no ;;
926
927  -docdir | --docdir | --docdi | --doc | --do)
928    ac_prev=docdir ;;
929  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930    docdir=$ac_optarg ;;
931
932  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933    ac_prev=dvidir ;;
934  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935    dvidir=$ac_optarg ;;
936
937  -enable-* | --enable-*)
938    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942   { (exit 1); exit 1; }; }
943    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944    eval enable_$ac_feature=\$ac_optarg ;;
945
946  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948  | --exec | --exe | --ex)
949    ac_prev=exec_prefix ;;
950  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952  | --exec=* | --exe=* | --ex=*)
953    exec_prefix=$ac_optarg ;;
954
955  -gas | --gas | --ga | --g)
956    # Obsolete; use --with-gas.
957    with_gas=yes ;;
958
959  -help | --help | --hel | --he | -h)
960    ac_init_help=long ;;
961  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962    ac_init_help=recursive ;;
963  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964    ac_init_help=short ;;
965
966  -host | --host | --hos | --ho)
967    ac_prev=host_alias ;;
968  -host=* | --host=* | --hos=* | --ho=*)
969    host_alias=$ac_optarg ;;
970
971  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972    ac_prev=htmldir ;;
973  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974  | --ht=*)
975    htmldir=$ac_optarg ;;
976
977  -includedir | --includedir | --includedi | --included | --include \
978  | --includ | --inclu | --incl | --inc)
979    ac_prev=includedir ;;
980  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981  | --includ=* | --inclu=* | --incl=* | --inc=*)
982    includedir=$ac_optarg ;;
983
984  -infodir | --infodir | --infodi | --infod | --info | --inf)
985    ac_prev=infodir ;;
986  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987    infodir=$ac_optarg ;;
988
989  -libdir | --libdir | --libdi | --libd)
990    ac_prev=libdir ;;
991  -libdir=* | --libdir=* | --libdi=* | --libd=*)
992    libdir=$ac_optarg ;;
993
994  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995  | --libexe | --libex | --libe)
996    ac_prev=libexecdir ;;
997  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998  | --libexe=* | --libex=* | --libe=*)
999    libexecdir=$ac_optarg ;;
1000
1001  -localedir | --localedir | --localedi | --localed | --locale)
1002    ac_prev=localedir ;;
1003  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004    localedir=$ac_optarg ;;
1005
1006  -localstatedir | --localstatedir | --localstatedi | --localstated \
1007  | --localstate | --localstat | --localsta | --localst | --locals)
1008    ac_prev=localstatedir ;;
1009  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011    localstatedir=$ac_optarg ;;
1012
1013  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014    ac_prev=mandir ;;
1015  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016    mandir=$ac_optarg ;;
1017
1018  -nfp | --nfp | --nf)
1019    # Obsolete; use --without-fp.
1020    with_fp=no ;;
1021
1022  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023  | --no-cr | --no-c | -n)
1024    no_create=yes ;;
1025
1026  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028    no_recursion=yes ;;
1029
1030  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032  | --oldin | --oldi | --old | --ol | --o)
1033    ac_prev=oldincludedir ;;
1034  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037    oldincludedir=$ac_optarg ;;
1038
1039  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040    ac_prev=prefix ;;
1041  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042    prefix=$ac_optarg ;;
1043
1044  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045  | --program-pre | --program-pr | --program-p)
1046    ac_prev=program_prefix ;;
1047  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049    program_prefix=$ac_optarg ;;
1050
1051  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052  | --program-suf | --program-su | --program-s)
1053    ac_prev=program_suffix ;;
1054  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056    program_suffix=$ac_optarg ;;
1057
1058  -program-transform-name | --program-transform-name \
1059  | --program-transform-nam | --program-transform-na \
1060  | --program-transform-n | --program-transform- \
1061  | --program-transform | --program-transfor \
1062  | --program-transfo | --program-transf \
1063  | --program-trans | --program-tran \
1064  | --progr-tra | --program-tr | --program-t)
1065    ac_prev=program_transform_name ;;
1066  -program-transform-name=* | --program-transform-name=* \
1067  | --program-transform-nam=* | --program-transform-na=* \
1068  | --program-transform-n=* | --program-transform-=* \
1069  | --program-transform=* | --program-transfor=* \
1070  | --program-transfo=* | --program-transf=* \
1071  | --program-trans=* | --program-tran=* \
1072  | --progr-tra=* | --program-tr=* | --program-t=*)
1073    program_transform_name=$ac_optarg ;;
1074
1075  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076    ac_prev=pdfdir ;;
1077  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078    pdfdir=$ac_optarg ;;
1079
1080  -psdir | --psdir | --psdi | --psd | --ps)
1081    ac_prev=psdir ;;
1082  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083    psdir=$ac_optarg ;;
1084
1085  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086  | -silent | --silent | --silen | --sile | --sil)
1087    silent=yes ;;
1088
1089  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090    ac_prev=sbindir ;;
1091  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092  | --sbi=* | --sb=*)
1093    sbindir=$ac_optarg ;;
1094
1095  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097  | --sharedst | --shareds | --shared | --share | --shar \
1098  | --sha | --sh)
1099    ac_prev=sharedstatedir ;;
1100  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103  | --sha=* | --sh=*)
1104    sharedstatedir=$ac_optarg ;;
1105
1106  -site | --site | --sit)
1107    ac_prev=site ;;
1108  -site=* | --site=* | --sit=*)
1109    site=$ac_optarg ;;
1110
1111  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112    ac_prev=srcdir ;;
1113  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114    srcdir=$ac_optarg ;;
1115
1116  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117  | --syscon | --sysco | --sysc | --sys | --sy)
1118    ac_prev=sysconfdir ;;
1119  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121    sysconfdir=$ac_optarg ;;
1122
1123  -target | --target | --targe | --targ | --tar | --ta | --t)
1124    ac_prev=target_alias ;;
1125  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126    target_alias=$ac_optarg ;;
1127
1128  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129    verbose=yes ;;
1130
1131  -version | --version | --versio | --versi | --vers | -V)
1132    ac_init_version=: ;;
1133
1134  -with-* | --with-*)
1135    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136    # Reject names that are not valid shell variable names.
1137    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138      { echo "$as_me: error: invalid package name: $ac_package" >&2
1139   { (exit 1); exit 1; }; }
1140    ac_package=`echo $ac_package| sed 's/-/_/g'`
1141    eval with_$ac_package=\$ac_optarg ;;
1142
1143  -without-* | --without-*)
1144    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147      { echo "$as_me: error: invalid package name: $ac_package" >&2
1148   { (exit 1); exit 1; }; }
1149    ac_package=`echo $ac_package | sed 's/-/_/g'`
1150    eval with_$ac_package=no ;;
1151
1152  --x)
1153    # Obsolete; use --with-x.
1154    with_x=yes ;;
1155
1156  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157  | --x-incl | --x-inc | --x-in | --x-i)
1158    ac_prev=x_includes ;;
1159  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161    x_includes=$ac_optarg ;;
1162
1163  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165    ac_prev=x_libraries ;;
1166  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168    x_libraries=$ac_optarg ;;
1169
1170  -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172   { (exit 1); exit 1; }; }
1173    ;;
1174
1175  *=*)
1176    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177    # Reject names that are not valid shell variable names.
1178    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180   { (exit 1); exit 1; }; }
1181    eval $ac_envvar=\$ac_optarg
1182    export $ac_envvar ;;
1183
1184  *)
1185    # FIXME: should be removed in autoconf 3.0.
1186    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190    ;;
1191
1192  esac
1193done
1194
1195if test -n "$ac_prev"; then
1196  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197  { echo "$as_me: error: missing argument to $ac_option" >&2
1198   { (exit 1); exit 1; }; }
1199fi
1200
1201# Be sure to have absolute directory names.
1202for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203		datadir sysconfdir sharedstatedir localstatedir includedir \
1204		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205		libdir localedir mandir
1206do
1207  eval ac_val=\$$ac_var
1208  case $ac_val in
1209    [\\/$]* | ?:[\\/]* )  continue;;
1210    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211  esac
1212  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213   { (exit 1); exit 1; }; }
1214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225  if test "x$build_alias" = x; then
1226    cross_compiling=maybe
1227    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228    If a cross compiler is detected then cross compile mode will be used." >&2
1229  elif test "x$build_alias" != "x$host_alias"; then
1230    cross_compiling=yes
1231  fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
1240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243  { echo "$as_me: error: Working directory cannot be determined" >&2
1244   { (exit 1); exit 1; }; }
1245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246  { echo "$as_me: error: pwd does not report name of working directory" >&2
1247   { (exit 1); exit 1; }; }
1248
1249
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252  ac_srcdir_defaulted=yes
1253  # Try the directory containing this script, then the parent directory.
1254  ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256	 X"$0" : 'X\(//\)[^/]' \| \
1257	 X"$0" : 'X\(//\)$' \| \
1258	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
1260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)[^/].*/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\).*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  s/.*/./; q'`
1277  srcdir=$ac_confdir
1278  if test ! -r "$srcdir/$ac_unique_file"; then
1279    srcdir=..
1280  fi
1281else
1282  ac_srcdir_defaulted=no
1283fi
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287   { (exit 1); exit 1; }; }
1288fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
1291	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292   { (exit 1); exit 1; }; }
1293	pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296  srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306  eval ac_env_${ac_var}_value=\$${ac_var}
1307  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
1310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315  # Omit some internal or obsolete options to make the list less imposing.
1316  # This message is too long to be a string in the A/UX 3.1 sh.
1317  cat <<_ACEOF
1318\`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328  -h, --help              display this help and exit
1329      --help=short        display options specific to this package
1330      --help=recursive    display the short help of all the included packages
1331  -V, --version           display version information and exit
1332  -q, --quiet, --silent   do not print \`checking...' messages
1333      --cache-file=FILE   cache test results in FILE [disabled]
1334  -C, --config-cache      alias for \`--cache-file=config.cache'
1335  -n, --no-create         do not create output files
1336      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338Installation directories:
1339  --prefix=PREFIX         install architecture-independent files in PREFIX
1340			  [$ac_default_prefix]
1341  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342			  [PREFIX]
1343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
1352  --bindir=DIR           user executables [EPREFIX/bin]
1353  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354  --libexecdir=DIR       program executables [EPREFIX/libexec]
1355  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358  --libdir=DIR           object code libraries [EPREFIX/lib]
1359  --includedir=DIR       C header files [PREFIX/include]
1360  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363  --infodir=DIR          info documentation [DATAROOTDIR/info]
1364  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365  --mandir=DIR           man documentation [DATAROOTDIR/man]
1366  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1367  --htmldir=DIR          html documentation [DOCDIR]
1368  --dvidir=DIR           dvi documentation [DOCDIR]
1369  --pdfdir=DIR           pdf documentation [DOCDIR]
1370  --psdir=DIR            ps documentation [DOCDIR]
1371_ACEOF
1372
1373  cat <<\_ACEOF
1374
1375System types:
1376  --build=BUILD     configure for building on BUILD [guessed]
1377  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378  --target=TARGET   configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383  case $ac_init_help in
1384     short | recursive ) echo "Configuration of llvm 3.1svn:";;
1385   esac
1386  cat <<\_ACEOF
1387
1388Optional Features:
1389  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391  --enable-polly          Use polly if available (default is YES)
1392  --enable-optimized      Compile with optimizations enabled (default is NO)
1393  --enable-profiling      Compile with profiling enabled (default is NO)
1394  --enable-assertions     Compile with assertion checks enabled (default is
1395                          YES)
1396  --enable-expensive-checks
1397                          Compile with expensive debug checks enabled (default
1398                          is NO)
1399  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1400                          NO)
1401  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1402                          optimization is on and YES if it's off)
1403  --enable-jit            Enable Just In Time Compiling (default is YES)
1404  --enable-docs           Build documents (default is YES)
1405  --enable-doxygen        Build doxygen documentation (default is NO)
1406  --enable-threads        Use threads if available (default is YES)
1407  --enable-pthreads       Use pthreads if available (default is YES)
1408  --enable-pic            Build LLVM with Position Independent Code (default
1409                          is YES)
1410  --enable-shared         Build a shared library and link tools against it
1411                          (default is NO)
1412  --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1413                          Win32 DLL (default is NO)
1414  --enable-timestamps     Enable embedding timestamp information in build
1415                          (default is YES)
1416  --enable-targets        Build specific host targets: all or
1417                          target1,target2,... Valid targets are: host, x86,
1418                          x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419                          xcore, msp430, blackfin, ptx, cbe, and cpp
1420                          (default=all)
1421  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1422                          %a (default is YES)
1423  --enable-bindings       Build specific language bindings:
1424                          all,auto,none,{binding-name} (default=auto)
1425  --enable-libffi         Check for the presence of libffi (default is NO)
1426  --enable-ltdl-install   install libltdl
1427
1428Optional Packages:
1429  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431  --with-optimize-option  Select the compiler options to use for optimized
1432                          builds
1433  --with-extra-options    Specify additional options to compile LLVM with
1434  --with-extra-ld-options Specify additional options to link LLVM with
1435  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1436                          is stdlib)
1437  --with-clang-srcdir     Directory to the out-of-tree Clang source
1438  --with-clang-resource-dir
1439                          Relative directory from the Clang binary for
1440                          resource files
1441  --with-c-include-dirs   Colon separated list of directories clang will
1442                          search for headers
1443  --with-cxx-include-root Directory with the libstdc++ headers.
1444  --with-cxx-include-arch Architecture of the libstdc++ headers.
1445  --with-cxx-include-32bit-dir
1446                          32 bit multilib dir.
1447  --with-cxx-include-64bit-dir
1448                          64 bit multilib directory.
1449  --with-binutils-include Specify path to binutils/include/ containing
1450                          plugin-api.h file for gold plugin.
1451  --with-bug-report-url   Specify the URL where bug reports should be
1452                          submitted (default=http://llvm.org/bugs/)
1453  --with-tclinclude       directory where tcl headers are
1454  --with-udis86=<path>    Use udis86 external x86 disassembler library
1455  --with-oprofile=<prefix>
1456                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464              you have headers in a nonstandard directory <include dir>
1465  CXX         C++ compiler command
1466  CXXFLAGS    C++ compiler flags
1467  CPP         C preprocessor
1468
1469Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations.
1471
1472Report bugs to <llvmbugs@cs.uiuc.edu>.
1473_ACEOF
1474ac_status=$?
1475fi
1476
1477if test "$ac_init_help" = "recursive"; then
1478  # If there are subdirs, report their specific --help.
1479  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480    test -d "$ac_dir" || continue
1481    ac_builddir=.
1482
1483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
1486  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487  # A ".." for each directory in $ac_dir_suffix.
1488  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489  case $ac_top_builddir_sub in
1490  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492  esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
1498
1499case $srcdir in
1500  .)  # We are building in place.
1501    ac_srcdir=.
1502    ac_top_srcdir=$ac_top_builddir_sub
1503    ac_abs_top_srcdir=$ac_pwd ;;
1504  [\\/]* | ?:[\\/]* )  # Absolute name.
1505    ac_srcdir=$srcdir$ac_dir_suffix;
1506    ac_top_srcdir=$srcdir
1507    ac_abs_top_srcdir=$srcdir ;;
1508  *) # Relative name.
1509    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510    ac_top_srcdir=$ac_top_build_prefix$srcdir
1511    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512esac
1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515    cd "$ac_dir" || { ac_status=$?; continue; }
1516    # Check for guested configure.
1517    if test -f "$ac_srcdir/configure.gnu"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520    elif test -f "$ac_srcdir/configure"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure" --help=recursive
1523    else
1524      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525    fi || ac_status=$?
1526    cd "$ac_pwd" || { ac_status=$?; break; }
1527  done
1528fi
1529
1530test -n "$ac_init_help" && exit $ac_status
1531if $ac_init_version; then
1532  cat <<\_ACEOF
1533llvm configure 3.1svn
1534generated by GNU Autoconf 2.60
1535
1536Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538This configure script is free software; the Free Software Foundation
1539gives unlimited permission to copy, distribute and modify it.
1540
1541Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1542_ACEOF
1543  exit
1544fi
1545cat >config.log <<_ACEOF
1546This file contains any messages produced by compilers while
1547running configure, to aid debugging if configure makes a mistake.
1548
1549It was created by llvm $as_me 3.1svn, which was
1550generated by GNU Autoconf 2.60.  Invocation command line was
1551
1552  $ $0 $@
1553
1554_ACEOF
1555exec 5>>config.log
1556{
1557cat <<_ASUNAME
1558## --------- ##
1559## Platform. ##
1560## --------- ##
1561
1562hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566uname -v = `(uname -v) 2>/dev/null || echo unknown`
1567
1568/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1570
1571/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1572/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1573/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1575/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1576/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1577/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1578
1579_ASUNAME
1580
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584  IFS=$as_save_IFS
1585  test -z "$as_dir" && as_dir=.
1586  echo "PATH: $as_dir"
1587done
1588IFS=$as_save_IFS
1589
1590} >&5
1591
1592cat >&5 <<_ACEOF
1593
1594
1595## ----------- ##
1596## Core tests. ##
1597## ----------- ##
1598
1599_ACEOF
1600
1601
1602# Keep a trace of the command line.
1603# Strip out --no-create and --no-recursion so they do not pile up.
1604# Strip out --silent because we don't want to record it for future runs.
1605# Also quote any args containing shell meta-characters.
1606# Make two passes to allow for proper duplicate-argument suppression.
1607ac_configure_args=
1608ac_configure_args0=
1609ac_configure_args1=
1610ac_must_keep_next=false
1611for ac_pass in 1 2
1612do
1613  for ac_arg
1614  do
1615    case $ac_arg in
1616    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618    | -silent | --silent | --silen | --sile | --sil)
1619      continue ;;
1620    *\'*)
1621      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622    esac
1623    case $ac_pass in
1624    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1625    2)
1626      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627      if test $ac_must_keep_next = true; then
1628	ac_must_keep_next=false # Got value, back to normal.
1629      else
1630	case $ac_arg in
1631	  *=* | --config-cache | -C | -disable-* | --disable-* \
1632	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634	  | -with-* | --with-* | -without-* | --without-* | --x)
1635	    case "$ac_configure_args0 " in
1636	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637	    esac
1638	    ;;
1639	  -* ) ac_must_keep_next=true ;;
1640	esac
1641      fi
1642      ac_configure_args="$ac_configure_args '$ac_arg'"
1643      ;;
1644    esac
1645  done
1646done
1647$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1649
1650# When interrupted or exit'd, cleanup temporary files, and complete
1651# config.log.  We remove comments because anyway the quotes in there
1652# would cause problems or look ugly.
1653# WARNING: Use '\'' to represent an apostrophe within the trap.
1654# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655trap 'exit_status=$?
1656  # Save into config.log some information that might help in debugging.
1657  {
1658    echo
1659
1660    cat <<\_ASBOX
1661## ---------------- ##
1662## Cache variables. ##
1663## ---------------- ##
1664_ASBOX
1665    echo
1666    # The following way of writing the cache mishandles newlines in values,
1667(
1668  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669    eval ac_val=\$$ac_var
1670    case $ac_val in #(
1671    *${as_nl}*)
1672      case $ac_var in #(
1673      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675      esac
1676      case $ac_var in #(
1677      _ | IFS | as_nl) ;; #(
1678      *) $as_unset $ac_var ;;
1679      esac ;;
1680    esac
1681  done
1682  (set) 2>&1 |
1683    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684    *${as_nl}ac_space=\ *)
1685      sed -n \
1686	"s/'\''/'\''\\\\'\'''\''/g;
1687	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688      ;; #(
1689    *)
1690      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1691      ;;
1692    esac |
1693    sort
1694)
1695    echo
1696
1697    cat <<\_ASBOX
1698## ----------------- ##
1699## Output variables. ##
1700## ----------------- ##
1701_ASBOX
1702    echo
1703    for ac_var in $ac_subst_vars
1704    do
1705      eval ac_val=\$$ac_var
1706      case $ac_val in
1707      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1708      esac
1709      echo "$ac_var='\''$ac_val'\''"
1710    done | sort
1711    echo
1712
1713    if test -n "$ac_subst_files"; then
1714      cat <<\_ASBOX
1715## ------------------- ##
1716## File substitutions. ##
1717## ------------------- ##
1718_ASBOX
1719      echo
1720      for ac_var in $ac_subst_files
1721      do
1722	eval ac_val=\$$ac_var
1723	case $ac_val in
1724	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725	esac
1726	echo "$ac_var='\''$ac_val'\''"
1727      done | sort
1728      echo
1729    fi
1730
1731    if test -s confdefs.h; then
1732      cat <<\_ASBOX
1733## ----------- ##
1734## confdefs.h. ##
1735## ----------- ##
1736_ASBOX
1737      echo
1738      cat confdefs.h
1739      echo
1740    fi
1741    test "$ac_signal" != 0 &&
1742      echo "$as_me: caught signal $ac_signal"
1743    echo "$as_me: exit $exit_status"
1744  } >&5
1745  rm -f core *.core core.conftest.* &&
1746    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747    exit $exit_status
1748' 0
1749for ac_signal in 1 2 13 15; do
1750  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751done
1752ac_signal=0
1753
1754# confdefs.h avoids OS command line length limits that DEFS can exceed.
1755rm -f -r conftest* confdefs.h
1756
1757# Predefined preprocessor variables.
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_NAME "$PACKAGE_NAME"
1761_ACEOF
1762
1763
1764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766_ACEOF
1767
1768
1769cat >>confdefs.h <<_ACEOF
1770#define PACKAGE_VERSION "$PACKAGE_VERSION"
1771_ACEOF
1772
1773
1774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_STRING "$PACKAGE_STRING"
1776_ACEOF
1777
1778
1779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781_ACEOF
1782
1783
1784# Let the site file select an alternate cache file if it wants to.
1785# Prefer explicitly selected file to automatically selected ones.
1786if test -n "$CONFIG_SITE"; then
1787  set x "$CONFIG_SITE"
1788elif test "x$prefix" != xNONE; then
1789  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1790else
1791  set x "$ac_default_prefix/share/config.site" \
1792	"$ac_default_prefix/etc/config.site"
1793fi
1794shift
1795for ac_site_file
1796do
1797  if test -r "$ac_site_file"; then
1798    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799echo "$as_me: loading site script $ac_site_file" >&6;}
1800    sed 's/^/| /' "$ac_site_file" >&5
1801    . "$ac_site_file"
1802  fi
1803done
1804
1805if test -r "$cache_file"; then
1806  # Some versions of bash will fail to source /dev/null (special
1807  # files actually), so we avoid doing that.
1808  if test -f "$cache_file"; then
1809    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810echo "$as_me: loading cache $cache_file" >&6;}
1811    case $cache_file in
1812      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813      *)                      . "./$cache_file";;
1814    esac
1815  fi
1816else
1817  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818echo "$as_me: creating cache $cache_file" >&6;}
1819  >$cache_file
1820fi
1821
1822# Check that the precious variables saved in the cache have kept the same
1823# value.
1824ac_cache_corrupted=false
1825for ac_var in $ac_precious_vars; do
1826  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827  eval ac_new_set=\$ac_env_${ac_var}_set
1828  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829  eval ac_new_val=\$ac_env_${ac_var}_value
1830  case $ac_old_set,$ac_new_set in
1831    set,)
1832      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834      ac_cache_corrupted=: ;;
1835    ,set)
1836      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838      ac_cache_corrupted=: ;;
1839    ,);;
1840    *)
1841      if test "x$ac_old_val" != "x$ac_new_val"; then
1842	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1845echo "$as_me:   former value:  $ac_old_val" >&2;}
1846	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1847echo "$as_me:   current value: $ac_new_val" >&2;}
1848	ac_cache_corrupted=:
1849      fi;;
1850  esac
1851  # Pass precious variables to config.status.
1852  if test "$ac_new_set" = set; then
1853    case $ac_new_val in
1854    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855    *) ac_arg=$ac_var=$ac_new_val ;;
1856    esac
1857    case " $ac_configure_args " in
1858      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1859      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860    esac
1861  fi
1862done
1863if $ac_cache_corrupted; then
1864  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868   { (exit 1); exit 1; }; }
1869fi
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895ac_ext=c
1896ac_cpp='$CPP $CPPFLAGS'
1897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901
1902
1903LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1904
1905
1906
1907
1908
1909
1910
1911ac_aux_dir=
1912for ac_dir in autoconf "$srcdir"/autoconf; do
1913  if test -f "$ac_dir/install-sh"; then
1914    ac_aux_dir=$ac_dir
1915    ac_install_sh="$ac_aux_dir/install-sh -c"
1916    break
1917  elif test -f "$ac_dir/install.sh"; then
1918    ac_aux_dir=$ac_dir
1919    ac_install_sh="$ac_aux_dir/install.sh -c"
1920    break
1921  elif test -f "$ac_dir/shtool"; then
1922    ac_aux_dir=$ac_dir
1923    ac_install_sh="$ac_aux_dir/shtool install -c"
1924    break
1925  fi
1926done
1927if test -z "$ac_aux_dir"; then
1928  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930   { (exit 1); exit 1; }; }
1931fi
1932
1933# These three variables are undocumented and unsupported,
1934# and are intended to be withdrawn in a future Autoconf release.
1935# They can cause serious problems if a builder's source tree is in a directory
1936# whose full name contains unusual characters.
1937ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1938ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1939ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1940
1941
1942
1943if test ${srcdir} != "." ; then
1944  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947   { (exit 1); exit 1; }; }
1948  fi
1949fi
1950
1951ac_ext=c
1952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956if test -n "$ac_tool_prefix"; then
1957  for ac_prog in clang llvm-gcc gcc
1958  do
1959    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963if test "${ac_cv_prog_CC+set}" = set; then
1964  echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966  if test -n "$CC"; then
1967  ac_cv_prog_CC="$CC" # Let the user override the test.
1968else
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972  IFS=$as_save_IFS
1973  test -z "$as_dir" && as_dir=.
1974  for ac_exec_ext in '' $ac_executable_extensions; do
1975  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978    break 2
1979  fi
1980done
1981done
1982IFS=$as_save_IFS
1983
1984fi
1985fi
1986CC=$ac_cv_prog_CC
1987if test -n "$CC"; then
1988  { echo "$as_me:$LINENO: result: $CC" >&5
1989echo "${ECHO_T}$CC" >&6; }
1990else
1991  { echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6; }
1993fi
1994
1995
1996    test -n "$CC" && break
1997  done
1998fi
1999if test -z "$CC"; then
2000  ac_ct_CC=$CC
2001  for ac_prog in clang llvm-gcc gcc
2002do
2003  # Extract the first word of "$ac_prog", so it can be a program name with args.
2004set dummy $ac_prog; ac_word=$2
2005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008  echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010  if test -n "$ac_ct_CC"; then
2011  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016  IFS=$as_save_IFS
2017  test -z "$as_dir" && as_dir=.
2018  for ac_exec_ext in '' $ac_executable_extensions; do
2019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020    ac_cv_prog_ac_ct_CC="$ac_prog"
2021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022    break 2
2023  fi
2024done
2025done
2026IFS=$as_save_IFS
2027
2028fi
2029fi
2030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
2032  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6; }
2034else
2035  { echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6; }
2037fi
2038
2039
2040  test -n "$ac_ct_CC" && break
2041done
2042
2043  if test "x$ac_ct_CC" = x; then
2044    CC=""
2045  else
2046    case $cross_compiling:$ac_tool_warned in
2047yes:)
2048{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049whose name does not start with the host triplet.  If you think this
2050configuration is useful to you, please write to autoconf@gnu.org." >&5
2051echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052whose name does not start with the host triplet.  If you think this
2053configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2054ac_tool_warned=yes ;;
2055esac
2056    CC=$ac_ct_CC
2057  fi
2058fi
2059
2060
2061test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: no acceptable C compiler found in \$PATH
2064See \`config.log' for more details." >&2;}
2065   { (exit 1); exit 1; }; }
2066
2067# Provide some information about the compiler.
2068echo "$as_me:$LINENO: checking for C compiler version" >&5
2069ac_compiler=`set X $ac_compile; echo $2`
2070{ (ac_try="$ac_compiler --version >&5"
2071case "(($ac_try" in
2072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073  *) ac_try_echo=$ac_try;;
2074esac
2075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076  (eval "$ac_compiler --version >&5") 2>&5
2077  ac_status=$?
2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079  (exit $ac_status); }
2080{ (ac_try="$ac_compiler -v >&5"
2081case "(($ac_try" in
2082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083  *) ac_try_echo=$ac_try;;
2084esac
2085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086  (eval "$ac_compiler -v >&5") 2>&5
2087  ac_status=$?
2088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089  (exit $ac_status); }
2090{ (ac_try="$ac_compiler -V >&5"
2091case "(($ac_try" in
2092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093  *) ac_try_echo=$ac_try;;
2094esac
2095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096  (eval "$ac_compiler -V >&5") 2>&5
2097  ac_status=$?
2098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099  (exit $ac_status); }
2100
2101cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h.  */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
2106/* end confdefs.h.  */
2107
2108int
2109main ()
2110{
2111
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116ac_clean_files_save=$ac_clean_files
2117ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118# Try to create an executable without -o first, disregard a.out.
2119# It will help us diagnose broken compilers, and finding out an intuition
2120# of exeext.
2121{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2124#
2125# List of possible output files, starting from the most likely.
2126# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127# only as a last resort.  b.out is created by i960 compilers.
2128ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2129#
2130# The IRIX 6 linker writes into existing files which may not be
2131# executable, retaining their permissions.  Remove them first so a
2132# subsequent execution test works.
2133ac_rmfiles=
2134for ac_file in $ac_files
2135do
2136  case $ac_file in
2137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2139  esac
2140done
2141rm -f $ac_rmfiles
2142
2143if { (ac_try="$ac_link_default"
2144case "(($ac_try" in
2145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146  *) ac_try_echo=$ac_try;;
2147esac
2148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149  (eval "$ac_link_default") 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2156# so that the user can short-circuit this test for compilers unknown to
2157# Autoconf.
2158for ac_file in $ac_files
2159do
2160  test -f "$ac_file" || continue
2161  case $ac_file in
2162    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2163	;;
2164    [ab].out )
2165	# We found the default executable, but exeext='' is most
2166	# certainly right.
2167	break;;
2168    *.* )
2169        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2170	then :; else
2171	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172	fi
2173	# We set ac_cv_exeext here because the later test for it is not
2174	# safe: cross compilers may not add the suffix if given an `-o'
2175	# argument, so we may need to know it at that point already.
2176	# Even if this section looks crufty: it has the advantage of
2177	# actually working.
2178	break;;
2179    * )
2180	break;;
2181  esac
2182done
2183test "$ac_cv_exeext" = no && ac_cv_exeext=
2184
2185else
2186  echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190See \`config.log' for more details." >&5
2191echo "$as_me: error: C compiler cannot create executables
2192See \`config.log' for more details." >&2;}
2193   { (exit 77); exit 77; }; }
2194fi
2195
2196ac_exeext=$ac_cv_exeext
2197{ echo "$as_me:$LINENO: result: $ac_file" >&5
2198echo "${ECHO_T}$ac_file" >&6; }
2199
2200# Check that the compiler produces executables we can run.  If not, either
2201# the compiler is broken, or we cross compile.
2202{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205# If not cross compiling, check that we can run a simple program.
2206if test "$cross_compiling" != yes; then
2207  if { ac_try='./$ac_file'
2208  { (case "(($ac_try" in
2209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210  *) ac_try_echo=$ac_try;;
2211esac
2212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213  (eval "$ac_try") 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; }; then
2217    cross_compiling=no
2218  else
2219    if test "$cross_compiling" = maybe; then
2220	cross_compiling=yes
2221    else
2222	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223If you meant to cross compile, use \`--host'.
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&2;}
2228   { (exit 1); exit 1; }; }
2229    fi
2230  fi
2231fi
2232{ echo "$as_me:$LINENO: result: yes" >&5
2233echo "${ECHO_T}yes" >&6; }
2234
2235rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236ac_clean_files=$ac_clean_files_save
2237# Check that the compiler produces executables we can run.  If not, either
2238# the compiler is broken, or we cross compile.
2239{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242echo "${ECHO_T}$cross_compiling" >&6; }
2243
2244{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246if { (ac_try="$ac_link"
2247case "(($ac_try" in
2248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249  *) ac_try_echo=$ac_try;;
2250esac
2251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252  (eval "$ac_link") 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; then
2256  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2258# work properly (i.e., refer to `conftest.exe'), while it won't with
2259# `rm'.
2260for ac_file in conftest.exe conftest conftest.*; do
2261  test -f "$ac_file" || continue
2262  case $ac_file in
2263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265	  break;;
2266    * ) break;;
2267  esac
2268done
2269else
2270  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271See \`config.log' for more details." >&5
2272echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273See \`config.log' for more details." >&2;}
2274   { (exit 1); exit 1; }; }
2275fi
2276
2277rm -f conftest$ac_cv_exeext
2278{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279echo "${ECHO_T}$ac_cv_exeext" >&6; }
2280
2281rm -f conftest.$ac_ext
2282EXEEXT=$ac_cv_exeext
2283ac_exeext=$EXEEXT
2284{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286if test "${ac_cv_objext+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h.  */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
2294/* end confdefs.h.  */
2295
2296int
2297main ()
2298{
2299
2300  ;
2301  return 0;
2302}
2303_ACEOF
2304rm -f conftest.o conftest.obj
2305if { (ac_try="$ac_compile"
2306case "(($ac_try" in
2307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308  *) ac_try_echo=$ac_try;;
2309esac
2310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311  (eval "$ac_compile") 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; then
2315  for ac_file in conftest.o conftest.obj conftest.*; do
2316  test -f "$ac_file" || continue;
2317  case $ac_file in
2318    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320       break;;
2321  esac
2322done
2323else
2324  echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330See \`config.log' for more details." >&2;}
2331   { (exit 1); exit 1; }; }
2332fi
2333
2334rm -f conftest.$ac_cv_objext conftest.$ac_ext
2335fi
2336{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337echo "${ECHO_T}$ac_cv_objext" >&6; }
2338OBJEXT=$ac_cv_objext
2339ac_objext=$OBJEXT
2340{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343  echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345  cat >conftest.$ac_ext <<_ACEOF
2346/* confdefs.h.  */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h.  */
2351
2352int
2353main ()
2354{
2355#ifndef __GNUC__
2356       choke me
2357#endif
2358
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363rm -f conftest.$ac_objext
2364if { (ac_try="$ac_compile"
2365case "(($ac_try" in
2366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367  *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370  (eval "$ac_compile") 2>conftest.er1
2371  ac_status=$?
2372  grep -v '^ *+' conftest.er1 >conftest.err
2373  rm -f conftest.er1
2374  cat conftest.err >&5
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); } &&
2377	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378  { (case "(($ac_try" in
2379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380  *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383  (eval "$ac_try") 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; } &&
2387	 { ac_try='test -s conftest.$ac_objext'
2388  { (case "(($ac_try" in
2389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390  *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393  (eval "$ac_try") 2>&5
2394  ac_status=$?
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); }; }; then
2397  ac_compiler_gnu=yes
2398else
2399  echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402	ac_compiler_gnu=no
2403fi
2404
2405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406ac_cv_c_compiler_gnu=$ac_compiler_gnu
2407
2408fi
2409{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411GCC=`test $ac_compiler_gnu = yes && echo yes`
2412ac_test_CFLAGS=${CFLAGS+set}
2413ac_save_CFLAGS=$CFLAGS
2414{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416if test "${ac_cv_prog_cc_g+set}" = set; then
2417  echo $ECHO_N "(cached) $ECHO_C" >&6
2418else
2419  ac_save_c_werror_flag=$ac_c_werror_flag
2420   ac_c_werror_flag=yes
2421   ac_cv_prog_cc_g=no
2422   CFLAGS="-g"
2423   cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h.  */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h.  */
2429
2430int
2431main ()
2432{
2433
2434  ;
2435  return 0;
2436}
2437_ACEOF
2438rm -f conftest.$ac_objext
2439if { (ac_try="$ac_compile"
2440case "(($ac_try" in
2441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442  *) ac_try_echo=$ac_try;;
2443esac
2444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445  (eval "$ac_compile") 2>conftest.er1
2446  ac_status=$?
2447  grep -v '^ *+' conftest.er1 >conftest.err
2448  rm -f conftest.er1
2449  cat conftest.err >&5
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); } &&
2452	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453  { (case "(($ac_try" in
2454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455  *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458  (eval "$ac_try") 2>&5
2459  ac_status=$?
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); }; } &&
2462	 { ac_try='test -s conftest.$ac_objext'
2463  { (case "(($ac_try" in
2464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465  *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468  (eval "$ac_try") 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; }; then
2472  ac_cv_prog_cc_g=yes
2473else
2474  echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477	CFLAGS=""
2478      cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h.  */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h.  */
2484
2485int
2486main ()
2487{
2488
2489  ;
2490  return 0;
2491}
2492_ACEOF
2493rm -f conftest.$ac_objext
2494if { (ac_try="$ac_compile"
2495case "(($ac_try" in
2496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497  *) ac_try_echo=$ac_try;;
2498esac
2499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500  (eval "$ac_compile") 2>conftest.er1
2501  ac_status=$?
2502  grep -v '^ *+' conftest.er1 >conftest.err
2503  rm -f conftest.er1
2504  cat conftest.err >&5
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); } &&
2507	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508  { (case "(($ac_try" in
2509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510  *) ac_try_echo=$ac_try;;
2511esac
2512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513  (eval "$ac_try") 2>&5
2514  ac_status=$?
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); }; } &&
2517	 { ac_try='test -s conftest.$ac_objext'
2518  { (case "(($ac_try" in
2519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520  *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523  (eval "$ac_try") 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; }; then
2527  :
2528else
2529  echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532	ac_c_werror_flag=$ac_save_c_werror_flag
2533	 CFLAGS="-g"
2534	 cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h.  */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
2539/* end confdefs.h.  */
2540
2541int
2542main ()
2543{
2544
2545  ;
2546  return 0;
2547}
2548_ACEOF
2549rm -f conftest.$ac_objext
2550if { (ac_try="$ac_compile"
2551case "(($ac_try" in
2552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553  *) ac_try_echo=$ac_try;;
2554esac
2555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556  (eval "$ac_compile") 2>conftest.er1
2557  ac_status=$?
2558  grep -v '^ *+' conftest.er1 >conftest.err
2559  rm -f conftest.er1
2560  cat conftest.err >&5
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } &&
2563	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2564  { (case "(($ac_try" in
2565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566  *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569  (eval "$ac_try") 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; } &&
2573	 { ac_try='test -s conftest.$ac_objext'
2574  { (case "(($ac_try" in
2575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576  *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579  (eval "$ac_try") 2>&5
2580  ac_status=$?
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); }; }; then
2583  ac_cv_prog_cc_g=yes
2584else
2585  echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588
2589fi
2590
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592fi
2593
2594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595fi
2596
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598   ac_c_werror_flag=$ac_save_c_werror_flag
2599fi
2600{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602if test "$ac_test_CFLAGS" = set; then
2603  CFLAGS=$ac_save_CFLAGS
2604elif test $ac_cv_prog_cc_g = yes; then
2605  if test "$GCC" = yes; then
2606    CFLAGS="-g -O2"
2607  else
2608    CFLAGS="-g"
2609  fi
2610else
2611  if test "$GCC" = yes; then
2612    CFLAGS="-O2"
2613  else
2614    CFLAGS=
2615  fi
2616fi
2617{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_cc_c89+set}" = set; then
2620  echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622  ac_cv_prog_cc_c89=no
2623ac_save_CC=$CC
2624cat >conftest.$ac_ext <<_ACEOF
2625/* confdefs.h.  */
2626_ACEOF
2627cat confdefs.h >>conftest.$ac_ext
2628cat >>conftest.$ac_ext <<_ACEOF
2629/* end confdefs.h.  */
2630#include <stdarg.h>
2631#include <stdio.h>
2632#include <sys/types.h>
2633#include <sys/stat.h>
2634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2635struct buf { int x; };
2636FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637static char *e (p, i)
2638     char **p;
2639     int i;
2640{
2641  return p[i];
2642}
2643static char *f (char * (*g) (char **, int), char **p, ...)
2644{
2645  char *s;
2646  va_list v;
2647  va_start (v,p);
2648  s = g (p, va_arg (v,int));
2649  va_end (v);
2650  return s;
2651}
2652
2653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2654   function prototypes and stuff, but not '\xHH' hex character constants.
2655   These don't provoke an error unfortunately, instead are silently treated
2656   as 'x'.  The following induces an error, until -std is added to get
2657   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2658   array size at least.  It's necessary to write '\x00'==0 to get something
2659   that's true only with -std.  */
2660int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661
2662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663   inside strings and character constants.  */
2664#define FOO(x) 'x'
2665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2666
2667int test (int i, double x);
2668struct s1 {int (*f) (int a);};
2669struct s2 {int (*f) (double a);};
2670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2671int argc;
2672char **argv;
2673int
2674main ()
2675{
2676return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2677  ;
2678  return 0;
2679}
2680_ACEOF
2681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2683do
2684  CC="$ac_save_CC $ac_arg"
2685  rm -f conftest.$ac_objext
2686if { (ac_try="$ac_compile"
2687case "(($ac_try" in
2688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689  *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692  (eval "$ac_compile") 2>conftest.er1
2693  ac_status=$?
2694  grep -v '^ *+' conftest.er1 >conftest.err
2695  rm -f conftest.er1
2696  cat conftest.err >&5
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); } &&
2699	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700  { (case "(($ac_try" in
2701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702  *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705  (eval "$ac_try") 2>&5
2706  ac_status=$?
2707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708  (exit $ac_status); }; } &&
2709	 { ac_try='test -s conftest.$ac_objext'
2710  { (case "(($ac_try" in
2711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712  *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715  (eval "$ac_try") 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; }; then
2719  ac_cv_prog_cc_c89=$ac_arg
2720else
2721  echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724
2725fi
2726
2727rm -f core conftest.err conftest.$ac_objext
2728  test "x$ac_cv_prog_cc_c89" != "xno" && break
2729done
2730rm -f conftest.$ac_ext
2731CC=$ac_save_CC
2732
2733fi
2734# AC_CACHE_VAL
2735case "x$ac_cv_prog_cc_c89" in
2736  x)
2737    { echo "$as_me:$LINENO: result: none needed" >&5
2738echo "${ECHO_T}none needed" >&6; } ;;
2739  xno)
2740    { echo "$as_me:$LINENO: result: unsupported" >&5
2741echo "${ECHO_T}unsupported" >&6; } ;;
2742  *)
2743    CC="$CC $ac_cv_prog_cc_c89"
2744    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2746esac
2747
2748
2749ac_ext=c
2750ac_cpp='$CPP $CPPFLAGS'
2751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754
2755ac_ext=cpp
2756ac_cpp='$CXXCPP $CPPFLAGS'
2757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760if test -z "$CXX"; then
2761  if test -n "$CCC"; then
2762    CXX=$CCC
2763  else
2764    if test -n "$ac_tool_prefix"; then
2765  for ac_prog in clang++ llvm-g++ g++
2766  do
2767    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771if test "${ac_cv_prog_CXX+set}" = set; then
2772  echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774  if test -n "$CXX"; then
2775  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782  for ac_exec_ext in '' $ac_executable_extensions; do
2783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794CXX=$ac_cv_prog_CXX
2795if test -n "$CXX"; then
2796  { echo "$as_me:$LINENO: result: $CXX" >&5
2797echo "${ECHO_T}$CXX" >&6; }
2798else
2799  { echo "$as_me:$LINENO: result: no" >&5
2800echo "${ECHO_T}no" >&6; }
2801fi
2802
2803
2804    test -n "$CXX" && break
2805  done
2806fi
2807if test -z "$CXX"; then
2808  ac_ct_CXX=$CXX
2809  for ac_prog in clang++ llvm-g++ g++
2810do
2811  # Extract the first word of "$ac_prog", so it can be a program name with args.
2812set dummy $ac_prog; ac_word=$2
2813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  if test -n "$ac_ct_CXX"; then
2819  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826  for ac_exec_ext in '' $ac_executable_extensions; do
2827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828    ac_cv_prog_ac_ct_CXX="$ac_prog"
2829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839if test -n "$ac_ct_CXX"; then
2840  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841echo "${ECHO_T}$ac_ct_CXX" >&6; }
2842else
2843  { echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6; }
2845fi
2846
2847
2848  test -n "$ac_ct_CXX" && break
2849done
2850
2851  if test "x$ac_ct_CXX" = x; then
2852    CXX="g++"
2853  else
2854    case $cross_compiling:$ac_tool_warned in
2855yes:)
2856{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857whose name does not start with the host triplet.  If you think this
2858configuration is useful to you, please write to autoconf@gnu.org." >&5
2859echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet.  If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862ac_tool_warned=yes ;;
2863esac
2864    CXX=$ac_ct_CXX
2865  fi
2866fi
2867
2868  fi
2869fi
2870# Provide some information about the compiler.
2871echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872ac_compiler=`set X $ac_compile; echo $2`
2873{ (ac_try="$ac_compiler --version >&5"
2874case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879  (eval "$ac_compiler --version >&5") 2>&5
2880  ac_status=$?
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); }
2883{ (ac_try="$ac_compiler -v >&5"
2884case "(($ac_try" in
2885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886  *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889  (eval "$ac_compiler -v >&5") 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }
2893{ (ac_try="$ac_compiler -V >&5"
2894case "(($ac_try" in
2895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896  *) ac_try_echo=$ac_try;;
2897esac
2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899  (eval "$ac_compiler -V >&5") 2>&5
2900  ac_status=$?
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); }
2903
2904{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907  echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909  cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h.  */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h.  */
2915
2916int
2917main ()
2918{
2919#ifndef __GNUC__
2920       choke me
2921#endif
2922
2923  ;
2924  return 0;
2925}
2926_ACEOF
2927rm -f conftest.$ac_objext
2928if { (ac_try="$ac_compile"
2929case "(($ac_try" in
2930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931  *) ac_try_echo=$ac_try;;
2932esac
2933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934  (eval "$ac_compile") 2>conftest.er1
2935  ac_status=$?
2936  grep -v '^ *+' conftest.er1 >conftest.err
2937  rm -f conftest.er1
2938  cat conftest.err >&5
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); } &&
2941	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942  { (case "(($ac_try" in
2943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944  *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947  (eval "$ac_try") 2>&5
2948  ac_status=$?
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }; } &&
2951	 { ac_try='test -s conftest.$ac_objext'
2952  { (case "(($ac_try" in
2953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954  *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957  (eval "$ac_try") 2>&5
2958  ac_status=$?
2959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960  (exit $ac_status); }; }; then
2961  ac_compiler_gnu=yes
2962else
2963  echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966	ac_compiler_gnu=no
2967fi
2968
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2971
2972fi
2973{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975GXX=`test $ac_compiler_gnu = yes && echo yes`
2976ac_test_CXXFLAGS=${CXXFLAGS+set}
2977ac_save_CXXFLAGS=$CXXFLAGS
2978{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980if test "${ac_cv_prog_cxx_g+set}" = set; then
2981  echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984   ac_cxx_werror_flag=yes
2985   ac_cv_prog_cxx_g=no
2986   CXXFLAGS="-g"
2987   cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993
2994int
2995main ()
2996{
2997
2998  ;
2999  return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (ac_try="$ac_compile"
3004case "(($ac_try" in
3005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006  *) ac_try_echo=$ac_try;;
3007esac
3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009  (eval "$ac_compile") 2>conftest.er1
3010  ac_status=$?
3011  grep -v '^ *+' conftest.er1 >conftest.err
3012  rm -f conftest.er1
3013  cat conftest.err >&5
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); } &&
3016	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017  { (case "(($ac_try" in
3018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019  *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022  (eval "$ac_try") 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; } &&
3026	 { ac_try='test -s conftest.$ac_objext'
3027  { (case "(($ac_try" in
3028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029  *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032  (eval "$ac_try") 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }; }; then
3036  ac_cv_prog_cxx_g=yes
3037else
3038  echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041	CXXFLAGS=""
3042      cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h.  */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h.  */
3048
3049int
3050main ()
3051{
3052
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext
3058if { (ac_try="$ac_compile"
3059case "(($ac_try" in
3060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061  *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064  (eval "$ac_compile") 2>conftest.er1
3065  ac_status=$?
3066  grep -v '^ *+' conftest.er1 >conftest.err
3067  rm -f conftest.er1
3068  cat conftest.err >&5
3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070  (exit $ac_status); } &&
3071	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072  { (case "(($ac_try" in
3073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074  *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077  (eval "$ac_try") 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }; } &&
3081	 { ac_try='test -s conftest.$ac_objext'
3082  { (case "(($ac_try" in
3083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084  *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087  (eval "$ac_try") 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3097	 CXXFLAGS="-g"
3098	 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h.  */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h.  */
3104
3105int
3106main ()
3107{
3108
3109  ;
3110  return 0;
3111}
3112_ACEOF
3113rm -f conftest.$ac_objext
3114if { (ac_try="$ac_compile"
3115case "(($ac_try" in
3116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117  *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120  (eval "$ac_compile") 2>conftest.er1
3121  ac_status=$?
3122  grep -v '^ *+' conftest.er1 >conftest.err
3123  rm -f conftest.er1
3124  cat conftest.err >&5
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); } &&
3127	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3128  { (case "(($ac_try" in
3129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130  *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133  (eval "$ac_try") 2>&5
3134  ac_status=$?
3135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136  (exit $ac_status); }; } &&
3137	 { ac_try='test -s conftest.$ac_objext'
3138  { (case "(($ac_try" in
3139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140  *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143  (eval "$ac_try") 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; }; then
3147  ac_cv_prog_cxx_g=yes
3148else
3149  echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153fi
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3163fi
3164{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166if test "$ac_test_CXXFLAGS" = set; then
3167  CXXFLAGS=$ac_save_CXXFLAGS
3168elif test $ac_cv_prog_cxx_g = yes; then
3169  if test "$GXX" = yes; then
3170    CXXFLAGS="-g -O2"
3171  else
3172    CXXFLAGS="-g"
3173  fi
3174else
3175  if test "$GXX" = yes; then
3176    CXXFLAGS="-O2"
3177  else
3178    CXXFLAGS=
3179  fi
3180fi
3181ac_ext=c
3182ac_cpp='$CPP $CPPFLAGS'
3183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187ac_ext=c
3188ac_cpp='$CPP $CPPFLAGS'
3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194# On Suns, sometimes $CPP names a directory.
3195if test -n "$CPP" && test -d "$CPP"; then
3196  CPP=
3197fi
3198if test -z "$CPP"; then
3199  if test "${ac_cv_prog_CPP+set}" = set; then
3200  echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
3202      # Double quotes because CPP needs to be expanded
3203    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3204    do
3205      ac_preproc_ok=false
3206for ac_c_preproc_warn_flag in '' yes
3207do
3208  # Use a header file that comes with gcc, so configuring glibc
3209  # with a fresh cross-compiler works.
3210  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211  # <limits.h> exists even on freestanding compilers.
3212  # On the NeXT, cc -E runs the code through the compiler's parser,
3213  # not just through cpp. "Syntax error" is here to catch this case.
3214  cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h.  */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h.  */
3220#ifdef __STDC__
3221# include <limits.h>
3222#else
3223# include <assert.h>
3224#endif
3225		     Syntax error
3226_ACEOF
3227if { (ac_try="$ac_cpp conftest.$ac_ext"
3228case "(($ac_try" in
3229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230  *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234  ac_status=$?
3235  grep -v '^ *+' conftest.er1 >conftest.err
3236  rm -f conftest.er1
3237  cat conftest.err >&5
3238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239  (exit $ac_status); } >/dev/null; then
3240  if test -s conftest.err; then
3241    ac_cpp_err=$ac_c_preproc_warn_flag
3242    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3243  else
3244    ac_cpp_err=
3245  fi
3246else
3247  ac_cpp_err=yes
3248fi
3249if test -z "$ac_cpp_err"; then
3250  :
3251else
3252  echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255  # Broken: fails on valid input.
3256continue
3257fi
3258
3259rm -f conftest.err conftest.$ac_ext
3260
3261  # OK, works on sane cases.  Now check whether nonexistent headers
3262  # can be detected and how.
3263  cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h.  */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h.  */
3269#include <ac_nonexistent.h>
3270_ACEOF
3271if { (ac_try="$ac_cpp conftest.$ac_ext"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278  ac_status=$?
3279  grep -v '^ *+' conftest.er1 >conftest.err
3280  rm -f conftest.er1
3281  cat conftest.err >&5
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); } >/dev/null; then
3284  if test -s conftest.err; then
3285    ac_cpp_err=$ac_c_preproc_warn_flag
3286    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3287  else
3288    ac_cpp_err=
3289  fi
3290else
3291  ac_cpp_err=yes
3292fi
3293if test -z "$ac_cpp_err"; then
3294  # Broken: success on invalid input.
3295continue
3296else
3297  echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300  # Passes both tests.
3301ac_preproc_ok=:
3302break
3303fi
3304
3305rm -f conftest.err conftest.$ac_ext
3306
3307done
3308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309rm -f conftest.err conftest.$ac_ext
3310if $ac_preproc_ok; then
3311  break
3312fi
3313
3314    done
3315    ac_cv_prog_CPP=$CPP
3316
3317fi
3318  CPP=$ac_cv_prog_CPP
3319else
3320  ac_cv_prog_CPP=$CPP
3321fi
3322{ echo "$as_me:$LINENO: result: $CPP" >&5
3323echo "${ECHO_T}$CPP" >&6; }
3324ac_preproc_ok=false
3325for ac_c_preproc_warn_flag in '' yes
3326do
3327  # Use a header file that comes with gcc, so configuring glibc
3328  # with a fresh cross-compiler works.
3329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330  # <limits.h> exists even on freestanding compilers.
3331  # On the NeXT, cc -E runs the code through the compiler's parser,
3332  # not just through cpp. "Syntax error" is here to catch this case.
3333  cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h.  */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h.  */
3339#ifdef __STDC__
3340# include <limits.h>
3341#else
3342# include <assert.h>
3343#endif
3344		     Syntax error
3345_ACEOF
3346if { (ac_try="$ac_cpp conftest.$ac_ext"
3347case "(($ac_try" in
3348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349  *) ac_try_echo=$ac_try;;
3350esac
3351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3353  ac_status=$?
3354  grep -v '^ *+' conftest.er1 >conftest.err
3355  rm -f conftest.er1
3356  cat conftest.err >&5
3357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358  (exit $ac_status); } >/dev/null; then
3359  if test -s conftest.err; then
3360    ac_cpp_err=$ac_c_preproc_warn_flag
3361    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362  else
3363    ac_cpp_err=
3364  fi
3365else
3366  ac_cpp_err=yes
3367fi
3368if test -z "$ac_cpp_err"; then
3369  :
3370else
3371  echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
3374  # Broken: fails on valid input.
3375continue
3376fi
3377
3378rm -f conftest.err conftest.$ac_ext
3379
3380  # OK, works on sane cases.  Now check whether nonexistent headers
3381  # can be detected and how.
3382  cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h.  */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h.  */
3388#include <ac_nonexistent.h>
3389_ACEOF
3390if { (ac_try="$ac_cpp conftest.$ac_ext"
3391case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397  ac_status=$?
3398  grep -v '^ *+' conftest.er1 >conftest.err
3399  rm -f conftest.er1
3400  cat conftest.err >&5
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); } >/dev/null; then
3403  if test -s conftest.err; then
3404    ac_cpp_err=$ac_c_preproc_warn_flag
3405    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406  else
3407    ac_cpp_err=
3408  fi
3409else
3410  ac_cpp_err=yes
3411fi
3412if test -z "$ac_cpp_err"; then
3413  # Broken: success on invalid input.
3414continue
3415else
3416  echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
3419  # Passes both tests.
3420ac_preproc_ok=:
3421break
3422fi
3423
3424rm -f conftest.err conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.err conftest.$ac_ext
3429if $ac_preproc_ok; then
3430  :
3431else
3432  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433See \`config.log' for more details." >&5
3434echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435See \`config.log' for more details." >&2;}
3436   { (exit 1); exit 1; }; }
3437fi
3438
3439ac_ext=c
3440ac_cpp='$CPP $CPPFLAGS'
3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445
3446
3447
3448if test -d ${srcdir}/projects/llvm-gcc ; then
3449  subdirs="$subdirs projects/llvm-gcc"
3450
3451fi
3452
3453if test -d ${srcdir}/projects/test-suite ; then
3454  subdirs="$subdirs projects/test-suite"
3455
3456fi
3457
3458if test -d ${srcdir}/projects/llvm-test ; then
3459  subdirs="$subdirs projects/llvm-test"
3460
3461fi
3462
3463if test -d ${srcdir}/projects/poolalloc ; then
3464  subdirs="$subdirs projects/poolalloc"
3465
3466fi
3467
3468if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469  subdirs="$subdirs projects/llvm-poolalloc"
3470
3471fi
3472
3473for i in `ls ${srcdir}/projects`
3474do
3475  if test -d ${srcdir}/projects/${i} ; then
3476    case ${i} in
3477      sample)       subdirs="$subdirs projects/sample"
3478    ;;
3479      privbracket)  subdirs="$subdirs projects/privbracket"
3480 ;;
3481      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3482 ;;
3483      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3484;;
3485      llvm-java)    subdirs="$subdirs projects/llvm-java"
3486 ;;
3487      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3488   ;;
3489      safecode)     subdirs="$subdirs projects/safecode"
3490 ;;
3491      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3492 ;;
3493      llvm-gcc)       ;;
3494      test-suite)     ;;
3495      llvm-test)      ;;
3496      poolalloc)      ;;
3497      llvm-poolalloc) ;;
3498      *)
3499        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3501        ;;
3502    esac
3503  fi
3504done
3505
3506# Check whether --enable-polly was given.
3507if test "${enable_polly+set}" = set; then
3508  enableval=$enable_polly;
3509else
3510  enableval=default
3511fi
3512
3513case "$enableval" in
3514  yes) ENABLE_POLLY=1
3515 ;;
3516  no)  ENABLE_POLLY=0
3517 ;;
3518  default) ENABLE_POLLY=1
3519 ;;
3520  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522   { (exit 1); exit 1; }; } ;;
3523esac
3524
3525
3526if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3527  LLVM_HAS_POLLY=1
3528
3529  subdirs="$subdirs tools/polly"
3530
3531fi
3532
3533
3534# Make sure we can run config.sub.
3535$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538   { (exit 1); exit 1; }; }
3539
3540{ echo "$as_me:$LINENO: checking build system type" >&5
3541echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542if test "${ac_cv_build+set}" = set; then
3543  echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545  ac_build_alias=$build_alias
3546test "x$ac_build_alias" = x &&
3547  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548test "x$ac_build_alias" = x &&
3549  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551   { (exit 1); exit 1; }; }
3552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555   { (exit 1); exit 1; }; }
3556
3557fi
3558{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559echo "${ECHO_T}$ac_cv_build" >&6; }
3560case $ac_cv_build in
3561*-*-*) ;;
3562*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563echo "$as_me: error: invalid value of canonical build" >&2;}
3564   { (exit 1); exit 1; }; };;
3565esac
3566build=$ac_cv_build
3567ac_save_IFS=$IFS; IFS='-'
3568set x $ac_cv_build
3569shift
3570build_cpu=$1
3571build_vendor=$2
3572shift; shift
3573# Remember, the first character of IFS is used to create $*,
3574# except with old shells:
3575build_os=$*
3576IFS=$ac_save_IFS
3577case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3578
3579
3580{ echo "$as_me:$LINENO: checking host system type" >&5
3581echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582if test "${ac_cv_host+set}" = set; then
3583  echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585  if test "x$host_alias" = x; then
3586  ac_cv_host=$ac_cv_build
3587else
3588  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591   { (exit 1); exit 1; }; }
3592fi
3593
3594fi
3595{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596echo "${ECHO_T}$ac_cv_host" >&6; }
3597case $ac_cv_host in
3598*-*-*) ;;
3599*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600echo "$as_me: error: invalid value of canonical host" >&2;}
3601   { (exit 1); exit 1; }; };;
3602esac
3603host=$ac_cv_host
3604ac_save_IFS=$IFS; IFS='-'
3605set x $ac_cv_host
3606shift
3607host_cpu=$1
3608host_vendor=$2
3609shift; shift
3610# Remember, the first character of IFS is used to create $*,
3611# except with old shells:
3612host_os=$*
3613IFS=$ac_save_IFS
3614case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3615
3616
3617{ echo "$as_me:$LINENO: checking target system type" >&5
3618echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619if test "${ac_cv_target+set}" = set; then
3620  echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622  if test "x$target_alias" = x; then
3623  ac_cv_target=$ac_cv_host
3624else
3625  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628   { (exit 1); exit 1; }; }
3629fi
3630
3631fi
3632{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633echo "${ECHO_T}$ac_cv_target" >&6; }
3634case $ac_cv_target in
3635*-*-*) ;;
3636*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637echo "$as_me: error: invalid value of canonical target" >&2;}
3638   { (exit 1); exit 1; }; };;
3639esac
3640target=$ac_cv_target
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_target
3643shift
3644target_cpu=$1
3645target_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649target_os=$*
3650IFS=$ac_save_IFS
3651case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3652
3653
3654# The aliases save the names the user supplied, while $host etc.
3655# will get canonicalized.
3656test -n "$target_alias" &&
3657  test "$program_prefix$program_suffix$program_transform_name" = \
3658    NONENONEs,x,x, &&
3659  program_prefix=${target_alias}-
3660
3661{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663if test "${llvm_cv_os_type+set}" = set; then
3664  echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666  case $host in
3667  *-*-aix*)
3668    llvm_cv_link_all_option="-Wl,--whole-archive"
3669    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670    llvm_cv_os_type="AIX"
3671    llvm_cv_platform_type="Unix" ;;
3672  *-*-irix*)
3673    llvm_cv_link_all_option="-Wl,--whole-archive"
3674    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675    llvm_cv_os_type="IRIX"
3676    llvm_cv_platform_type="Unix" ;;
3677  *-*-cygwin*)
3678    llvm_cv_link_all_option="-Wl,--whole-archive"
3679    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680    llvm_cv_os_type="Cygwin"
3681    llvm_cv_platform_type="Unix" ;;
3682  *-*-darwin*)
3683    llvm_cv_link_all_option="-Wl,-all_load"
3684    llvm_cv_no_link_all_option="-Wl,-noall_load"
3685    llvm_cv_os_type="Darwin"
3686    llvm_cv_platform_type="Unix" ;;
3687  *-*-minix*)
3688    llvm_cv_link_all_option="-Wl,-all_load"
3689    llvm_cv_no_link_all_option="-Wl,-noall_load"
3690    llvm_cv_os_type="Minix"
3691    llvm_cv_platform_type="Unix" ;;
3692  *-*-freebsd*)
3693    llvm_cv_link_all_option="-Wl,--whole-archive"
3694    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695    llvm_cv_os_type="FreeBSD"
3696    llvm_cv_platform_type="Unix" ;;
3697  *-*-openbsd*)
3698    llvm_cv_link_all_option="-Wl,--whole-archive"
3699    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700    llvm_cv_os_type="OpenBSD"
3701    llvm_cv_platform_type="Unix" ;;
3702  *-*-netbsd*)
3703    llvm_cv_link_all_option="-Wl,--whole-archive"
3704    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705    llvm_cv_os_type="NetBSD"
3706    llvm_cv_platform_type="Unix" ;;
3707  *-*-dragonfly*)
3708    llvm_cv_link_all_option="-Wl,--whole-archive"
3709    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710    llvm_cv_os_type="DragonFly"
3711    llvm_cv_platform_type="Unix" ;;
3712  *-*-hpux*)
3713    llvm_cv_link_all_option="-Wl,--whole-archive"
3714    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715    llvm_cv_os_type="HP-UX"
3716    llvm_cv_platform_type="Unix" ;;
3717  *-*-interix*)
3718    llvm_cv_link_all_option="-Wl,--whole-archive"
3719    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720    llvm_cv_os_type="Interix"
3721    llvm_cv_platform_type="Unix" ;;
3722  *-*-linux*)
3723    llvm_cv_link_all_option="-Wl,--whole-archive"
3724    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725    llvm_cv_os_type="Linux"
3726    llvm_cv_platform_type="Unix" ;;
3727  *-*-solaris*)
3728    llvm_cv_link_all_option="-Wl,-z,allextract"
3729    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730    llvm_cv_os_type="SunOS"
3731    llvm_cv_platform_type="Unix" ;;
3732  *-*-auroraux*)
3733    llvm_cv_link_all_option="-Wl,-z,allextract"
3734    llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735    llvm_cv_os_type="AuroraUX"
3736    llvm_cv_platform_type="Unix" ;;
3737  *-*-win32*)
3738    llvm_cv_link_all_option="-Wl,--whole-archive"
3739    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740    llvm_cv_os_type="Win32"
3741    llvm_cv_platform_type="Win32" ;;
3742  *-*-mingw*)
3743    llvm_cv_link_all_option="-Wl,--whole-archive"
3744    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745    llvm_cv_os_type="MingW"
3746    llvm_cv_platform_type="Win32" ;;
3747  *-*-haiku*)
3748    llvm_cv_link_all_option="-Wl,--whole-archive"
3749    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750    llvm_cv_os_type="Haiku"
3751    llvm_cv_platform_type="Unix" ;;
3752  *-unknown-eabi*)
3753    llvm_cv_link_all_option="-Wl,--whole-archive"
3754    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755    llvm_cv_os_type="Freestanding"
3756    llvm_cv_platform_type="Unix" ;;
3757  *-unknown-elf*)
3758    llvm_cv_link_all_option="-Wl,--whole-archive"
3759    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760    llvm_cv_os_type="Freestanding"
3761    llvm_cv_platform_type="Unix" ;;
3762  *)
3763    llvm_cv_link_all_option=""
3764    llvm_cv_no_link_all_option=""
3765    llvm_cv_os_type="Unknown"
3766    llvm_cv_platform_type="Unknown" ;;
3767esac
3768fi
3769{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3771
3772{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774if test "${llvm_cv_target_os_type+set}" = set; then
3775  echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777  case $target in
3778  *-*-aix*)
3779    llvm_cv_target_os_type="AIX" ;;
3780  *-*-irix*)
3781    llvm_cv_target_os_type="IRIX" ;;
3782  *-*-cygwin*)
3783    llvm_cv_target_os_type="Cygwin" ;;
3784  *-*-darwin*)
3785    llvm_cv_target_os_type="Darwin" ;;
3786  *-*-minix*)
3787    llvm_cv_target_os_type="Minix" ;;
3788  *-*-freebsd*)
3789    llvm_cv_target_os_type="FreeBSD" ;;
3790  *-*-openbsd*)
3791    llvm_cv_target_os_type="OpenBSD" ;;
3792  *-*-netbsd*)
3793    llvm_cv_target_os_type="NetBSD" ;;
3794  *-*-dragonfly*)
3795    llvm_cv_target_os_type="DragonFly" ;;
3796  *-*-hpux*)
3797    llvm_cv_target_os_type="HP-UX" ;;
3798  *-*-interix*)
3799    llvm_cv_target_os_type="Interix" ;;
3800  *-*-linux*)
3801    llvm_cv_target_os_type="Linux" ;;
3802  *-*-solaris*)
3803    llvm_cv_target_os_type="SunOS" ;;
3804  *-*-auroraux*)
3805    llvm_cv_target_os_type="AuroraUX" ;;
3806  *-*-win32*)
3807    llvm_cv_target_os_type="Win32" ;;
3808  *-*-mingw*)
3809    llvm_cv_target_os_type="MingW" ;;
3810  *-*-haiku*)
3811    llvm_cv_target_os_type="Haiku" ;;
3812  *-*-rtems*)
3813    llvm_cv_target_os_type="RTEMS" ;;
3814  *-*-nacl*)
3815    llvm_cv_target_os_type="NativeClient" ;;
3816  *-unknown-eabi*)
3817    llvm_cv_target_os_type="Freestanding" ;;
3818  *)
3819    llvm_cv_target_os_type="Unknown" ;;
3820esac
3821fi
3822{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3824
3825if test "$llvm_cv_os_type" = "Unknown" ; then
3826  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828   { (exit 1); exit 1; }; }
3829fi
3830
3831OS=$llvm_cv_os_type
3832
3833HOST_OS=$llvm_cv_os_type
3834
3835TARGET_OS=$llvm_cv_target_os_type
3836
3837
3838LINKALL=$llvm_cv_link_all_option
3839
3840NOLINKALL=$llvm_cv_no_link_all_option
3841
3842
3843case $llvm_cv_platform_type in
3844  Unix)
3845
3846cat >>confdefs.h <<\_ACEOF
3847#define LLVM_ON_UNIX 1
3848_ACEOF
3849
3850    LLVM_ON_UNIX=1
3851
3852    LLVM_ON_WIN32=0
3853
3854    ;;
3855  Win32)
3856
3857cat >>confdefs.h <<\_ACEOF
3858#define LLVM_ON_WIN32 1
3859_ACEOF
3860
3861    LLVM_ON_UNIX=0
3862
3863    LLVM_ON_WIN32=1
3864
3865    ;;
3866esac
3867
3868{ echo "$as_me:$LINENO: checking target architecture" >&5
3869echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870if test "${llvm_cv_target_arch+set}" = set; then
3871  echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873  case $target in
3874  i?86-*)                 llvm_cv_target_arch="x86" ;;
3875  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3876  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3877  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3878  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3879  arm*-*)                 llvm_cv_target_arch="ARM" ;;
3880  mips-*)                 llvm_cv_target_arch="Mips" ;;
3881  xcore-*)                llvm_cv_target_arch="XCore" ;;
3882  msp430-*)               llvm_cv_target_arch="MSP430" ;;
3883  bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
3884  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3885  ptx-*)                  llvm_cv_target_arch="PTX" ;;
3886  *)                      llvm_cv_target_arch="Unknown" ;;
3887esac
3888fi
3889{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3890echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3891
3892if test "$llvm_cv_target_arch" = "Unknown" ; then
3893  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3894echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3895fi
3896
3897# Determine the LLVM native architecture for the target
3898case "$llvm_cv_target_arch" in
3899    x86)     LLVM_NATIVE_ARCH="X86" ;;
3900    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3901    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3902esac
3903
3904ARCH=$llvm_cv_target_arch
3905
3906
3907
3908
3909{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3910echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3911if test "${ac_cv_path_GREP+set}" = set; then
3912  echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914  # Extract the first word of "grep ggrep" to use in msg output
3915if test -z "$GREP"; then
3916set dummy grep ggrep; ac_prog_name=$2
3917if test "${ac_cv_path_GREP+set}" = set; then
3918  echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
3920  ac_path_GREP_found=false
3921# Loop through the user's path and test for each of PROGNAME-LIST
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3924do
3925  IFS=$as_save_IFS
3926  test -z "$as_dir" && as_dir=.
3927  for ac_prog in grep ggrep; do
3928  for ac_exec_ext in '' $ac_executable_extensions; do
3929    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3930    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3931    # Check for GNU ac_path_GREP and select it if it is found.
3932  # Check for GNU $ac_path_GREP
3933case `"$ac_path_GREP" --version 2>&1` in
3934*GNU*)
3935  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3936*)
3937  ac_count=0
3938  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3939  while :
3940  do
3941    cat "conftest.in" "conftest.in" >"conftest.tmp"
3942    mv "conftest.tmp" "conftest.in"
3943    cp "conftest.in" "conftest.nl"
3944    echo 'GREP' >> "conftest.nl"
3945    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3946    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3947    ac_count=`expr $ac_count + 1`
3948    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3949      # Best one so far, save it but keep looking for a better one
3950      ac_cv_path_GREP="$ac_path_GREP"
3951      ac_path_GREP_max=$ac_count
3952    fi
3953    # 10*(2^10) chars as input seems more than enough
3954    test $ac_count -gt 10 && break
3955  done
3956  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3957esac
3958
3959
3960    $ac_path_GREP_found && break 3
3961  done
3962done
3963
3964done
3965IFS=$as_save_IFS
3966
3967
3968fi
3969
3970GREP="$ac_cv_path_GREP"
3971if test -z "$GREP"; then
3972  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3973echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3974   { (exit 1); exit 1; }; }
3975fi
3976
3977else
3978  ac_cv_path_GREP=$GREP
3979fi
3980
3981
3982fi
3983{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3984echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3985 GREP="$ac_cv_path_GREP"
3986
3987
3988{ echo "$as_me:$LINENO: checking for egrep" >&5
3989echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3990if test "${ac_cv_path_EGREP+set}" = set; then
3991  echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3994   then ac_cv_path_EGREP="$GREP -E"
3995   else
3996     # Extract the first word of "egrep" to use in msg output
3997if test -z "$EGREP"; then
3998set dummy egrep; ac_prog_name=$2
3999if test "${ac_cv_path_EGREP+set}" = set; then
4000  echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002  ac_path_EGREP_found=false
4003# Loop through the user's path and test for each of PROGNAME-LIST
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4006do
4007  IFS=$as_save_IFS
4008  test -z "$as_dir" && as_dir=.
4009  for ac_prog in egrep; do
4010  for ac_exec_ext in '' $ac_executable_extensions; do
4011    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4012    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4013    # Check for GNU ac_path_EGREP and select it if it is found.
4014  # Check for GNU $ac_path_EGREP
4015case `"$ac_path_EGREP" --version 2>&1` in
4016*GNU*)
4017  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4018*)
4019  ac_count=0
4020  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4021  while :
4022  do
4023    cat "conftest.in" "conftest.in" >"conftest.tmp"
4024    mv "conftest.tmp" "conftest.in"
4025    cp "conftest.in" "conftest.nl"
4026    echo 'EGREP' >> "conftest.nl"
4027    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4028    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4029    ac_count=`expr $ac_count + 1`
4030    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4031      # Best one so far, save it but keep looking for a better one
4032      ac_cv_path_EGREP="$ac_path_EGREP"
4033      ac_path_EGREP_max=$ac_count
4034    fi
4035    # 10*(2^10) chars as input seems more than enough
4036    test $ac_count -gt 10 && break
4037  done
4038  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039esac
4040
4041
4042    $ac_path_EGREP_found && break 3
4043  done
4044done
4045
4046done
4047IFS=$as_save_IFS
4048
4049
4050fi
4051
4052EGREP="$ac_cv_path_EGREP"
4053if test -z "$EGREP"; then
4054  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4055echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4056   { (exit 1); exit 1; }; }
4057fi
4058
4059else
4060  ac_cv_path_EGREP=$EGREP
4061fi
4062
4063
4064   fi
4065fi
4066{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4067echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4068 EGREP="$ac_cv_path_EGREP"
4069
4070
4071{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4072echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4073if test "${ac_cv_header_stdc+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076  cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h.  */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h.  */
4082#include <stdlib.h>
4083#include <stdarg.h>
4084#include <string.h>
4085#include <float.h>
4086
4087int
4088main ()
4089{
4090
4091  ;
4092  return 0;
4093}
4094_ACEOF
4095rm -f conftest.$ac_objext
4096if { (ac_try="$ac_compile"
4097case "(($ac_try" in
4098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099  *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102  (eval "$ac_compile") 2>conftest.er1
4103  ac_status=$?
4104  grep -v '^ *+' conftest.er1 >conftest.err
4105  rm -f conftest.er1
4106  cat conftest.err >&5
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); } &&
4109	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110  { (case "(($ac_try" in
4111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112  *) ac_try_echo=$ac_try;;
4113esac
4114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115  (eval "$ac_try") 2>&5
4116  ac_status=$?
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); }; } &&
4119	 { ac_try='test -s conftest.$ac_objext'
4120  { (case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125  (eval "$ac_try") 2>&5
4126  ac_status=$?
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); }; }; then
4129  ac_cv_header_stdc=yes
4130else
4131  echo "$as_me: failed program was:" >&5
4132sed 's/^/| /' conftest.$ac_ext >&5
4133
4134	ac_cv_header_stdc=no
4135fi
4136
4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138
4139if test $ac_cv_header_stdc = yes; then
4140  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4141  cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h.  */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h.  */
4147#include <string.h>
4148
4149_ACEOF
4150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151  $EGREP "memchr" >/dev/null 2>&1; then
4152  :
4153else
4154  ac_cv_header_stdc=no
4155fi
4156rm -f conftest*
4157
4158fi
4159
4160if test $ac_cv_header_stdc = yes; then
4161  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4162  cat >conftest.$ac_ext <<_ACEOF
4163/* confdefs.h.  */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h.  */
4168#include <stdlib.h>
4169
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172  $EGREP "free" >/dev/null 2>&1; then
4173  :
4174else
4175  ac_cv_header_stdc=no
4176fi
4177rm -f conftest*
4178
4179fi
4180
4181if test $ac_cv_header_stdc = yes; then
4182  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4183  if test "$cross_compiling" = yes; then
4184  :
4185else
4186  cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h.  */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h.  */
4192#include <ctype.h>
4193#include <stdlib.h>
4194#if ((' ' & 0x0FF) == 0x020)
4195# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4196# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197#else
4198# define ISLOWER(c) \
4199		   (('a' <= (c) && (c) <= 'i') \
4200		     || ('j' <= (c) && (c) <= 'r') \
4201		     || ('s' <= (c) && (c) <= 'z'))
4202# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4203#endif
4204
4205#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4206int
4207main ()
4208{
4209  int i;
4210  for (i = 0; i < 256; i++)
4211    if (XOR (islower (i), ISLOWER (i))
4212	|| toupper (i) != TOUPPER (i))
4213      return 2;
4214  return 0;
4215}
4216_ACEOF
4217rm -f conftest$ac_exeext
4218if { (ac_try="$ac_link"
4219case "(($ac_try" in
4220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221  *) ac_try_echo=$ac_try;;
4222esac
4223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224  (eval "$ac_link") 2>&5
4225  ac_status=$?
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4228  { (case "(($ac_try" in
4229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230  *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233  (eval "$ac_try") 2>&5
4234  ac_status=$?
4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236  (exit $ac_status); }; }; then
4237  :
4238else
4239  echo "$as_me: program exited with status $ac_status" >&5
4240echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243( exit $ac_status )
4244ac_cv_header_stdc=no
4245fi
4246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4247fi
4248
4249
4250fi
4251fi
4252{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4253echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4254if test $ac_cv_header_stdc = yes; then
4255
4256cat >>confdefs.h <<\_ACEOF
4257#define STDC_HEADERS 1
4258_ACEOF
4259
4260fi
4261
4262# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4273		  inttypes.h stdint.h unistd.h
4274do
4275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4276{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4279  echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281  cat >conftest.$ac_ext <<_ACEOF
4282/* confdefs.h.  */
4283_ACEOF
4284cat confdefs.h >>conftest.$ac_ext
4285cat >>conftest.$ac_ext <<_ACEOF
4286/* end confdefs.h.  */
4287$ac_includes_default
4288
4289#include <$ac_header>
4290_ACEOF
4291rm -f conftest.$ac_objext
4292if { (ac_try="$ac_compile"
4293case "(($ac_try" in
4294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295  *) ac_try_echo=$ac_try;;
4296esac
4297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298  (eval "$ac_compile") 2>conftest.er1
4299  ac_status=$?
4300  grep -v '^ *+' conftest.er1 >conftest.err
4301  rm -f conftest.er1
4302  cat conftest.err >&5
4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304  (exit $ac_status); } &&
4305	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306  { (case "(($ac_try" in
4307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308  *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311  (eval "$ac_try") 2>&5
4312  ac_status=$?
4313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314  (exit $ac_status); }; } &&
4315	 { ac_try='test -s conftest.$ac_objext'
4316  { (case "(($ac_try" in
4317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318  *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321  (eval "$ac_try") 2>&5
4322  ac_status=$?
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); }; }; then
4325  eval "$as_ac_Header=yes"
4326else
4327  echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330	eval "$as_ac_Header=no"
4331fi
4332
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334fi
4335ac_res=`eval echo '${'$as_ac_Header'}'`
4336	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4337echo "${ECHO_T}$ac_res" >&6; }
4338if test `eval echo '${'$as_ac_Header'}'` = yes; then
4339  cat >>confdefs.h <<_ACEOF
4340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4341_ACEOF
4342
4343fi
4344
4345done
4346
4347
4348{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4349echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4350if test "${ac_cv_c_bigendian+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  # See if sys/param.h defines the BYTE_ORDER macro.
4354cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h.  */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h.  */
4360#include <sys/types.h>
4361#include <sys/param.h>
4362
4363int
4364main ()
4365{
4366#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4367 bogus endian macros
4368#endif
4369
4370  ;
4371  return 0;
4372}
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (ac_try="$ac_compile"
4376case "(($ac_try" in
4377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378  *) ac_try_echo=$ac_try;;
4379esac
4380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381  (eval "$ac_compile") 2>conftest.er1
4382  ac_status=$?
4383  grep -v '^ *+' conftest.er1 >conftest.err
4384  rm -f conftest.er1
4385  cat conftest.err >&5
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); } &&
4388	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389  { (case "(($ac_try" in
4390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391  *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394  (eval "$ac_try") 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); }; } &&
4398	 { ac_try='test -s conftest.$ac_objext'
4399  { (case "(($ac_try" in
4400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401  *) ac_try_echo=$ac_try;;
4402esac
4403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404  (eval "$ac_try") 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; }; then
4408  # It does; now see whether it defined to BIG_ENDIAN or not.
4409cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h.  */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h.  */
4415#include <sys/types.h>
4416#include <sys/param.h>
4417
4418int
4419main ()
4420{
4421#if BYTE_ORDER != BIG_ENDIAN
4422 not big endian
4423#endif
4424
4425  ;
4426  return 0;
4427}
4428_ACEOF
4429rm -f conftest.$ac_objext
4430if { (ac_try="$ac_compile"
4431case "(($ac_try" in
4432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433  *) ac_try_echo=$ac_try;;
4434esac
4435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436  (eval "$ac_compile") 2>conftest.er1
4437  ac_status=$?
4438  grep -v '^ *+' conftest.er1 >conftest.err
4439  rm -f conftest.er1
4440  cat conftest.err >&5
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); } &&
4443	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4444  { (case "(($ac_try" in
4445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446  *) ac_try_echo=$ac_try;;
4447esac
4448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449  (eval "$ac_try") 2>&5
4450  ac_status=$?
4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452  (exit $ac_status); }; } &&
4453	 { ac_try='test -s conftest.$ac_objext'
4454  { (case "(($ac_try" in
4455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456  *) ac_try_echo=$ac_try;;
4457esac
4458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459  (eval "$ac_try") 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  ac_cv_c_bigendian=yes
4464else
4465  echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468	ac_cv_c_bigendian=no
4469fi
4470
4471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472else
4473  echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476	# It does not; compile a test program.
4477if test "$cross_compiling" = yes; then
4478  # try to guess the endianness by grepping values into an object file
4479  ac_cv_c_bigendian=unknown
4480  cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h.  */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h.  */
4486short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4487short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4488void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4489short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4490short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4491void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4492int
4493main ()
4494{
4495 _ascii (); _ebcdic ();
4496  ;
4497  return 0;
4498}
4499_ACEOF
4500rm -f conftest.$ac_objext
4501if { (ac_try="$ac_compile"
4502case "(($ac_try" in
4503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504  *) ac_try_echo=$ac_try;;
4505esac
4506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507  (eval "$ac_compile") 2>conftest.er1
4508  ac_status=$?
4509  grep -v '^ *+' conftest.er1 >conftest.err
4510  rm -f conftest.er1
4511  cat conftest.err >&5
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); } &&
4514	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4515  { (case "(($ac_try" in
4516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517  *) ac_try_echo=$ac_try;;
4518esac
4519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520  (eval "$ac_try") 2>&5
4521  ac_status=$?
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); }; } &&
4524	 { ac_try='test -s conftest.$ac_objext'
4525  { (case "(($ac_try" in
4526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527  *) ac_try_echo=$ac_try;;
4528esac
4529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530  (eval "$ac_try") 2>&5
4531  ac_status=$?
4532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533  (exit $ac_status); }; }; then
4534  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4535  ac_cv_c_bigendian=yes
4536fi
4537if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4538  if test "$ac_cv_c_bigendian" = unknown; then
4539    ac_cv_c_bigendian=no
4540  else
4541    # finding both strings is unlikely to happen, but who knows?
4542    ac_cv_c_bigendian=unknown
4543  fi
4544fi
4545else
4546  echo "$as_me: failed program was:" >&5
4547sed 's/^/| /' conftest.$ac_ext >&5
4548
4549
4550fi
4551
4552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553else
4554  cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h.  */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h.  */
4560$ac_includes_default
4561int
4562main ()
4563{
4564
4565  /* Are we little or big endian?  From Harbison&Steele.  */
4566  union
4567  {
4568    long int l;
4569    char c[sizeof (long int)];
4570  } u;
4571  u.l = 1;
4572  return u.c[sizeof (long int) - 1] == 1;
4573
4574  ;
4575  return 0;
4576}
4577_ACEOF
4578rm -f conftest$ac_exeext
4579if { (ac_try="$ac_link"
4580case "(($ac_try" in
4581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582  *) ac_try_echo=$ac_try;;
4583esac
4584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585  (eval "$ac_link") 2>&5
4586  ac_status=$?
4587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4589  { (case "(($ac_try" in
4590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591  *) ac_try_echo=$ac_try;;
4592esac
4593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594  (eval "$ac_try") 2>&5
4595  ac_status=$?
4596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597  (exit $ac_status); }; }; then
4598  ac_cv_c_bigendian=no
4599else
4600  echo "$as_me: program exited with status $ac_status" >&5
4601echo "$as_me: failed program was:" >&5
4602sed 's/^/| /' conftest.$ac_ext >&5
4603
4604( exit $ac_status )
4605ac_cv_c_bigendian=yes
4606fi
4607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4608fi
4609
4610
4611fi
4612
4613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614fi
4615{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4616echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4617case $ac_cv_c_bigendian in
4618  yes)
4619    ENDIAN=big
4620 ;;
4621  no)
4622    ENDIAN=little
4623 ;;
4624  *)
4625    { { echo "$as_me:$LINENO: error: unknown endianness
4626presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4627echo "$as_me: error: unknown endianness
4628presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4629   { (exit 1); exit 1; }; } ;;
4630esac
4631
4632
4633if test "$cross_compiling" = yes; then
4634  LLVM_CROSS_COMPILING=1
4635
4636
4637{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4638echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4639if test "${ac_cv_build_exeext+set}" = set; then
4640  echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4643  ac_cv_build_exeext=.exe
4644else
4645  ac_build_prefix=${build_alias}-
4646
4647  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4648set dummy ${ac_build_prefix}gcc; ac_word=$2
4649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4652  echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654  if test -n "$BUILD_CC"; then
4655  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660  IFS=$as_save_IFS
4661  test -z "$as_dir" && as_dir=.
4662  for ac_exec_ext in '' $ac_executable_extensions; do
4663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4664    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666    break 2
4667  fi
4668done
4669done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674BUILD_CC=$ac_cv_prog_BUILD_CC
4675if test -n "$BUILD_CC"; then
4676  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4677echo "${ECHO_T}$BUILD_CC" >&6; }
4678else
4679  { echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6; }
4681fi
4682
4683
4684  if test -z "$BUILD_CC"; then
4685     # Extract the first word of "gcc", so it can be a program name with args.
4686set dummy gcc; ac_word=$2
4687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4690  echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692  if test -n "$BUILD_CC"; then
4693  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698  IFS=$as_save_IFS
4699  test -z "$as_dir" && as_dir=.
4700  for ac_exec_ext in '' $ac_executable_extensions; do
4701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4702    ac_cv_prog_BUILD_CC="gcc"
4703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704    break 2
4705  fi
4706done
4707done
4708IFS=$as_save_IFS
4709
4710fi
4711fi
4712BUILD_CC=$ac_cv_prog_BUILD_CC
4713if test -n "$BUILD_CC"; then
4714  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4715echo "${ECHO_T}$BUILD_CC" >&6; }
4716else
4717  { echo "$as_me:$LINENO: result: no" >&5
4718echo "${ECHO_T}no" >&6; }
4719fi
4720
4721
4722     if test -z "$BUILD_CC"; then
4723       # Extract the first word of "cc", so it can be a program name with args.
4724set dummy cc; ac_word=$2
4725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4728  echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730  if test -n "$BUILD_CC"; then
4731  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4732else
4733  ac_prog_rejected=no
4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737  IFS=$as_save_IFS
4738  test -z "$as_dir" && as_dir=.
4739  for ac_exec_ext in '' $ac_executable_extensions; do
4740  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4741    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4742       ac_prog_rejected=yes
4743       continue
4744     fi
4745    ac_cv_prog_BUILD_CC="cc"
4746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747    break 2
4748  fi
4749done
4750done
4751IFS=$as_save_IFS
4752
4753if test $ac_prog_rejected = yes; then
4754  # We found a bogon in the path, so make sure we never use it.
4755  set dummy $ac_cv_prog_BUILD_CC
4756  shift
4757  if test $# != 0; then
4758    # We chose a different compiler from the bogus one.
4759    # However, it has the same basename, so the bogon will be chosen
4760    # first if we set BUILD_CC to just the basename; use the full file name.
4761    shift
4762    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4763  fi
4764fi
4765fi
4766fi
4767BUILD_CC=$ac_cv_prog_BUILD_CC
4768if test -n "$BUILD_CC"; then
4769  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4770echo "${ECHO_T}$BUILD_CC" >&6; }
4771else
4772  { echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6; }
4774fi
4775
4776
4777     fi
4778  fi
4779  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4780echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4781   { (exit 1); exit 1; }; }
4782  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4783  rm -f conftest*
4784  echo 'int main () { return 0; }' > conftest.$ac_ext
4785  ac_cv_build_exeext=
4786  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4787  (eval $ac_build_link) 2>&5
4788  ac_status=$?
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); }; then
4791    for file in conftest.*; do
4792      case $file in
4793      *.c | *.o | *.obj | *.dSYM) ;;
4794      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4795      esac
4796    done
4797  else
4798    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4799echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4800   { (exit 1); exit 1; }; }
4801  fi
4802  rm -f conftest*
4803  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4804fi
4805fi
4806
4807BUILD_EXEEXT=""
4808test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4809{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4810echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4811ac_build_exeext=$BUILD_EXEEXT
4812
4813  ac_build_prefix=${build_alias}-
4814  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4815set dummy ${ac_build_prefix}g++; ac_word=$2
4816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4819  echo $ECHO_N "(cached) $ECHO_C" >&6
4820else
4821  if test -n "$BUILD_CXX"; then
4822  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4823else
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827  IFS=$as_save_IFS
4828  test -z "$as_dir" && as_dir=.
4829  for ac_exec_ext in '' $ac_executable_extensions; do
4830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4831    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4832    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833    break 2
4834  fi
4835done
4836done
4837IFS=$as_save_IFS
4838
4839fi
4840fi
4841BUILD_CXX=$ac_cv_prog_BUILD_CXX
4842if test -n "$BUILD_CXX"; then
4843  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4844echo "${ECHO_T}$BUILD_CXX" >&6; }
4845else
4846  { echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6; }
4848fi
4849
4850
4851  if test -z "$BUILD_CXX"; then
4852     # Extract the first word of "g++", so it can be a program name with args.
4853set dummy g++; ac_word=$2
4854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4857  echo $ECHO_N "(cached) $ECHO_C" >&6
4858else
4859  if test -n "$BUILD_CXX"; then
4860  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865  IFS=$as_save_IFS
4866  test -z "$as_dir" && as_dir=.
4867  for ac_exec_ext in '' $ac_executable_extensions; do
4868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4869    ac_cv_prog_BUILD_CXX="g++"
4870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871    break 2
4872  fi
4873done
4874done
4875IFS=$as_save_IFS
4876
4877fi
4878fi
4879BUILD_CXX=$ac_cv_prog_BUILD_CXX
4880if test -n "$BUILD_CXX"; then
4881  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4882echo "${ECHO_T}$BUILD_CXX" >&6; }
4883else
4884  { echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6; }
4886fi
4887
4888
4889     if test -z "$BUILD_CXX"; then
4890       # Extract the first word of "c++", so it can be a program name with args.
4891set dummy c++; ac_word=$2
4892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4895  echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897  if test -n "$BUILD_CXX"; then
4898  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4899else
4900  ac_prog_rejected=no
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906  for ac_exec_ext in '' $ac_executable_extensions; do
4907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4908    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4909       ac_prog_rejected=yes
4910       continue
4911     fi
4912    ac_cv_prog_BUILD_CXX="c++"
4913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914    break 2
4915  fi
4916done
4917done
4918IFS=$as_save_IFS
4919
4920if test $ac_prog_rejected = yes; then
4921  # We found a bogon in the path, so make sure we never use it.
4922  set dummy $ac_cv_prog_BUILD_CXX
4923  shift
4924  if test $# != 0; then
4925    # We chose a different compiler from the bogus one.
4926    # However, it has the same basename, so the bogon will be chosen
4927    # first if we set BUILD_CXX to just the basename; use the full file name.
4928    shift
4929    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4930  fi
4931fi
4932fi
4933fi
4934BUILD_CXX=$ac_cv_prog_BUILD_CXX
4935if test -n "$BUILD_CXX"; then
4936  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4937echo "${ECHO_T}$BUILD_CXX" >&6; }
4938else
4939  { echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6; }
4941fi
4942
4943
4944     fi
4945  fi
4946else
4947  LLVM_CROSS_COMPILING=0
4948
4949fi
4950
4951if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4952  cvsbuild="yes"
4953  optimize="no"
4954  CVSBUILD=CVSBUILD=1
4955
4956else
4957  cvsbuild="no"
4958  optimize="yes"
4959fi
4960
4961
4962# Check whether --enable-optimized was given.
4963if test "${enable_optimized+set}" = set; then
4964  enableval=$enable_optimized;
4965else
4966  enableval=$optimize
4967fi
4968
4969if test ${enableval} = "no" ; then
4970  ENABLE_OPTIMIZED=
4971
4972else
4973  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4974
4975fi
4976
4977# Check whether --enable-profiling was given.
4978if test "${enable_profiling+set}" = set; then
4979  enableval=$enable_profiling;
4980else
4981  enableval="no"
4982fi
4983
4984if test ${enableval} = "no" ; then
4985  ENABLE_PROFILING=
4986
4987else
4988  ENABLE_PROFILING=ENABLE_PROFILING=1
4989
4990fi
4991
4992# Check whether --enable-assertions was given.
4993if test "${enable_assertions+set}" = set; then
4994  enableval=$enable_assertions;
4995else
4996  enableval="yes"
4997fi
4998
4999if test ${enableval} = "yes" ; then
5000  DISABLE_ASSERTIONS=
5001
5002else
5003  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5004
5005fi
5006
5007# Check whether --enable-expensive-checks was given.
5008if test "${enable_expensive_checks+set}" = set; then
5009  enableval=$enable_expensive_checks;
5010else
5011  enableval="no"
5012fi
5013
5014if test ${enableval} = "yes" ; then
5015  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5016
5017  EXPENSIVE_CHECKS=yes
5018
5019else
5020  ENABLE_EXPENSIVE_CHECKS=
5021
5022  EXPENSIVE_CHECKS=no
5023
5024fi
5025
5026# Check whether --enable-debug-runtime was given.
5027if test "${enable_debug_runtime+set}" = set; then
5028  enableval=$enable_debug_runtime;
5029else
5030  enableval=no
5031fi
5032
5033if test ${enableval} = "no" ; then
5034  DEBUG_RUNTIME=
5035
5036else
5037  DEBUG_RUNTIME=DEBUG_RUNTIME=1
5038
5039fi
5040
5041# Check whether --enable-debug-symbols was given.
5042if test "${enable_debug_symbols+set}" = set; then
5043  enableval=$enable_debug_symbols;
5044else
5045  enableval=no
5046fi
5047
5048if test ${enableval} = "no" ; then
5049  DEBUG_SYMBOLS=
5050
5051else
5052  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5053
5054fi
5055
5056# Check whether --enable-jit was given.
5057if test "${enable_jit+set}" = set; then
5058  enableval=$enable_jit;
5059else
5060  enableval=default
5061fi
5062
5063if test ${enableval} = "no"
5064then
5065  JIT=
5066
5067else
5068  case "$llvm_cv_target_arch" in
5069    x86)         TARGET_HAS_JIT=1
5070 ;;
5071    Sparc)       TARGET_HAS_JIT=0
5072 ;;
5073    PowerPC)     TARGET_HAS_JIT=1
5074 ;;
5075    x86_64)      TARGET_HAS_JIT=1
5076 ;;
5077    Alpha)       TARGET_HAS_JIT=0
5078 ;;
5079    ARM)         TARGET_HAS_JIT=1
5080 ;;
5081    Mips)        TARGET_HAS_JIT=1
5082 ;;
5083    XCore)       TARGET_HAS_JIT=0
5084 ;;
5085    MSP430)      TARGET_HAS_JIT=0
5086 ;;
5087    Blackfin)    TARGET_HAS_JIT=0
5088 ;;
5089    MBlaze)      TARGET_HAS_JIT=0
5090 ;;
5091    PTX)         TARGET_HAS_JIT=0
5092 ;;
5093    *)           TARGET_HAS_JIT=0
5094 ;;
5095  esac
5096fi
5097
5098# Check whether --enable-docs was given.
5099if test "${enable_docs+set}" = set; then
5100  enableval=$enable_docs;
5101else
5102  enableval=default
5103fi
5104
5105case "$enableval" in
5106  yes) ENABLE_DOCS=1
5107 ;;
5108  no)  ENABLE_DOCS=0
5109 ;;
5110  default) ENABLE_DOCS=1
5111 ;;
5112  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5113echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5114   { (exit 1); exit 1; }; } ;;
5115esac
5116
5117# Check whether --enable-doxygen was given.
5118if test "${enable_doxygen+set}" = set; then
5119  enableval=$enable_doxygen;
5120else
5121  enableval=default
5122fi
5123
5124case "$enableval" in
5125  yes) ENABLE_DOXYGEN=1
5126 ;;
5127  no)  ENABLE_DOXYGEN=0
5128 ;;
5129  default) ENABLE_DOXYGEN=0
5130 ;;
5131  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5132echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5133   { (exit 1); exit 1; }; } ;;
5134esac
5135
5136# Check whether --enable-threads was given.
5137if test "${enable_threads+set}" = set; then
5138  enableval=$enable_threads;
5139else
5140  enableval=default
5141fi
5142
5143case "$enableval" in
5144  yes) ENABLE_THREADS=1
5145 ;;
5146  no)  ENABLE_THREADS=0
5147 ;;
5148  default) ENABLE_THREADS=1
5149 ;;
5150  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5151echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5152   { (exit 1); exit 1; }; } ;;
5153esac
5154
5155cat >>confdefs.h <<_ACEOF
5156#define ENABLE_THREADS $ENABLE_THREADS
5157_ACEOF
5158
5159
5160# Check whether --enable-pthreads was given.
5161if test "${enable_pthreads+set}" = set; then
5162  enableval=$enable_pthreads;
5163else
5164  enableval=default
5165fi
5166
5167case "$enableval" in
5168  yes) ENABLE_PTHREADS=1
5169 ;;
5170  no)  ENABLE_PTHREADS=0
5171 ;;
5172  default) ENABLE_PTHREADS=1
5173 ;;
5174  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5175echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5176   { (exit 1); exit 1; }; } ;;
5177esac
5178
5179# Check whether --enable-pic was given.
5180if test "${enable_pic+set}" = set; then
5181  enableval=$enable_pic;
5182else
5183  enableval=default
5184fi
5185
5186case "$enableval" in
5187  yes) ENABLE_PIC=1
5188 ;;
5189  no)  ENABLE_PIC=0
5190 ;;
5191  default) ENABLE_PIC=1
5192 ;;
5193  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5194echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5195   { (exit 1); exit 1; }; } ;;
5196esac
5197
5198cat >>confdefs.h <<_ACEOF
5199#define ENABLE_PIC $ENABLE_PIC
5200_ACEOF
5201
5202
5203# Check whether --enable-shared was given.
5204if test "${enable_shared+set}" = set; then
5205  enableval=$enable_shared;
5206else
5207  enableval=default
5208fi
5209
5210case "$enableval" in
5211  yes) ENABLE_SHARED=1
5212 ;;
5213  no)  ENABLE_SHARED=0
5214 ;;
5215  default) ENABLE_SHARED=0
5216 ;;
5217  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5218echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5219   { (exit 1); exit 1; }; } ;;
5220esac
5221
5222# Check whether --enable-embed-stdcxx was given.
5223if test "${enable_embed_stdcxx+set}" = set; then
5224  enableval=$enable_embed_stdcxx;
5225else
5226  enableval=default
5227fi
5228
5229case "$enableval" in
5230  yes) ENABLE_EMBED_STDCXX=1
5231 ;;
5232  no)  ENABLE_EMBED_STDCXX=0
5233 ;;
5234  default) ENABLE_EMBED_STDCXX=0
5235 ;;
5236  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5237echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5238   { (exit 1); exit 1; }; } ;;
5239esac
5240
5241# Check whether --enable-timestamps was given.
5242if test "${enable_timestamps+set}" = set; then
5243  enableval=$enable_timestamps;
5244else
5245  enableval=default
5246fi
5247
5248case "$enableval" in
5249  yes) ENABLE_TIMESTAMPS=1
5250 ;;
5251  no)  ENABLE_TIMESTAMPS=0
5252 ;;
5253  default) ENABLE_TIMESTAMPS=1
5254 ;;
5255  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5256echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5257   { (exit 1); exit 1; }; } ;;
5258esac
5259
5260cat >>confdefs.h <<_ACEOF
5261#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5262_ACEOF
5263
5264
5265TARGETS_TO_BUILD=""
5266# Check whether --enable-targets was given.
5267if test "${enable_targets+set}" = set; then
5268  enableval=$enable_targets;
5269else
5270  enableval=all
5271fi
5272
5273if test "$enableval" = host-only ; then
5274  enableval=host
5275fi
5276case "$enableval" in
5277  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 Blackfin CBackend CppBackend MBlaze PTX" ;;
5278  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5279      case "$a_target" in
5280        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5282        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5283        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5284        alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5285        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5286        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5287        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5288        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5289        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5290        blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5291        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5292        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5293        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5294        ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5295        host) case "$llvm_cv_target_arch" in
5296            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5297            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5298            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5299            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5300            Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5301            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5302            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5303            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5304            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5305            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5306            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5307            Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5308            PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5309            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5310echo "$as_me: error: Can not set target to build" >&2;}
5311   { (exit 1); exit 1; }; } ;;
5312          esac ;;
5313        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5314echo "$as_me: error: Unrecognized target $a_target" >&2;}
5315   { (exit 1); exit 1; }; } ;;
5316      esac
5317  done
5318  ;;
5319esac
5320TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5321
5322
5323# Determine whether we are building LLVM support for the native architecture.
5324# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5325for a_target in $TARGETS_TO_BUILD; do
5326  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5327
5328cat >>confdefs.h <<_ACEOF
5329#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5330_ACEOF
5331
5332    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5333    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5334    LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5335    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5336    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5337      LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5338    fi
5339
5340cat >>confdefs.h <<_ACEOF
5341#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5342_ACEOF
5343
5344
5345cat >>confdefs.h <<_ACEOF
5346#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5347_ACEOF
5348
5349
5350cat >>confdefs.h <<_ACEOF
5351#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5352_ACEOF
5353
5354
5355cat >>confdefs.h <<_ACEOF
5356#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5357_ACEOF
5358
5359    if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5360
5361cat >>confdefs.h <<_ACEOF
5362#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5363_ACEOF
5364
5365    fi
5366  fi
5367done
5368
5369# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5370# target feature def files.
5371LLVM_ENUM_TARGETS=""
5372LLVM_ENUM_ASM_PRINTERS=""
5373LLVM_ENUM_ASM_PARSERS=""
5374LLVM_ENUM_DISASSEMBLERS=""
5375for target_to_build in $TARGETS_TO_BUILD; do
5376  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5377  if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5378    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5379  fi
5380  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5381    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5382  fi
5383  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5384    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5385  fi
5386done
5387
5388
5389
5390
5391
5392# Check whether --enable-cbe-printf-a was given.
5393if test "${enable_cbe_printf_a+set}" = set; then
5394  enableval=$enable_cbe_printf_a;
5395else
5396  enableval=default
5397fi
5398
5399case "$enableval" in
5400  yes) ENABLE_CBE_PRINTF_A=1
5401 ;;
5402  no)  ENABLE_CBE_PRINTF_A=0
5403 ;;
5404  default)  ENABLE_CBE_PRINTF_A=1
5405 ;;
5406  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5407echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5408   { (exit 1); exit 1; }; } ;;
5409esac
5410
5411cat >>confdefs.h <<_ACEOF
5412#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5413_ACEOF
5414
5415
5416
5417# Check whether --with-optimize-option was given.
5418if test "${with_optimize_option+set}" = set; then
5419  withval=$with_optimize_option;
5420else
5421  withval=default
5422fi
5423
5424{ echo "$as_me:$LINENO: checking optimization flags" >&5
5425echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5426case "$withval" in
5427  default)
5428    case "$llvm_cv_os_type" in
5429    FreeBSD) optimize_option=-O2 ;;
5430    MingW) optimize_option=-O2 ;;
5431    *)     optimize_option=-O3 ;;
5432    esac ;;
5433  *) optimize_option="$withval" ;;
5434esac
5435OPTIMIZE_OPTION=$optimize_option
5436
5437{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5438echo "${ECHO_T}$optimize_option" >&6; }
5439
5440
5441# Check whether --with-extra-options was given.
5442if test "${with_extra_options+set}" = set; then
5443  withval=$with_extra_options;
5444else
5445  withval=default
5446fi
5447
5448case "$withval" in
5449  default) EXTRA_OPTIONS= ;;
5450  *) EXTRA_OPTIONS=$withval ;;
5451esac
5452EXTRA_OPTIONS=$EXTRA_OPTIONS
5453
5454
5455
5456# Check whether --with-extra-ld-options was given.
5457if test "${with_extra_ld_options+set}" = set; then
5458  withval=$with_extra_ld_options;
5459else
5460  withval=default
5461fi
5462
5463case "$withval" in
5464  default) EXTRA_LD_OPTIONS= ;;
5465  *) EXTRA_LD_OPTIONS=$withval ;;
5466esac
5467EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5468
5469
5470# Check whether --enable-bindings was given.
5471if test "${enable_bindings+set}" = set; then
5472  enableval=$enable_bindings;
5473else
5474  enableval=default
5475fi
5476
5477BINDINGS_TO_BUILD=""
5478case "$enableval" in
5479  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5480  all ) BINDINGS_TO_BUILD="ocaml" ;;
5481  none | no) BINDINGS_TO_BUILD="" ;;
5482  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5483      case "$a_binding" in
5484        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5485        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5486echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5487   { (exit 1); exit 1; }; } ;;
5488      esac
5489  done
5490  ;;
5491esac
5492
5493
5494# Check whether --with-ocaml-libdir was given.
5495if test "${with_ocaml_libdir+set}" = set; then
5496  withval=$with_ocaml_libdir;
5497else
5498  withval=auto
5499fi
5500
5501case "$withval" in
5502  auto) with_ocaml_libdir="$withval" ;;
5503  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5504  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5505echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5506   { (exit 1); exit 1; }; } ;;
5507esac
5508
5509
5510# Check whether --with-clang-srcdir was given.
5511if test "${with_clang_srcdir+set}" = set; then
5512  withval=$with_clang_srcdir;
5513else
5514  withval="-"
5515fi
5516
5517case "$withval" in
5518  -) clang_src_root="" ;;
5519  /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5520  *) clang_src_root="$ac_pwd/$withval" ;;
5521esac
5522CLANG_SRC_ROOT=$clang_src_root
5523
5524
5525
5526# Check whether --with-clang-resource-dir was given.
5527if test "${with_clang_resource_dir+set}" = set; then
5528  withval=$with_clang_resource_dir;
5529else
5530  withval=""
5531fi
5532
5533
5534cat >>confdefs.h <<_ACEOF
5535#define CLANG_RESOURCE_DIR "$withval"
5536_ACEOF
5537
5538
5539
5540# Check whether --with-c-include-dirs was given.
5541if test "${with_c_include_dirs+set}" = set; then
5542  withval=$with_c_include_dirs;
5543else
5544  withval=""
5545fi
5546
5547
5548cat >>confdefs.h <<_ACEOF
5549#define C_INCLUDE_DIRS "$withval"
5550_ACEOF
5551
5552
5553
5554# Check whether --with-cxx-include-root was given.
5555if test "${with_cxx_include_root+set}" = set; then
5556  withval=$with_cxx_include_root;
5557else
5558  withval=""
5559fi
5560
5561
5562cat >>confdefs.h <<_ACEOF
5563#define CXX_INCLUDE_ROOT "$withval"
5564_ACEOF
5565
5566
5567
5568# Check whether --with-cxx-include-arch was given.
5569if test "${with_cxx_include_arch+set}" = set; then
5570  withval=$with_cxx_include_arch;
5571else
5572  withval=""
5573fi
5574
5575
5576cat >>confdefs.h <<_ACEOF
5577#define CXX_INCLUDE_ARCH "$withval"
5578_ACEOF
5579
5580
5581
5582# Check whether --with-cxx-include-32bit-dir was given.
5583if test "${with_cxx_include_32bit_dir+set}" = set; then
5584  withval=$with_cxx_include_32bit_dir;
5585else
5586  withval=""
5587fi
5588
5589
5590cat >>confdefs.h <<_ACEOF
5591#define CXX_INCLUDE_32BIT_DIR "$withval"
5592_ACEOF
5593
5594
5595
5596# Check whether --with-cxx-include-64bit-dir was given.
5597if test "${with_cxx_include_64bit_dir+set}" = set; then
5598  withval=$with_cxx_include_64bit_dir;
5599else
5600  withval=""
5601fi
5602
5603
5604cat >>confdefs.h <<_ACEOF
5605#define CXX_INCLUDE_64BIT_DIR "$withval"
5606_ACEOF
5607
5608
5609
5610# Check whether --with-binutils-include was given.
5611if test "${with_binutils_include+set}" = set; then
5612  withval=$with_binutils_include;
5613else
5614  withval=default
5615fi
5616
5617case "$withval" in
5618  default) WITH_BINUTILS_INCDIR=default ;;
5619  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5620  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5621echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5622   { (exit 1); exit 1; }; } ;;
5623esac
5624if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5625  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5626
5627  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5628     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5629     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5630echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5631   { (exit 1); exit 1; }; };
5632  fi
5633fi
5634
5635
5636# Check whether --with-bug-report-url was given.
5637if test "${with_bug_report_url+set}" = set; then
5638  withval=$with_bug_report_url;
5639else
5640  withval="http://llvm.org/bugs/"
5641fi
5642
5643
5644cat >>confdefs.h <<_ACEOF
5645#define BUG_REPORT_URL "$withval"
5646_ACEOF
5647
5648
5649# Check whether --enable-libffi was given.
5650if test "${enable_libffi+set}" = set; then
5651  enableval=$enable_libffi; case "$enableval" in
5652    yes) llvm_cv_enable_libffi="yes" ;;
5653    no)  llvm_cv_enable_libffi="no"  ;;
5654    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5655echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5656   { (exit 1); exit 1; }; } ;;
5657  esac
5658else
5659  llvm_cv_enable_libffi=no
5660fi
5661
5662
5663
5664{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5665echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5666if test "${lt_cv_path_NM+set}" = set; then
5667  echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669  if test -n "$NM"; then
5670  # Let the user override the test.
5671  lt_cv_path_NM="$NM"
5672else
5673  lt_nm_to_check="${ac_tool_prefix}nm"
5674  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5675    lt_nm_to_check="$lt_nm_to_check nm"
5676  fi
5677  for lt_tmp_nm in $lt_nm_to_check; do
5678    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5679    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5680      IFS="$lt_save_ifs"
5681      test -z "$ac_dir" && ac_dir=.
5682      tmp_nm="$ac_dir/$lt_tmp_nm"
5683      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5684	# Check to see if the nm accepts a BSD-compat flag.
5685	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5686	#   nm: unknown option "B" ignored
5687	# Tru64's nm complains that /dev/null is an invalid object file
5688	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5689	*/dev/null* | *'Invalid file or object type'*)
5690	  lt_cv_path_NM="$tmp_nm -B"
5691	  break
5692	  ;;
5693	*)
5694	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5695	  */dev/null*)
5696	    lt_cv_path_NM="$tmp_nm -p"
5697	    break
5698	    ;;
5699	  *)
5700	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5701	    continue # so that we can try to find one that supports BSD flags
5702	    ;;
5703	  esac
5704	  ;;
5705	esac
5706      fi
5707    done
5708    IFS="$lt_save_ifs"
5709  done
5710  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5711fi
5712fi
5713{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5714echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5715NM="$lt_cv_path_NM"
5716
5717
5718
5719{ echo "$as_me:$LINENO: checking for GNU make" >&5
5720echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5721if test "${llvm_cv_gnu_make_command+set}" = set; then
5722  echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724  llvm_cv_gnu_make_command=''
5725 for a in "$MAKE" make gmake gnumake ; do
5726  if test -z "$a" ; then continue ; fi ;
5727  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5728  then
5729   llvm_cv_gnu_make_command=$a ;
5730   break;
5731  fi
5732 done
5733fi
5734{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5735echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5736 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5737   ifGNUmake='' ;
5738 else
5739   ifGNUmake='#' ;
5740   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5741echo "${ECHO_T}\"Not found\"" >&6; };
5742 fi
5743
5744
5745{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5746echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5747LN_S=$as_ln_s
5748if test "$LN_S" = "ln -s"; then
5749  { echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6; }
5751else
5752  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5753echo "${ECHO_T}no, using $LN_S" >&6; }
5754fi
5755
5756# Extract the first word of "cmp", so it can be a program name with args.
5757set dummy cmp; ac_word=$2
5758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5760if test "${ac_cv_path_CMP+set}" = set; then
5761  echo $ECHO_N "(cached) $ECHO_C" >&6
5762else
5763  case $CMP in
5764  [\\/]* | ?:[\\/]*)
5765  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5766  ;;
5767  *)
5768  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771  IFS=$as_save_IFS
5772  test -z "$as_dir" && as_dir=.
5773  for ac_exec_ext in '' $ac_executable_extensions; do
5774  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5775    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777    break 2
5778  fi
5779done
5780done
5781IFS=$as_save_IFS
5782
5783  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5784  ;;
5785esac
5786fi
5787CMP=$ac_cv_path_CMP
5788if test -n "$CMP"; then
5789  { echo "$as_me:$LINENO: result: $CMP" >&5
5790echo "${ECHO_T}$CMP" >&6; }
5791else
5792  { echo "$as_me:$LINENO: result: no" >&5
5793echo "${ECHO_T}no" >&6; }
5794fi
5795
5796
5797# Extract the first word of "cp", so it can be a program name with args.
5798set dummy cp; ac_word=$2
5799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801if test "${ac_cv_path_CP+set}" = set; then
5802  echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804  case $CP in
5805  [\\/]* | ?:[\\/]*)
5806  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5807  ;;
5808  *)
5809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812  IFS=$as_save_IFS
5813  test -z "$as_dir" && as_dir=.
5814  for ac_exec_ext in '' $ac_executable_extensions; do
5815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5816    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818    break 2
5819  fi
5820done
5821done
5822IFS=$as_save_IFS
5823
5824  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5825  ;;
5826esac
5827fi
5828CP=$ac_cv_path_CP
5829if test -n "$CP"; then
5830  { echo "$as_me:$LINENO: result: $CP" >&5
5831echo "${ECHO_T}$CP" >&6; }
5832else
5833  { echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6; }
5835fi
5836
5837
5838# Extract the first word of "date", so it can be a program name with args.
5839set dummy date; ac_word=$2
5840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5842if test "${ac_cv_path_DATE+set}" = set; then
5843  echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845  case $DATE in
5846  [\\/]* | ?:[\\/]*)
5847  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5848  ;;
5849  *)
5850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855  for ac_exec_ext in '' $ac_executable_extensions; do
5856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5857    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862done
5863IFS=$as_save_IFS
5864
5865  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5866  ;;
5867esac
5868fi
5869DATE=$ac_cv_path_DATE
5870if test -n "$DATE"; then
5871  { echo "$as_me:$LINENO: result: $DATE" >&5
5872echo "${ECHO_T}$DATE" >&6; }
5873else
5874  { echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6; }
5876fi
5877
5878
5879# Extract the first word of "find", so it can be a program name with args.
5880set dummy find; ac_word=$2
5881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883if test "${ac_cv_path_FIND+set}" = set; then
5884  echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886  case $FIND in
5887  [\\/]* | ?:[\\/]*)
5888  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5889  ;;
5890  *)
5891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896  for ac_exec_ext in '' $ac_executable_extensions; do
5897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5898    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903done
5904IFS=$as_save_IFS
5905
5906  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5907  ;;
5908esac
5909fi
5910FIND=$ac_cv_path_FIND
5911if test -n "$FIND"; then
5912  { echo "$as_me:$LINENO: result: $FIND" >&5
5913echo "${ECHO_T}$FIND" >&6; }
5914else
5915  { echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6; }
5917fi
5918
5919
5920# Extract the first word of "grep", so it can be a program name with args.
5921set dummy grep; ac_word=$2
5922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924if test "${ac_cv_path_GREP+set}" = set; then
5925  echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927  case $GREP in
5928  [\\/]* | ?:[\\/]*)
5929  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5930  ;;
5931  *)
5932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935  IFS=$as_save_IFS
5936  test -z "$as_dir" && as_dir=.
5937  for ac_exec_ext in '' $ac_executable_extensions; do
5938  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5940    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941    break 2
5942  fi
5943done
5944done
5945IFS=$as_save_IFS
5946
5947  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5948  ;;
5949esac
5950fi
5951GREP=$ac_cv_path_GREP
5952if test -n "$GREP"; then
5953  { echo "$as_me:$LINENO: result: $GREP" >&5
5954echo "${ECHO_T}$GREP" >&6; }
5955else
5956  { echo "$as_me:$LINENO: result: no" >&5
5957echo "${ECHO_T}no" >&6; }
5958fi
5959
5960
5961# Extract the first word of "mkdir", so it can be a program name with args.
5962set dummy mkdir; ac_word=$2
5963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965if test "${ac_cv_path_MKDIR+set}" = set; then
5966  echo $ECHO_N "(cached) $ECHO_C" >&6
5967else
5968  case $MKDIR in
5969  [\\/]* | ?:[\\/]*)
5970  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5971  ;;
5972  *)
5973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976  IFS=$as_save_IFS
5977  test -z "$as_dir" && as_dir=.
5978  for ac_exec_ext in '' $ac_executable_extensions; do
5979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982    break 2
5983  fi
5984done
5985done
5986IFS=$as_save_IFS
5987
5988  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5989  ;;
5990esac
5991fi
5992MKDIR=$ac_cv_path_MKDIR
5993if test -n "$MKDIR"; then
5994  { echo "$as_me:$LINENO: result: $MKDIR" >&5
5995echo "${ECHO_T}$MKDIR" >&6; }
5996else
5997  { echo "$as_me:$LINENO: result: no" >&5
5998echo "${ECHO_T}no" >&6; }
5999fi
6000
6001
6002# Extract the first word of "mv", so it can be a program name with args.
6003set dummy mv; ac_word=$2
6004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006if test "${ac_cv_path_MV+set}" = set; then
6007  echo $ECHO_N "(cached) $ECHO_C" >&6
6008else
6009  case $MV in
6010  [\\/]* | ?:[\\/]*)
6011  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6012  ;;
6013  *)
6014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017  IFS=$as_save_IFS
6018  test -z "$as_dir" && as_dir=.
6019  for ac_exec_ext in '' $ac_executable_extensions; do
6020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6021    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023    break 2
6024  fi
6025done
6026done
6027IFS=$as_save_IFS
6028
6029  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6030  ;;
6031esac
6032fi
6033MV=$ac_cv_path_MV
6034if test -n "$MV"; then
6035  { echo "$as_me:$LINENO: result: $MV" >&5
6036echo "${ECHO_T}$MV" >&6; }
6037else
6038  { echo "$as_me:$LINENO: result: no" >&5
6039echo "${ECHO_T}no" >&6; }
6040fi
6041
6042
6043if test -n "$ac_tool_prefix"; then
6044  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6048if test "${ac_cv_prog_RANLIB+set}" = set; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  if test -n "$RANLIB"; then
6052  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059  for ac_exec_ext in '' $ac_executable_extensions; do
6060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6061    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071RANLIB=$ac_cv_prog_RANLIB
6072if test -n "$RANLIB"; then
6073  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6074echo "${ECHO_T}$RANLIB" >&6; }
6075else
6076  { echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_RANLIB"; then
6083  ac_ct_RANLIB=$RANLIB
6084  # Extract the first word of "ranlib", so it can be a program name with args.
6085set dummy ranlib; ac_word=$2
6086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6089  echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091  if test -n "$ac_ct_RANLIB"; then
6092  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097  IFS=$as_save_IFS
6098  test -z "$as_dir" && as_dir=.
6099  for ac_exec_ext in '' $ac_executable_extensions; do
6100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6101    ac_cv_prog_ac_ct_RANLIB="ranlib"
6102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6112if test -n "$ac_ct_RANLIB"; then
6113  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6114echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6115else
6116  { echo "$as_me:$LINENO: result: no" >&5
6117echo "${ECHO_T}no" >&6; }
6118fi
6119
6120  if test "x$ac_ct_RANLIB" = x; then
6121    RANLIB=":"
6122  else
6123    case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6126whose name does not start with the host triplet.  If you think this
6127configuration is useful to you, please write to autoconf@gnu.org." >&5
6128echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6129whose name does not start with the host triplet.  If you think this
6130configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6131ac_tool_warned=yes ;;
6132esac
6133    RANLIB=$ac_ct_RANLIB
6134  fi
6135else
6136  RANLIB="$ac_cv_prog_RANLIB"
6137fi
6138
6139if test -n "$ac_tool_prefix"; then
6140  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6141set dummy ${ac_tool_prefix}ar; ac_word=$2
6142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6144if test "${ac_cv_prog_AR+set}" = set; then
6145  echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147  if test -n "$AR"; then
6148  ac_cv_prog_AR="$AR" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153  IFS=$as_save_IFS
6154  test -z "$as_dir" && as_dir=.
6155  for ac_exec_ext in '' $ac_executable_extensions; do
6156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6157    ac_cv_prog_AR="${ac_tool_prefix}ar"
6158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159    break 2
6160  fi
6161done
6162done
6163IFS=$as_save_IFS
6164
6165fi
6166fi
6167AR=$ac_cv_prog_AR
6168if test -n "$AR"; then
6169  { echo "$as_me:$LINENO: result: $AR" >&5
6170echo "${ECHO_T}$AR" >&6; }
6171else
6172  { echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6; }
6174fi
6175
6176
6177fi
6178if test -z "$ac_cv_prog_AR"; then
6179  ac_ct_AR=$AR
6180  # Extract the first word of "ar", so it can be a program name with args.
6181set dummy ar; ac_word=$2
6182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187  if test -n "$ac_ct_AR"; then
6188  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193  IFS=$as_save_IFS
6194  test -z "$as_dir" && as_dir=.
6195  for ac_exec_ext in '' $ac_executable_extensions; do
6196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197    ac_cv_prog_ac_ct_AR="ar"
6198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199    break 2
6200  fi
6201done
6202done
6203IFS=$as_save_IFS
6204
6205fi
6206fi
6207ac_ct_AR=$ac_cv_prog_ac_ct_AR
6208if test -n "$ac_ct_AR"; then
6209  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6210echo "${ECHO_T}$ac_ct_AR" >&6; }
6211else
6212  { echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6; }
6214fi
6215
6216  if test "x$ac_ct_AR" = x; then
6217    AR="false"
6218  else
6219    case $cross_compiling:$ac_tool_warned in
6220yes:)
6221{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222whose name does not start with the host triplet.  If you think this
6223configuration is useful to you, please write to autoconf@gnu.org." >&5
6224echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225whose name does not start with the host triplet.  If you think this
6226configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227ac_tool_warned=yes ;;
6228esac
6229    AR=$ac_ct_AR
6230  fi
6231else
6232  AR="$ac_cv_prog_AR"
6233fi
6234
6235# Extract the first word of "rm", so it can be a program name with args.
6236set dummy rm; ac_word=$2
6237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239if test "${ac_cv_path_RM+set}" = set; then
6240  echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242  case $RM in
6243  [\\/]* | ?:[\\/]*)
6244  ac_cv_path_RM="$RM" # Let the user override the test with a path.
6245  ;;
6246  *)
6247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250  IFS=$as_save_IFS
6251  test -z "$as_dir" && as_dir=.
6252  for ac_exec_ext in '' $ac_executable_extensions; do
6253  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6254    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256    break 2
6257  fi
6258done
6259done
6260IFS=$as_save_IFS
6261
6262  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6263  ;;
6264esac
6265fi
6266RM=$ac_cv_path_RM
6267if test -n "$RM"; then
6268  { echo "$as_me:$LINENO: result: $RM" >&5
6269echo "${ECHO_T}$RM" >&6; }
6270else
6271  { echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6; }
6273fi
6274
6275
6276# Extract the first word of "sed", so it can be a program name with args.
6277set dummy sed; ac_word=$2
6278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280if test "${ac_cv_path_SED+set}" = set; then
6281  echo $ECHO_N "(cached) $ECHO_C" >&6
6282else
6283  case $SED in
6284  [\\/]* | ?:[\\/]*)
6285  ac_cv_path_SED="$SED" # Let the user override the test with a path.
6286  ;;
6287  *)
6288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293  for ac_exec_ext in '' $ac_executable_extensions; do
6294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6296    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300done
6301IFS=$as_save_IFS
6302
6303  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6304  ;;
6305esac
6306fi
6307SED=$ac_cv_path_SED
6308if test -n "$SED"; then
6309  { echo "$as_me:$LINENO: result: $SED" >&5
6310echo "${ECHO_T}$SED" >&6; }
6311else
6312  { echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6; }
6314fi
6315
6316
6317# Extract the first word of "tar", so it can be a program name with args.
6318set dummy tar; ac_word=$2
6319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321if test "${ac_cv_path_TAR+set}" = set; then
6322  echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324  case $TAR in
6325  [\\/]* | ?:[\\/]*)
6326  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6327  ;;
6328  *)
6329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332  IFS=$as_save_IFS
6333  test -z "$as_dir" && as_dir=.
6334  for ac_exec_ext in '' $ac_executable_extensions; do
6335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338    break 2
6339  fi
6340done
6341done
6342IFS=$as_save_IFS
6343
6344  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6345  ;;
6346esac
6347fi
6348TAR=$ac_cv_path_TAR
6349if test -n "$TAR"; then
6350  { echo "$as_me:$LINENO: result: $TAR" >&5
6351echo "${ECHO_T}$TAR" >&6; }
6352else
6353  { echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6; }
6355fi
6356
6357
6358# Extract the first word of "pwd", so it can be a program name with args.
6359set dummy pwd; ac_word=$2
6360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362if test "${ac_cv_path_BINPWD+set}" = set; then
6363  echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365  case $BINPWD in
6366  [\\/]* | ?:[\\/]*)
6367  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6368  ;;
6369  *)
6370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373  IFS=$as_save_IFS
6374  test -z "$as_dir" && as_dir=.
6375  for ac_exec_ext in '' $ac_executable_extensions; do
6376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379    break 2
6380  fi
6381done
6382done
6383IFS=$as_save_IFS
6384
6385  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6386  ;;
6387esac
6388fi
6389BINPWD=$ac_cv_path_BINPWD
6390if test -n "$BINPWD"; then
6391  { echo "$as_me:$LINENO: result: $BINPWD" >&5
6392echo "${ECHO_T}$BINPWD" >&6; }
6393else
6394  { echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6; }
6396fi
6397
6398
6399
6400# Extract the first word of "Graphviz", so it can be a program name with args.
6401set dummy Graphviz; ac_word=$2
6402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6405  echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407  case $GRAPHVIZ in
6408  [\\/]* | ?:[\\/]*)
6409  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6410  ;;
6411  *)
6412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415  IFS=$as_save_IFS
6416  test -z "$as_dir" && as_dir=.
6417  for ac_exec_ext in '' $ac_executable_extensions; do
6418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6419    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421    break 2
6422  fi
6423done
6424done
6425IFS=$as_save_IFS
6426
6427  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6428  ;;
6429esac
6430fi
6431GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6432if test -n "$GRAPHVIZ"; then
6433  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6434echo "${ECHO_T}$GRAPHVIZ" >&6; }
6435else
6436  { echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6; }
6438fi
6439
6440
6441if test "$GRAPHVIZ" != "echo Graphviz" ; then
6442
6443cat >>confdefs.h <<\_ACEOF
6444#define HAVE_GRAPHVIZ 1
6445_ACEOF
6446
6447    if test "$llvm_cv_os_type" = "MingW" ; then
6448    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6449  fi
6450
6451cat >>confdefs.h <<_ACEOF
6452#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6453_ACEOF
6454
6455fi
6456# Extract the first word of "dot", so it can be a program name with args.
6457set dummy dot; ac_word=$2
6458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460if test "${ac_cv_path_DOT+set}" = set; then
6461  echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463  case $DOT in
6464  [\\/]* | ?:[\\/]*)
6465  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6466  ;;
6467  *)
6468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471  IFS=$as_save_IFS
6472  test -z "$as_dir" && as_dir=.
6473  for ac_exec_ext in '' $ac_executable_extensions; do
6474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6475    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477    break 2
6478  fi
6479done
6480done
6481IFS=$as_save_IFS
6482
6483  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6484  ;;
6485esac
6486fi
6487DOT=$ac_cv_path_DOT
6488if test -n "$DOT"; then
6489  { echo "$as_me:$LINENO: result: $DOT" >&5
6490echo "${ECHO_T}$DOT" >&6; }
6491else
6492  { echo "$as_me:$LINENO: result: no" >&5
6493echo "${ECHO_T}no" >&6; }
6494fi
6495
6496
6497if test "$DOT" != "echo dot" ; then
6498
6499cat >>confdefs.h <<\_ACEOF
6500#define HAVE_DOT 1
6501_ACEOF
6502
6503    if test "$llvm_cv_os_type" = "MingW" ; then
6504    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6505  fi
6506
6507cat >>confdefs.h <<_ACEOF
6508#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6509_ACEOF
6510
6511fi
6512# Extract the first word of "fdp", so it can be a program name with args.
6513set dummy fdp; ac_word=$2
6514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516if test "${ac_cv_path_FDP+set}" = set; then
6517  echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519  case $FDP in
6520  [\\/]* | ?:[\\/]*)
6521  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6522  ;;
6523  *)
6524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527  IFS=$as_save_IFS
6528  test -z "$as_dir" && as_dir=.
6529  for ac_exec_ext in '' $ac_executable_extensions; do
6530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6531    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533    break 2
6534  fi
6535done
6536done
6537IFS=$as_save_IFS
6538
6539  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6540  ;;
6541esac
6542fi
6543FDP=$ac_cv_path_FDP
6544if test -n "$FDP"; then
6545  { echo "$as_me:$LINENO: result: $FDP" >&5
6546echo "${ECHO_T}$FDP" >&6; }
6547else
6548  { echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6; }
6550fi
6551
6552
6553if test "$FDP" != "echo fdp" ; then
6554
6555cat >>confdefs.h <<\_ACEOF
6556#define HAVE_FDP 1
6557_ACEOF
6558
6559    if test "$llvm_cv_os_type" = "MingW" ; then
6560    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6561  fi
6562
6563cat >>confdefs.h <<_ACEOF
6564#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6565_ACEOF
6566
6567fi
6568# Extract the first word of "neato", so it can be a program name with args.
6569set dummy neato; ac_word=$2
6570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572if test "${ac_cv_path_NEATO+set}" = set; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575  case $NEATO in
6576  [\\/]* | ?:[\\/]*)
6577  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6578  ;;
6579  *)
6580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583  IFS=$as_save_IFS
6584  test -z "$as_dir" && as_dir=.
6585  for ac_exec_ext in '' $ac_executable_extensions; do
6586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589    break 2
6590  fi
6591done
6592done
6593IFS=$as_save_IFS
6594
6595  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6596  ;;
6597esac
6598fi
6599NEATO=$ac_cv_path_NEATO
6600if test -n "$NEATO"; then
6601  { echo "$as_me:$LINENO: result: $NEATO" >&5
6602echo "${ECHO_T}$NEATO" >&6; }
6603else
6604  { echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6; }
6606fi
6607
6608
6609if test "$NEATO" != "echo neato" ; then
6610
6611cat >>confdefs.h <<\_ACEOF
6612#define HAVE_NEATO 1
6613_ACEOF
6614
6615    if test "$llvm_cv_os_type" = "MingW" ; then
6616    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6617  fi
6618
6619cat >>confdefs.h <<_ACEOF
6620#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6621_ACEOF
6622
6623fi
6624# Extract the first word of "twopi", so it can be a program name with args.
6625set dummy twopi; ac_word=$2
6626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628if test "${ac_cv_path_TWOPI+set}" = set; then
6629  echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631  case $TWOPI in
6632  [\\/]* | ?:[\\/]*)
6633  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6634  ;;
6635  *)
6636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  test -z "$as_dir" && as_dir=.
6641  for ac_exec_ext in '' $ac_executable_extensions; do
6642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645    break 2
6646  fi
6647done
6648done
6649IFS=$as_save_IFS
6650
6651  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6652  ;;
6653esac
6654fi
6655TWOPI=$ac_cv_path_TWOPI
6656if test -n "$TWOPI"; then
6657  { echo "$as_me:$LINENO: result: $TWOPI" >&5
6658echo "${ECHO_T}$TWOPI" >&6; }
6659else
6660  { echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6; }
6662fi
6663
6664
6665if test "$TWOPI" != "echo twopi" ; then
6666
6667cat >>confdefs.h <<\_ACEOF
6668#define HAVE_TWOPI 1
6669_ACEOF
6670
6671    if test "$llvm_cv_os_type" = "MingW" ; then
6672    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6673  fi
6674
6675cat >>confdefs.h <<_ACEOF
6676#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6677_ACEOF
6678
6679fi
6680# Extract the first word of "circo", so it can be a program name with args.
6681set dummy circo; ac_word=$2
6682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684if test "${ac_cv_path_CIRCO+set}" = set; then
6685  echo $ECHO_N "(cached) $ECHO_C" >&6
6686else
6687  case $CIRCO in
6688  [\\/]* | ?:[\\/]*)
6689  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6690  ;;
6691  *)
6692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695  IFS=$as_save_IFS
6696  test -z "$as_dir" && as_dir=.
6697  for ac_exec_ext in '' $ac_executable_extensions; do
6698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6699    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701    break 2
6702  fi
6703done
6704done
6705IFS=$as_save_IFS
6706
6707  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6708  ;;
6709esac
6710fi
6711CIRCO=$ac_cv_path_CIRCO
6712if test -n "$CIRCO"; then
6713  { echo "$as_me:$LINENO: result: $CIRCO" >&5
6714echo "${ECHO_T}$CIRCO" >&6; }
6715else
6716  { echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6; }
6718fi
6719
6720
6721if test "$CIRCO" != "echo circo" ; then
6722
6723cat >>confdefs.h <<\_ACEOF
6724#define HAVE_CIRCO 1
6725_ACEOF
6726
6727    if test "$llvm_cv_os_type" = "MingW" ; then
6728    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6729  fi
6730
6731cat >>confdefs.h <<_ACEOF
6732#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6733_ACEOF
6734
6735fi
6736for ac_prog in gv gsview32
6737do
6738  # Extract the first word of "$ac_prog", so it can be a program name with args.
6739set dummy $ac_prog; ac_word=$2
6740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742if test "${ac_cv_path_GV+set}" = set; then
6743  echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745  case $GV in
6746  [\\/]* | ?:[\\/]*)
6747  ac_cv_path_GV="$GV" # Let the user override the test with a path.
6748  ;;
6749  *)
6750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753  IFS=$as_save_IFS
6754  test -z "$as_dir" && as_dir=.
6755  for ac_exec_ext in '' $ac_executable_extensions; do
6756  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759    break 2
6760  fi
6761done
6762done
6763IFS=$as_save_IFS
6764
6765  ;;
6766esac
6767fi
6768GV=$ac_cv_path_GV
6769if test -n "$GV"; then
6770  { echo "$as_me:$LINENO: result: $GV" >&5
6771echo "${ECHO_T}$GV" >&6; }
6772else
6773  { echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6; }
6775fi
6776
6777
6778  test -n "$GV" && break
6779done
6780test -n "$GV" || GV="echo gv"
6781
6782if test "$GV" != "echo gv" ; then
6783
6784cat >>confdefs.h <<\_ACEOF
6785#define HAVE_GV 1
6786_ACEOF
6787
6788    if test "$llvm_cv_os_type" = "MingW" ; then
6789    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6790  fi
6791
6792cat >>confdefs.h <<_ACEOF
6793#define LLVM_PATH_GV "$GV${EXEEXT}"
6794_ACEOF
6795
6796fi
6797# Extract the first word of "dotty", so it can be a program name with args.
6798set dummy dotty; ac_word=$2
6799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801if test "${ac_cv_path_DOTTY+set}" = set; then
6802  echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804  case $DOTTY in
6805  [\\/]* | ?:[\\/]*)
6806  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6807  ;;
6808  *)
6809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812  IFS=$as_save_IFS
6813  test -z "$as_dir" && as_dir=.
6814  for ac_exec_ext in '' $ac_executable_extensions; do
6815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6816    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818    break 2
6819  fi
6820done
6821done
6822IFS=$as_save_IFS
6823
6824  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6825  ;;
6826esac
6827fi
6828DOTTY=$ac_cv_path_DOTTY
6829if test -n "$DOTTY"; then
6830  { echo "$as_me:$LINENO: result: $DOTTY" >&5
6831echo "${ECHO_T}$DOTTY" >&6; }
6832else
6833  { echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6; }
6835fi
6836
6837
6838if test "$DOTTY" != "echo dotty" ; then
6839
6840cat >>confdefs.h <<\_ACEOF
6841#define HAVE_DOTTY 1
6842_ACEOF
6843
6844    if test "$llvm_cv_os_type" = "MingW" ; then
6845    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6846  fi
6847
6848cat >>confdefs.h <<_ACEOF
6849#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6850_ACEOF
6851
6852fi
6853# Extract the first word of "xdot.py", so it can be a program name with args.
6854set dummy xdot.py; ac_word=$2
6855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857if test "${ac_cv_path_XDOT_PY+set}" = set; then
6858  echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860  case $XDOT_PY in
6861  [\\/]* | ?:[\\/]*)
6862  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6863  ;;
6864  *)
6865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868  IFS=$as_save_IFS
6869  test -z "$as_dir" && as_dir=.
6870  for ac_exec_ext in '' $ac_executable_extensions; do
6871  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874    break 2
6875  fi
6876done
6877done
6878IFS=$as_save_IFS
6879
6880  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6881  ;;
6882esac
6883fi
6884XDOT_PY=$ac_cv_path_XDOT_PY
6885if test -n "$XDOT_PY"; then
6886  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6887echo "${ECHO_T}$XDOT_PY" >&6; }
6888else
6889  { echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6; }
6891fi
6892
6893
6894if test "$XDOT_PY" != "echo xdot.py" ; then
6895
6896cat >>confdefs.h <<\_ACEOF
6897#define HAVE_XDOT_PY 1
6898_ACEOF
6899
6900    if test "$llvm_cv_os_type" = "MingW" ; then
6901    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6902  fi
6903
6904cat >>confdefs.h <<_ACEOF
6905#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6906_ACEOF
6907
6908fi
6909
6910
6911# Extract the first word of "perl", so it can be a program name with args.
6912set dummy perl; ac_word=$2
6913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915if test "${ac_cv_path_PERL+set}" = set; then
6916  echo $ECHO_N "(cached) $ECHO_C" >&6
6917else
6918  case $PERL in
6919  [\\/]* | ?:[\\/]*)
6920  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6921  ;;
6922  *)
6923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926  IFS=$as_save_IFS
6927  test -z "$as_dir" && as_dir=.
6928  for ac_exec_ext in '' $ac_executable_extensions; do
6929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932    break 2
6933  fi
6934done
6935done
6936IFS=$as_save_IFS
6937
6938  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6939  ;;
6940esac
6941fi
6942PERL=$ac_cv_path_PERL
6943if test -n "$PERL"; then
6944  { echo "$as_me:$LINENO: result: $PERL" >&5
6945echo "${ECHO_T}$PERL" >&6; }
6946else
6947  { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
6949fi
6950
6951
6952if test "$PERL" != "none"; then
6953  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6954echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6955  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6956    { echo "$as_me:$LINENO: result: yes" >&5
6957echo "${ECHO_T}yes" >&6; }
6958  else
6959    PERL=none
6960    { echo "$as_me:$LINENO: result: not found" >&5
6961echo "${ECHO_T}not found" >&6; }
6962  fi
6963fi
6964
6965
6966if test x"$PERL" = xnone; then
6967   HAVE_PERL=0
6968
6969   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6970echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6971   { (exit 1); exit 1; }; }
6972else
6973   HAVE_PERL=1
6974
6975fi
6976
6977# Find a good install program.  We prefer a C program (faster),
6978# so one script is as good as another.  But avoid the broken or
6979# incompatible versions:
6980# SysV /etc/install, /usr/sbin/install
6981# SunOS /usr/etc/install
6982# IRIX /sbin/install
6983# AIX /bin/install
6984# AmigaOS /C/install, which installs bootblocks on floppy discs
6985# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6986# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6987# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6988# OS/2's system install, which has a completely different semantic
6989# ./install, which can be erroneously created by make from ./install.sh.
6990{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6991echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6992if test -z "$INSTALL"; then
6993if test "${ac_cv_path_install+set}" = set; then
6994  echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999  IFS=$as_save_IFS
7000  test -z "$as_dir" && as_dir=.
7001  # Account for people who put trailing slashes in PATH elements.
7002case $as_dir/ in
7003  ./ | .// | /cC/* | \
7004  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7005  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7006  /usr/ucb/* ) ;;
7007  *)
7008    # OSF1 and SCO ODT 3.0 have their own names for install.
7009    # Don't use installbsd from OSF since it installs stuff as root
7010    # by default.
7011    for ac_prog in ginstall scoinst install; do
7012      for ac_exec_ext in '' $ac_executable_extensions; do
7013	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7014	  if test $ac_prog = install &&
7015	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7016	    # AIX install.  It has an incompatible calling convention.
7017	    :
7018	  elif test $ac_prog = install &&
7019	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7020	    # program-specific install script used by HP pwplus--don't use.
7021	    :
7022	  else
7023	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7024	    break 3
7025	  fi
7026	fi
7027      done
7028    done
7029    ;;
7030esac
7031done
7032IFS=$as_save_IFS
7033
7034
7035fi
7036  if test "${ac_cv_path_install+set}" = set; then
7037    INSTALL=$ac_cv_path_install
7038  else
7039    # As a last resort, use the slow shell script.  Don't cache a
7040    # value for INSTALL within a source directory, because that will
7041    # break other packages using the cache if that directory is
7042    # removed, or if the value is a relative name.
7043    INSTALL=$ac_install_sh
7044  fi
7045fi
7046{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7047echo "${ECHO_T}$INSTALL" >&6; }
7048
7049# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7050# It thinks the first close brace ends the variable substitution.
7051test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7052
7053test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7054
7055test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7056
7057case "$INSTALL" in
7058 [\\/$]* | ?:[\\/]* ) ;;
7059 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7060esac
7061
7062# Extract the first word of "bzip2", so it can be a program name with args.
7063set dummy bzip2; ac_word=$2
7064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066if test "${ac_cv_path_BZIP2+set}" = set; then
7067  echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069  case $BZIP2 in
7070  [\\/]* | ?:[\\/]*)
7071  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7072  ;;
7073  *)
7074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077  IFS=$as_save_IFS
7078  test -z "$as_dir" && as_dir=.
7079  for ac_exec_ext in '' $ac_executable_extensions; do
7080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7081    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083    break 2
7084  fi
7085done
7086done
7087IFS=$as_save_IFS
7088
7089  ;;
7090esac
7091fi
7092BZIP2=$ac_cv_path_BZIP2
7093if test -n "$BZIP2"; then
7094  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7095echo "${ECHO_T}$BZIP2" >&6; }
7096else
7097  { echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6; }
7099fi
7100
7101
7102# Extract the first word of "cat", so it can be a program name with args.
7103set dummy cat; ac_word=$2
7104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106if test "${ac_cv_path_CAT+set}" = set; then
7107  echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109  case $CAT in
7110  [\\/]* | ?:[\\/]*)
7111  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7112  ;;
7113  *)
7114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119  for ac_exec_ext in '' $ac_executable_extensions; do
7120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126done
7127IFS=$as_save_IFS
7128
7129  ;;
7130esac
7131fi
7132CAT=$ac_cv_path_CAT
7133if test -n "$CAT"; then
7134  { echo "$as_me:$LINENO: result: $CAT" >&5
7135echo "${ECHO_T}$CAT" >&6; }
7136else
7137  { echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6; }
7139fi
7140
7141
7142# Extract the first word of "doxygen", so it can be a program name with args.
7143set dummy doxygen; ac_word=$2
7144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7146if test "${ac_cv_path_DOXYGEN+set}" = set; then
7147  echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149  case $DOXYGEN in
7150  [\\/]* | ?:[\\/]*)
7151  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7152  ;;
7153  *)
7154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159  for ac_exec_ext in '' $ac_executable_extensions; do
7160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7161    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166done
7167IFS=$as_save_IFS
7168
7169  ;;
7170esac
7171fi
7172DOXYGEN=$ac_cv_path_DOXYGEN
7173if test -n "$DOXYGEN"; then
7174  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7175echo "${ECHO_T}$DOXYGEN" >&6; }
7176else
7177  { echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6; }
7179fi
7180
7181
7182# Extract the first word of "groff", so it can be a program name with args.
7183set dummy groff; ac_word=$2
7184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186if test "${ac_cv_path_GROFF+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189  case $GROFF in
7190  [\\/]* | ?:[\\/]*)
7191  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7192  ;;
7193  *)
7194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199  for ac_exec_ext in '' $ac_executable_extensions; do
7200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7201    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206done
7207IFS=$as_save_IFS
7208
7209  ;;
7210esac
7211fi
7212GROFF=$ac_cv_path_GROFF
7213if test -n "$GROFF"; then
7214  { echo "$as_me:$LINENO: result: $GROFF" >&5
7215echo "${ECHO_T}$GROFF" >&6; }
7216else
7217  { echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6; }
7219fi
7220
7221
7222# Extract the first word of "gzip", so it can be a program name with args.
7223set dummy gzip; ac_word=$2
7224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226if test "${ac_cv_path_GZIPBIN+set}" = set; then
7227  echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229  case $GZIPBIN in
7230  [\\/]* | ?:[\\/]*)
7231  ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7232  ;;
7233  *)
7234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239  for ac_exec_ext in '' $ac_executable_extensions; do
7240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241    ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246done
7247IFS=$as_save_IFS
7248
7249  ;;
7250esac
7251fi
7252GZIPBIN=$ac_cv_path_GZIPBIN
7253if test -n "$GZIPBIN"; then
7254  { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7255echo "${ECHO_T}$GZIPBIN" >&6; }
7256else
7257  { echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6; }
7259fi
7260
7261
7262# Extract the first word of "pod2html", so it can be a program name with args.
7263set dummy pod2html; ac_word=$2
7264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_path_POD2HTML+set}" = set; then
7267  echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269  case $POD2HTML in
7270  [\\/]* | ?:[\\/]*)
7271  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7272  ;;
7273  *)
7274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277  IFS=$as_save_IFS
7278  test -z "$as_dir" && as_dir=.
7279  for ac_exec_ext in '' $ac_executable_extensions; do
7280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283    break 2
7284  fi
7285done
7286done
7287IFS=$as_save_IFS
7288
7289  ;;
7290esac
7291fi
7292POD2HTML=$ac_cv_path_POD2HTML
7293if test -n "$POD2HTML"; then
7294  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7295echo "${ECHO_T}$POD2HTML" >&6; }
7296else
7297  { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
7299fi
7300
7301
7302# Extract the first word of "pod2man", so it can be a program name with args.
7303set dummy pod2man; ac_word=$2
7304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306if test "${ac_cv_path_POD2MAN+set}" = set; then
7307  echo $ECHO_N "(cached) $ECHO_C" >&6
7308else
7309  case $POD2MAN in
7310  [\\/]* | ?:[\\/]*)
7311  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7312  ;;
7313  *)
7314  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317  IFS=$as_save_IFS
7318  test -z "$as_dir" && as_dir=.
7319  for ac_exec_ext in '' $ac_executable_extensions; do
7320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323    break 2
7324  fi
7325done
7326done
7327IFS=$as_save_IFS
7328
7329  ;;
7330esac
7331fi
7332POD2MAN=$ac_cv_path_POD2MAN
7333if test -n "$POD2MAN"; then
7334  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7335echo "${ECHO_T}$POD2MAN" >&6; }
7336else
7337  { echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6; }
7339fi
7340
7341
7342# Extract the first word of "pdfroff", so it can be a program name with args.
7343set dummy pdfroff; ac_word=$2
7344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_path_PDFROFF+set}" = set; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  case $PDFROFF in
7350  [\\/]* | ?:[\\/]*)
7351  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7352  ;;
7353  *)
7354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359  for ac_exec_ext in '' $ac_executable_extensions; do
7360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366done
7367IFS=$as_save_IFS
7368
7369  ;;
7370esac
7371fi
7372PDFROFF=$ac_cv_path_PDFROFF
7373if test -n "$PDFROFF"; then
7374  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7375echo "${ECHO_T}$PDFROFF" >&6; }
7376else
7377  { echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6; }
7379fi
7380
7381
7382# Extract the first word of "runtest", so it can be a program name with args.
7383set dummy runtest; ac_word=$2
7384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386if test "${ac_cv_path_RUNTEST+set}" = set; then
7387  echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389  case $RUNTEST in
7390  [\\/]* | ?:[\\/]*)
7391  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7392  ;;
7393  *)
7394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395for as_dir in $PATH
7396do
7397  IFS=$as_save_IFS
7398  test -z "$as_dir" && as_dir=.
7399  for ac_exec_ext in '' $ac_executable_extensions; do
7400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7401    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403    break 2
7404  fi
7405done
7406done
7407IFS=$as_save_IFS
7408
7409  ;;
7410esac
7411fi
7412RUNTEST=$ac_cv_path_RUNTEST
7413if test -n "$RUNTEST"; then
7414  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7415echo "${ECHO_T}$RUNTEST" >&6; }
7416else
7417  { echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6; }
7419fi
7420
7421
7422
7423no_itcl=true
7424{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7425echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7426
7427# Check whether --with-tclinclude was given.
7428if test "${with_tclinclude+set}" = set; then
7429  withval=$with_tclinclude; with_tclinclude=${withval}
7430else
7431  with_tclinclude=''
7432fi
7433
7434if test "${ac_cv_path_tclsh+set}" = set; then
7435  echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437
7438if test x"${with_tclinclude}" != x ; then
7439  if test -f ${with_tclinclude}/tclsh ; then
7440    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7441  elif test -f ${with_tclinclude}/src/tclsh ; then
7442    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7443  else
7444    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7445echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7446   { (exit 1); exit 1; }; }
7447  fi
7448fi
7449fi
7450
7451
7452if test x"${ac_cv_path_tclsh}" = x ; then
7453  { echo "$as_me:$LINENO: result: none" >&5
7454echo "${ECHO_T}none" >&6; }
7455  for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7456do
7457  # Extract the first word of "$ac_prog", so it can be a program name with args.
7458set dummy $ac_prog; ac_word=$2
7459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_path_TCLSH+set}" = set; then
7462  echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464  case $TCLSH in
7465  [\\/]* | ?:[\\/]*)
7466  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7467  ;;
7468  *)
7469  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472  IFS=$as_save_IFS
7473  test -z "$as_dir" && as_dir=.
7474  for ac_exec_ext in '' $ac_executable_extensions; do
7475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478    break 2
7479  fi
7480done
7481done
7482IFS=$as_save_IFS
7483
7484  ;;
7485esac
7486fi
7487TCLSH=$ac_cv_path_TCLSH
7488if test -n "$TCLSH"; then
7489  { echo "$as_me:$LINENO: result: $TCLSH" >&5
7490echo "${ECHO_T}$TCLSH" >&6; }
7491else
7492  { echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6; }
7494fi
7495
7496
7497  test -n "$TCLSH" && break
7498done
7499
7500  if test x"${TCLSH}" = x ; then
7501    ac_cv_path_tclsh='';
7502  else
7503    ac_cv_path_tclsh="${TCLSH}";
7504  fi
7505else
7506  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7507echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7508  TCLSH="${ac_cv_path_tclsh}"
7509
7510fi
7511
7512# Extract the first word of "zip", so it can be a program name with args.
7513set dummy zip; ac_word=$2
7514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516if test "${ac_cv_path_ZIP+set}" = set; then
7517  echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519  case $ZIP in
7520  [\\/]* | ?:[\\/]*)
7521  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7522  ;;
7523  *)
7524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527  IFS=$as_save_IFS
7528  test -z "$as_dir" && as_dir=.
7529  for ac_exec_ext in '' $ac_executable_extensions; do
7530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533    break 2
7534  fi
7535done
7536done
7537IFS=$as_save_IFS
7538
7539  ;;
7540esac
7541fi
7542ZIP=$ac_cv_path_ZIP
7543if test -n "$ZIP"; then
7544  { echo "$as_me:$LINENO: result: $ZIP" >&5
7545echo "${ECHO_T}$ZIP" >&6; }
7546else
7547  { echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6; }
7549fi
7550
7551
7552for ac_prog in ocamlc
7553do
7554  # Extract the first word of "$ac_prog", so it can be a program name with args.
7555set dummy $ac_prog; ac_word=$2
7556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7558if test "${ac_cv_path_OCAMLC+set}" = set; then
7559  echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561  case $OCAMLC in
7562  [\\/]* | ?:[\\/]*)
7563  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7564  ;;
7565  *)
7566  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569  IFS=$as_save_IFS
7570  test -z "$as_dir" && as_dir=.
7571  for ac_exec_ext in '' $ac_executable_extensions; do
7572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7573    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575    break 2
7576  fi
7577done
7578done
7579IFS=$as_save_IFS
7580
7581  ;;
7582esac
7583fi
7584OCAMLC=$ac_cv_path_OCAMLC
7585if test -n "$OCAMLC"; then
7586  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7587echo "${ECHO_T}$OCAMLC" >&6; }
7588else
7589  { echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6; }
7591fi
7592
7593
7594  test -n "$OCAMLC" && break
7595done
7596
7597for ac_prog in ocamlopt
7598do
7599  # Extract the first word of "$ac_prog", so it can be a program name with args.
7600set dummy $ac_prog; ac_word=$2
7601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7604  echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606  case $OCAMLOPT in
7607  [\\/]* | ?:[\\/]*)
7608  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7609  ;;
7610  *)
7611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614  IFS=$as_save_IFS
7615  test -z "$as_dir" && as_dir=.
7616  for ac_exec_ext in '' $ac_executable_extensions; do
7617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7618    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620    break 2
7621  fi
7622done
7623done
7624IFS=$as_save_IFS
7625
7626  ;;
7627esac
7628fi
7629OCAMLOPT=$ac_cv_path_OCAMLOPT
7630if test -n "$OCAMLOPT"; then
7631  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7632echo "${ECHO_T}$OCAMLOPT" >&6; }
7633else
7634  { echo "$as_me:$LINENO: result: no" >&5
7635echo "${ECHO_T}no" >&6; }
7636fi
7637
7638
7639  test -n "$OCAMLOPT" && break
7640done
7641
7642for ac_prog in ocamldep
7643do
7644  # Extract the first word of "$ac_prog", so it can be a program name with args.
7645set dummy $ac_prog; ac_word=$2
7646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7649  echo $ECHO_N "(cached) $ECHO_C" >&6
7650else
7651  case $OCAMLDEP in
7652  [\\/]* | ?:[\\/]*)
7653  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7654  ;;
7655  *)
7656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659  IFS=$as_save_IFS
7660  test -z "$as_dir" && as_dir=.
7661  for ac_exec_ext in '' $ac_executable_extensions; do
7662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7663    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665    break 2
7666  fi
7667done
7668done
7669IFS=$as_save_IFS
7670
7671  ;;
7672esac
7673fi
7674OCAMLDEP=$ac_cv_path_OCAMLDEP
7675if test -n "$OCAMLDEP"; then
7676  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7677echo "${ECHO_T}$OCAMLDEP" >&6; }
7678else
7679  { echo "$as_me:$LINENO: result: no" >&5
7680echo "${ECHO_T}no" >&6; }
7681fi
7682
7683
7684  test -n "$OCAMLDEP" && break
7685done
7686
7687for ac_prog in ocamldoc
7688do
7689  # Extract the first word of "$ac_prog", so it can be a program name with args.
7690set dummy $ac_prog; ac_word=$2
7691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7693if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7694  echo $ECHO_N "(cached) $ECHO_C" >&6
7695else
7696  case $OCAMLDOC in
7697  [\\/]* | ?:[\\/]*)
7698  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7699  ;;
7700  *)
7701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704  IFS=$as_save_IFS
7705  test -z "$as_dir" && as_dir=.
7706  for ac_exec_ext in '' $ac_executable_extensions; do
7707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7708    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7710    break 2
7711  fi
7712done
7713done
7714IFS=$as_save_IFS
7715
7716  ;;
7717esac
7718fi
7719OCAMLDOC=$ac_cv_path_OCAMLDOC
7720if test -n "$OCAMLDOC"; then
7721  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7722echo "${ECHO_T}$OCAMLDOC" >&6; }
7723else
7724  { echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6; }
7726fi
7727
7728
7729  test -n "$OCAMLDOC" && break
7730done
7731
7732for ac_prog in gas as
7733do
7734  # Extract the first word of "$ac_prog", so it can be a program name with args.
7735set dummy $ac_prog; ac_word=$2
7736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7738if test "${ac_cv_path_GAS+set}" = set; then
7739  echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
7741  case $GAS in
7742  [\\/]* | ?:[\\/]*)
7743  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7744  ;;
7745  *)
7746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749  IFS=$as_save_IFS
7750  test -z "$as_dir" && as_dir=.
7751  for ac_exec_ext in '' $ac_executable_extensions; do
7752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7753    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7754    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755    break 2
7756  fi
7757done
7758done
7759IFS=$as_save_IFS
7760
7761  ;;
7762esac
7763fi
7764GAS=$ac_cv_path_GAS
7765if test -n "$GAS"; then
7766  { echo "$as_me:$LINENO: result: $GAS" >&5
7767echo "${ECHO_T}$GAS" >&6; }
7768else
7769  { echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6; }
7771fi
7772
7773
7774  test -n "$GAS" && break
7775done
7776
7777
7778{ echo "$as_me:$LINENO: checking for linker version" >&5
7779echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7780if test "${llvm_cv_link_version+set}" = set; then
7781  echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783
7784   version_string="$(ld -v 2>&1 | head -1)"
7785
7786   # Check for ld64.
7787   if (echo "$version_string" | grep -q "ld64"); then
7788     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7789   else
7790     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7791   fi
7792
7793fi
7794{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7795echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7796
7797cat >>confdefs.h <<_ACEOF
7798#define HOST_LINK_VERSION "$llvm_cv_link_version"
7799_ACEOF
7800
7801
7802
7803{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7804echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7805if test "${llvm_cv_link_use_r+set}" = set; then
7806  echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808   ac_ext=c
7809ac_cpp='$CPP $CPPFLAGS'
7810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813
7814  oldcflags="$CFLAGS"
7815  CFLAGS="$CFLAGS -Wl,-R."
7816  cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h.  */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
7821/* end confdefs.h.  */
7822
7823int
7824main ()
7825{
7826
7827  ;
7828  return 0;
7829}
7830_ACEOF
7831rm -f conftest.$ac_objext conftest$ac_exeext
7832if { (ac_try="$ac_link"
7833case "(($ac_try" in
7834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835  *) ac_try_echo=$ac_try;;
7836esac
7837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838  (eval "$ac_link") 2>conftest.er1
7839  ac_status=$?
7840  grep -v '^ *+' conftest.er1 >conftest.err
7841  rm -f conftest.er1
7842  cat conftest.err >&5
7843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844  (exit $ac_status); } &&
7845	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7846  { (case "(($ac_try" in
7847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848  *) ac_try_echo=$ac_try;;
7849esac
7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851  (eval "$ac_try") 2>&5
7852  ac_status=$?
7853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854  (exit $ac_status); }; } &&
7855	 { ac_try='test -s conftest$ac_exeext'
7856  { (case "(($ac_try" in
7857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858  *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861  (eval "$ac_try") 2>&5
7862  ac_status=$?
7863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864  (exit $ac_status); }; }; then
7865  llvm_cv_link_use_r=yes
7866else
7867  echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870	llvm_cv_link_use_r=no
7871fi
7872
7873rm -f core conftest.err conftest.$ac_objext \
7874      conftest$ac_exeext conftest.$ac_ext
7875  CFLAGS="$oldcflags"
7876  ac_ext=c
7877ac_cpp='$CPP $CPPFLAGS'
7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881
7882
7883fi
7884{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7885echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7886if test "$llvm_cv_link_use_r" = yes ; then
7887
7888cat >>confdefs.h <<\_ACEOF
7889#define HAVE_LINK_R 1
7890_ACEOF
7891
7892  fi
7893
7894
7895{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7896echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7897if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7898  echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900   ac_ext=c
7901ac_cpp='$CPP $CPPFLAGS'
7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906  oldcflags="$CFLAGS"
7907  CFLAGS="$CFLAGS -Wl,-export-dynamic"
7908  cat >conftest.$ac_ext <<_ACEOF
7909/* confdefs.h.  */
7910_ACEOF
7911cat confdefs.h >>conftest.$ac_ext
7912cat >>conftest.$ac_ext <<_ACEOF
7913/* end confdefs.h.  */
7914
7915int
7916main ()
7917{
7918
7919  ;
7920  return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext conftest$ac_exeext
7924if { (ac_try="$ac_link"
7925case "(($ac_try" in
7926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927  *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930  (eval "$ac_link") 2>conftest.er1
7931  ac_status=$?
7932  grep -v '^ *+' conftest.er1 >conftest.err
7933  rm -f conftest.er1
7934  cat conftest.err >&5
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); } &&
7937	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7938  { (case "(($ac_try" in
7939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940  *) ac_try_echo=$ac_try;;
7941esac
7942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943  (eval "$ac_try") 2>&5
7944  ac_status=$?
7945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946  (exit $ac_status); }; } &&
7947	 { ac_try='test -s conftest$ac_exeext'
7948  { (case "(($ac_try" in
7949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950  *) ac_try_echo=$ac_try;;
7951esac
7952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953  (eval "$ac_try") 2>&5
7954  ac_status=$?
7955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956  (exit $ac_status); }; }; then
7957  llvm_cv_link_use_export_dynamic=yes
7958else
7959  echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
7962	llvm_cv_link_use_export_dynamic=no
7963fi
7964
7965rm -f core conftest.err conftest.$ac_objext \
7966      conftest$ac_exeext conftest.$ac_ext
7967  CFLAGS="$oldcflags"
7968  ac_ext=c
7969ac_cpp='$CPP $CPPFLAGS'
7970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972ac_compiler_gnu=$ac_cv_c_compiler_gnu
7973
7974
7975fi
7976{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7977echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7978if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7979
7980cat >>confdefs.h <<\_ACEOF
7981#define HAVE_LINK_EXPORT_DYNAMIC 1
7982_ACEOF
7983
7984  fi
7985
7986
7987{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7988echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7989if test "${llvm_cv_link_use_version_script+set}" = set; then
7990  echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992   ac_ext=c
7993ac_cpp='$CPP $CPPFLAGS'
7994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7996ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997
7998  oldcflags="$CFLAGS"
7999
8000  # The following code is from the autoconf manual,
8001  # "11.13: Limitations of Usual Tools".
8002  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8003  # Use mktemp if possible; otherwise fall back on mkdir,
8004  # with $RANDOM to make collisions less likely.
8005  : ${TMPDIR=/tmp}
8006  {
8007    tmp=`
8008      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8009    ` &&
8010    test -n "$tmp" && test -d "$tmp"
8011  } || {
8012    tmp=$TMPDIR/foo$$-$RANDOM
8013    (umask 077 && mkdir "$tmp")
8014  } || exit $?
8015
8016  echo "{" > "$tmp/export.map"
8017  echo "  global: main;" >> "$tmp/export.map"
8018  echo "  local: *;" >> "$tmp/export.map"
8019  echo "};" >> "$tmp/export.map"
8020
8021  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8022  cat >conftest.$ac_ext <<_ACEOF
8023/* confdefs.h.  */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h.  */
8028
8029int
8030main ()
8031{
8032
8033  ;
8034  return 0;
8035}
8036_ACEOF
8037rm -f conftest.$ac_objext conftest$ac_exeext
8038if { (ac_try="$ac_link"
8039case "(($ac_try" in
8040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041  *) ac_try_echo=$ac_try;;
8042esac
8043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044  (eval "$ac_link") 2>conftest.er1
8045  ac_status=$?
8046  grep -v '^ *+' conftest.er1 >conftest.err
8047  rm -f conftest.er1
8048  cat conftest.err >&5
8049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050  (exit $ac_status); } &&
8051	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8052  { (case "(($ac_try" in
8053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054  *) ac_try_echo=$ac_try;;
8055esac
8056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057  (eval "$ac_try") 2>&5
8058  ac_status=$?
8059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060  (exit $ac_status); }; } &&
8061	 { ac_try='test -s conftest$ac_exeext'
8062  { (case "(($ac_try" in
8063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064  *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067  (eval "$ac_try") 2>&5
8068  ac_status=$?
8069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070  (exit $ac_status); }; }; then
8071  llvm_cv_link_use_version_script=yes
8072else
8073  echo "$as_me: failed program was:" >&5
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
8076	llvm_cv_link_use_version_script=no
8077fi
8078
8079rm -f core conftest.err conftest.$ac_objext \
8080      conftest$ac_exeext conftest.$ac_ext
8081  rm "$tmp/export.map"
8082  rmdir "$tmp"
8083  CFLAGS="$oldcflags"
8084  ac_ext=c
8085ac_cpp='$CPP $CPPFLAGS'
8086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8088ac_compiler_gnu=$ac_cv_c_compiler_gnu
8089
8090
8091fi
8092{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8093echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8094if test "$llvm_cv_link_use_version_script" = yes ; then
8095  HAVE_LINK_VERSION_SCRIPT=1
8096
8097  fi
8098
8099
8100
8101
8102{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8103echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8104if test "${ac_cv_c_const+set}" = set; then
8105  echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107  cat >conftest.$ac_ext <<_ACEOF
8108/* confdefs.h.  */
8109_ACEOF
8110cat confdefs.h >>conftest.$ac_ext
8111cat >>conftest.$ac_ext <<_ACEOF
8112/* end confdefs.h.  */
8113
8114int
8115main ()
8116{
8117/* FIXME: Include the comments suggested by Paul. */
8118#ifndef __cplusplus
8119  /* Ultrix mips cc rejects this.  */
8120  typedef int charset[2];
8121  const charset x;
8122  /* SunOS 4.1.1 cc rejects this.  */
8123  char const *const *ccp;
8124  char **p;
8125  /* NEC SVR4.0.2 mips cc rejects this.  */
8126  struct point {int x, y;};
8127  static struct point const zero = {0,0};
8128  /* AIX XL C 1.02.0.0 rejects this.
8129     It does not let you subtract one const X* pointer from another in
8130     an arm of an if-expression whose if-part is not a constant
8131     expression */
8132  const char *g = "string";
8133  ccp = &g + (g ? g-g : 0);
8134  /* HPUX 7.0 cc rejects these. */
8135  ++ccp;
8136  p = (char**) ccp;
8137  ccp = (char const *const *) p;
8138  { /* SCO 3.2v4 cc rejects this.  */
8139    char *t;
8140    char const *s = 0 ? (char *) 0 : (char const *) 0;
8141
8142    *t++ = 0;
8143    if (s) return 0;
8144  }
8145  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8146    int x[] = {25, 17};
8147    const int *foo = &x[0];
8148    ++foo;
8149  }
8150  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8151    typedef const int *iptr;
8152    iptr p = 0;
8153    ++p;
8154  }
8155  { /* AIX XL C 1.02.0.0 rejects this saying
8156       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8157    struct s { int j; const int *ap[3]; };
8158    struct s *b; b->j = 5;
8159  }
8160  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8161    const int foo = 10;
8162    if (!foo) return 0;
8163  }
8164  return !x[0] && !zero.x;
8165#endif
8166
8167  ;
8168  return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext
8172if { (ac_try="$ac_compile"
8173case "(($ac_try" in
8174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175  *) ac_try_echo=$ac_try;;
8176esac
8177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178  (eval "$ac_compile") 2>conftest.er1
8179  ac_status=$?
8180  grep -v '^ *+' conftest.er1 >conftest.err
8181  rm -f conftest.er1
8182  cat conftest.err >&5
8183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184  (exit $ac_status); } &&
8185	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8186  { (case "(($ac_try" in
8187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188  *) ac_try_echo=$ac_try;;
8189esac
8190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191  (eval "$ac_try") 2>&5
8192  ac_status=$?
8193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194  (exit $ac_status); }; } &&
8195	 { ac_try='test -s conftest.$ac_objext'
8196  { (case "(($ac_try" in
8197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198  *) ac_try_echo=$ac_try;;
8199esac
8200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201  (eval "$ac_try") 2>&5
8202  ac_status=$?
8203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204  (exit $ac_status); }; }; then
8205  ac_cv_c_const=yes
8206else
8207  echo "$as_me: failed program was:" >&5
8208sed 's/^/| /' conftest.$ac_ext >&5
8209
8210	ac_cv_c_const=no
8211fi
8212
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214fi
8215{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8216echo "${ECHO_T}$ac_cv_c_const" >&6; }
8217if test $ac_cv_c_const = no; then
8218
8219cat >>confdefs.h <<\_ACEOF
8220#define const
8221_ACEOF
8222
8223fi
8224
8225
8226
8227
8228
8229
8230ac_header_dirent=no
8231for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8232  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8233{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8234echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8236  echo $ECHO_N "(cached) $ECHO_C" >&6
8237else
8238  cat >conftest.$ac_ext <<_ACEOF
8239/* confdefs.h.  */
8240_ACEOF
8241cat confdefs.h >>conftest.$ac_ext
8242cat >>conftest.$ac_ext <<_ACEOF
8243/* end confdefs.h.  */
8244#include <sys/types.h>
8245#include <$ac_hdr>
8246
8247int
8248main ()
8249{
8250if ((DIR *) 0)
8251return 0;
8252  ;
8253  return 0;
8254}
8255_ACEOF
8256rm -f conftest.$ac_objext
8257if { (ac_try="$ac_compile"
8258case "(($ac_try" in
8259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260  *) ac_try_echo=$ac_try;;
8261esac
8262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263  (eval "$ac_compile") 2>conftest.er1
8264  ac_status=$?
8265  grep -v '^ *+' conftest.er1 >conftest.err
8266  rm -f conftest.er1
8267  cat conftest.err >&5
8268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269  (exit $ac_status); } &&
8270	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8271  { (case "(($ac_try" in
8272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273  *) ac_try_echo=$ac_try;;
8274esac
8275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276  (eval "$ac_try") 2>&5
8277  ac_status=$?
8278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279  (exit $ac_status); }; } &&
8280	 { ac_try='test -s conftest.$ac_objext'
8281  { (case "(($ac_try" in
8282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283  *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286  (eval "$ac_try") 2>&5
8287  ac_status=$?
8288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289  (exit $ac_status); }; }; then
8290  eval "$as_ac_Header=yes"
8291else
8292  echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295	eval "$as_ac_Header=no"
8296fi
8297
8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299fi
8300ac_res=`eval echo '${'$as_ac_Header'}'`
8301	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8302echo "${ECHO_T}$ac_res" >&6; }
8303if test `eval echo '${'$as_ac_Header'}'` = yes; then
8304  cat >>confdefs.h <<_ACEOF
8305#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8306_ACEOF
8307
8308ac_header_dirent=$ac_hdr; break
8309fi
8310
8311done
8312# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8313if test $ac_header_dirent = dirent.h; then
8314  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316if test "${ac_cv_search_opendir+set}" = set; then
8317  echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319  ac_func_search_save_LIBS=$LIBS
8320cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h.  */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h.  */
8326
8327/* Override any GCC internal prototype to avoid an error.
8328   Use char because int might match the return type of a GCC
8329   builtin and then its argument prototype would still apply.  */
8330#ifdef __cplusplus
8331extern "C"
8332#endif
8333char opendir ();
8334int
8335main ()
8336{
8337return opendir ();
8338  ;
8339  return 0;
8340}
8341_ACEOF
8342for ac_lib in '' dir; do
8343  if test -z "$ac_lib"; then
8344    ac_res="none required"
8345  else
8346    ac_res=-l$ac_lib
8347    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8348  fi
8349  rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (ac_try="$ac_link"
8351case "(($ac_try" in
8352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353  *) ac_try_echo=$ac_try;;
8354esac
8355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356  (eval "$ac_link") 2>conftest.er1
8357  ac_status=$?
8358  grep -v '^ *+' conftest.er1 >conftest.err
8359  rm -f conftest.er1
8360  cat conftest.err >&5
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); } &&
8363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364  { (case "(($ac_try" in
8365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366  *) ac_try_echo=$ac_try;;
8367esac
8368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369  (eval "$ac_try") 2>&5
8370  ac_status=$?
8371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372  (exit $ac_status); }; } &&
8373	 { ac_try='test -s conftest$ac_exeext'
8374  { (case "(($ac_try" in
8375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376  *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379  (eval "$ac_try") 2>&5
8380  ac_status=$?
8381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382  (exit $ac_status); }; }; then
8383  ac_cv_search_opendir=$ac_res
8384else
8385  echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388
8389fi
8390
8391rm -f core conftest.err conftest.$ac_objext \
8392      conftest$ac_exeext
8393  if test "${ac_cv_search_opendir+set}" = set; then
8394  break
8395fi
8396done
8397if test "${ac_cv_search_opendir+set}" = set; then
8398  :
8399else
8400  ac_cv_search_opendir=no
8401fi
8402rm conftest.$ac_ext
8403LIBS=$ac_func_search_save_LIBS
8404fi
8405{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8407ac_res=$ac_cv_search_opendir
8408if test "$ac_res" != no; then
8409  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8410
8411fi
8412
8413else
8414  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8415echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8416if test "${ac_cv_search_opendir+set}" = set; then
8417  echo $ECHO_N "(cached) $ECHO_C" >&6
8418else
8419  ac_func_search_save_LIBS=$LIBS
8420cat >conftest.$ac_ext <<_ACEOF
8421/* confdefs.h.  */
8422_ACEOF
8423cat confdefs.h >>conftest.$ac_ext
8424cat >>conftest.$ac_ext <<_ACEOF
8425/* end confdefs.h.  */
8426
8427/* Override any GCC internal prototype to avoid an error.
8428   Use char because int might match the return type of a GCC
8429   builtin and then its argument prototype would still apply.  */
8430#ifdef __cplusplus
8431extern "C"
8432#endif
8433char opendir ();
8434int
8435main ()
8436{
8437return opendir ();
8438  ;
8439  return 0;
8440}
8441_ACEOF
8442for ac_lib in '' x; do
8443  if test -z "$ac_lib"; then
8444    ac_res="none required"
8445  else
8446    ac_res=-l$ac_lib
8447    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8448  fi
8449  rm -f conftest.$ac_objext conftest$ac_exeext
8450if { (ac_try="$ac_link"
8451case "(($ac_try" in
8452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453  *) ac_try_echo=$ac_try;;
8454esac
8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456  (eval "$ac_link") 2>conftest.er1
8457  ac_status=$?
8458  grep -v '^ *+' conftest.er1 >conftest.err
8459  rm -f conftest.er1
8460  cat conftest.err >&5
8461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462  (exit $ac_status); } &&
8463	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8464  { (case "(($ac_try" in
8465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466  *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469  (eval "$ac_try") 2>&5
8470  ac_status=$?
8471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472  (exit $ac_status); }; } &&
8473	 { ac_try='test -s conftest$ac_exeext'
8474  { (case "(($ac_try" in
8475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476  *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479  (eval "$ac_try") 2>&5
8480  ac_status=$?
8481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482  (exit $ac_status); }; }; then
8483  ac_cv_search_opendir=$ac_res
8484else
8485  echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488
8489fi
8490
8491rm -f core conftest.err conftest.$ac_objext \
8492      conftest$ac_exeext
8493  if test "${ac_cv_search_opendir+set}" = set; then
8494  break
8495fi
8496done
8497if test "${ac_cv_search_opendir+set}" = set; then
8498  :
8499else
8500  ac_cv_search_opendir=no
8501fi
8502rm conftest.$ac_ext
8503LIBS=$ac_func_search_save_LIBS
8504fi
8505{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8506echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8507ac_res=$ac_cv_search_opendir
8508if test "$ac_res" != no; then
8509  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8510
8511fi
8512
8513fi
8514
8515
8516for ac_header in dlfcn.h
8517do
8518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8523  echo $ECHO_N "(cached) $ECHO_C" >&6
8524fi
8525ac_res=`eval echo '${'$as_ac_Header'}'`
8526	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8527echo "${ECHO_T}$ac_res" >&6; }
8528else
8529  # Is the header compilable?
8530{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8532cat >conftest.$ac_ext <<_ACEOF
8533/* confdefs.h.  */
8534_ACEOF
8535cat confdefs.h >>conftest.$ac_ext
8536cat >>conftest.$ac_ext <<_ACEOF
8537/* end confdefs.h.  */
8538$ac_includes_default
8539#include <$ac_header>
8540_ACEOF
8541rm -f conftest.$ac_objext
8542if { (ac_try="$ac_compile"
8543case "(($ac_try" in
8544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545  *) ac_try_echo=$ac_try;;
8546esac
8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548  (eval "$ac_compile") 2>conftest.er1
8549  ac_status=$?
8550  grep -v '^ *+' conftest.er1 >conftest.err
8551  rm -f conftest.er1
8552  cat conftest.err >&5
8553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554  (exit $ac_status); } &&
8555	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8556  { (case "(($ac_try" in
8557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558  *) ac_try_echo=$ac_try;;
8559esac
8560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561  (eval "$ac_try") 2>&5
8562  ac_status=$?
8563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564  (exit $ac_status); }; } &&
8565	 { ac_try='test -s conftest.$ac_objext'
8566  { (case "(($ac_try" in
8567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568  *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571  (eval "$ac_try") 2>&5
8572  ac_status=$?
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); }; }; then
8575  ac_header_compiler=yes
8576else
8577  echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580	ac_header_compiler=no
8581fi
8582
8583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8585echo "${ECHO_T}$ac_header_compiler" >&6; }
8586
8587# Is the header present?
8588{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8590cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h.  */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h.  */
8596#include <$ac_header>
8597_ACEOF
8598if { (ac_try="$ac_cpp conftest.$ac_ext"
8599case "(($ac_try" in
8600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601  *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8605  ac_status=$?
8606  grep -v '^ *+' conftest.er1 >conftest.err
8607  rm -f conftest.er1
8608  cat conftest.err >&5
8609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610  (exit $ac_status); } >/dev/null; then
8611  if test -s conftest.err; then
8612    ac_cpp_err=$ac_c_preproc_warn_flag
8613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8614  else
8615    ac_cpp_err=
8616  fi
8617else
8618  ac_cpp_err=yes
8619fi
8620if test -z "$ac_cpp_err"; then
8621  ac_header_preproc=yes
8622else
8623  echo "$as_me: failed program was:" >&5
8624sed 's/^/| /' conftest.$ac_ext >&5
8625
8626  ac_header_preproc=no
8627fi
8628
8629rm -f conftest.err conftest.$ac_ext
8630{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8631echo "${ECHO_T}$ac_header_preproc" >&6; }
8632
8633# So?  What about this header?
8634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8635  yes:no: )
8636    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8637echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8638    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8639echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8640    ac_header_preproc=yes
8641    ;;
8642  no:yes:* )
8643    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8644echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8645    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8646echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8647    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8648echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8649    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8650echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8653    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8654echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8655    ( cat <<\_ASBOX
8656## ----------------------------------- ##
8657## Report this to llvmbugs@cs.uiuc.edu ##
8658## ----------------------------------- ##
8659_ASBOX
8660     ) | sed "s/^/$as_me: WARNING:     /" >&2
8661    ;;
8662esac
8663{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8666  echo $ECHO_N "(cached) $ECHO_C" >&6
8667else
8668  eval "$as_ac_Header=\$ac_header_preproc"
8669fi
8670ac_res=`eval echo '${'$as_ac_Header'}'`
8671	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8672echo "${ECHO_T}$ac_res" >&6; }
8673
8674fi
8675if test `eval echo '${'$as_ac_Header'}'` = yes; then
8676  cat >>confdefs.h <<_ACEOF
8677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8678_ACEOF
8679
8680fi
8681
8682done
8683
8684# Check whether --enable-ltdl-install was given.
8685if test "${enable_ltdl_install+set}" = set; then
8686  enableval=$enable_ltdl_install;
8687fi
8688
8689
8690
8691
8692if test x"${enable_ltdl_install-no}" != xno; then
8693  INSTALL_LTDL_TRUE=
8694  INSTALL_LTDL_FALSE='#'
8695else
8696  INSTALL_LTDL_TRUE='#'
8697  INSTALL_LTDL_FALSE=
8698fi
8699
8700
8701
8702if test x"${enable_ltdl_convenience-no}" != xno; then
8703  CONVENIENCE_LTDL_TRUE=
8704  CONVENIENCE_LTDL_FALSE='#'
8705else
8706  CONVENIENCE_LTDL_TRUE='#'
8707  CONVENIENCE_LTDL_FALSE=
8708fi
8709
8710
8711{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8712echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8713library_names_spec=
8714libname_spec='lib$name'
8715soname_spec=
8716shrext_cmds=".so"
8717postinstall_cmds=
8718postuninstall_cmds=
8719finish_cmds=
8720finish_eval=
8721shlibpath_var=
8722shlibpath_overrides_runpath=unknown
8723version_type=none
8724dynamic_linker="$host_os ld.so"
8725sys_lib_dlsearch_path_spec="/lib /usr/lib"
8726if test "$GCC" = yes; then
8727  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8728  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8729    # if the path contains ";" then we assume it to be the separator
8730    # otherwise default to the standard path separator (i.e. ":") - it is
8731    # assumed that no part of a normal pathname contains ";" but that should
8732    # okay in the real world where ";" in dirpaths is itself problematic.
8733    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8734  else
8735    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8736  fi
8737else
8738  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8739fi
8740need_lib_prefix=unknown
8741hardcode_into_libs=no
8742
8743# when you set need_version to no, make sure it does not cause -set_version
8744# flags to be left without arguments
8745need_version=unknown
8746
8747case $host_os in
8748aix3*)
8749  version_type=linux
8750  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8751  shlibpath_var=LIBPATH
8752
8753  # AIX 3 has no versioning support, so we append a major version to the name.
8754  soname_spec='${libname}${release}${shared_ext}$major'
8755  ;;
8756
8757aix4* | aix5*)
8758  version_type=linux
8759  need_lib_prefix=no
8760  need_version=no
8761  hardcode_into_libs=yes
8762  if test "$host_cpu" = ia64; then
8763    # AIX 5 supports IA64
8764    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8765    shlibpath_var=LD_LIBRARY_PATH
8766  else
8767    # With GCC up to 2.95.x, collect2 would create an import file
8768    # for dependence libraries.  The import file would start with
8769    # the line `#! .'.  This would cause the generated library to
8770    # depend on `.', always an invalid library.  This was fixed in
8771    # development snapshots of GCC prior to 3.0.
8772    case $host_os in
8773      aix4 | aix4.[01] | aix4.[01].*)
8774      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8775	   echo ' yes '
8776	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8777	:
8778      else
8779	can_build_shared=no
8780      fi
8781      ;;
8782    esac
8783    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8784    # soname into executable. Probably we can add versioning support to
8785    # collect2, so additional links can be useful in future.
8786    if test "$aix_use_runtimelinking" = yes; then
8787      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8788      # instead of lib<name>.a to let people know that these are not
8789      # typical AIX shared libraries.
8790      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791    else
8792      # We preserve .a as extension for shared libraries through AIX4.2
8793      # and later when we are not doing run time linking.
8794      library_names_spec='${libname}${release}.a $libname.a'
8795      soname_spec='${libname}${release}${shared_ext}$major'
8796    fi
8797    shlibpath_var=LIBPATH
8798  fi
8799  ;;
8800
8801amigaos*)
8802  library_names_spec='$libname.ixlibrary $libname.a'
8803  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8804  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'
8805  ;;
8806
8807beos*)
8808  library_names_spec='${libname}${shared_ext}'
8809  dynamic_linker="$host_os ld.so"
8810  shlibpath_var=LIBRARY_PATH
8811  ;;
8812
8813bsdi[45]*)
8814  version_type=linux
8815  need_version=no
8816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817  soname_spec='${libname}${release}${shared_ext}$major'
8818  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8819  shlibpath_var=LD_LIBRARY_PATH
8820  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8821  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8822  # the default ld.so.conf also contains /usr/contrib/lib and
8823  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8824  # libtool to hard-code these into programs
8825  ;;
8826
8827cygwin* | mingw* | pw32*)
8828  version_type=windows
8829  shrext_cmds=".dll"
8830  need_version=no
8831  need_lib_prefix=no
8832
8833  case $GCC,$host_os in
8834  yes,cygwin* | yes,mingw* | yes,pw32*)
8835    library_names_spec='$libname.dll.a'
8836    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8837    postinstall_cmds='base_file=`basename \${file}`~
8838      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8839      dldir=$destdir/`dirname \$dlpath`~
8840      test -d \$dldir || mkdir -p \$dldir~
8841      $install_prog $dir/$dlname \$dldir/$dlname~
8842      chmod a+x \$dldir/$dlname'
8843    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8844      dlpath=$dir/\$dldll~
8845       $rm \$dlpath'
8846    shlibpath_overrides_runpath=yes
8847
8848    case $host_os in
8849    cygwin*)
8850      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8851      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8853      ;;
8854    mingw*)
8855      # MinGW DLLs use traditional 'lib' prefix
8856      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8858      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8859        # It is most probably a Windows format PATH printed by
8860        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8861        # path with ; separators, and with drive letters. We can handle the
8862        # drive letters (cygwin fileutils understands them), so leave them,
8863        # especially as we might pass files found there to a mingw objdump,
8864        # which wouldn't understand a cygwinified path. Ahh.
8865        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8866      else
8867        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8868      fi
8869      ;;
8870    pw32*)
8871      # pw32 DLLs use 'pw' prefix rather than 'lib'
8872      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873      ;;
8874    esac
8875    ;;
8876
8877  *)
8878    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8879    ;;
8880  esac
8881  dynamic_linker='Win32 ld.exe'
8882  # FIXME: first we should search . and the directory the executable is in
8883  shlibpath_var=PATH
8884  ;;
8885
8886darwin* | rhapsody*)
8887  dynamic_linker="$host_os dyld"
8888  version_type=darwin
8889  need_lib_prefix=no
8890  need_version=no
8891  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8892  soname_spec='${libname}${release}${major}$shared_ext'
8893  shlibpath_overrides_runpath=yes
8894  shlibpath_var=DYLD_LIBRARY_PATH
8895  shrext_cmds='.dylib'
8896  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8897  if test "$GCC" = yes; then
8898    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"`
8899  else
8900    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8901  fi
8902  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8903  ;;
8904
8905dgux*)
8906  version_type=linux
8907  need_lib_prefix=no
8908  need_version=no
8909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8910  soname_spec='${libname}${release}${shared_ext}$major'
8911  shlibpath_var=LD_LIBRARY_PATH
8912  ;;
8913
8914freebsd1*)
8915  dynamic_linker=no
8916  ;;
8917
8918kfreebsd*-gnu)
8919  version_type=linux
8920  need_lib_prefix=no
8921  need_version=no
8922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8923  soname_spec='${libname}${release}${shared_ext}$major'
8924  shlibpath_var=LD_LIBRARY_PATH
8925  shlibpath_overrides_runpath=no
8926  hardcode_into_libs=yes
8927  dynamic_linker='GNU ld.so'
8928  ;;
8929
8930freebsd* | dragonfly*)
8931  # DragonFly does not have aout.  When/if they implement a new
8932  # versioning mechanism, adjust this.
8933  if test -x /usr/bin/objformat; then
8934    objformat=`/usr/bin/objformat`
8935  else
8936    case $host_os in
8937    freebsd[123]*) objformat=aout ;;
8938    *) objformat=elf ;;
8939    esac
8940  fi
8941  version_type=freebsd-$objformat
8942  case $version_type in
8943    freebsd-elf*)
8944      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8945      need_version=no
8946      need_lib_prefix=no
8947      ;;
8948    freebsd-*)
8949      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8950      need_version=yes
8951      ;;
8952  esac
8953  shlibpath_var=LD_LIBRARY_PATH
8954  case $host_os in
8955  freebsd2*)
8956    shlibpath_overrides_runpath=yes
8957    ;;
8958  freebsd3.[01]* | freebsdelf3.[01]*)
8959    shlibpath_overrides_runpath=yes
8960    hardcode_into_libs=yes
8961    ;;
8962  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8963  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8964    shlibpath_overrides_runpath=no
8965    hardcode_into_libs=yes
8966    ;;
8967  freebsd*) # from 4.6 on
8968    shlibpath_overrides_runpath=yes
8969    hardcode_into_libs=yes
8970    ;;
8971  esac
8972  ;;
8973
8974gnu*)
8975  version_type=linux
8976  need_lib_prefix=no
8977  need_version=no
8978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8979  soname_spec='${libname}${release}${shared_ext}$major'
8980  shlibpath_var=LD_LIBRARY_PATH
8981  hardcode_into_libs=yes
8982  ;;
8983
8984hpux9* | hpux10* | hpux11*)
8985  # Give a soname corresponding to the major version so that dld.sl refuses to
8986  # link against other versions.
8987  version_type=sunos
8988  need_lib_prefix=no
8989  need_version=no
8990  case $host_cpu in
8991  ia64*)
8992    shrext_cmds='.so'
8993    hardcode_into_libs=yes
8994    dynamic_linker="$host_os dld.so"
8995    shlibpath_var=LD_LIBRARY_PATH
8996    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998    soname_spec='${libname}${release}${shared_ext}$major'
8999    if test "X$HPUX_IA64_MODE" = X32; then
9000      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9001    else
9002      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9003    fi
9004    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9005    ;;
9006   hppa*64*)
9007     shrext_cmds='.sl'
9008     hardcode_into_libs=yes
9009     dynamic_linker="$host_os dld.sl"
9010     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9011     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013     soname_spec='${libname}${release}${shared_ext}$major'
9014     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9015     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9016     ;;
9017   *)
9018    shrext_cmds='.sl'
9019    dynamic_linker="$host_os dld.sl"
9020    shlibpath_var=SHLIB_PATH
9021    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9022    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023    soname_spec='${libname}${release}${shared_ext}$major'
9024    ;;
9025  esac
9026  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9027  postinstall_cmds='chmod 555 $lib'
9028  ;;
9029
9030interix3*)
9031  version_type=linux
9032  need_lib_prefix=no
9033  need_version=no
9034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9035  soname_spec='${libname}${release}${shared_ext}$major'
9036  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9037  shlibpath_var=LD_LIBRARY_PATH
9038  shlibpath_overrides_runpath=no
9039  hardcode_into_libs=yes
9040  ;;
9041
9042irix5* | irix6* | nonstopux*)
9043  case $host_os in
9044    nonstopux*) version_type=nonstopux ;;
9045    *)
9046	if test "$lt_cv_prog_gnu_ld" = yes; then
9047		version_type=linux
9048	else
9049		version_type=irix
9050	fi ;;
9051  esac
9052  need_lib_prefix=no
9053  need_version=no
9054  soname_spec='${libname}${release}${shared_ext}$major'
9055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9056  case $host_os in
9057  irix5* | nonstopux*)
9058    libsuff= shlibsuff=
9059    ;;
9060  *)
9061    case $LD in # libtool.m4 will add one of these switches to LD
9062    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9063      libsuff= shlibsuff= libmagic=32-bit;;
9064    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9065      libsuff=32 shlibsuff=N32 libmagic=N32;;
9066    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9067      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9068    *) libsuff= shlibsuff= libmagic=never-match;;
9069    esac
9070    ;;
9071  esac
9072  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9073  shlibpath_overrides_runpath=no
9074  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9075  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9076  hardcode_into_libs=yes
9077  ;;
9078
9079# No shared lib support for Linux oldld, aout, or coff.
9080linux*oldld* | linux*aout* | linux*coff*)
9081  dynamic_linker=no
9082  ;;
9083
9084# This must be Linux ELF.
9085linux*)
9086  version_type=linux
9087  need_lib_prefix=no
9088  need_version=no
9089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090  soname_spec='${libname}${release}${shared_ext}$major'
9091  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9092  shlibpath_var=LD_LIBRARY_PATH
9093  shlibpath_overrides_runpath=no
9094  # This implies no fast_install, which is unacceptable.
9095  # Some rework will be needed to allow for fast_install
9096  # before this can be enabled.
9097  hardcode_into_libs=yes
9098
9099  # Append ld.so.conf contents to the search path
9100  if test -f /etc/ld.so.conf; then
9101    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' ' '`
9102    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9103  fi
9104
9105  # We used to test for /lib/ld.so.1 and disable shared libraries on
9106  # powerpc, because MkLinux only supported shared libraries with the
9107  # GNU dynamic linker.  Since this was broken with cross compilers,
9108  # most powerpc-linux boxes support dynamic linking these days and
9109  # people can always --disable-shared, the test was removed, and we
9110  # assume the GNU/Linux dynamic linker is in use.
9111  dynamic_linker='GNU/Linux ld.so'
9112  ;;
9113
9114knetbsd*-gnu)
9115  version_type=linux
9116  need_lib_prefix=no
9117  need_version=no
9118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9119  soname_spec='${libname}${release}${shared_ext}$major'
9120  shlibpath_var=LD_LIBRARY_PATH
9121  shlibpath_overrides_runpath=no
9122  hardcode_into_libs=yes
9123  dynamic_linker='GNU ld.so'
9124  ;;
9125
9126netbsd*)
9127  version_type=sunos
9128  need_lib_prefix=no
9129  need_version=no
9130  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9131    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9132    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9133    dynamic_linker='NetBSD (a.out) ld.so'
9134  else
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    dynamic_linker='NetBSD ld.elf_so'
9138  fi
9139  shlibpath_var=LD_LIBRARY_PATH
9140  shlibpath_overrides_runpath=yes
9141  hardcode_into_libs=yes
9142  ;;
9143
9144newsos6)
9145  version_type=linux
9146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147  shlibpath_var=LD_LIBRARY_PATH
9148  shlibpath_overrides_runpath=yes
9149  ;;
9150
9151nto-qnx*)
9152  version_type=linux
9153  need_lib_prefix=no
9154  need_version=no
9155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156  soname_spec='${libname}${release}${shared_ext}$major'
9157  shlibpath_var=LD_LIBRARY_PATH
9158  shlibpath_overrides_runpath=yes
9159  ;;
9160
9161openbsd*)
9162  version_type=sunos
9163  sys_lib_dlsearch_path_spec="/usr/lib"
9164  need_lib_prefix=no
9165  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9166  case $host_os in
9167    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9168    *)                         need_version=no  ;;
9169  esac
9170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9171  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9172  shlibpath_var=LD_LIBRARY_PATH
9173  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9174    case $host_os in
9175      openbsd2.[89] | openbsd2.[89].*)
9176	shlibpath_overrides_runpath=no
9177	;;
9178      *)
9179	shlibpath_overrides_runpath=yes
9180	;;
9181      esac
9182  else
9183    shlibpath_overrides_runpath=yes
9184  fi
9185  ;;
9186
9187os2*)
9188  libname_spec='$name'
9189  shrext_cmds=".dll"
9190  need_lib_prefix=no
9191  library_names_spec='$libname${shared_ext} $libname.a'
9192  dynamic_linker='OS/2 ld.exe'
9193  shlibpath_var=LIBPATH
9194  ;;
9195
9196osf3* | osf4* | osf5*)
9197  version_type=osf
9198  need_lib_prefix=no
9199  need_version=no
9200  soname_spec='${libname}${release}${shared_ext}$major'
9201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202  shlibpath_var=LD_LIBRARY_PATH
9203  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9204  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9205  ;;
9206
9207solaris*)
9208  version_type=linux
9209  need_lib_prefix=no
9210  need_version=no
9211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212  soname_spec='${libname}${release}${shared_ext}$major'
9213  shlibpath_var=LD_LIBRARY_PATH
9214  shlibpath_overrides_runpath=yes
9215  hardcode_into_libs=yes
9216  # ldd complains unless libraries are executable
9217  postinstall_cmds='chmod +x $lib'
9218  ;;
9219
9220sunos4*)
9221  version_type=sunos
9222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9223  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9224  shlibpath_var=LD_LIBRARY_PATH
9225  shlibpath_overrides_runpath=yes
9226  if test "$with_gnu_ld" = yes; then
9227    need_lib_prefix=no
9228  fi
9229  need_version=yes
9230  ;;
9231
9232sysv4 | sysv4.3*)
9233  version_type=linux
9234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235  soname_spec='${libname}${release}${shared_ext}$major'
9236  shlibpath_var=LD_LIBRARY_PATH
9237  case $host_vendor in
9238    sni)
9239      shlibpath_overrides_runpath=no
9240      need_lib_prefix=no
9241      export_dynamic_flag_spec='${wl}-Blargedynsym'
9242      runpath_var=LD_RUN_PATH
9243      ;;
9244    siemens)
9245      need_lib_prefix=no
9246      ;;
9247    motorola)
9248      need_lib_prefix=no
9249      need_version=no
9250      shlibpath_overrides_runpath=no
9251      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9252      ;;
9253  esac
9254  ;;
9255
9256sysv4*MP*)
9257  if test -d /usr/nec ;then
9258    version_type=linux
9259    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9260    soname_spec='$libname${shared_ext}.$major'
9261    shlibpath_var=LD_LIBRARY_PATH
9262  fi
9263  ;;
9264
9265sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9266  version_type=freebsd-elf
9267  need_lib_prefix=no
9268  need_version=no
9269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9270  soname_spec='${libname}${release}${shared_ext}$major'
9271  shlibpath_var=LD_LIBRARY_PATH
9272  hardcode_into_libs=yes
9273  if test "$with_gnu_ld" = yes; then
9274    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9275    shlibpath_overrides_runpath=no
9276  else
9277    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9278    shlibpath_overrides_runpath=yes
9279    case $host_os in
9280      sco3.2v5*)
9281        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9282	;;
9283    esac
9284  fi
9285  sys_lib_dlsearch_path_spec='/usr/lib'
9286  ;;
9287
9288uts4*)
9289  version_type=linux
9290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291  soname_spec='${libname}${release}${shared_ext}$major'
9292  shlibpath_var=LD_LIBRARY_PATH
9293  ;;
9294
9295*)
9296  dynamic_linker=no
9297  ;;
9298esac
9299{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9300echo "${ECHO_T}$dynamic_linker" >&6; }
9301test "$dynamic_linker" = no && can_build_shared=no
9302
9303variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9304if test "$GCC" = yes; then
9305  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9306fi
9307
9308
9309{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9310echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9311if test "${libltdl_cv_shlibext+set}" = set; then
9312  echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314
9315module=yes
9316eval libltdl_cv_shlibext=$shrext_cmds
9317
9318fi
9319{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9320echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9321if test -n "$libltdl_cv_shlibext"; then
9322
9323cat >>confdefs.h <<_ACEOF
9324#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9325_ACEOF
9326
9327fi
9328
9329
9330{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9331echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9332if test "${libltdl_cv_shlibpath_var+set}" = set; then
9333  echo $ECHO_N "(cached) $ECHO_C" >&6
9334else
9335  libltdl_cv_shlibpath_var="$shlibpath_var"
9336fi
9337{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9338echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9339if test -n "$libltdl_cv_shlibpath_var"; then
9340
9341cat >>confdefs.h <<_ACEOF
9342#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9343_ACEOF
9344
9345fi
9346
9347
9348{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9349echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9350if test "${libltdl_cv_sys_search_path+set}" = set; then
9351  echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9354fi
9355{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9356echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9357if test -n "$libltdl_cv_sys_search_path"; then
9358  sys_search_path=
9359  for dir in $libltdl_cv_sys_search_path; do
9360    if test -z "$sys_search_path"; then
9361      sys_search_path="$dir"
9362    else
9363      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9364    fi
9365  done
9366
9367cat >>confdefs.h <<_ACEOF
9368#define LTDL_SYSSEARCHPATH "$sys_search_path"
9369_ACEOF
9370
9371fi
9372
9373{ echo "$as_me:$LINENO: checking for objdir" >&5
9374echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9375if test "${libltdl_cv_objdir+set}" = set; then
9376  echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378  libltdl_cv_objdir="$objdir"
9379  if test -n "$objdir"; then
9380    :
9381  else
9382    rm -f .libs 2>/dev/null
9383    mkdir .libs 2>/dev/null
9384    if test -d .libs; then
9385      libltdl_cv_objdir=.libs
9386    else
9387      # MS-DOS does not allow filenames that begin with a dot.
9388      libltdl_cv_objdir=_libs
9389    fi
9390  rmdir .libs 2>/dev/null
9391  fi
9392
9393fi
9394{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9395echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9396
9397cat >>confdefs.h <<_ACEOF
9398#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9399_ACEOF
9400
9401
9402
9403
9404
9405
9406# Check for command to grab the raw symbol name followed by C symbol from nm.
9407{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9408echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9409if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9410  echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412
9413# These are sane defaults that work on at least a few old systems.
9414# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9415
9416# Character class describing NM global symbol codes.
9417symcode='[BCDEGRST]'
9418
9419# Regexp to match symbols that can be accessed directly from C.
9420sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9421
9422# Transform an extracted symbol line into a proper C declaration
9423lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9424
9425# Transform an extracted symbol line into symbol name and symbol address
9426lt_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'"
9427
9428# Define system-specific variables.
9429case $host_os in
9430aix*)
9431  symcode='[BCDT]'
9432  ;;
9433cygwin* | mingw* | pw32*)
9434  symcode='[ABCDGISTW]'
9435  ;;
9436hpux*) # Its linker distinguishes data from code symbols
9437  if test "$host_cpu" = ia64; then
9438    symcode='[ABCDEGRST]'
9439  fi
9440  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9441  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'"
9442  ;;
9443linux*)
9444  if test "$host_cpu" = ia64; then
9445    symcode='[ABCDGIRSTW]'
9446    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9447    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'"
9448  fi
9449  ;;
9450irix* | nonstopux*)
9451  symcode='[BCDEGRST]'
9452  ;;
9453osf*)
9454  symcode='[BCDEGQRST]'
9455  ;;
9456solaris*)
9457  symcode='[BDRT]'
9458  ;;
9459sco3.2v5*)
9460  symcode='[DT]'
9461  ;;
9462sysv4.2uw2*)
9463  symcode='[DT]'
9464  ;;
9465sysv5* | sco5v6* | unixware* | OpenUNIX*)
9466  symcode='[ABDT]'
9467  ;;
9468sysv4)
9469  symcode='[DFNSTU]'
9470  ;;
9471esac
9472
9473# Handle CRLF in mingw tool chain
9474opt_cr=
9475case $build_os in
9476mingw*)
9477  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9478  ;;
9479esac
9480
9481# If we're using GNU nm, then use its standard symbol codes.
9482case `$NM -V 2>&1` in
9483*GNU* | *'with BFD'*)
9484  symcode='[ABCDGIRSTW]' ;;
9485esac
9486
9487# Try without a prefix undercore, then with it.
9488for ac_symprfx in "" "_"; do
9489
9490  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9491  symxfrm="\\1 $ac_symprfx\\2 \\2"
9492
9493  # Write the raw and C identifiers.
9494  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9495
9496  # Check to see that the pipe works correctly.
9497  pipe_works=no
9498
9499  rm -f conftest*
9500  cat > conftest.$ac_ext <<EOF
9501#ifdef __cplusplus
9502extern "C" {
9503#endif
9504char nm_test_var;
9505void nm_test_func(){}
9506#ifdef __cplusplus
9507}
9508#endif
9509int main(){nm_test_var='a';nm_test_func();return(0);}
9510EOF
9511
9512  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513  (eval $ac_compile) 2>&5
9514  ac_status=$?
9515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516  (exit $ac_status); }; then
9517    # Now try to grab the symbols.
9518    nlist=conftest.nm
9519    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9520  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9521  ac_status=$?
9522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523  (exit $ac_status); } && test -s "$nlist"; then
9524      # Try sorting and uniquifying the output.
9525      if sort "$nlist" | uniq > "$nlist"T; then
9526	mv -f "$nlist"T "$nlist"
9527      else
9528	rm -f "$nlist"T
9529      fi
9530
9531      # Make sure that we snagged all the symbols we need.
9532      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9533	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9534	  cat <<EOF > conftest.$ac_ext
9535#ifdef __cplusplus
9536extern "C" {
9537#endif
9538
9539EOF
9540	  # Now generate the symbol file.
9541	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9542
9543	  cat <<EOF >> conftest.$ac_ext
9544#if defined (__STDC__) && __STDC__
9545# define lt_ptr_t void *
9546#else
9547# define lt_ptr_t char *
9548# define const
9549#endif
9550
9551/* The mapping between symbol names and symbols. */
9552const struct {
9553  const char *name;
9554  lt_ptr_t address;
9555}
9556lt_preloaded_symbols[] =
9557{
9558EOF
9559	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9560	  cat <<\EOF >> conftest.$ac_ext
9561  {0, (lt_ptr_t) 0}
9562};
9563
9564#ifdef __cplusplus
9565}
9566#endif
9567EOF
9568	  # Now try linking the two files.
9569	  mv conftest.$ac_objext conftstm.$ac_objext
9570	  lt_save_LIBS="$LIBS"
9571	  lt_save_CFLAGS="$CFLAGS"
9572	  LIBS="conftstm.$ac_objext"
9573	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9574	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575  (eval $ac_link) 2>&5
9576  ac_status=$?
9577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9579	    pipe_works=yes
9580	  fi
9581	  LIBS="$lt_save_LIBS"
9582	  CFLAGS="$lt_save_CFLAGS"
9583	else
9584	  echo "cannot find nm_test_func in $nlist" >&5
9585	fi
9586      else
9587	echo "cannot find nm_test_var in $nlist" >&5
9588      fi
9589    else
9590      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9591    fi
9592  else
9593    echo "$progname: failed program was:" >&5
9594    cat conftest.$ac_ext >&5
9595  fi
9596  rm -f conftest* conftst*
9597
9598  # Do not use the global_symbol_pipe unless it works.
9599  if test "$pipe_works" = yes; then
9600    break
9601  else
9602    lt_cv_sys_global_symbol_pipe=
9603  fi
9604done
9605
9606fi
9607
9608if test -z "$lt_cv_sys_global_symbol_pipe"; then
9609  lt_cv_sys_global_symbol_to_cdecl=
9610fi
9611if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9612  { echo "$as_me:$LINENO: result: failed" >&5
9613echo "${ECHO_T}failed" >&6; }
9614else
9615  { echo "$as_me:$LINENO: result: ok" >&5
9616echo "${ECHO_T}ok" >&6; }
9617fi
9618
9619
9620{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9621echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9622if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9623  echo $ECHO_N "(cached) $ECHO_C" >&6
9624else
9625  if test -n "$lt_cv_sys_global_symbol_pipe"; then
9626    libltdl_cv_preloaded_symbols=yes
9627  else
9628    libltdl_cv_preloaded_symbols=no
9629  fi
9630
9631fi
9632{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9633echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9634if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9635
9636cat >>confdefs.h <<\_ACEOF
9637#define HAVE_PRELOADED_SYMBOLS 1
9638_ACEOF
9639
9640fi
9641
9642LIBADD_DL=
9643
9644ac_ext=c
9645ac_cpp='$CPP $CPPFLAGS'
9646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9648ac_compiler_gnu=$ac_cv_c_compiler_gnu
9649
9650
9651{ echo "$as_me:$LINENO: checking for shl_load" >&5
9652echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9653if test "${ac_cv_func_shl_load+set}" = set; then
9654  echo $ECHO_N "(cached) $ECHO_C" >&6
9655else
9656  cat >conftest.$ac_ext <<_ACEOF
9657/* confdefs.h.  */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h.  */
9662/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9663   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9664#define shl_load innocuous_shl_load
9665
9666/* System header to define __stub macros and hopefully few prototypes,
9667    which can conflict with char shl_load (); below.
9668    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9669    <limits.h> exists even on freestanding compilers.  */
9670
9671#ifdef __STDC__
9672# include <limits.h>
9673#else
9674# include <assert.h>
9675#endif
9676
9677#undef shl_load
9678
9679/* Override any GCC internal prototype to avoid an error.
9680   Use char because int might match the return type of a GCC
9681   builtin and then its argument prototype would still apply.  */
9682#ifdef __cplusplus
9683extern "C"
9684#endif
9685char shl_load ();
9686/* The GNU C library defines this for functions which it implements
9687    to always fail with ENOSYS.  Some functions are actually named
9688    something starting with __ and the normal name is an alias.  */
9689#if defined __stub_shl_load || defined __stub___shl_load
9690choke me
9691#endif
9692
9693int
9694main ()
9695{
9696return shl_load ();
9697  ;
9698  return 0;
9699}
9700_ACEOF
9701rm -f conftest.$ac_objext conftest$ac_exeext
9702if { (ac_try="$ac_link"
9703case "(($ac_try" in
9704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705  *) ac_try_echo=$ac_try;;
9706esac
9707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708  (eval "$ac_link") 2>conftest.er1
9709  ac_status=$?
9710  grep -v '^ *+' conftest.er1 >conftest.err
9711  rm -f conftest.er1
9712  cat conftest.err >&5
9713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714  (exit $ac_status); } &&
9715	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716  { (case "(($ac_try" in
9717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718  *) ac_try_echo=$ac_try;;
9719esac
9720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721  (eval "$ac_try") 2>&5
9722  ac_status=$?
9723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724  (exit $ac_status); }; } &&
9725	 { ac_try='test -s conftest$ac_exeext'
9726  { (case "(($ac_try" in
9727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728  *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731  (eval "$ac_try") 2>&5
9732  ac_status=$?
9733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734  (exit $ac_status); }; }; then
9735  ac_cv_func_shl_load=yes
9736else
9737  echo "$as_me: failed program was:" >&5
9738sed 's/^/| /' conftest.$ac_ext >&5
9739
9740	ac_cv_func_shl_load=no
9741fi
9742
9743rm -f core conftest.err conftest.$ac_objext \
9744      conftest$ac_exeext conftest.$ac_ext
9745fi
9746{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9747echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9748if test $ac_cv_func_shl_load = yes; then
9749
9750cat >>confdefs.h <<\_ACEOF
9751#define HAVE_SHL_LOAD 1
9752_ACEOF
9753
9754else
9755  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9756echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9757if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9758  echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760  ac_check_lib_save_LIBS=$LIBS
9761LIBS="-ldld  $LIBS"
9762cat >conftest.$ac_ext <<_ACEOF
9763/* confdefs.h.  */
9764_ACEOF
9765cat confdefs.h >>conftest.$ac_ext
9766cat >>conftest.$ac_ext <<_ACEOF
9767/* end confdefs.h.  */
9768
9769/* Override any GCC internal prototype to avoid an error.
9770   Use char because int might match the return type of a GCC
9771   builtin and then its argument prototype would still apply.  */
9772#ifdef __cplusplus
9773extern "C"
9774#endif
9775char shl_load ();
9776int
9777main ()
9778{
9779return shl_load ();
9780  ;
9781  return 0;
9782}
9783_ACEOF
9784rm -f conftest.$ac_objext conftest$ac_exeext
9785if { (ac_try="$ac_link"
9786case "(($ac_try" in
9787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788  *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791  (eval "$ac_link") 2>conftest.er1
9792  ac_status=$?
9793  grep -v '^ *+' conftest.er1 >conftest.err
9794  rm -f conftest.er1
9795  cat conftest.err >&5
9796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797  (exit $ac_status); } &&
9798	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9799  { (case "(($ac_try" in
9800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801  *) ac_try_echo=$ac_try;;
9802esac
9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804  (eval "$ac_try") 2>&5
9805  ac_status=$?
9806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807  (exit $ac_status); }; } &&
9808	 { ac_try='test -s conftest$ac_exeext'
9809  { (case "(($ac_try" in
9810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811  *) ac_try_echo=$ac_try;;
9812esac
9813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814  (eval "$ac_try") 2>&5
9815  ac_status=$?
9816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817  (exit $ac_status); }; }; then
9818  ac_cv_lib_dld_shl_load=yes
9819else
9820  echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
9822
9823	ac_cv_lib_dld_shl_load=no
9824fi
9825
9826rm -f core conftest.err conftest.$ac_objext \
9827      conftest$ac_exeext conftest.$ac_ext
9828LIBS=$ac_check_lib_save_LIBS
9829fi
9830{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9831echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9832if test $ac_cv_lib_dld_shl_load = yes; then
9833
9834cat >>confdefs.h <<\_ACEOF
9835#define HAVE_SHL_LOAD 1
9836_ACEOF
9837
9838	LIBADD_DL="$LIBADD_DL -ldld"
9839else
9840  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9841echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9842if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9843  echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845  ac_check_lib_save_LIBS=$LIBS
9846LIBS="-ldl  $LIBS"
9847cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h.  */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h.  */
9853
9854/* Override any GCC internal prototype to avoid an error.
9855   Use char because int might match the return type of a GCC
9856   builtin and then its argument prototype would still apply.  */
9857#ifdef __cplusplus
9858extern "C"
9859#endif
9860char dlopen ();
9861int
9862main ()
9863{
9864return dlopen ();
9865  ;
9866  return 0;
9867}
9868_ACEOF
9869rm -f conftest.$ac_objext conftest$ac_exeext
9870if { (ac_try="$ac_link"
9871case "(($ac_try" in
9872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873  *) ac_try_echo=$ac_try;;
9874esac
9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876  (eval "$ac_link") 2>conftest.er1
9877  ac_status=$?
9878  grep -v '^ *+' conftest.er1 >conftest.err
9879  rm -f conftest.er1
9880  cat conftest.err >&5
9881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882  (exit $ac_status); } &&
9883	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9884  { (case "(($ac_try" in
9885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886  *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889  (eval "$ac_try") 2>&5
9890  ac_status=$?
9891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892  (exit $ac_status); }; } &&
9893	 { ac_try='test -s conftest$ac_exeext'
9894  { (case "(($ac_try" in
9895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896  *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899  (eval "$ac_try") 2>&5
9900  ac_status=$?
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); }; }; then
9903  ac_cv_lib_dl_dlopen=yes
9904else
9905  echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
9908	ac_cv_lib_dl_dlopen=no
9909fi
9910
9911rm -f core conftest.err conftest.$ac_objext \
9912      conftest$ac_exeext conftest.$ac_ext
9913LIBS=$ac_check_lib_save_LIBS
9914fi
9915{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9916echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9917if test $ac_cv_lib_dl_dlopen = yes; then
9918
9919cat >>confdefs.h <<\_ACEOF
9920#define HAVE_LIBDL 1
9921_ACEOF
9922
9923	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9924else
9925  cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h.  */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h.  */
9931#if HAVE_DLFCN_H
9932#  include <dlfcn.h>
9933#endif
9934
9935int
9936main ()
9937{
9938dlopen(0, 0);
9939  ;
9940  return 0;
9941}
9942_ACEOF
9943rm -f conftest.$ac_objext conftest$ac_exeext
9944if { (ac_try="$ac_link"
9945case "(($ac_try" in
9946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947  *) ac_try_echo=$ac_try;;
9948esac
9949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950  (eval "$ac_link") 2>conftest.er1
9951  ac_status=$?
9952  grep -v '^ *+' conftest.er1 >conftest.err
9953  rm -f conftest.er1
9954  cat conftest.err >&5
9955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956  (exit $ac_status); } &&
9957	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9958  { (case "(($ac_try" in
9959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960  *) ac_try_echo=$ac_try;;
9961esac
9962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963  (eval "$ac_try") 2>&5
9964  ac_status=$?
9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); }; } &&
9967	 { ac_try='test -s conftest$ac_exeext'
9968  { (case "(($ac_try" in
9969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970  *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973  (eval "$ac_try") 2>&5
9974  ac_status=$?
9975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976  (exit $ac_status); }; }; then
9977
9978cat >>confdefs.h <<\_ACEOF
9979#define HAVE_LIBDL 1
9980_ACEOF
9981 libltdl_cv_func_dlopen="yes"
9982else
9983  echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9987echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9988if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9989  echo $ECHO_N "(cached) $ECHO_C" >&6
9990else
9991  ac_check_lib_save_LIBS=$LIBS
9992LIBS="-lsvld  $LIBS"
9993cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h.  */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h.  */
9999
10000/* Override any GCC internal prototype to avoid an error.
10001   Use char because int might match the return type of a GCC
10002   builtin and then its argument prototype would still apply.  */
10003#ifdef __cplusplus
10004extern "C"
10005#endif
10006char dlopen ();
10007int
10008main ()
10009{
10010return dlopen ();
10011  ;
10012  return 0;
10013}
10014_ACEOF
10015rm -f conftest.$ac_objext conftest$ac_exeext
10016if { (ac_try="$ac_link"
10017case "(($ac_try" in
10018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019  *) ac_try_echo=$ac_try;;
10020esac
10021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022  (eval "$ac_link") 2>conftest.er1
10023  ac_status=$?
10024  grep -v '^ *+' conftest.er1 >conftest.err
10025  rm -f conftest.er1
10026  cat conftest.err >&5
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); } &&
10029	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10030  { (case "(($ac_try" in
10031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032  *) ac_try_echo=$ac_try;;
10033esac
10034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035  (eval "$ac_try") 2>&5
10036  ac_status=$?
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); }; } &&
10039	 { ac_try='test -s conftest$ac_exeext'
10040  { (case "(($ac_try" in
10041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042  *) ac_try_echo=$ac_try;;
10043esac
10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045  (eval "$ac_try") 2>&5
10046  ac_status=$?
10047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048  (exit $ac_status); }; }; then
10049  ac_cv_lib_svld_dlopen=yes
10050else
10051  echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054	ac_cv_lib_svld_dlopen=no
10055fi
10056
10057rm -f core conftest.err conftest.$ac_objext \
10058      conftest$ac_exeext conftest.$ac_ext
10059LIBS=$ac_check_lib_save_LIBS
10060fi
10061{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10062echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10063if test $ac_cv_lib_svld_dlopen = yes; then
10064
10065cat >>confdefs.h <<\_ACEOF
10066#define HAVE_LIBDL 1
10067_ACEOF
10068
10069	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10070else
10071  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10072echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10073if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10074  echo $ECHO_N "(cached) $ECHO_C" >&6
10075else
10076  ac_check_lib_save_LIBS=$LIBS
10077LIBS="-ldld  $LIBS"
10078cat >conftest.$ac_ext <<_ACEOF
10079/* confdefs.h.  */
10080_ACEOF
10081cat confdefs.h >>conftest.$ac_ext
10082cat >>conftest.$ac_ext <<_ACEOF
10083/* end confdefs.h.  */
10084
10085/* Override any GCC internal prototype to avoid an error.
10086   Use char because int might match the return type of a GCC
10087   builtin and then its argument prototype would still apply.  */
10088#ifdef __cplusplus
10089extern "C"
10090#endif
10091char dld_link ();
10092int
10093main ()
10094{
10095return dld_link ();
10096  ;
10097  return 0;
10098}
10099_ACEOF
10100rm -f conftest.$ac_objext conftest$ac_exeext
10101if { (ac_try="$ac_link"
10102case "(($ac_try" in
10103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104  *) ac_try_echo=$ac_try;;
10105esac
10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107  (eval "$ac_link") 2>conftest.er1
10108  ac_status=$?
10109  grep -v '^ *+' conftest.er1 >conftest.err
10110  rm -f conftest.er1
10111  cat conftest.err >&5
10112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113  (exit $ac_status); } &&
10114	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10115  { (case "(($ac_try" in
10116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117  *) ac_try_echo=$ac_try;;
10118esac
10119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120  (eval "$ac_try") 2>&5
10121  ac_status=$?
10122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); }; } &&
10124	 { ac_try='test -s conftest$ac_exeext'
10125  { (case "(($ac_try" in
10126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127  *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130  (eval "$ac_try") 2>&5
10131  ac_status=$?
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); }; }; then
10134  ac_cv_lib_dld_dld_link=yes
10135else
10136  echo "$as_me: failed program was:" >&5
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
10139	ac_cv_lib_dld_dld_link=no
10140fi
10141
10142rm -f core conftest.err conftest.$ac_objext \
10143      conftest$ac_exeext conftest.$ac_ext
10144LIBS=$ac_check_lib_save_LIBS
10145fi
10146{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10147echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10148if test $ac_cv_lib_dld_dld_link = yes; then
10149
10150cat >>confdefs.h <<\_ACEOF
10151#define HAVE_DLD 1
10152_ACEOF
10153
10154	 	LIBADD_DL="$LIBADD_DL -ldld"
10155else
10156  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10157echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10158if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10159  echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161  cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h.  */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h.  */
10167/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10168   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10169#define _dyld_func_lookup innocuous__dyld_func_lookup
10170
10171/* System header to define __stub macros and hopefully few prototypes,
10172    which can conflict with char _dyld_func_lookup (); below.
10173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174    <limits.h> exists even on freestanding compilers.  */
10175
10176#ifdef __STDC__
10177# include <limits.h>
10178#else
10179# include <assert.h>
10180#endif
10181
10182#undef _dyld_func_lookup
10183
10184/* Override any GCC internal prototype to avoid an error.
10185   Use char because int might match the return type of a GCC
10186   builtin and then its argument prototype would still apply.  */
10187#ifdef __cplusplus
10188extern "C"
10189#endif
10190char _dyld_func_lookup ();
10191/* The GNU C library defines this for functions which it implements
10192    to always fail with ENOSYS.  Some functions are actually named
10193    something starting with __ and the normal name is an alias.  */
10194#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10195choke me
10196#endif
10197
10198int
10199main ()
10200{
10201return _dyld_func_lookup ();
10202  ;
10203  return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext conftest$ac_exeext
10207if { (ac_try="$ac_link"
10208case "(($ac_try" in
10209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210  *) ac_try_echo=$ac_try;;
10211esac
10212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213  (eval "$ac_link") 2>conftest.er1
10214  ac_status=$?
10215  grep -v '^ *+' conftest.er1 >conftest.err
10216  rm -f conftest.er1
10217  cat conftest.err >&5
10218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219  (exit $ac_status); } &&
10220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10221  { (case "(($ac_try" in
10222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223  *) ac_try_echo=$ac_try;;
10224esac
10225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226  (eval "$ac_try") 2>&5
10227  ac_status=$?
10228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229  (exit $ac_status); }; } &&
10230	 { ac_try='test -s conftest$ac_exeext'
10231  { (case "(($ac_try" in
10232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233  *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236  (eval "$ac_try") 2>&5
10237  ac_status=$?
10238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239  (exit $ac_status); }; }; then
10240  ac_cv_func__dyld_func_lookup=yes
10241else
10242  echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245	ac_cv_func__dyld_func_lookup=no
10246fi
10247
10248rm -f core conftest.err conftest.$ac_objext \
10249      conftest$ac_exeext conftest.$ac_ext
10250fi
10251{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10252echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10253if test $ac_cv_func__dyld_func_lookup = yes; then
10254
10255cat >>confdefs.h <<\_ACEOF
10256#define HAVE_DYLD 1
10257_ACEOF
10258
10259fi
10260
10261
10262fi
10263
10264
10265fi
10266
10267
10268fi
10269
10270rm -f core conftest.err conftest.$ac_objext \
10271      conftest$ac_exeext conftest.$ac_ext
10272
10273fi
10274
10275
10276fi
10277
10278
10279fi
10280
10281
10282if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10283then
10284  lt_save_LIBS="$LIBS"
10285  LIBS="$LIBS $LIBADD_DL"
10286
10287for ac_func in dlerror
10288do
10289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10290{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10292if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10293  echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295  cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h.  */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h.  */
10301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10302   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10303#define $ac_func innocuous_$ac_func
10304
10305/* System header to define __stub macros and hopefully few prototypes,
10306    which can conflict with char $ac_func (); below.
10307    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308    <limits.h> exists even on freestanding compilers.  */
10309
10310#ifdef __STDC__
10311# include <limits.h>
10312#else
10313# include <assert.h>
10314#endif
10315
10316#undef $ac_func
10317
10318/* Override any GCC internal prototype to avoid an error.
10319   Use char because int might match the return type of a GCC
10320   builtin and then its argument prototype would still apply.  */
10321#ifdef __cplusplus
10322extern "C"
10323#endif
10324char $ac_func ();
10325/* The GNU C library defines this for functions which it implements
10326    to always fail with ENOSYS.  Some functions are actually named
10327    something starting with __ and the normal name is an alias.  */
10328#if defined __stub_$ac_func || defined __stub___$ac_func
10329choke me
10330#endif
10331
10332int
10333main ()
10334{
10335return $ac_func ();
10336  ;
10337  return 0;
10338}
10339_ACEOF
10340rm -f conftest.$ac_objext conftest$ac_exeext
10341if { (ac_try="$ac_link"
10342case "(($ac_try" in
10343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344  *) ac_try_echo=$ac_try;;
10345esac
10346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347  (eval "$ac_link") 2>conftest.er1
10348  ac_status=$?
10349  grep -v '^ *+' conftest.er1 >conftest.err
10350  rm -f conftest.er1
10351  cat conftest.err >&5
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); } &&
10354	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355  { (case "(($ac_try" in
10356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357  *) ac_try_echo=$ac_try;;
10358esac
10359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360  (eval "$ac_try") 2>&5
10361  ac_status=$?
10362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363  (exit $ac_status); }; } &&
10364	 { ac_try='test -s conftest$ac_exeext'
10365  { (case "(($ac_try" in
10366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367  *) ac_try_echo=$ac_try;;
10368esac
10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370  (eval "$ac_try") 2>&5
10371  ac_status=$?
10372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373  (exit $ac_status); }; }; then
10374  eval "$as_ac_var=yes"
10375else
10376  echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379	eval "$as_ac_var=no"
10380fi
10381
10382rm -f core conftest.err conftest.$ac_objext \
10383      conftest$ac_exeext conftest.$ac_ext
10384fi
10385ac_res=`eval echo '${'$as_ac_var'}'`
10386	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10387echo "${ECHO_T}$ac_res" >&6; }
10388if test `eval echo '${'$as_ac_var'}'` = yes; then
10389  cat >>confdefs.h <<_ACEOF
10390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10391_ACEOF
10392
10393fi
10394done
10395
10396  LIBS="$lt_save_LIBS"
10397fi
10398ac_ext=c
10399ac_cpp='$CPP $CPPFLAGS'
10400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10402ac_compiler_gnu=$ac_cv_c_compiler_gnu
10403
10404
10405
10406{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10407echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10408if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10409  echo $ECHO_N "(cached) $ECHO_C" >&6
10410else
10411  ac_cv_sys_symbol_underscore=no
10412  cat > conftest.$ac_ext <<EOF
10413void nm_test_func(){}
10414int main(){nm_test_func;return 0;}
10415EOF
10416  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417  (eval $ac_compile) 2>&5
10418  ac_status=$?
10419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420  (exit $ac_status); }; then
10421    # Now try to grab the symbols.
10422    ac_nlist=conftest.nm
10423    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10424  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10425  ac_status=$?
10426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427  (exit $ac_status); } && test -s "$ac_nlist"; then
10428      # See whether the symbols have a leading underscore.
10429      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10430        ac_cv_sys_symbol_underscore=yes
10431      else
10432        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10433	  :
10434        else
10435	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10436        fi
10437      fi
10438    else
10439      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10440    fi
10441  else
10442    echo "configure: failed program was:" >&5
10443    cat conftest.c >&5
10444  fi
10445  rm -rf conftest*
10446
10447fi
10448{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10449echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10450
10451
10452if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10453  if test x"$libltdl_cv_func_dlopen" = xyes ||
10454     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10455	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10456echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10457if test "${libltdl_cv_need_uscore+set}" = set; then
10458  echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460  libltdl_cv_need_uscore=unknown
10461          save_LIBS="$LIBS"
10462          LIBS="$LIBS $LIBADD_DL"
10463	  if test "$cross_compiling" = yes; then :
10464  libltdl_cv_need_uscore=cross
10465else
10466  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10467  lt_status=$lt_dlunknown
10468  cat > conftest.$ac_ext <<EOF
10469#line 10474 "configure"
10470#include "confdefs.h"
10471
10472#if HAVE_DLFCN_H
10473#include <dlfcn.h>
10474#endif
10475
10476#include <stdio.h>
10477
10478#ifdef RTLD_GLOBAL
10479#  define LT_DLGLOBAL		RTLD_GLOBAL
10480#else
10481#  ifdef DL_GLOBAL
10482#    define LT_DLGLOBAL		DL_GLOBAL
10483#  else
10484#    define LT_DLGLOBAL		0
10485#  endif
10486#endif
10487
10488/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10489   find out it does not work in some platform. */
10490#ifndef LT_DLLAZY_OR_NOW
10491#  ifdef RTLD_LAZY
10492#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10493#  else
10494#    ifdef DL_LAZY
10495#      define LT_DLLAZY_OR_NOW		DL_LAZY
10496#    else
10497#      ifdef RTLD_NOW
10498#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10499#      else
10500#        ifdef DL_NOW
10501#          define LT_DLLAZY_OR_NOW	DL_NOW
10502#        else
10503#          define LT_DLLAZY_OR_NOW	0
10504#        endif
10505#      endif
10506#    endif
10507#  endif
10508#endif
10509
10510#ifdef __cplusplus
10511extern "C" void exit (int);
10512#endif
10513
10514void fnord() { int i=42;}
10515int main ()
10516{
10517  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10518  int status = $lt_dlunknown;
10519
10520  if (self)
10521    {
10522      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10523      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10524      /* dlclose (self); */
10525    }
10526  else
10527    puts (dlerror ());
10528
10529    exit (status);
10530}
10531EOF
10532  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533  (eval $ac_link) 2>&5
10534  ac_status=$?
10535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10537    (./conftest; exit; ) >&5 2>/dev/null
10538    lt_status=$?
10539    case x$lt_status in
10540      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10541      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10542      x$lt_dlunknown|x*)  ;;
10543    esac
10544  else :
10545    # compilation failed
10546
10547  fi
10548fi
10549rm -fr conftest*
10550
10551	  LIBS="$save_LIBS"
10552
10553fi
10554{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10555echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10556  fi
10557fi
10558
10559if test x"$libltdl_cv_need_uscore" = xyes; then
10560
10561cat >>confdefs.h <<\_ACEOF
10562#define NEED_USCORE 1
10563_ACEOF
10564
10565fi
10566
10567
10568{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10569echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10570if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10571  echo $ECHO_N "(cached) $ECHO_C" >&6
10572else
10573  # PORTME does your system automatically load deplibs for dlopen?
10574  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10575  # For now, we just catch OSes we know something about -- in the
10576  # future, we'll try test this programmatically.
10577  libltdl_cv_sys_dlopen_deplibs=unknown
10578  case "$host_os" in
10579  aix3*|aix4.1.*|aix4.2.*)
10580    # Unknown whether this is true for these versions of AIX, but
10581    # we want this `case' here to explicitly catch those versions.
10582    libltdl_cv_sys_dlopen_deplibs=unknown
10583    ;;
10584  aix[45]*)
10585    libltdl_cv_sys_dlopen_deplibs=yes
10586    ;;
10587  darwin*)
10588    # Assuming the user has installed a libdl from somewhere, this is true
10589    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10590    libltdl_cv_sys_dlopen_deplibs=yes
10591    ;;
10592  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10593    # GNU and its variants, using gnu ld.so (Glibc)
10594    libltdl_cv_sys_dlopen_deplibs=yes
10595    ;;
10596  hpux10*|hpux11*)
10597    libltdl_cv_sys_dlopen_deplibs=yes
10598    ;;
10599  interix*)
10600    libltdl_cv_sys_dlopen_deplibs=yes
10601    ;;
10602  irix[12345]*|irix6.[01]*)
10603    # Catch all versions of IRIX before 6.2, and indicate that we don't
10604    # know how it worked for any of those versions.
10605    libltdl_cv_sys_dlopen_deplibs=unknown
10606    ;;
10607  irix*)
10608    # The case above catches anything before 6.2, and it's known that
10609    # at 6.2 and later dlopen does load deplibs.
10610    libltdl_cv_sys_dlopen_deplibs=yes
10611    ;;
10612  netbsd*)
10613    libltdl_cv_sys_dlopen_deplibs=yes
10614    ;;
10615  openbsd*)
10616    libltdl_cv_sys_dlopen_deplibs=yes
10617    ;;
10618  osf[1234]*)
10619    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10620    # it did *not* use an RPATH in a shared library to find objects the
10621    # library depends on, so we explicitly say `no'.
10622    libltdl_cv_sys_dlopen_deplibs=no
10623    ;;
10624  osf5.0|osf5.0a|osf5.1)
10625    # dlopen *does* load deplibs and with the right loader patch applied
10626    # it even uses RPATH in a shared library to search for shared objects
10627    # that the library depends on, but there's no easy way to know if that
10628    # patch is installed.  Since this is the case, all we can really
10629    # say is unknown -- it depends on the patch being installed.  If
10630    # it is, this changes to `yes'.  Without it, it would be `no'.
10631    libltdl_cv_sys_dlopen_deplibs=unknown
10632    ;;
10633  osf*)
10634    # the two cases above should catch all versions of osf <= 5.1.  Read
10635    # the comments above for what we know about them.
10636    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10637    # is used to find them so we can finally say `yes'.
10638    libltdl_cv_sys_dlopen_deplibs=yes
10639    ;;
10640  solaris*)
10641    libltdl_cv_sys_dlopen_deplibs=yes
10642    ;;
10643  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10644    libltdl_cv_sys_dlopen_deplibs=yes
10645    ;;
10646  esac
10647
10648fi
10649{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10650echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10651if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10652
10653cat >>confdefs.h <<\_ACEOF
10654#define LTDL_DLOPEN_DEPLIBS 1
10655_ACEOF
10656
10657fi
10658
10659
10660for ac_header in argz.h
10661do
10662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10664  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10667  echo $ECHO_N "(cached) $ECHO_C" >&6
10668fi
10669ac_res=`eval echo '${'$as_ac_Header'}'`
10670	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10671echo "${ECHO_T}$ac_res" >&6; }
10672else
10673  # Is the header compilable?
10674{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10676cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h.  */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h.  */
10682$ac_includes_default
10683#include <$ac_header>
10684_ACEOF
10685rm -f conftest.$ac_objext
10686if { (ac_try="$ac_compile"
10687case "(($ac_try" in
10688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689  *) ac_try_echo=$ac_try;;
10690esac
10691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692  (eval "$ac_compile") 2>conftest.er1
10693  ac_status=$?
10694  grep -v '^ *+' conftest.er1 >conftest.err
10695  rm -f conftest.er1
10696  cat conftest.err >&5
10697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); } &&
10699	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700  { (case "(($ac_try" in
10701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702  *) ac_try_echo=$ac_try;;
10703esac
10704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705  (eval "$ac_try") 2>&5
10706  ac_status=$?
10707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708  (exit $ac_status); }; } &&
10709	 { ac_try='test -s conftest.$ac_objext'
10710  { (case "(($ac_try" in
10711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712  *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715  (eval "$ac_try") 2>&5
10716  ac_status=$?
10717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718  (exit $ac_status); }; }; then
10719  ac_header_compiler=yes
10720else
10721  echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724	ac_header_compiler=no
10725fi
10726
10727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729echo "${ECHO_T}$ac_header_compiler" >&6; }
10730
10731# Is the header present?
10732{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10733echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10734cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h.  */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h.  */
10740#include <$ac_header>
10741_ACEOF
10742if { (ac_try="$ac_cpp conftest.$ac_ext"
10743case "(($ac_try" in
10744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745  *) ac_try_echo=$ac_try;;
10746esac
10747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10749  ac_status=$?
10750  grep -v '^ *+' conftest.er1 >conftest.err
10751  rm -f conftest.er1
10752  cat conftest.err >&5
10753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754  (exit $ac_status); } >/dev/null; then
10755  if test -s conftest.err; then
10756    ac_cpp_err=$ac_c_preproc_warn_flag
10757    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10758  else
10759    ac_cpp_err=
10760  fi
10761else
10762  ac_cpp_err=yes
10763fi
10764if test -z "$ac_cpp_err"; then
10765  ac_header_preproc=yes
10766else
10767  echo "$as_me: failed program was:" >&5
10768sed 's/^/| /' conftest.$ac_ext >&5
10769
10770  ac_header_preproc=no
10771fi
10772
10773rm -f conftest.err conftest.$ac_ext
10774{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10775echo "${ECHO_T}$ac_header_preproc" >&6; }
10776
10777# So?  What about this header?
10778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10779  yes:no: )
10780    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10784    ac_header_preproc=yes
10785    ;;
10786  no:yes:* )
10787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10789    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10790echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10791    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10793    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10794echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10797    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10799    ( cat <<\_ASBOX
10800## ----------------------------------- ##
10801## Report this to llvmbugs@cs.uiuc.edu ##
10802## ----------------------------------- ##
10803_ASBOX
10804     ) | sed "s/^/$as_me: WARNING:     /" >&2
10805    ;;
10806esac
10807{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10810  echo $ECHO_N "(cached) $ECHO_C" >&6
10811else
10812  eval "$as_ac_Header=\$ac_header_preproc"
10813fi
10814ac_res=`eval echo '${'$as_ac_Header'}'`
10815	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10816echo "${ECHO_T}$ac_res" >&6; }
10817
10818fi
10819if test `eval echo '${'$as_ac_Header'}'` = yes; then
10820  cat >>confdefs.h <<_ACEOF
10821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10822_ACEOF
10823
10824fi
10825
10826done
10827
10828
10829{ echo "$as_me:$LINENO: checking for error_t" >&5
10830echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10831if test "${ac_cv_type_error_t+set}" = set; then
10832  echo $ECHO_N "(cached) $ECHO_C" >&6
10833else
10834  cat >conftest.$ac_ext <<_ACEOF
10835/* confdefs.h.  */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h.  */
10840#if HAVE_ARGZ_H
10841#  include <argz.h>
10842#endif
10843
10844typedef error_t ac__type_new_;
10845int
10846main ()
10847{
10848if ((ac__type_new_ *) 0)
10849  return 0;
10850if (sizeof (ac__type_new_))
10851  return 0;
10852  ;
10853  return 0;
10854}
10855_ACEOF
10856rm -f conftest.$ac_objext
10857if { (ac_try="$ac_compile"
10858case "(($ac_try" in
10859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860  *) ac_try_echo=$ac_try;;
10861esac
10862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863  (eval "$ac_compile") 2>conftest.er1
10864  ac_status=$?
10865  grep -v '^ *+' conftest.er1 >conftest.err
10866  rm -f conftest.er1
10867  cat conftest.err >&5
10868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869  (exit $ac_status); } &&
10870	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10871  { (case "(($ac_try" in
10872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873  *) ac_try_echo=$ac_try;;
10874esac
10875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876  (eval "$ac_try") 2>&5
10877  ac_status=$?
10878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879  (exit $ac_status); }; } &&
10880	 { ac_try='test -s conftest.$ac_objext'
10881  { (case "(($ac_try" in
10882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883  *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886  (eval "$ac_try") 2>&5
10887  ac_status=$?
10888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889  (exit $ac_status); }; }; then
10890  ac_cv_type_error_t=yes
10891else
10892  echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
10895	ac_cv_type_error_t=no
10896fi
10897
10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899fi
10900{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10901echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10902if test $ac_cv_type_error_t = yes; then
10903
10904cat >>confdefs.h <<_ACEOF
10905#define HAVE_ERROR_T 1
10906_ACEOF
10907
10908
10909else
10910
10911cat >>confdefs.h <<\_ACEOF
10912#define error_t int
10913_ACEOF
10914
10915fi
10916
10917
10918
10919
10920
10921
10922
10923for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10924do
10925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10926{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10928if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10929  echo $ECHO_N "(cached) $ECHO_C" >&6
10930else
10931  cat >conftest.$ac_ext <<_ACEOF
10932/* confdefs.h.  */
10933_ACEOF
10934cat confdefs.h >>conftest.$ac_ext
10935cat >>conftest.$ac_ext <<_ACEOF
10936/* end confdefs.h.  */
10937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10938   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10939#define $ac_func innocuous_$ac_func
10940
10941/* System header to define __stub macros and hopefully few prototypes,
10942    which can conflict with char $ac_func (); below.
10943    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10944    <limits.h> exists even on freestanding compilers.  */
10945
10946#ifdef __STDC__
10947# include <limits.h>
10948#else
10949# include <assert.h>
10950#endif
10951
10952#undef $ac_func
10953
10954/* Override any GCC internal prototype to avoid an error.
10955   Use char because int might match the return type of a GCC
10956   builtin and then its argument prototype would still apply.  */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960char $ac_func ();
10961/* The GNU C library defines this for functions which it implements
10962    to always fail with ENOSYS.  Some functions are actually named
10963    something starting with __ and the normal name is an alias.  */
10964#if defined __stub_$ac_func || defined __stub___$ac_func
10965choke me
10966#endif
10967
10968int
10969main ()
10970{
10971return $ac_func ();
10972  ;
10973  return 0;
10974}
10975_ACEOF
10976rm -f conftest.$ac_objext conftest$ac_exeext
10977if { (ac_try="$ac_link"
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_link") 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_exeext'
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  eval "$as_ac_var=yes"
11011else
11012  echo "$as_me: failed program was:" >&5
11013sed 's/^/| /' conftest.$ac_ext >&5
11014
11015	eval "$as_ac_var=no"
11016fi
11017
11018rm -f core conftest.err conftest.$ac_objext \
11019      conftest$ac_exeext conftest.$ac_ext
11020fi
11021ac_res=`eval echo '${'$as_ac_var'}'`
11022	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11023echo "${ECHO_T}$ac_res" >&6; }
11024if test `eval echo '${'$as_ac_var'}'` = yes; then
11025  cat >>confdefs.h <<_ACEOF
11026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11027_ACEOF
11028
11029fi
11030done
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11060		  stdio.h unistd.h
11061do
11062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11067  echo $ECHO_N "(cached) $ECHO_C" >&6
11068fi
11069ac_res=`eval echo '${'$as_ac_Header'}'`
11070	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11071echo "${ECHO_T}$ac_res" >&6; }
11072else
11073  # Is the header compilable?
11074{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11076cat >conftest.$ac_ext <<_ACEOF
11077/* confdefs.h.  */
11078_ACEOF
11079cat confdefs.h >>conftest.$ac_ext
11080cat >>conftest.$ac_ext <<_ACEOF
11081/* end confdefs.h.  */
11082$ac_includes_default
11083#include <$ac_header>
11084_ACEOF
11085rm -f conftest.$ac_objext
11086if { (ac_try="$ac_compile"
11087case "(($ac_try" in
11088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089  *) ac_try_echo=$ac_try;;
11090esac
11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092  (eval "$ac_compile") 2>conftest.er1
11093  ac_status=$?
11094  grep -v '^ *+' conftest.er1 >conftest.err
11095  rm -f conftest.er1
11096  cat conftest.err >&5
11097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098  (exit $ac_status); } &&
11099	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100  { (case "(($ac_try" in
11101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102  *) ac_try_echo=$ac_try;;
11103esac
11104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105  (eval "$ac_try") 2>&5
11106  ac_status=$?
11107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108  (exit $ac_status); }; } &&
11109	 { ac_try='test -s conftest.$ac_objext'
11110  { (case "(($ac_try" in
11111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112  *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115  (eval "$ac_try") 2>&5
11116  ac_status=$?
11117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118  (exit $ac_status); }; }; then
11119  ac_header_compiler=yes
11120else
11121  echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
11124	ac_header_compiler=no
11125fi
11126
11127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11129echo "${ECHO_T}$ac_header_compiler" >&6; }
11130
11131# Is the header present?
11132{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11134cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h.  */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h.  */
11140#include <$ac_header>
11141_ACEOF
11142if { (ac_try="$ac_cpp conftest.$ac_ext"
11143case "(($ac_try" in
11144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145  *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11149  ac_status=$?
11150  grep -v '^ *+' conftest.er1 >conftest.err
11151  rm -f conftest.er1
11152  cat conftest.err >&5
11153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154  (exit $ac_status); } >/dev/null; then
11155  if test -s conftest.err; then
11156    ac_cpp_err=$ac_c_preproc_warn_flag
11157    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11158  else
11159    ac_cpp_err=
11160  fi
11161else
11162  ac_cpp_err=yes
11163fi
11164if test -z "$ac_cpp_err"; then
11165  ac_header_preproc=yes
11166else
11167  echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170  ac_header_preproc=no
11171fi
11172
11173rm -f conftest.err conftest.$ac_ext
11174{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11175echo "${ECHO_T}$ac_header_preproc" >&6; }
11176
11177# So?  What about this header?
11178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11179  yes:no: )
11180    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11184    ac_header_preproc=yes
11185    ;;
11186  no:yes:* )
11187    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11189    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11190echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11191    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11193    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11194echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11195    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11197    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11199    ( cat <<\_ASBOX
11200## ----------------------------------- ##
11201## Report this to llvmbugs@cs.uiuc.edu ##
11202## ----------------------------------- ##
11203_ASBOX
11204     ) | sed "s/^/$as_me: WARNING:     /" >&2
11205    ;;
11206esac
11207{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11210  echo $ECHO_N "(cached) $ECHO_C" >&6
11211else
11212  eval "$as_ac_Header=\$ac_header_preproc"
11213fi
11214ac_res=`eval echo '${'$as_ac_Header'}'`
11215	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11216echo "${ECHO_T}$ac_res" >&6; }
11217
11218fi
11219if test `eval echo '${'$as_ac_Header'}'` = yes; then
11220  cat >>confdefs.h <<_ACEOF
11221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11222_ACEOF
11223
11224fi
11225
11226done
11227
11228
11229
11230
11231
11232for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11233do
11234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239  echo $ECHO_N "(cached) $ECHO_C" >&6
11240fi
11241ac_res=`eval echo '${'$as_ac_Header'}'`
11242	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11243echo "${ECHO_T}$ac_res" >&6; }
11244else
11245  # Is the header compilable?
11246{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11247echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
11255#include <$ac_header>
11256_ACEOF
11257rm -f conftest.$ac_objext
11258if { (ac_try="$ac_compile"
11259case "(($ac_try" in
11260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261  *) ac_try_echo=$ac_try;;
11262esac
11263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264  (eval "$ac_compile") 2>conftest.er1
11265  ac_status=$?
11266  grep -v '^ *+' conftest.er1 >conftest.err
11267  rm -f conftest.er1
11268  cat conftest.err >&5
11269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270  (exit $ac_status); } &&
11271	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11272  { (case "(($ac_try" in
11273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274  *) ac_try_echo=$ac_try;;
11275esac
11276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277  (eval "$ac_try") 2>&5
11278  ac_status=$?
11279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280  (exit $ac_status); }; } &&
11281	 { ac_try='test -s conftest.$ac_objext'
11282  { (case "(($ac_try" in
11283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284  *) ac_try_echo=$ac_try;;
11285esac
11286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287  (eval "$ac_try") 2>&5
11288  ac_status=$?
11289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290  (exit $ac_status); }; }; then
11291  ac_header_compiler=yes
11292else
11293  echo "$as_me: failed program was:" >&5
11294sed 's/^/| /' conftest.$ac_ext >&5
11295
11296	ac_header_compiler=no
11297fi
11298
11299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11301echo "${ECHO_T}$ac_header_compiler" >&6; }
11302
11303# Is the header present?
11304{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11306cat >conftest.$ac_ext <<_ACEOF
11307/* confdefs.h.  */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h.  */
11312#include <$ac_header>
11313_ACEOF
11314if { (ac_try="$ac_cpp conftest.$ac_ext"
11315case "(($ac_try" in
11316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317  *) ac_try_echo=$ac_try;;
11318esac
11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11321  ac_status=$?
11322  grep -v '^ *+' conftest.er1 >conftest.err
11323  rm -f conftest.er1
11324  cat conftest.err >&5
11325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326  (exit $ac_status); } >/dev/null; then
11327  if test -s conftest.err; then
11328    ac_cpp_err=$ac_c_preproc_warn_flag
11329    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11330  else
11331    ac_cpp_err=
11332  fi
11333else
11334  ac_cpp_err=yes
11335fi
11336if test -z "$ac_cpp_err"; then
11337  ac_header_preproc=yes
11338else
11339  echo "$as_me: failed program was:" >&5
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
11342  ac_header_preproc=no
11343fi
11344
11345rm -f conftest.err conftest.$ac_ext
11346{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11347echo "${ECHO_T}$ac_header_preproc" >&6; }
11348
11349# So?  What about this header?
11350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11351  yes:no: )
11352    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11354    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11356    ac_header_preproc=yes
11357    ;;
11358  no:yes:* )
11359    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11361    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11362echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11363    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11365    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11366echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11367    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11369    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11371    ( cat <<\_ASBOX
11372## ----------------------------------- ##
11373## Report this to llvmbugs@cs.uiuc.edu ##
11374## ----------------------------------- ##
11375_ASBOX
11376     ) | sed "s/^/$as_me: WARNING:     /" >&2
11377    ;;
11378esac
11379{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11382  echo $ECHO_N "(cached) $ECHO_C" >&6
11383else
11384  eval "$as_ac_Header=\$ac_header_preproc"
11385fi
11386ac_res=`eval echo '${'$as_ac_Header'}'`
11387	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11388echo "${ECHO_T}$ac_res" >&6; }
11389
11390fi
11391if test `eval echo '${'$as_ac_Header'}'` = yes; then
11392  cat >>confdefs.h <<_ACEOF
11393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11394_ACEOF
11395
11396fi
11397
11398done
11399
11400
11401
11402for ac_header in string.h strings.h
11403do
11404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409  echo $ECHO_N "(cached) $ECHO_C" >&6
11410fi
11411ac_res=`eval echo '${'$as_ac_Header'}'`
11412	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11413echo "${ECHO_T}$ac_res" >&6; }
11414else
11415  # Is the header compilable?
11416{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11418cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h.  */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h.  */
11424$ac_includes_default
11425#include <$ac_header>
11426_ACEOF
11427rm -f conftest.$ac_objext
11428if { (ac_try="$ac_compile"
11429case "(($ac_try" in
11430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431  *) ac_try_echo=$ac_try;;
11432esac
11433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434  (eval "$ac_compile") 2>conftest.er1
11435  ac_status=$?
11436  grep -v '^ *+' conftest.er1 >conftest.err
11437  rm -f conftest.er1
11438  cat conftest.err >&5
11439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440  (exit $ac_status); } &&
11441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442  { (case "(($ac_try" in
11443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444  *) ac_try_echo=$ac_try;;
11445esac
11446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447  (eval "$ac_try") 2>&5
11448  ac_status=$?
11449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450  (exit $ac_status); }; } &&
11451	 { ac_try='test -s conftest.$ac_objext'
11452  { (case "(($ac_try" in
11453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454  *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457  (eval "$ac_try") 2>&5
11458  ac_status=$?
11459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460  (exit $ac_status); }; }; then
11461  ac_header_compiler=yes
11462else
11463  echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
11466	ac_header_compiler=no
11467fi
11468
11469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11471echo "${ECHO_T}$ac_header_compiler" >&6; }
11472
11473# Is the header present?
11474{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11476cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h.  */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h.  */
11482#include <$ac_header>
11483_ACEOF
11484if { (ac_try="$ac_cpp conftest.$ac_ext"
11485case "(($ac_try" in
11486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487  *) ac_try_echo=$ac_try;;
11488esac
11489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11491  ac_status=$?
11492  grep -v '^ *+' conftest.er1 >conftest.err
11493  rm -f conftest.er1
11494  cat conftest.err >&5
11495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496  (exit $ac_status); } >/dev/null; then
11497  if test -s conftest.err; then
11498    ac_cpp_err=$ac_c_preproc_warn_flag
11499    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11500  else
11501    ac_cpp_err=
11502  fi
11503else
11504  ac_cpp_err=yes
11505fi
11506if test -z "$ac_cpp_err"; then
11507  ac_header_preproc=yes
11508else
11509  echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
11511
11512  ac_header_preproc=no
11513fi
11514
11515rm -f conftest.err conftest.$ac_ext
11516{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11517echo "${ECHO_T}$ac_header_preproc" >&6; }
11518
11519# So?  What about this header?
11520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11521  yes:no: )
11522    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11526    ac_header_preproc=yes
11527    ;;
11528  no:yes:* )
11529    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11531    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11532echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11533    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11535    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11536echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11537    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11541    ( cat <<\_ASBOX
11542## ----------------------------------- ##
11543## Report this to llvmbugs@cs.uiuc.edu ##
11544## ----------------------------------- ##
11545_ASBOX
11546     ) | sed "s/^/$as_me: WARNING:     /" >&2
11547    ;;
11548esac
11549{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552  echo $ECHO_N "(cached) $ECHO_C" >&6
11553else
11554  eval "$as_ac_Header=\$ac_header_preproc"
11555fi
11556ac_res=`eval echo '${'$as_ac_Header'}'`
11557	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11558echo "${ECHO_T}$ac_res" >&6; }
11559
11560fi
11561if test `eval echo '${'$as_ac_Header'}'` = yes; then
11562  cat >>confdefs.h <<_ACEOF
11563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564_ACEOF
11565 break
11566fi
11567
11568done
11569
11570
11571
11572
11573for ac_func in strchr index
11574do
11575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11576{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11579  echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581  cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h.  */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h.  */
11587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11588   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11589#define $ac_func innocuous_$ac_func
11590
11591/* System header to define __stub macros and hopefully few prototypes,
11592    which can conflict with char $ac_func (); below.
11593    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11594    <limits.h> exists even on freestanding compilers.  */
11595
11596#ifdef __STDC__
11597# include <limits.h>
11598#else
11599# include <assert.h>
11600#endif
11601
11602#undef $ac_func
11603
11604/* Override any GCC internal prototype to avoid an error.
11605   Use char because int might match the return type of a GCC
11606   builtin and then its argument prototype would still apply.  */
11607#ifdef __cplusplus
11608extern "C"
11609#endif
11610char $ac_func ();
11611/* The GNU C library defines this for functions which it implements
11612    to always fail with ENOSYS.  Some functions are actually named
11613    something starting with __ and the normal name is an alias.  */
11614#if defined __stub_$ac_func || defined __stub___$ac_func
11615choke me
11616#endif
11617
11618int
11619main ()
11620{
11621return $ac_func ();
11622  ;
11623  return 0;
11624}
11625_ACEOF
11626rm -f conftest.$ac_objext conftest$ac_exeext
11627if { (ac_try="$ac_link"
11628case "(($ac_try" in
11629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630  *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633  (eval "$ac_link") 2>conftest.er1
11634  ac_status=$?
11635  grep -v '^ *+' conftest.er1 >conftest.err
11636  rm -f conftest.er1
11637  cat conftest.err >&5
11638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639  (exit $ac_status); } &&
11640	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11641  { (case "(($ac_try" in
11642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643  *) ac_try_echo=$ac_try;;
11644esac
11645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646  (eval "$ac_try") 2>&5
11647  ac_status=$?
11648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649  (exit $ac_status); }; } &&
11650	 { ac_try='test -s conftest$ac_exeext'
11651  { (case "(($ac_try" in
11652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653  *) ac_try_echo=$ac_try;;
11654esac
11655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656  (eval "$ac_try") 2>&5
11657  ac_status=$?
11658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); }; }; then
11660  eval "$as_ac_var=yes"
11661else
11662  echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665	eval "$as_ac_var=no"
11666fi
11667
11668rm -f core conftest.err conftest.$ac_objext \
11669      conftest$ac_exeext conftest.$ac_ext
11670fi
11671ac_res=`eval echo '${'$as_ac_var'}'`
11672	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11673echo "${ECHO_T}$ac_res" >&6; }
11674if test `eval echo '${'$as_ac_var'}'` = yes; then
11675  cat >>confdefs.h <<_ACEOF
11676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11677_ACEOF
11678 break
11679fi
11680done
11681
11682
11683
11684for ac_func in strrchr rindex
11685do
11686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11690  echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692  cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h.  */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h.  */
11698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11699   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11700#define $ac_func innocuous_$ac_func
11701
11702/* System header to define __stub macros and hopefully few prototypes,
11703    which can conflict with char $ac_func (); below.
11704    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705    <limits.h> exists even on freestanding compilers.  */
11706
11707#ifdef __STDC__
11708# include <limits.h>
11709#else
11710# include <assert.h>
11711#endif
11712
11713#undef $ac_func
11714
11715/* Override any GCC internal prototype to avoid an error.
11716   Use char because int might match the return type of a GCC
11717   builtin and then its argument prototype would still apply.  */
11718#ifdef __cplusplus
11719extern "C"
11720#endif
11721char $ac_func ();
11722/* The GNU C library defines this for functions which it implements
11723    to always fail with ENOSYS.  Some functions are actually named
11724    something starting with __ and the normal name is an alias.  */
11725#if defined __stub_$ac_func || defined __stub___$ac_func
11726choke me
11727#endif
11728
11729int
11730main ()
11731{
11732return $ac_func ();
11733  ;
11734  return 0;
11735}
11736_ACEOF
11737rm -f conftest.$ac_objext conftest$ac_exeext
11738if { (ac_try="$ac_link"
11739case "(($ac_try" in
11740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741  *) ac_try_echo=$ac_try;;
11742esac
11743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744  (eval "$ac_link") 2>conftest.er1
11745  ac_status=$?
11746  grep -v '^ *+' conftest.er1 >conftest.err
11747  rm -f conftest.er1
11748  cat conftest.err >&5
11749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750  (exit $ac_status); } &&
11751	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11752  { (case "(($ac_try" in
11753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754  *) ac_try_echo=$ac_try;;
11755esac
11756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757  (eval "$ac_try") 2>&5
11758  ac_status=$?
11759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760  (exit $ac_status); }; } &&
11761	 { ac_try='test -s conftest$ac_exeext'
11762  { (case "(($ac_try" in
11763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764  *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767  (eval "$ac_try") 2>&5
11768  ac_status=$?
11769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770  (exit $ac_status); }; }; then
11771  eval "$as_ac_var=yes"
11772else
11773  echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776	eval "$as_ac_var=no"
11777fi
11778
11779rm -f core conftest.err conftest.$ac_objext \
11780      conftest$ac_exeext conftest.$ac_ext
11781fi
11782ac_res=`eval echo '${'$as_ac_var'}'`
11783	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11784echo "${ECHO_T}$ac_res" >&6; }
11785if test `eval echo '${'$as_ac_var'}'` = yes; then
11786  cat >>confdefs.h <<_ACEOF
11787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11788_ACEOF
11789 break
11790fi
11791done
11792
11793
11794
11795for ac_func in memcpy bcopy
11796do
11797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11800if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11801  echo $ECHO_N "(cached) $ECHO_C" >&6
11802else
11803  cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h.  */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h.  */
11809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11810   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11811#define $ac_func innocuous_$ac_func
11812
11813/* System header to define __stub macros and hopefully few prototypes,
11814    which can conflict with char $ac_func (); below.
11815    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816    <limits.h> exists even on freestanding compilers.  */
11817
11818#ifdef __STDC__
11819# include <limits.h>
11820#else
11821# include <assert.h>
11822#endif
11823
11824#undef $ac_func
11825
11826/* Override any GCC internal prototype to avoid an error.
11827   Use char because int might match the return type of a GCC
11828   builtin and then its argument prototype would still apply.  */
11829#ifdef __cplusplus
11830extern "C"
11831#endif
11832char $ac_func ();
11833/* The GNU C library defines this for functions which it implements
11834    to always fail with ENOSYS.  Some functions are actually named
11835    something starting with __ and the normal name is an alias.  */
11836#if defined __stub_$ac_func || defined __stub___$ac_func
11837choke me
11838#endif
11839
11840int
11841main ()
11842{
11843return $ac_func ();
11844  ;
11845  return 0;
11846}
11847_ACEOF
11848rm -f conftest.$ac_objext conftest$ac_exeext
11849if { (ac_try="$ac_link"
11850case "(($ac_try" in
11851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852  *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855  (eval "$ac_link") 2>conftest.er1
11856  ac_status=$?
11857  grep -v '^ *+' conftest.er1 >conftest.err
11858  rm -f conftest.er1
11859  cat conftest.err >&5
11860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861  (exit $ac_status); } &&
11862	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863  { (case "(($ac_try" in
11864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865  *) ac_try_echo=$ac_try;;
11866esac
11867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868  (eval "$ac_try") 2>&5
11869  ac_status=$?
11870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871  (exit $ac_status); }; } &&
11872	 { ac_try='test -s conftest$ac_exeext'
11873  { (case "(($ac_try" in
11874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875  *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878  (eval "$ac_try") 2>&5
11879  ac_status=$?
11880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881  (exit $ac_status); }; }; then
11882  eval "$as_ac_var=yes"
11883else
11884  echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
11887	eval "$as_ac_var=no"
11888fi
11889
11890rm -f core conftest.err conftest.$ac_objext \
11891      conftest$ac_exeext conftest.$ac_ext
11892fi
11893ac_res=`eval echo '${'$as_ac_var'}'`
11894	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11895echo "${ECHO_T}$ac_res" >&6; }
11896if test `eval echo '${'$as_ac_var'}'` = yes; then
11897  cat >>confdefs.h <<_ACEOF
11898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899_ACEOF
11900 break
11901fi
11902done
11903
11904
11905
11906for ac_func in memmove strcmp
11907do
11908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11912  echo $ECHO_N "(cached) $ECHO_C" >&6
11913else
11914  cat >conftest.$ac_ext <<_ACEOF
11915/* confdefs.h.  */
11916_ACEOF
11917cat confdefs.h >>conftest.$ac_ext
11918cat >>conftest.$ac_ext <<_ACEOF
11919/* end confdefs.h.  */
11920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11922#define $ac_func innocuous_$ac_func
11923
11924/* System header to define __stub macros and hopefully few prototypes,
11925    which can conflict with char $ac_func (); below.
11926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927    <limits.h> exists even on freestanding compilers.  */
11928
11929#ifdef __STDC__
11930# include <limits.h>
11931#else
11932# include <assert.h>
11933#endif
11934
11935#undef $ac_func
11936
11937/* Override any GCC internal prototype to avoid an error.
11938   Use char because int might match the return type of a GCC
11939   builtin and then its argument prototype would still apply.  */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char $ac_func ();
11944/* The GNU C library defines this for functions which it implements
11945    to always fail with ENOSYS.  Some functions are actually named
11946    something starting with __ and the normal name is an alias.  */
11947#if defined __stub_$ac_func || defined __stub___$ac_func
11948choke me
11949#endif
11950
11951int
11952main ()
11953{
11954return $ac_func ();
11955  ;
11956  return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext conftest$ac_exeext
11960if { (ac_try="$ac_link"
11961case "(($ac_try" in
11962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963  *) ac_try_echo=$ac_try;;
11964esac
11965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966  (eval "$ac_link") 2>conftest.er1
11967  ac_status=$?
11968  grep -v '^ *+' conftest.er1 >conftest.err
11969  rm -f conftest.er1
11970  cat conftest.err >&5
11971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972  (exit $ac_status); } &&
11973	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974  { (case "(($ac_try" in
11975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976  *) ac_try_echo=$ac_try;;
11977esac
11978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979  (eval "$ac_try") 2>&5
11980  ac_status=$?
11981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982  (exit $ac_status); }; } &&
11983	 { ac_try='test -s conftest$ac_exeext'
11984  { (case "(($ac_try" in
11985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986  *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989  (eval "$ac_try") 2>&5
11990  ac_status=$?
11991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992  (exit $ac_status); }; }; then
11993  eval "$as_ac_var=yes"
11994else
11995  echo "$as_me: failed program was:" >&5
11996sed 's/^/| /' conftest.$ac_ext >&5
11997
11998	eval "$as_ac_var=no"
11999fi
12000
12001rm -f core conftest.err conftest.$ac_objext \
12002      conftest$ac_exeext conftest.$ac_ext
12003fi
12004ac_res=`eval echo '${'$as_ac_var'}'`
12005	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12006echo "${ECHO_T}$ac_res" >&6; }
12007if test `eval echo '${'$as_ac_var'}'` = yes; then
12008  cat >>confdefs.h <<_ACEOF
12009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12010_ACEOF
12011
12012fi
12013done
12014
12015
12016
12017
12018for ac_func in closedir opendir readdir
12019do
12020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024  echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026  cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h.  */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h.  */
12032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12034#define $ac_func innocuous_$ac_func
12035
12036/* System header to define __stub macros and hopefully few prototypes,
12037    which can conflict with char $ac_func (); below.
12038    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039    <limits.h> exists even on freestanding compilers.  */
12040
12041#ifdef __STDC__
12042# include <limits.h>
12043#else
12044# include <assert.h>
12045#endif
12046
12047#undef $ac_func
12048
12049/* Override any GCC internal prototype to avoid an error.
12050   Use char because int might match the return type of a GCC
12051   builtin and then its argument prototype would still apply.  */
12052#ifdef __cplusplus
12053extern "C"
12054#endif
12055char $ac_func ();
12056/* The GNU C library defines this for functions which it implements
12057    to always fail with ENOSYS.  Some functions are actually named
12058    something starting with __ and the normal name is an alias.  */
12059#if defined __stub_$ac_func || defined __stub___$ac_func
12060choke me
12061#endif
12062
12063int
12064main ()
12065{
12066return $ac_func ();
12067  ;
12068  return 0;
12069}
12070_ACEOF
12071rm -f conftest.$ac_objext conftest$ac_exeext
12072if { (ac_try="$ac_link"
12073case "(($ac_try" in
12074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075  *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078  (eval "$ac_link") 2>conftest.er1
12079  ac_status=$?
12080  grep -v '^ *+' conftest.er1 >conftest.err
12081  rm -f conftest.er1
12082  cat conftest.err >&5
12083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084  (exit $ac_status); } &&
12085	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086  { (case "(($ac_try" in
12087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088  *) ac_try_echo=$ac_try;;
12089esac
12090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091  (eval "$ac_try") 2>&5
12092  ac_status=$?
12093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094  (exit $ac_status); }; } &&
12095	 { ac_try='test -s conftest$ac_exeext'
12096  { (case "(($ac_try" in
12097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098  *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101  (eval "$ac_try") 2>&5
12102  ac_status=$?
12103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104  (exit $ac_status); }; }; then
12105  eval "$as_ac_var=yes"
12106else
12107  echo "$as_me: failed program was:" >&5
12108sed 's/^/| /' conftest.$ac_ext >&5
12109
12110	eval "$as_ac_var=no"
12111fi
12112
12113rm -f core conftest.err conftest.$ac_objext \
12114      conftest$ac_exeext conftest.$ac_ext
12115fi
12116ac_res=`eval echo '${'$as_ac_var'}'`
12117	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12118echo "${ECHO_T}$ac_res" >&6; }
12119if test `eval echo '${'$as_ac_var'}'` = yes; then
12120  cat >>confdefs.h <<_ACEOF
12121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12122_ACEOF
12123
12124fi
12125done
12126
12127
12128
12129{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12130echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12131
12132ICC=no
12133IXX=no
12134case $CC in
12135  icc*|icpc*)
12136    ICC=yes
12137    IXX=yes
12138    ;;
12139   *)
12140    ;;
12141esac
12142
12143if test "$GCC" != "yes" && test "$ICC" != "yes"
12144then
12145  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12146echo "$as_me: error: gcc|icc required but not found" >&2;}
12147   { (exit 1); exit 1; }; }
12148fi
12149
12150if test "$GXX" != "yes" && test "$IXX" != "yes"
12151then
12152  { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12153echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12154   { (exit 1); exit 1; }; }
12155fi
12156
12157if test "$GCC" = "yes"
12158then
12159  cat >conftest.$ac_ext <<_ACEOF
12160#if !defined(__GNUC__) || __GNUC__ < 3
12161#error Unsupported GCC version
12162#endif
12163
12164_ACEOF
12165rm -f conftest.$ac_objext
12166if { (ac_try="$ac_compile"
12167case "(($ac_try" in
12168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169  *) ac_try_echo=$ac_try;;
12170esac
12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172  (eval "$ac_compile") 2>conftest.er1
12173  ac_status=$?
12174  grep -v '^ *+' conftest.er1 >conftest.err
12175  rm -f conftest.er1
12176  cat conftest.err >&5
12177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178  (exit $ac_status); } &&
12179	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12180  { (case "(($ac_try" in
12181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182  *) ac_try_echo=$ac_try;;
12183esac
12184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185  (eval "$ac_try") 2>&5
12186  ac_status=$?
12187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188  (exit $ac_status); }; } &&
12189	 { ac_try='test -s conftest.$ac_objext'
12190  { (case "(($ac_try" in
12191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192  *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195  (eval "$ac_try") 2>&5
12196  ac_status=$?
12197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198  (exit $ac_status); }; }; then
12199  :
12200else
12201  echo "$as_me: failed program was:" >&5
12202sed 's/^/| /' conftest.$ac_ext >&5
12203
12204	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12205echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12206   { (exit 1); exit 1; }; }
12207fi
12208
12209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210fi
12211
12212if test -z "$llvm_cv_gnu_make_command"
12213then
12214  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12215echo "$as_me: error: GNU Make required but not found" >&2;}
12216   { (exit 1); exit 1; }; }
12217fi
12218
12219{ echo "$as_me:$LINENO: result: ok" >&5
12220echo "${ECHO_T}ok" >&6; }
12221
12222{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12223echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12224NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12225
12226NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12227
12228{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12229echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12230
12231
12232
12233{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12234echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12235if test "${ac_cv_lib_m_sin+set}" = set; then
12236  echo $ECHO_N "(cached) $ECHO_C" >&6
12237else
12238  ac_check_lib_save_LIBS=$LIBS
12239LIBS="-lm  $LIBS"
12240cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h.  */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h.  */
12246
12247/* Override any GCC internal prototype to avoid an error.
12248   Use char because int might match the return type of a GCC
12249   builtin and then its argument prototype would still apply.  */
12250#ifdef __cplusplus
12251extern "C"
12252#endif
12253char sin ();
12254int
12255main ()
12256{
12257return sin ();
12258  ;
12259  return 0;
12260}
12261_ACEOF
12262rm -f conftest.$ac_objext conftest$ac_exeext
12263if { (ac_try="$ac_link"
12264case "(($ac_try" in
12265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266  *) ac_try_echo=$ac_try;;
12267esac
12268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269  (eval "$ac_link") 2>conftest.er1
12270  ac_status=$?
12271  grep -v '^ *+' conftest.er1 >conftest.err
12272  rm -f conftest.er1
12273  cat conftest.err >&5
12274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275  (exit $ac_status); } &&
12276	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12277  { (case "(($ac_try" in
12278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279  *) ac_try_echo=$ac_try;;
12280esac
12281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282  (eval "$ac_try") 2>&5
12283  ac_status=$?
12284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285  (exit $ac_status); }; } &&
12286	 { ac_try='test -s conftest$ac_exeext'
12287  { (case "(($ac_try" in
12288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289  *) ac_try_echo=$ac_try;;
12290esac
12291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292  (eval "$ac_try") 2>&5
12293  ac_status=$?
12294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295  (exit $ac_status); }; }; then
12296  ac_cv_lib_m_sin=yes
12297else
12298  echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
12301	ac_cv_lib_m_sin=no
12302fi
12303
12304rm -f core conftest.err conftest.$ac_objext \
12305      conftest$ac_exeext conftest.$ac_ext
12306LIBS=$ac_check_lib_save_LIBS
12307fi
12308{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12309echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12310if test $ac_cv_lib_m_sin = yes; then
12311  cat >>confdefs.h <<_ACEOF
12312#define HAVE_LIBM 1
12313_ACEOF
12314
12315  LIBS="-lm $LIBS"
12316
12317fi
12318
12319if test "$llvm_cv_os_type" = "MingW" ; then
12320
12321{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12322echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12323if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12324  echo $ECHO_N "(cached) $ECHO_C" >&6
12325else
12326  ac_check_lib_save_LIBS=$LIBS
12327LIBS="-limagehlp  $LIBS"
12328cat >conftest.$ac_ext <<_ACEOF
12329/* confdefs.h.  */
12330_ACEOF
12331cat confdefs.h >>conftest.$ac_ext
12332cat >>conftest.$ac_ext <<_ACEOF
12333/* end confdefs.h.  */
12334
12335
12336int
12337main ()
12338{
12339return main ();
12340  ;
12341  return 0;
12342}
12343_ACEOF
12344rm -f conftest.$ac_objext conftest$ac_exeext
12345if { (ac_try="$ac_link"
12346case "(($ac_try" in
12347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348  *) ac_try_echo=$ac_try;;
12349esac
12350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351  (eval "$ac_link") 2>conftest.er1
12352  ac_status=$?
12353  grep -v '^ *+' conftest.er1 >conftest.err
12354  rm -f conftest.er1
12355  cat conftest.err >&5
12356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357  (exit $ac_status); } &&
12358	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359  { (case "(($ac_try" in
12360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361  *) ac_try_echo=$ac_try;;
12362esac
12363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364  (eval "$ac_try") 2>&5
12365  ac_status=$?
12366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367  (exit $ac_status); }; } &&
12368	 { ac_try='test -s conftest$ac_exeext'
12369  { (case "(($ac_try" in
12370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371  *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374  (eval "$ac_try") 2>&5
12375  ac_status=$?
12376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377  (exit $ac_status); }; }; then
12378  ac_cv_lib_imagehlp_main=yes
12379else
12380  echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383	ac_cv_lib_imagehlp_main=no
12384fi
12385
12386rm -f core conftest.err conftest.$ac_objext \
12387      conftest$ac_exeext conftest.$ac_ext
12388LIBS=$ac_check_lib_save_LIBS
12389fi
12390{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12391echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12392if test $ac_cv_lib_imagehlp_main = yes; then
12393  cat >>confdefs.h <<_ACEOF
12394#define HAVE_LIBIMAGEHLP 1
12395_ACEOF
12396
12397  LIBS="-limagehlp $LIBS"
12398
12399fi
12400
12401
12402{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12403echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12404if test "${ac_cv_lib_psapi_main+set}" = set; then
12405  echo $ECHO_N "(cached) $ECHO_C" >&6
12406else
12407  ac_check_lib_save_LIBS=$LIBS
12408LIBS="-lpsapi  $LIBS"
12409cat >conftest.$ac_ext <<_ACEOF
12410/* confdefs.h.  */
12411_ACEOF
12412cat confdefs.h >>conftest.$ac_ext
12413cat >>conftest.$ac_ext <<_ACEOF
12414/* end confdefs.h.  */
12415
12416
12417int
12418main ()
12419{
12420return main ();
12421  ;
12422  return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext conftest$ac_exeext
12426if { (ac_try="$ac_link"
12427case "(($ac_try" in
12428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429  *) ac_try_echo=$ac_try;;
12430esac
12431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432  (eval "$ac_link") 2>conftest.er1
12433  ac_status=$?
12434  grep -v '^ *+' conftest.er1 >conftest.err
12435  rm -f conftest.er1
12436  cat conftest.err >&5
12437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438  (exit $ac_status); } &&
12439	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12440  { (case "(($ac_try" in
12441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442  *) ac_try_echo=$ac_try;;
12443esac
12444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445  (eval "$ac_try") 2>&5
12446  ac_status=$?
12447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448  (exit $ac_status); }; } &&
12449	 { ac_try='test -s conftest$ac_exeext'
12450  { (case "(($ac_try" in
12451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452  *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455  (eval "$ac_try") 2>&5
12456  ac_status=$?
12457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458  (exit $ac_status); }; }; then
12459  ac_cv_lib_psapi_main=yes
12460else
12461  echo "$as_me: failed program was:" >&5
12462sed 's/^/| /' conftest.$ac_ext >&5
12463
12464	ac_cv_lib_psapi_main=no
12465fi
12466
12467rm -f core conftest.err conftest.$ac_objext \
12468      conftest$ac_exeext conftest.$ac_ext
12469LIBS=$ac_check_lib_save_LIBS
12470fi
12471{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12472echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12473if test $ac_cv_lib_psapi_main = yes; then
12474  cat >>confdefs.h <<_ACEOF
12475#define HAVE_LIBPSAPI 1
12476_ACEOF
12477
12478  LIBS="-lpsapi $LIBS"
12479
12480fi
12481
12482fi
12483
12484{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12485echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12486if test "${ac_cv_search_dlopen+set}" = set; then
12487  echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489  ac_func_search_save_LIBS=$LIBS
12490cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h.  */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h.  */
12496
12497/* Override any GCC internal prototype to avoid an error.
12498   Use char because int might match the return type of a GCC
12499   builtin and then its argument prototype would still apply.  */
12500#ifdef __cplusplus
12501extern "C"
12502#endif
12503char dlopen ();
12504int
12505main ()
12506{
12507return dlopen ();
12508  ;
12509  return 0;
12510}
12511_ACEOF
12512for ac_lib in '' dl; do
12513  if test -z "$ac_lib"; then
12514    ac_res="none required"
12515  else
12516    ac_res=-l$ac_lib
12517    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12518  fi
12519  rm -f conftest.$ac_objext conftest$ac_exeext
12520if { (ac_try="$ac_link"
12521case "(($ac_try" in
12522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523  *) ac_try_echo=$ac_try;;
12524esac
12525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526  (eval "$ac_link") 2>conftest.er1
12527  ac_status=$?
12528  grep -v '^ *+' conftest.er1 >conftest.err
12529  rm -f conftest.er1
12530  cat conftest.err >&5
12531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532  (exit $ac_status); } &&
12533	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12534  { (case "(($ac_try" in
12535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536  *) ac_try_echo=$ac_try;;
12537esac
12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539  (eval "$ac_try") 2>&5
12540  ac_status=$?
12541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542  (exit $ac_status); }; } &&
12543	 { ac_try='test -s conftest$ac_exeext'
12544  { (case "(($ac_try" in
12545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546  *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549  (eval "$ac_try") 2>&5
12550  ac_status=$?
12551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552  (exit $ac_status); }; }; then
12553  ac_cv_search_dlopen=$ac_res
12554else
12555  echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558
12559fi
12560
12561rm -f core conftest.err conftest.$ac_objext \
12562      conftest$ac_exeext
12563  if test "${ac_cv_search_dlopen+set}" = set; then
12564  break
12565fi
12566done
12567if test "${ac_cv_search_dlopen+set}" = set; then
12568  :
12569else
12570  ac_cv_search_dlopen=no
12571fi
12572rm conftest.$ac_ext
12573LIBS=$ac_func_search_save_LIBS
12574fi
12575{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12576echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12577ac_res=$ac_cv_search_dlopen
12578if test "$ac_res" != no; then
12579  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12580
12581cat >>confdefs.h <<\_ACEOF
12582#define HAVE_DLOPEN 1
12583_ACEOF
12584
12585else
12586  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12587echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12588fi
12589
12590
12591if test "$llvm_cv_enable_libffi" = "yes" ; then
12592  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12593echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12594if test "${ac_cv_search_ffi_call+set}" = set; then
12595  echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597  ac_func_search_save_LIBS=$LIBS
12598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h.  */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h.  */
12604
12605/* Override any GCC internal prototype to avoid an error.
12606   Use char because int might match the return type of a GCC
12607   builtin and then its argument prototype would still apply.  */
12608#ifdef __cplusplus
12609extern "C"
12610#endif
12611char ffi_call ();
12612int
12613main ()
12614{
12615return ffi_call ();
12616  ;
12617  return 0;
12618}
12619_ACEOF
12620for ac_lib in '' ffi; do
12621  if test -z "$ac_lib"; then
12622    ac_res="none required"
12623  else
12624    ac_res=-l$ac_lib
12625    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12626  fi
12627  rm -f conftest.$ac_objext conftest$ac_exeext
12628if { (ac_try="$ac_link"
12629case "(($ac_try" in
12630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631  *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634  (eval "$ac_link") 2>conftest.er1
12635  ac_status=$?
12636  grep -v '^ *+' conftest.er1 >conftest.err
12637  rm -f conftest.er1
12638  cat conftest.err >&5
12639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640  (exit $ac_status); } &&
12641	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642  { (case "(($ac_try" in
12643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644  *) ac_try_echo=$ac_try;;
12645esac
12646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647  (eval "$ac_try") 2>&5
12648  ac_status=$?
12649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650  (exit $ac_status); }; } &&
12651	 { ac_try='test -s conftest$ac_exeext'
12652  { (case "(($ac_try" in
12653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654  *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657  (eval "$ac_try") 2>&5
12658  ac_status=$?
12659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660  (exit $ac_status); }; }; then
12661  ac_cv_search_ffi_call=$ac_res
12662else
12663  echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666
12667fi
12668
12669rm -f core conftest.err conftest.$ac_objext \
12670      conftest$ac_exeext
12671  if test "${ac_cv_search_ffi_call+set}" = set; then
12672  break
12673fi
12674done
12675if test "${ac_cv_search_ffi_call+set}" = set; then
12676  :
12677else
12678  ac_cv_search_ffi_call=no
12679fi
12680rm conftest.$ac_ext
12681LIBS=$ac_func_search_save_LIBS
12682fi
12683{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12684echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12685ac_res=$ac_cv_search_ffi_call
12686if test "$ac_res" != no; then
12687  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12688
12689cat >>confdefs.h <<\_ACEOF
12690#define HAVE_FFI_CALL 1
12691_ACEOF
12692
12693else
12694  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12695echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12696   { (exit 1); exit 1; }; }
12697fi
12698
12699fi
12700
12701{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12702echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12703if test "${ac_cv_search_mallinfo+set}" = set; then
12704  echo $ECHO_N "(cached) $ECHO_C" >&6
12705else
12706  ac_func_search_save_LIBS=$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 mallinfo ();
12721int
12722main ()
12723{
12724return mallinfo ();
12725  ;
12726  return 0;
12727}
12728_ACEOF
12729for ac_lib in '' malloc; do
12730  if test -z "$ac_lib"; then
12731    ac_res="none required"
12732  else
12733    ac_res=-l$ac_lib
12734    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12735  fi
12736  rm -f conftest.$ac_objext conftest$ac_exeext
12737if { (ac_try="$ac_link"
12738case "(($ac_try" in
12739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740  *) ac_try_echo=$ac_try;;
12741esac
12742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743  (eval "$ac_link") 2>conftest.er1
12744  ac_status=$?
12745  grep -v '^ *+' conftest.er1 >conftest.err
12746  rm -f conftest.er1
12747  cat conftest.err >&5
12748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749  (exit $ac_status); } &&
12750	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12751  { (case "(($ac_try" in
12752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753  *) ac_try_echo=$ac_try;;
12754esac
12755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756  (eval "$ac_try") 2>&5
12757  ac_status=$?
12758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759  (exit $ac_status); }; } &&
12760	 { ac_try='test -s conftest$ac_exeext'
12761  { (case "(($ac_try" in
12762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763  *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766  (eval "$ac_try") 2>&5
12767  ac_status=$?
12768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769  (exit $ac_status); }; }; then
12770  ac_cv_search_mallinfo=$ac_res
12771else
12772  echo "$as_me: failed program was:" >&5
12773sed 's/^/| /' conftest.$ac_ext >&5
12774
12775
12776fi
12777
12778rm -f core conftest.err conftest.$ac_objext \
12779      conftest$ac_exeext
12780  if test "${ac_cv_search_mallinfo+set}" = set; then
12781  break
12782fi
12783done
12784if test "${ac_cv_search_mallinfo+set}" = set; then
12785  :
12786else
12787  ac_cv_search_mallinfo=no
12788fi
12789rm conftest.$ac_ext
12790LIBS=$ac_func_search_save_LIBS
12791fi
12792{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12793echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12794ac_res=$ac_cv_search_mallinfo
12795if test "$ac_res" != no; then
12796  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12797
12798cat >>confdefs.h <<\_ACEOF
12799#define HAVE_MALLINFO 1
12800_ACEOF
12801
12802fi
12803
12804
12805if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12806
12807{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12808echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12809if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12810  echo $ECHO_N "(cached) $ECHO_C" >&6
12811else
12812  ac_check_lib_save_LIBS=$LIBS
12813LIBS="-lpthread  $LIBS"
12814cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h.  */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h.  */
12820
12821/* Override any GCC internal prototype to avoid an error.
12822   Use char because int might match the return type of a GCC
12823   builtin and then its argument prototype would still apply.  */
12824#ifdef __cplusplus
12825extern "C"
12826#endif
12827char pthread_mutex_init ();
12828int
12829main ()
12830{
12831return pthread_mutex_init ();
12832  ;
12833  return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext conftest$ac_exeext
12837if { (ac_try="$ac_link"
12838case "(($ac_try" in
12839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840  *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843  (eval "$ac_link") 2>conftest.er1
12844  ac_status=$?
12845  grep -v '^ *+' conftest.er1 >conftest.err
12846  rm -f conftest.er1
12847  cat conftest.err >&5
12848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849  (exit $ac_status); } &&
12850	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12851  { (case "(($ac_try" in
12852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853  *) ac_try_echo=$ac_try;;
12854esac
12855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856  (eval "$ac_try") 2>&5
12857  ac_status=$?
12858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859  (exit $ac_status); }; } &&
12860	 { ac_try='test -s conftest$ac_exeext'
12861  { (case "(($ac_try" in
12862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863  *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866  (eval "$ac_try") 2>&5
12867  ac_status=$?
12868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869  (exit $ac_status); }; }; then
12870  ac_cv_lib_pthread_pthread_mutex_init=yes
12871else
12872  echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
12875	ac_cv_lib_pthread_pthread_mutex_init=no
12876fi
12877
12878rm -f core conftest.err conftest.$ac_objext \
12879      conftest$ac_exeext conftest.$ac_ext
12880LIBS=$ac_check_lib_save_LIBS
12881fi
12882{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12883echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12884if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12885  cat >>confdefs.h <<_ACEOF
12886#define HAVE_LIBPTHREAD 1
12887_ACEOF
12888
12889  LIBS="-lpthread $LIBS"
12890
12891fi
12892
12893  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12894echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12895if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12896  echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898  ac_func_search_save_LIBS=$LIBS
12899cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h.  */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h.  */
12905
12906/* Override any GCC internal prototype to avoid an error.
12907   Use char because int might match the return type of a GCC
12908   builtin and then its argument prototype would still apply.  */
12909#ifdef __cplusplus
12910extern "C"
12911#endif
12912char pthread_mutex_lock ();
12913int
12914main ()
12915{
12916return pthread_mutex_lock ();
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921for ac_lib in '' pthread; do
12922  if test -z "$ac_lib"; then
12923    ac_res="none required"
12924  else
12925    ac_res=-l$ac_lib
12926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12927  fi
12928  rm -f conftest.$ac_objext conftest$ac_exeext
12929if { (ac_try="$ac_link"
12930case "(($ac_try" in
12931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932  *) ac_try_echo=$ac_try;;
12933esac
12934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935  (eval "$ac_link") 2>conftest.er1
12936  ac_status=$?
12937  grep -v '^ *+' conftest.er1 >conftest.err
12938  rm -f conftest.er1
12939  cat conftest.err >&5
12940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941  (exit $ac_status); } &&
12942	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12943  { (case "(($ac_try" in
12944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945  *) ac_try_echo=$ac_try;;
12946esac
12947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948  (eval "$ac_try") 2>&5
12949  ac_status=$?
12950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951  (exit $ac_status); }; } &&
12952	 { ac_try='test -s conftest$ac_exeext'
12953  { (case "(($ac_try" in
12954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955  *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958  (eval "$ac_try") 2>&5
12959  ac_status=$?
12960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961  (exit $ac_status); }; }; then
12962  ac_cv_search_pthread_mutex_lock=$ac_res
12963else
12964  echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967
12968fi
12969
12970rm -f core conftest.err conftest.$ac_objext \
12971      conftest$ac_exeext
12972  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12973  break
12974fi
12975done
12976if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12977  :
12978else
12979  ac_cv_search_pthread_mutex_lock=no
12980fi
12981rm conftest.$ac_ext
12982LIBS=$ac_func_search_save_LIBS
12983fi
12984{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12985echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12986ac_res=$ac_cv_search_pthread_mutex_lock
12987if test "$ac_res" != no; then
12988  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12989
12990cat >>confdefs.h <<\_ACEOF
12991#define HAVE_PTHREAD_MUTEX_LOCK 1
12992_ACEOF
12993
12994fi
12995
12996  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12997echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12998if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12999  echo $ECHO_N "(cached) $ECHO_C" >&6
13000else
13001  ac_func_search_save_LIBS=$LIBS
13002cat >conftest.$ac_ext <<_ACEOF
13003/* confdefs.h.  */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
13007/* end confdefs.h.  */
13008
13009/* Override any GCC internal prototype to avoid an error.
13010   Use char because int might match the return type of a GCC
13011   builtin and then its argument prototype would still apply.  */
13012#ifdef __cplusplus
13013extern "C"
13014#endif
13015char pthread_rwlock_init ();
13016int
13017main ()
13018{
13019return pthread_rwlock_init ();
13020  ;
13021  return 0;
13022}
13023_ACEOF
13024for ac_lib in '' pthread; do
13025  if test -z "$ac_lib"; then
13026    ac_res="none required"
13027  else
13028    ac_res=-l$ac_lib
13029    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13030  fi
13031  rm -f conftest.$ac_objext conftest$ac_exeext
13032if { (ac_try="$ac_link"
13033case "(($ac_try" in
13034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035  *) ac_try_echo=$ac_try;;
13036esac
13037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038  (eval "$ac_link") 2>conftest.er1
13039  ac_status=$?
13040  grep -v '^ *+' conftest.er1 >conftest.err
13041  rm -f conftest.er1
13042  cat conftest.err >&5
13043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044  (exit $ac_status); } &&
13045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13046  { (case "(($ac_try" in
13047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048  *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051  (eval "$ac_try") 2>&5
13052  ac_status=$?
13053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054  (exit $ac_status); }; } &&
13055	 { ac_try='test -s conftest$ac_exeext'
13056  { (case "(($ac_try" in
13057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058  *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061  (eval "$ac_try") 2>&5
13062  ac_status=$?
13063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064  (exit $ac_status); }; }; then
13065  ac_cv_search_pthread_rwlock_init=$ac_res
13066else
13067  echo "$as_me: failed program was:" >&5
13068sed 's/^/| /' conftest.$ac_ext >&5
13069
13070
13071fi
13072
13073rm -f core conftest.err conftest.$ac_objext \
13074      conftest$ac_exeext
13075  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13076  break
13077fi
13078done
13079if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13080  :
13081else
13082  ac_cv_search_pthread_rwlock_init=no
13083fi
13084rm conftest.$ac_ext
13085LIBS=$ac_func_search_save_LIBS
13086fi
13087{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13088echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13089ac_res=$ac_cv_search_pthread_rwlock_init
13090if test "$ac_res" != no; then
13091  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13092
13093cat >>confdefs.h <<\_ACEOF
13094#define HAVE_PTHREAD_RWLOCK_INIT 1
13095_ACEOF
13096
13097fi
13098
13099  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13100echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13101if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13102  echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104  ac_func_search_save_LIBS=$LIBS
13105cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h.  */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h.  */
13111
13112/* Override any GCC internal prototype to avoid an error.
13113   Use char because int might match the return type of a GCC
13114   builtin and then its argument prototype would still apply.  */
13115#ifdef __cplusplus
13116extern "C"
13117#endif
13118char pthread_getspecific ();
13119int
13120main ()
13121{
13122return pthread_getspecific ();
13123  ;
13124  return 0;
13125}
13126_ACEOF
13127for ac_lib in '' pthread; do
13128  if test -z "$ac_lib"; then
13129    ac_res="none required"
13130  else
13131    ac_res=-l$ac_lib
13132    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13133  fi
13134  rm -f conftest.$ac_objext conftest$ac_exeext
13135if { (ac_try="$ac_link"
13136case "(($ac_try" in
13137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138  *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141  (eval "$ac_link") 2>conftest.er1
13142  ac_status=$?
13143  grep -v '^ *+' conftest.er1 >conftest.err
13144  rm -f conftest.er1
13145  cat conftest.err >&5
13146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147  (exit $ac_status); } &&
13148	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149  { (case "(($ac_try" in
13150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151  *) ac_try_echo=$ac_try;;
13152esac
13153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154  (eval "$ac_try") 2>&5
13155  ac_status=$?
13156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157  (exit $ac_status); }; } &&
13158	 { ac_try='test -s conftest$ac_exeext'
13159  { (case "(($ac_try" in
13160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161  *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164  (eval "$ac_try") 2>&5
13165  ac_status=$?
13166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167  (exit $ac_status); }; }; then
13168  ac_cv_search_pthread_getspecific=$ac_res
13169else
13170  echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
13173
13174fi
13175
13176rm -f core conftest.err conftest.$ac_objext \
13177      conftest$ac_exeext
13178  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13179  break
13180fi
13181done
13182if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13183  :
13184else
13185  ac_cv_search_pthread_getspecific=no
13186fi
13187rm conftest.$ac_ext
13188LIBS=$ac_func_search_save_LIBS
13189fi
13190{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13191echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13192ac_res=$ac_cv_search_pthread_getspecific
13193if test "$ac_res" != no; then
13194  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13195
13196cat >>confdefs.h <<\_ACEOF
13197#define HAVE_PTHREAD_GETSPECIFIC 1
13198_ACEOF
13199
13200fi
13201
13202fi
13203
13204
13205# Check whether --with-udis86 was given.
13206if test "${with_udis86+set}" = set; then
13207  withval=$with_udis86;
13208      USE_UDIS86=1
13209
13210      case "$withval" in
13211        /usr/lib|yes) ;;
13212        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13213      esac
13214
13215{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13216echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13217if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13218  echo $ECHO_N "(cached) $ECHO_C" >&6
13219else
13220  ac_check_lib_save_LIBS=$LIBS
13221LIBS="-ludis86  $LIBS"
13222cat >conftest.$ac_ext <<_ACEOF
13223/* confdefs.h.  */
13224_ACEOF
13225cat confdefs.h >>conftest.$ac_ext
13226cat >>conftest.$ac_ext <<_ACEOF
13227/* end confdefs.h.  */
13228
13229/* Override any GCC internal prototype to avoid an error.
13230   Use char because int might match the return type of a GCC
13231   builtin and then its argument prototype would still apply.  */
13232#ifdef __cplusplus
13233extern "C"
13234#endif
13235char ud_init ();
13236int
13237main ()
13238{
13239return ud_init ();
13240  ;
13241  return 0;
13242}
13243_ACEOF
13244rm -f conftest.$ac_objext conftest$ac_exeext
13245if { (ac_try="$ac_link"
13246case "(($ac_try" in
13247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248  *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251  (eval "$ac_link") 2>conftest.er1
13252  ac_status=$?
13253  grep -v '^ *+' conftest.er1 >conftest.err
13254  rm -f conftest.er1
13255  cat conftest.err >&5
13256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257  (exit $ac_status); } &&
13258	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13259  { (case "(($ac_try" in
13260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261  *) ac_try_echo=$ac_try;;
13262esac
13263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264  (eval "$ac_try") 2>&5
13265  ac_status=$?
13266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267  (exit $ac_status); }; } &&
13268	 { ac_try='test -s conftest$ac_exeext'
13269  { (case "(($ac_try" in
13270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271  *) ac_try_echo=$ac_try;;
13272esac
13273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274  (eval "$ac_try") 2>&5
13275  ac_status=$?
13276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277  (exit $ac_status); }; }; then
13278  ac_cv_lib_udis86_ud_init=yes
13279else
13280  echo "$as_me: failed program was:" >&5
13281sed 's/^/| /' conftest.$ac_ext >&5
13282
13283	ac_cv_lib_udis86_ud_init=no
13284fi
13285
13286rm -f core conftest.err conftest.$ac_objext \
13287      conftest$ac_exeext conftest.$ac_ext
13288LIBS=$ac_check_lib_save_LIBS
13289fi
13290{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13291echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13292if test $ac_cv_lib_udis86_ud_init = yes; then
13293  cat >>confdefs.h <<_ACEOF
13294#define HAVE_LIBUDIS86 1
13295_ACEOF
13296
13297  LIBS="-ludis86 $LIBS"
13298
13299else
13300
13301        echo "Error! You need to have libudis86 around."
13302        exit -1
13303
13304fi
13305
13306
13307else
13308  USE_UDIS86=0
13309
13310fi
13311
13312
13313cat >>confdefs.h <<_ACEOF
13314#define USE_UDIS86 $USE_UDIS86
13315_ACEOF
13316
13317
13318
13319# Check whether --with-oprofile was given.
13320if test "${with_oprofile+set}" = set; then
13321  withval=$with_oprofile;
13322      USE_OPROFILE=1
13323
13324      case "$withval" in
13325        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13326        no) llvm_cv_oppath=
13327            USE_OPROFILE=0
13328 ;;
13329        *) llvm_cv_oppath="${withval}/lib/oprofile"
13330           CPPFLAGS="-I${withval}/include";;
13331      esac
13332      if test -n "$llvm_cv_oppath" ; then
13333        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13334                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13335echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13336if test "${ac_cv_search_bfd_init+set}" = set; then
13337  echo $ECHO_N "(cached) $ECHO_C" >&6
13338else
13339  ac_func_search_save_LIBS=$LIBS
13340cat >conftest.$ac_ext <<_ACEOF
13341/* confdefs.h.  */
13342_ACEOF
13343cat confdefs.h >>conftest.$ac_ext
13344cat >>conftest.$ac_ext <<_ACEOF
13345/* end confdefs.h.  */
13346
13347/* Override any GCC internal prototype to avoid an error.
13348   Use char because int might match the return type of a GCC
13349   builtin and then its argument prototype would still apply.  */
13350#ifdef __cplusplus
13351extern "C"
13352#endif
13353char bfd_init ();
13354int
13355main ()
13356{
13357return bfd_init ();
13358  ;
13359  return 0;
13360}
13361_ACEOF
13362for ac_lib in '' bfd; do
13363  if test -z "$ac_lib"; then
13364    ac_res="none required"
13365  else
13366    ac_res=-l$ac_lib
13367    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13368  fi
13369  rm -f conftest.$ac_objext conftest$ac_exeext
13370if { (ac_try="$ac_link"
13371case "(($ac_try" in
13372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373  *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376  (eval "$ac_link") 2>conftest.er1
13377  ac_status=$?
13378  grep -v '^ *+' conftest.er1 >conftest.err
13379  rm -f conftest.er1
13380  cat conftest.err >&5
13381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382  (exit $ac_status); } &&
13383	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13384  { (case "(($ac_try" in
13385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386  *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389  (eval "$ac_try") 2>&5
13390  ac_status=$?
13391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392  (exit $ac_status); }; } &&
13393	 { ac_try='test -s conftest$ac_exeext'
13394  { (case "(($ac_try" in
13395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396  *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399  (eval "$ac_try") 2>&5
13400  ac_status=$?
13401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402  (exit $ac_status); }; }; then
13403  ac_cv_search_bfd_init=$ac_res
13404else
13405  echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408
13409fi
13410
13411rm -f core conftest.err conftest.$ac_objext \
13412      conftest$ac_exeext
13413  if test "${ac_cv_search_bfd_init+set}" = set; then
13414  break
13415fi
13416done
13417if test "${ac_cv_search_bfd_init+set}" = set; then
13418  :
13419else
13420  ac_cv_search_bfd_init=no
13421fi
13422rm conftest.$ac_ext
13423LIBS=$ac_func_search_save_LIBS
13424fi
13425{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13426echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13427ac_res=$ac_cv_search_bfd_init
13428if test "$ac_res" != no; then
13429  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13430
13431fi
13432
13433        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13434echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13435if test "${ac_cv_search_op_open_agent+set}" = set; then
13436  echo $ECHO_N "(cached) $ECHO_C" >&6
13437else
13438  ac_func_search_save_LIBS=$LIBS
13439cat >conftest.$ac_ext <<_ACEOF
13440/* confdefs.h.  */
13441_ACEOF
13442cat confdefs.h >>conftest.$ac_ext
13443cat >>conftest.$ac_ext <<_ACEOF
13444/* end confdefs.h.  */
13445
13446/* Override any GCC internal prototype to avoid an error.
13447   Use char because int might match the return type of a GCC
13448   builtin and then its argument prototype would still apply.  */
13449#ifdef __cplusplus
13450extern "C"
13451#endif
13452char op_open_agent ();
13453int
13454main ()
13455{
13456return op_open_agent ();
13457  ;
13458  return 0;
13459}
13460_ACEOF
13461for ac_lib in '' opagent; do
13462  if test -z "$ac_lib"; then
13463    ac_res="none required"
13464  else
13465    ac_res=-l$ac_lib
13466    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13467  fi
13468  rm -f conftest.$ac_objext conftest$ac_exeext
13469if { (ac_try="$ac_link"
13470case "(($ac_try" in
13471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472  *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475  (eval "$ac_link") 2>conftest.er1
13476  ac_status=$?
13477  grep -v '^ *+' conftest.er1 >conftest.err
13478  rm -f conftest.er1
13479  cat conftest.err >&5
13480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481  (exit $ac_status); } &&
13482	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483  { (case "(($ac_try" in
13484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485  *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488  (eval "$ac_try") 2>&5
13489  ac_status=$?
13490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491  (exit $ac_status); }; } &&
13492	 { ac_try='test -s conftest$ac_exeext'
13493  { (case "(($ac_try" in
13494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495  *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498  (eval "$ac_try") 2>&5
13499  ac_status=$?
13500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501  (exit $ac_status); }; }; then
13502  ac_cv_search_op_open_agent=$ac_res
13503else
13504  echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507
13508fi
13509
13510rm -f core conftest.err conftest.$ac_objext \
13511      conftest$ac_exeext
13512  if test "${ac_cv_search_op_open_agent+set}" = set; then
13513  break
13514fi
13515done
13516if test "${ac_cv_search_op_open_agent+set}" = set; then
13517  :
13518else
13519  ac_cv_search_op_open_agent=no
13520fi
13521rm conftest.$ac_ext
13522LIBS=$ac_func_search_save_LIBS
13523fi
13524{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13525echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13526ac_res=$ac_cv_search_op_open_agent
13527if test "$ac_res" != no; then
13528  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529
13530else
13531
13532          echo "Error! You need to have libopagent around."
13533          exit -1
13534
13535fi
13536
13537        if test "${ac_cv_header_opagent_h+set}" = set; then
13538  { echo "$as_me:$LINENO: checking for opagent.h" >&5
13539echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13540if test "${ac_cv_header_opagent_h+set}" = set; then
13541  echo $ECHO_N "(cached) $ECHO_C" >&6
13542fi
13543{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13544echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13545else
13546  # Is the header compilable?
13547{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13548echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13549cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h.  */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h.  */
13555$ac_includes_default
13556#include <opagent.h>
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (ac_try="$ac_compile"
13560case "(($ac_try" in
13561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562  *) ac_try_echo=$ac_try;;
13563esac
13564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565  (eval "$ac_compile") 2>conftest.er1
13566  ac_status=$?
13567  grep -v '^ *+' conftest.er1 >conftest.err
13568  rm -f conftest.er1
13569  cat conftest.err >&5
13570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571  (exit $ac_status); } &&
13572	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13573  { (case "(($ac_try" in
13574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575  *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578  (eval "$ac_try") 2>&5
13579  ac_status=$?
13580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581  (exit $ac_status); }; } &&
13582	 { ac_try='test -s conftest.$ac_objext'
13583  { (case "(($ac_try" in
13584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585  *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588  (eval "$ac_try") 2>&5
13589  ac_status=$?
13590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591  (exit $ac_status); }; }; then
13592  ac_header_compiler=yes
13593else
13594  echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597	ac_header_compiler=no
13598fi
13599
13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13602echo "${ECHO_T}$ac_header_compiler" >&6; }
13603
13604# Is the header present?
13605{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13606echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13607cat >conftest.$ac_ext <<_ACEOF
13608/* confdefs.h.  */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h.  */
13613#include <opagent.h>
13614_ACEOF
13615if { (ac_try="$ac_cpp conftest.$ac_ext"
13616case "(($ac_try" in
13617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618  *) ac_try_echo=$ac_try;;
13619esac
13620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13622  ac_status=$?
13623  grep -v '^ *+' conftest.er1 >conftest.err
13624  rm -f conftest.er1
13625  cat conftest.err >&5
13626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627  (exit $ac_status); } >/dev/null; then
13628  if test -s conftest.err; then
13629    ac_cpp_err=$ac_c_preproc_warn_flag
13630    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13631  else
13632    ac_cpp_err=
13633  fi
13634else
13635  ac_cpp_err=yes
13636fi
13637if test -z "$ac_cpp_err"; then
13638  ac_header_preproc=yes
13639else
13640  echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
13643  ac_header_preproc=no
13644fi
13645
13646rm -f conftest.err conftest.$ac_ext
13647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13648echo "${ECHO_T}$ac_header_preproc" >&6; }
13649
13650# So?  What about this header?
13651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13652  yes:no: )
13653    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13654echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13655    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13656echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13657    ac_header_preproc=yes
13658    ;;
13659  no:yes:* )
13660    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13661echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13662    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13663echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13664    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13665echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13666    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13667echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13668    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13669echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13670    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13671echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13672    ( cat <<\_ASBOX
13673## ----------------------------------- ##
13674## Report this to llvmbugs@cs.uiuc.edu ##
13675## ----------------------------------- ##
13676_ASBOX
13677     ) | sed "s/^/$as_me: WARNING:     /" >&2
13678    ;;
13679esac
13680{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13681echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13682if test "${ac_cv_header_opagent_h+set}" = set; then
13683  echo $ECHO_N "(cached) $ECHO_C" >&6
13684else
13685  ac_cv_header_opagent_h=$ac_header_preproc
13686fi
13687{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13688echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13689
13690fi
13691if test $ac_cv_header_opagent_h = yes; then
13692  :
13693else
13694
13695          echo "Error! You need to have opagent.h around."
13696          exit -1
13697
13698fi
13699
13700
13701      fi
13702
13703else
13704
13705      USE_OPROFILE=0
13706
13707
13708fi
13709
13710
13711cat >>confdefs.h <<_ACEOF
13712#define USE_OPROFILE $USE_OPROFILE
13713_ACEOF
13714
13715
13716
13717
13718
13719
13720
13721
13722ac_header_dirent=no
13723for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13724  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13725{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13726echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13728  echo $ECHO_N "(cached) $ECHO_C" >&6
13729else
13730  cat >conftest.$ac_ext <<_ACEOF
13731/* confdefs.h.  */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
13735/* end confdefs.h.  */
13736#include <sys/types.h>
13737#include <$ac_hdr>
13738
13739int
13740main ()
13741{
13742if ((DIR *) 0)
13743return 0;
13744  ;
13745  return 0;
13746}
13747_ACEOF
13748rm -f conftest.$ac_objext
13749if { (ac_try="$ac_compile"
13750case "(($ac_try" in
13751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752  *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755  (eval "$ac_compile") 2>conftest.er1
13756  ac_status=$?
13757  grep -v '^ *+' conftest.er1 >conftest.err
13758  rm -f conftest.er1
13759  cat conftest.err >&5
13760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761  (exit $ac_status); } &&
13762	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13763  { (case "(($ac_try" in
13764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765  *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768  (eval "$ac_try") 2>&5
13769  ac_status=$?
13770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771  (exit $ac_status); }; } &&
13772	 { ac_try='test -s conftest.$ac_objext'
13773  { (case "(($ac_try" in
13774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775  *) ac_try_echo=$ac_try;;
13776esac
13777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778  (eval "$ac_try") 2>&5
13779  ac_status=$?
13780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781  (exit $ac_status); }; }; then
13782  eval "$as_ac_Header=yes"
13783else
13784  echo "$as_me: failed program was:" >&5
13785sed 's/^/| /' conftest.$ac_ext >&5
13786
13787	eval "$as_ac_Header=no"
13788fi
13789
13790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13791fi
13792ac_res=`eval echo '${'$as_ac_Header'}'`
13793	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13794echo "${ECHO_T}$ac_res" >&6; }
13795if test `eval echo '${'$as_ac_Header'}'` = yes; then
13796  cat >>confdefs.h <<_ACEOF
13797#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13798_ACEOF
13799
13800ac_header_dirent=$ac_hdr; break
13801fi
13802
13803done
13804# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13805if test $ac_header_dirent = dirent.h; then
13806  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13807echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13808if test "${ac_cv_search_opendir+set}" = set; then
13809  echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811  ac_func_search_save_LIBS=$LIBS
13812cat >conftest.$ac_ext <<_ACEOF
13813/* confdefs.h.  */
13814_ACEOF
13815cat confdefs.h >>conftest.$ac_ext
13816cat >>conftest.$ac_ext <<_ACEOF
13817/* end confdefs.h.  */
13818
13819/* Override any GCC internal prototype to avoid an error.
13820   Use char because int might match the return type of a GCC
13821   builtin and then its argument prototype would still apply.  */
13822#ifdef __cplusplus
13823extern "C"
13824#endif
13825char opendir ();
13826int
13827main ()
13828{
13829return opendir ();
13830  ;
13831  return 0;
13832}
13833_ACEOF
13834for ac_lib in '' dir; do
13835  if test -z "$ac_lib"; then
13836    ac_res="none required"
13837  else
13838    ac_res=-l$ac_lib
13839    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13840  fi
13841  rm -f conftest.$ac_objext conftest$ac_exeext
13842if { (ac_try="$ac_link"
13843case "(($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_link") 2>conftest.er1
13849  ac_status=$?
13850  grep -v '^ *+' conftest.er1 >conftest.err
13851  rm -f conftest.er1
13852  cat conftest.err >&5
13853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854  (exit $ac_status); } &&
13855	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856  { (case "(($ac_try" in
13857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858  *) ac_try_echo=$ac_try;;
13859esac
13860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861  (eval "$ac_try") 2>&5
13862  ac_status=$?
13863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864  (exit $ac_status); }; } &&
13865	 { ac_try='test -s conftest$ac_exeext'
13866  { (case "(($ac_try" in
13867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868  *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871  (eval "$ac_try") 2>&5
13872  ac_status=$?
13873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874  (exit $ac_status); }; }; then
13875  ac_cv_search_opendir=$ac_res
13876else
13877  echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880
13881fi
13882
13883rm -f core conftest.err conftest.$ac_objext \
13884      conftest$ac_exeext
13885  if test "${ac_cv_search_opendir+set}" = set; then
13886  break
13887fi
13888done
13889if test "${ac_cv_search_opendir+set}" = set; then
13890  :
13891else
13892  ac_cv_search_opendir=no
13893fi
13894rm conftest.$ac_ext
13895LIBS=$ac_func_search_save_LIBS
13896fi
13897{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13898echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13899ac_res=$ac_cv_search_opendir
13900if test "$ac_res" != no; then
13901  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13902
13903fi
13904
13905else
13906  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13907echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13908if test "${ac_cv_search_opendir+set}" = set; then
13909  echo $ECHO_N "(cached) $ECHO_C" >&6
13910else
13911  ac_func_search_save_LIBS=$LIBS
13912cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h.  */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h.  */
13918
13919/* Override any GCC internal prototype to avoid an error.
13920   Use char because int might match the return type of a GCC
13921   builtin and then its argument prototype would still apply.  */
13922#ifdef __cplusplus
13923extern "C"
13924#endif
13925char opendir ();
13926int
13927main ()
13928{
13929return opendir ();
13930  ;
13931  return 0;
13932}
13933_ACEOF
13934for ac_lib in '' x; do
13935  if test -z "$ac_lib"; then
13936    ac_res="none required"
13937  else
13938    ac_res=-l$ac_lib
13939    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13940  fi
13941  rm -f conftest.$ac_objext conftest$ac_exeext
13942if { (ac_try="$ac_link"
13943case "(($ac_try" in
13944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945  *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948  (eval "$ac_link") 2>conftest.er1
13949  ac_status=$?
13950  grep -v '^ *+' conftest.er1 >conftest.err
13951  rm -f conftest.er1
13952  cat conftest.err >&5
13953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954  (exit $ac_status); } &&
13955	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956  { (case "(($ac_try" in
13957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958  *) ac_try_echo=$ac_try;;
13959esac
13960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961  (eval "$ac_try") 2>&5
13962  ac_status=$?
13963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964  (exit $ac_status); }; } &&
13965	 { ac_try='test -s conftest$ac_exeext'
13966  { (case "(($ac_try" in
13967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968  *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971  (eval "$ac_try") 2>&5
13972  ac_status=$?
13973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974  (exit $ac_status); }; }; then
13975  ac_cv_search_opendir=$ac_res
13976else
13977  echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980
13981fi
13982
13983rm -f core conftest.err conftest.$ac_objext \
13984      conftest$ac_exeext
13985  if test "${ac_cv_search_opendir+set}" = set; then
13986  break
13987fi
13988done
13989if test "${ac_cv_search_opendir+set}" = set; then
13990  :
13991else
13992  ac_cv_search_opendir=no
13993fi
13994rm conftest.$ac_ext
13995LIBS=$ac_func_search_save_LIBS
13996fi
13997{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13998echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13999ac_res=$ac_cv_search_opendir
14000if test "$ac_res" != no; then
14001  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14002
14003fi
14004
14005fi
14006
14007{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14008echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14009if test "${ac_cv_header_mmap_anon+set}" = set; then
14010  echo $ECHO_N "(cached) $ECHO_C" >&6
14011else
14012   ac_ext=c
14013ac_cpp='$CPP $CPPFLAGS'
14014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017
14018  cat >conftest.$ac_ext <<_ACEOF
14019/* confdefs.h.  */
14020_ACEOF
14021cat confdefs.h >>conftest.$ac_ext
14022cat >>conftest.$ac_ext <<_ACEOF
14023/* end confdefs.h.  */
14024#include <sys/mman.h>
14025#include <unistd.h>
14026#include <fcntl.h>
14027int
14028main ()
14029{
14030mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14031  ;
14032  return 0;
14033}
14034_ACEOF
14035rm -f conftest.$ac_objext
14036if { (ac_try="$ac_compile"
14037case "(($ac_try" in
14038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039  *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042  (eval "$ac_compile") 2>conftest.er1
14043  ac_status=$?
14044  grep -v '^ *+' conftest.er1 >conftest.err
14045  rm -f conftest.er1
14046  cat conftest.err >&5
14047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048  (exit $ac_status); } &&
14049	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050  { (case "(($ac_try" in
14051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052  *) ac_try_echo=$ac_try;;
14053esac
14054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055  (eval "$ac_try") 2>&5
14056  ac_status=$?
14057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058  (exit $ac_status); }; } &&
14059	 { ac_try='test -s conftest.$ac_objext'
14060  { (case "(($ac_try" in
14061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062  *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065  (eval "$ac_try") 2>&5
14066  ac_status=$?
14067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068  (exit $ac_status); }; }; then
14069  ac_cv_header_mmap_anon=yes
14070else
14071  echo "$as_me: failed program was:" >&5
14072sed 's/^/| /' conftest.$ac_ext >&5
14073
14074	ac_cv_header_mmap_anon=no
14075fi
14076
14077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078  ac_ext=c
14079ac_cpp='$CPP $CPPFLAGS'
14080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082ac_compiler_gnu=$ac_cv_c_compiler_gnu
14083
14084
14085fi
14086{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14087echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14088if test "$ac_cv_header_mmap_anon" = yes; then
14089
14090cat >>confdefs.h <<\_ACEOF
14091#define HAVE_MMAP_ANONYMOUS 1
14092_ACEOF
14093
14094fi
14095
14096{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14097echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14098if test "${ac_cv_header_stat_broken+set}" = set; then
14099  echo $ECHO_N "(cached) $ECHO_C" >&6
14100else
14101  cat >conftest.$ac_ext <<_ACEOF
14102/* confdefs.h.  */
14103_ACEOF
14104cat confdefs.h >>conftest.$ac_ext
14105cat >>conftest.$ac_ext <<_ACEOF
14106/* end confdefs.h.  */
14107#include <sys/types.h>
14108#include <sys/stat.h>
14109
14110#if defined S_ISBLK && defined S_IFDIR
14111# if S_ISBLK (S_IFDIR)
14112You lose.
14113# endif
14114#endif
14115
14116#if defined S_ISBLK && defined S_IFCHR
14117# if S_ISBLK (S_IFCHR)
14118You lose.
14119# endif
14120#endif
14121
14122#if defined S_ISLNK && defined S_IFREG
14123# if S_ISLNK (S_IFREG)
14124You lose.
14125# endif
14126#endif
14127
14128#if defined S_ISSOCK && defined S_IFREG
14129# if S_ISSOCK (S_IFREG)
14130You lose.
14131# endif
14132#endif
14133
14134_ACEOF
14135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136  $EGREP "You lose" >/dev/null 2>&1; then
14137  ac_cv_header_stat_broken=yes
14138else
14139  ac_cv_header_stat_broken=no
14140fi
14141rm -f conftest*
14142
14143fi
14144{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14145echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14146if test $ac_cv_header_stat_broken = yes; then
14147
14148cat >>confdefs.h <<\_ACEOF
14149#define STAT_MACROS_BROKEN 1
14150_ACEOF
14151
14152fi
14153
14154{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14155echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14156if test "${ac_cv_header_sys_wait_h+set}" = set; then
14157  echo $ECHO_N "(cached) $ECHO_C" >&6
14158else
14159  cat >conftest.$ac_ext <<_ACEOF
14160/* confdefs.h.  */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
14164/* end confdefs.h.  */
14165#include <sys/types.h>
14166#include <sys/wait.h>
14167#ifndef WEXITSTATUS
14168# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14169#endif
14170#ifndef WIFEXITED
14171# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14172#endif
14173
14174int
14175main ()
14176{
14177  int s;
14178  wait (&s);
14179  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14180  ;
14181  return 0;
14182}
14183_ACEOF
14184rm -f conftest.$ac_objext
14185if { (ac_try="$ac_compile"
14186case "(($ac_try" in
14187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188  *) ac_try_echo=$ac_try;;
14189esac
14190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191  (eval "$ac_compile") 2>conftest.er1
14192  ac_status=$?
14193  grep -v '^ *+' conftest.er1 >conftest.err
14194  rm -f conftest.er1
14195  cat conftest.err >&5
14196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197  (exit $ac_status); } &&
14198	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14199  { (case "(($ac_try" in
14200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201  *) ac_try_echo=$ac_try;;
14202esac
14203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204  (eval "$ac_try") 2>&5
14205  ac_status=$?
14206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207  (exit $ac_status); }; } &&
14208	 { ac_try='test -s conftest.$ac_objext'
14209  { (case "(($ac_try" in
14210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211  *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214  (eval "$ac_try") 2>&5
14215  ac_status=$?
14216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217  (exit $ac_status); }; }; then
14218  ac_cv_header_sys_wait_h=yes
14219else
14220  echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223	ac_cv_header_sys_wait_h=no
14224fi
14225
14226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227fi
14228{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14229echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14230if test $ac_cv_header_sys_wait_h = yes; then
14231
14232cat >>confdefs.h <<\_ACEOF
14233#define HAVE_SYS_WAIT_H 1
14234_ACEOF
14235
14236fi
14237
14238{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14239echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14240if test "${ac_cv_header_time+set}" = set; then
14241  echo $ECHO_N "(cached) $ECHO_C" >&6
14242else
14243  cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h.  */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h.  */
14249#include <sys/types.h>
14250#include <sys/time.h>
14251#include <time.h>
14252
14253int
14254main ()
14255{
14256if ((struct tm *) 0)
14257return 0;
14258  ;
14259  return 0;
14260}
14261_ACEOF
14262rm -f conftest.$ac_objext
14263if { (ac_try="$ac_compile"
14264case "(($ac_try" in
14265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266  *) ac_try_echo=$ac_try;;
14267esac
14268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14269  (eval "$ac_compile") 2>conftest.er1
14270  ac_status=$?
14271  grep -v '^ *+' conftest.er1 >conftest.err
14272  rm -f conftest.er1
14273  cat conftest.err >&5
14274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275  (exit $ac_status); } &&
14276	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277  { (case "(($ac_try" in
14278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279  *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282  (eval "$ac_try") 2>&5
14283  ac_status=$?
14284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285  (exit $ac_status); }; } &&
14286	 { ac_try='test -s conftest.$ac_objext'
14287  { (case "(($ac_try" in
14288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289  *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292  (eval "$ac_try") 2>&5
14293  ac_status=$?
14294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295  (exit $ac_status); }; }; then
14296  ac_cv_header_time=yes
14297else
14298  echo "$as_me: failed program was:" >&5
14299sed 's/^/| /' conftest.$ac_ext >&5
14300
14301	ac_cv_header_time=no
14302fi
14303
14304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14305fi
14306{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14307echo "${ECHO_T}$ac_cv_header_time" >&6; }
14308if test $ac_cv_header_time = yes; then
14309
14310cat >>confdefs.h <<\_ACEOF
14311#define TIME_WITH_SYS_TIME 1
14312_ACEOF
14313
14314fi
14315
14316
14317
14318
14319
14320
14321
14322
14323for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14324do
14325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14330  echo $ECHO_N "(cached) $ECHO_C" >&6
14331fi
14332ac_res=`eval echo '${'$as_ac_Header'}'`
14333	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14334echo "${ECHO_T}$ac_res" >&6; }
14335else
14336  # Is the header compilable?
14337{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14339cat >conftest.$ac_ext <<_ACEOF
14340/* confdefs.h.  */
14341_ACEOF
14342cat confdefs.h >>conftest.$ac_ext
14343cat >>conftest.$ac_ext <<_ACEOF
14344/* end confdefs.h.  */
14345$ac_includes_default
14346#include <$ac_header>
14347_ACEOF
14348rm -f conftest.$ac_objext
14349if { (ac_try="$ac_compile"
14350case "(($ac_try" in
14351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352  *) ac_try_echo=$ac_try;;
14353esac
14354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355  (eval "$ac_compile") 2>conftest.er1
14356  ac_status=$?
14357  grep -v '^ *+' conftest.er1 >conftest.err
14358  rm -f conftest.er1
14359  cat conftest.err >&5
14360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361  (exit $ac_status); } &&
14362	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363  { (case "(($ac_try" in
14364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365  *) ac_try_echo=$ac_try;;
14366esac
14367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368  (eval "$ac_try") 2>&5
14369  ac_status=$?
14370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371  (exit $ac_status); }; } &&
14372	 { ac_try='test -s conftest.$ac_objext'
14373  { (case "(($ac_try" in
14374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375  *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378  (eval "$ac_try") 2>&5
14379  ac_status=$?
14380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381  (exit $ac_status); }; }; then
14382  ac_header_compiler=yes
14383else
14384  echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
14387	ac_header_compiler=no
14388fi
14389
14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392echo "${ECHO_T}$ac_header_compiler" >&6; }
14393
14394# Is the header present?
14395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14397cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h.  */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h.  */
14403#include <$ac_header>
14404_ACEOF
14405if { (ac_try="$ac_cpp conftest.$ac_ext"
14406case "(($ac_try" in
14407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408  *) ac_try_echo=$ac_try;;
14409esac
14410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14412  ac_status=$?
14413  grep -v '^ *+' conftest.er1 >conftest.err
14414  rm -f conftest.er1
14415  cat conftest.err >&5
14416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417  (exit $ac_status); } >/dev/null; then
14418  if test -s conftest.err; then
14419    ac_cpp_err=$ac_c_preproc_warn_flag
14420    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14421  else
14422    ac_cpp_err=
14423  fi
14424else
14425  ac_cpp_err=yes
14426fi
14427if test -z "$ac_cpp_err"; then
14428  ac_header_preproc=yes
14429else
14430  echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433  ac_header_preproc=no
14434fi
14435
14436rm -f conftest.err conftest.$ac_ext
14437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14438echo "${ECHO_T}$ac_header_preproc" >&6; }
14439
14440# So?  What about this header?
14441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14442  yes:no: )
14443    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14445    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14447    ac_header_preproc=yes
14448    ;;
14449  no:yes:* )
14450    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14452    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14453echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14454    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14456    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14457echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14458    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14460    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14462    ( cat <<\_ASBOX
14463## ----------------------------------- ##
14464## Report this to llvmbugs@cs.uiuc.edu ##
14465## ----------------------------------- ##
14466_ASBOX
14467     ) | sed "s/^/$as_me: WARNING:     /" >&2
14468    ;;
14469esac
14470{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14473  echo $ECHO_N "(cached) $ECHO_C" >&6
14474else
14475  eval "$as_ac_Header=\$ac_header_preproc"
14476fi
14477ac_res=`eval echo '${'$as_ac_Header'}'`
14478	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14479echo "${ECHO_T}$ac_res" >&6; }
14480
14481fi
14482if test `eval echo '${'$as_ac_Header'}'` = yes; then
14483  cat >>confdefs.h <<_ACEOF
14484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14485_ACEOF
14486
14487fi
14488
14489done
14490
14491
14492
14493
14494
14495
14496
14497for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14498do
14499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14501  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504  echo $ECHO_N "(cached) $ECHO_C" >&6
14505fi
14506ac_res=`eval echo '${'$as_ac_Header'}'`
14507	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14508echo "${ECHO_T}$ac_res" >&6; }
14509else
14510  # Is the header compilable?
14511{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14513cat >conftest.$ac_ext <<_ACEOF
14514/* confdefs.h.  */
14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h.  */
14519$ac_includes_default
14520#include <$ac_header>
14521_ACEOF
14522rm -f conftest.$ac_objext
14523if { (ac_try="$ac_compile"
14524case "(($ac_try" in
14525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526  *) ac_try_echo=$ac_try;;
14527esac
14528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529  (eval "$ac_compile") 2>conftest.er1
14530  ac_status=$?
14531  grep -v '^ *+' conftest.er1 >conftest.err
14532  rm -f conftest.er1
14533  cat conftest.err >&5
14534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535  (exit $ac_status); } &&
14536	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14537  { (case "(($ac_try" in
14538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539  *) ac_try_echo=$ac_try;;
14540esac
14541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542  (eval "$ac_try") 2>&5
14543  ac_status=$?
14544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545  (exit $ac_status); }; } &&
14546	 { ac_try='test -s conftest.$ac_objext'
14547  { (case "(($ac_try" in
14548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549  *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552  (eval "$ac_try") 2>&5
14553  ac_status=$?
14554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555  (exit $ac_status); }; }; then
14556  ac_header_compiler=yes
14557else
14558  echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561	ac_header_compiler=no
14562fi
14563
14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14566echo "${ECHO_T}$ac_header_compiler" >&6; }
14567
14568# Is the header present?
14569{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14571cat >conftest.$ac_ext <<_ACEOF
14572/* confdefs.h.  */
14573_ACEOF
14574cat confdefs.h >>conftest.$ac_ext
14575cat >>conftest.$ac_ext <<_ACEOF
14576/* end confdefs.h.  */
14577#include <$ac_header>
14578_ACEOF
14579if { (ac_try="$ac_cpp conftest.$ac_ext"
14580case "(($ac_try" in
14581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582  *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14586  ac_status=$?
14587  grep -v '^ *+' conftest.er1 >conftest.err
14588  rm -f conftest.er1
14589  cat conftest.err >&5
14590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591  (exit $ac_status); } >/dev/null; then
14592  if test -s conftest.err; then
14593    ac_cpp_err=$ac_c_preproc_warn_flag
14594    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14595  else
14596    ac_cpp_err=
14597  fi
14598else
14599  ac_cpp_err=yes
14600fi
14601if test -z "$ac_cpp_err"; then
14602  ac_header_preproc=yes
14603else
14604  echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607  ac_header_preproc=no
14608fi
14609
14610rm -f conftest.err conftest.$ac_ext
14611{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14612echo "${ECHO_T}$ac_header_preproc" >&6; }
14613
14614# So?  What about this header?
14615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14616  yes:no: )
14617    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14621    ac_header_preproc=yes
14622    ;;
14623  no:yes:* )
14624    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14626    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14627echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14628    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14630    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14631echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14634    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14636    ( cat <<\_ASBOX
14637## ----------------------------------- ##
14638## Report this to llvmbugs@cs.uiuc.edu ##
14639## ----------------------------------- ##
14640_ASBOX
14641     ) | sed "s/^/$as_me: WARNING:     /" >&2
14642    ;;
14643esac
14644{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14647  echo $ECHO_N "(cached) $ECHO_C" >&6
14648else
14649  eval "$as_ac_Header=\$ac_header_preproc"
14650fi
14651ac_res=`eval echo '${'$as_ac_Header'}'`
14652	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14653echo "${ECHO_T}$ac_res" >&6; }
14654
14655fi
14656if test `eval echo '${'$as_ac_Header'}'` = yes; then
14657  cat >>confdefs.h <<_ACEOF
14658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14659_ACEOF
14660
14661fi
14662
14663done
14664
14665
14666
14667for ac_header in utime.h windows.h
14668do
14669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14674  echo $ECHO_N "(cached) $ECHO_C" >&6
14675fi
14676ac_res=`eval echo '${'$as_ac_Header'}'`
14677	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14678echo "${ECHO_T}$ac_res" >&6; }
14679else
14680  # Is the header compilable?
14681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14683cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h.  */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h.  */
14689$ac_includes_default
14690#include <$ac_header>
14691_ACEOF
14692rm -f conftest.$ac_objext
14693if { (ac_try="$ac_compile"
14694case "(($ac_try" in
14695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696  *) ac_try_echo=$ac_try;;
14697esac
14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699  (eval "$ac_compile") 2>conftest.er1
14700  ac_status=$?
14701  grep -v '^ *+' conftest.er1 >conftest.err
14702  rm -f conftest.er1
14703  cat conftest.err >&5
14704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705  (exit $ac_status); } &&
14706	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707  { (case "(($ac_try" in
14708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709  *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712  (eval "$ac_try") 2>&5
14713  ac_status=$?
14714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715  (exit $ac_status); }; } &&
14716	 { ac_try='test -s conftest.$ac_objext'
14717  { (case "(($ac_try" in
14718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719  *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722  (eval "$ac_try") 2>&5
14723  ac_status=$?
14724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725  (exit $ac_status); }; }; then
14726  ac_header_compiler=yes
14727else
14728  echo "$as_me: failed program was:" >&5
14729sed 's/^/| /' conftest.$ac_ext >&5
14730
14731	ac_header_compiler=no
14732fi
14733
14734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14736echo "${ECHO_T}$ac_header_compiler" >&6; }
14737
14738# Is the header present?
14739{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14741cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h.  */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h.  */
14747#include <$ac_header>
14748_ACEOF
14749if { (ac_try="$ac_cpp conftest.$ac_ext"
14750case "(($ac_try" in
14751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752  *) ac_try_echo=$ac_try;;
14753esac
14754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14756  ac_status=$?
14757  grep -v '^ *+' conftest.er1 >conftest.err
14758  rm -f conftest.er1
14759  cat conftest.err >&5
14760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761  (exit $ac_status); } >/dev/null; then
14762  if test -s conftest.err; then
14763    ac_cpp_err=$ac_c_preproc_warn_flag
14764    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14765  else
14766    ac_cpp_err=
14767  fi
14768else
14769  ac_cpp_err=yes
14770fi
14771if test -z "$ac_cpp_err"; then
14772  ac_header_preproc=yes
14773else
14774  echo "$as_me: failed program was:" >&5
14775sed 's/^/| /' conftest.$ac_ext >&5
14776
14777  ac_header_preproc=no
14778fi
14779
14780rm -f conftest.err conftest.$ac_ext
14781{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14782echo "${ECHO_T}$ac_header_preproc" >&6; }
14783
14784# So?  What about this header?
14785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14786  yes:no: )
14787    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14789    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14791    ac_header_preproc=yes
14792    ;;
14793  no:yes:* )
14794    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14796    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14797echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14798    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14800    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14801echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14802    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14804    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14806    ( cat <<\_ASBOX
14807## ----------------------------------- ##
14808## Report this to llvmbugs@cs.uiuc.edu ##
14809## ----------------------------------- ##
14810_ASBOX
14811     ) | sed "s/^/$as_me: WARNING:     /" >&2
14812    ;;
14813esac
14814{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817  echo $ECHO_N "(cached) $ECHO_C" >&6
14818else
14819  eval "$as_ac_Header=\$ac_header_preproc"
14820fi
14821ac_res=`eval echo '${'$as_ac_Header'}'`
14822	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14823echo "${ECHO_T}$ac_res" >&6; }
14824
14825fi
14826if test `eval echo '${'$as_ac_Header'}'` = yes; then
14827  cat >>confdefs.h <<_ACEOF
14828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14829_ACEOF
14830
14831fi
14832
14833done
14834
14835
14836
14837
14838
14839
14840for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14841do
14842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14844  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847  echo $ECHO_N "(cached) $ECHO_C" >&6
14848fi
14849ac_res=`eval echo '${'$as_ac_Header'}'`
14850	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14851echo "${ECHO_T}$ac_res" >&6; }
14852else
14853  # Is the header compilable?
14854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h.  */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h.  */
14862$ac_includes_default
14863#include <$ac_header>
14864_ACEOF
14865rm -f conftest.$ac_objext
14866if { (ac_try="$ac_compile"
14867case "(($ac_try" in
14868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869  *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872  (eval "$ac_compile") 2>conftest.er1
14873  ac_status=$?
14874  grep -v '^ *+' conftest.er1 >conftest.err
14875  rm -f conftest.er1
14876  cat conftest.err >&5
14877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878  (exit $ac_status); } &&
14879	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14880  { (case "(($ac_try" in
14881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882  *) ac_try_echo=$ac_try;;
14883esac
14884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885  (eval "$ac_try") 2>&5
14886  ac_status=$?
14887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888  (exit $ac_status); }; } &&
14889	 { ac_try='test -s conftest.$ac_objext'
14890  { (case "(($ac_try" in
14891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892  *) ac_try_echo=$ac_try;;
14893esac
14894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895  (eval "$ac_try") 2>&5
14896  ac_status=$?
14897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898  (exit $ac_status); }; }; then
14899  ac_header_compiler=yes
14900else
14901  echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904	ac_header_compiler=no
14905fi
14906
14907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14909echo "${ECHO_T}$ac_header_compiler" >&6; }
14910
14911# Is the header present?
14912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14914cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h.  */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h.  */
14920#include <$ac_header>
14921_ACEOF
14922if { (ac_try="$ac_cpp conftest.$ac_ext"
14923case "(($ac_try" in
14924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925  *) ac_try_echo=$ac_try;;
14926esac
14927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14929  ac_status=$?
14930  grep -v '^ *+' conftest.er1 >conftest.err
14931  rm -f conftest.er1
14932  cat conftest.err >&5
14933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934  (exit $ac_status); } >/dev/null; then
14935  if test -s conftest.err; then
14936    ac_cpp_err=$ac_c_preproc_warn_flag
14937    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14938  else
14939    ac_cpp_err=
14940  fi
14941else
14942  ac_cpp_err=yes
14943fi
14944if test -z "$ac_cpp_err"; then
14945  ac_header_preproc=yes
14946else
14947  echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
14950  ac_header_preproc=no
14951fi
14952
14953rm -f conftest.err conftest.$ac_ext
14954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14955echo "${ECHO_T}$ac_header_preproc" >&6; }
14956
14957# So?  What about this header?
14958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14959  yes:no: )
14960    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14962    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14964    ac_header_preproc=yes
14965    ;;
14966  no:yes:* )
14967    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14969    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14970echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14971    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14973    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14974echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14975    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14977    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14979    ( cat <<\_ASBOX
14980## ----------------------------------- ##
14981## Report this to llvmbugs@cs.uiuc.edu ##
14982## ----------------------------------- ##
14983_ASBOX
14984     ) | sed "s/^/$as_me: WARNING:     /" >&2
14985    ;;
14986esac
14987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990  echo $ECHO_N "(cached) $ECHO_C" >&6
14991else
14992  eval "$as_ac_Header=\$ac_header_preproc"
14993fi
14994ac_res=`eval echo '${'$as_ac_Header'}'`
14995	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14996echo "${ECHO_T}$ac_res" >&6; }
14997
14998fi
14999if test `eval echo '${'$as_ac_Header'}'` = yes; then
15000  cat >>confdefs.h <<_ACEOF
15001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15002_ACEOF
15003
15004fi
15005
15006done
15007
15008
15009
15010
15011
15012for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15013do
15014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15019  echo $ECHO_N "(cached) $ECHO_C" >&6
15020fi
15021ac_res=`eval echo '${'$as_ac_Header'}'`
15022	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15023echo "${ECHO_T}$ac_res" >&6; }
15024else
15025  # Is the header compilable?
15026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15028cat >conftest.$ac_ext <<_ACEOF
15029/* confdefs.h.  */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h.  */
15034$ac_includes_default
15035#include <$ac_header>
15036_ACEOF
15037rm -f conftest.$ac_objext
15038if { (ac_try="$ac_compile"
15039case "(($ac_try" in
15040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041  *) ac_try_echo=$ac_try;;
15042esac
15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044  (eval "$ac_compile") 2>conftest.er1
15045  ac_status=$?
15046  grep -v '^ *+' conftest.er1 >conftest.err
15047  rm -f conftest.er1
15048  cat conftest.err >&5
15049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050  (exit $ac_status); } &&
15051	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052  { (case "(($ac_try" in
15053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054  *) ac_try_echo=$ac_try;;
15055esac
15056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057  (eval "$ac_try") 2>&5
15058  ac_status=$?
15059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060  (exit $ac_status); }; } &&
15061	 { ac_try='test -s conftest.$ac_objext'
15062  { (case "(($ac_try" in
15063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064  *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067  (eval "$ac_try") 2>&5
15068  ac_status=$?
15069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070  (exit $ac_status); }; }; then
15071  ac_header_compiler=yes
15072else
15073  echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076	ac_header_compiler=no
15077fi
15078
15079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15081echo "${ECHO_T}$ac_header_compiler" >&6; }
15082
15083# Is the header present?
15084{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15086cat >conftest.$ac_ext <<_ACEOF
15087/* confdefs.h.  */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
15091/* end confdefs.h.  */
15092#include <$ac_header>
15093_ACEOF
15094if { (ac_try="$ac_cpp conftest.$ac_ext"
15095case "(($ac_try" in
15096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097  *) ac_try_echo=$ac_try;;
15098esac
15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15101  ac_status=$?
15102  grep -v '^ *+' conftest.er1 >conftest.err
15103  rm -f conftest.er1
15104  cat conftest.err >&5
15105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106  (exit $ac_status); } >/dev/null; then
15107  if test -s conftest.err; then
15108    ac_cpp_err=$ac_c_preproc_warn_flag
15109    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15110  else
15111    ac_cpp_err=
15112  fi
15113else
15114  ac_cpp_err=yes
15115fi
15116if test -z "$ac_cpp_err"; then
15117  ac_header_preproc=yes
15118else
15119  echo "$as_me: failed program was:" >&5
15120sed 's/^/| /' conftest.$ac_ext >&5
15121
15122  ac_header_preproc=no
15123fi
15124
15125rm -f conftest.err conftest.$ac_ext
15126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127echo "${ECHO_T}$ac_header_preproc" >&6; }
15128
15129# So?  What about this header?
15130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15131  yes:no: )
15132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136    ac_header_preproc=yes
15137    ;;
15138  no:yes:* )
15139    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15142echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15143    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15146echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15151    ( cat <<\_ASBOX
15152## ----------------------------------- ##
15153## Report this to llvmbugs@cs.uiuc.edu ##
15154## ----------------------------------- ##
15155_ASBOX
15156     ) | sed "s/^/$as_me: WARNING:     /" >&2
15157    ;;
15158esac
15159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162  echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164  eval "$as_ac_Header=\$ac_header_preproc"
15165fi
15166ac_res=`eval echo '${'$as_ac_Header'}'`
15167	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15168echo "${ECHO_T}$ac_res" >&6; }
15169
15170fi
15171if test `eval echo '${'$as_ac_Header'}'` = yes; then
15172  cat >>confdefs.h <<_ACEOF
15173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15174_ACEOF
15175
15176fi
15177
15178done
15179
15180
15181for ac_header in valgrind/valgrind.h
15182do
15183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15188  echo $ECHO_N "(cached) $ECHO_C" >&6
15189fi
15190ac_res=`eval echo '${'$as_ac_Header'}'`
15191	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15192echo "${ECHO_T}$ac_res" >&6; }
15193else
15194  # Is the header compilable?
15195{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15197cat >conftest.$ac_ext <<_ACEOF
15198/* confdefs.h.  */
15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h.  */
15203$ac_includes_default
15204#include <$ac_header>
15205_ACEOF
15206rm -f conftest.$ac_objext
15207if { (ac_try="$ac_compile"
15208case "(($ac_try" in
15209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210  *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213  (eval "$ac_compile") 2>conftest.er1
15214  ac_status=$?
15215  grep -v '^ *+' conftest.er1 >conftest.err
15216  rm -f conftest.er1
15217  cat conftest.err >&5
15218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219  (exit $ac_status); } &&
15220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15221  { (case "(($ac_try" in
15222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223  *) ac_try_echo=$ac_try;;
15224esac
15225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226  (eval "$ac_try") 2>&5
15227  ac_status=$?
15228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229  (exit $ac_status); }; } &&
15230	 { ac_try='test -s conftest.$ac_objext'
15231  { (case "(($ac_try" in
15232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233  *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236  (eval "$ac_try") 2>&5
15237  ac_status=$?
15238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239  (exit $ac_status); }; }; then
15240  ac_header_compiler=yes
15241else
15242  echo "$as_me: failed program was:" >&5
15243sed 's/^/| /' conftest.$ac_ext >&5
15244
15245	ac_header_compiler=no
15246fi
15247
15248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250echo "${ECHO_T}$ac_header_compiler" >&6; }
15251
15252# Is the header present?
15253{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15255cat >conftest.$ac_ext <<_ACEOF
15256/* confdefs.h.  */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h.  */
15261#include <$ac_header>
15262_ACEOF
15263if { (ac_try="$ac_cpp conftest.$ac_ext"
15264case "(($ac_try" in
15265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266  *) ac_try_echo=$ac_try;;
15267esac
15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15270  ac_status=$?
15271  grep -v '^ *+' conftest.er1 >conftest.err
15272  rm -f conftest.er1
15273  cat conftest.err >&5
15274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275  (exit $ac_status); } >/dev/null; then
15276  if test -s conftest.err; then
15277    ac_cpp_err=$ac_c_preproc_warn_flag
15278    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15279  else
15280    ac_cpp_err=
15281  fi
15282else
15283  ac_cpp_err=yes
15284fi
15285if test -z "$ac_cpp_err"; then
15286  ac_header_preproc=yes
15287else
15288  echo "$as_me: failed program was:" >&5
15289sed 's/^/| /' conftest.$ac_ext >&5
15290
15291  ac_header_preproc=no
15292fi
15293
15294rm -f conftest.err conftest.$ac_ext
15295{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15296echo "${ECHO_T}$ac_header_preproc" >&6; }
15297
15298# So?  What about this header?
15299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15300  yes:no: )
15301    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15305    ac_header_preproc=yes
15306    ;;
15307  no:yes:* )
15308    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15310    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15311echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15312    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15314    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15315echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15318    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15320    ( cat <<\_ASBOX
15321## ----------------------------------- ##
15322## Report this to llvmbugs@cs.uiuc.edu ##
15323## ----------------------------------- ##
15324_ASBOX
15325     ) | sed "s/^/$as_me: WARNING:     /" >&2
15326    ;;
15327esac
15328{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331  echo $ECHO_N "(cached) $ECHO_C" >&6
15332else
15333  eval "$as_ac_Header=\$ac_header_preproc"
15334fi
15335ac_res=`eval echo '${'$as_ac_Header'}'`
15336	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15337echo "${ECHO_T}$ac_res" >&6; }
15338
15339fi
15340if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341  cat >>confdefs.h <<_ACEOF
15342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15343_ACEOF
15344
15345fi
15346
15347done
15348
15349
15350for ac_header in fenv.h
15351do
15352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15357  echo $ECHO_N "(cached) $ECHO_C" >&6
15358fi
15359ac_res=`eval echo '${'$as_ac_Header'}'`
15360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15361echo "${ECHO_T}$ac_res" >&6; }
15362else
15363  # Is the header compilable?
15364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15366cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h.  */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h.  */
15372$ac_includes_default
15373#include <$ac_header>
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (ac_try="$ac_compile"
15377case "(($ac_try" in
15378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379  *) ac_try_echo=$ac_try;;
15380esac
15381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382  (eval "$ac_compile") 2>conftest.er1
15383  ac_status=$?
15384  grep -v '^ *+' conftest.er1 >conftest.err
15385  rm -f conftest.er1
15386  cat conftest.err >&5
15387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388  (exit $ac_status); } &&
15389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15390  { (case "(($ac_try" in
15391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392  *) ac_try_echo=$ac_try;;
15393esac
15394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395  (eval "$ac_try") 2>&5
15396  ac_status=$?
15397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398  (exit $ac_status); }; } &&
15399	 { ac_try='test -s conftest.$ac_objext'
15400  { (case "(($ac_try" in
15401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402  *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405  (eval "$ac_try") 2>&5
15406  ac_status=$?
15407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408  (exit $ac_status); }; }; then
15409  ac_header_compiler=yes
15410else
15411  echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
15414	ac_header_compiler=no
15415fi
15416
15417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15419echo "${ECHO_T}$ac_header_compiler" >&6; }
15420
15421# Is the header present?
15422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15424cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h.  */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h.  */
15430#include <$ac_header>
15431_ACEOF
15432if { (ac_try="$ac_cpp conftest.$ac_ext"
15433case "(($ac_try" in
15434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435  *) ac_try_echo=$ac_try;;
15436esac
15437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15439  ac_status=$?
15440  grep -v '^ *+' conftest.er1 >conftest.err
15441  rm -f conftest.er1
15442  cat conftest.err >&5
15443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444  (exit $ac_status); } >/dev/null; then
15445  if test -s conftest.err; then
15446    ac_cpp_err=$ac_c_preproc_warn_flag
15447    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15448  else
15449    ac_cpp_err=
15450  fi
15451else
15452  ac_cpp_err=yes
15453fi
15454if test -z "$ac_cpp_err"; then
15455  ac_header_preproc=yes
15456else
15457  echo "$as_me: failed program was:" >&5
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
15460  ac_header_preproc=no
15461fi
15462
15463rm -f conftest.err conftest.$ac_ext
15464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15465echo "${ECHO_T}$ac_header_preproc" >&6; }
15466
15467# So?  What about this header?
15468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15469  yes:no: )
15470    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15472    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15474    ac_header_preproc=yes
15475    ;;
15476  no:yes:* )
15477    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15479    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15480echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15481    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15483    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15484echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15485    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15487    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15489    ( cat <<\_ASBOX
15490## ----------------------------------- ##
15491## Report this to llvmbugs@cs.uiuc.edu ##
15492## ----------------------------------- ##
15493_ASBOX
15494     ) | sed "s/^/$as_me: WARNING:     /" >&2
15495    ;;
15496esac
15497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15500  echo $ECHO_N "(cached) $ECHO_C" >&6
15501else
15502  eval "$as_ac_Header=\$ac_header_preproc"
15503fi
15504ac_res=`eval echo '${'$as_ac_Header'}'`
15505	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15506echo "${ECHO_T}$ac_res" >&6; }
15507
15508fi
15509if test `eval echo '${'$as_ac_Header'}'` = yes; then
15510  cat >>confdefs.h <<_ACEOF
15511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15512_ACEOF
15513
15514fi
15515
15516done
15517
15518if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15519
15520for ac_header in pthread.h
15521do
15522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15527  echo $ECHO_N "(cached) $ECHO_C" >&6
15528fi
15529ac_res=`eval echo '${'$as_ac_Header'}'`
15530	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15531echo "${ECHO_T}$ac_res" >&6; }
15532else
15533  # Is the header compilable?
15534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h.  */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h.  */
15542$ac_includes_default
15543#include <$ac_header>
15544_ACEOF
15545rm -f conftest.$ac_objext
15546if { (ac_try="$ac_compile"
15547case "(($ac_try" in
15548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549  *) ac_try_echo=$ac_try;;
15550esac
15551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552  (eval "$ac_compile") 2>conftest.er1
15553  ac_status=$?
15554  grep -v '^ *+' conftest.er1 >conftest.err
15555  rm -f conftest.er1
15556  cat conftest.err >&5
15557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558  (exit $ac_status); } &&
15559	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15560  { (case "(($ac_try" in
15561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562  *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565  (eval "$ac_try") 2>&5
15566  ac_status=$?
15567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568  (exit $ac_status); }; } &&
15569	 { ac_try='test -s conftest.$ac_objext'
15570  { (case "(($ac_try" in
15571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572  *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575  (eval "$ac_try") 2>&5
15576  ac_status=$?
15577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578  (exit $ac_status); }; }; then
15579  ac_header_compiler=yes
15580else
15581  echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584	ac_header_compiler=no
15585fi
15586
15587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15589echo "${ECHO_T}$ac_header_compiler" >&6; }
15590
15591# Is the header present?
15592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15594cat >conftest.$ac_ext <<_ACEOF
15595/* confdefs.h.  */
15596_ACEOF
15597cat confdefs.h >>conftest.$ac_ext
15598cat >>conftest.$ac_ext <<_ACEOF
15599/* end confdefs.h.  */
15600#include <$ac_header>
15601_ACEOF
15602if { (ac_try="$ac_cpp conftest.$ac_ext"
15603case "(($ac_try" in
15604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605  *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15609  ac_status=$?
15610  grep -v '^ *+' conftest.er1 >conftest.err
15611  rm -f conftest.er1
15612  cat conftest.err >&5
15613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614  (exit $ac_status); } >/dev/null; then
15615  if test -s conftest.err; then
15616    ac_cpp_err=$ac_c_preproc_warn_flag
15617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15618  else
15619    ac_cpp_err=
15620  fi
15621else
15622  ac_cpp_err=yes
15623fi
15624if test -z "$ac_cpp_err"; then
15625  ac_header_preproc=yes
15626else
15627  echo "$as_me: failed program was:" >&5
15628sed 's/^/| /' conftest.$ac_ext >&5
15629
15630  ac_header_preproc=no
15631fi
15632
15633rm -f conftest.err conftest.$ac_ext
15634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15635echo "${ECHO_T}$ac_header_preproc" >&6; }
15636
15637# So?  What about this header?
15638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15639  yes:no: )
15640    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15644    ac_header_preproc=yes
15645    ;;
15646  no:yes:* )
15647    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15649    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15650echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15651    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15653    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15654echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15655    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15657    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15659    ( cat <<\_ASBOX
15660## ----------------------------------- ##
15661## Report this to llvmbugs@cs.uiuc.edu ##
15662## ----------------------------------- ##
15663_ASBOX
15664     ) | sed "s/^/$as_me: WARNING:     /" >&2
15665    ;;
15666esac
15667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15670  echo $ECHO_N "(cached) $ECHO_C" >&6
15671else
15672  eval "$as_ac_Header=\$ac_header_preproc"
15673fi
15674ac_res=`eval echo '${'$as_ac_Header'}'`
15675	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15676echo "${ECHO_T}$ac_res" >&6; }
15677
15678fi
15679if test `eval echo '${'$as_ac_Header'}'` = yes; then
15680  cat >>confdefs.h <<_ACEOF
15681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15682_ACEOF
15683 HAVE_PTHREAD=1
15684
15685else
15686  HAVE_PTHREAD=0
15687
15688fi
15689
15690done
15691
15692else
15693  HAVE_PTHREAD=0
15694
15695fi
15696
15697if test "$llvm_cv_enable_libffi" = "yes" ; then
15698
15699
15700for ac_header in ffi.h ffi/ffi.h
15701do
15702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15707  echo $ECHO_N "(cached) $ECHO_C" >&6
15708fi
15709ac_res=`eval echo '${'$as_ac_Header'}'`
15710	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15711echo "${ECHO_T}$ac_res" >&6; }
15712else
15713  # Is the header compilable?
15714{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15716cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h.  */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h.  */
15722$ac_includes_default
15723#include <$ac_header>
15724_ACEOF
15725rm -f conftest.$ac_objext
15726if { (ac_try="$ac_compile"
15727case "(($ac_try" in
15728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729  *) ac_try_echo=$ac_try;;
15730esac
15731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732  (eval "$ac_compile") 2>conftest.er1
15733  ac_status=$?
15734  grep -v '^ *+' conftest.er1 >conftest.err
15735  rm -f conftest.er1
15736  cat conftest.err >&5
15737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738  (exit $ac_status); } &&
15739	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15740  { (case "(($ac_try" in
15741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742  *) ac_try_echo=$ac_try;;
15743esac
15744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745  (eval "$ac_try") 2>&5
15746  ac_status=$?
15747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748  (exit $ac_status); }; } &&
15749	 { ac_try='test -s conftest.$ac_objext'
15750  { (case "(($ac_try" in
15751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752  *) ac_try_echo=$ac_try;;
15753esac
15754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755  (eval "$ac_try") 2>&5
15756  ac_status=$?
15757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758  (exit $ac_status); }; }; then
15759  ac_header_compiler=yes
15760else
15761  echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764	ac_header_compiler=no
15765fi
15766
15767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15769echo "${ECHO_T}$ac_header_compiler" >&6; }
15770
15771# Is the header present?
15772{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15774cat >conftest.$ac_ext <<_ACEOF
15775/* confdefs.h.  */
15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h.  */
15780#include <$ac_header>
15781_ACEOF
15782if { (ac_try="$ac_cpp conftest.$ac_ext"
15783case "(($ac_try" in
15784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785  *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15789  ac_status=$?
15790  grep -v '^ *+' conftest.er1 >conftest.err
15791  rm -f conftest.er1
15792  cat conftest.err >&5
15793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794  (exit $ac_status); } >/dev/null; then
15795  if test -s conftest.err; then
15796    ac_cpp_err=$ac_c_preproc_warn_flag
15797    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15798  else
15799    ac_cpp_err=
15800  fi
15801else
15802  ac_cpp_err=yes
15803fi
15804if test -z "$ac_cpp_err"; then
15805  ac_header_preproc=yes
15806else
15807  echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810  ac_header_preproc=no
15811fi
15812
15813rm -f conftest.err conftest.$ac_ext
15814{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15815echo "${ECHO_T}$ac_header_preproc" >&6; }
15816
15817# So?  What about this header?
15818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15819  yes:no: )
15820    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824    ac_header_preproc=yes
15825    ;;
15826  no:yes:* )
15827    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15830echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15831    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15834echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15835    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15839    ( cat <<\_ASBOX
15840## ----------------------------------- ##
15841## Report this to llvmbugs@cs.uiuc.edu ##
15842## ----------------------------------- ##
15843_ASBOX
15844     ) | sed "s/^/$as_me: WARNING:     /" >&2
15845    ;;
15846esac
15847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15850  echo $ECHO_N "(cached) $ECHO_C" >&6
15851else
15852  eval "$as_ac_Header=\$ac_header_preproc"
15853fi
15854ac_res=`eval echo '${'$as_ac_Header'}'`
15855	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15856echo "${ECHO_T}$ac_res" >&6; }
15857
15858fi
15859if test `eval echo '${'$as_ac_Header'}'` = yes; then
15860  cat >>confdefs.h <<_ACEOF
15861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15862_ACEOF
15863
15864fi
15865
15866done
15867
15868fi
15869
15870
15871for ac_header in CrashReporterClient.h
15872do
15873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15878  echo $ECHO_N "(cached) $ECHO_C" >&6
15879fi
15880ac_res=`eval echo '${'$as_ac_Header'}'`
15881	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15882echo "${ECHO_T}$ac_res" >&6; }
15883else
15884  # Is the header compilable?
15885{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15887cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h.  */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h.  */
15893$ac_includes_default
15894#include <$ac_header>
15895_ACEOF
15896rm -f conftest.$ac_objext
15897if { (ac_try="$ac_compile"
15898case "(($ac_try" in
15899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900  *) ac_try_echo=$ac_try;;
15901esac
15902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903  (eval "$ac_compile") 2>conftest.er1
15904  ac_status=$?
15905  grep -v '^ *+' conftest.er1 >conftest.err
15906  rm -f conftest.er1
15907  cat conftest.err >&5
15908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909  (exit $ac_status); } &&
15910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911  { (case "(($ac_try" in
15912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913  *) ac_try_echo=$ac_try;;
15914esac
15915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916  (eval "$ac_try") 2>&5
15917  ac_status=$?
15918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919  (exit $ac_status); }; } &&
15920	 { ac_try='test -s conftest.$ac_objext'
15921  { (case "(($ac_try" in
15922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923  *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926  (eval "$ac_try") 2>&5
15927  ac_status=$?
15928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929  (exit $ac_status); }; }; then
15930  ac_header_compiler=yes
15931else
15932  echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935	ac_header_compiler=no
15936fi
15937
15938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15940echo "${ECHO_T}$ac_header_compiler" >&6; }
15941
15942# Is the header present?
15943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15945cat >conftest.$ac_ext <<_ACEOF
15946/* confdefs.h.  */
15947_ACEOF
15948cat confdefs.h >>conftest.$ac_ext
15949cat >>conftest.$ac_ext <<_ACEOF
15950/* end confdefs.h.  */
15951#include <$ac_header>
15952_ACEOF
15953if { (ac_try="$ac_cpp conftest.$ac_ext"
15954case "(($ac_try" in
15955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956  *) ac_try_echo=$ac_try;;
15957esac
15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15960  ac_status=$?
15961  grep -v '^ *+' conftest.er1 >conftest.err
15962  rm -f conftest.er1
15963  cat conftest.err >&5
15964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965  (exit $ac_status); } >/dev/null; then
15966  if test -s conftest.err; then
15967    ac_cpp_err=$ac_c_preproc_warn_flag
15968    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15969  else
15970    ac_cpp_err=
15971  fi
15972else
15973  ac_cpp_err=yes
15974fi
15975if test -z "$ac_cpp_err"; then
15976  ac_header_preproc=yes
15977else
15978  echo "$as_me: failed program was:" >&5
15979sed 's/^/| /' conftest.$ac_ext >&5
15980
15981  ac_header_preproc=no
15982fi
15983
15984rm -f conftest.err conftest.$ac_ext
15985{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15986echo "${ECHO_T}$ac_header_preproc" >&6; }
15987
15988# So?  What about this header?
15989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15990  yes:no: )
15991    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15992echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15993    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15994echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15995    ac_header_preproc=yes
15996    ;;
15997  no:yes:* )
15998    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15999echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16000    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16001echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16002    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16003echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16004    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16005echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16006    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16008    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16009echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16010    ( cat <<\_ASBOX
16011## ----------------------------------- ##
16012## Report this to llvmbugs@cs.uiuc.edu ##
16013## ----------------------------------- ##
16014_ASBOX
16015     ) | sed "s/^/$as_me: WARNING:     /" >&2
16016    ;;
16017esac
16018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16021  echo $ECHO_N "(cached) $ECHO_C" >&6
16022else
16023  eval "$as_ac_Header=\$ac_header_preproc"
16024fi
16025ac_res=`eval echo '${'$as_ac_Header'}'`
16026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16027echo "${ECHO_T}$ac_res" >&6; }
16028
16029fi
16030if test `eval echo '${'$as_ac_Header'}'` = yes; then
16031  cat >>confdefs.h <<_ACEOF
16032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16033_ACEOF
16034
16035fi
16036
16037done
16038
16039
16040{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16041echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16042cat >conftest.$ac_ext <<_ACEOF
16043/* confdefs.h.  */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h.  */
16048extern const char *__crashreporter_info__;
16049      int main() {
16050        __crashreporter_info__ = "test";
16051        return 0;
16052      }
16053
16054_ACEOF
16055rm -f conftest.$ac_objext conftest$ac_exeext
16056if { (ac_try="$ac_link"
16057case "(($ac_try" in
16058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059  *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062  (eval "$ac_link") 2>conftest.er1
16063  ac_status=$?
16064  grep -v '^ *+' conftest.er1 >conftest.err
16065  rm -f conftest.er1
16066  cat conftest.err >&5
16067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068  (exit $ac_status); } &&
16069	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070  { (case "(($ac_try" in
16071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072  *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075  (eval "$ac_try") 2>&5
16076  ac_status=$?
16077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078  (exit $ac_status); }; } &&
16079	 { ac_try='test -s conftest$ac_exeext'
16080  { (case "(($ac_try" in
16081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082  *) ac_try_echo=$ac_try;;
16083esac
16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085  (eval "$ac_try") 2>&5
16086  ac_status=$?
16087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088  (exit $ac_status); }; }; then
16089  { echo "$as_me:$LINENO: result: yes" >&5
16090echo "${ECHO_T}yes" >&6; }
16091
16092cat >>confdefs.h <<\_ACEOF
16093#define HAVE_CRASHREPORTER_INFO 1
16094_ACEOF
16095
16096else
16097  echo "$as_me: failed program was:" >&5
16098sed 's/^/| /' conftest.$ac_ext >&5
16099
16100	{ echo "$as_me:$LINENO: result: no" >&5
16101echo "${ECHO_T}no" >&6; }
16102
16103cat >>confdefs.h <<\_ACEOF
16104#define HAVE_CRASHREPORTER_INFO 0
16105_ACEOF
16106
16107fi
16108
16109rm -f core conftest.err conftest.$ac_objext \
16110      conftest$ac_exeext conftest.$ac_ext
16111
16112
16113
16114
16115  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16116echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16117if test "${ac_cv_huge_val_sanity+set}" = set; then
16118  echo $ECHO_N "(cached) $ECHO_C" >&6
16119else
16120
16121    ac_ext=cpp
16122ac_cpp='$CXXCPP $CPPFLAGS'
16123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16126
16127    ac_save_CXXFLAGS=$CXXFLAGS
16128    CXXFLAGS=-pedantic
16129    if test "$cross_compiling" = yes; then
16130  ac_cv_huge_val_sanity=yes
16131else
16132  cat >conftest.$ac_ext <<_ACEOF
16133/* confdefs.h.  */
16134_ACEOF
16135cat confdefs.h >>conftest.$ac_ext
16136cat >>conftest.$ac_ext <<_ACEOF
16137/* end confdefs.h.  */
16138#include <math.h>
16139int
16140main ()
16141{
16142double x = HUGE_VAL; return x != x;
16143  ;
16144  return 0;
16145}
16146_ACEOF
16147rm -f conftest$ac_exeext
16148if { (ac_try="$ac_link"
16149case "(($ac_try" in
16150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151  *) ac_try_echo=$ac_try;;
16152esac
16153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154  (eval "$ac_link") 2>&5
16155  ac_status=$?
16156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16158  { (case "(($ac_try" in
16159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160  *) ac_try_echo=$ac_try;;
16161esac
16162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163  (eval "$ac_try") 2>&5
16164  ac_status=$?
16165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166  (exit $ac_status); }; }; then
16167  ac_cv_huge_val_sanity=yes
16168else
16169  echo "$as_me: program exited with status $ac_status" >&5
16170echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173( exit $ac_status )
16174ac_cv_huge_val_sanity=no
16175fi
16176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16177fi
16178
16179
16180    CXXFLAGS=$ac_save_CXXFLAGS
16181    ac_ext=c
16182ac_cpp='$CPP $CPPFLAGS'
16183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16185ac_compiler_gnu=$ac_cv_c_compiler_gnu
16186
16187
16188fi
16189{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16190echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16191  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16192
16193
16194{ echo "$as_me:$LINENO: checking for pid_t" >&5
16195echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16196if test "${ac_cv_type_pid_t+set}" = set; then
16197  echo $ECHO_N "(cached) $ECHO_C" >&6
16198else
16199  cat >conftest.$ac_ext <<_ACEOF
16200/* confdefs.h.  */
16201_ACEOF
16202cat confdefs.h >>conftest.$ac_ext
16203cat >>conftest.$ac_ext <<_ACEOF
16204/* end confdefs.h.  */
16205$ac_includes_default
16206typedef pid_t ac__type_new_;
16207int
16208main ()
16209{
16210if ((ac__type_new_ *) 0)
16211  return 0;
16212if (sizeof (ac__type_new_))
16213  return 0;
16214  ;
16215  return 0;
16216}
16217_ACEOF
16218rm -f conftest.$ac_objext
16219if { (ac_try="$ac_compile"
16220case "(($ac_try" in
16221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222  *) ac_try_echo=$ac_try;;
16223esac
16224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225  (eval "$ac_compile") 2>conftest.er1
16226  ac_status=$?
16227  grep -v '^ *+' conftest.er1 >conftest.err
16228  rm -f conftest.er1
16229  cat conftest.err >&5
16230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231  (exit $ac_status); } &&
16232	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16233  { (case "(($ac_try" in
16234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235  *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238  (eval "$ac_try") 2>&5
16239  ac_status=$?
16240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241  (exit $ac_status); }; } &&
16242	 { ac_try='test -s conftest.$ac_objext'
16243  { (case "(($ac_try" in
16244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245  *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248  (eval "$ac_try") 2>&5
16249  ac_status=$?
16250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251  (exit $ac_status); }; }; then
16252  ac_cv_type_pid_t=yes
16253else
16254  echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
16256
16257	ac_cv_type_pid_t=no
16258fi
16259
16260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261fi
16262{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16263echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16264if test $ac_cv_type_pid_t = yes; then
16265  :
16266else
16267
16268cat >>confdefs.h <<_ACEOF
16269#define pid_t int
16270_ACEOF
16271
16272fi
16273
16274{ echo "$as_me:$LINENO: checking for size_t" >&5
16275echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16276if test "${ac_cv_type_size_t+set}" = set; then
16277  echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279  cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h.  */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h.  */
16285$ac_includes_default
16286typedef size_t ac__type_new_;
16287int
16288main ()
16289{
16290if ((ac__type_new_ *) 0)
16291  return 0;
16292if (sizeof (ac__type_new_))
16293  return 0;
16294  ;
16295  return 0;
16296}
16297_ACEOF
16298rm -f conftest.$ac_objext
16299if { (ac_try="$ac_compile"
16300case "(($ac_try" in
16301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302  *) ac_try_echo=$ac_try;;
16303esac
16304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305  (eval "$ac_compile") 2>conftest.er1
16306  ac_status=$?
16307  grep -v '^ *+' conftest.er1 >conftest.err
16308  rm -f conftest.er1
16309  cat conftest.err >&5
16310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311  (exit $ac_status); } &&
16312	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313  { (case "(($ac_try" in
16314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315  *) ac_try_echo=$ac_try;;
16316esac
16317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318  (eval "$ac_try") 2>&5
16319  ac_status=$?
16320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321  (exit $ac_status); }; } &&
16322	 { ac_try='test -s conftest.$ac_objext'
16323  { (case "(($ac_try" in
16324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325  *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328  (eval "$ac_try") 2>&5
16329  ac_status=$?
16330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331  (exit $ac_status); }; }; then
16332  ac_cv_type_size_t=yes
16333else
16334  echo "$as_me: failed program was:" >&5
16335sed 's/^/| /' conftest.$ac_ext >&5
16336
16337	ac_cv_type_size_t=no
16338fi
16339
16340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341fi
16342{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16343echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16344if test $ac_cv_type_size_t = yes; then
16345  :
16346else
16347
16348cat >>confdefs.h <<_ACEOF
16349#define size_t unsigned int
16350_ACEOF
16351
16352fi
16353
16354
16355cat >>confdefs.h <<_ACEOF
16356#define RETSIGTYPE void
16357_ACEOF
16358
16359{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16360echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16361if test "${ac_cv_struct_tm+set}" = set; then
16362  echo $ECHO_N "(cached) $ECHO_C" >&6
16363else
16364  cat >conftest.$ac_ext <<_ACEOF
16365/* confdefs.h.  */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h.  */
16370#include <sys/types.h>
16371#include <time.h>
16372
16373int
16374main ()
16375{
16376struct tm *tp; tp->tm_sec;
16377  ;
16378  return 0;
16379}
16380_ACEOF
16381rm -f conftest.$ac_objext
16382if { (ac_try="$ac_compile"
16383case "(($ac_try" in
16384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385  *) ac_try_echo=$ac_try;;
16386esac
16387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388  (eval "$ac_compile") 2>conftest.er1
16389  ac_status=$?
16390  grep -v '^ *+' conftest.er1 >conftest.err
16391  rm -f conftest.er1
16392  cat conftest.err >&5
16393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394  (exit $ac_status); } &&
16395	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16396  { (case "(($ac_try" in
16397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398  *) ac_try_echo=$ac_try;;
16399esac
16400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401  (eval "$ac_try") 2>&5
16402  ac_status=$?
16403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404  (exit $ac_status); }; } &&
16405	 { ac_try='test -s conftest.$ac_objext'
16406  { (case "(($ac_try" in
16407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408  *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411  (eval "$ac_try") 2>&5
16412  ac_status=$?
16413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414  (exit $ac_status); }; }; then
16415  ac_cv_struct_tm=time.h
16416else
16417  echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420	ac_cv_struct_tm=sys/time.h
16421fi
16422
16423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16424fi
16425{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16426echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16427if test $ac_cv_struct_tm = sys/time.h; then
16428
16429cat >>confdefs.h <<\_ACEOF
16430#define TM_IN_SYS_TIME 1
16431_ACEOF
16432
16433fi
16434
16435{ echo "$as_me:$LINENO: checking for int64_t" >&5
16436echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16437if test "${ac_cv_type_int64_t+set}" = set; then
16438  echo $ECHO_N "(cached) $ECHO_C" >&6
16439else
16440  cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h.  */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h.  */
16446$ac_includes_default
16447typedef int64_t ac__type_new_;
16448int
16449main ()
16450{
16451if ((ac__type_new_ *) 0)
16452  return 0;
16453if (sizeof (ac__type_new_))
16454  return 0;
16455  ;
16456  return 0;
16457}
16458_ACEOF
16459rm -f conftest.$ac_objext
16460if { (ac_try="$ac_compile"
16461case "(($ac_try" in
16462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463  *) ac_try_echo=$ac_try;;
16464esac
16465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466  (eval "$ac_compile") 2>conftest.er1
16467  ac_status=$?
16468  grep -v '^ *+' conftest.er1 >conftest.err
16469  rm -f conftest.er1
16470  cat conftest.err >&5
16471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472  (exit $ac_status); } &&
16473	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474  { (case "(($ac_try" in
16475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476  *) ac_try_echo=$ac_try;;
16477esac
16478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479  (eval "$ac_try") 2>&5
16480  ac_status=$?
16481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482  (exit $ac_status); }; } &&
16483	 { ac_try='test -s conftest.$ac_objext'
16484  { (case "(($ac_try" in
16485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486  *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489  (eval "$ac_try") 2>&5
16490  ac_status=$?
16491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492  (exit $ac_status); }; }; then
16493  ac_cv_type_int64_t=yes
16494else
16495  echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498	ac_cv_type_int64_t=no
16499fi
16500
16501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502fi
16503{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16504echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16505if test $ac_cv_type_int64_t = yes; then
16506
16507cat >>confdefs.h <<_ACEOF
16508#define HAVE_INT64_T 1
16509_ACEOF
16510
16511
16512else
16513  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16514echo "$as_me: error: Type int64_t required but not found" >&2;}
16515   { (exit 1); exit 1; }; }
16516fi
16517
16518{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16519echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16520if test "${ac_cv_type_uint64_t+set}" = set; then
16521  echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523  cat >conftest.$ac_ext <<_ACEOF
16524/* confdefs.h.  */
16525_ACEOF
16526cat confdefs.h >>conftest.$ac_ext
16527cat >>conftest.$ac_ext <<_ACEOF
16528/* end confdefs.h.  */
16529$ac_includes_default
16530typedef uint64_t ac__type_new_;
16531int
16532main ()
16533{
16534if ((ac__type_new_ *) 0)
16535  return 0;
16536if (sizeof (ac__type_new_))
16537  return 0;
16538  ;
16539  return 0;
16540}
16541_ACEOF
16542rm -f conftest.$ac_objext
16543if { (ac_try="$ac_compile"
16544case "(($ac_try" in
16545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546  *) ac_try_echo=$ac_try;;
16547esac
16548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549  (eval "$ac_compile") 2>conftest.er1
16550  ac_status=$?
16551  grep -v '^ *+' conftest.er1 >conftest.err
16552  rm -f conftest.er1
16553  cat conftest.err >&5
16554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555  (exit $ac_status); } &&
16556	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16557  { (case "(($ac_try" in
16558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559  *) ac_try_echo=$ac_try;;
16560esac
16561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562  (eval "$ac_try") 2>&5
16563  ac_status=$?
16564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565  (exit $ac_status); }; } &&
16566	 { ac_try='test -s conftest.$ac_objext'
16567  { (case "(($ac_try" in
16568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569  *) ac_try_echo=$ac_try;;
16570esac
16571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572  (eval "$ac_try") 2>&5
16573  ac_status=$?
16574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575  (exit $ac_status); }; }; then
16576  ac_cv_type_uint64_t=yes
16577else
16578  echo "$as_me: failed program was:" >&5
16579sed 's/^/| /' conftest.$ac_ext >&5
16580
16581	ac_cv_type_uint64_t=no
16582fi
16583
16584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585fi
16586{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16587echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16588if test $ac_cv_type_uint64_t = yes; then
16589
16590cat >>confdefs.h <<_ACEOF
16591#define HAVE_UINT64_T 1
16592_ACEOF
16593
16594
16595else
16596  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16597echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16598if test "${ac_cv_type_u_int64_t+set}" = set; then
16599  echo $ECHO_N "(cached) $ECHO_C" >&6
16600else
16601  cat >conftest.$ac_ext <<_ACEOF
16602/* confdefs.h.  */
16603_ACEOF
16604cat confdefs.h >>conftest.$ac_ext
16605cat >>conftest.$ac_ext <<_ACEOF
16606/* end confdefs.h.  */
16607$ac_includes_default
16608typedef u_int64_t ac__type_new_;
16609int
16610main ()
16611{
16612if ((ac__type_new_ *) 0)
16613  return 0;
16614if (sizeof (ac__type_new_))
16615  return 0;
16616  ;
16617  return 0;
16618}
16619_ACEOF
16620rm -f conftest.$ac_objext
16621if { (ac_try="$ac_compile"
16622case "(($ac_try" in
16623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624  *) ac_try_echo=$ac_try;;
16625esac
16626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627  (eval "$ac_compile") 2>conftest.er1
16628  ac_status=$?
16629  grep -v '^ *+' conftest.er1 >conftest.err
16630  rm -f conftest.er1
16631  cat conftest.err >&5
16632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633  (exit $ac_status); } &&
16634	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16635  { (case "(($ac_try" in
16636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637  *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640  (eval "$ac_try") 2>&5
16641  ac_status=$?
16642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643  (exit $ac_status); }; } &&
16644	 { ac_try='test -s conftest.$ac_objext'
16645  { (case "(($ac_try" in
16646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647  *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650  (eval "$ac_try") 2>&5
16651  ac_status=$?
16652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653  (exit $ac_status); }; }; then
16654  ac_cv_type_u_int64_t=yes
16655else
16656  echo "$as_me: failed program was:" >&5
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
16659	ac_cv_type_u_int64_t=no
16660fi
16661
16662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663fi
16664{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16665echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16666if test $ac_cv_type_u_int64_t = yes; then
16667
16668cat >>confdefs.h <<_ACEOF
16669#define HAVE_U_INT64_T 1
16670_ACEOF
16671
16672
16673else
16674  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16675echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16676   { (exit 1); exit 1; }; }
16677fi
16678
16679fi
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16691do
16692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16693{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16695if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16696  echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698  cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h.  */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h.  */
16704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16705   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16706#define $ac_func innocuous_$ac_func
16707
16708/* System header to define __stub macros and hopefully few prototypes,
16709    which can conflict with char $ac_func (); below.
16710    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711    <limits.h> exists even on freestanding compilers.  */
16712
16713#ifdef __STDC__
16714# include <limits.h>
16715#else
16716# include <assert.h>
16717#endif
16718
16719#undef $ac_func
16720
16721/* Override any GCC internal prototype to avoid an error.
16722   Use char because int might match the return type of a GCC
16723   builtin and then its argument prototype would still apply.  */
16724#ifdef __cplusplus
16725extern "C"
16726#endif
16727char $ac_func ();
16728/* The GNU C library defines this for functions which it implements
16729    to always fail with ENOSYS.  Some functions are actually named
16730    something starting with __ and the normal name is an alias.  */
16731#if defined __stub_$ac_func || defined __stub___$ac_func
16732choke me
16733#endif
16734
16735int
16736main ()
16737{
16738return $ac_func ();
16739  ;
16740  return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext conftest$ac_exeext
16744if { (ac_try="$ac_link"
16745case "(($ac_try" in
16746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747  *) ac_try_echo=$ac_try;;
16748esac
16749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750  (eval "$ac_link") 2>conftest.er1
16751  ac_status=$?
16752  grep -v '^ *+' conftest.er1 >conftest.err
16753  rm -f conftest.er1
16754  cat conftest.err >&5
16755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756  (exit $ac_status); } &&
16757	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758  { (case "(($ac_try" in
16759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760  *) ac_try_echo=$ac_try;;
16761esac
16762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763  (eval "$ac_try") 2>&5
16764  ac_status=$?
16765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766  (exit $ac_status); }; } &&
16767	 { ac_try='test -s conftest$ac_exeext'
16768  { (case "(($ac_try" in
16769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770  *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773  (eval "$ac_try") 2>&5
16774  ac_status=$?
16775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776  (exit $ac_status); }; }; then
16777  eval "$as_ac_var=yes"
16778else
16779  echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782	eval "$as_ac_var=no"
16783fi
16784
16785rm -f core conftest.err conftest.$ac_objext \
16786      conftest$ac_exeext conftest.$ac_ext
16787fi
16788ac_res=`eval echo '${'$as_ac_var'}'`
16789	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16790echo "${ECHO_T}$ac_res" >&6; }
16791if test `eval echo '${'$as_ac_var'}'` = yes; then
16792  cat >>confdefs.h <<_ACEOF
16793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16794_ACEOF
16795
16796fi
16797done
16798
16799
16800
16801
16802
16803for ac_func in powf fmodf strtof round
16804do
16805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16808if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16809  echo $ECHO_N "(cached) $ECHO_C" >&6
16810else
16811  cat >conftest.$ac_ext <<_ACEOF
16812/* confdefs.h.  */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h.  */
16817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16818   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16819#define $ac_func innocuous_$ac_func
16820
16821/* System header to define __stub macros and hopefully few prototypes,
16822    which can conflict with char $ac_func (); below.
16823    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16824    <limits.h> exists even on freestanding compilers.  */
16825
16826#ifdef __STDC__
16827# include <limits.h>
16828#else
16829# include <assert.h>
16830#endif
16831
16832#undef $ac_func
16833
16834/* Override any GCC internal prototype to avoid an error.
16835   Use char because int might match the return type of a GCC
16836   builtin and then its argument prototype would still apply.  */
16837#ifdef __cplusplus
16838extern "C"
16839#endif
16840char $ac_func ();
16841/* The GNU C library defines this for functions which it implements
16842    to always fail with ENOSYS.  Some functions are actually named
16843    something starting with __ and the normal name is an alias.  */
16844#if defined __stub_$ac_func || defined __stub___$ac_func
16845choke me
16846#endif
16847
16848int
16849main ()
16850{
16851return $ac_func ();
16852  ;
16853  return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext conftest$ac_exeext
16857if { (ac_try="$ac_link"
16858case "(($ac_try" in
16859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860  *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863  (eval "$ac_link") 2>conftest.er1
16864  ac_status=$?
16865  grep -v '^ *+' conftest.er1 >conftest.err
16866  rm -f conftest.er1
16867  cat conftest.err >&5
16868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869  (exit $ac_status); } &&
16870	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16871  { (case "(($ac_try" in
16872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873  *) ac_try_echo=$ac_try;;
16874esac
16875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876  (eval "$ac_try") 2>&5
16877  ac_status=$?
16878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879  (exit $ac_status); }; } &&
16880	 { ac_try='test -s conftest$ac_exeext'
16881  { (case "(($ac_try" in
16882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883  *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886  (eval "$ac_try") 2>&5
16887  ac_status=$?
16888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889  (exit $ac_status); }; }; then
16890  eval "$as_ac_var=yes"
16891else
16892  echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895	eval "$as_ac_var=no"
16896fi
16897
16898rm -f core conftest.err conftest.$ac_objext \
16899      conftest$ac_exeext conftest.$ac_ext
16900fi
16901ac_res=`eval echo '${'$as_ac_var'}'`
16902	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16903echo "${ECHO_T}$ac_res" >&6; }
16904if test `eval echo '${'$as_ac_var'}'` = yes; then
16905  cat >>confdefs.h <<_ACEOF
16906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16907_ACEOF
16908
16909fi
16910done
16911
16912
16913
16914
16915
16916
16917for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16918do
16919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16923  echo $ECHO_N "(cached) $ECHO_C" >&6
16924else
16925  cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h.  */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h.  */
16931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16932   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16933#define $ac_func innocuous_$ac_func
16934
16935/* System header to define __stub macros and hopefully few prototypes,
16936    which can conflict with char $ac_func (); below.
16937    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16938    <limits.h> exists even on freestanding compilers.  */
16939
16940#ifdef __STDC__
16941# include <limits.h>
16942#else
16943# include <assert.h>
16944#endif
16945
16946#undef $ac_func
16947
16948/* Override any GCC internal prototype to avoid an error.
16949   Use char because int might match the return type of a GCC
16950   builtin and then its argument prototype would still apply.  */
16951#ifdef __cplusplus
16952extern "C"
16953#endif
16954char $ac_func ();
16955/* The GNU C library defines this for functions which it implements
16956    to always fail with ENOSYS.  Some functions are actually named
16957    something starting with __ and the normal name is an alias.  */
16958#if defined __stub_$ac_func || defined __stub___$ac_func
16959choke me
16960#endif
16961
16962int
16963main ()
16964{
16965return $ac_func ();
16966  ;
16967  return 0;
16968}
16969_ACEOF
16970rm -f conftest.$ac_objext conftest$ac_exeext
16971if { (ac_try="$ac_link"
16972case "(($ac_try" in
16973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974  *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977  (eval "$ac_link") 2>conftest.er1
16978  ac_status=$?
16979  grep -v '^ *+' conftest.er1 >conftest.err
16980  rm -f conftest.er1
16981  cat conftest.err >&5
16982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983  (exit $ac_status); } &&
16984	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985  { (case "(($ac_try" in
16986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987  *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990  (eval "$ac_try") 2>&5
16991  ac_status=$?
16992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993  (exit $ac_status); }; } &&
16994	 { ac_try='test -s conftest$ac_exeext'
16995  { (case "(($ac_try" in
16996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997  *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000  (eval "$ac_try") 2>&5
17001  ac_status=$?
17002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003  (exit $ac_status); }; }; then
17004  eval "$as_ac_var=yes"
17005else
17006  echo "$as_me: failed program was:" >&5
17007sed 's/^/| /' conftest.$ac_ext >&5
17008
17009	eval "$as_ac_var=no"
17010fi
17011
17012rm -f core conftest.err conftest.$ac_objext \
17013      conftest$ac_exeext conftest.$ac_ext
17014fi
17015ac_res=`eval echo '${'$as_ac_var'}'`
17016	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17017echo "${ECHO_T}$ac_res" >&6; }
17018if test `eval echo '${'$as_ac_var'}'` = yes; then
17019  cat >>confdefs.h <<_ACEOF
17020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17021_ACEOF
17022
17023fi
17024done
17025
17026
17027
17028
17029for ac_func in isatty mkdtemp mkstemp
17030do
17031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17032{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17035  echo $ECHO_N "(cached) $ECHO_C" >&6
17036else
17037  cat >conftest.$ac_ext <<_ACEOF
17038/* confdefs.h.  */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h.  */
17043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17045#define $ac_func innocuous_$ac_func
17046
17047/* System header to define __stub macros and hopefully few prototypes,
17048    which can conflict with char $ac_func (); below.
17049    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050    <limits.h> exists even on freestanding compilers.  */
17051
17052#ifdef __STDC__
17053# include <limits.h>
17054#else
17055# include <assert.h>
17056#endif
17057
17058#undef $ac_func
17059
17060/* Override any GCC internal prototype to avoid an error.
17061   Use char because int might match the return type of a GCC
17062   builtin and then its argument prototype would still apply.  */
17063#ifdef __cplusplus
17064extern "C"
17065#endif
17066char $ac_func ();
17067/* The GNU C library defines this for functions which it implements
17068    to always fail with ENOSYS.  Some functions are actually named
17069    something starting with __ and the normal name is an alias.  */
17070#if defined __stub_$ac_func || defined __stub___$ac_func
17071choke me
17072#endif
17073
17074int
17075main ()
17076{
17077return $ac_func ();
17078  ;
17079  return 0;
17080}
17081_ACEOF
17082rm -f conftest.$ac_objext conftest$ac_exeext
17083if { (ac_try="$ac_link"
17084case "(($ac_try" in
17085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086  *) ac_try_echo=$ac_try;;
17087esac
17088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089  (eval "$ac_link") 2>conftest.er1
17090  ac_status=$?
17091  grep -v '^ *+' conftest.er1 >conftest.err
17092  rm -f conftest.er1
17093  cat conftest.err >&5
17094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095  (exit $ac_status); } &&
17096	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17097  { (case "(($ac_try" in
17098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099  *) ac_try_echo=$ac_try;;
17100esac
17101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102  (eval "$ac_try") 2>&5
17103  ac_status=$?
17104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105  (exit $ac_status); }; } &&
17106	 { ac_try='test -s conftest$ac_exeext'
17107  { (case "(($ac_try" in
17108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109  *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112  (eval "$ac_try") 2>&5
17113  ac_status=$?
17114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115  (exit $ac_status); }; }; then
17116  eval "$as_ac_var=yes"
17117else
17118  echo "$as_me: failed program was:" >&5
17119sed 's/^/| /' conftest.$ac_ext >&5
17120
17121	eval "$as_ac_var=no"
17122fi
17123
17124rm -f core conftest.err conftest.$ac_objext \
17125      conftest$ac_exeext conftest.$ac_ext
17126fi
17127ac_res=`eval echo '${'$as_ac_var'}'`
17128	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17129echo "${ECHO_T}$ac_res" >&6; }
17130if test `eval echo '${'$as_ac_var'}'` = yes; then
17131  cat >>confdefs.h <<_ACEOF
17132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17133_ACEOF
17134
17135fi
17136done
17137
17138
17139
17140
17141
17142
17143
17144for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17145do
17146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17150  echo $ECHO_N "(cached) $ECHO_C" >&6
17151else
17152  cat >conftest.$ac_ext <<_ACEOF
17153/* confdefs.h.  */
17154_ACEOF
17155cat confdefs.h >>conftest.$ac_ext
17156cat >>conftest.$ac_ext <<_ACEOF
17157/* end confdefs.h.  */
17158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17159   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17160#define $ac_func innocuous_$ac_func
17161
17162/* System header to define __stub macros and hopefully few prototypes,
17163    which can conflict with char $ac_func (); below.
17164    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17165    <limits.h> exists even on freestanding compilers.  */
17166
17167#ifdef __STDC__
17168# include <limits.h>
17169#else
17170# include <assert.h>
17171#endif
17172
17173#undef $ac_func
17174
17175/* Override any GCC internal prototype to avoid an error.
17176   Use char because int might match the return type of a GCC
17177   builtin and then its argument prototype would still apply.  */
17178#ifdef __cplusplus
17179extern "C"
17180#endif
17181char $ac_func ();
17182/* The GNU C library defines this for functions which it implements
17183    to always fail with ENOSYS.  Some functions are actually named
17184    something starting with __ and the normal name is an alias.  */
17185#if defined __stub_$ac_func || defined __stub___$ac_func
17186choke me
17187#endif
17188
17189int
17190main ()
17191{
17192return $ac_func ();
17193  ;
17194  return 0;
17195}
17196_ACEOF
17197rm -f conftest.$ac_objext conftest$ac_exeext
17198if { (ac_try="$ac_link"
17199case "(($ac_try" in
17200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201  *) ac_try_echo=$ac_try;;
17202esac
17203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204  (eval "$ac_link") 2>conftest.er1
17205  ac_status=$?
17206  grep -v '^ *+' conftest.er1 >conftest.err
17207  rm -f conftest.er1
17208  cat conftest.err >&5
17209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210  (exit $ac_status); } &&
17211	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17212  { (case "(($ac_try" in
17213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214  *) ac_try_echo=$ac_try;;
17215esac
17216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217  (eval "$ac_try") 2>&5
17218  ac_status=$?
17219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220  (exit $ac_status); }; } &&
17221	 { ac_try='test -s conftest$ac_exeext'
17222  { (case "(($ac_try" in
17223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224  *) ac_try_echo=$ac_try;;
17225esac
17226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227  (eval "$ac_try") 2>&5
17228  ac_status=$?
17229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230  (exit $ac_status); }; }; then
17231  eval "$as_ac_var=yes"
17232else
17233  echo "$as_me: failed program was:" >&5
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
17236	eval "$as_ac_var=no"
17237fi
17238
17239rm -f core conftest.err conftest.$ac_objext \
17240      conftest$ac_exeext conftest.$ac_ext
17241fi
17242ac_res=`eval echo '${'$as_ac_var'}'`
17243	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17244echo "${ECHO_T}$ac_res" >&6; }
17245if test `eval echo '${'$as_ac_var'}'` = yes; then
17246  cat >>confdefs.h <<_ACEOF
17247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17248_ACEOF
17249
17250fi
17251done
17252
17253
17254
17255
17256for ac_func in strerror strerror_r setenv
17257do
17258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17262  echo $ECHO_N "(cached) $ECHO_C" >&6
17263else
17264  cat >conftest.$ac_ext <<_ACEOF
17265/* confdefs.h.  */
17266_ACEOF
17267cat confdefs.h >>conftest.$ac_ext
17268cat >>conftest.$ac_ext <<_ACEOF
17269/* end confdefs.h.  */
17270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17271   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17272#define $ac_func innocuous_$ac_func
17273
17274/* System header to define __stub macros and hopefully few prototypes,
17275    which can conflict with char $ac_func (); below.
17276    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17277    <limits.h> exists even on freestanding compilers.  */
17278
17279#ifdef __STDC__
17280# include <limits.h>
17281#else
17282# include <assert.h>
17283#endif
17284
17285#undef $ac_func
17286
17287/* Override any GCC internal prototype to avoid an error.
17288   Use char because int might match the return type of a GCC
17289   builtin and then its argument prototype would still apply.  */
17290#ifdef __cplusplus
17291extern "C"
17292#endif
17293char $ac_func ();
17294/* The GNU C library defines this for functions which it implements
17295    to always fail with ENOSYS.  Some functions are actually named
17296    something starting with __ and the normal name is an alias.  */
17297#if defined __stub_$ac_func || defined __stub___$ac_func
17298choke me
17299#endif
17300
17301int
17302main ()
17303{
17304return $ac_func ();
17305  ;
17306  return 0;
17307}
17308_ACEOF
17309rm -f conftest.$ac_objext conftest$ac_exeext
17310if { (ac_try="$ac_link"
17311case "(($ac_try" in
17312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313  *) ac_try_echo=$ac_try;;
17314esac
17315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316  (eval "$ac_link") 2>conftest.er1
17317  ac_status=$?
17318  grep -v '^ *+' conftest.er1 >conftest.err
17319  rm -f conftest.er1
17320  cat conftest.err >&5
17321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322  (exit $ac_status); } &&
17323	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17324  { (case "(($ac_try" in
17325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326  *) ac_try_echo=$ac_try;;
17327esac
17328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329  (eval "$ac_try") 2>&5
17330  ac_status=$?
17331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332  (exit $ac_status); }; } &&
17333	 { ac_try='test -s conftest$ac_exeext'
17334  { (case "(($ac_try" in
17335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336  *) ac_try_echo=$ac_try;;
17337esac
17338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339  (eval "$ac_try") 2>&5
17340  ac_status=$?
17341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342  (exit $ac_status); }; }; then
17343  eval "$as_ac_var=yes"
17344else
17345  echo "$as_me: failed program was:" >&5
17346sed 's/^/| /' conftest.$ac_ext >&5
17347
17348	eval "$as_ac_var=no"
17349fi
17350
17351rm -f core conftest.err conftest.$ac_objext \
17352      conftest$ac_exeext conftest.$ac_ext
17353fi
17354ac_res=`eval echo '${'$as_ac_var'}'`
17355	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17356echo "${ECHO_T}$ac_res" >&6; }
17357if test `eval echo '${'$as_ac_var'}'` = yes; then
17358  cat >>confdefs.h <<_ACEOF
17359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17360_ACEOF
17361
17362fi
17363done
17364
17365
17366
17367
17368
17369for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17370do
17371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17375  echo $ECHO_N "(cached) $ECHO_C" >&6
17376else
17377  cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h.  */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h.  */
17383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17385#define $ac_func innocuous_$ac_func
17386
17387/* System header to define __stub macros and hopefully few prototypes,
17388    which can conflict with char $ac_func (); below.
17389    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390    <limits.h> exists even on freestanding compilers.  */
17391
17392#ifdef __STDC__
17393# include <limits.h>
17394#else
17395# include <assert.h>
17396#endif
17397
17398#undef $ac_func
17399
17400/* Override any GCC internal prototype to avoid an error.
17401   Use char because int might match the return type of a GCC
17402   builtin and then its argument prototype would still apply.  */
17403#ifdef __cplusplus
17404extern "C"
17405#endif
17406char $ac_func ();
17407/* The GNU C library defines this for functions which it implements
17408    to always fail with ENOSYS.  Some functions are actually named
17409    something starting with __ and the normal name is an alias.  */
17410#if defined __stub_$ac_func || defined __stub___$ac_func
17411choke me
17412#endif
17413
17414int
17415main ()
17416{
17417return $ac_func ();
17418  ;
17419  return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext conftest$ac_exeext
17423if { (ac_try="$ac_link"
17424case "(($ac_try" in
17425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426  *) ac_try_echo=$ac_try;;
17427esac
17428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429  (eval "$ac_link") 2>conftest.er1
17430  ac_status=$?
17431  grep -v '^ *+' conftest.er1 >conftest.err
17432  rm -f conftest.er1
17433  cat conftest.err >&5
17434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435  (exit $ac_status); } &&
17436	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17437  { (case "(($ac_try" in
17438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439  *) ac_try_echo=$ac_try;;
17440esac
17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17442  (eval "$ac_try") 2>&5
17443  ac_status=$?
17444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445  (exit $ac_status); }; } &&
17446	 { ac_try='test -s conftest$ac_exeext'
17447  { (case "(($ac_try" in
17448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449  *) ac_try_echo=$ac_try;;
17450esac
17451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452  (eval "$ac_try") 2>&5
17453  ac_status=$?
17454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455  (exit $ac_status); }; }; then
17456  eval "$as_ac_var=yes"
17457else
17458  echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461	eval "$as_ac_var=no"
17462fi
17463
17464rm -f core conftest.err conftest.$ac_objext \
17465      conftest$ac_exeext conftest.$ac_ext
17466fi
17467ac_res=`eval echo '${'$as_ac_var'}'`
17468	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17469echo "${ECHO_T}$ac_res" >&6; }
17470if test `eval echo '${'$as_ac_var'}'` = yes; then
17471  cat >>confdefs.h <<_ACEOF
17472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17473_ACEOF
17474
17475fi
17476done
17477
17478
17479
17480
17481
17482
17483for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17484do
17485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17488if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17489  echo $ECHO_N "(cached) $ECHO_C" >&6
17490else
17491  cat >conftest.$ac_ext <<_ACEOF
17492/* confdefs.h.  */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h.  */
17497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17499#define $ac_func innocuous_$ac_func
17500
17501/* System header to define __stub macros and hopefully few prototypes,
17502    which can conflict with char $ac_func (); below.
17503    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504    <limits.h> exists even on freestanding compilers.  */
17505
17506#ifdef __STDC__
17507# include <limits.h>
17508#else
17509# include <assert.h>
17510#endif
17511
17512#undef $ac_func
17513
17514/* Override any GCC internal prototype to avoid an error.
17515   Use char because int might match the return type of a GCC
17516   builtin and then its argument prototype would still apply.  */
17517#ifdef __cplusplus
17518extern "C"
17519#endif
17520char $ac_func ();
17521/* The GNU C library defines this for functions which it implements
17522    to always fail with ENOSYS.  Some functions are actually named
17523    something starting with __ and the normal name is an alias.  */
17524#if defined __stub_$ac_func || defined __stub___$ac_func
17525choke me
17526#endif
17527
17528int
17529main ()
17530{
17531return $ac_func ();
17532  ;
17533  return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext conftest$ac_exeext
17537if { (ac_try="$ac_link"
17538case "(($ac_try" in
17539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540  *) ac_try_echo=$ac_try;;
17541esac
17542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543  (eval "$ac_link") 2>conftest.er1
17544  ac_status=$?
17545  grep -v '^ *+' conftest.er1 >conftest.err
17546  rm -f conftest.er1
17547  cat conftest.err >&5
17548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549  (exit $ac_status); } &&
17550	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17551  { (case "(($ac_try" in
17552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553  *) ac_try_echo=$ac_try;;
17554esac
17555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556  (eval "$ac_try") 2>&5
17557  ac_status=$?
17558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559  (exit $ac_status); }; } &&
17560	 { ac_try='test -s conftest$ac_exeext'
17561  { (case "(($ac_try" in
17562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563  *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566  (eval "$ac_try") 2>&5
17567  ac_status=$?
17568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569  (exit $ac_status); }; }; then
17570  eval "$as_ac_var=yes"
17571else
17572  echo "$as_me: failed program was:" >&5
17573sed 's/^/| /' conftest.$ac_ext >&5
17574
17575	eval "$as_ac_var=no"
17576fi
17577
17578rm -f core conftest.err conftest.$ac_objext \
17579      conftest$ac_exeext conftest.$ac_ext
17580fi
17581ac_res=`eval echo '${'$as_ac_var'}'`
17582	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17583echo "${ECHO_T}$ac_res" >&6; }
17584if test `eval echo '${'$as_ac_var'}'` = yes; then
17585  cat >>confdefs.h <<_ACEOF
17586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17587_ACEOF
17588
17589fi
17590done
17591
17592{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17593echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17594if test "${llvm_cv_c_printf_a+set}" = set; then
17595  echo $ECHO_N "(cached) $ECHO_C" >&6
17596else
17597  ac_ext=c
17598ac_cpp='$CPP $CPPFLAGS'
17599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17601ac_compiler_gnu=$ac_cv_c_compiler_gnu
17602
17603 if test "$cross_compiling" = yes; then
17604  llvmac_cv_c_printf_a=no
17605else
17606  cat >conftest.$ac_ext <<_ACEOF
17607
17608  /* confdefs.h.  */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h.  */
17613
17614#include <stdio.h>
17615#include <stdlib.h>
17616
17617int
17618main ()
17619{
17620
17621volatile double A, B;
17622char Buffer[100];
17623A = 1;
17624A /= 10.0;
17625sprintf(Buffer, "%a", A);
17626B = atof(Buffer);
17627if (A != B)
17628  return (1);
17629if (A != 0x1.999999999999ap-4)
17630  return (1);
17631return (0);
17632  ;
17633  return 0;
17634}
17635_ACEOF
17636rm -f conftest$ac_exeext
17637if { (ac_try="$ac_link"
17638case "(($ac_try" in
17639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640  *) ac_try_echo=$ac_try;;
17641esac
17642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643  (eval "$ac_link") 2>&5
17644  ac_status=$?
17645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17647  { (case "(($ac_try" in
17648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649  *) ac_try_echo=$ac_try;;
17650esac
17651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652  (eval "$ac_try") 2>&5
17653  ac_status=$?
17654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655  (exit $ac_status); }; }; then
17656  llvm_cv_c_printf_a=yes
17657else
17658  echo "$as_me: program exited with status $ac_status" >&5
17659echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
17662( exit $ac_status )
17663llvmac_cv_c_printf_a=no
17664fi
17665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17666fi
17667
17668
17669 ac_ext=c
17670ac_cpp='$CPP $CPPFLAGS'
17671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17673ac_compiler_gnu=$ac_cv_c_compiler_gnu
17674
17675fi
17676{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17677echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17678 if test "$llvm_cv_c_printf_a" = "yes"; then
17679
17680cat >>confdefs.h <<\_ACEOF
17681#define HAVE_PRINTF_A 1
17682_ACEOF
17683
17684 fi
17685
17686
17687{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17688echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17689if test "${ac_cv_func_rand48+set}" = set; then
17690  echo $ECHO_N "(cached) $ECHO_C" >&6
17691else
17692  ac_ext=cpp
17693ac_cpp='$CXXCPP $CPPFLAGS'
17694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17697
17698   cat >conftest.$ac_ext <<_ACEOF
17699/* confdefs.h.  */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
17703/* end confdefs.h.  */
17704#include <stdlib.h>
17705int
17706main ()
17707{
17708srand48(0);lrand48();drand48();
17709  ;
17710  return 0;
17711}
17712_ACEOF
17713rm -f conftest.$ac_objext
17714if { (ac_try="$ac_compile"
17715case "(($ac_try" in
17716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717  *) ac_try_echo=$ac_try;;
17718esac
17719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720  (eval "$ac_compile") 2>conftest.er1
17721  ac_status=$?
17722  grep -v '^ *+' conftest.er1 >conftest.err
17723  rm -f conftest.er1
17724  cat conftest.err >&5
17725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726  (exit $ac_status); } &&
17727	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17728  { (case "(($ac_try" in
17729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730  *) ac_try_echo=$ac_try;;
17731esac
17732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733  (eval "$ac_try") 2>&5
17734  ac_status=$?
17735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736  (exit $ac_status); }; } &&
17737	 { ac_try='test -s conftest.$ac_objext'
17738  { (case "(($ac_try" in
17739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740  *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743  (eval "$ac_try") 2>&5
17744  ac_status=$?
17745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746  (exit $ac_status); }; }; then
17747  ac_cv_func_rand48=yes
17748else
17749  echo "$as_me: failed program was:" >&5
17750sed 's/^/| /' conftest.$ac_ext >&5
17751
17752	ac_cv_func_rand48=no
17753fi
17754
17755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756  ac_ext=c
17757ac_cpp='$CPP $CPPFLAGS'
17758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761
17762fi
17763{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17764echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17765
17766if test "$ac_cv_func_rand48" = "yes" ; then
17767
17768cat >>confdefs.h <<\_ACEOF
17769#define HAVE_RAND48 1
17770_ACEOF
17771
17772fi
17773
17774
17775{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17776echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17777if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17778  echo $ECHO_N "(cached) $ECHO_C" >&6
17779else
17780  cat >conftest.$ac_ext <<_ACEOF
17781/* confdefs.h.  */
17782_ACEOF
17783cat confdefs.h >>conftest.$ac_ext
17784cat >>conftest.$ac_ext <<_ACEOF
17785/* end confdefs.h.  */
17786$ac_includes_default
17787int
17788main ()
17789{
17790#ifndef strerror_s
17791  char *p = (char *) strerror_s;
17792  return !p;
17793#endif
17794
17795  ;
17796  return 0;
17797}
17798_ACEOF
17799rm -f conftest.$ac_objext
17800if { (ac_try="$ac_compile"
17801case "(($ac_try" in
17802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803  *) ac_try_echo=$ac_try;;
17804esac
17805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806  (eval "$ac_compile") 2>conftest.er1
17807  ac_status=$?
17808  grep -v '^ *+' conftest.er1 >conftest.err
17809  rm -f conftest.er1
17810  cat conftest.err >&5
17811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812  (exit $ac_status); } &&
17813	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814  { (case "(($ac_try" in
17815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816  *) ac_try_echo=$ac_try;;
17817esac
17818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819  (eval "$ac_try") 2>&5
17820  ac_status=$?
17821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822  (exit $ac_status); }; } &&
17823	 { ac_try='test -s conftest.$ac_objext'
17824  { (case "(($ac_try" in
17825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826  *) ac_try_echo=$ac_try;;
17827esac
17828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829  (eval "$ac_try") 2>&5
17830  ac_status=$?
17831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832  (exit $ac_status); }; }; then
17833  ac_cv_have_decl_strerror_s=yes
17834else
17835  echo "$as_me: failed program was:" >&5
17836sed 's/^/| /' conftest.$ac_ext >&5
17837
17838	ac_cv_have_decl_strerror_s=no
17839fi
17840
17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842fi
17843{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17844echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17845if test $ac_cv_have_decl_strerror_s = yes; then
17846
17847cat >>confdefs.h <<_ACEOF
17848#define HAVE_DECL_STRERROR_S 1
17849_ACEOF
17850
17851
17852else
17853  cat >>confdefs.h <<_ACEOF
17854#define HAVE_DECL_STRERROR_S 0
17855_ACEOF
17856
17857
17858fi
17859
17860
17861
17862if test "$llvm_cv_os_type" = "MingW" ; then
17863  { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17864echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17865if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17866  echo $ECHO_N "(cached) $ECHO_C" >&6
17867else
17868  ac_check_lib_save_LIBS=$LIBS
17869LIBS="-lgcc  $LIBS"
17870cat >conftest.$ac_ext <<_ACEOF
17871/* confdefs.h.  */
17872_ACEOF
17873cat confdefs.h >>conftest.$ac_ext
17874cat >>conftest.$ac_ext <<_ACEOF
17875/* end confdefs.h.  */
17876
17877/* Override any GCC internal prototype to avoid an error.
17878   Use char because int might match the return type of a GCC
17879   builtin and then its argument prototype would still apply.  */
17880#ifdef __cplusplus
17881extern "C"
17882#endif
17883char _alloca ();
17884int
17885main ()
17886{
17887return _alloca ();
17888  ;
17889  return 0;
17890}
17891_ACEOF
17892rm -f conftest.$ac_objext conftest$ac_exeext
17893if { (ac_try="$ac_link"
17894case "(($ac_try" in
17895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896  *) ac_try_echo=$ac_try;;
17897esac
17898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899  (eval "$ac_link") 2>conftest.er1
17900  ac_status=$?
17901  grep -v '^ *+' conftest.er1 >conftest.err
17902  rm -f conftest.er1
17903  cat conftest.err >&5
17904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905  (exit $ac_status); } &&
17906	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907  { (case "(($ac_try" in
17908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909  *) ac_try_echo=$ac_try;;
17910esac
17911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912  (eval "$ac_try") 2>&5
17913  ac_status=$?
17914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915  (exit $ac_status); }; } &&
17916	 { ac_try='test -s conftest$ac_exeext'
17917  { (case "(($ac_try" in
17918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919  *) ac_try_echo=$ac_try;;
17920esac
17921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922  (eval "$ac_try") 2>&5
17923  ac_status=$?
17924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925  (exit $ac_status); }; }; then
17926  ac_cv_lib_gcc__alloca=yes
17927else
17928  echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931	ac_cv_lib_gcc__alloca=no
17932fi
17933
17934rm -f core conftest.err conftest.$ac_objext \
17935      conftest$ac_exeext conftest.$ac_ext
17936LIBS=$ac_check_lib_save_LIBS
17937fi
17938{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17939echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17940if test $ac_cv_lib_gcc__alloca = yes; then
17941
17942cat >>confdefs.h <<\_ACEOF
17943#define HAVE__ALLOCA 1
17944_ACEOF
17945
17946fi
17947
17948  { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17949echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17950if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17951  echo $ECHO_N "(cached) $ECHO_C" >&6
17952else
17953  ac_check_lib_save_LIBS=$LIBS
17954LIBS="-lgcc  $LIBS"
17955cat >conftest.$ac_ext <<_ACEOF
17956/* confdefs.h.  */
17957_ACEOF
17958cat confdefs.h >>conftest.$ac_ext
17959cat >>conftest.$ac_ext <<_ACEOF
17960/* end confdefs.h.  */
17961
17962/* Override any GCC internal prototype to avoid an error.
17963   Use char because int might match the return type of a GCC
17964   builtin and then its argument prototype would still apply.  */
17965#ifdef __cplusplus
17966extern "C"
17967#endif
17968char __alloca ();
17969int
17970main ()
17971{
17972return __alloca ();
17973  ;
17974  return 0;
17975}
17976_ACEOF
17977rm -f conftest.$ac_objext conftest$ac_exeext
17978if { (ac_try="$ac_link"
17979case "(($ac_try" in
17980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981  *) ac_try_echo=$ac_try;;
17982esac
17983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984  (eval "$ac_link") 2>conftest.er1
17985  ac_status=$?
17986  grep -v '^ *+' conftest.er1 >conftest.err
17987  rm -f conftest.er1
17988  cat conftest.err >&5
17989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990  (exit $ac_status); } &&
17991	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992  { (case "(($ac_try" in
17993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994  *) ac_try_echo=$ac_try;;
17995esac
17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997  (eval "$ac_try") 2>&5
17998  ac_status=$?
17999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000  (exit $ac_status); }; } &&
18001	 { ac_try='test -s conftest$ac_exeext'
18002  { (case "(($ac_try" in
18003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004  *) ac_try_echo=$ac_try;;
18005esac
18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007  (eval "$ac_try") 2>&5
18008  ac_status=$?
18009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010  (exit $ac_status); }; }; then
18011  ac_cv_lib_gcc___alloca=yes
18012else
18013  echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016	ac_cv_lib_gcc___alloca=no
18017fi
18018
18019rm -f core conftest.err conftest.$ac_objext \
18020      conftest$ac_exeext conftest.$ac_ext
18021LIBS=$ac_check_lib_save_LIBS
18022fi
18023{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18024echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18025if test $ac_cv_lib_gcc___alloca = yes; then
18026
18027cat >>confdefs.h <<\_ACEOF
18028#define HAVE___ALLOCA 1
18029_ACEOF
18030
18031fi
18032
18033  { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18034echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18035if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18036  echo $ECHO_N "(cached) $ECHO_C" >&6
18037else
18038  ac_check_lib_save_LIBS=$LIBS
18039LIBS="-lgcc  $LIBS"
18040cat >conftest.$ac_ext <<_ACEOF
18041/* confdefs.h.  */
18042_ACEOF
18043cat confdefs.h >>conftest.$ac_ext
18044cat >>conftest.$ac_ext <<_ACEOF
18045/* end confdefs.h.  */
18046
18047/* Override any GCC internal prototype to avoid an error.
18048   Use char because int might match the return type of a GCC
18049   builtin and then its argument prototype would still apply.  */
18050#ifdef __cplusplus
18051extern "C"
18052#endif
18053char __chkstk ();
18054int
18055main ()
18056{
18057return __chkstk ();
18058  ;
18059  return 0;
18060}
18061_ACEOF
18062rm -f conftest.$ac_objext conftest$ac_exeext
18063if { (ac_try="$ac_link"
18064case "(($ac_try" in
18065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066  *) ac_try_echo=$ac_try;;
18067esac
18068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069  (eval "$ac_link") 2>conftest.er1
18070  ac_status=$?
18071  grep -v '^ *+' conftest.er1 >conftest.err
18072  rm -f conftest.er1
18073  cat conftest.err >&5
18074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075  (exit $ac_status); } &&
18076	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18077  { (case "(($ac_try" in
18078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079  *) ac_try_echo=$ac_try;;
18080esac
18081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082  (eval "$ac_try") 2>&5
18083  ac_status=$?
18084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085  (exit $ac_status); }; } &&
18086	 { ac_try='test -s conftest$ac_exeext'
18087  { (case "(($ac_try" in
18088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089  *) ac_try_echo=$ac_try;;
18090esac
18091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092  (eval "$ac_try") 2>&5
18093  ac_status=$?
18094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095  (exit $ac_status); }; }; then
18096  ac_cv_lib_gcc___chkstk=yes
18097else
18098  echo "$as_me: failed program was:" >&5
18099sed 's/^/| /' conftest.$ac_ext >&5
18100
18101	ac_cv_lib_gcc___chkstk=no
18102fi
18103
18104rm -f core conftest.err conftest.$ac_objext \
18105      conftest$ac_exeext conftest.$ac_ext
18106LIBS=$ac_check_lib_save_LIBS
18107fi
18108{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18109echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18110if test $ac_cv_lib_gcc___chkstk = yes; then
18111
18112cat >>confdefs.h <<\_ACEOF
18113#define HAVE___CHKSTK 1
18114_ACEOF
18115
18116fi
18117
18118  { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18119echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18120if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18121  echo $ECHO_N "(cached) $ECHO_C" >&6
18122else
18123  ac_check_lib_save_LIBS=$LIBS
18124LIBS="-lgcc  $LIBS"
18125cat >conftest.$ac_ext <<_ACEOF
18126/* confdefs.h.  */
18127_ACEOF
18128cat confdefs.h >>conftest.$ac_ext
18129cat >>conftest.$ac_ext <<_ACEOF
18130/* end confdefs.h.  */
18131
18132/* Override any GCC internal prototype to avoid an error.
18133   Use char because int might match the return type of a GCC
18134   builtin and then its argument prototype would still apply.  */
18135#ifdef __cplusplus
18136extern "C"
18137#endif
18138char ___chkstk ();
18139int
18140main ()
18141{
18142return ___chkstk ();
18143  ;
18144  return 0;
18145}
18146_ACEOF
18147rm -f conftest.$ac_objext conftest$ac_exeext
18148if { (ac_try="$ac_link"
18149case "(($ac_try" in
18150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151  *) ac_try_echo=$ac_try;;
18152esac
18153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154  (eval "$ac_link") 2>conftest.er1
18155  ac_status=$?
18156  grep -v '^ *+' conftest.er1 >conftest.err
18157  rm -f conftest.er1
18158  cat conftest.err >&5
18159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160  (exit $ac_status); } &&
18161	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18162  { (case "(($ac_try" in
18163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18164  *) ac_try_echo=$ac_try;;
18165esac
18166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18167  (eval "$ac_try") 2>&5
18168  ac_status=$?
18169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170  (exit $ac_status); }; } &&
18171	 { ac_try='test -s conftest$ac_exeext'
18172  { (case "(($ac_try" in
18173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174  *) ac_try_echo=$ac_try;;
18175esac
18176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177  (eval "$ac_try") 2>&5
18178  ac_status=$?
18179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180  (exit $ac_status); }; }; then
18181  ac_cv_lib_gcc____chkstk=yes
18182else
18183  echo "$as_me: failed program was:" >&5
18184sed 's/^/| /' conftest.$ac_ext >&5
18185
18186	ac_cv_lib_gcc____chkstk=no
18187fi
18188
18189rm -f core conftest.err conftest.$ac_objext \
18190      conftest$ac_exeext conftest.$ac_ext
18191LIBS=$ac_check_lib_save_LIBS
18192fi
18193{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18194echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18195if test $ac_cv_lib_gcc____chkstk = yes; then
18196
18197cat >>confdefs.h <<\_ACEOF
18198#define HAVE____CHKSTK 1
18199_ACEOF
18200
18201fi
18202
18203
18204  { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18205echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18206if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18207  echo $ECHO_N "(cached) $ECHO_C" >&6
18208else
18209  ac_check_lib_save_LIBS=$LIBS
18210LIBS="-lgcc  $LIBS"
18211cat >conftest.$ac_ext <<_ACEOF
18212/* confdefs.h.  */
18213_ACEOF
18214cat confdefs.h >>conftest.$ac_ext
18215cat >>conftest.$ac_ext <<_ACEOF
18216/* end confdefs.h.  */
18217
18218/* Override any GCC internal prototype to avoid an error.
18219   Use char because int might match the return type of a GCC
18220   builtin and then its argument prototype would still apply.  */
18221#ifdef __cplusplus
18222extern "C"
18223#endif
18224char __ashldi3 ();
18225int
18226main ()
18227{
18228return __ashldi3 ();
18229  ;
18230  return 0;
18231}
18232_ACEOF
18233rm -f conftest.$ac_objext conftest$ac_exeext
18234if { (ac_try="$ac_link"
18235case "(($ac_try" in
18236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237  *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240  (eval "$ac_link") 2>conftest.er1
18241  ac_status=$?
18242  grep -v '^ *+' conftest.er1 >conftest.err
18243  rm -f conftest.er1
18244  cat conftest.err >&5
18245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246  (exit $ac_status); } &&
18247	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248  { (case "(($ac_try" in
18249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250  *) ac_try_echo=$ac_try;;
18251esac
18252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253  (eval "$ac_try") 2>&5
18254  ac_status=$?
18255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256  (exit $ac_status); }; } &&
18257	 { ac_try='test -s conftest$ac_exeext'
18258  { (case "(($ac_try" in
18259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260  *) ac_try_echo=$ac_try;;
18261esac
18262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263  (eval "$ac_try") 2>&5
18264  ac_status=$?
18265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266  (exit $ac_status); }; }; then
18267  ac_cv_lib_gcc___ashldi3=yes
18268else
18269  echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
18272	ac_cv_lib_gcc___ashldi3=no
18273fi
18274
18275rm -f core conftest.err conftest.$ac_objext \
18276      conftest$ac_exeext conftest.$ac_ext
18277LIBS=$ac_check_lib_save_LIBS
18278fi
18279{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18280echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18281if test $ac_cv_lib_gcc___ashldi3 = yes; then
18282
18283cat >>confdefs.h <<\_ACEOF
18284#define HAVE___ASHLDI3 1
18285_ACEOF
18286
18287fi
18288
18289  { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18290echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18291if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18292  echo $ECHO_N "(cached) $ECHO_C" >&6
18293else
18294  ac_check_lib_save_LIBS=$LIBS
18295LIBS="-lgcc  $LIBS"
18296cat >conftest.$ac_ext <<_ACEOF
18297/* confdefs.h.  */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h.  */
18302
18303/* Override any GCC internal prototype to avoid an error.
18304   Use char because int might match the return type of a GCC
18305   builtin and then its argument prototype would still apply.  */
18306#ifdef __cplusplus
18307extern "C"
18308#endif
18309char __ashrdi3 ();
18310int
18311main ()
18312{
18313return __ashrdi3 ();
18314  ;
18315  return 0;
18316}
18317_ACEOF
18318rm -f conftest.$ac_objext conftest$ac_exeext
18319if { (ac_try="$ac_link"
18320case "(($ac_try" in
18321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322  *) ac_try_echo=$ac_try;;
18323esac
18324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325  (eval "$ac_link") 2>conftest.er1
18326  ac_status=$?
18327  grep -v '^ *+' conftest.er1 >conftest.err
18328  rm -f conftest.er1
18329  cat conftest.err >&5
18330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331  (exit $ac_status); } &&
18332	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18333  { (case "(($ac_try" in
18334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335  *) ac_try_echo=$ac_try;;
18336esac
18337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338  (eval "$ac_try") 2>&5
18339  ac_status=$?
18340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341  (exit $ac_status); }; } &&
18342	 { ac_try='test -s conftest$ac_exeext'
18343  { (case "(($ac_try" in
18344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345  *) ac_try_echo=$ac_try;;
18346esac
18347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348  (eval "$ac_try") 2>&5
18349  ac_status=$?
18350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351  (exit $ac_status); }; }; then
18352  ac_cv_lib_gcc___ashrdi3=yes
18353else
18354  echo "$as_me: failed program was:" >&5
18355sed 's/^/| /' conftest.$ac_ext >&5
18356
18357	ac_cv_lib_gcc___ashrdi3=no
18358fi
18359
18360rm -f core conftest.err conftest.$ac_objext \
18361      conftest$ac_exeext conftest.$ac_ext
18362LIBS=$ac_check_lib_save_LIBS
18363fi
18364{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18365echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18366if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18367
18368cat >>confdefs.h <<\_ACEOF
18369#define HAVE___ASHRDI3 1
18370_ACEOF
18371
18372fi
18373
18374  { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18375echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18376if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18377  echo $ECHO_N "(cached) $ECHO_C" >&6
18378else
18379  ac_check_lib_save_LIBS=$LIBS
18380LIBS="-lgcc  $LIBS"
18381cat >conftest.$ac_ext <<_ACEOF
18382/* confdefs.h.  */
18383_ACEOF
18384cat confdefs.h >>conftest.$ac_ext
18385cat >>conftest.$ac_ext <<_ACEOF
18386/* end confdefs.h.  */
18387
18388/* Override any GCC internal prototype to avoid an error.
18389   Use char because int might match the return type of a GCC
18390   builtin and then its argument prototype would still apply.  */
18391#ifdef __cplusplus
18392extern "C"
18393#endif
18394char __divdi3 ();
18395int
18396main ()
18397{
18398return __divdi3 ();
18399  ;
18400  return 0;
18401}
18402_ACEOF
18403rm -f conftest.$ac_objext conftest$ac_exeext
18404if { (ac_try="$ac_link"
18405case "(($ac_try" in
18406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407  *) ac_try_echo=$ac_try;;
18408esac
18409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410  (eval "$ac_link") 2>conftest.er1
18411  ac_status=$?
18412  grep -v '^ *+' conftest.er1 >conftest.err
18413  rm -f conftest.er1
18414  cat conftest.err >&5
18415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416  (exit $ac_status); } &&
18417	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18418  { (case "(($ac_try" in
18419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420  *) ac_try_echo=$ac_try;;
18421esac
18422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423  (eval "$ac_try") 2>&5
18424  ac_status=$?
18425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426  (exit $ac_status); }; } &&
18427	 { ac_try='test -s conftest$ac_exeext'
18428  { (case "(($ac_try" in
18429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430  *) ac_try_echo=$ac_try;;
18431esac
18432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433  (eval "$ac_try") 2>&5
18434  ac_status=$?
18435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436  (exit $ac_status); }; }; then
18437  ac_cv_lib_gcc___divdi3=yes
18438else
18439  echo "$as_me: failed program was:" >&5
18440sed 's/^/| /' conftest.$ac_ext >&5
18441
18442	ac_cv_lib_gcc___divdi3=no
18443fi
18444
18445rm -f core conftest.err conftest.$ac_objext \
18446      conftest$ac_exeext conftest.$ac_ext
18447LIBS=$ac_check_lib_save_LIBS
18448fi
18449{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18450echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18451if test $ac_cv_lib_gcc___divdi3 = yes; then
18452
18453cat >>confdefs.h <<\_ACEOF
18454#define HAVE___DIVDI3 1
18455_ACEOF
18456
18457fi
18458
18459  { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18460echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18461if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18462  echo $ECHO_N "(cached) $ECHO_C" >&6
18463else
18464  ac_check_lib_save_LIBS=$LIBS
18465LIBS="-lgcc  $LIBS"
18466cat >conftest.$ac_ext <<_ACEOF
18467/* confdefs.h.  */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h.  */
18472
18473/* Override any GCC internal prototype to avoid an error.
18474   Use char because int might match the return type of a GCC
18475   builtin and then its argument prototype would still apply.  */
18476#ifdef __cplusplus
18477extern "C"
18478#endif
18479char __fixdfdi ();
18480int
18481main ()
18482{
18483return __fixdfdi ();
18484  ;
18485  return 0;
18486}
18487_ACEOF
18488rm -f conftest.$ac_objext conftest$ac_exeext
18489if { (ac_try="$ac_link"
18490case "(($ac_try" in
18491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492  *) ac_try_echo=$ac_try;;
18493esac
18494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495  (eval "$ac_link") 2>conftest.er1
18496  ac_status=$?
18497  grep -v '^ *+' conftest.er1 >conftest.err
18498  rm -f conftest.er1
18499  cat conftest.err >&5
18500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501  (exit $ac_status); } &&
18502	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18503  { (case "(($ac_try" in
18504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505  *) ac_try_echo=$ac_try;;
18506esac
18507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508  (eval "$ac_try") 2>&5
18509  ac_status=$?
18510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511  (exit $ac_status); }; } &&
18512	 { ac_try='test -s conftest$ac_exeext'
18513  { (case "(($ac_try" in
18514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515  *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518  (eval "$ac_try") 2>&5
18519  ac_status=$?
18520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521  (exit $ac_status); }; }; then
18522  ac_cv_lib_gcc___fixdfdi=yes
18523else
18524  echo "$as_me: failed program was:" >&5
18525sed 's/^/| /' conftest.$ac_ext >&5
18526
18527	ac_cv_lib_gcc___fixdfdi=no
18528fi
18529
18530rm -f core conftest.err conftest.$ac_objext \
18531      conftest$ac_exeext conftest.$ac_ext
18532LIBS=$ac_check_lib_save_LIBS
18533fi
18534{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18535echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18536if test $ac_cv_lib_gcc___fixdfdi = yes; then
18537
18538cat >>confdefs.h <<\_ACEOF
18539#define HAVE___FIXDFDI 1
18540_ACEOF
18541
18542fi
18543
18544  { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18545echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18546if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18547  echo $ECHO_N "(cached) $ECHO_C" >&6
18548else
18549  ac_check_lib_save_LIBS=$LIBS
18550LIBS="-lgcc  $LIBS"
18551cat >conftest.$ac_ext <<_ACEOF
18552/* confdefs.h.  */
18553_ACEOF
18554cat confdefs.h >>conftest.$ac_ext
18555cat >>conftest.$ac_ext <<_ACEOF
18556/* end confdefs.h.  */
18557
18558/* Override any GCC internal prototype to avoid an error.
18559   Use char because int might match the return type of a GCC
18560   builtin and then its argument prototype would still apply.  */
18561#ifdef __cplusplus
18562extern "C"
18563#endif
18564char __fixsfdi ();
18565int
18566main ()
18567{
18568return __fixsfdi ();
18569  ;
18570  return 0;
18571}
18572_ACEOF
18573rm -f conftest.$ac_objext conftest$ac_exeext
18574if { (ac_try="$ac_link"
18575case "(($ac_try" in
18576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577  *) ac_try_echo=$ac_try;;
18578esac
18579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580  (eval "$ac_link") 2>conftest.er1
18581  ac_status=$?
18582  grep -v '^ *+' conftest.er1 >conftest.err
18583  rm -f conftest.er1
18584  cat conftest.err >&5
18585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586  (exit $ac_status); } &&
18587	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18588  { (case "(($ac_try" in
18589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590  *) ac_try_echo=$ac_try;;
18591esac
18592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593  (eval "$ac_try") 2>&5
18594  ac_status=$?
18595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596  (exit $ac_status); }; } &&
18597	 { ac_try='test -s conftest$ac_exeext'
18598  { (case "(($ac_try" in
18599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600  *) ac_try_echo=$ac_try;;
18601esac
18602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603  (eval "$ac_try") 2>&5
18604  ac_status=$?
18605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606  (exit $ac_status); }; }; then
18607  ac_cv_lib_gcc___fixsfdi=yes
18608else
18609  echo "$as_me: failed program was:" >&5
18610sed 's/^/| /' conftest.$ac_ext >&5
18611
18612	ac_cv_lib_gcc___fixsfdi=no
18613fi
18614
18615rm -f core conftest.err conftest.$ac_objext \
18616      conftest$ac_exeext conftest.$ac_ext
18617LIBS=$ac_check_lib_save_LIBS
18618fi
18619{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18620echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18621if test $ac_cv_lib_gcc___fixsfdi = yes; then
18622
18623cat >>confdefs.h <<\_ACEOF
18624#define HAVE___FIXSFDI 1
18625_ACEOF
18626
18627fi
18628
18629  { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18630echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18631if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18632  echo $ECHO_N "(cached) $ECHO_C" >&6
18633else
18634  ac_check_lib_save_LIBS=$LIBS
18635LIBS="-lgcc  $LIBS"
18636cat >conftest.$ac_ext <<_ACEOF
18637/* confdefs.h.  */
18638_ACEOF
18639cat confdefs.h >>conftest.$ac_ext
18640cat >>conftest.$ac_ext <<_ACEOF
18641/* end confdefs.h.  */
18642
18643/* Override any GCC internal prototype to avoid an error.
18644   Use char because int might match the return type of a GCC
18645   builtin and then its argument prototype would still apply.  */
18646#ifdef __cplusplus
18647extern "C"
18648#endif
18649char __floatdidf ();
18650int
18651main ()
18652{
18653return __floatdidf ();
18654  ;
18655  return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext conftest$ac_exeext
18659if { (ac_try="$ac_link"
18660case "(($ac_try" in
18661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662  *) ac_try_echo=$ac_try;;
18663esac
18664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665  (eval "$ac_link") 2>conftest.er1
18666  ac_status=$?
18667  grep -v '^ *+' conftest.er1 >conftest.err
18668  rm -f conftest.er1
18669  cat conftest.err >&5
18670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671  (exit $ac_status); } &&
18672	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18673  { (case "(($ac_try" in
18674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675  *) ac_try_echo=$ac_try;;
18676esac
18677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678  (eval "$ac_try") 2>&5
18679  ac_status=$?
18680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681  (exit $ac_status); }; } &&
18682	 { ac_try='test -s conftest$ac_exeext'
18683  { (case "(($ac_try" in
18684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685  *) ac_try_echo=$ac_try;;
18686esac
18687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688  (eval "$ac_try") 2>&5
18689  ac_status=$?
18690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691  (exit $ac_status); }; }; then
18692  ac_cv_lib_gcc___floatdidf=yes
18693else
18694  echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697	ac_cv_lib_gcc___floatdidf=no
18698fi
18699
18700rm -f core conftest.err conftest.$ac_objext \
18701      conftest$ac_exeext conftest.$ac_ext
18702LIBS=$ac_check_lib_save_LIBS
18703fi
18704{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18705echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18706if test $ac_cv_lib_gcc___floatdidf = yes; then
18707
18708cat >>confdefs.h <<\_ACEOF
18709#define HAVE___FLOATDIDF 1
18710_ACEOF
18711
18712fi
18713
18714  { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18715echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18716if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18717  echo $ECHO_N "(cached) $ECHO_C" >&6
18718else
18719  ac_check_lib_save_LIBS=$LIBS
18720LIBS="-lgcc  $LIBS"
18721cat >conftest.$ac_ext <<_ACEOF
18722/* confdefs.h.  */
18723_ACEOF
18724cat confdefs.h >>conftest.$ac_ext
18725cat >>conftest.$ac_ext <<_ACEOF
18726/* end confdefs.h.  */
18727
18728/* Override any GCC internal prototype to avoid an error.
18729   Use char because int might match the return type of a GCC
18730   builtin and then its argument prototype would still apply.  */
18731#ifdef __cplusplus
18732extern "C"
18733#endif
18734char __lshrdi3 ();
18735int
18736main ()
18737{
18738return __lshrdi3 ();
18739  ;
18740  return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext conftest$ac_exeext
18744if { (ac_try="$ac_link"
18745case "(($ac_try" in
18746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747  *) ac_try_echo=$ac_try;;
18748esac
18749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750  (eval "$ac_link") 2>conftest.er1
18751  ac_status=$?
18752  grep -v '^ *+' conftest.er1 >conftest.err
18753  rm -f conftest.er1
18754  cat conftest.err >&5
18755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756  (exit $ac_status); } &&
18757	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18758  { (case "(($ac_try" in
18759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760  *) ac_try_echo=$ac_try;;
18761esac
18762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763  (eval "$ac_try") 2>&5
18764  ac_status=$?
18765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766  (exit $ac_status); }; } &&
18767	 { ac_try='test -s conftest$ac_exeext'
18768  { (case "(($ac_try" in
18769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770  *) ac_try_echo=$ac_try;;
18771esac
18772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773  (eval "$ac_try") 2>&5
18774  ac_status=$?
18775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776  (exit $ac_status); }; }; then
18777  ac_cv_lib_gcc___lshrdi3=yes
18778else
18779  echo "$as_me: failed program was:" >&5
18780sed 's/^/| /' conftest.$ac_ext >&5
18781
18782	ac_cv_lib_gcc___lshrdi3=no
18783fi
18784
18785rm -f core conftest.err conftest.$ac_objext \
18786      conftest$ac_exeext conftest.$ac_ext
18787LIBS=$ac_check_lib_save_LIBS
18788fi
18789{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18790echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18791if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18792
18793cat >>confdefs.h <<\_ACEOF
18794#define HAVE___LSHRDI3 1
18795_ACEOF
18796
18797fi
18798
18799  { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18800echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18801if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18802  echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804  ac_check_lib_save_LIBS=$LIBS
18805LIBS="-lgcc  $LIBS"
18806cat >conftest.$ac_ext <<_ACEOF
18807/* confdefs.h.  */
18808_ACEOF
18809cat confdefs.h >>conftest.$ac_ext
18810cat >>conftest.$ac_ext <<_ACEOF
18811/* end confdefs.h.  */
18812
18813/* Override any GCC internal prototype to avoid an error.
18814   Use char because int might match the return type of a GCC
18815   builtin and then its argument prototype would still apply.  */
18816#ifdef __cplusplus
18817extern "C"
18818#endif
18819char __moddi3 ();
18820int
18821main ()
18822{
18823return __moddi3 ();
18824  ;
18825  return 0;
18826}
18827_ACEOF
18828rm -f conftest.$ac_objext conftest$ac_exeext
18829if { (ac_try="$ac_link"
18830case "(($ac_try" in
18831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832  *) ac_try_echo=$ac_try;;
18833esac
18834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835  (eval "$ac_link") 2>conftest.er1
18836  ac_status=$?
18837  grep -v '^ *+' conftest.er1 >conftest.err
18838  rm -f conftest.er1
18839  cat conftest.err >&5
18840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841  (exit $ac_status); } &&
18842	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18843  { (case "(($ac_try" in
18844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845  *) ac_try_echo=$ac_try;;
18846esac
18847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848  (eval "$ac_try") 2>&5
18849  ac_status=$?
18850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851  (exit $ac_status); }; } &&
18852	 { ac_try='test -s conftest$ac_exeext'
18853  { (case "(($ac_try" in
18854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855  *) ac_try_echo=$ac_try;;
18856esac
18857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858  (eval "$ac_try") 2>&5
18859  ac_status=$?
18860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861  (exit $ac_status); }; }; then
18862  ac_cv_lib_gcc___moddi3=yes
18863else
18864  echo "$as_me: failed program was:" >&5
18865sed 's/^/| /' conftest.$ac_ext >&5
18866
18867	ac_cv_lib_gcc___moddi3=no
18868fi
18869
18870rm -f core conftest.err conftest.$ac_objext \
18871      conftest$ac_exeext conftest.$ac_ext
18872LIBS=$ac_check_lib_save_LIBS
18873fi
18874{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18875echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18876if test $ac_cv_lib_gcc___moddi3 = yes; then
18877
18878cat >>confdefs.h <<\_ACEOF
18879#define HAVE___MODDI3 1
18880_ACEOF
18881
18882fi
18883
18884  { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18885echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18886if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18887  echo $ECHO_N "(cached) $ECHO_C" >&6
18888else
18889  ac_check_lib_save_LIBS=$LIBS
18890LIBS="-lgcc  $LIBS"
18891cat >conftest.$ac_ext <<_ACEOF
18892/* confdefs.h.  */
18893_ACEOF
18894cat confdefs.h >>conftest.$ac_ext
18895cat >>conftest.$ac_ext <<_ACEOF
18896/* end confdefs.h.  */
18897
18898/* Override any GCC internal prototype to avoid an error.
18899   Use char because int might match the return type of a GCC
18900   builtin and then its argument prototype would still apply.  */
18901#ifdef __cplusplus
18902extern "C"
18903#endif
18904char __udivdi3 ();
18905int
18906main ()
18907{
18908return __udivdi3 ();
18909  ;
18910  return 0;
18911}
18912_ACEOF
18913rm -f conftest.$ac_objext conftest$ac_exeext
18914if { (ac_try="$ac_link"
18915case "(($ac_try" in
18916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917  *) ac_try_echo=$ac_try;;
18918esac
18919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920  (eval "$ac_link") 2>conftest.er1
18921  ac_status=$?
18922  grep -v '^ *+' conftest.er1 >conftest.err
18923  rm -f conftest.er1
18924  cat conftest.err >&5
18925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926  (exit $ac_status); } &&
18927	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18937	 { ac_try='test -s conftest$ac_exeext'
18938  { (case "(($ac_try" in
18939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940  *) ac_try_echo=$ac_try;;
18941esac
18942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943  (eval "$ac_try") 2>&5
18944  ac_status=$?
18945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946  (exit $ac_status); }; }; then
18947  ac_cv_lib_gcc___udivdi3=yes
18948else
18949  echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952	ac_cv_lib_gcc___udivdi3=no
18953fi
18954
18955rm -f core conftest.err conftest.$ac_objext \
18956      conftest$ac_exeext conftest.$ac_ext
18957LIBS=$ac_check_lib_save_LIBS
18958fi
18959{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18960echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18961if test $ac_cv_lib_gcc___udivdi3 = yes; then
18962
18963cat >>confdefs.h <<\_ACEOF
18964#define HAVE___UDIVDI3 1
18965_ACEOF
18966
18967fi
18968
18969  { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18970echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18971if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18972  echo $ECHO_N "(cached) $ECHO_C" >&6
18973else
18974  ac_check_lib_save_LIBS=$LIBS
18975LIBS="-lgcc  $LIBS"
18976cat >conftest.$ac_ext <<_ACEOF
18977/* confdefs.h.  */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h.  */
18982
18983/* Override any GCC internal prototype to avoid an error.
18984   Use char because int might match the return type of a GCC
18985   builtin and then its argument prototype would still apply.  */
18986#ifdef __cplusplus
18987extern "C"
18988#endif
18989char __umoddi3 ();
18990int
18991main ()
18992{
18993return __umoddi3 ();
18994  ;
18995  return 0;
18996}
18997_ACEOF
18998rm -f conftest.$ac_objext conftest$ac_exeext
18999if { (ac_try="$ac_link"
19000case "(($ac_try" in
19001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19002  *) ac_try_echo=$ac_try;;
19003esac
19004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19005  (eval "$ac_link") 2>conftest.er1
19006  ac_status=$?
19007  grep -v '^ *+' conftest.er1 >conftest.err
19008  rm -f conftest.er1
19009  cat conftest.err >&5
19010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011  (exit $ac_status); } &&
19012	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19013  { (case "(($ac_try" in
19014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015  *) ac_try_echo=$ac_try;;
19016esac
19017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018  (eval "$ac_try") 2>&5
19019  ac_status=$?
19020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021  (exit $ac_status); }; } &&
19022	 { ac_try='test -s conftest$ac_exeext'
19023  { (case "(($ac_try" in
19024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19025  *) ac_try_echo=$ac_try;;
19026esac
19027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19028  (eval "$ac_try") 2>&5
19029  ac_status=$?
19030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031  (exit $ac_status); }; }; then
19032  ac_cv_lib_gcc___umoddi3=yes
19033else
19034  echo "$as_me: failed program was:" >&5
19035sed 's/^/| /' conftest.$ac_ext >&5
19036
19037	ac_cv_lib_gcc___umoddi3=no
19038fi
19039
19040rm -f core conftest.err conftest.$ac_objext \
19041      conftest$ac_exeext conftest.$ac_ext
19042LIBS=$ac_check_lib_save_LIBS
19043fi
19044{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19045echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19046if test $ac_cv_lib_gcc___umoddi3 = yes; then
19047
19048cat >>confdefs.h <<\_ACEOF
19049#define HAVE___UMODDI3 1
19050_ACEOF
19051
19052fi
19053
19054
19055  { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19056echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19057if test "${ac_cv_lib_gcc___main+set}" = set; then
19058  echo $ECHO_N "(cached) $ECHO_C" >&6
19059else
19060  ac_check_lib_save_LIBS=$LIBS
19061LIBS="-lgcc  $LIBS"
19062cat >conftest.$ac_ext <<_ACEOF
19063/* confdefs.h.  */
19064_ACEOF
19065cat confdefs.h >>conftest.$ac_ext
19066cat >>conftest.$ac_ext <<_ACEOF
19067/* end confdefs.h.  */
19068
19069/* Override any GCC internal prototype to avoid an error.
19070   Use char because int might match the return type of a GCC
19071   builtin and then its argument prototype would still apply.  */
19072#ifdef __cplusplus
19073extern "C"
19074#endif
19075char __main ();
19076int
19077main ()
19078{
19079return __main ();
19080  ;
19081  return 0;
19082}
19083_ACEOF
19084rm -f conftest.$ac_objext conftest$ac_exeext
19085if { (ac_try="$ac_link"
19086case "(($ac_try" in
19087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088  *) ac_try_echo=$ac_try;;
19089esac
19090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091  (eval "$ac_link") 2>conftest.er1
19092  ac_status=$?
19093  grep -v '^ *+' conftest.er1 >conftest.err
19094  rm -f conftest.er1
19095  cat conftest.err >&5
19096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097  (exit $ac_status); } &&
19098	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19099  { (case "(($ac_try" in
19100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101  *) ac_try_echo=$ac_try;;
19102esac
19103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104  (eval "$ac_try") 2>&5
19105  ac_status=$?
19106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107  (exit $ac_status); }; } &&
19108	 { ac_try='test -s conftest$ac_exeext'
19109  { (case "(($ac_try" in
19110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111  *) ac_try_echo=$ac_try;;
19112esac
19113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114  (eval "$ac_try") 2>&5
19115  ac_status=$?
19116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117  (exit $ac_status); }; }; then
19118  ac_cv_lib_gcc___main=yes
19119else
19120  echo "$as_me: failed program was:" >&5
19121sed 's/^/| /' conftest.$ac_ext >&5
19122
19123	ac_cv_lib_gcc___main=no
19124fi
19125
19126rm -f core conftest.err conftest.$ac_objext \
19127      conftest$ac_exeext conftest.$ac_ext
19128LIBS=$ac_check_lib_save_LIBS
19129fi
19130{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19131echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19132if test $ac_cv_lib_gcc___main = yes; then
19133
19134cat >>confdefs.h <<\_ACEOF
19135#define HAVE___MAIN 1
19136_ACEOF
19137
19138fi
19139
19140  { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19141echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19142if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19143  echo $ECHO_N "(cached) $ECHO_C" >&6
19144else
19145  ac_check_lib_save_LIBS=$LIBS
19146LIBS="-lgcc  $LIBS"
19147cat >conftest.$ac_ext <<_ACEOF
19148/* confdefs.h.  */
19149_ACEOF
19150cat confdefs.h >>conftest.$ac_ext
19151cat >>conftest.$ac_ext <<_ACEOF
19152/* end confdefs.h.  */
19153
19154/* Override any GCC internal prototype to avoid an error.
19155   Use char because int might match the return type of a GCC
19156   builtin and then its argument prototype would still apply.  */
19157#ifdef __cplusplus
19158extern "C"
19159#endif
19160char __cmpdi2 ();
19161int
19162main ()
19163{
19164return __cmpdi2 ();
19165  ;
19166  return 0;
19167}
19168_ACEOF
19169rm -f conftest.$ac_objext conftest$ac_exeext
19170if { (ac_try="$ac_link"
19171case "(($ac_try" in
19172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173  *) ac_try_echo=$ac_try;;
19174esac
19175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176  (eval "$ac_link") 2>conftest.er1
19177  ac_status=$?
19178  grep -v '^ *+' conftest.er1 >conftest.err
19179  rm -f conftest.er1
19180  cat conftest.err >&5
19181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182  (exit $ac_status); } &&
19183	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19184  { (case "(($ac_try" in
19185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186  *) ac_try_echo=$ac_try;;
19187esac
19188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189  (eval "$ac_try") 2>&5
19190  ac_status=$?
19191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192  (exit $ac_status); }; } &&
19193	 { ac_try='test -s conftest$ac_exeext'
19194  { (case "(($ac_try" in
19195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196  *) ac_try_echo=$ac_try;;
19197esac
19198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199  (eval "$ac_try") 2>&5
19200  ac_status=$?
19201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202  (exit $ac_status); }; }; then
19203  ac_cv_lib_gcc___cmpdi2=yes
19204else
19205  echo "$as_me: failed program was:" >&5
19206sed 's/^/| /' conftest.$ac_ext >&5
19207
19208	ac_cv_lib_gcc___cmpdi2=no
19209fi
19210
19211rm -f core conftest.err conftest.$ac_objext \
19212      conftest$ac_exeext conftest.$ac_ext
19213LIBS=$ac_check_lib_save_LIBS
19214fi
19215{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19216echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19217if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19218
19219cat >>confdefs.h <<\_ACEOF
19220#define HAVE___CMPDI2 1
19221_ACEOF
19222
19223fi
19224
19225fi
19226
19227if test "$llvm_cv_os_type" = "MingW" ; then
19228  { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19229echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19230  cat >conftest.$ac_ext <<_ACEOF
19231#include <windows.h>
19232#include <imagehlp.h>
19233extern void foo(PENUMLOADED_MODULES_CALLBACK);
19234extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19235_ACEOF
19236rm -f conftest.$ac_objext
19237if { (ac_try="$ac_compile"
19238case "(($ac_try" in
19239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240  *) ac_try_echo=$ac_try;;
19241esac
19242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243  (eval "$ac_compile") 2>conftest.er1
19244  ac_status=$?
19245  grep -v '^ *+' conftest.er1 >conftest.err
19246  rm -f conftest.er1
19247  cat conftest.err >&5
19248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249  (exit $ac_status); } &&
19250	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19251  { (case "(($ac_try" in
19252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253  *) ac_try_echo=$ac_try;;
19254esac
19255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256  (eval "$ac_try") 2>&5
19257  ac_status=$?
19258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259  (exit $ac_status); }; } &&
19260	 { ac_try='test -s conftest.$ac_objext'
19261  { (case "(($ac_try" in
19262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263  *) ac_try_echo=$ac_try;;
19264esac
19265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266  (eval "$ac_try") 2>&5
19267  ac_status=$?
19268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269  (exit $ac_status); }; }; then
19270
19271  { echo "$as_me:$LINENO: result: yes" >&5
19272echo "${ECHO_T}yes" >&6; }
19273  llvm_cv_win32_elmcb_pcstr="PCSTR"
19274
19275else
19276  echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279
19280  { echo "$as_me:$LINENO: result: no" >&5
19281echo "${ECHO_T}no" >&6; }
19282  llvm_cv_win32_elmcb_pcstr="PSTR"
19283
19284fi
19285
19286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287
19288cat >>confdefs.h <<_ACEOF
19289#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19290_ACEOF
19291
19292fi
19293
19294
19295{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19296echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19297if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19298  echo $ECHO_N "(cached) $ECHO_C" >&6
19299else
19300  ac_ext=cpp
19301ac_cpp='$CXXCPP $CPPFLAGS'
19302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19305
19306   cat >conftest.$ac_ext <<_ACEOF
19307/* confdefs.h.  */
19308_ACEOF
19309cat confdefs.h >>conftest.$ac_ext
19310cat >>conftest.$ac_ext <<_ACEOF
19311/* end confdefs.h.  */
19312#include <math.h>
19313int
19314main ()
19315{
19316float f; isnan(f);
19317  ;
19318  return 0;
19319}
19320_ACEOF
19321rm -f conftest.$ac_objext
19322if { (ac_try="$ac_compile"
19323case "(($ac_try" in
19324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325  *) ac_try_echo=$ac_try;;
19326esac
19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328  (eval "$ac_compile") 2>conftest.er1
19329  ac_status=$?
19330  grep -v '^ *+' conftest.er1 >conftest.err
19331  rm -f conftest.er1
19332  cat conftest.err >&5
19333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334  (exit $ac_status); } &&
19335	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19336  { (case "(($ac_try" in
19337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338  *) ac_try_echo=$ac_try;;
19339esac
19340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341  (eval "$ac_try") 2>&5
19342  ac_status=$?
19343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344  (exit $ac_status); }; } &&
19345	 { ac_try='test -s conftest.$ac_objext'
19346  { (case "(($ac_try" in
19347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348  *) ac_try_echo=$ac_try;;
19349esac
19350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351  (eval "$ac_try") 2>&5
19352  ac_status=$?
19353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354  (exit $ac_status); }; }; then
19355  ac_cv_func_isnan_in_math_h=yes
19356else
19357  echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360	ac_cv_func_isnan_in_math_h=no
19361fi
19362
19363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19364  ac_ext=c
19365ac_cpp='$CPP $CPPFLAGS'
19366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19368ac_compiler_gnu=$ac_cv_c_compiler_gnu
19369
19370fi
19371{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19372echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19373
19374
19375if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19376
19377cat >>confdefs.h <<\_ACEOF
19378#define HAVE_ISNAN_IN_MATH_H 1
19379_ACEOF
19380
19381fi
19382
19383{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19384echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19385if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19386  echo $ECHO_N "(cached) $ECHO_C" >&6
19387else
19388  ac_ext=cpp
19389ac_cpp='$CXXCPP $CPPFLAGS'
19390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19393
19394   cat >conftest.$ac_ext <<_ACEOF
19395/* confdefs.h.  */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h.  */
19400#include <cmath>
19401int
19402main ()
19403{
19404float f; isnan(f);
19405  ;
19406  return 0;
19407}
19408_ACEOF
19409rm -f conftest.$ac_objext
19410if { (ac_try="$ac_compile"
19411case "(($ac_try" in
19412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413  *) ac_try_echo=$ac_try;;
19414esac
19415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416  (eval "$ac_compile") 2>conftest.er1
19417  ac_status=$?
19418  grep -v '^ *+' conftest.er1 >conftest.err
19419  rm -f conftest.er1
19420  cat conftest.err >&5
19421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422  (exit $ac_status); } &&
19423	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19424  { (case "(($ac_try" in
19425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426  *) ac_try_echo=$ac_try;;
19427esac
19428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429  (eval "$ac_try") 2>&5
19430  ac_status=$?
19431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432  (exit $ac_status); }; } &&
19433	 { ac_try='test -s conftest.$ac_objext'
19434  { (case "(($ac_try" in
19435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436  *) ac_try_echo=$ac_try;;
19437esac
19438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439  (eval "$ac_try") 2>&5
19440  ac_status=$?
19441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442  (exit $ac_status); }; }; then
19443  ac_cv_func_isnan_in_cmath=yes
19444else
19445  echo "$as_me: failed program was:" >&5
19446sed 's/^/| /' conftest.$ac_ext >&5
19447
19448	ac_cv_func_isnan_in_cmath=no
19449fi
19450
19451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452  ac_ext=c
19453ac_cpp='$CPP $CPPFLAGS'
19454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457
19458fi
19459{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19460echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19461
19462if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19463
19464cat >>confdefs.h <<\_ACEOF
19465#define HAVE_ISNAN_IN_CMATH 1
19466_ACEOF
19467
19468fi
19469
19470{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19471echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19472if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19473  echo $ECHO_N "(cached) $ECHO_C" >&6
19474else
19475  ac_ext=cpp
19476ac_cpp='$CXXCPP $CPPFLAGS'
19477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19480
19481   cat >conftest.$ac_ext <<_ACEOF
19482/* confdefs.h.  */
19483_ACEOF
19484cat confdefs.h >>conftest.$ac_ext
19485cat >>conftest.$ac_ext <<_ACEOF
19486/* end confdefs.h.  */
19487#include <cmath>
19488int
19489main ()
19490{
19491float f; std::isnan(f);
19492  ;
19493  return 0;
19494}
19495_ACEOF
19496rm -f conftest.$ac_objext
19497if { (ac_try="$ac_compile"
19498case "(($ac_try" in
19499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500  *) ac_try_echo=$ac_try;;
19501esac
19502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503  (eval "$ac_compile") 2>conftest.er1
19504  ac_status=$?
19505  grep -v '^ *+' conftest.er1 >conftest.err
19506  rm -f conftest.er1
19507  cat conftest.err >&5
19508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509  (exit $ac_status); } &&
19510	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19511  { (case "(($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_try") 2>&5
19517  ac_status=$?
19518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519  (exit $ac_status); }; } &&
19520	 { ac_try='test -s conftest.$ac_objext'
19521  { (case "(($ac_try" in
19522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523  *) ac_try_echo=$ac_try;;
19524esac
19525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526  (eval "$ac_try") 2>&5
19527  ac_status=$?
19528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529  (exit $ac_status); }; }; then
19530  ac_cv_func_std_isnan_in_cmath=yes
19531else
19532  echo "$as_me: failed program was:" >&5
19533sed 's/^/| /' conftest.$ac_ext >&5
19534
19535	ac_cv_func_std_isnan_in_cmath=no
19536fi
19537
19538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19539  ac_ext=c
19540ac_cpp='$CPP $CPPFLAGS'
19541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19543ac_compiler_gnu=$ac_cv_c_compiler_gnu
19544
19545fi
19546{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19547echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19548
19549if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19550
19551cat >>confdefs.h <<\_ACEOF
19552#define HAVE_STD_ISNAN_IN_CMATH 1
19553_ACEOF
19554
19555fi
19556
19557
19558{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19559echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19560if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19561  echo $ECHO_N "(cached) $ECHO_C" >&6
19562else
19563  ac_ext=cpp
19564ac_cpp='$CXXCPP $CPPFLAGS'
19565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19568
19569   cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h.  */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h.  */
19575#include <math.h>
19576int
19577main ()
19578{
19579float f; isinf(f);
19580  ;
19581  return 0;
19582}
19583_ACEOF
19584rm -f conftest.$ac_objext
19585if { (ac_try="$ac_compile"
19586case "(($ac_try" in
19587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588  *) ac_try_echo=$ac_try;;
19589esac
19590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591  (eval "$ac_compile") 2>conftest.er1
19592  ac_status=$?
19593  grep -v '^ *+' conftest.er1 >conftest.err
19594  rm -f conftest.er1
19595  cat conftest.err >&5
19596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597  (exit $ac_status); } &&
19598	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19599  { (case "(($ac_try" in
19600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601  *) ac_try_echo=$ac_try;;
19602esac
19603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604  (eval "$ac_try") 2>&5
19605  ac_status=$?
19606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607  (exit $ac_status); }; } &&
19608	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19618  ac_cv_func_isinf_in_math_h=yes
19619else
19620  echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
19623	ac_cv_func_isinf_in_math_h=no
19624fi
19625
19626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627  ac_ext=c
19628ac_cpp='$CPP $CPPFLAGS'
19629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19631ac_compiler_gnu=$ac_cv_c_compiler_gnu
19632
19633fi
19634{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19635echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19636
19637if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19638
19639cat >>confdefs.h <<\_ACEOF
19640#define HAVE_ISINF_IN_MATH_H 1
19641_ACEOF
19642
19643fi
19644
19645{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19646echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19647if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19648  echo $ECHO_N "(cached) $ECHO_C" >&6
19649else
19650  ac_ext=cpp
19651ac_cpp='$CXXCPP $CPPFLAGS'
19652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19655
19656   cat >conftest.$ac_ext <<_ACEOF
19657/* confdefs.h.  */
19658_ACEOF
19659cat confdefs.h >>conftest.$ac_ext
19660cat >>conftest.$ac_ext <<_ACEOF
19661/* end confdefs.h.  */
19662#include <cmath>
19663int
19664main ()
19665{
19666float f; isinf(f);
19667  ;
19668  return 0;
19669}
19670_ACEOF
19671rm -f conftest.$ac_objext
19672if { (ac_try="$ac_compile"
19673case "(($ac_try" in
19674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675  *) ac_try_echo=$ac_try;;
19676esac
19677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678  (eval "$ac_compile") 2>conftest.er1
19679  ac_status=$?
19680  grep -v '^ *+' conftest.er1 >conftest.err
19681  rm -f conftest.er1
19682  cat conftest.err >&5
19683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684  (exit $ac_status); } &&
19685	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19686  { (case "(($ac_try" in
19687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688  *) ac_try_echo=$ac_try;;
19689esac
19690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691  (eval "$ac_try") 2>&5
19692  ac_status=$?
19693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694  (exit $ac_status); }; } &&
19695	 { ac_try='test -s conftest.$ac_objext'
19696  { (case "(($ac_try" in
19697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698  *) ac_try_echo=$ac_try;;
19699esac
19700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701  (eval "$ac_try") 2>&5
19702  ac_status=$?
19703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704  (exit $ac_status); }; }; then
19705  ac_cv_func_isinf_in_cmath=yes
19706else
19707  echo "$as_me: failed program was:" >&5
19708sed 's/^/| /' conftest.$ac_ext >&5
19709
19710	ac_cv_func_isinf_in_cmath=no
19711fi
19712
19713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714  ac_ext=c
19715ac_cpp='$CPP $CPPFLAGS'
19716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19718ac_compiler_gnu=$ac_cv_c_compiler_gnu
19719
19720fi
19721{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19722echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19723
19724if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19725
19726cat >>confdefs.h <<\_ACEOF
19727#define HAVE_ISINF_IN_CMATH 1
19728_ACEOF
19729
19730fi
19731
19732{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19733echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19734if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19735  echo $ECHO_N "(cached) $ECHO_C" >&6
19736else
19737  ac_ext=cpp
19738ac_cpp='$CXXCPP $CPPFLAGS'
19739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19742
19743   cat >conftest.$ac_ext <<_ACEOF
19744/* confdefs.h.  */
19745_ACEOF
19746cat confdefs.h >>conftest.$ac_ext
19747cat >>conftest.$ac_ext <<_ACEOF
19748/* end confdefs.h.  */
19749#include <cmath>
19750int
19751main ()
19752{
19753float f; std::isinf(f)}
19754  ;
19755  return 0;
19756}
19757_ACEOF
19758rm -f conftest.$ac_objext
19759if { (ac_try="$ac_compile"
19760case "(($ac_try" in
19761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762  *) ac_try_echo=$ac_try;;
19763esac
19764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765  (eval "$ac_compile") 2>conftest.er1
19766  ac_status=$?
19767  grep -v '^ *+' conftest.er1 >conftest.err
19768  rm -f conftest.er1
19769  cat conftest.err >&5
19770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771  (exit $ac_status); } &&
19772	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19773  { (case "(($ac_try" in
19774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775  *) ac_try_echo=$ac_try;;
19776esac
19777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778  (eval "$ac_try") 2>&5
19779  ac_status=$?
19780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781  (exit $ac_status); }; } &&
19782	 { ac_try='test -s conftest.$ac_objext'
19783  { (case "(($ac_try" in
19784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785  *) ac_try_echo=$ac_try;;
19786esac
19787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788  (eval "$ac_try") 2>&5
19789  ac_status=$?
19790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791  (exit $ac_status); }; }; then
19792  ac_cv_func_std_isinf_in_cmath=yes
19793else
19794  echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797	ac_cv_func_std_isinf_in_cmath=no
19798fi
19799
19800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19801  ac_ext=c
19802ac_cpp='$CPP $CPPFLAGS'
19803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19805ac_compiler_gnu=$ac_cv_c_compiler_gnu
19806
19807fi
19808{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19809echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19810
19811if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19812
19813cat >>confdefs.h <<\_ACEOF
19814#define HAVE_STD_ISINF_IN_CMATH 1
19815_ACEOF
19816
19817fi
19818
19819{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19820echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19821if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19822  echo $ECHO_N "(cached) $ECHO_C" >&6
19823else
19824  ac_ext=cpp
19825ac_cpp='$CXXCPP $CPPFLAGS'
19826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19829
19830   cat >conftest.$ac_ext <<_ACEOF
19831/* confdefs.h.  */
19832_ACEOF
19833cat confdefs.h >>conftest.$ac_ext
19834cat >>conftest.$ac_ext <<_ACEOF
19835/* end confdefs.h.  */
19836#include <ieeefp.h>
19837int
19838main ()
19839{
19840float f; finite(f);
19841  ;
19842  return 0;
19843}
19844_ACEOF
19845rm -f conftest.$ac_objext
19846if { (ac_try="$ac_compile"
19847case "(($ac_try" in
19848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849  *) ac_try_echo=$ac_try;;
19850esac
19851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852  (eval "$ac_compile") 2>conftest.er1
19853  ac_status=$?
19854  grep -v '^ *+' conftest.er1 >conftest.err
19855  rm -f conftest.er1
19856  cat conftest.err >&5
19857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858  (exit $ac_status); } &&
19859	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19860  { (case "(($ac_try" in
19861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862  *) ac_try_echo=$ac_try;;
19863esac
19864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865  (eval "$ac_try") 2>&5
19866  ac_status=$?
19867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868  (exit $ac_status); }; } &&
19869	 { ac_try='test -s conftest.$ac_objext'
19870  { (case "(($ac_try" in
19871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872  *) ac_try_echo=$ac_try;;
19873esac
19874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875  (eval "$ac_try") 2>&5
19876  ac_status=$?
19877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878  (exit $ac_status); }; }; then
19879  ac_cv_func_finite_in_ieeefp_h=yes
19880else
19881  echo "$as_me: failed program was:" >&5
19882sed 's/^/| /' conftest.$ac_ext >&5
19883
19884	ac_cv_func_finite_in_ieeefp_h=no
19885fi
19886
19887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19888  ac_ext=c
19889ac_cpp='$CPP $CPPFLAGS'
19890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893
19894fi
19895{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19896echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19897
19898if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19899
19900cat >>confdefs.h <<\_ACEOF
19901#define HAVE_FINITE_IN_IEEEFP_H 1
19902_ACEOF
19903
19904fi
19905
19906
19907
19908if test "$llvm_cv_platform_type" = "Unix" ; then
19909
19910
19911for ac_header in stdlib.h unistd.h
19912do
19913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19915  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19918  echo $ECHO_N "(cached) $ECHO_C" >&6
19919fi
19920ac_res=`eval echo '${'$as_ac_Header'}'`
19921	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19922echo "${ECHO_T}$ac_res" >&6; }
19923else
19924  # Is the header compilable?
19925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19927cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h.  */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h.  */
19933$ac_includes_default
19934#include <$ac_header>
19935_ACEOF
19936rm -f conftest.$ac_objext
19937if { (ac_try="$ac_compile"
19938case "(($ac_try" in
19939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940  *) ac_try_echo=$ac_try;;
19941esac
19942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943  (eval "$ac_compile") 2>conftest.er1
19944  ac_status=$?
19945  grep -v '^ *+' conftest.er1 >conftest.err
19946  rm -f conftest.er1
19947  cat conftest.err >&5
19948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949  (exit $ac_status); } &&
19950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19951  { (case "(($ac_try" in
19952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953  *) ac_try_echo=$ac_try;;
19954esac
19955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956  (eval "$ac_try") 2>&5
19957  ac_status=$?
19958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959  (exit $ac_status); }; } &&
19960	 { ac_try='test -s conftest.$ac_objext'
19961  { (case "(($ac_try" in
19962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963  *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966  (eval "$ac_try") 2>&5
19967  ac_status=$?
19968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969  (exit $ac_status); }; }; then
19970  ac_header_compiler=yes
19971else
19972  echo "$as_me: failed program was:" >&5
19973sed 's/^/| /' conftest.$ac_ext >&5
19974
19975	ac_header_compiler=no
19976fi
19977
19978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19980echo "${ECHO_T}$ac_header_compiler" >&6; }
19981
19982# Is the header present?
19983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19985cat >conftest.$ac_ext <<_ACEOF
19986/* confdefs.h.  */
19987_ACEOF
19988cat confdefs.h >>conftest.$ac_ext
19989cat >>conftest.$ac_ext <<_ACEOF
19990/* end confdefs.h.  */
19991#include <$ac_header>
19992_ACEOF
19993if { (ac_try="$ac_cpp conftest.$ac_ext"
19994case "(($ac_try" in
19995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996  *) ac_try_echo=$ac_try;;
19997esac
19998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20000  ac_status=$?
20001  grep -v '^ *+' conftest.er1 >conftest.err
20002  rm -f conftest.er1
20003  cat conftest.err >&5
20004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005  (exit $ac_status); } >/dev/null; then
20006  if test -s conftest.err; then
20007    ac_cpp_err=$ac_c_preproc_warn_flag
20008    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20009  else
20010    ac_cpp_err=
20011  fi
20012else
20013  ac_cpp_err=yes
20014fi
20015if test -z "$ac_cpp_err"; then
20016  ac_header_preproc=yes
20017else
20018  echo "$as_me: failed program was:" >&5
20019sed 's/^/| /' conftest.$ac_ext >&5
20020
20021  ac_header_preproc=no
20022fi
20023
20024rm -f conftest.err conftest.$ac_ext
20025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20026echo "${ECHO_T}$ac_header_preproc" >&6; }
20027
20028# So?  What about this header?
20029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20030  yes:no: )
20031    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20035    ac_header_preproc=yes
20036    ;;
20037  no:yes:* )
20038    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20041echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20042    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20044    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20045echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20046    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20048    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20050    ( cat <<\_ASBOX
20051## ----------------------------------- ##
20052## Report this to llvmbugs@cs.uiuc.edu ##
20053## ----------------------------------- ##
20054_ASBOX
20055     ) | sed "s/^/$as_me: WARNING:     /" >&2
20056    ;;
20057esac
20058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20061  echo $ECHO_N "(cached) $ECHO_C" >&6
20062else
20063  eval "$as_ac_Header=\$ac_header_preproc"
20064fi
20065ac_res=`eval echo '${'$as_ac_Header'}'`
20066	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20067echo "${ECHO_T}$ac_res" >&6; }
20068
20069fi
20070if test `eval echo '${'$as_ac_Header'}'` = yes; then
20071  cat >>confdefs.h <<_ACEOF
20072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20073_ACEOF
20074
20075fi
20076
20077done
20078
20079
20080for ac_func in getpagesize
20081do
20082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20083{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20085if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20086  echo $ECHO_N "(cached) $ECHO_C" >&6
20087else
20088  cat >conftest.$ac_ext <<_ACEOF
20089/* confdefs.h.  */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h.  */
20094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20095   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20096#define $ac_func innocuous_$ac_func
20097
20098/* System header to define __stub macros and hopefully few prototypes,
20099    which can conflict with char $ac_func (); below.
20100    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20101    <limits.h> exists even on freestanding compilers.  */
20102
20103#ifdef __STDC__
20104# include <limits.h>
20105#else
20106# include <assert.h>
20107#endif
20108
20109#undef $ac_func
20110
20111/* Override any GCC internal prototype to avoid an error.
20112   Use char because int might match the return type of a GCC
20113   builtin and then its argument prototype would still apply.  */
20114#ifdef __cplusplus
20115extern "C"
20116#endif
20117char $ac_func ();
20118/* The GNU C library defines this for functions which it implements
20119    to always fail with ENOSYS.  Some functions are actually named
20120    something starting with __ and the normal name is an alias.  */
20121#if defined __stub_$ac_func || defined __stub___$ac_func
20122choke me
20123#endif
20124
20125int
20126main ()
20127{
20128return $ac_func ();
20129  ;
20130  return 0;
20131}
20132_ACEOF
20133rm -f conftest.$ac_objext conftest$ac_exeext
20134if { (ac_try="$ac_link"
20135case "(($ac_try" in
20136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137  *) ac_try_echo=$ac_try;;
20138esac
20139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140  (eval "$ac_link") 2>conftest.er1
20141  ac_status=$?
20142  grep -v '^ *+' conftest.er1 >conftest.err
20143  rm -f conftest.er1
20144  cat conftest.err >&5
20145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146  (exit $ac_status); } &&
20147	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20148  { (case "(($ac_try" in
20149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150  *) ac_try_echo=$ac_try;;
20151esac
20152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153  (eval "$ac_try") 2>&5
20154  ac_status=$?
20155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156  (exit $ac_status); }; } &&
20157	 { ac_try='test -s conftest$ac_exeext'
20158  { (case "(($ac_try" in
20159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160  *) ac_try_echo=$ac_try;;
20161esac
20162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163  (eval "$ac_try") 2>&5
20164  ac_status=$?
20165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166  (exit $ac_status); }; }; then
20167  eval "$as_ac_var=yes"
20168else
20169  echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
20172	eval "$as_ac_var=no"
20173fi
20174
20175rm -f core conftest.err conftest.$ac_objext \
20176      conftest$ac_exeext conftest.$ac_ext
20177fi
20178ac_res=`eval echo '${'$as_ac_var'}'`
20179	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20180echo "${ECHO_T}$ac_res" >&6; }
20181if test `eval echo '${'$as_ac_var'}'` = yes; then
20182  cat >>confdefs.h <<_ACEOF
20183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20184_ACEOF
20185
20186fi
20187done
20188
20189{ echo "$as_me:$LINENO: checking for working mmap" >&5
20190echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20191if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20192  echo $ECHO_N "(cached) $ECHO_C" >&6
20193else
20194  if test "$cross_compiling" = yes; then
20195  ac_cv_func_mmap_fixed_mapped=no
20196else
20197  cat >conftest.$ac_ext <<_ACEOF
20198/* confdefs.h.  */
20199_ACEOF
20200cat confdefs.h >>conftest.$ac_ext
20201cat >>conftest.$ac_ext <<_ACEOF
20202/* end confdefs.h.  */
20203$ac_includes_default
20204/* malloc might have been renamed as rpl_malloc. */
20205#undef malloc
20206
20207/* Thanks to Mike Haertel and Jim Avera for this test.
20208   Here is a matrix of mmap possibilities:
20209	mmap private not fixed
20210	mmap private fixed at somewhere currently unmapped
20211	mmap private fixed at somewhere already mapped
20212	mmap shared not fixed
20213	mmap shared fixed at somewhere currently unmapped
20214	mmap shared fixed at somewhere already mapped
20215   For private mappings, we should verify that changes cannot be read()
20216   back from the file, nor mmap's back from the file at a different
20217   address.  (There have been systems where private was not correctly
20218   implemented like the infamous i386 svr4.0, and systems where the
20219   VM page cache was not coherent with the file system buffer cache
20220   like early versions of FreeBSD and possibly contemporary NetBSD.)
20221   For shared mappings, we should conversely verify that changes get
20222   propagated back to all the places they're supposed to be.
20223
20224   Grep wants private fixed already mapped.
20225   The main things grep needs to know about mmap are:
20226   * does it exist and is it safe to write into the mmap'd area
20227   * how to use it (BSD variants)  */
20228
20229#include <fcntl.h>
20230#include <sys/mman.h>
20231
20232#if !STDC_HEADERS && !HAVE_STDLIB_H
20233char *malloc ();
20234#endif
20235
20236/* This mess was copied from the GNU getpagesize.h.  */
20237#if !HAVE_GETPAGESIZE
20238/* Assume that all systems that can run configure have sys/param.h.  */
20239# if !HAVE_SYS_PARAM_H
20240#  define HAVE_SYS_PARAM_H 1
20241# endif
20242
20243# ifdef _SC_PAGESIZE
20244#  define getpagesize() sysconf(_SC_PAGESIZE)
20245# else /* no _SC_PAGESIZE */
20246#  if HAVE_SYS_PARAM_H
20247#   include <sys/param.h>
20248#   ifdef EXEC_PAGESIZE
20249#    define getpagesize() EXEC_PAGESIZE
20250#   else /* no EXEC_PAGESIZE */
20251#    ifdef NBPG
20252#     define getpagesize() NBPG * CLSIZE
20253#     ifndef CLSIZE
20254#      define CLSIZE 1
20255#     endif /* no CLSIZE */
20256#    else /* no NBPG */
20257#     ifdef NBPC
20258#      define getpagesize() NBPC
20259#     else /* no NBPC */
20260#      ifdef PAGESIZE
20261#       define getpagesize() PAGESIZE
20262#      endif /* PAGESIZE */
20263#     endif /* no NBPC */
20264#    endif /* no NBPG */
20265#   endif /* no EXEC_PAGESIZE */
20266#  else /* no HAVE_SYS_PARAM_H */
20267#   define getpagesize() 8192	/* punt totally */
20268#  endif /* no HAVE_SYS_PARAM_H */
20269# endif /* no _SC_PAGESIZE */
20270
20271#endif /* no HAVE_GETPAGESIZE */
20272
20273int
20274main ()
20275{
20276  char *data, *data2, *data3;
20277  int i, pagesize;
20278  int fd;
20279
20280  pagesize = getpagesize ();
20281
20282  /* First, make a file with some known garbage in it. */
20283  data = (char *) malloc (pagesize);
20284  if (!data)
20285    return 1;
20286  for (i = 0; i < pagesize; ++i)
20287    *(data + i) = rand ();
20288  umask (0);
20289  fd = creat ("conftest.mmap", 0600);
20290  if (fd < 0)
20291    return 1;
20292  if (write (fd, data, pagesize) != pagesize)
20293    return 1;
20294  close (fd);
20295
20296  /* Next, try to mmap the file at a fixed address which already has
20297     something else allocated at it.  If we can, also make sure that
20298     we see the same garbage.  */
20299  fd = open ("conftest.mmap", O_RDWR);
20300  if (fd < 0)
20301    return 1;
20302  data2 = (char *) malloc (2 * pagesize);
20303  if (!data2)
20304    return 1;
20305  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20306  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20307		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20308    return 1;
20309  for (i = 0; i < pagesize; ++i)
20310    if (*(data + i) != *(data2 + i))
20311      return 1;
20312
20313  /* Finally, make sure that changes to the mapped area do not
20314     percolate back to the file as seen by read().  (This is a bug on
20315     some variants of i386 svr4.0.)  */
20316  for (i = 0; i < pagesize; ++i)
20317    *(data2 + i) = *(data2 + i) + 1;
20318  data3 = (char *) malloc (pagesize);
20319  if (!data3)
20320    return 1;
20321  if (read (fd, data3, pagesize) != pagesize)
20322    return 1;
20323  for (i = 0; i < pagesize; ++i)
20324    if (*(data + i) != *(data3 + i))
20325      return 1;
20326  close (fd);
20327  return 0;
20328}
20329_ACEOF
20330rm -f conftest$ac_exeext
20331if { (ac_try="$ac_link"
20332case "(($ac_try" in
20333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334  *) ac_try_echo=$ac_try;;
20335esac
20336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337  (eval "$ac_link") 2>&5
20338  ac_status=$?
20339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20341  { (case "(($ac_try" in
20342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343  *) ac_try_echo=$ac_try;;
20344esac
20345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346  (eval "$ac_try") 2>&5
20347  ac_status=$?
20348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349  (exit $ac_status); }; }; then
20350  ac_cv_func_mmap_fixed_mapped=yes
20351else
20352  echo "$as_me: program exited with status $ac_status" >&5
20353echo "$as_me: failed program was:" >&5
20354sed 's/^/| /' conftest.$ac_ext >&5
20355
20356( exit $ac_status )
20357ac_cv_func_mmap_fixed_mapped=no
20358fi
20359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20360fi
20361
20362
20363fi
20364{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20365echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20366if test $ac_cv_func_mmap_fixed_mapped = yes; then
20367
20368cat >>confdefs.h <<\_ACEOF
20369#define HAVE_MMAP 1
20370_ACEOF
20371
20372fi
20373rm -f conftest.mmap
20374
20375  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20376echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20377if test "${ac_cv_func_mmap_file+set}" = set; then
20378  echo $ECHO_N "(cached) $ECHO_C" >&6
20379else
20380   ac_ext=c
20381ac_cpp='$CPP $CPPFLAGS'
20382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20384ac_compiler_gnu=$ac_cv_c_compiler_gnu
20385
20386  if test "$cross_compiling" = yes; then
20387  ac_cv_func_mmap_file=no
20388else
20389  cat >conftest.$ac_ext <<_ACEOF
20390
20391    /* confdefs.h.  */
20392_ACEOF
20393cat confdefs.h >>conftest.$ac_ext
20394cat >>conftest.$ac_ext <<_ACEOF
20395/* end confdefs.h.  */
20396
20397#include <sys/types.h>
20398#include <sys/mman.h>
20399#include <fcntl.h>
20400
20401int
20402main ()
20403{
20404
20405  int fd;
20406  fd = creat ("foo",0777);
20407  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20408  unlink ("foo");
20409  return (fd != (int) MAP_FAILED);
20410  ;
20411  return 0;
20412}
20413_ACEOF
20414rm -f conftest$ac_exeext
20415if { (ac_try="$ac_link"
20416case "(($ac_try" in
20417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418  *) ac_try_echo=$ac_try;;
20419esac
20420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421  (eval "$ac_link") 2>&5
20422  ac_status=$?
20423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20425  { (case "(($ac_try" in
20426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427  *) ac_try_echo=$ac_try;;
20428esac
20429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430  (eval "$ac_try") 2>&5
20431  ac_status=$?
20432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433  (exit $ac_status); }; }; then
20434  ac_cv_func_mmap_file=yes
20435else
20436  echo "$as_me: program exited with status $ac_status" >&5
20437echo "$as_me: failed program was:" >&5
20438sed 's/^/| /' conftest.$ac_ext >&5
20439
20440( exit $ac_status )
20441ac_cv_func_mmap_file=no
20442fi
20443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20444fi
20445
20446
20447  ac_ext=c
20448ac_cpp='$CPP $CPPFLAGS'
20449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20451ac_compiler_gnu=$ac_cv_c_compiler_gnu
20452
20453
20454fi
20455{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20456echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20457if test "$ac_cv_func_mmap_file" = yes; then
20458
20459cat >>confdefs.h <<\_ACEOF
20460#define HAVE_MMAP_FILE
20461_ACEOF
20462
20463   MMAP_FILE=yes
20464
20465fi
20466
20467  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20468echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20469if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20470  echo $ECHO_N "(cached) $ECHO_C" >&6
20471else
20472  if test "$llvm_cv_os_type" = "Interix" ; then
20473   ac_cv_need_dev_zero_for_mmap=yes
20474 else
20475   ac_cv_need_dev_zero_for_mmap=no
20476 fi
20477
20478fi
20479{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20480echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20481if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20482
20483cat >>confdefs.h <<\_ACEOF
20484#define NEED_DEV_ZERO_FOR_MMAP 1
20485_ACEOF
20486
20487fi
20488
20489  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20490  then
20491    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20492echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20493  fi
20494  if test "$ac_cv_func_mmap_file" = "no"
20495  then
20496    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20497echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20498  fi
20499fi
20500
20501{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20502echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20503ac_ext=cpp
20504ac_cpp='$CXXCPP $CPPFLAGS'
20505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20508
20509cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h.  */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
20514/* end confdefs.h.  */
20515int main() {
20516        volatile unsigned long val = 1;
20517        __sync_synchronize();
20518        __sync_val_compare_and_swap(&val, 1, 0);
20519        __sync_add_and_fetch(&val, 1);
20520        __sync_sub_and_fetch(&val, 1);
20521        return 0;
20522      }
20523
20524_ACEOF
20525rm -f conftest.$ac_objext conftest$ac_exeext
20526if { (ac_try="$ac_link"
20527case "(($ac_try" in
20528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529  *) ac_try_echo=$ac_try;;
20530esac
20531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532  (eval "$ac_link") 2>conftest.er1
20533  ac_status=$?
20534  grep -v '^ *+' conftest.er1 >conftest.err
20535  rm -f conftest.er1
20536  cat conftest.err >&5
20537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538  (exit $ac_status); } &&
20539	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20540  { (case "(($ac_try" in
20541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542  *) ac_try_echo=$ac_try;;
20543esac
20544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545  (eval "$ac_try") 2>&5
20546  ac_status=$?
20547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548  (exit $ac_status); }; } &&
20549	 { ac_try='test -s conftest$ac_exeext'
20550  { (case "(($ac_try" in
20551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552  *) ac_try_echo=$ac_try;;
20553esac
20554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555  (eval "$ac_try") 2>&5
20556  ac_status=$?
20557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558  (exit $ac_status); }; }; then
20559  ac_ext=c
20560ac_cpp='$CPP $CPPFLAGS'
20561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20563ac_compiler_gnu=$ac_cv_c_compiler_gnu
20564
20565  { echo "$as_me:$LINENO: result: yes" >&5
20566echo "${ECHO_T}yes" >&6; }
20567
20568cat >>confdefs.h <<\_ACEOF
20569#define LLVM_HAS_ATOMICS 1
20570_ACEOF
20571
20572else
20573  echo "$as_me: failed program was:" >&5
20574sed 's/^/| /' conftest.$ac_ext >&5
20575
20576	{ echo "$as_me:$LINENO: result: no" >&5
20577echo "${ECHO_T}no" >&6; }
20578
20579cat >>confdefs.h <<\_ACEOF
20580#define LLVM_HAS_ATOMICS 0
20581_ACEOF
20582
20583  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20584echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20585fi
20586
20587rm -f core conftest.err conftest.$ac_objext \
20588      conftest$ac_exeext conftest.$ac_ext
20589
20590
20591if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20592  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20593echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20594if test "${llvm_cv_linux_mixed+set}" = set; then
20595  echo $ECHO_N "(cached) $ECHO_C" >&6
20596else
20597   ac_ext=c
20598ac_cpp='$CPP $CPPFLAGS'
20599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602
20603  cat >conftest.$ac_ext <<_ACEOF
20604/* confdefs.h.  */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
20608/* end confdefs.h.  */
20609#ifndef __x86_64__
20610       error: Not x86-64 even if uname says so!
20611      #endif
20612
20613int
20614main ()
20615{
20616
20617  ;
20618  return 0;
20619}
20620_ACEOF
20621rm -f conftest.$ac_objext
20622if { (ac_try="$ac_compile"
20623case "(($ac_try" in
20624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625  *) ac_try_echo=$ac_try;;
20626esac
20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628  (eval "$ac_compile") 2>conftest.er1
20629  ac_status=$?
20630  grep -v '^ *+' conftest.er1 >conftest.err
20631  rm -f conftest.er1
20632  cat conftest.err >&5
20633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634  (exit $ac_status); } &&
20635	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20636  { (case "(($ac_try" in
20637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638  *) ac_try_echo=$ac_try;;
20639esac
20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641  (eval "$ac_try") 2>&5
20642  ac_status=$?
20643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644  (exit $ac_status); }; } &&
20645	 { ac_try='test -s conftest.$ac_objext'
20646  { (case "(($ac_try" in
20647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648  *) ac_try_echo=$ac_try;;
20649esac
20650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651  (eval "$ac_try") 2>&5
20652  ac_status=$?
20653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654  (exit $ac_status); }; }; then
20655  llvm_cv_linux_mixed=no
20656else
20657  echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660	llvm_cv_linux_mixed=yes
20661fi
20662
20663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664  ac_ext=c
20665ac_cpp='$CPP $CPPFLAGS'
20666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20668ac_compiler_gnu=$ac_cv_c_compiler_gnu
20669
20670
20671fi
20672{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20673echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20674
20675  if test "$llvm_cv_linux_mixed" = "yes"; then
20676    llvm_cv_target_arch="x86"
20677    ARCH="x86"
20678  fi
20679fi
20680
20681
20682for ac_func in __dso_handle
20683do
20684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20688  echo $ECHO_N "(cached) $ECHO_C" >&6
20689else
20690  cat >conftest.$ac_ext <<_ACEOF
20691/* confdefs.h.  */
20692_ACEOF
20693cat confdefs.h >>conftest.$ac_ext
20694cat >>conftest.$ac_ext <<_ACEOF
20695/* end confdefs.h.  */
20696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20698#define $ac_func innocuous_$ac_func
20699
20700/* System header to define __stub macros and hopefully few prototypes,
20701    which can conflict with char $ac_func (); below.
20702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20703    <limits.h> exists even on freestanding compilers.  */
20704
20705#ifdef __STDC__
20706# include <limits.h>
20707#else
20708# include <assert.h>
20709#endif
20710
20711#undef $ac_func
20712
20713/* Override any GCC internal prototype to avoid an error.
20714   Use char because int might match the return type of a GCC
20715   builtin and then its argument prototype would still apply.  */
20716#ifdef __cplusplus
20717extern "C"
20718#endif
20719char $ac_func ();
20720/* The GNU C library defines this for functions which it implements
20721    to always fail with ENOSYS.  Some functions are actually named
20722    something starting with __ and the normal name is an alias.  */
20723#if defined __stub_$ac_func || defined __stub___$ac_func
20724choke me
20725#endif
20726
20727int
20728main ()
20729{
20730return $ac_func ();
20731  ;
20732  return 0;
20733}
20734_ACEOF
20735rm -f conftest.$ac_objext conftest$ac_exeext
20736if { (ac_try="$ac_link"
20737case "(($ac_try" in
20738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739  *) ac_try_echo=$ac_try;;
20740esac
20741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742  (eval "$ac_link") 2>conftest.er1
20743  ac_status=$?
20744  grep -v '^ *+' conftest.er1 >conftest.err
20745  rm -f conftest.er1
20746  cat conftest.err >&5
20747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748  (exit $ac_status); } &&
20749	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20750  { (case "(($ac_try" in
20751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752  *) ac_try_echo=$ac_try;;
20753esac
20754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755  (eval "$ac_try") 2>&5
20756  ac_status=$?
20757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758  (exit $ac_status); }; } &&
20759	 { ac_try='test -s conftest$ac_exeext'
20760  { (case "(($ac_try" in
20761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762  *) ac_try_echo=$ac_try;;
20763esac
20764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765  (eval "$ac_try") 2>&5
20766  ac_status=$?
20767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768  (exit $ac_status); }; }; then
20769  eval "$as_ac_var=yes"
20770else
20771  echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
20774	eval "$as_ac_var=no"
20775fi
20776
20777rm -f core conftest.err conftest.$ac_objext \
20778      conftest$ac_exeext conftest.$ac_ext
20779fi
20780ac_res=`eval echo '${'$as_ac_var'}'`
20781	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20782echo "${ECHO_T}$ac_res" >&6; }
20783if test `eval echo '${'$as_ac_var'}'` = yes; then
20784  cat >>confdefs.h <<_ACEOF
20785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20786_ACEOF
20787
20788fi
20789done
20790
20791
20792SHLIBEXT=$libltdl_cv_shlibext
20793
20794
20795SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20796
20797
20798# Translate the various configuration directories and other basic
20799# information into substitutions that will end up in Makefile.config.in
20800# that these configured values can be used by the makefiles
20801if test "${prefix}" = "NONE" ; then
20802  prefix="/usr/local"
20803fi
20804eval LLVM_PREFIX="${prefix}";
20805eval LLVM_BINDIR="${prefix}/bin";
20806eval LLVM_LIBDIR="${prefix}/lib";
20807eval LLVM_DATADIR="${prefix}/share/llvm";
20808eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20809eval LLVM_ETCDIR="${prefix}/etc/llvm";
20810eval LLVM_INCLUDEDIR="${prefix}/include";
20811eval LLVM_INFODIR="${prefix}/info";
20812eval LLVM_MANDIR="${prefix}/man";
20813LLVM_CONFIGTIME=`date`
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825# Place the various directores into the config.h file as #defines so that we
20826# can know about the installation paths within LLVM.
20827
20828cat >>confdefs.h <<_ACEOF
20829#define LLVM_PREFIX "$LLVM_PREFIX"
20830_ACEOF
20831
20832
20833cat >>confdefs.h <<_ACEOF
20834#define LLVM_BINDIR "$LLVM_BINDIR"
20835_ACEOF
20836
20837
20838cat >>confdefs.h <<_ACEOF
20839#define LLVM_LIBDIR "$LLVM_LIBDIR"
20840_ACEOF
20841
20842
20843cat >>confdefs.h <<_ACEOF
20844#define LLVM_DATADIR "$LLVM_DATADIR"
20845_ACEOF
20846
20847
20848cat >>confdefs.h <<_ACEOF
20849#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20850_ACEOF
20851
20852
20853cat >>confdefs.h <<_ACEOF
20854#define LLVM_ETCDIR "$LLVM_ETCDIR"
20855_ACEOF
20856
20857
20858cat >>confdefs.h <<_ACEOF
20859#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20860_ACEOF
20861
20862
20863cat >>confdefs.h <<_ACEOF
20864#define LLVM_INFODIR "$LLVM_INFODIR"
20865_ACEOF
20866
20867
20868cat >>confdefs.h <<_ACEOF
20869#define LLVM_MANDIR "$LLVM_MANDIR"
20870_ACEOF
20871
20872
20873cat >>confdefs.h <<_ACEOF
20874#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20875_ACEOF
20876
20877
20878cat >>confdefs.h <<_ACEOF
20879#define LLVM_HOSTTRIPLE "$host"
20880_ACEOF
20881
20882
20883# Determine which bindings to build.
20884if test "$BINDINGS_TO_BUILD" = auto ; then
20885  BINDINGS_TO_BUILD=""
20886  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20887    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20888  fi
20889fi
20890BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20891
20892
20893# This isn't really configurey, but it avoids having to repeat the list in
20894# other files.
20895ALL_BINDINGS=ocaml
20896
20897
20898# Do any work necessary to ensure that bindings have what they need.
20899binding_prereqs_failed=0
20900for a_binding in $BINDINGS_TO_BUILD ; do
20901  case "$a_binding" in
20902  ocaml)
20903    if test "x$OCAMLC" = x ; then
20904      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20905echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20906      binding_prereqs_failed=1
20907    fi
20908    if test "x$OCAMLDEP" = x ; then
20909      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20910echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20911      binding_prereqs_failed=1
20912    fi
20913    if test "x$OCAMLOPT" = x ; then
20914      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20915echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20916          fi
20917    if test "x$with_ocaml_libdir" != xauto ; then
20918      OCAML_LIBDIR=$with_ocaml_libdir
20919
20920    else
20921      ocaml_stdlib="`"$OCAMLC" -where`"
20922      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20923      then
20924        # ocaml stdlib is beneath our prefix; use stdlib
20925        OCAML_LIBDIR=$ocaml_stdlib
20926
20927      else
20928        # ocaml stdlib is outside our prefix; use libdir/ocaml
20929        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20930
20931      fi
20932    fi
20933    ;;
20934  esac
20935done
20936if test "$binding_prereqs_failed" = 1 ; then
20937  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20938echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20939   { (exit 1); exit 1; }; }
20940fi
20941
20942{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20943echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20944if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20945  echo $ECHO_N "(cached) $ECHO_C" >&6
20946else
20947   ac_ext=cpp
20948ac_cpp='$CXXCPP $CPPFLAGS'
20949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952
20953  oldcxxflags="$CXXFLAGS"
20954  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20955  cat >conftest.$ac_ext <<_ACEOF
20956/* confdefs.h.  */
20957_ACEOF
20958cat confdefs.h >>conftest.$ac_ext
20959cat >>conftest.$ac_ext <<_ACEOF
20960/* end confdefs.h.  */
20961
20962int
20963main ()
20964{
20965
20966  ;
20967  return 0;
20968}
20969_ACEOF
20970rm -f conftest.$ac_objext
20971if { (ac_try="$ac_compile"
20972case "(($ac_try" in
20973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974  *) ac_try_echo=$ac_try;;
20975esac
20976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977  (eval "$ac_compile") 2>conftest.er1
20978  ac_status=$?
20979  grep -v '^ *+' conftest.er1 >conftest.err
20980  rm -f conftest.er1
20981  cat conftest.err >&5
20982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983  (exit $ac_status); } &&
20984	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20985  { (case "(($ac_try" in
20986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987  *) ac_try_echo=$ac_try;;
20988esac
20989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990  (eval "$ac_try") 2>&5
20991  ac_status=$?
20992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993  (exit $ac_status); }; } &&
20994	 { ac_try='test -s conftest.$ac_objext'
20995  { (case "(($ac_try" in
20996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997  *) ac_try_echo=$ac_try;;
20998esac
20999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000  (eval "$ac_try") 2>&5
21001  ac_status=$?
21002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003  (exit $ac_status); }; }; then
21004  llvm_cv_cxx_visibility_inlines_hidden=yes
21005else
21006  echo "$as_me: failed program was:" >&5
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
21009	llvm_cv_cxx_visibility_inlines_hidden=no
21010fi
21011
21012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21013  CXXFLAGS="$oldcxxflags"
21014  ac_ext=c
21015ac_cpp='$CPP $CPPFLAGS'
21016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018ac_compiler_gnu=$ac_cv_c_compiler_gnu
21019
21020
21021fi
21022{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21023echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21024if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21025  ENABLE_VISIBILITY_INLINES_HIDDEN=1
21026
21027else
21028  ENABLE_VISIBILITY_INLINES_HIDDEN=0
21029
21030fi
21031
21032
21033if test "$llvm_cv_link_use_r" = "yes" ; then
21034  RPATH="-Wl,-R"
21035else
21036  RPATH="-Wl,-rpath"
21037fi
21038
21039
21040if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21041  RDYNAMIC="-Wl,-export-dynamic"
21042else
21043  RDYNAMIC=""
21044fi
21045
21046
21047
21048ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21049
21050
21051
21052
21053
21054
21055ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21056
21057ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21058
21059ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21060
21061ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21062
21063ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21064
21065
21066ac_config_files="$ac_config_files Makefile.config"
21067
21068ac_config_files="$ac_config_files llvm.spec"
21069
21070
21071ac_config_files="$ac_config_files docs/doxygen.cfg"
21072
21073if test -f ${srcdir}/tools/clang/README.txt; then
21074  ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21075
21076fi
21077
21078ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21079
21080ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21081
21082ac_config_commands="$ac_config_commands setup"
21083
21084ac_config_commands="$ac_config_commands Makefile"
21085
21086
21087ac_config_commands="$ac_config_commands Makefile.common"
21088
21089
21090ac_config_commands="$ac_config_commands examples/Makefile"
21091
21092
21093ac_config_commands="$ac_config_commands lib/Makefile"
21094
21095
21096ac_config_commands="$ac_config_commands runtime/Makefile"
21097
21098
21099ac_config_commands="$ac_config_commands test/Makefile"
21100
21101
21102ac_config_commands="$ac_config_commands test/Makefile.tests"
21103
21104
21105ac_config_commands="$ac_config_commands unittests/Makefile"
21106
21107
21108ac_config_commands="$ac_config_commands tools/Makefile"
21109
21110
21111ac_config_commands="$ac_config_commands utils/Makefile"
21112
21113
21114ac_config_commands="$ac_config_commands projects/Makefile"
21115
21116
21117ac_config_commands="$ac_config_commands bindings/Makefile"
21118
21119
21120ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21121
21122
21123
21124cat >confcache <<\_ACEOF
21125# This file is a shell script that caches the results of configure
21126# tests run on this system so they can be shared between configure
21127# scripts and configure runs, see configure's option --config-cache.
21128# It is not useful on other systems.  If it contains results you don't
21129# want to keep, you may remove or edit it.
21130#
21131# config.status only pays attention to the cache file if you give it
21132# the --recheck option to rerun configure.
21133#
21134# `ac_cv_env_foo' variables (set or unset) will be overridden when
21135# loading this file, other *unset* `ac_cv_foo' will be assigned the
21136# following values.
21137
21138_ACEOF
21139
21140# The following way of writing the cache mishandles newlines in values,
21141# but we know of no workaround that is simple, portable, and efficient.
21142# So, we kill variables containing newlines.
21143# Ultrix sh set writes to stderr and can't be redirected directly,
21144# and sets the high bit in the cache file unless we assign to the vars.
21145(
21146  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21147    eval ac_val=\$$ac_var
21148    case $ac_val in #(
21149    *${as_nl}*)
21150      case $ac_var in #(
21151      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21152echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21153      esac
21154      case $ac_var in #(
21155      _ | IFS | as_nl) ;; #(
21156      *) $as_unset $ac_var ;;
21157      esac ;;
21158    esac
21159  done
21160
21161  (set) 2>&1 |
21162    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21163    *${as_nl}ac_space=\ *)
21164      # `set' does not quote correctly, so add quotes (double-quote
21165      # substitution turns \\\\ into \\, and sed turns \\ into \).
21166      sed -n \
21167	"s/'/'\\\\''/g;
21168	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21169      ;; #(
21170    *)
21171      # `set' quotes correctly as required by POSIX, so do not add quotes.
21172      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21173      ;;
21174    esac |
21175    sort
21176) |
21177  sed '
21178     /^ac_cv_env_/b end
21179     t clear
21180     :clear
21181     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21182     t end
21183     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21184     :end' >>confcache
21185if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21186  if test -w "$cache_file"; then
21187    test "x$cache_file" != "x/dev/null" &&
21188      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21189echo "$as_me: updating cache $cache_file" >&6;}
21190    cat confcache >$cache_file
21191  else
21192    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21193echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21194  fi
21195fi
21196rm -f confcache
21197
21198test "x$prefix" = xNONE && prefix=$ac_default_prefix
21199# Let make expand exec_prefix.
21200test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21201
21202DEFS=-DHAVE_CONFIG_H
21203
21204ac_libobjs=
21205ac_ltlibobjs=
21206for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21207  # 1. Remove the extension, and $U if already installed.
21208  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21209  ac_i=`echo "$ac_i" | sed "$ac_script"`
21210  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21211  #    will be set to the directory where LIBOBJS objects are built.
21212  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21213  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21214done
21215LIBOBJS=$ac_libobjs
21216
21217LTLIBOBJS=$ac_ltlibobjs
21218
21219
21220if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21221  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21222Usually this means the macro was only invoked conditionally." >&5
21223echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21224Usually this means the macro was only invoked conditionally." >&2;}
21225   { (exit 1); exit 1; }; }
21226fi
21227if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21228  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21229Usually this means the macro was only invoked conditionally." >&5
21230echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21231Usually this means the macro was only invoked conditionally." >&2;}
21232   { (exit 1); exit 1; }; }
21233fi
21234
21235: ${CONFIG_STATUS=./config.status}
21236ac_clean_files_save=$ac_clean_files
21237ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21238{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21239echo "$as_me: creating $CONFIG_STATUS" >&6;}
21240cat >$CONFIG_STATUS <<_ACEOF
21241#! $SHELL
21242# Generated by $as_me.
21243# Run this file to recreate the current configuration.
21244# Compiler output produced by configure, useful for debugging
21245# configure, is in config.log if it exists.
21246
21247debug=false
21248ac_cs_recheck=false
21249ac_cs_silent=false
21250SHELL=\${CONFIG_SHELL-$SHELL}
21251_ACEOF
21252
21253cat >>$CONFIG_STATUS <<\_ACEOF
21254## --------------------- ##
21255## M4sh Initialization.  ##
21256## --------------------- ##
21257
21258# Be Bourne compatible
21259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21260  emulate sh
21261  NULLCMD=:
21262  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21263  # is contrary to our usage.  Disable this feature.
21264  alias -g '${1+"$@"}'='"$@"'
21265  setopt NO_GLOB_SUBST
21266else
21267  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21268fi
21269BIN_SH=xpg4; export BIN_SH # for Tru64
21270DUALCASE=1; export DUALCASE # for MKS sh
21271
21272
21273# PATH needs CR
21274# Avoid depending upon Character Ranges.
21275as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21276as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21277as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21278as_cr_digits='0123456789'
21279as_cr_alnum=$as_cr_Letters$as_cr_digits
21280
21281# The user is always right.
21282if test "${PATH_SEPARATOR+set}" != set; then
21283  echo "#! /bin/sh" >conf$$.sh
21284  echo  "exit 0"   >>conf$$.sh
21285  chmod +x conf$$.sh
21286  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21287    PATH_SEPARATOR=';'
21288  else
21289    PATH_SEPARATOR=:
21290  fi
21291  rm -f conf$$.sh
21292fi
21293
21294# Support unset when possible.
21295if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21296  as_unset=unset
21297else
21298  as_unset=false
21299fi
21300
21301
21302# IFS
21303# We need space, tab and new line, in precisely that order.  Quoting is
21304# there to prevent editors from complaining about space-tab.
21305# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21306# splitting by setting IFS to empty value.)
21307as_nl='
21308'
21309IFS=" ""	$as_nl"
21310
21311# Find who we are.  Look in the path if we contain no directory separator.
21312case $0 in
21313  *[\\/]* ) as_myself=$0 ;;
21314  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21315for as_dir in $PATH
21316do
21317  IFS=$as_save_IFS
21318  test -z "$as_dir" && as_dir=.
21319  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21320done
21321IFS=$as_save_IFS
21322
21323     ;;
21324esac
21325# We did not find ourselves, most probably we were run as `sh COMMAND'
21326# in which case we are not to be found in the path.
21327if test "x$as_myself" = x; then
21328  as_myself=$0
21329fi
21330if test ! -f "$as_myself"; then
21331  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21332  { (exit 1); exit 1; }
21333fi
21334
21335# Work around bugs in pre-3.0 UWIN ksh.
21336for as_var in ENV MAIL MAILPATH
21337do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21338done
21339PS1='$ '
21340PS2='> '
21341PS4='+ '
21342
21343# NLS nuisances.
21344for as_var in \
21345  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21346  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21347  LC_TELEPHONE LC_TIME
21348do
21349  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21350    eval $as_var=C; export $as_var
21351  else
21352    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21353  fi
21354done
21355
21356# Required to use basename.
21357if expr a : '\(a\)' >/dev/null 2>&1 &&
21358   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21359  as_expr=expr
21360else
21361  as_expr=false
21362fi
21363
21364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21365  as_basename=basename
21366else
21367  as_basename=false
21368fi
21369
21370
21371# Name of the executable.
21372as_me=`$as_basename -- "$0" ||
21373$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21374	 X"$0" : 'X\(//\)$' \| \
21375	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21376echo X/"$0" |
21377    sed '/^.*\/\([^/][^/]*\)\/*$/{
21378	    s//\1/
21379	    q
21380	  }
21381	  /^X\/\(\/\/\)$/{
21382	    s//\1/
21383	    q
21384	  }
21385	  /^X\/\(\/\).*/{
21386	    s//\1/
21387	    q
21388	  }
21389	  s/.*/./; q'`
21390
21391# CDPATH.
21392$as_unset CDPATH
21393
21394
21395
21396  as_lineno_1=$LINENO
21397  as_lineno_2=$LINENO
21398  test "x$as_lineno_1" != "x$as_lineno_2" &&
21399  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21400
21401  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21402  # uniformly replaced by the line number.  The first 'sed' inserts a
21403  # line-number line after each line using $LINENO; the second 'sed'
21404  # does the real work.  The second script uses 'N' to pair each
21405  # line-number line with the line containing $LINENO, and appends
21406  # trailing '-' during substitution so that $LINENO is not a special
21407  # case at line end.
21408  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21409  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21410  # E. McMahon (1931-1989) for sed's syntax.  :-)
21411  sed -n '
21412    p
21413    /[$]LINENO/=
21414  ' <$as_myself |
21415    sed '
21416      s/[$]LINENO.*/&-/
21417      t lineno
21418      b
21419      :lineno
21420      N
21421      :loop
21422      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21423      t loop
21424      s/-\n.*//
21425    ' >$as_me.lineno &&
21426  chmod +x "$as_me.lineno" ||
21427    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21428   { (exit 1); exit 1; }; }
21429
21430  # Don't try to exec as it changes $[0], causing all sort of problems
21431  # (the dirname of $[0] is not the place where we might find the
21432  # original and so on.  Autoconf is especially sensitive to this).
21433  . "./$as_me.lineno"
21434  # Exit status is that of the last command.
21435  exit
21436}
21437
21438
21439if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21440  as_dirname=dirname
21441else
21442  as_dirname=false
21443fi
21444
21445ECHO_C= ECHO_N= ECHO_T=
21446case `echo -n x` in
21447-n*)
21448  case `echo 'x\c'` in
21449  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21450  *)   ECHO_C='\c';;
21451  esac;;
21452*)
21453  ECHO_N='-n';;
21454esac
21455
21456if expr a : '\(a\)' >/dev/null 2>&1 &&
21457   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21458  as_expr=expr
21459else
21460  as_expr=false
21461fi
21462
21463rm -f conf$$ conf$$.exe conf$$.file
21464if test -d conf$$.dir; then
21465  rm -f conf$$.dir/conf$$.file
21466else
21467  rm -f conf$$.dir
21468  mkdir conf$$.dir
21469fi
21470echo >conf$$.file
21471if ln -s conf$$.file conf$$ 2>/dev/null; then
21472  as_ln_s='ln -s'
21473  # ... but there are two gotchas:
21474  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21475  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21476  # In both cases, we have to default to `cp -p'.
21477  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21478    as_ln_s='cp -p'
21479elif ln conf$$.file conf$$ 2>/dev/null; then
21480  as_ln_s=ln
21481else
21482  as_ln_s='cp -p'
21483fi
21484rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21485rmdir conf$$.dir 2>/dev/null
21486
21487if mkdir -p . 2>/dev/null; then
21488  as_mkdir_p=:
21489else
21490  test -d ./-p && rmdir ./-p
21491  as_mkdir_p=false
21492fi
21493
21494# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21495# systems may use methods other than mode bits to determine executability.
21496cat >conf$$.file <<_ASEOF
21497#! /bin/sh
21498exit 0
21499_ASEOF
21500chmod +x conf$$.file
21501if test -x conf$$.file >/dev/null 2>&1; then
21502  as_executable_p="test -x"
21503else
21504  as_executable_p=:
21505fi
21506rm -f conf$$.file
21507
21508# Sed expression to map a string onto a valid CPP name.
21509as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21510
21511# Sed expression to map a string onto a valid variable name.
21512as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21513
21514
21515exec 6>&1
21516
21517# Save the log message, to keep $[0] and so on meaningful, and to
21518# report actual input values of CONFIG_FILES etc. instead of their
21519# values after options handling.
21520ac_log="
21521This file was extended by llvm $as_me 3.1svn, which was
21522generated by GNU Autoconf 2.60.  Invocation command line was
21523
21524  CONFIG_FILES    = $CONFIG_FILES
21525  CONFIG_HEADERS  = $CONFIG_HEADERS
21526  CONFIG_LINKS    = $CONFIG_LINKS
21527  CONFIG_COMMANDS = $CONFIG_COMMANDS
21528  $ $0 $@
21529
21530on `(hostname || uname -n) 2>/dev/null | sed 1q`
21531"
21532
21533_ACEOF
21534
21535cat >>$CONFIG_STATUS <<_ACEOF
21536# Files that config.status was made for.
21537config_files="$ac_config_files"
21538config_headers="$ac_config_headers"
21539config_commands="$ac_config_commands"
21540
21541_ACEOF
21542
21543cat >>$CONFIG_STATUS <<\_ACEOF
21544ac_cs_usage="\
21545\`$as_me' instantiates files from templates according to the
21546current configuration.
21547
21548Usage: $0 [OPTIONS] [FILE]...
21549
21550  -h, --help       print this help, then exit
21551  -V, --version    print version number, then exit
21552  -q, --quiet      do not print progress messages
21553  -d, --debug      don't remove temporary files
21554      --recheck    update $as_me by reconfiguring in the same conditions
21555  --file=FILE[:TEMPLATE]
21556		   instantiate the configuration file FILE
21557  --header=FILE[:TEMPLATE]
21558		   instantiate the configuration header FILE
21559
21560Configuration files:
21561$config_files
21562
21563Configuration headers:
21564$config_headers
21565
21566Configuration commands:
21567$config_commands
21568
21569Report bugs to <bug-autoconf@gnu.org>."
21570
21571_ACEOF
21572cat >>$CONFIG_STATUS <<_ACEOF
21573ac_cs_version="\\
21574llvm config.status 3.1svn
21575configured by $0, generated by GNU Autoconf 2.60,
21576  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21577
21578Copyright (C) 2006 Free Software Foundation, Inc.
21579This config.status script is free software; the Free Software Foundation
21580gives unlimited permission to copy, distribute and modify it."
21581
21582ac_pwd='$ac_pwd'
21583srcdir='$srcdir'
21584INSTALL='$INSTALL'
21585_ACEOF
21586
21587cat >>$CONFIG_STATUS <<\_ACEOF
21588# If no file are specified by the user, then we need to provide default
21589# value.  By we need to know if files were specified by the user.
21590ac_need_defaults=:
21591while test $# != 0
21592do
21593  case $1 in
21594  --*=*)
21595    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21596    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21597    ac_shift=:
21598    ;;
21599  *)
21600    ac_option=$1
21601    ac_optarg=$2
21602    ac_shift=shift
21603    ;;
21604  esac
21605
21606  case $ac_option in
21607  # Handling of the options.
21608  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21609    ac_cs_recheck=: ;;
21610  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21611    echo "$ac_cs_version"; exit ;;
21612  --debug | --debu | --deb | --de | --d | -d )
21613    debug=: ;;
21614  --file | --fil | --fi | --f )
21615    $ac_shift
21616    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21617    ac_need_defaults=false;;
21618  --header | --heade | --head | --hea )
21619    $ac_shift
21620    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21621    ac_need_defaults=false;;
21622  --he | --h)
21623    # Conflict between --help and --header
21624    { echo "$as_me: error: ambiguous option: $1
21625Try \`$0 --help' for more information." >&2
21626   { (exit 1); exit 1; }; };;
21627  --help | --hel | -h )
21628    echo "$ac_cs_usage"; exit ;;
21629  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21630  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21631    ac_cs_silent=: ;;
21632
21633  # This is an error.
21634  -*) { echo "$as_me: error: unrecognized option: $1
21635Try \`$0 --help' for more information." >&2
21636   { (exit 1); exit 1; }; } ;;
21637
21638  *) ac_config_targets="$ac_config_targets $1"
21639     ac_need_defaults=false ;;
21640
21641  esac
21642  shift
21643done
21644
21645ac_configure_extra_args=
21646
21647if $ac_cs_silent; then
21648  exec 6>/dev/null
21649  ac_configure_extra_args="$ac_configure_extra_args --silent"
21650fi
21651
21652_ACEOF
21653cat >>$CONFIG_STATUS <<_ACEOF
21654if \$ac_cs_recheck; then
21655  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21656  CONFIG_SHELL=$SHELL
21657  export CONFIG_SHELL
21658  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21659fi
21660
21661_ACEOF
21662cat >>$CONFIG_STATUS <<\_ACEOF
21663exec 5>>config.log
21664{
21665  echo
21666  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21667## Running $as_me. ##
21668_ASBOX
21669  echo "$ac_log"
21670} >&5
21671
21672_ACEOF
21673cat >>$CONFIG_STATUS <<_ACEOF
21674#
21675# INIT-COMMANDS
21676#
21677llvm_src="${srcdir}"
21678
21679_ACEOF
21680
21681cat >>$CONFIG_STATUS <<\_ACEOF
21682
21683# Handling of arguments.
21684for ac_config_target in $ac_config_targets
21685do
21686  case $ac_config_target in
21687    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21688    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21689    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21690    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21691    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21692    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21693    "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21694    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21695    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21696    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21697    "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21698    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21699    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21700    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21701    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21702    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21703    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21704    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21705    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21706    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21707    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21708    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21709    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21710    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21711    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21712    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21713
21714  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21715echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21716   { (exit 1); exit 1; }; };;
21717  esac
21718done
21719
21720
21721# If the user did not use the arguments to specify the items to instantiate,
21722# then the envvar interface is used.  Set only those that are not.
21723# We use the long form for the default assignment because of an extremely
21724# bizarre bug on SunOS 4.1.3.
21725if $ac_need_defaults; then
21726  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21727  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21728  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21729fi
21730
21731# Have a temporary directory for convenience.  Make it in the build tree
21732# simply because there is no reason against having it here, and in addition,
21733# creating and moving files from /tmp can sometimes cause problems.
21734# Hook for its removal unless debugging.
21735# Note that there is a small window in which the directory will not be cleaned:
21736# after its creation but before its name has been assigned to `$tmp'.
21737$debug ||
21738{
21739  tmp=
21740  trap 'exit_status=$?
21741  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21742' 0
21743  trap '{ (exit 1); exit 1; }' 1 2 13 15
21744}
21745# Create a (secure) tmp directory for tmp files.
21746
21747{
21748  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21749  test -n "$tmp" && test -d "$tmp"
21750}  ||
21751{
21752  tmp=./conf$$-$RANDOM
21753  (umask 077 && mkdir "$tmp")
21754} ||
21755{
21756   echo "$me: cannot create a temporary directory in ." >&2
21757   { (exit 1); exit 1; }
21758}
21759
21760#
21761# Set up the sed scripts for CONFIG_FILES section.
21762#
21763
21764# No need to generate the scripts if there are no CONFIG_FILES.
21765# This happens for instance when ./config.status config.h
21766if test -n "$CONFIG_FILES"; then
21767
21768_ACEOF
21769
21770
21771
21772ac_delim='%!_!# '
21773for ac_last_try in false false false false false :; do
21774  cat >conf$$subs.sed <<_ACEOF
21775SHELL!$SHELL$ac_delim
21776PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21777PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21778PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21779PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21780PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21781PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21782exec_prefix!$exec_prefix$ac_delim
21783prefix!$prefix$ac_delim
21784program_transform_name!$program_transform_name$ac_delim
21785bindir!$bindir$ac_delim
21786sbindir!$sbindir$ac_delim
21787libexecdir!$libexecdir$ac_delim
21788datarootdir!$datarootdir$ac_delim
21789datadir!$datadir$ac_delim
21790sysconfdir!$sysconfdir$ac_delim
21791sharedstatedir!$sharedstatedir$ac_delim
21792localstatedir!$localstatedir$ac_delim
21793includedir!$includedir$ac_delim
21794oldincludedir!$oldincludedir$ac_delim
21795docdir!$docdir$ac_delim
21796infodir!$infodir$ac_delim
21797htmldir!$htmldir$ac_delim
21798dvidir!$dvidir$ac_delim
21799pdfdir!$pdfdir$ac_delim
21800psdir!$psdir$ac_delim
21801libdir!$libdir$ac_delim
21802localedir!$localedir$ac_delim
21803mandir!$mandir$ac_delim
21804DEFS!$DEFS$ac_delim
21805ECHO_C!$ECHO_C$ac_delim
21806ECHO_N!$ECHO_N$ac_delim
21807ECHO_T!$ECHO_T$ac_delim
21808LIBS!$LIBS$ac_delim
21809build_alias!$build_alias$ac_delim
21810host_alias!$host_alias$ac_delim
21811target_alias!$target_alias$ac_delim
21812LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21813CC!$CC$ac_delim
21814CFLAGS!$CFLAGS$ac_delim
21815LDFLAGS!$LDFLAGS$ac_delim
21816CPPFLAGS!$CPPFLAGS$ac_delim
21817ac_ct_CC!$ac_ct_CC$ac_delim
21818EXEEXT!$EXEEXT$ac_delim
21819OBJEXT!$OBJEXT$ac_delim
21820CXX!$CXX$ac_delim
21821CXXFLAGS!$CXXFLAGS$ac_delim
21822ac_ct_CXX!$ac_ct_CXX$ac_delim
21823CPP!$CPP$ac_delim
21824subdirs!$subdirs$ac_delim
21825ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21826LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21827build!$build$ac_delim
21828build_cpu!$build_cpu$ac_delim
21829build_vendor!$build_vendor$ac_delim
21830build_os!$build_os$ac_delim
21831host!$host$ac_delim
21832host_cpu!$host_cpu$ac_delim
21833host_vendor!$host_vendor$ac_delim
21834host_os!$host_os$ac_delim
21835target!$target$ac_delim
21836target_cpu!$target_cpu$ac_delim
21837target_vendor!$target_vendor$ac_delim
21838target_os!$target_os$ac_delim
21839OS!$OS$ac_delim
21840HOST_OS!$HOST_OS$ac_delim
21841TARGET_OS!$TARGET_OS$ac_delim
21842LINKALL!$LINKALL$ac_delim
21843NOLINKALL!$NOLINKALL$ac_delim
21844LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21845LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21846ARCH!$ARCH$ac_delim
21847ENDIAN!$ENDIAN$ac_delim
21848GREP!$GREP$ac_delim
21849EGREP!$EGREP$ac_delim
21850LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21851BUILD_CC!$BUILD_CC$ac_delim
21852BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21853BUILD_CXX!$BUILD_CXX$ac_delim
21854CVSBUILD!$CVSBUILD$ac_delim
21855ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21856ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21857DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21858ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21859EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21860DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21861DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21862JIT!$JIT$ac_delim
21863TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21864ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21865ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21866ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21867ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21868ENABLE_PIC!$ENABLE_PIC$ac_delim
21869ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21870ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21871ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21872_ACEOF
21873
21874  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21875    break
21876  elif $ac_last_try; then
21877    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21878echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21879   { (exit 1); exit 1; }; }
21880  else
21881    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21882  fi
21883done
21884
21885ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21886if test -n "$ac_eof"; then
21887  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21888  ac_eof=`expr $ac_eof + 1`
21889fi
21890
21891cat >>$CONFIG_STATUS <<_ACEOF
21892cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21894_ACEOF
21895sed '
21896s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21897s/^/s,@/; s/!/@,|#_!!_#|/
21898:n
21899t n
21900s/'"$ac_delim"'$/,g/; t
21901s/$/\\/; p
21902N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21903' >>$CONFIG_STATUS <conf$$subs.sed
21904rm -f conf$$subs.sed
21905cat >>$CONFIG_STATUS <<_ACEOF
21906CEOF$ac_eof
21907_ACEOF
21908
21909
21910ac_delim='%!_!# '
21911for ac_last_try in false false false false false :; do
21912  cat >conf$$subs.sed <<_ACEOF
21913TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21914LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21915LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21916LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21917LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21918ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21919OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21920EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21921EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21922CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21923BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21924NM!$NM$ac_delim
21925ifGNUmake!$ifGNUmake$ac_delim
21926LN_S!$LN_S$ac_delim
21927CMP!$CMP$ac_delim
21928CP!$CP$ac_delim
21929DATE!$DATE$ac_delim
21930FIND!$FIND$ac_delim
21931MKDIR!$MKDIR$ac_delim
21932MV!$MV$ac_delim
21933RANLIB!$RANLIB$ac_delim
21934AR!$AR$ac_delim
21935RM!$RM$ac_delim
21936SED!$SED$ac_delim
21937TAR!$TAR$ac_delim
21938BINPWD!$BINPWD$ac_delim
21939GRAPHVIZ!$GRAPHVIZ$ac_delim
21940DOT!$DOT$ac_delim
21941FDP!$FDP$ac_delim
21942NEATO!$NEATO$ac_delim
21943TWOPI!$TWOPI$ac_delim
21944CIRCO!$CIRCO$ac_delim
21945GV!$GV$ac_delim
21946DOTTY!$DOTTY$ac_delim
21947XDOT_PY!$XDOT_PY$ac_delim
21948PERL!$PERL$ac_delim
21949HAVE_PERL!$HAVE_PERL$ac_delim
21950INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21951INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21952INSTALL_DATA!$INSTALL_DATA$ac_delim
21953BZIP2!$BZIP2$ac_delim
21954CAT!$CAT$ac_delim
21955DOXYGEN!$DOXYGEN$ac_delim
21956GROFF!$GROFF$ac_delim
21957GZIPBIN!$GZIPBIN$ac_delim
21958POD2HTML!$POD2HTML$ac_delim
21959POD2MAN!$POD2MAN$ac_delim
21960PDFROFF!$PDFROFF$ac_delim
21961RUNTEST!$RUNTEST$ac_delim
21962TCLSH!$TCLSH$ac_delim
21963ZIP!$ZIP$ac_delim
21964OCAMLC!$OCAMLC$ac_delim
21965OCAMLOPT!$OCAMLOPT$ac_delim
21966OCAMLDEP!$OCAMLDEP$ac_delim
21967OCAMLDOC!$OCAMLDOC$ac_delim
21968GAS!$GAS$ac_delim
21969HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21970INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21971INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21972CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21973CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21974LIBADD_DL!$LIBADD_DL$ac_delim
21975NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21976NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21977USE_UDIS86!$USE_UDIS86$ac_delim
21978USE_OPROFILE!$USE_OPROFILE$ac_delim
21979HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21980HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21981MMAP_FILE!$MMAP_FILE$ac_delim
21982SHLIBEXT!$SHLIBEXT$ac_delim
21983SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21984LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21985LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21986LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21987LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21988LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21989LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21990LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21991LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21992LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21993LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21994BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21995ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21996OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21997ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21998RPATH!$RPATH$ac_delim
21999RDYNAMIC!$RDYNAMIC$ac_delim
22000LIBOBJS!$LIBOBJS$ac_delim
22001LTLIBOBJS!$LTLIBOBJS$ac_delim
22002_ACEOF
22003
22004  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22005    break
22006  elif $ac_last_try; then
22007    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22008echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22009   { (exit 1); exit 1; }; }
22010  else
22011    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22012  fi
22013done
22014
22015ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22016if test -n "$ac_eof"; then
22017  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22018  ac_eof=`expr $ac_eof + 1`
22019fi
22020
22021cat >>$CONFIG_STATUS <<_ACEOF
22022cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22024_ACEOF
22025sed '
22026s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22027s/^/s,@/; s/!/@,|#_!!_#|/
22028:n
22029t n
22030s/'"$ac_delim"'$/,g/; t
22031s/$/\\/; p
22032N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22033' >>$CONFIG_STATUS <conf$$subs.sed
22034rm -f conf$$subs.sed
22035cat >>$CONFIG_STATUS <<_ACEOF
22036:end
22037s/|#_!!_#|//g
22038CEOF$ac_eof
22039_ACEOF
22040
22041
22042# VPATH may cause trouble with some makes, so we remove $(srcdir),
22043# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22044# trailing colons and then remove the whole line if VPATH becomes empty
22045# (actually we leave an empty line to preserve line numbers).
22046if test "x$srcdir" = x.; then
22047  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22048s/:*\$(srcdir):*/:/
22049s/:*\${srcdir}:*/:/
22050s/:*@srcdir@:*/:/
22051s/^\([^=]*=[	 ]*\):*/\1/
22052s/:*$//
22053s/^[^=]*=[	 ]*$//
22054}'
22055fi
22056
22057cat >>$CONFIG_STATUS <<\_ACEOF
22058fi # test -n "$CONFIG_FILES"
22059
22060
22061for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22062do
22063  case $ac_tag in
22064  :[FHLC]) ac_mode=$ac_tag; continue;;
22065  esac
22066  case $ac_mode$ac_tag in
22067  :[FHL]*:*);;
22068  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22069echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22070   { (exit 1); exit 1; }; };;
22071  :[FH]-) ac_tag=-:-;;
22072  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22073  esac
22074  ac_save_IFS=$IFS
22075  IFS=:
22076  set x $ac_tag
22077  IFS=$ac_save_IFS
22078  shift
22079  ac_file=$1
22080  shift
22081
22082  case $ac_mode in
22083  :L) ac_source=$1;;
22084  :[FH])
22085    ac_file_inputs=
22086    for ac_f
22087    do
22088      case $ac_f in
22089      -) ac_f="$tmp/stdin";;
22090      *) # Look for the file first in the build tree, then in the source tree
22091	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22092	 # because $ac_f cannot contain `:'.
22093	 test -f "$ac_f" ||
22094	   case $ac_f in
22095	   [\\/$]*) false;;
22096	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22097	   esac ||
22098	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22099echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22100   { (exit 1); exit 1; }; };;
22101      esac
22102      ac_file_inputs="$ac_file_inputs $ac_f"
22103    done
22104
22105    # Let's still pretend it is `configure' which instantiates (i.e., don't
22106    # use $as_me), people would be surprised to read:
22107    #    /* config.h.  Generated by config.status.  */
22108    configure_input="Generated from "`IFS=:
22109	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22110    if test x"$ac_file" != x-; then
22111      configure_input="$ac_file.  $configure_input"
22112      { echo "$as_me:$LINENO: creating $ac_file" >&5
22113echo "$as_me: creating $ac_file" >&6;}
22114    fi
22115
22116    case $ac_tag in
22117    *:-:* | *:-) cat >"$tmp/stdin";;
22118    esac
22119    ;;
22120  esac
22121
22122  ac_dir=`$as_dirname -- "$ac_file" ||
22123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22124	 X"$ac_file" : 'X\(//\)[^/]' \| \
22125	 X"$ac_file" : 'X\(//\)$' \| \
22126	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22127echo X"$ac_file" |
22128    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22129	    s//\1/
22130	    q
22131	  }
22132	  /^X\(\/\/\)[^/].*/{
22133	    s//\1/
22134	    q
22135	  }
22136	  /^X\(\/\/\)$/{
22137	    s//\1/
22138	    q
22139	  }
22140	  /^X\(\/\).*/{
22141	    s//\1/
22142	    q
22143	  }
22144	  s/.*/./; q'`
22145  { as_dir="$ac_dir"
22146  case $as_dir in #(
22147  -*) as_dir=./$as_dir;;
22148  esac
22149  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22150    as_dirs=
22151    while :; do
22152      case $as_dir in #(
22153      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22154      *) as_qdir=$as_dir;;
22155      esac
22156      as_dirs="'$as_qdir' $as_dirs"
22157      as_dir=`$as_dirname -- "$as_dir" ||
22158$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159	 X"$as_dir" : 'X\(//\)[^/]' \| \
22160	 X"$as_dir" : 'X\(//\)$' \| \
22161	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22162echo X"$as_dir" |
22163    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22164	    s//\1/
22165	    q
22166	  }
22167	  /^X\(\/\/\)[^/].*/{
22168	    s//\1/
22169	    q
22170	  }
22171	  /^X\(\/\/\)$/{
22172	    s//\1/
22173	    q
22174	  }
22175	  /^X\(\/\).*/{
22176	    s//\1/
22177	    q
22178	  }
22179	  s/.*/./; q'`
22180      test -d "$as_dir" && break
22181    done
22182    test -z "$as_dirs" || eval "mkdir $as_dirs"
22183  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22184echo "$as_me: error: cannot create directory $as_dir" >&2;}
22185   { (exit 1); exit 1; }; }; }
22186  ac_builddir=.
22187
22188case "$ac_dir" in
22189.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22190*)
22191  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22192  # A ".." for each directory in $ac_dir_suffix.
22193  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22194  case $ac_top_builddir_sub in
22195  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22196  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22197  esac ;;
22198esac
22199ac_abs_top_builddir=$ac_pwd
22200ac_abs_builddir=$ac_pwd$ac_dir_suffix
22201# for backward compatibility:
22202ac_top_builddir=$ac_top_build_prefix
22203
22204case $srcdir in
22205  .)  # We are building in place.
22206    ac_srcdir=.
22207    ac_top_srcdir=$ac_top_builddir_sub
22208    ac_abs_top_srcdir=$ac_pwd ;;
22209  [\\/]* | ?:[\\/]* )  # Absolute name.
22210    ac_srcdir=$srcdir$ac_dir_suffix;
22211    ac_top_srcdir=$srcdir
22212    ac_abs_top_srcdir=$srcdir ;;
22213  *) # Relative name.
22214    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22215    ac_top_srcdir=$ac_top_build_prefix$srcdir
22216    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22217esac
22218ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22219
22220
22221  case $ac_mode in
22222  :F)
22223  #
22224  # CONFIG_FILE
22225  #
22226
22227  case $INSTALL in
22228  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22229  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22230  esac
22231_ACEOF
22232
22233cat >>$CONFIG_STATUS <<\_ACEOF
22234# If the template does not know about datarootdir, expand it.
22235# FIXME: This hack should be removed a few years after 2.60.
22236ac_datarootdir_hack=; ac_datarootdir_seen=
22237
22238case `sed -n '/datarootdir/ {
22239  p
22240  q
22241}
22242/@datadir@/p
22243/@docdir@/p
22244/@infodir@/p
22245/@localedir@/p
22246/@mandir@/p
22247' $ac_file_inputs` in
22248*datarootdir*) ac_datarootdir_seen=yes;;
22249*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22250  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22252_ACEOF
22253cat >>$CONFIG_STATUS <<_ACEOF
22254  ac_datarootdir_hack='
22255  s&@datadir@&$datadir&g
22256  s&@docdir@&$docdir&g
22257  s&@infodir@&$infodir&g
22258  s&@localedir@&$localedir&g
22259  s&@mandir@&$mandir&g
22260    s&\\\${datarootdir}&$datarootdir&g' ;;
22261esac
22262_ACEOF
22263
22264# Neutralize VPATH when `$srcdir' = `.'.
22265# Shell code in configure.ac might set extrasub.
22266# FIXME: do we really want to maintain this feature?
22267cat >>$CONFIG_STATUS <<_ACEOF
22268  sed "$ac_vpsub
22269$extrasub
22270_ACEOF
22271cat >>$CONFIG_STATUS <<\_ACEOF
22272:t
22273/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22274s&@configure_input@&$configure_input&;t t
22275s&@top_builddir@&$ac_top_builddir_sub&;t t
22276s&@srcdir@&$ac_srcdir&;t t
22277s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278s&@top_srcdir@&$ac_top_srcdir&;t t
22279s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280s&@builddir@&$ac_builddir&;t t
22281s&@abs_builddir@&$ac_abs_builddir&;t t
22282s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283s&@INSTALL@&$ac_INSTALL&;t t
22284$ac_datarootdir_hack
22285" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22286
22287test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22288  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22289  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22290  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22291which seems to be undefined.  Please make sure it is defined." >&5
22292echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22293which seems to be undefined.  Please make sure it is defined." >&2;}
22294
22295  rm -f "$tmp/stdin"
22296  case $ac_file in
22297  -) cat "$tmp/out"; rm -f "$tmp/out";;
22298  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22299  esac
22300 ;;
22301  :H)
22302  #
22303  # CONFIG_HEADER
22304  #
22305_ACEOF
22306
22307# Transform confdefs.h into a sed script `conftest.defines', that
22308# substitutes the proper values into config.h.in to produce config.h.
22309rm -f conftest.defines conftest.tail
22310# First, append a space to every undef/define line, to ease matching.
22311echo 's/$/ /' >conftest.defines
22312# Then, protect against being on the right side of a sed subst, or in
22313# an unquoted here document, in config.status.  If some macros were
22314# called several times there might be several #defines for the same
22315# symbol, which is useless.  But do not sort them, since the last
22316# AC_DEFINE must be honored.
22317ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22318# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22319# NAME is the cpp macro being defined, VALUE is the value it is being given.
22320# PARAMS is the parameter list in the macro definition--in most cases, it's
22321# just an empty string.
22322ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22323ac_dB='\\)[	 (].*,\\1define\\2'
22324ac_dC=' '
22325ac_dD=' ,'
22326
22327uniq confdefs.h |
22328  sed -n '
22329	t rset
22330	:rset
22331	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22332	t ok
22333	d
22334	:ok
22335	s/[\\&,]/\\&/g
22336	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22337	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22338  ' >>conftest.defines
22339
22340# Remove the space that was appended to ease matching.
22341# Then replace #undef with comments.  This is necessary, for
22342# example, in the case of _POSIX_SOURCE, which is predefined and required
22343# on some systems where configure will not decide to define it.
22344# (The regexp can be short, since the line contains either #define or #undef.)
22345echo 's/ $//
22346s,^[	 #]*u.*,/* & */,' >>conftest.defines
22347
22348# Break up conftest.defines:
22349ac_max_sed_lines=50
22350
22351# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22352# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22353# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22354# et cetera.
22355ac_in='$ac_file_inputs'
22356ac_out='"$tmp/out1"'
22357ac_nxt='"$tmp/out2"'
22358
22359while :
22360do
22361  # Write a here document:
22362    cat >>$CONFIG_STATUS <<_ACEOF
22363    # First, check the format of the line:
22364    cat >"\$tmp/defines.sed" <<\\CEOF
22365/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22366/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22367b
22368:def
22369_ACEOF
22370  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22371  echo 'CEOF
22372    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22373  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22374  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22375  grep . conftest.tail >/dev/null || break
22376  rm -f conftest.defines
22377  mv conftest.tail conftest.defines
22378done
22379rm -f conftest.defines conftest.tail
22380
22381echo "ac_result=$ac_in" >>$CONFIG_STATUS
22382cat >>$CONFIG_STATUS <<\_ACEOF
22383  if test x"$ac_file" != x-; then
22384    echo "/* $configure_input  */" >"$tmp/config.h"
22385    cat "$ac_result" >>"$tmp/config.h"
22386    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22387      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22388echo "$as_me: $ac_file is unchanged" >&6;}
22389    else
22390      rm -f $ac_file
22391      mv "$tmp/config.h" $ac_file
22392    fi
22393  else
22394    echo "/* $configure_input  */"
22395    cat "$ac_result"
22396  fi
22397  rm -f "$tmp/out12"
22398 ;;
22399
22400  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22401echo "$as_me: executing $ac_file commands" >&6;}
22402 ;;
22403  esac
22404
22405
22406  case $ac_file$ac_mode in
22407    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22408   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22409    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22410   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22411    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22412   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22413    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22414   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22415    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22416   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22417    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22418   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22419    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22420   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22421    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22422   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22423    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22424   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22425    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22426   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22427    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22428   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22429    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22430   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22431    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22432   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22433
22434  esac
22435done # for ac_tag
22436
22437
22438{ (exit 0); exit 0; }
22439_ACEOF
22440chmod +x $CONFIG_STATUS
22441ac_clean_files=$ac_clean_files_save
22442
22443
22444# configure is writing to config.log, and then calls config.status.
22445# config.status does its own redirection, appending to config.log.
22446# Unfortunately, on DOS this fails, as config.log is still kept open
22447# by configure, so config.status won't be able to write to it; its
22448# output is simply discarded.  So we exec the FD to /dev/null,
22449# effectively closing config.log, so it can be properly (re)opened and
22450# appended to by config.status.  When coming back to configure, we
22451# need to make the FD available again.
22452if test "$no_create" != yes; then
22453  ac_cs_success=:
22454  ac_config_status_args=
22455  test "$silent" = yes &&
22456    ac_config_status_args="$ac_config_status_args --quiet"
22457  exec 5>/dev/null
22458  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22459  exec 5>>config.log
22460  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22461  # would make configure fail if this is the last instruction.
22462  $ac_cs_success || { (exit 1); exit 1; }
22463fi
22464
22465#
22466# CONFIG_SUBDIRS section.
22467#
22468if test "$no_recursion" != yes; then
22469
22470  # Remove --cache-file and --srcdir arguments so they do not pile up.
22471  ac_sub_configure_args=
22472  ac_prev=
22473  eval "set x $ac_configure_args"
22474  shift
22475  for ac_arg
22476  do
22477    if test -n "$ac_prev"; then
22478      ac_prev=
22479      continue
22480    fi
22481    case $ac_arg in
22482    -cache-file | --cache-file | --cache-fil | --cache-fi \
22483    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22484      ac_prev=cache_file ;;
22485    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22486    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22487    | --c=*)
22488      ;;
22489    --config-cache | -C)
22490      ;;
22491    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22492      ac_prev=srcdir ;;
22493    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22494      ;;
22495    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22496      ac_prev=prefix ;;
22497    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22498      ;;
22499    *)
22500      case $ac_arg in
22501      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22502      esac
22503      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22504    esac
22505  done
22506
22507  # Always prepend --prefix to ensure using the same prefix
22508  # in subdir configurations.
22509  ac_arg="--prefix=$prefix"
22510  case $ac_arg in
22511  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22512  esac
22513  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22514
22515  ac_popdir=`pwd`
22516  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22517
22518    # Do not complain, so a configure script can configure whichever
22519    # parts of a large source tree are present.
22520    test -d "$srcdir/$ac_dir" || continue
22521
22522    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22523    echo "$as_me:$LINENO: $ac_msg" >&5
22524    echo "$ac_msg" >&6
22525    { as_dir="$ac_dir"
22526  case $as_dir in #(
22527  -*) as_dir=./$as_dir;;
22528  esac
22529  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22530    as_dirs=
22531    while :; do
22532      case $as_dir in #(
22533      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22534      *) as_qdir=$as_dir;;
22535      esac
22536      as_dirs="'$as_qdir' $as_dirs"
22537      as_dir=`$as_dirname -- "$as_dir" ||
22538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539	 X"$as_dir" : 'X\(//\)[^/]' \| \
22540	 X"$as_dir" : 'X\(//\)$' \| \
22541	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22542echo X"$as_dir" |
22543    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22544	    s//\1/
22545	    q
22546	  }
22547	  /^X\(\/\/\)[^/].*/{
22548	    s//\1/
22549	    q
22550	  }
22551	  /^X\(\/\/\)$/{
22552	    s//\1/
22553	    q
22554	  }
22555	  /^X\(\/\).*/{
22556	    s//\1/
22557	    q
22558	  }
22559	  s/.*/./; q'`
22560      test -d "$as_dir" && break
22561    done
22562    test -z "$as_dirs" || eval "mkdir $as_dirs"
22563  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22564echo "$as_me: error: cannot create directory $as_dir" >&2;}
22565   { (exit 1); exit 1; }; }; }
22566    ac_builddir=.
22567
22568case "$ac_dir" in
22569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22570*)
22571  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22572  # A ".." for each directory in $ac_dir_suffix.
22573  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22574  case $ac_top_builddir_sub in
22575  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22576  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22577  esac ;;
22578esac
22579ac_abs_top_builddir=$ac_pwd
22580ac_abs_builddir=$ac_pwd$ac_dir_suffix
22581# for backward compatibility:
22582ac_top_builddir=$ac_top_build_prefix
22583
22584case $srcdir in
22585  .)  # We are building in place.
22586    ac_srcdir=.
22587    ac_top_srcdir=$ac_top_builddir_sub
22588    ac_abs_top_srcdir=$ac_pwd ;;
22589  [\\/]* | ?:[\\/]* )  # Absolute name.
22590    ac_srcdir=$srcdir$ac_dir_suffix;
22591    ac_top_srcdir=$srcdir
22592    ac_abs_top_srcdir=$srcdir ;;
22593  *) # Relative name.
22594    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22595    ac_top_srcdir=$ac_top_build_prefix$srcdir
22596    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22597esac
22598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22599
22600
22601    cd "$ac_dir"
22602
22603    # Check for guested configure; otherwise get Cygnus style configure.
22604    if test -f "$ac_srcdir/configure.gnu"; then
22605      ac_sub_configure=$ac_srcdir/configure.gnu
22606    elif test -f "$ac_srcdir/configure"; then
22607      ac_sub_configure=$ac_srcdir/configure
22608    elif test -f "$ac_srcdir/configure.in"; then
22609      # This should be Cygnus configure.
22610      ac_sub_configure=$ac_aux_dir/configure
22611    else
22612      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22613echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22614      ac_sub_configure=
22615    fi
22616
22617    # The recursion is here.
22618    if test -n "$ac_sub_configure"; then
22619      # Make the cache file name correct relative to the subdirectory.
22620      case $cache_file in
22621      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22622      *) # Relative name.
22623	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22624      esac
22625
22626      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22627echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22628      # The eval makes quoting arguments work.
22629      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22630	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22631	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22632echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22633   { (exit 1); exit 1; }; }
22634    fi
22635
22636    cd "$ac_popdir"
22637  done
22638fi
22639
22640