configure revision ec27496f4a4f1127f351d1692b06105afd6d5a2a
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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='2.7svn'
565PACKAGE_STRING='llvm 2.7svn'
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
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
692ENABLE_SHARED
693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
744RUNTEST
745TCLSH
746ZIP
747OCAMLC
748OCAMLOPT
749OCAMLDEP
750OCAMLDOC
751GAS
752INSTALL_LTDL_TRUE
753INSTALL_LTDL_FALSE
754CONVENIENCE_LTDL_TRUE
755CONVENIENCE_LTDL_FALSE
756LIBADD_DL
757LLVMGCCCOMMAND
758LLVMGXXCOMMAND
759LLVMGCC
760LLVMGXX
761LLVMCC_OPTION
762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769LLVMCC1
770LLVMCC1PLUS
771LLVMGCCDIR
772LLVMGCC_LANGS
773SHLIBEXT
774SHLIBPATH_VAR
775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
793ac_subst_files=''
794      ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
801CPP
802CXX
803CXXFLAGS
804CCC'
805ac_subdirs_all='projects/sample
806projects/privbracket
807projects/llvm-stacker
808projects/llvm-test
809projects/test-suite
810projects/llvm-reopt
811projects/llvm-gcc
812projects/llvm-java
813projects/llvm-tv
814projects/llvm-poolalloc
815projects/poolalloc
816projects/safecode
817projects/llvm-kernel'
818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853includedir='${prefix}/include'
854oldincludedir='/usr/include'
855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
864
865ac_prev=
866ac_dashdash=
867for ac_option
868do
869  # If the previous option needs an argument, assign it.
870  if test -n "$ac_prev"; then
871    eval $ac_prev=\$ac_option
872    ac_prev=
873    continue
874  fi
875
876  case $ac_option in
877  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878  *)	ac_optarg=yes ;;
879  esac
880
881  # Accept the important Cygnus configure options, so we can diagnose typos.
882
883  case $ac_dashdash$ac_option in
884  --)
885    ac_dashdash=yes ;;
886
887  -bindir | --bindir | --bindi | --bind | --bin | --bi)
888    ac_prev=bindir ;;
889  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890    bindir=$ac_optarg ;;
891
892  -build | --build | --buil | --bui | --bu)
893    ac_prev=build_alias ;;
894  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895    build_alias=$ac_optarg ;;
896
897  -cache-file | --cache-file | --cache-fil | --cache-fi \
898  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899    ac_prev=cache_file ;;
900  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902    cache_file=$ac_optarg ;;
903
904  --config-cache | -C)
905    cache_file=config.cache ;;
906
907  -datadir | --datadir | --datadi | --datad)
908    ac_prev=datadir ;;
909  -datadir=* | --datadir=* | --datadi=* | --datad=*)
910    datadir=$ac_optarg ;;
911
912  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913  | --dataroo | --dataro | --datar)
914    ac_prev=datarootdir ;;
915  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917    datarootdir=$ac_optarg ;;
918
919  -disable-* | --disable-*)
920    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921    # Reject names that are not valid shell variable names.
922    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924   { (exit 1); exit 1; }; }
925    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926    eval enable_$ac_feature=no ;;
927
928  -docdir | --docdir | --docdi | --doc | --do)
929    ac_prev=docdir ;;
930  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931    docdir=$ac_optarg ;;
932
933  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934    ac_prev=dvidir ;;
935  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936    dvidir=$ac_optarg ;;
937
938  -enable-* | --enable-*)
939    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943   { (exit 1); exit 1; }; }
944    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945    eval enable_$ac_feature=\$ac_optarg ;;
946
947  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949  | --exec | --exe | --ex)
950    ac_prev=exec_prefix ;;
951  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953  | --exec=* | --exe=* | --ex=*)
954    exec_prefix=$ac_optarg ;;
955
956  -gas | --gas | --ga | --g)
957    # Obsolete; use --with-gas.
958    with_gas=yes ;;
959
960  -help | --help | --hel | --he | -h)
961    ac_init_help=long ;;
962  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963    ac_init_help=recursive ;;
964  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965    ac_init_help=short ;;
966
967  -host | --host | --hos | --ho)
968    ac_prev=host_alias ;;
969  -host=* | --host=* | --hos=* | --ho=*)
970    host_alias=$ac_optarg ;;
971
972  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973    ac_prev=htmldir ;;
974  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975  | --ht=*)
976    htmldir=$ac_optarg ;;
977
978  -includedir | --includedir | --includedi | --included | --include \
979  | --includ | --inclu | --incl | --inc)
980    ac_prev=includedir ;;
981  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982  | --includ=* | --inclu=* | --incl=* | --inc=*)
983    includedir=$ac_optarg ;;
984
985  -infodir | --infodir | --infodi | --infod | --info | --inf)
986    ac_prev=infodir ;;
987  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988    infodir=$ac_optarg ;;
989
990  -libdir | --libdir | --libdi | --libd)
991    ac_prev=libdir ;;
992  -libdir=* | --libdir=* | --libdi=* | --libd=*)
993    libdir=$ac_optarg ;;
994
995  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996  | --libexe | --libex | --libe)
997    ac_prev=libexecdir ;;
998  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999  | --libexe=* | --libex=* | --libe=*)
1000    libexecdir=$ac_optarg ;;
1001
1002  -localedir | --localedir | --localedi | --localed | --locale)
1003    ac_prev=localedir ;;
1004  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005    localedir=$ac_optarg ;;
1006
1007  -localstatedir | --localstatedir | --localstatedi | --localstated \
1008  | --localstate | --localstat | --localsta | --localst | --locals)
1009    ac_prev=localstatedir ;;
1010  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012    localstatedir=$ac_optarg ;;
1013
1014  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015    ac_prev=mandir ;;
1016  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017    mandir=$ac_optarg ;;
1018
1019  -nfp | --nfp | --nf)
1020    # Obsolete; use --without-fp.
1021    with_fp=no ;;
1022
1023  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024  | --no-cr | --no-c | -n)
1025    no_create=yes ;;
1026
1027  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029    no_recursion=yes ;;
1030
1031  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033  | --oldin | --oldi | --old | --ol | --o)
1034    ac_prev=oldincludedir ;;
1035  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038    oldincludedir=$ac_optarg ;;
1039
1040  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041    ac_prev=prefix ;;
1042  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043    prefix=$ac_optarg ;;
1044
1045  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046  | --program-pre | --program-pr | --program-p)
1047    ac_prev=program_prefix ;;
1048  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050    program_prefix=$ac_optarg ;;
1051
1052  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053  | --program-suf | --program-su | --program-s)
1054    ac_prev=program_suffix ;;
1055  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057    program_suffix=$ac_optarg ;;
1058
1059  -program-transform-name | --program-transform-name \
1060  | --program-transform-nam | --program-transform-na \
1061  | --program-transform-n | --program-transform- \
1062  | --program-transform | --program-transfor \
1063  | --program-transfo | --program-transf \
1064  | --program-trans | --program-tran \
1065  | --progr-tra | --program-tr | --program-t)
1066    ac_prev=program_transform_name ;;
1067  -program-transform-name=* | --program-transform-name=* \
1068  | --program-transform-nam=* | --program-transform-na=* \
1069  | --program-transform-n=* | --program-transform-=* \
1070  | --program-transform=* | --program-transfor=* \
1071  | --program-transfo=* | --program-transf=* \
1072  | --program-trans=* | --program-tran=* \
1073  | --progr-tra=* | --program-tr=* | --program-t=*)
1074    program_transform_name=$ac_optarg ;;
1075
1076  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077    ac_prev=pdfdir ;;
1078  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079    pdfdir=$ac_optarg ;;
1080
1081  -psdir | --psdir | --psdi | --psd | --ps)
1082    ac_prev=psdir ;;
1083  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084    psdir=$ac_optarg ;;
1085
1086  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087  | -silent | --silent | --silen | --sile | --sil)
1088    silent=yes ;;
1089
1090  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091    ac_prev=sbindir ;;
1092  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093  | --sbi=* | --sb=*)
1094    sbindir=$ac_optarg ;;
1095
1096  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098  | --sharedst | --shareds | --shared | --share | --shar \
1099  | --sha | --sh)
1100    ac_prev=sharedstatedir ;;
1101  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104  | --sha=* | --sh=*)
1105    sharedstatedir=$ac_optarg ;;
1106
1107  -site | --site | --sit)
1108    ac_prev=site ;;
1109  -site=* | --site=* | --sit=*)
1110    site=$ac_optarg ;;
1111
1112  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113    ac_prev=srcdir ;;
1114  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115    srcdir=$ac_optarg ;;
1116
1117  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118  | --syscon | --sysco | --sysc | --sys | --sy)
1119    ac_prev=sysconfdir ;;
1120  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122    sysconfdir=$ac_optarg ;;
1123
1124  -target | --target | --targe | --targ | --tar | --ta | --t)
1125    ac_prev=target_alias ;;
1126  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127    target_alias=$ac_optarg ;;
1128
1129  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130    verbose=yes ;;
1131
1132  -version | --version | --versio | --versi | --vers | -V)
1133    ac_init_version=: ;;
1134
1135  -with-* | --with-*)
1136    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139      { echo "$as_me: error: invalid package name: $ac_package" >&2
1140   { (exit 1); exit 1; }; }
1141    ac_package=`echo $ac_package| sed 's/-/_/g'`
1142    eval with_$ac_package=\$ac_optarg ;;
1143
1144  -without-* | --without-*)
1145    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148      { echo "$as_me: error: invalid package name: $ac_package" >&2
1149   { (exit 1); exit 1; }; }
1150    ac_package=`echo $ac_package | sed 's/-/_/g'`
1151    eval with_$ac_package=no ;;
1152
1153  --x)
1154    # Obsolete; use --with-x.
1155    with_x=yes ;;
1156
1157  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158  | --x-incl | --x-inc | --x-in | --x-i)
1159    ac_prev=x_includes ;;
1160  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162    x_includes=$ac_optarg ;;
1163
1164  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166    ac_prev=x_libraries ;;
1167  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169    x_libraries=$ac_optarg ;;
1170
1171  -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173   { (exit 1); exit 1; }; }
1174    ;;
1175
1176  *=*)
1177    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178    # Reject names that are not valid shell variable names.
1179    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181   { (exit 1); exit 1; }; }
1182    eval $ac_envvar=\$ac_optarg
1183    export $ac_envvar ;;
1184
1185  *)
1186    # FIXME: should be removed in autoconf 3.0.
1187    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191    ;;
1192
1193  esac
1194done
1195
1196if test -n "$ac_prev"; then
1197  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198  { echo "$as_me: error: missing argument to $ac_option" >&2
1199   { (exit 1); exit 1; }; }
1200fi
1201
1202# Be sure to have absolute directory names.
1203for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204		datadir sysconfdir sharedstatedir localstatedir includedir \
1205		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206		libdir localedir mandir
1207do
1208  eval ac_val=\$$ac_var
1209  case $ac_val in
1210    [\\/$]* | ?:[\\/]* )  continue;;
1211    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212  esac
1213  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214   { (exit 1); exit 1; }; }
1215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226  if test "x$build_alias" = x; then
1227    cross_compiling=maybe
1228    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229    If a cross compiler is detected then cross compile mode will be used." >&2
1230  elif test "x$build_alias" != "x$host_alias"; then
1231    cross_compiling=yes
1232  fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
1241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244  { echo "$as_me: error: Working directory cannot be determined" >&2
1245   { (exit 1); exit 1; }; }
1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247  { echo "$as_me: error: pwd does not report name of working directory" >&2
1248   { (exit 1); exit 1; }; }
1249
1250
1251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253  ac_srcdir_defaulted=yes
1254  # Try the directory containing this script, then the parent directory.
1255  ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257	 X"$0" : 'X\(//\)[^/]' \| \
1258	 X"$0" : 'X\(//\)$' \| \
1259	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
1261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262	    s//\1/
1263	    q
1264	  }
1265	  /^X\(\/\/\)[^/].*/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)$/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\).*/{
1274	    s//\1/
1275	    q
1276	  }
1277	  s/.*/./; q'`
1278  srcdir=$ac_confdir
1279  if test ! -r "$srcdir/$ac_unique_file"; then
1280    srcdir=..
1281  fi
1282else
1283  ac_srcdir_defaulted=no
1284fi
1285if test ! -r "$srcdir/$ac_unique_file"; then
1286  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288   { (exit 1); exit 1; }; }
1289fi
1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
1292	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293   { (exit 1); exit 1; }; }
1294	pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297  srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_env_${ac_var}_value=\$${ac_var}
1308  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
1311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316  # Omit some internal or obsolete options to make the list less imposing.
1317  # This message is too long to be a string in the A/UX 3.1 sh.
1318  cat <<_ACEOF
1319\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329  -h, --help              display this help and exit
1330      --help=short        display options specific to this package
1331      --help=recursive    display the short help of all the included packages
1332  -V, --version           display version information and exit
1333  -q, --quiet, --silent   do not print \`checking...' messages
1334      --cache-file=FILE   cache test results in FILE [disabled]
1335  -C, --config-cache      alias for \`--cache-file=config.cache'
1336  -n, --no-create         do not create output files
1337      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339Installation directories:
1340  --prefix=PREFIX         install architecture-independent files in PREFIX
1341			  [$ac_default_prefix]
1342  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343			  [PREFIX]
1344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
1353  --bindir=DIR           user executables [EPREFIX/bin]
1354  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355  --libexecdir=DIR       program executables [EPREFIX/libexec]
1356  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359  --libdir=DIR           object code libraries [EPREFIX/lib]
1360  --includedir=DIR       C header files [PREFIX/include]
1361  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364  --infodir=DIR          info documentation [DATAROOTDIR/info]
1365  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366  --mandir=DIR           man documentation [DATAROOTDIR/man]
1367  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1368  --htmldir=DIR          html documentation [DOCDIR]
1369  --dvidir=DIR           dvi documentation [DOCDIR]
1370  --pdfdir=DIR           pdf documentation [DOCDIR]
1371  --psdir=DIR            ps documentation [DOCDIR]
1372_ACEOF
1373
1374  cat <<\_ACEOF
1375
1376System types:
1377  --build=BUILD     configure for building on BUILD [guessed]
1378  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379  --target=TARGET   configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384  case $ac_init_help in
1385     short | recursive ) echo "Configuration of llvm 2.7svn:";;
1386   esac
1387  cat <<\_ACEOF
1388
1389Optional Features:
1390  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391  --enable-FEATURE[=ARG]  include FEATURE [ARG=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-doxygen        Build doxygen documentation (default is NO)
1405  --enable-threads        Use threads if available (default is YES)
1406  --enable-pic            Build LLVM with Position Independent Code (default
1407                          is YES)
1408  --enable-shared         Build a shared library and link tools against it
1409                          (default is NO)
1410  --enable-targets        Build specific host targets: all or
1411                          target1,target2,... Valid targets are: host, x86,
1412                          x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413                          pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414                          and cpp (default=all)
1415  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1416                          %a (default is YES)
1417  --enable-bindings       Build specific language bindings:
1418                          all,auto,none,{binding-name} (default=auto)
1419  --enable-libffi         Check for the presence of libffi (default is NO)
1420  --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1421                          Win32)
1422  --enable-llvmc-dynamic-plugins
1423                          Enable dynamic LLVMC plugins (default is YES)
1424  --enable-ltdl-install   install libltdl
1425
1426Optional Packages:
1427  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1430                          searches PATH)
1431  --with-llvmgcc          Specify location of llvm-gcc driver (default
1432                          searches PATH)
1433  --with-llvmgxx          Specify location of llvm-g++ driver (default
1434                          searches PATH)
1435  --with-clang            Specify location of clang compiler (default is
1436                          --with-built-clang)
1437  --with-built-clang      Use the compiled Clang as the LLVM compiler
1438                          (default=check)
1439  --with-optimize-option  Select the compiler options to use for optimized
1440                          builds
1441  --with-extra-options    Specify additional options to compile LLVM with
1442  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1443                          is stdlib)
1444  --with-c-include-dirs   Colon separated list of directories clang will
1445                          search for headers
1446  --with-cxx-include-root Directory with the libstdc++ headers.
1447  --with-cxx-include-arch Architecture of the libstdc++ headers.
1448  --with-cxx-include-32bit-dir
1449                          32 bit multilib dir.
1450  --with-cxx-include-64bit-dir
1451                          64 bit multilib directory.
1452  --with-binutils-include Specify path to binutils/include/ containing
1453                          plugin-api.h file for gold plugin.
1454  --with-tclinclude       directory where tcl headers are
1455  --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1456                          clang, or none; default=check)
1457  --with-udis86=<path>    Use udis86 external x86 disassembler library
1458  --with-oprofile=<prefix>
1459                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1460
1461Some influential environment variables:
1462  CC          C compiler command
1463  CFLAGS      C compiler flags
1464  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465              nonstandard directory <lib dir>
1466  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467              you have headers in a nonstandard directory <include dir>
1468  CPP         C preprocessor
1469  CXX         C++ compiler command
1470  CXXFLAGS    C++ compiler flags
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" || continue
1484    ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490  # A ".." for each directory in $ac_dir_suffix.
1491  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492  case $ac_top_builddir_sub in
1493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495  esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503  .)  # We are building in place.
1504    ac_srcdir=.
1505    ac_top_srcdir=$ac_top_builddir_sub
1506    ac_abs_top_srcdir=$ac_pwd ;;
1507  [\\/]* | ?:[\\/]* )  # Absolute name.
1508    ac_srcdir=$srcdir$ac_dir_suffix;
1509    ac_top_srcdir=$srcdir
1510    ac_abs_top_srcdir=$srcdir ;;
1511  *) # Relative name.
1512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518    cd "$ac_dir" || { ac_status=$?; continue; }
1519    # Check for guested configure.
1520    if test -f "$ac_srcdir/configure.gnu"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523    elif test -f "$ac_srcdir/configure"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure" --help=recursive
1526    else
1527      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528    fi || ac_status=$?
1529    cd "$ac_pwd" || { ac_status=$?; break; }
1530  done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535  cat <<\_ACEOF
1536llvm configure 2.7svn
1537generated by GNU Autoconf 2.60
1538
1539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543
1544Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1545_ACEOF
1546  exit
1547fi
1548cat >config.log <<_ACEOF
1549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
1552It was created by llvm $as_me 2.7svn, which was
1553generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555  $ $0 $@
1556
1557_ACEOF
1558exec 5>>config.log
1559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587  IFS=$as_save_IFS
1588  test -z "$as_dir" && as_dir=.
1589  echo "PATH: $as_dir"
1590done
1591IFS=$as_save_IFS
1592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
1607# Strip out --silent because we don't want to record it for future runs.
1608# Also quote any args containing shell meta-characters.
1609# Make two passes to allow for proper duplicate-argument suppression.
1610ac_configure_args=
1611ac_configure_args0=
1612ac_configure_args1=
1613ac_must_keep_next=false
1614for ac_pass in 1 2
1615do
1616  for ac_arg
1617  do
1618    case $ac_arg in
1619    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621    | -silent | --silent | --silen | --sile | --sil)
1622      continue ;;
1623    *\'*)
1624      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625    esac
1626    case $ac_pass in
1627    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628    2)
1629      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630      if test $ac_must_keep_next = true; then
1631	ac_must_keep_next=false # Got value, back to normal.
1632      else
1633	case $ac_arg in
1634	  *=* | --config-cache | -C | -disable-* | --disable-* \
1635	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637	  | -with-* | --with-* | -without-* | --without-* | --x)
1638	    case "$ac_configure_args0 " in
1639	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640	    esac
1641	    ;;
1642	  -* ) ac_must_keep_next=true ;;
1643	esac
1644      fi
1645      ac_configure_args="$ac_configure_args '$ac_arg'"
1646      ;;
1647    esac
1648  done
1649done
1650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log.  We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
1656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658trap 'exit_status=$?
1659  # Save into config.log some information that might help in debugging.
1660  {
1661    echo
1662
1663    cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668    echo
1669    # The following way of writing the cache mishandles newlines in values,
1670(
1671  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672    eval ac_val=\$$ac_var
1673    case $ac_val in #(
1674    *${as_nl}*)
1675      case $ac_var in #(
1676      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678      esac
1679      case $ac_var in #(
1680      _ | IFS | as_nl) ;; #(
1681      *) $as_unset $ac_var ;;
1682      esac ;;
1683    esac
1684  done
1685  (set) 2>&1 |
1686    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687    *${as_nl}ac_space=\ *)
1688      sed -n \
1689	"s/'\''/'\''\\\\'\'''\''/g;
1690	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691      ;; #(
1692    *)
1693      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694      ;;
1695    esac |
1696    sort
1697)
1698    echo
1699
1700    cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705    echo
1706    for ac_var in $ac_subst_vars
1707    do
1708      eval ac_val=\$$ac_var
1709      case $ac_val in
1710      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711      esac
1712      echo "$ac_var='\''$ac_val'\''"
1713    done | sort
1714    echo
1715
1716    if test -n "$ac_subst_files"; then
1717      cat <<\_ASBOX
1718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
1721_ASBOX
1722      echo
1723      for ac_var in $ac_subst_files
1724      do
1725	eval ac_val=\$$ac_var
1726	case $ac_val in
1727	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728	esac
1729	echo "$ac_var='\''$ac_val'\''"
1730      done | sort
1731      echo
1732    fi
1733
1734    if test -s confdefs.h; then
1735      cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740      echo
1741      cat confdefs.h
1742      echo
1743    fi
1744    test "$ac_signal" != 0 &&
1745      echo "$as_me: caught signal $ac_signal"
1746    echo "$as_me: exit $exit_status"
1747  } >&5
1748  rm -f core *.core core.conftest.* &&
1749    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750    exit $exit_status
1751' 0
1752for ac_signal in 1 2 13 15; do
1753  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
1758rm -f -r conftest* confdefs.h
1759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
1766
1767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
1771
1772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
1776
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
1788# Prefer explicitly selected file to automatically selected ones.
1789if test -n "$CONFIG_SITE"; then
1790  set x "$CONFIG_SITE"
1791elif test "x$prefix" != xNONE; then
1792  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793else
1794  set x "$ac_default_prefix/share/config.site" \
1795	"$ac_default_prefix/etc/config.site"
1796fi
1797shift
1798for ac_site_file
1799do
1800  if test -r "$ac_site_file"; then
1801    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
1803    sed 's/^/| /' "$ac_site_file" >&5
1804    . "$ac_site_file"
1805  fi
1806done
1807
1808if test -r "$cache_file"; then
1809  # Some versions of bash will fail to source /dev/null (special
1810  # files actually), so we avoid doing that.
1811  if test -f "$cache_file"; then
1812    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
1814    case $cache_file in
1815      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816      *)                      . "./$cache_file";;
1817    esac
1818  fi
1819else
1820  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
1822  >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
1828for ac_var in $ac_precious_vars; do
1829  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830  eval ac_new_set=\$ac_env_${ac_var}_set
1831  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832  eval ac_new_val=\$ac_env_${ac_var}_value
1833  case $ac_old_set,$ac_new_set in
1834    set,)
1835      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837      ac_cache_corrupted=: ;;
1838    ,set)
1839      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841      ac_cache_corrupted=: ;;
1842    ,);;
1843    *)
1844      if test "x$ac_old_val" != "x$ac_new_val"; then
1845	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848echo "$as_me:   former value:  $ac_old_val" >&2;}
1849	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850echo "$as_me:   current value: $ac_new_val" >&2;}
1851	ac_cache_corrupted=:
1852      fi;;
1853  esac
1854  # Pass precious variables to config.status.
1855  if test "$ac_new_set" = set; then
1856    case $ac_new_val in
1857    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858    *) ac_arg=$ac_var=$ac_new_val ;;
1859    esac
1860    case " $ac_configure_args " in
1861      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863    esac
1864  fi
1865done
1866if $ac_cache_corrupted; then
1867  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871   { (exit 1); exit 1; }; }
1872fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914ac_aux_dir=
1915for ac_dir in autoconf "$srcdir"/autoconf; do
1916  if test -f "$ac_dir/install-sh"; then
1917    ac_aux_dir=$ac_dir
1918    ac_install_sh="$ac_aux_dir/install-sh -c"
1919    break
1920  elif test -f "$ac_dir/install.sh"; then
1921    ac_aux_dir=$ac_dir
1922    ac_install_sh="$ac_aux_dir/install.sh -c"
1923    break
1924  elif test -f "$ac_dir/shtool"; then
1925    ac_aux_dir=$ac_dir
1926    ac_install_sh="$ac_aux_dir/shtool install -c"
1927    break
1928  fi
1929done
1930if test -z "$ac_aux_dir"; then
1931  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933   { (exit 1); exit 1; }; }
1934fi
1935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946if test ${srcdir} != "." ; then
1947  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950   { (exit 1); exit 1; }; }
1951  fi
1952fi
1953
1954for i in `ls ${srcdir}/projects`
1955do
1956  if test -d ${srcdir}/projects/${i} ; then
1957    case ${i} in
1958      CVS) ;;
1959      sample)       subdirs="$subdirs projects/sample"
1960    ;;
1961      privbracket)  subdirs="$subdirs projects/privbracket"
1962 ;;
1963      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1964 ;;
1965      # llvm-test is the old name of the test-suite, kept here for backwards
1966      # compatibility
1967      llvm-test)    subdirs="$subdirs projects/llvm-test"
1968 ;;
1969      test-suite)   subdirs="$subdirs projects/test-suite"
1970 ;;
1971      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1972;;
1973      llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
1974  ;;
1975      llvm-java)    subdirs="$subdirs projects/llvm-java"
1976 ;;
1977      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1978   ;;
1979      llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1980 ;;
1981      poolalloc)    subdirs="$subdirs projects/poolalloc"
1982 ;;
1983      safecode)     subdirs="$subdirs projects/safecode"
1984 ;;
1985      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
1986 ;;
1987      *)
1988        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1989echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1990        ;;
1991    esac
1992  fi
1993done
1994
1995
1996# Make sure we can run config.sub.
1997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1998  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1999echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2000   { (exit 1); exit 1; }; }
2001
2002{ echo "$as_me:$LINENO: checking build system type" >&5
2003echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2004if test "${ac_cv_build+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  ac_build_alias=$build_alias
2008test "x$ac_build_alias" = x &&
2009  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2010test "x$ac_build_alias" = x &&
2011  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2012echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2013   { (exit 1); exit 1; }; }
2014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2015  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2016echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2017   { (exit 1); exit 1; }; }
2018
2019fi
2020{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2021echo "${ECHO_T}$ac_cv_build" >&6; }
2022case $ac_cv_build in
2023*-*-*) ;;
2024*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2025echo "$as_me: error: invalid value of canonical build" >&2;}
2026   { (exit 1); exit 1; }; };;
2027esac
2028build=$ac_cv_build
2029ac_save_IFS=$IFS; IFS='-'
2030set x $ac_cv_build
2031shift
2032build_cpu=$1
2033build_vendor=$2
2034shift; shift
2035# Remember, the first character of IFS is used to create $*,
2036# except with old shells:
2037build_os=$*
2038IFS=$ac_save_IFS
2039case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2040
2041
2042{ echo "$as_me:$LINENO: checking host system type" >&5
2043echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2044if test "${ac_cv_host+set}" = set; then
2045  echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
2047  if test "x$host_alias" = x; then
2048  ac_cv_host=$ac_cv_build
2049else
2050  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2051    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2052echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2053   { (exit 1); exit 1; }; }
2054fi
2055
2056fi
2057{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2058echo "${ECHO_T}$ac_cv_host" >&6; }
2059case $ac_cv_host in
2060*-*-*) ;;
2061*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2062echo "$as_me: error: invalid value of canonical host" >&2;}
2063   { (exit 1); exit 1; }; };;
2064esac
2065host=$ac_cv_host
2066ac_save_IFS=$IFS; IFS='-'
2067set x $ac_cv_host
2068shift
2069host_cpu=$1
2070host_vendor=$2
2071shift; shift
2072# Remember, the first character of IFS is used to create $*,
2073# except with old shells:
2074host_os=$*
2075IFS=$ac_save_IFS
2076case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2077
2078
2079{ echo "$as_me:$LINENO: checking target system type" >&5
2080echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2081if test "${ac_cv_target+set}" = set; then
2082  echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084  if test "x$target_alias" = x; then
2085  ac_cv_target=$ac_cv_host
2086else
2087  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2088    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2089echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2090   { (exit 1); exit 1; }; }
2091fi
2092
2093fi
2094{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2095echo "${ECHO_T}$ac_cv_target" >&6; }
2096case $ac_cv_target in
2097*-*-*) ;;
2098*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2099echo "$as_me: error: invalid value of canonical target" >&2;}
2100   { (exit 1); exit 1; }; };;
2101esac
2102target=$ac_cv_target
2103ac_save_IFS=$IFS; IFS='-'
2104set x $ac_cv_target
2105shift
2106target_cpu=$1
2107target_vendor=$2
2108shift; shift
2109# Remember, the first character of IFS is used to create $*,
2110# except with old shells:
2111target_os=$*
2112IFS=$ac_save_IFS
2113case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2114
2115
2116# The aliases save the names the user supplied, while $host etc.
2117# will get canonicalized.
2118test -n "$target_alias" &&
2119  test "$program_prefix$program_suffix$program_transform_name" = \
2120    NONENONEs,x,x, &&
2121  program_prefix=${target_alias}-
2122
2123{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2124echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2125if test "${llvm_cv_os_type+set}" = set; then
2126  echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128  case $host in
2129  *-*-aix*)
2130    llvm_cv_link_all_option="-Wl,--whole-archive"
2131    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2132    llvm_cv_os_type="AIX"
2133    llvm_cv_platform_type="Unix" ;;
2134  *-*-irix*)
2135    llvm_cv_link_all_option="-Wl,--whole-archive"
2136    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2137    llvm_cv_os_type="IRIX"
2138    llvm_cv_platform_type="Unix" ;;
2139  *-*-cygwin*)
2140    llvm_cv_link_all_option="-Wl,--whole-archive"
2141    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2142    llvm_cv_os_type="Cygwin"
2143    llvm_cv_platform_type="Unix" ;;
2144  *-*-darwin*)
2145    llvm_cv_link_all_option="-Wl,-all_load"
2146    llvm_cv_no_link_all_option="-Wl,-noall_load"
2147    llvm_cv_os_type="Darwin"
2148    llvm_cv_platform_type="Unix" ;;
2149  *-*-freebsd*)
2150    llvm_cv_link_all_option="-Wl,--whole-archive"
2151    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152    llvm_cv_os_type="FreeBSD"
2153    llvm_cv_platform_type="Unix" ;;
2154  *-*-openbsd*)
2155    llvm_cv_link_all_option="-Wl,--whole-archive"
2156    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157    llvm_cv_os_type="OpenBSD"
2158    llvm_cv_platform_type="Unix" ;;
2159  *-*-netbsd*)
2160    llvm_cv_link_all_option="-Wl,--whole-archive"
2161    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162    llvm_cv_os_type="NetBSD"
2163    llvm_cv_platform_type="Unix" ;;
2164  *-*-dragonfly*)
2165    llvm_cv_link_all_option="-Wl,--whole-archive"
2166    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167    llvm_cv_os_type="DragonFly"
2168    llvm_cv_platform_type="Unix" ;;
2169  *-*-hpux*)
2170    llvm_cv_link_all_option="-Wl,--whole-archive"
2171    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2172    llvm_cv_os_type="HP-UX"
2173    llvm_cv_platform_type="Unix" ;;
2174  *-*-interix*)
2175    llvm_cv_link_all_option="-Wl,--whole-archive"
2176    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177    llvm_cv_os_type="Interix"
2178    llvm_cv_platform_type="Unix" ;;
2179  *-*-linux*)
2180    llvm_cv_link_all_option="-Wl,--whole-archive"
2181    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182    llvm_cv_os_type="Linux"
2183    llvm_cv_platform_type="Unix" ;;
2184  *-*-solaris*)
2185    llvm_cv_link_all_option="-Wl,-z,allextract"
2186    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2187    llvm_cv_os_type="SunOS"
2188    llvm_cv_platform_type="Unix" ;;
2189  *-*-auroraux*)
2190    llvm_cv_link_all_option="-Wl,-z,allextract"
2191    llvm_cv_link_all_option="-Wl,-z,defaultextract"
2192    llvm_cv_os_type="AuroraUX"
2193    llvm_cv_platform_type="Unix" ;;
2194  *-*-win32*)
2195    llvm_cv_link_all_option="-Wl,--whole-archive"
2196    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197    llvm_cv_os_type="Win32"
2198    llvm_cv_platform_type="Win32" ;;
2199  *-*-mingw*)
2200    llvm_cv_link_all_option="-Wl,--whole-archive"
2201    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202    llvm_cv_os_type="MingW"
2203    llvm_cv_platform_type="Win32" ;;
2204  *-*-haiku*)
2205    llvm_cv_link_all_option="-Wl,--whole-archive"
2206    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207    llvm_cv_os_type="Haiku"
2208    llvm_cv_platform_type="Unix" ;;
2209  *-unknown-eabi*)
2210    llvm_cv_link_all_option="-Wl,--whole-archive"
2211    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212    llvm_cv_os_type="Freestanding"
2213    llvm_cv_platform_type="Unix" ;;
2214  *-unknown-elf*)
2215    llvm_cv_link_all_option="-Wl,--whole-archive"
2216    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2217    llvm_cv_os_type="Freestanding"
2218    llvm_cv_platform_type="Unix" ;;
2219  *)
2220    llvm_cv_link_all_option=""
2221    llvm_cv_no_link_all_option=""
2222    llvm_cv_os_type="Unknown"
2223    llvm_cv_platform_type="Unknown" ;;
2224esac
2225fi
2226{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2227echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2228
2229{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2230echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2231if test "${llvm_cv_target_os_type+set}" = set; then
2232  echo $ECHO_N "(cached) $ECHO_C" >&6
2233else
2234  case $target in
2235  *-*-aix*)
2236    llvm_cv_target_os_type="AIX" ;;
2237  *-*-irix*)
2238    llvm_cv_target_os_type="IRIX" ;;
2239  *-*-cygwin*)
2240    llvm_cv_target_os_type="Cygwin" ;;
2241  *-*-darwin*)
2242    llvm_cv_target_os_type="Darwin" ;;
2243  *-*-freebsd*)
2244    llvm_cv_target_os_type="FreeBSD" ;;
2245  *-*-openbsd*)
2246    llvm_cv_target_os_type="OpenBSD" ;;
2247  *-*-netbsd*)
2248    llvm_cv_target_os_type="NetBSD" ;;
2249  *-*-dragonfly*)
2250    llvm_cv_target_os_type="DragonFly" ;;
2251  *-*-hpux*)
2252    llvm_cv_target_os_type="HP-UX" ;;
2253  *-*-interix*)
2254    llvm_cv_target_os_type="Interix" ;;
2255  *-*-linux*)
2256    llvm_cv_target_os_type="Linux" ;;
2257  *-*-solaris*)
2258    llvm_cv_target_os_type="SunOS" ;;
2259  *-*-auroraux*)
2260    llvm_cv_target_os_type="AuroraUX" ;;
2261  *-*-win32*)
2262    llvm_cv_target_os_type="Win32" ;;
2263  *-*-mingw*)
2264    llvm_cv_target_os_type="MingW" ;;
2265  *-*-haiku*)
2266    llvm_cv_target_os_type="Haiku" ;;
2267  *-unknown-eabi*)
2268    llvm_cv_target_os_type="Freestanding" ;;
2269  *)
2270    llvm_cv_target_os_type="Unknown" ;;
2271esac
2272fi
2273{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2274echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2275
2276if test "$llvm_cv_os_type" = "Unknown" ; then
2277  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2278echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2279   { (exit 1); exit 1; }; }
2280fi
2281
2282OS=$llvm_cv_os_type
2283
2284HOST_OS=$llvm_cv_os_type
2285
2286TARGET_OS=$llvm_cv_target_os_type
2287
2288
2289LINKALL=$llvm_cv_link_all_option
2290
2291NOLINKALL=$llvm_cv_no_link_all_option
2292
2293
2294case $llvm_cv_platform_type in
2295  Unix)
2296
2297cat >>confdefs.h <<\_ACEOF
2298#define LLVM_ON_UNIX 1
2299_ACEOF
2300
2301    LLVM_ON_UNIX=1
2302
2303    LLVM_ON_WIN32=0
2304
2305    ;;
2306  Win32)
2307
2308cat >>confdefs.h <<\_ACEOF
2309#define LLVM_ON_WIN32 1
2310_ACEOF
2311
2312    LLVM_ON_UNIX=0
2313
2314    LLVM_ON_WIN32=1
2315
2316    ;;
2317esac
2318
2319{ echo "$as_me:$LINENO: checking target architecture" >&5
2320echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2321if test "${llvm_cv_target_arch+set}" = set; then
2322  echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324  case $target in
2325  i?86-*)                 llvm_cv_target_arch="x86" ;;
2326  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2327  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2328  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2329  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2330  arm*-*)                 llvm_cv_target_arch="ARM" ;;
2331  mips-*)                 llvm_cv_target_arch="Mips" ;;
2332  pic16-*)                llvm_cv_target_arch="PIC16" ;;
2333  xcore-*)                llvm_cv_target_arch="XCore" ;;
2334  msp430-*)               llvm_cv_target_arch="MSP430" ;;
2335  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2336  bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2337  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2338  *)                      llvm_cv_target_arch="Unknown" ;;
2339esac
2340fi
2341{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2342echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2343
2344if test "$llvm_cv_target_arch" = "Unknown" ; then
2345  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2346echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2347fi
2348
2349# Determine the LLVM native architecture for the target
2350case "$llvm_cv_target_arch" in
2351    x86)     LLVM_NATIVE_ARCH="X86" ;;
2352    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2353    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2354esac
2355
2356ARCH=$llvm_cv_target_arch
2357
2358
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364if test -n "$ac_tool_prefix"; then
2365  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369if test "${ac_cv_prog_CC+set}" = set; then
2370  echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372  if test -n "$CC"; then
2373  ac_cv_prog_CC="$CC" # Let the user override the test.
2374else
2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378  IFS=$as_save_IFS
2379  test -z "$as_dir" && as_dir=.
2380  for ac_exec_ext in '' $ac_executable_extensions; do
2381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2382    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384    break 2
2385  fi
2386done
2387done
2388IFS=$as_save_IFS
2389
2390fi
2391fi
2392CC=$ac_cv_prog_CC
2393if test -n "$CC"; then
2394  { echo "$as_me:$LINENO: result: $CC" >&5
2395echo "${ECHO_T}$CC" >&6; }
2396else
2397  { echo "$as_me:$LINENO: result: no" >&5
2398echo "${ECHO_T}no" >&6; }
2399fi
2400
2401
2402fi
2403if test -z "$ac_cv_prog_CC"; then
2404  ac_ct_CC=$CC
2405  # Extract the first word of "gcc", so it can be a program name with args.
2406set dummy gcc; ac_word=$2
2407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410  echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412  if test -n "$ac_ct_CC"; then
2413  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420  for ac_exec_ext in '' $ac_executable_extensions; do
2421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2422    ac_cv_prog_ac_ct_CC="gcc"
2423    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424    break 2
2425  fi
2426done
2427done
2428IFS=$as_save_IFS
2429
2430fi
2431fi
2432ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433if test -n "$ac_ct_CC"; then
2434  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2435echo "${ECHO_T}$ac_ct_CC" >&6; }
2436else
2437  { echo "$as_me:$LINENO: result: no" >&5
2438echo "${ECHO_T}no" >&6; }
2439fi
2440
2441  if test "x$ac_ct_CC" = x; then
2442    CC=""
2443  else
2444    case $cross_compiling:$ac_tool_warned in
2445yes:)
2446{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2447whose name does not start with the host triplet.  If you think this
2448configuration is useful to you, please write to autoconf@gnu.org." >&5
2449echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2450whose name does not start with the host triplet.  If you think this
2451configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2452ac_tool_warned=yes ;;
2453esac
2454    CC=$ac_ct_CC
2455  fi
2456else
2457  CC="$ac_cv_prog_CC"
2458fi
2459
2460if test -z "$CC"; then
2461          if test -n "$ac_tool_prefix"; then
2462    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2463set dummy ${ac_tool_prefix}cc; ac_word=$2
2464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466if test "${ac_cv_prog_CC+set}" = set; then
2467  echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469  if test -n "$CC"; then
2470  ac_cv_prog_CC="$CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475  IFS=$as_save_IFS
2476  test -z "$as_dir" && as_dir=.
2477  for ac_exec_ext in '' $ac_executable_extensions; do
2478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2479    ac_cv_prog_CC="${ac_tool_prefix}cc"
2480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481    break 2
2482  fi
2483done
2484done
2485IFS=$as_save_IFS
2486
2487fi
2488fi
2489CC=$ac_cv_prog_CC
2490if test -n "$CC"; then
2491  { echo "$as_me:$LINENO: result: $CC" >&5
2492echo "${ECHO_T}$CC" >&6; }
2493else
2494  { echo "$as_me:$LINENO: result: no" >&5
2495echo "${ECHO_T}no" >&6; }
2496fi
2497
2498
2499  fi
2500fi
2501if test -z "$CC"; then
2502  # Extract the first word of "cc", so it can be a program name with args.
2503set dummy cc; ac_word=$2
2504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506if test "${ac_cv_prog_CC+set}" = set; then
2507  echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509  if test -n "$CC"; then
2510  ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512  ac_prog_rejected=no
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516  IFS=$as_save_IFS
2517  test -z "$as_dir" && as_dir=.
2518  for ac_exec_ext in '' $ac_executable_extensions; do
2519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2520    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2521       ac_prog_rejected=yes
2522       continue
2523     fi
2524    ac_cv_prog_CC="cc"
2525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526    break 2
2527  fi
2528done
2529done
2530IFS=$as_save_IFS
2531
2532if test $ac_prog_rejected = yes; then
2533  # We found a bogon in the path, so make sure we never use it.
2534  set dummy $ac_cv_prog_CC
2535  shift
2536  if test $# != 0; then
2537    # We chose a different compiler from the bogus one.
2538    # However, it has the same basename, so the bogon will be chosen
2539    # first if we set CC to just the basename; use the full file name.
2540    shift
2541    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542  fi
2543fi
2544fi
2545fi
2546CC=$ac_cv_prog_CC
2547if test -n "$CC"; then
2548  { echo "$as_me:$LINENO: result: $CC" >&5
2549echo "${ECHO_T}$CC" >&6; }
2550else
2551  { echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6; }
2553fi
2554
2555
2556fi
2557if test -z "$CC"; then
2558  if test -n "$ac_tool_prefix"; then
2559  for ac_prog in cl.exe
2560  do
2561    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565if test "${ac_cv_prog_CC+set}" = set; then
2566  echo $ECHO_N "(cached) $ECHO_C" >&6
2567else
2568  if test -n "$CC"; then
2569  ac_cv_prog_CC="$CC" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576  for ac_exec_ext in '' $ac_executable_extensions; do
2577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2578    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588CC=$ac_cv_prog_CC
2589if test -n "$CC"; then
2590  { echo "$as_me:$LINENO: result: $CC" >&5
2591echo "${ECHO_T}$CC" >&6; }
2592else
2593  { echo "$as_me:$LINENO: result: no" >&5
2594echo "${ECHO_T}no" >&6; }
2595fi
2596
2597
2598    test -n "$CC" && break
2599  done
2600fi
2601if test -z "$CC"; then
2602  ac_ct_CC=$CC
2603  for ac_prog in cl.exe
2604do
2605  # Extract the first word of "$ac_prog", so it can be a program name with args.
2606set dummy $ac_prog; ac_word=$2
2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610  echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612  if test -n "$ac_ct_CC"; then
2613  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620  for ac_exec_ext in '' $ac_executable_extensions; do
2621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622    ac_cv_prog_ac_ct_CC="$ac_prog"
2623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633if test -n "$ac_ct_CC"; then
2634  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2635echo "${ECHO_T}$ac_ct_CC" >&6; }
2636else
2637  { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
2639fi
2640
2641
2642  test -n "$ac_ct_CC" && break
2643done
2644
2645  if test "x$ac_ct_CC" = x; then
2646    CC=""
2647  else
2648    case $cross_compiling:$ac_tool_warned in
2649yes:)
2650{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2651whose name does not start with the host triplet.  If you think this
2652configuration is useful to you, please write to autoconf@gnu.org." >&5
2653echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2654whose name does not start with the host triplet.  If you think this
2655configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2656ac_tool_warned=yes ;;
2657esac
2658    CC=$ac_ct_CC
2659  fi
2660fi
2661
2662fi
2663
2664
2665test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2666See \`config.log' for more details." >&5
2667echo "$as_me: error: no acceptable C compiler found in \$PATH
2668See \`config.log' for more details." >&2;}
2669   { (exit 1); exit 1; }; }
2670
2671# Provide some information about the compiler.
2672echo "$as_me:$LINENO: checking for C compiler version" >&5
2673ac_compiler=`set X $ac_compile; echo $2`
2674{ (ac_try="$ac_compiler --version >&5"
2675case "(($ac_try" in
2676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677  *) ac_try_echo=$ac_try;;
2678esac
2679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680  (eval "$ac_compiler --version >&5") 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }
2684{ (ac_try="$ac_compiler -v >&5"
2685case "(($ac_try" in
2686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687  *) ac_try_echo=$ac_try;;
2688esac
2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690  (eval "$ac_compiler -v >&5") 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }
2694{ (ac_try="$ac_compiler -V >&5"
2695case "(($ac_try" in
2696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697  *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700  (eval "$ac_compiler -V >&5") 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }
2704
2705cat >conftest.$ac_ext <<_ACEOF
2706/* confdefs.h.  */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h.  */
2711
2712int
2713main ()
2714{
2715
2716  ;
2717  return 0;
2718}
2719_ACEOF
2720ac_clean_files_save=$ac_clean_files
2721ac_clean_files="$ac_clean_files a.out a.exe b.out"
2722# Try to create an executable without -o first, disregard a.out.
2723# It will help us diagnose broken compilers, and finding out an intuition
2724# of exeext.
2725{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2726echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2727ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2728#
2729# List of possible output files, starting from the most likely.
2730# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2731# only as a last resort.  b.out is created by i960 compilers.
2732ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2733#
2734# The IRIX 6 linker writes into existing files which may not be
2735# executable, retaining their permissions.  Remove them first so a
2736# subsequent execution test works.
2737ac_rmfiles=
2738for ac_file in $ac_files
2739do
2740  case $ac_file in
2741    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2742    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2743  esac
2744done
2745rm -f $ac_rmfiles
2746
2747if { (ac_try="$ac_link_default"
2748case "(($ac_try" in
2749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750  *) ac_try_echo=$ac_try;;
2751esac
2752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753  (eval "$ac_link_default") 2>&5
2754  ac_status=$?
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); }; then
2757  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2758# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2759# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2760# so that the user can short-circuit this test for compilers unknown to
2761# Autoconf.
2762for ac_file in $ac_files
2763do
2764  test -f "$ac_file" || continue
2765  case $ac_file in
2766    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2767	;;
2768    [ab].out )
2769	# We found the default executable, but exeext='' is most
2770	# certainly right.
2771	break;;
2772    *.* )
2773        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2774	then :; else
2775	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2776	fi
2777	# We set ac_cv_exeext here because the later test for it is not
2778	# safe: cross compilers may not add the suffix if given an `-o'
2779	# argument, so we may need to know it at that point already.
2780	# Even if this section looks crufty: it has the advantage of
2781	# actually working.
2782	break;;
2783    * )
2784	break;;
2785  esac
2786done
2787test "$ac_cv_exeext" = no && ac_cv_exeext=
2788
2789else
2790  echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2794See \`config.log' for more details." >&5
2795echo "$as_me: error: C compiler cannot create executables
2796See \`config.log' for more details." >&2;}
2797   { (exit 77); exit 77; }; }
2798fi
2799
2800ac_exeext=$ac_cv_exeext
2801{ echo "$as_me:$LINENO: result: $ac_file" >&5
2802echo "${ECHO_T}$ac_file" >&6; }
2803
2804# Check that the compiler produces executables we can run.  If not, either
2805# the compiler is broken, or we cross compile.
2806{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2807echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2808# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2809# If not cross compiling, check that we can run a simple program.
2810if test "$cross_compiling" != yes; then
2811  if { ac_try='./$ac_file'
2812  { (case "(($ac_try" in
2813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814  *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817  (eval "$ac_try") 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }; }; then
2821    cross_compiling=no
2822  else
2823    if test "$cross_compiling" = maybe; then
2824	cross_compiling=yes
2825    else
2826	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2827If you meant to cross compile, use \`--host'.
2828See \`config.log' for more details." >&5
2829echo "$as_me: error: cannot run C compiled programs.
2830If you meant to cross compile, use \`--host'.
2831See \`config.log' for more details." >&2;}
2832   { (exit 1); exit 1; }; }
2833    fi
2834  fi
2835fi
2836{ echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6; }
2838
2839rm -f a.out a.exe conftest$ac_cv_exeext b.out
2840ac_clean_files=$ac_clean_files_save
2841# Check that the compiler produces executables we can run.  If not, either
2842# the compiler is broken, or we cross compile.
2843{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2844echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2845{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2846echo "${ECHO_T}$cross_compiling" >&6; }
2847
2848{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2849echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2850if { (ac_try="$ac_link"
2851case "(($ac_try" in
2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853  *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856  (eval "$ac_link") 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }; then
2860  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2861# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2862# work properly (i.e., refer to `conftest.exe'), while it won't with
2863# `rm'.
2864for ac_file in conftest.exe conftest conftest.*; do
2865  test -f "$ac_file" || continue
2866  case $ac_file in
2867    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2868    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869	  break;;
2870    * ) break;;
2871  esac
2872done
2873else
2874  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2875See \`config.log' for more details." >&5
2876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2877See \`config.log' for more details." >&2;}
2878   { (exit 1); exit 1; }; }
2879fi
2880
2881rm -f conftest$ac_cv_exeext
2882{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2883echo "${ECHO_T}$ac_cv_exeext" >&6; }
2884
2885rm -f conftest.$ac_ext
2886EXEEXT=$ac_cv_exeext
2887ac_exeext=$EXEEXT
2888{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2889echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2890if test "${ac_cv_objext+set}" = set; then
2891  echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
2893  cat >conftest.$ac_ext <<_ACEOF
2894/* confdefs.h.  */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h.  */
2899
2900int
2901main ()
2902{
2903
2904  ;
2905  return 0;
2906}
2907_ACEOF
2908rm -f conftest.o conftest.obj
2909if { (ac_try="$ac_compile"
2910case "(($ac_try" in
2911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912  *) ac_try_echo=$ac_try;;
2913esac
2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915  (eval "$ac_compile") 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }; then
2919  for ac_file in conftest.o conftest.obj conftest.*; do
2920  test -f "$ac_file" || continue;
2921  case $ac_file in
2922    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2923    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2924       break;;
2925  esac
2926done
2927else
2928  echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2932See \`config.log' for more details." >&5
2933echo "$as_me: error: cannot compute suffix of object files: cannot compile
2934See \`config.log' for more details." >&2;}
2935   { (exit 1); exit 1; }; }
2936fi
2937
2938rm -f conftest.$ac_cv_objext conftest.$ac_ext
2939fi
2940{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2941echo "${ECHO_T}$ac_cv_objext" >&6; }
2942OBJEXT=$ac_cv_objext
2943ac_objext=$OBJEXT
2944{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2945echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2946if test "${ac_cv_c_compiler_gnu+set}" = set; then
2947  echo $ECHO_N "(cached) $ECHO_C" >&6
2948else
2949  cat >conftest.$ac_ext <<_ACEOF
2950/* confdefs.h.  */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h.  */
2955
2956int
2957main ()
2958{
2959#ifndef __GNUC__
2960       choke me
2961#endif
2962
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967rm -f conftest.$ac_objext
2968if { (ac_try="$ac_compile"
2969case "(($ac_try" in
2970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971  *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974  (eval "$ac_compile") 2>conftest.er1
2975  ac_status=$?
2976  grep -v '^ *+' conftest.er1 >conftest.err
2977  rm -f conftest.er1
2978  cat conftest.err >&5
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); } &&
2981	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2982  { (case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987  (eval "$ac_try") 2>&5
2988  ac_status=$?
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); }; } &&
2991	 { ac_try='test -s conftest.$ac_objext'
2992  { (case "(($ac_try" in
2993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994  *) ac_try_echo=$ac_try;;
2995esac
2996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997  (eval "$ac_try") 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; }; then
3001  ac_compiler_gnu=yes
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006	ac_compiler_gnu=no
3007fi
3008
3009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010ac_cv_c_compiler_gnu=$ac_compiler_gnu
3011
3012fi
3013{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3014echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3015GCC=`test $ac_compiler_gnu = yes && echo yes`
3016ac_test_CFLAGS=${CFLAGS+set}
3017ac_save_CFLAGS=$CFLAGS
3018{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3019echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3020if test "${ac_cv_prog_cc_g+set}" = set; then
3021  echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023  ac_save_c_werror_flag=$ac_c_werror_flag
3024   ac_c_werror_flag=yes
3025   ac_cv_prog_cc_g=no
3026   CFLAGS="-g"
3027   cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h.  */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h.  */
3033
3034int
3035main ()
3036{
3037
3038  ;
3039  return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046  *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049  (eval "$ac_compile") 2>conftest.er1
3050  ac_status=$?
3051  grep -v '^ *+' conftest.er1 >conftest.err
3052  rm -f conftest.er1
3053  cat conftest.err >&5
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); } &&
3056	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057  { (case "(($ac_try" in
3058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059  *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062  (eval "$ac_try") 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; } &&
3066	 { ac_try='test -s conftest.$ac_objext'
3067  { (case "(($ac_try" in
3068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069  *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072  (eval "$ac_try") 2>&5
3073  ac_status=$?
3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); }; }; then
3076  ac_cv_prog_cc_g=yes
3077else
3078  echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081	CFLAGS=""
3082      cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h.  */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext
3098if { (ac_try="$ac_compile"
3099case "(($ac_try" in
3100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101  *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104  (eval "$ac_compile") 2>conftest.er1
3105  ac_status=$?
3106  grep -v '^ *+' conftest.er1 >conftest.err
3107  rm -f conftest.er1
3108  cat conftest.err >&5
3109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); } &&
3111	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3112  { (case "(($ac_try" in
3113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114  *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117  (eval "$ac_try") 2>&5
3118  ac_status=$?
3119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120  (exit $ac_status); }; } &&
3121	 { ac_try='test -s conftest.$ac_objext'
3122  { (case "(($ac_try" in
3123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124  *) ac_try_echo=$ac_try;;
3125esac
3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127  (eval "$ac_try") 2>&5
3128  ac_status=$?
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); }; }; then
3131  :
3132else
3133  echo "$as_me: failed program was:" >&5
3134sed 's/^/| /' conftest.$ac_ext >&5
3135
3136	ac_c_werror_flag=$ac_save_c_werror_flag
3137	 CFLAGS="-g"
3138	 cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h.  */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h.  */
3144
3145int
3146main ()
3147{
3148
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153rm -f conftest.$ac_objext
3154if { (ac_try="$ac_compile"
3155case "(($ac_try" in
3156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157  *) ac_try_echo=$ac_try;;
3158esac
3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160  (eval "$ac_compile") 2>conftest.er1
3161  ac_status=$?
3162  grep -v '^ *+' conftest.er1 >conftest.err
3163  rm -f conftest.er1
3164  cat conftest.err >&5
3165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166  (exit $ac_status); } &&
3167	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3168  { (case "(($ac_try" in
3169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170  *) ac_try_echo=$ac_try;;
3171esac
3172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173  (eval "$ac_try") 2>&5
3174  ac_status=$?
3175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176  (exit $ac_status); }; } &&
3177	 { ac_try='test -s conftest.$ac_objext'
3178  { (case "(($ac_try" in
3179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180  *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183  (eval "$ac_try") 2>&5
3184  ac_status=$?
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); }; }; then
3187  ac_cv_prog_cc_g=yes
3188else
3189  echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192
3193fi
3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196fi
3197
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199fi
3200
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202   ac_c_werror_flag=$ac_save_c_werror_flag
3203fi
3204{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3206if test "$ac_test_CFLAGS" = set; then
3207  CFLAGS=$ac_save_CFLAGS
3208elif test $ac_cv_prog_cc_g = yes; then
3209  if test "$GCC" = yes; then
3210    CFLAGS="-g -O2"
3211  else
3212    CFLAGS="-g"
3213  fi
3214else
3215  if test "$GCC" = yes; then
3216    CFLAGS="-O2"
3217  else
3218    CFLAGS=
3219  fi
3220fi
3221{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223if test "${ac_cv_prog_cc_c89+set}" = set; then
3224  echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
3226  ac_cv_prog_cc_c89=no
3227ac_save_CC=$CC
3228cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h.  */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h.  */
3234#include <stdarg.h>
3235#include <stdio.h>
3236#include <sys/types.h>
3237#include <sys/stat.h>
3238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3239struct buf { int x; };
3240FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241static char *e (p, i)
3242     char **p;
3243     int i;
3244{
3245  return p[i];
3246}
3247static char *f (char * (*g) (char **, int), char **p, ...)
3248{
3249  char *s;
3250  va_list v;
3251  va_start (v,p);
3252  s = g (p, va_arg (v,int));
3253  va_end (v);
3254  return s;
3255}
3256
3257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3258   function prototypes and stuff, but not '\xHH' hex character constants.
3259   These don't provoke an error unfortunately, instead are silently treated
3260   as 'x'.  The following induces an error, until -std is added to get
3261   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3262   array size at least.  It's necessary to write '\x00'==0 to get something
3263   that's true only with -std.  */
3264int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
3266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267   inside strings and character constants.  */
3268#define FOO(x) 'x'
3269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
3271int test (int i, double x);
3272struct s1 {int (*f) (int a);};
3273struct s2 {int (*f) (double a);};
3274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275int argc;
3276char **argv;
3277int
3278main ()
3279{
3280return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287do
3288  CC="$ac_save_CC $ac_arg"
3289  rm -f conftest.$ac_objext
3290if { (ac_try="$ac_compile"
3291case "(($ac_try" in
3292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293  *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296  (eval "$ac_compile") 2>conftest.er1
3297  ac_status=$?
3298  grep -v '^ *+' conftest.er1 >conftest.err
3299  rm -f conftest.er1
3300  cat conftest.err >&5
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); } &&
3303	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304  { (case "(($ac_try" in
3305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306  *) ac_try_echo=$ac_try;;
3307esac
3308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309  (eval "$ac_try") 2>&5
3310  ac_status=$?
3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312  (exit $ac_status); }; } &&
3313	 { ac_try='test -s conftest.$ac_objext'
3314  { (case "(($ac_try" in
3315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316  *) ac_try_echo=$ac_try;;
3317esac
3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319  (eval "$ac_try") 2>&5
3320  ac_status=$?
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); }; }; then
3323  ac_cv_prog_cc_c89=$ac_arg
3324else
3325  echo "$as_me: failed program was:" >&5
3326sed 's/^/| /' conftest.$ac_ext >&5
3327
3328
3329fi
3330
3331rm -f core conftest.err conftest.$ac_objext
3332  test "x$ac_cv_prog_cc_c89" != "xno" && break
3333done
3334rm -f conftest.$ac_ext
3335CC=$ac_save_CC
3336
3337fi
3338# AC_CACHE_VAL
3339case "x$ac_cv_prog_cc_c89" in
3340  x)
3341    { echo "$as_me:$LINENO: result: none needed" >&5
3342echo "${ECHO_T}none needed" >&6; } ;;
3343  xno)
3344    { echo "$as_me:$LINENO: result: unsupported" >&5
3345echo "${ECHO_T}unsupported" >&6; } ;;
3346  *)
3347    CC="$CC $ac_cv_prog_cc_c89"
3348    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3349echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3350esac
3351
3352
3353ac_ext=c
3354ac_cpp='$CPP $CPPFLAGS'
3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359
3360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3367# On Suns, sometimes $CPP names a directory.
3368if test -n "$CPP" && test -d "$CPP"; then
3369  CPP=
3370fi
3371if test -z "$CPP"; then
3372  if test "${ac_cv_prog_CPP+set}" = set; then
3373  echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375      # Double quotes because CPP needs to be expanded
3376    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377    do
3378      ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381  # Use a header file that comes with gcc, so configuring glibc
3382  # with a fresh cross-compiler works.
3383  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384  # <limits.h> exists even on freestanding compilers.
3385  # On the NeXT, cc -E runs the code through the compiler's parser,
3386  # not just through cpp. "Syntax error" is here to catch this case.
3387  cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393#ifdef __STDC__
3394# include <limits.h>
3395#else
3396# include <assert.h>
3397#endif
3398		     Syntax error
3399_ACEOF
3400if { (ac_try="$ac_cpp conftest.$ac_ext"
3401case "(($ac_try" in
3402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403  *) ac_try_echo=$ac_try;;
3404esac
3405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407  ac_status=$?
3408  grep -v '^ *+' conftest.er1 >conftest.err
3409  rm -f conftest.er1
3410  cat conftest.err >&5
3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); } >/dev/null; then
3413  if test -s conftest.err; then
3414    ac_cpp_err=$ac_c_preproc_warn_flag
3415    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416  else
3417    ac_cpp_err=
3418  fi
3419else
3420  ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
3423  :
3424else
3425  echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428  # Broken: fails on valid input.
3429continue
3430fi
3431
3432rm -f conftest.err conftest.$ac_ext
3433
3434  # OK, works on sane cases.  Now check whether nonexistent headers
3435  # can be detected and how.
3436  cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h.  */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h.  */
3442#include <ac_nonexistent.h>
3443_ACEOF
3444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } >/dev/null; then
3457  if test -s conftest.err; then
3458    ac_cpp_err=$ac_c_preproc_warn_flag
3459    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460  else
3461    ac_cpp_err=
3462  fi
3463else
3464  ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
3467  # Broken: success on invalid input.
3468continue
3469else
3470  echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473  # Passes both tests.
3474ac_preproc_ok=:
3475break
3476fi
3477
3478rm -f conftest.err conftest.$ac_ext
3479
3480done
3481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482rm -f conftest.err conftest.$ac_ext
3483if $ac_preproc_ok; then
3484  break
3485fi
3486
3487    done
3488    ac_cv_prog_CPP=$CPP
3489
3490fi
3491  CPP=$ac_cv_prog_CPP
3492else
3493  ac_cv_prog_CPP=$CPP
3494fi
3495{ echo "$as_me:$LINENO: result: $CPP" >&5
3496echo "${ECHO_T}$CPP" >&6; }
3497ac_preproc_ok=false
3498for ac_c_preproc_warn_flag in '' yes
3499do
3500  # Use a header file that comes with gcc, so configuring glibc
3501  # with a fresh cross-compiler works.
3502  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503  # <limits.h> exists even on freestanding compilers.
3504  # On the NeXT, cc -E runs the code through the compiler's parser,
3505  # not just through cpp. "Syntax error" is here to catch this case.
3506  cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h.  */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h.  */
3512#ifdef __STDC__
3513# include <limits.h>
3514#else
3515# include <assert.h>
3516#endif
3517		     Syntax error
3518_ACEOF
3519if { (ac_try="$ac_cpp conftest.$ac_ext"
3520case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526  ac_status=$?
3527  grep -v '^ *+' conftest.er1 >conftest.err
3528  rm -f conftest.er1
3529  cat conftest.err >&5
3530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531  (exit $ac_status); } >/dev/null; then
3532  if test -s conftest.err; then
3533    ac_cpp_err=$ac_c_preproc_warn_flag
3534    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535  else
3536    ac_cpp_err=
3537  fi
3538else
3539  ac_cpp_err=yes
3540fi
3541if test -z "$ac_cpp_err"; then
3542  :
3543else
3544  echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547  # Broken: fails on valid input.
3548continue
3549fi
3550
3551rm -f conftest.err conftest.$ac_ext
3552
3553  # OK, works on sane cases.  Now check whether nonexistent headers
3554  # can be detected and how.
3555  cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h.  */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h.  */
3561#include <ac_nonexistent.h>
3562_ACEOF
3563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566  *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570  ac_status=$?
3571  grep -v '^ *+' conftest.er1 >conftest.err
3572  rm -f conftest.er1
3573  cat conftest.err >&5
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); } >/dev/null; then
3576  if test -s conftest.err; then
3577    ac_cpp_err=$ac_c_preproc_warn_flag
3578    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579  else
3580    ac_cpp_err=
3581  fi
3582else
3583  ac_cpp_err=yes
3584fi
3585if test -z "$ac_cpp_err"; then
3586  # Broken: success on invalid input.
3587continue
3588else
3589  echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592  # Passes both tests.
3593ac_preproc_ok=:
3594break
3595fi
3596
3597rm -f conftest.err conftest.$ac_ext
3598
3599done
3600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3601rm -f conftest.err conftest.$ac_ext
3602if $ac_preproc_ok; then
3603  :
3604else
3605  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3606See \`config.log' for more details." >&5
3607echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3608See \`config.log' for more details." >&2;}
3609   { (exit 1); exit 1; }; }
3610fi
3611
3612ac_ext=c
3613ac_cpp='$CPP $CPPFLAGS'
3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618
3619{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3620echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3621if test "${ac_cv_path_GREP+set}" = set; then
3622  echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624  # Extract the first word of "grep ggrep" to use in msg output
3625if test -z "$GREP"; then
3626set dummy grep ggrep; ac_prog_name=$2
3627if test "${ac_cv_path_GREP+set}" = set; then
3628  echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630  ac_path_GREP_found=false
3631# Loop through the user's path and test for each of PROGNAME-LIST
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3634do
3635  IFS=$as_save_IFS
3636  test -z "$as_dir" && as_dir=.
3637  for ac_prog in grep ggrep; do
3638  for ac_exec_ext in '' $ac_executable_extensions; do
3639    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3640    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3641    # Check for GNU ac_path_GREP and select it if it is found.
3642  # Check for GNU $ac_path_GREP
3643case `"$ac_path_GREP" --version 2>&1` in
3644*GNU*)
3645  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3646*)
3647  ac_count=0
3648  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3649  while :
3650  do
3651    cat "conftest.in" "conftest.in" >"conftest.tmp"
3652    mv "conftest.tmp" "conftest.in"
3653    cp "conftest.in" "conftest.nl"
3654    echo 'GREP' >> "conftest.nl"
3655    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3656    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3657    ac_count=`expr $ac_count + 1`
3658    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3659      # Best one so far, save it but keep looking for a better one
3660      ac_cv_path_GREP="$ac_path_GREP"
3661      ac_path_GREP_max=$ac_count
3662    fi
3663    # 10*(2^10) chars as input seems more than enough
3664    test $ac_count -gt 10 && break
3665  done
3666  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3667esac
3668
3669
3670    $ac_path_GREP_found && break 3
3671  done
3672done
3673
3674done
3675IFS=$as_save_IFS
3676
3677
3678fi
3679
3680GREP="$ac_cv_path_GREP"
3681if test -z "$GREP"; then
3682  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3683echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3684   { (exit 1); exit 1; }; }
3685fi
3686
3687else
3688  ac_cv_path_GREP=$GREP
3689fi
3690
3691
3692fi
3693{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3694echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3695 GREP="$ac_cv_path_GREP"
3696
3697
3698{ echo "$as_me:$LINENO: checking for egrep" >&5
3699echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3700if test "${ac_cv_path_EGREP+set}" = set; then
3701  echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3704   then ac_cv_path_EGREP="$GREP -E"
3705   else
3706     # Extract the first word of "egrep" to use in msg output
3707if test -z "$EGREP"; then
3708set dummy egrep; ac_prog_name=$2
3709if test "${ac_cv_path_EGREP+set}" = set; then
3710  echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712  ac_path_EGREP_found=false
3713# Loop through the user's path and test for each of PROGNAME-LIST
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716do
3717  IFS=$as_save_IFS
3718  test -z "$as_dir" && as_dir=.
3719  for ac_prog in egrep; do
3720  for ac_exec_ext in '' $ac_executable_extensions; do
3721    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3723    # Check for GNU ac_path_EGREP and select it if it is found.
3724  # Check for GNU $ac_path_EGREP
3725case `"$ac_path_EGREP" --version 2>&1` in
3726*GNU*)
3727  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3728*)
3729  ac_count=0
3730  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3731  while :
3732  do
3733    cat "conftest.in" "conftest.in" >"conftest.tmp"
3734    mv "conftest.tmp" "conftest.in"
3735    cp "conftest.in" "conftest.nl"
3736    echo 'EGREP' >> "conftest.nl"
3737    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739    ac_count=`expr $ac_count + 1`
3740    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741      # Best one so far, save it but keep looking for a better one
3742      ac_cv_path_EGREP="$ac_path_EGREP"
3743      ac_path_EGREP_max=$ac_count
3744    fi
3745    # 10*(2^10) chars as input seems more than enough
3746    test $ac_count -gt 10 && break
3747  done
3748  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749esac
3750
3751
3752    $ac_path_EGREP_found && break 3
3753  done
3754done
3755
3756done
3757IFS=$as_save_IFS
3758
3759
3760fi
3761
3762EGREP="$ac_cv_path_EGREP"
3763if test -z "$EGREP"; then
3764  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3765echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3766   { (exit 1); exit 1; }; }
3767fi
3768
3769else
3770  ac_cv_path_EGREP=$EGREP
3771fi
3772
3773
3774   fi
3775fi
3776{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3777echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3778 EGREP="$ac_cv_path_EGREP"
3779
3780
3781{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3782echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3783if test "${ac_cv_header_stdc+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h.  */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h.  */
3792#include <stdlib.h>
3793#include <stdarg.h>
3794#include <string.h>
3795#include <float.h>
3796
3797int
3798main ()
3799{
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805rm -f conftest.$ac_objext
3806if { (ac_try="$ac_compile"
3807case "(($ac_try" in
3808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809  *) ac_try_echo=$ac_try;;
3810esac
3811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812  (eval "$ac_compile") 2>conftest.er1
3813  ac_status=$?
3814  grep -v '^ *+' conftest.er1 >conftest.err
3815  rm -f conftest.er1
3816  cat conftest.err >&5
3817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818  (exit $ac_status); } &&
3819	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3820  { (case "(($ac_try" in
3821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822  *) ac_try_echo=$ac_try;;
3823esac
3824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825  (eval "$ac_try") 2>&5
3826  ac_status=$?
3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828  (exit $ac_status); }; } &&
3829	 { ac_try='test -s conftest.$ac_objext'
3830  { (case "(($ac_try" in
3831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832  *) ac_try_echo=$ac_try;;
3833esac
3834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835  (eval "$ac_try") 2>&5
3836  ac_status=$?
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); }; }; then
3839  ac_cv_header_stdc=yes
3840else
3841  echo "$as_me: failed program was:" >&5
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
3844	ac_cv_header_stdc=no
3845fi
3846
3847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848
3849if test $ac_cv_header_stdc = yes; then
3850  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3851  cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h.  */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h.  */
3857#include <string.h>
3858
3859_ACEOF
3860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861  $EGREP "memchr" >/dev/null 2>&1; then
3862  :
3863else
3864  ac_cv_header_stdc=no
3865fi
3866rm -f conftest*
3867
3868fi
3869
3870if test $ac_cv_header_stdc = yes; then
3871  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3872  cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h.  */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h.  */
3878#include <stdlib.h>
3879
3880_ACEOF
3881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882  $EGREP "free" >/dev/null 2>&1; then
3883  :
3884else
3885  ac_cv_header_stdc=no
3886fi
3887rm -f conftest*
3888
3889fi
3890
3891if test $ac_cv_header_stdc = yes; then
3892  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3893  if test "$cross_compiling" = yes; then
3894  :
3895else
3896  cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h.  */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h.  */
3902#include <ctype.h>
3903#include <stdlib.h>
3904#if ((' ' & 0x0FF) == 0x020)
3905# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3907#else
3908# define ISLOWER(c) \
3909		   (('a' <= (c) && (c) <= 'i') \
3910		     || ('j' <= (c) && (c) <= 'r') \
3911		     || ('s' <= (c) && (c) <= 'z'))
3912# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3913#endif
3914
3915#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3916int
3917main ()
3918{
3919  int i;
3920  for (i = 0; i < 256; i++)
3921    if (XOR (islower (i), ISLOWER (i))
3922	|| toupper (i) != TOUPPER (i))
3923      return 2;
3924  return 0;
3925}
3926_ACEOF
3927rm -f conftest$ac_exeext
3928if { (ac_try="$ac_link"
3929case "(($ac_try" in
3930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931  *) ac_try_echo=$ac_try;;
3932esac
3933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934  (eval "$ac_link") 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3938  { (case "(($ac_try" in
3939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940  *) ac_try_echo=$ac_try;;
3941esac
3942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943  (eval "$ac_try") 2>&5
3944  ac_status=$?
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); }; }; then
3947  :
3948else
3949  echo "$as_me: program exited with status $ac_status" >&5
3950echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
3953( exit $ac_status )
3954ac_cv_header_stdc=no
3955fi
3956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3957fi
3958
3959
3960fi
3961fi
3962{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3963echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3964if test $ac_cv_header_stdc = yes; then
3965
3966cat >>confdefs.h <<\_ACEOF
3967#define STDC_HEADERS 1
3968_ACEOF
3969
3970fi
3971
3972# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3983		  inttypes.h stdint.h unistd.h
3984do
3985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3989  echo $ECHO_N "(cached) $ECHO_C" >&6
3990else
3991  cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997$ac_includes_default
3998
3999#include <$ac_header>
4000_ACEOF
4001rm -f conftest.$ac_objext
4002if { (ac_try="$ac_compile"
4003case "(($ac_try" in
4004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005  *) ac_try_echo=$ac_try;;
4006esac
4007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008  (eval "$ac_compile") 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016  { (case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021  (eval "$ac_try") 2>&5
4022  ac_status=$?
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); }; } &&
4025	 { ac_try='test -s conftest.$ac_objext'
4026  { (case "(($ac_try" in
4027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028  *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031  (eval "$ac_try") 2>&5
4032  ac_status=$?
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); }; }; then
4035  eval "$as_ac_Header=yes"
4036else
4037  echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040	eval "$as_ac_Header=no"
4041fi
4042
4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044fi
4045ac_res=`eval echo '${'$as_ac_Header'}'`
4046	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4047echo "${ECHO_T}$ac_res" >&6; }
4048if test `eval echo '${'$as_ac_Header'}'` = yes; then
4049  cat >>confdefs.h <<_ACEOF
4050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051_ACEOF
4052
4053fi
4054
4055done
4056
4057
4058{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4059echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4060if test "${ac_cv_c_bigendian+set}" = set; then
4061  echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063  # See if sys/param.h defines the BYTE_ORDER macro.
4064cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h.  */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h.  */
4070#include <sys/types.h>
4071#include <sys/param.h>
4072
4073int
4074main ()
4075{
4076#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4077 bogus endian macros
4078#endif
4079
4080  ;
4081  return 0;
4082}
4083_ACEOF
4084rm -f conftest.$ac_objext
4085if { (ac_try="$ac_compile"
4086case "(($ac_try" in
4087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088  *) ac_try_echo=$ac_try;;
4089esac
4090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091  (eval "$ac_compile") 2>conftest.er1
4092  ac_status=$?
4093  grep -v '^ *+' conftest.er1 >conftest.err
4094  rm -f conftest.er1
4095  cat conftest.err >&5
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); } &&
4098	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4099  { (case "(($ac_try" in
4100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101  *) ac_try_echo=$ac_try;;
4102esac
4103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104  (eval "$ac_try") 2>&5
4105  ac_status=$?
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); }; } &&
4108	 { ac_try='test -s conftest.$ac_objext'
4109  { (case "(($ac_try" in
4110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111  *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114  (eval "$ac_try") 2>&5
4115  ac_status=$?
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); }; }; then
4118  # It does; now see whether it defined to BIG_ENDIAN or not.
4119cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h.  */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h.  */
4125#include <sys/types.h>
4126#include <sys/param.h>
4127
4128int
4129main ()
4130{
4131#if BYTE_ORDER != BIG_ENDIAN
4132 not big endian
4133#endif
4134
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139rm -f conftest.$ac_objext
4140if { (ac_try="$ac_compile"
4141case "(($ac_try" in
4142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143  *) ac_try_echo=$ac_try;;
4144esac
4145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146  (eval "$ac_compile") 2>conftest.er1
4147  ac_status=$?
4148  grep -v '^ *+' conftest.er1 >conftest.err
4149  rm -f conftest.er1
4150  cat conftest.err >&5
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); } &&
4153	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4154  { (case "(($ac_try" in
4155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156  *) ac_try_echo=$ac_try;;
4157esac
4158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159  (eval "$ac_try") 2>&5
4160  ac_status=$?
4161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162  (exit $ac_status); }; } &&
4163	 { ac_try='test -s conftest.$ac_objext'
4164  { (case "(($ac_try" in
4165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166  *) ac_try_echo=$ac_try;;
4167esac
4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169  (eval "$ac_try") 2>&5
4170  ac_status=$?
4171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172  (exit $ac_status); }; }; then
4173  ac_cv_c_bigendian=yes
4174else
4175  echo "$as_me: failed program was:" >&5
4176sed 's/^/| /' conftest.$ac_ext >&5
4177
4178	ac_cv_c_bigendian=no
4179fi
4180
4181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182else
4183  echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186	# It does not; compile a test program.
4187if test "$cross_compiling" = yes; then
4188  # try to guess the endianness by grepping values into an object file
4189  ac_cv_c_bigendian=unknown
4190  cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h.  */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h.  */
4196short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4197short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4198void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4199short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4200short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4201void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4202int
4203main ()
4204{
4205 _ascii (); _ebcdic ();
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210rm -f conftest.$ac_objext
4211if { (ac_try="$ac_compile"
4212case "(($ac_try" in
4213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214  *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217  (eval "$ac_compile") 2>conftest.er1
4218  ac_status=$?
4219  grep -v '^ *+' conftest.er1 >conftest.err
4220  rm -f conftest.er1
4221  cat conftest.err >&5
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); } &&
4224	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225  { (case "(($ac_try" in
4226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227  *) ac_try_echo=$ac_try;;
4228esac
4229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230  (eval "$ac_try") 2>&5
4231  ac_status=$?
4232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233  (exit $ac_status); }; } &&
4234	 { ac_try='test -s conftest.$ac_objext'
4235  { (case "(($ac_try" in
4236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237  *) ac_try_echo=$ac_try;;
4238esac
4239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240  (eval "$ac_try") 2>&5
4241  ac_status=$?
4242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243  (exit $ac_status); }; }; then
4244  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4245  ac_cv_c_bigendian=yes
4246fi
4247if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4248  if test "$ac_cv_c_bigendian" = unknown; then
4249    ac_cv_c_bigendian=no
4250  else
4251    # finding both strings is unlikely to happen, but who knows?
4252    ac_cv_c_bigendian=unknown
4253  fi
4254fi
4255else
4256  echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
4258
4259
4260fi
4261
4262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263else
4264  cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h.  */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h.  */
4270$ac_includes_default
4271int
4272main ()
4273{
4274
4275  /* Are we little or big endian?  From Harbison&Steele.  */
4276  union
4277  {
4278    long int l;
4279    char c[sizeof (long int)];
4280  } u;
4281  u.l = 1;
4282  return u.c[sizeof (long int) - 1] == 1;
4283
4284  ;
4285  return 0;
4286}
4287_ACEOF
4288rm -f conftest$ac_exeext
4289if { (ac_try="$ac_link"
4290case "(($ac_try" in
4291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292  *) ac_try_echo=$ac_try;;
4293esac
4294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295  (eval "$ac_link") 2>&5
4296  ac_status=$?
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4299  { (case "(($ac_try" in
4300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301  *) ac_try_echo=$ac_try;;
4302esac
4303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304  (eval "$ac_try") 2>&5
4305  ac_status=$?
4306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307  (exit $ac_status); }; }; then
4308  ac_cv_c_bigendian=no
4309else
4310  echo "$as_me: program exited with status $ac_status" >&5
4311echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314( exit $ac_status )
4315ac_cv_c_bigendian=yes
4316fi
4317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4318fi
4319
4320
4321fi
4322
4323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324fi
4325{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4326echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4327case $ac_cv_c_bigendian in
4328  yes)
4329    ENDIAN=big
4330 ;;
4331  no)
4332    ENDIAN=little
4333 ;;
4334  *)
4335    { { echo "$as_me:$LINENO: error: unknown endianness
4336presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4337echo "$as_me: error: unknown endianness
4338presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4339   { (exit 1); exit 1; }; } ;;
4340esac
4341
4342
4343if test "$cross_compiling" = yes; then
4344  LLVM_CROSS_COMPILING=1
4345
4346
4347{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4348echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4349if test "${ac_cv_build_exeext+set}" = set; then
4350  echo $ECHO_N "(cached) $ECHO_C" >&6
4351else
4352  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4353  ac_cv_build_exeext=.exe
4354else
4355  ac_build_prefix=${build_alias}-
4356
4357  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4358set dummy ${ac_build_prefix}gcc; ac_word=$2
4359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4362  echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364  if test -n "$BUILD_CC"; then
4365  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4366else
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370  IFS=$as_save_IFS
4371  test -z "$as_dir" && as_dir=.
4372  for ac_exec_ext in '' $ac_executable_extensions; do
4373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4374    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376    break 2
4377  fi
4378done
4379done
4380IFS=$as_save_IFS
4381
4382fi
4383fi
4384BUILD_CC=$ac_cv_prog_BUILD_CC
4385if test -n "$BUILD_CC"; then
4386  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4387echo "${ECHO_T}$BUILD_CC" >&6; }
4388else
4389  { echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6; }
4391fi
4392
4393
4394  if test -z "$BUILD_CC"; then
4395     # Extract the first word of "gcc", so it can be a program name with args.
4396set dummy gcc; ac_word=$2
4397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4400  echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402  if test -n "$BUILD_CC"; then
4403  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408  IFS=$as_save_IFS
4409  test -z "$as_dir" && as_dir=.
4410  for ac_exec_ext in '' $ac_executable_extensions; do
4411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4412    ac_cv_prog_BUILD_CC="gcc"
4413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414    break 2
4415  fi
4416done
4417done
4418IFS=$as_save_IFS
4419
4420fi
4421fi
4422BUILD_CC=$ac_cv_prog_BUILD_CC
4423if test -n "$BUILD_CC"; then
4424  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4425echo "${ECHO_T}$BUILD_CC" >&6; }
4426else
4427  { echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6; }
4429fi
4430
4431
4432     if test -z "$BUILD_CC"; then
4433       # Extract the first word of "cc", so it can be a program name with args.
4434set dummy cc; ac_word=$2
4435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4438  echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440  if test -n "$BUILD_CC"; then
4441  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442else
4443  ac_prog_rejected=no
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447  IFS=$as_save_IFS
4448  test -z "$as_dir" && as_dir=.
4449  for ac_exec_ext in '' $ac_executable_extensions; do
4450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4452       ac_prog_rejected=yes
4453       continue
4454     fi
4455    ac_cv_prog_BUILD_CC="cc"
4456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457    break 2
4458  fi
4459done
4460done
4461IFS=$as_save_IFS
4462
4463if test $ac_prog_rejected = yes; then
4464  # We found a bogon in the path, so make sure we never use it.
4465  set dummy $ac_cv_prog_BUILD_CC
4466  shift
4467  if test $# != 0; then
4468    # We chose a different compiler from the bogus one.
4469    # However, it has the same basename, so the bogon will be chosen
4470    # first if we set BUILD_CC to just the basename; use the full file name.
4471    shift
4472    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4473  fi
4474fi
4475fi
4476fi
4477BUILD_CC=$ac_cv_prog_BUILD_CC
4478if test -n "$BUILD_CC"; then
4479  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4480echo "${ECHO_T}$BUILD_CC" >&6; }
4481else
4482  { echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6; }
4484fi
4485
4486
4487     fi
4488  fi
4489  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4490echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4491   { (exit 1); exit 1; }; }
4492  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4493  rm -f conftest*
4494  echo 'int main () { return 0; }' > conftest.$ac_ext
4495  ac_cv_build_exeext=
4496  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4497  (eval $ac_build_link) 2>&5
4498  ac_status=$?
4499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500  (exit $ac_status); }; then
4501    for file in conftest.*; do
4502      case $file in
4503      *.c | *.o | *.obj | *.dSYM) ;;
4504      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4505      esac
4506    done
4507  else
4508    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4509echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4510   { (exit 1); exit 1; }; }
4511  fi
4512  rm -f conftest*
4513  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4514fi
4515fi
4516
4517BUILD_EXEEXT=""
4518test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4519{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4520echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4521ac_build_exeext=$BUILD_EXEEXT
4522
4523  ac_build_prefix=${build_alias}-
4524  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4525set dummy ${ac_build_prefix}g++; ac_word=$2
4526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  if test -n "$BUILD_CXX"; then
4532  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537  IFS=$as_save_IFS
4538  test -z "$as_dir" && as_dir=.
4539  for ac_exec_ext in '' $ac_executable_extensions; do
4540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4541    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543    break 2
4544  fi
4545done
4546done
4547IFS=$as_save_IFS
4548
4549fi
4550fi
4551BUILD_CXX=$ac_cv_prog_BUILD_CXX
4552if test -n "$BUILD_CXX"; then
4553  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4554echo "${ECHO_T}$BUILD_CXX" >&6; }
4555else
4556  { echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6; }
4558fi
4559
4560
4561  if test -z "$BUILD_CXX"; then
4562     # Extract the first word of "g++", so it can be a program name with args.
4563set dummy g++; ac_word=$2
4564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4567  echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569  if test -n "$BUILD_CXX"; then
4570  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575  IFS=$as_save_IFS
4576  test -z "$as_dir" && as_dir=.
4577  for ac_exec_ext in '' $ac_executable_extensions; do
4578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4579    ac_cv_prog_BUILD_CXX="g++"
4580    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581    break 2
4582  fi
4583done
4584done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589BUILD_CXX=$ac_cv_prog_BUILD_CXX
4590if test -n "$BUILD_CXX"; then
4591  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4592echo "${ECHO_T}$BUILD_CXX" >&6; }
4593else
4594  { echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6; }
4596fi
4597
4598
4599     if test -z "$BUILD_CXX"; then
4600       # Extract the first word of "c++", so it can be a program name with args.
4601set dummy c++; ac_word=$2
4602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4605  echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607  if test -n "$BUILD_CXX"; then
4608  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4609else
4610  ac_prog_rejected=no
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616  for ac_exec_ext in '' $ac_executable_extensions; do
4617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4619       ac_prog_rejected=yes
4620       continue
4621     fi
4622    ac_cv_prog_BUILD_CXX="c++"
4623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624    break 2
4625  fi
4626done
4627done
4628IFS=$as_save_IFS
4629
4630if test $ac_prog_rejected = yes; then
4631  # We found a bogon in the path, so make sure we never use it.
4632  set dummy $ac_cv_prog_BUILD_CXX
4633  shift
4634  if test $# != 0; then
4635    # We chose a different compiler from the bogus one.
4636    # However, it has the same basename, so the bogon will be chosen
4637    # first if we set BUILD_CXX to just the basename; use the full file name.
4638    shift
4639    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4640  fi
4641fi
4642fi
4643fi
4644BUILD_CXX=$ac_cv_prog_BUILD_CXX
4645if test -n "$BUILD_CXX"; then
4646  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4647echo "${ECHO_T}$BUILD_CXX" >&6; }
4648else
4649  { echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6; }
4651fi
4652
4653
4654     fi
4655  fi
4656else
4657  LLVM_CROSS_COMPILING=0
4658
4659fi
4660
4661if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4662  cvsbuild="yes"
4663  optimize="no"
4664  CVSBUILD=CVSBUILD=1
4665
4666else
4667  cvsbuild="no"
4668  optimize="yes"
4669fi
4670
4671
4672# Check whether --enable-optimized was given.
4673if test "${enable_optimized+set}" = set; then
4674  enableval=$enable_optimized;
4675else
4676  enableval=$optimize
4677fi
4678
4679if test ${enableval} = "no" ; then
4680  ENABLE_OPTIMIZED=
4681
4682else
4683  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4684
4685fi
4686
4687# Check whether --enable-profiling was given.
4688if test "${enable_profiling+set}" = set; then
4689  enableval=$enable_profiling;
4690else
4691  enableval="no"
4692fi
4693
4694if test ${enableval} = "no" ; then
4695  ENABLE_PROFILING=
4696
4697else
4698  ENABLE_PROFILING=ENABLE_PROFILING=1
4699
4700fi
4701
4702# Check whether --enable-assertions was given.
4703if test "${enable_assertions+set}" = set; then
4704  enableval=$enable_assertions;
4705else
4706  enableval="yes"
4707fi
4708
4709if test ${enableval} = "yes" ; then
4710  DISABLE_ASSERTIONS=
4711
4712else
4713  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4714
4715fi
4716
4717# Check whether --enable-expensive-checks was given.
4718if test "${enable_expensive_checks+set}" = set; then
4719  enableval=$enable_expensive_checks;
4720else
4721  enableval="no"
4722fi
4723
4724if test ${enableval} = "yes" ; then
4725  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4726
4727  EXPENSIVE_CHECKS=yes
4728
4729else
4730  ENABLE_EXPENSIVE_CHECKS=
4731
4732  EXPENSIVE_CHECKS=no
4733
4734fi
4735
4736# Check whether --enable-debug-runtime was given.
4737if test "${enable_debug_runtime+set}" = set; then
4738  enableval=$enable_debug_runtime;
4739else
4740  enableval=no
4741fi
4742
4743if test ${enableval} = "no" ; then
4744  DEBUG_RUNTIME=
4745
4746else
4747  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4748
4749fi
4750
4751# Check whether --enable-debug-symbols was given.
4752if test "${enable_debug_symbols+set}" = set; then
4753  enableval=$enable_debug_symbols;
4754else
4755  enableval=no
4756fi
4757
4758if test ${enableval} = "no" ; then
4759  DEBUG_SYMBOLS=
4760
4761else
4762  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4763
4764fi
4765
4766# Check whether --enable-jit was given.
4767if test "${enable_jit+set}" = set; then
4768  enableval=$enable_jit;
4769else
4770  enableval=default
4771fi
4772
4773if test ${enableval} = "no"
4774then
4775  JIT=
4776
4777else
4778  case "$llvm_cv_target_arch" in
4779    x86)         TARGET_HAS_JIT=1
4780 ;;
4781    Sparc)       TARGET_HAS_JIT=0
4782 ;;
4783    PowerPC)     TARGET_HAS_JIT=1
4784 ;;
4785    x86_64)      TARGET_HAS_JIT=1
4786 ;;
4787    Alpha)       TARGET_HAS_JIT=1
4788 ;;
4789    ARM)         TARGET_HAS_JIT=1
4790 ;;
4791    Mips)        TARGET_HAS_JIT=0
4792 ;;
4793    PIC16)       TARGET_HAS_JIT=0
4794 ;;
4795    XCore)       TARGET_HAS_JIT=0
4796 ;;
4797    MSP430)      TARGET_HAS_JIT=0
4798 ;;
4799    SystemZ)     TARGET_HAS_JIT=0
4800 ;;
4801    Blackfin)    TARGET_HAS_JIT=0
4802 ;;
4803    MBlaze)      TARGET_HAS_JIT=0
4804 ;;
4805    *)           TARGET_HAS_JIT=0
4806 ;;
4807  esac
4808fi
4809
4810# Check whether --enable-doxygen was given.
4811if test "${enable_doxygen+set}" = set; then
4812  enableval=$enable_doxygen;
4813else
4814  enableval=default
4815fi
4816
4817case "$enableval" in
4818  yes) ENABLE_DOXYGEN=1
4819 ;;
4820  no)  ENABLE_DOXYGEN=0
4821 ;;
4822  default) ENABLE_DOXYGEN=0
4823 ;;
4824  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4825echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4826   { (exit 1); exit 1; }; } ;;
4827esac
4828
4829# Check whether --enable-threads was given.
4830if test "${enable_threads+set}" = set; then
4831  enableval=$enable_threads;
4832else
4833  enableval=default
4834fi
4835
4836case "$enableval" in
4837  yes) ENABLE_THREADS=1
4838 ;;
4839  no)  ENABLE_THREADS=0
4840 ;;
4841  default) ENABLE_THREADS=1
4842 ;;
4843  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4844echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4845   { (exit 1); exit 1; }; } ;;
4846esac
4847
4848cat >>confdefs.h <<_ACEOF
4849#define ENABLE_THREADS $ENABLE_THREADS
4850_ACEOF
4851
4852
4853# Check whether --enable-pic was given.
4854if test "${enable_pic+set}" = set; then
4855  enableval=$enable_pic;
4856else
4857  enableval=default
4858fi
4859
4860case "$enableval" in
4861  yes) ENABLE_PIC=1
4862 ;;
4863  no)  ENABLE_PIC=0
4864 ;;
4865  default) ENABLE_PIC=1
4866 ;;
4867  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4868echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4869   { (exit 1); exit 1; }; } ;;
4870esac
4871
4872cat >>confdefs.h <<_ACEOF
4873#define ENABLE_PIC $ENABLE_PIC
4874_ACEOF
4875
4876
4877# Check whether --enable-shared was given.
4878if test "${enable_shared+set}" = set; then
4879  enableval=$enable_shared;
4880else
4881  enableval=default
4882fi
4883
4884case "$enableval" in
4885  yes) ENABLE_SHARED=1
4886 ;;
4887  no)  ENABLE_SHARED=0
4888 ;;
4889  default) ENABLE_SHARED=0
4890 ;;
4891  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4892echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4893   { (exit 1); exit 1; }; } ;;
4894esac
4895
4896TARGETS_TO_BUILD=""
4897# Check whether --enable-targets was given.
4898if test "${enable_targets+set}" = set; then
4899  enableval=$enable_targets;
4900else
4901  enableval=all
4902fi
4903
4904if test "$enableval" = host-only ; then
4905  enableval=host
4906fi
4907case "$enableval" in
4908  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4909  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4910      case "$a_target" in
4911        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4913        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4914        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4915        alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4916        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4917        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4918        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4919        pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4920        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4921        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4922        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4923        blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4924        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925        msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4926        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4927        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4928        host) case "$llvm_cv_target_arch" in
4929            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4930            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4931            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4932            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4933            Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4934            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4935            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4936            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4937            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4938            PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4939            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4940            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4941            s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4942            Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4943            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4944echo "$as_me: error: Can not set target to build" >&2;}
4945   { (exit 1); exit 1; }; } ;;
4946          esac ;;
4947        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4948echo "$as_me: error: Unrecognized target $a_target" >&2;}
4949   { (exit 1); exit 1; }; } ;;
4950      esac
4951  done
4952  ;;
4953esac
4954TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4955
4956
4957# Determine whether we are building LLVM support for the native architecture.
4958# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4959for a_target in $TARGETS_TO_BUILD; do
4960  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4961    LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4962
4963cat >>confdefs.h <<_ACEOF
4964#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4965_ACEOF
4966
4967  fi
4968done
4969
4970# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4971# target feature def files.
4972LLVM_ENUM_TARGETS=""
4973LLVM_ENUM_ASM_PRINTERS=""
4974LLVM_ENUM_ASM_PARSERS=""
4975LLVM_ENUM_DISASSEMBLERS=""
4976for target_to_build in $TARGETS_TO_BUILD; do
4977  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4978  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4979    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4980  fi
4981  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4982    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4983  fi
4984  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4985    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4986  fi
4987done
4988
4989
4990
4991
4992
4993# Check whether --enable-cbe-printf-a was given.
4994if test "${enable_cbe_printf_a+set}" = set; then
4995  enableval=$enable_cbe_printf_a;
4996else
4997  enableval=default
4998fi
4999
5000case "$enableval" in
5001  yes) ENABLE_CBE_PRINTF_A=1
5002 ;;
5003  no)  ENABLE_CBE_PRINTF_A=0
5004 ;;
5005  default)  ENABLE_CBE_PRINTF_A=1
5006 ;;
5007  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5008echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5009   { (exit 1); exit 1; }; } ;;
5010esac
5011
5012cat >>confdefs.h <<_ACEOF
5013#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5014_ACEOF
5015
5016
5017
5018# Check whether --with-llvmgccdir was given.
5019if test "${with_llvmgccdir+set}" = set; then
5020  withval=$with_llvmgccdir;
5021else
5022  withval=default
5023fi
5024
5025case "$withval" in
5026  default) WITH_LLVMGCCDIR=default ;;
5027  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5028  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5029echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5030   { (exit 1); exit 1; }; } ;;
5031esac
5032
5033
5034# Check whether --with-llvmgcc was given.
5035if test "${with_llvmgcc+set}" = set; then
5036  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5037      WITH_LLVMGCCDIR=""
5038fi
5039
5040
5041
5042# Check whether --with-llvmgxx was given.
5043if test "${with_llvmgxx+set}" = set; then
5044  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5045    WITH_LLVMGCCDIR=""
5046fi
5047
5048
5049if test -n "$LLVMGCC"; then
5050   LLVMGCCCOMMAND="$LLVMGCC"
5051fi
5052
5053if test -n "$LLVMGXX"; then
5054   LLVMGXXCOMMAND="$LLVMGXX"
5055fi
5056
5057if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5058   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5059echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5060   { (exit 1); exit 1; }; };
5061fi
5062
5063if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5064   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5065echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5066   { (exit 1); exit 1; }; };
5067fi
5068
5069
5070# Check whether --with-clang was given.
5071if test "${with_clang+set}" = set; then
5072  withval=$with_clang;
5073else
5074  with_clang=default
5075fi
5076
5077
5078
5079# Check whether --with-built-clang was given.
5080if test "${with_built_clang+set}" = set; then
5081  withval=$with_built_clang;
5082else
5083  with_built_clang=check
5084fi
5085
5086
5087{ echo "$as_me:$LINENO: checking clang compiler" >&5
5088echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5089WITH_CLANGPATH=""
5090WITH_BUILT_CLANG=0
5091if test "$with_clang" != "default"; then
5092   WITH_CLANGPATH="$with_clang"
5093   if ! test -x "$WITH_CLANGPATH"; then
5094     { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5095echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5096   { (exit 1); exit 1; }; }
5097   fi
5098elif test "$with_built_clang" = "yes"; then
5099   WITH_BUILT_CLANG=1
5100elif test "$with_built_clang" = "no"; then
5101   WITH_BUILT_CLANG=0
5102else
5103   if test "$with_built_clang" != "check"; then
5104      { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5105echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5106   { (exit 1); exit 1; }; }
5107   fi
5108
5109   if test -f ${srcdir}/tools/clang/README.txt; then
5110     WITH_BUILT_CLANG=1
5111   fi
5112fi
5113
5114if ! test -z "$WITH_CLANGPATH"; then
5115   { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5116echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5117   WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5118elif test "$WITH_BUILT_CLANG" = "1"; then
5119   { echo "$as_me:$LINENO: result: built" >&5
5120echo "${ECHO_T}built" >&6; }
5121else
5122   { echo "$as_me:$LINENO: result: none" >&5
5123echo "${ECHO_T}none" >&6; }
5124fi
5125CLANGPATH=$WITH_CLANGPATH
5126
5127CLANGXXPATH=$WITH_CLANGXXPATH
5128
5129ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5130
5131
5132
5133# Check whether --with-optimize-option was given.
5134if test "${with_optimize_option+set}" = set; then
5135  withval=$with_optimize_option;
5136else
5137  withval=default
5138fi
5139
5140{ echo "$as_me:$LINENO: checking optimization flags" >&5
5141echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5142case "$withval" in
5143  default)
5144    case "$llvm_cv_os_type" in
5145    MingW) optimize_option=-O3 ;;
5146    *)     optimize_option=-O2 ;;
5147    esac ;;
5148  *) optimize_option="$withval" ;;
5149esac
5150OPTIMIZE_OPTION=$optimize_option
5151
5152{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5153echo "${ECHO_T}$optimize_option" >&6; }
5154
5155
5156# Check whether --with-extra-options was given.
5157if test "${with_extra_options+set}" = set; then
5158  withval=$with_extra_options;
5159else
5160  withval=default
5161fi
5162
5163case "$withval" in
5164  default) EXTRA_OPTIONS= ;;
5165  *) EXTRA_OPTIONS=$withval ;;
5166esac
5167EXTRA_OPTIONS=$EXTRA_OPTIONS
5168
5169
5170# Check whether --enable-bindings was given.
5171if test "${enable_bindings+set}" = set; then
5172  enableval=$enable_bindings;
5173else
5174  enableval=default
5175fi
5176
5177BINDINGS_TO_BUILD=""
5178case "$enableval" in
5179  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5180  all ) BINDINGS_TO_BUILD="ocaml" ;;
5181  none | no) BINDINGS_TO_BUILD="" ;;
5182  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5183      case "$a_binding" in
5184        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5185        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5186echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5187   { (exit 1); exit 1; }; } ;;
5188      esac
5189  done
5190  ;;
5191esac
5192
5193
5194# Check whether --with-ocaml-libdir was given.
5195if test "${with_ocaml_libdir+set}" = set; then
5196  withval=$with_ocaml_libdir;
5197else
5198  withval=auto
5199fi
5200
5201case "$withval" in
5202  auto) with_ocaml_libdir="$withval" ;;
5203  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5204  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5205echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5206   { (exit 1); exit 1; }; } ;;
5207esac
5208
5209
5210# Check whether --with-c-include-dirs was given.
5211if test "${with_c_include_dirs+set}" = set; then
5212  withval=$with_c_include_dirs;
5213else
5214  withval=""
5215fi
5216
5217
5218cat >>confdefs.h <<_ACEOF
5219#define C_INCLUDE_DIRS "$withval"
5220_ACEOF
5221
5222
5223
5224# Check whether --with-cxx-include-root was given.
5225if test "${with_cxx_include_root+set}" = set; then
5226  withval=$with_cxx_include_root;
5227else
5228  withval=""
5229fi
5230
5231
5232cat >>confdefs.h <<_ACEOF
5233#define CXX_INCLUDE_ROOT "$withval"
5234_ACEOF
5235
5236
5237
5238# Check whether --with-cxx-include-arch was given.
5239if test "${with_cxx_include_arch+set}" = set; then
5240  withval=$with_cxx_include_arch;
5241else
5242  withval=""
5243fi
5244
5245
5246cat >>confdefs.h <<_ACEOF
5247#define CXX_INCLUDE_ARCH "$withval"
5248_ACEOF
5249
5250
5251
5252# Check whether --with-cxx-include-32bit-dir was given.
5253if test "${with_cxx_include_32bit_dir+set}" = set; then
5254  withval=$with_cxx_include_32bit_dir;
5255else
5256  withval=""
5257fi
5258
5259
5260cat >>confdefs.h <<_ACEOF
5261#define CXX_INCLUDE_32BIT_DIR "$withval"
5262_ACEOF
5263
5264
5265
5266# Check whether --with-cxx-include-64bit-dir was given.
5267if test "${with_cxx_include_64bit_dir+set}" = set; then
5268  withval=$with_cxx_include_64bit_dir;
5269else
5270  withval=""
5271fi
5272
5273
5274cat >>confdefs.h <<_ACEOF
5275#define CXX_INCLUDE_64BIT_DIR "$withval"
5276_ACEOF
5277
5278
5279
5280# Check whether --with-binutils-include was given.
5281if test "${with_binutils_include+set}" = set; then
5282  withval=$with_binutils_include;
5283else
5284  withval=default
5285fi
5286
5287case "$withval" in
5288  default) WITH_BINUTILS_INCDIR=default ;;
5289  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5290  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5291echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5292   { (exit 1); exit 1; }; } ;;
5293esac
5294if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5295  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5296
5297  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5298     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5299     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5300echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5301   { (exit 1); exit 1; }; };
5302  fi
5303fi
5304
5305# Check whether --enable-libffi was given.
5306if test "${enable_libffi+set}" = set; then
5307  enableval=$enable_libffi; case "$enableval" in
5308    yes) llvm_cv_enable_libffi="yes" ;;
5309    no)  llvm_cv_enable_libffi="no"  ;;
5310    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5311echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5312   { (exit 1); exit 1; }; } ;;
5313  esac
5314else
5315  llvm_cv_enable_libffi=no
5316fi
5317
5318
5319if test "$llvm_cv_os_type" = "Win32" ; then
5320   llvmc_dynamic="yes"
5321else
5322   llvmc_dynamic="no"
5323fi
5324
5325# Check whether --enable-llvmc-dynamic was given.
5326if test "${enable_llvmc_dynamic+set}" = set; then
5327  enableval=$enable_llvmc_dynamic;
5328else
5329  enableval=$llvmc_dynamic
5330fi
5331
5332if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5333   ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5334
5335else
5336   ENABLE_LLVMC_DYNAMIC=
5337
5338fi
5339
5340# Check whether --enable-llvmc-dynamic-plugins was given.
5341if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5342  enableval=$enable_llvmc_dynamic_plugins;
5343else
5344  enableval=yes
5345fi
5346
5347if test ${enableval} = "yes" ; then
5348   ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5349
5350else
5351   ENABLE_LLVMC_DYNAMIC_PLUGINS=
5352
5353fi
5354
5355
5356ac_ext=c
5357ac_cpp='$CPP $CPPFLAGS'
5358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5362echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5363# On Suns, sometimes $CPP names a directory.
5364if test -n "$CPP" && test -d "$CPP"; then
5365  CPP=
5366fi
5367if test -z "$CPP"; then
5368  if test "${ac_cv_prog_CPP+set}" = set; then
5369  echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371      # Double quotes because CPP needs to be expanded
5372    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5373    do
5374      ac_preproc_ok=false
5375for ac_c_preproc_warn_flag in '' yes
5376do
5377  # Use a header file that comes with gcc, so configuring glibc
5378  # with a fresh cross-compiler works.
5379  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380  # <limits.h> exists even on freestanding compilers.
5381  # On the NeXT, cc -E runs the code through the compiler's parser,
5382  # not just through cpp. "Syntax error" is here to catch this case.
5383  cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h.  */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h.  */
5389#ifdef __STDC__
5390# include <limits.h>
5391#else
5392# include <assert.h>
5393#endif
5394		     Syntax error
5395_ACEOF
5396if { (ac_try="$ac_cpp conftest.$ac_ext"
5397case "(($ac_try" in
5398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399  *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5403  ac_status=$?
5404  grep -v '^ *+' conftest.er1 >conftest.err
5405  rm -f conftest.er1
5406  cat conftest.err >&5
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); } >/dev/null; then
5409  if test -s conftest.err; then
5410    ac_cpp_err=$ac_c_preproc_warn_flag
5411    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5412  else
5413    ac_cpp_err=
5414  fi
5415else
5416  ac_cpp_err=yes
5417fi
5418if test -z "$ac_cpp_err"; then
5419  :
5420else
5421  echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
5424  # Broken: fails on valid input.
5425continue
5426fi
5427
5428rm -f conftest.err conftest.$ac_ext
5429
5430  # OK, works on sane cases.  Now check whether nonexistent headers
5431  # can be detected and how.
5432  cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h.  */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h.  */
5438#include <ac_nonexistent.h>
5439_ACEOF
5440if { (ac_try="$ac_cpp conftest.$ac_ext"
5441case "(($ac_try" in
5442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443  *) ac_try_echo=$ac_try;;
5444esac
5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5447  ac_status=$?
5448  grep -v '^ *+' conftest.er1 >conftest.err
5449  rm -f conftest.er1
5450  cat conftest.err >&5
5451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452  (exit $ac_status); } >/dev/null; then
5453  if test -s conftest.err; then
5454    ac_cpp_err=$ac_c_preproc_warn_flag
5455    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5456  else
5457    ac_cpp_err=
5458  fi
5459else
5460  ac_cpp_err=yes
5461fi
5462if test -z "$ac_cpp_err"; then
5463  # Broken: success on invalid input.
5464continue
5465else
5466  echo "$as_me: failed program was:" >&5
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
5469  # Passes both tests.
5470ac_preproc_ok=:
5471break
5472fi
5473
5474rm -f conftest.err conftest.$ac_ext
5475
5476done
5477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478rm -f conftest.err conftest.$ac_ext
5479if $ac_preproc_ok; then
5480  break
5481fi
5482
5483    done
5484    ac_cv_prog_CPP=$CPP
5485
5486fi
5487  CPP=$ac_cv_prog_CPP
5488else
5489  ac_cv_prog_CPP=$CPP
5490fi
5491{ echo "$as_me:$LINENO: result: $CPP" >&5
5492echo "${ECHO_T}$CPP" >&6; }
5493ac_preproc_ok=false
5494for ac_c_preproc_warn_flag in '' yes
5495do
5496  # Use a header file that comes with gcc, so configuring glibc
5497  # with a fresh cross-compiler works.
5498  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499  # <limits.h> exists even on freestanding compilers.
5500  # On the NeXT, cc -E runs the code through the compiler's parser,
5501  # not just through cpp. "Syntax error" is here to catch this case.
5502  cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h.  */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h.  */
5508#ifdef __STDC__
5509# include <limits.h>
5510#else
5511# include <assert.h>
5512#endif
5513		     Syntax error
5514_ACEOF
5515if { (ac_try="$ac_cpp conftest.$ac_ext"
5516case "(($ac_try" in
5517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518  *) ac_try_echo=$ac_try;;
5519esac
5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5522  ac_status=$?
5523  grep -v '^ *+' conftest.er1 >conftest.err
5524  rm -f conftest.er1
5525  cat conftest.err >&5
5526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527  (exit $ac_status); } >/dev/null; then
5528  if test -s conftest.err; then
5529    ac_cpp_err=$ac_c_preproc_warn_flag
5530    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5531  else
5532    ac_cpp_err=
5533  fi
5534else
5535  ac_cpp_err=yes
5536fi
5537if test -z "$ac_cpp_err"; then
5538  :
5539else
5540  echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
5543  # Broken: fails on valid input.
5544continue
5545fi
5546
5547rm -f conftest.err conftest.$ac_ext
5548
5549  # OK, works on sane cases.  Now check whether nonexistent headers
5550  # can be detected and how.
5551  cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h.  */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h.  */
5557#include <ac_nonexistent.h>
5558_ACEOF
5559if { (ac_try="$ac_cpp conftest.$ac_ext"
5560case "(($ac_try" in
5561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562  *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5566  ac_status=$?
5567  grep -v '^ *+' conftest.er1 >conftest.err
5568  rm -f conftest.er1
5569  cat conftest.err >&5
5570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); } >/dev/null; then
5572  if test -s conftest.err; then
5573    ac_cpp_err=$ac_c_preproc_warn_flag
5574    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5575  else
5576    ac_cpp_err=
5577  fi
5578else
5579  ac_cpp_err=yes
5580fi
5581if test -z "$ac_cpp_err"; then
5582  # Broken: success on invalid input.
5583continue
5584else
5585  echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
5588  # Passes both tests.
5589ac_preproc_ok=:
5590break
5591fi
5592
5593rm -f conftest.err conftest.$ac_ext
5594
5595done
5596# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5597rm -f conftest.err conftest.$ac_ext
5598if $ac_preproc_ok; then
5599  :
5600else
5601  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5602See \`config.log' for more details." >&5
5603echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5604See \`config.log' for more details." >&2;}
5605   { (exit 1); exit 1; }; }
5606fi
5607
5608ac_ext=c
5609ac_cpp='$CPP $CPPFLAGS'
5610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5612ac_compiler_gnu=$ac_cv_c_compiler_gnu
5613
5614ac_ext=c
5615ac_cpp='$CPP $CPPFLAGS'
5616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619if test -n "$ac_tool_prefix"; then
5620  for ac_prog in gcc
5621  do
5622    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5626if test "${ac_cv_prog_CC+set}" = set; then
5627  echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629  if test -n "$CC"; then
5630  ac_cv_prog_CC="$CC" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635  IFS=$as_save_IFS
5636  test -z "$as_dir" && as_dir=.
5637  for ac_exec_ext in '' $ac_executable_extensions; do
5638  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5639    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641    break 2
5642  fi
5643done
5644done
5645IFS=$as_save_IFS
5646
5647fi
5648fi
5649CC=$ac_cv_prog_CC
5650if test -n "$CC"; then
5651  { echo "$as_me:$LINENO: result: $CC" >&5
5652echo "${ECHO_T}$CC" >&6; }
5653else
5654  { echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6; }
5656fi
5657
5658
5659    test -n "$CC" && break
5660  done
5661fi
5662if test -z "$CC"; then
5663  ac_ct_CC=$CC
5664  for ac_prog in gcc
5665do
5666  # Extract the first word of "$ac_prog", so it can be a program name with args.
5667set dummy $ac_prog; ac_word=$2
5668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5670if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673  if test -n "$ac_ct_CC"; then
5674  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5675else
5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679  IFS=$as_save_IFS
5680  test -z "$as_dir" && as_dir=.
5681  for ac_exec_ext in '' $ac_executable_extensions; do
5682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5683    ac_cv_prog_ac_ct_CC="$ac_prog"
5684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685    break 2
5686  fi
5687done
5688done
5689IFS=$as_save_IFS
5690
5691fi
5692fi
5693ac_ct_CC=$ac_cv_prog_ac_ct_CC
5694if test -n "$ac_ct_CC"; then
5695  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5696echo "${ECHO_T}$ac_ct_CC" >&6; }
5697else
5698  { echo "$as_me:$LINENO: result: no" >&5
5699echo "${ECHO_T}no" >&6; }
5700fi
5701
5702
5703  test -n "$ac_ct_CC" && break
5704done
5705
5706  if test "x$ac_ct_CC" = x; then
5707    CC=""
5708  else
5709    case $cross_compiling:$ac_tool_warned in
5710yes:)
5711{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5712whose name does not start with the host triplet.  If you think this
5713configuration is useful to you, please write to autoconf@gnu.org." >&5
5714echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5715whose name does not start with the host triplet.  If you think this
5716configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5717ac_tool_warned=yes ;;
5718esac
5719    CC=$ac_ct_CC
5720  fi
5721fi
5722
5723
5724test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5725See \`config.log' for more details." >&5
5726echo "$as_me: error: no acceptable C compiler found in \$PATH
5727See \`config.log' for more details." >&2;}
5728   { (exit 1); exit 1; }; }
5729
5730# Provide some information about the compiler.
5731echo "$as_me:$LINENO: checking for C compiler version" >&5
5732ac_compiler=`set X $ac_compile; echo $2`
5733{ (ac_try="$ac_compiler --version >&5"
5734case "(($ac_try" in
5735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736  *) ac_try_echo=$ac_try;;
5737esac
5738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739  (eval "$ac_compiler --version >&5") 2>&5
5740  ac_status=$?
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); }
5743{ (ac_try="$ac_compiler -v >&5"
5744case "(($ac_try" in
5745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746  *) ac_try_echo=$ac_try;;
5747esac
5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749  (eval "$ac_compiler -v >&5") 2>&5
5750  ac_status=$?
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); }
5753{ (ac_try="$ac_compiler -V >&5"
5754case "(($ac_try" in
5755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756  *) ac_try_echo=$ac_try;;
5757esac
5758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759  (eval "$ac_compiler -V >&5") 2>&5
5760  ac_status=$?
5761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762  (exit $ac_status); }
5763
5764{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5765echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5766if test "${ac_cv_c_compiler_gnu+set}" = set; then
5767  echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769  cat >conftest.$ac_ext <<_ACEOF
5770/* confdefs.h.  */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
5774/* end confdefs.h.  */
5775
5776int
5777main ()
5778{
5779#ifndef __GNUC__
5780       choke me
5781#endif
5782
5783  ;
5784  return 0;
5785}
5786_ACEOF
5787rm -f conftest.$ac_objext
5788if { (ac_try="$ac_compile"
5789case "(($ac_try" in
5790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791  *) ac_try_echo=$ac_try;;
5792esac
5793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794  (eval "$ac_compile") 2>conftest.er1
5795  ac_status=$?
5796  grep -v '^ *+' conftest.er1 >conftest.err
5797  rm -f conftest.er1
5798  cat conftest.err >&5
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); } &&
5801	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5802  { (case "(($ac_try" in
5803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804  *) ac_try_echo=$ac_try;;
5805esac
5806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807  (eval "$ac_try") 2>&5
5808  ac_status=$?
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); }; } &&
5811	 { ac_try='test -s conftest.$ac_objext'
5812  { (case "(($ac_try" in
5813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814  *) ac_try_echo=$ac_try;;
5815esac
5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817  (eval "$ac_try") 2>&5
5818  ac_status=$?
5819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820  (exit $ac_status); }; }; then
5821  ac_compiler_gnu=yes
5822else
5823  echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826	ac_compiler_gnu=no
5827fi
5828
5829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830ac_cv_c_compiler_gnu=$ac_compiler_gnu
5831
5832fi
5833{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5834echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5835GCC=`test $ac_compiler_gnu = yes && echo yes`
5836ac_test_CFLAGS=${CFLAGS+set}
5837ac_save_CFLAGS=$CFLAGS
5838{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5839echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5840if test "${ac_cv_prog_cc_g+set}" = set; then
5841  echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843  ac_save_c_werror_flag=$ac_c_werror_flag
5844   ac_c_werror_flag=yes
5845   ac_cv_prog_cc_g=no
5846   CFLAGS="-g"
5847   cat >conftest.$ac_ext <<_ACEOF
5848/* confdefs.h.  */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h.  */
5853
5854int
5855main ()
5856{
5857
5858  ;
5859  return 0;
5860}
5861_ACEOF
5862rm -f conftest.$ac_objext
5863if { (ac_try="$ac_compile"
5864case "(($ac_try" in
5865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866  *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869  (eval "$ac_compile") 2>conftest.er1
5870  ac_status=$?
5871  grep -v '^ *+' conftest.er1 >conftest.err
5872  rm -f conftest.er1
5873  cat conftest.err >&5
5874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875  (exit $ac_status); } &&
5876	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877  { (case "(($ac_try" in
5878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879  *) ac_try_echo=$ac_try;;
5880esac
5881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882  (eval "$ac_try") 2>&5
5883  ac_status=$?
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); }; } &&
5886	 { ac_try='test -s conftest.$ac_objext'
5887  { (case "(($ac_try" in
5888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889  *) ac_try_echo=$ac_try;;
5890esac
5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892  (eval "$ac_try") 2>&5
5893  ac_status=$?
5894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895  (exit $ac_status); }; }; then
5896  ac_cv_prog_cc_g=yes
5897else
5898  echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901	CFLAGS=""
5902      cat >conftest.$ac_ext <<_ACEOF
5903/* confdefs.h.  */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
5907/* end confdefs.h.  */
5908
5909int
5910main ()
5911{
5912
5913  ;
5914  return 0;
5915}
5916_ACEOF
5917rm -f conftest.$ac_objext
5918if { (ac_try="$ac_compile"
5919case "(($ac_try" in
5920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921  *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924  (eval "$ac_compile") 2>conftest.er1
5925  ac_status=$?
5926  grep -v '^ *+' conftest.er1 >conftest.err
5927  rm -f conftest.er1
5928  cat conftest.err >&5
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); } &&
5931	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932  { (case "(($ac_try" in
5933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934  *) ac_try_echo=$ac_try;;
5935esac
5936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937  (eval "$ac_try") 2>&5
5938  ac_status=$?
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); }; } &&
5941	 { ac_try='test -s conftest.$ac_objext'
5942  { (case "(($ac_try" in
5943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944  *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947  (eval "$ac_try") 2>&5
5948  ac_status=$?
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); }; }; then
5951  :
5952else
5953  echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956	ac_c_werror_flag=$ac_save_c_werror_flag
5957	 CFLAGS="-g"
5958	 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h.  */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h.  */
5964
5965int
5966main ()
5967{
5968
5969  ;
5970  return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (ac_try="$ac_compile"
5975case "(($ac_try" in
5976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977  *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980  (eval "$ac_compile") 2>conftest.er1
5981  ac_status=$?
5982  grep -v '^ *+' conftest.er1 >conftest.err
5983  rm -f conftest.er1
5984  cat conftest.err >&5
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); } &&
5987	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5988  { (case "(($ac_try" in
5989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990  *) ac_try_echo=$ac_try;;
5991esac
5992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993  (eval "$ac_try") 2>&5
5994  ac_status=$?
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); }; } &&
5997	 { ac_try='test -s conftest.$ac_objext'
5998  { (case "(($ac_try" in
5999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000  *) ac_try_echo=$ac_try;;
6001esac
6002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003  (eval "$ac_try") 2>&5
6004  ac_status=$?
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); }; }; then
6007  ac_cv_prog_cc_g=yes
6008else
6009  echo "$as_me: failed program was:" >&5
6010sed 's/^/| /' conftest.$ac_ext >&5
6011
6012
6013fi
6014
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
6020
6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022   ac_c_werror_flag=$ac_save_c_werror_flag
6023fi
6024{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6025echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6026if test "$ac_test_CFLAGS" = set; then
6027  CFLAGS=$ac_save_CFLAGS
6028elif test $ac_cv_prog_cc_g = yes; then
6029  if test "$GCC" = yes; then
6030    CFLAGS="-g -O2"
6031  else
6032    CFLAGS="-g"
6033  fi
6034else
6035  if test "$GCC" = yes; then
6036    CFLAGS="-O2"
6037  else
6038    CFLAGS=
6039  fi
6040fi
6041{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6042echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6043if test "${ac_cv_prog_cc_c89+set}" = set; then
6044  echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046  ac_cv_prog_cc_c89=no
6047ac_save_CC=$CC
6048cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h.  */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h.  */
6054#include <stdarg.h>
6055#include <stdio.h>
6056#include <sys/types.h>
6057#include <sys/stat.h>
6058/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6059struct buf { int x; };
6060FILE * (*rcsopen) (struct buf *, struct stat *, int);
6061static char *e (p, i)
6062     char **p;
6063     int i;
6064{
6065  return p[i];
6066}
6067static char *f (char * (*g) (char **, int), char **p, ...)
6068{
6069  char *s;
6070  va_list v;
6071  va_start (v,p);
6072  s = g (p, va_arg (v,int));
6073  va_end (v);
6074  return s;
6075}
6076
6077/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6078   function prototypes and stuff, but not '\xHH' hex character constants.
6079   These don't provoke an error unfortunately, instead are silently treated
6080   as 'x'.  The following induces an error, until -std is added to get
6081   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6082   array size at least.  It's necessary to write '\x00'==0 to get something
6083   that's true only with -std.  */
6084int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6085
6086/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6087   inside strings and character constants.  */
6088#define FOO(x) 'x'
6089int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6090
6091int test (int i, double x);
6092struct s1 {int (*f) (int a);};
6093struct s2 {int (*f) (double a);};
6094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6095int argc;
6096char **argv;
6097int
6098main ()
6099{
6100return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6106	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6107do
6108  CC="$ac_save_CC $ac_arg"
6109  rm -f conftest.$ac_objext
6110if { (ac_try="$ac_compile"
6111case "(($ac_try" in
6112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113  *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116  (eval "$ac_compile") 2>conftest.er1
6117  ac_status=$?
6118  grep -v '^ *+' conftest.er1 >conftest.err
6119  rm -f conftest.er1
6120  cat conftest.err >&5
6121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122  (exit $ac_status); } &&
6123	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6124  { (case "(($ac_try" in
6125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126  *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129  (eval "$ac_try") 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); }; } &&
6133	 { ac_try='test -s conftest.$ac_objext'
6134  { (case "(($ac_try" in
6135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136  *) ac_try_echo=$ac_try;;
6137esac
6138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139  (eval "$ac_try") 2>&5
6140  ac_status=$?
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); }; }; then
6143  ac_cv_prog_cc_c89=$ac_arg
6144else
6145  echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148
6149fi
6150
6151rm -f core conftest.err conftest.$ac_objext
6152  test "x$ac_cv_prog_cc_c89" != "xno" && break
6153done
6154rm -f conftest.$ac_ext
6155CC=$ac_save_CC
6156
6157fi
6158# AC_CACHE_VAL
6159case "x$ac_cv_prog_cc_c89" in
6160  x)
6161    { echo "$as_me:$LINENO: result: none needed" >&5
6162echo "${ECHO_T}none needed" >&6; } ;;
6163  xno)
6164    { echo "$as_me:$LINENO: result: unsupported" >&5
6165echo "${ECHO_T}unsupported" >&6; } ;;
6166  *)
6167    CC="$CC $ac_cv_prog_cc_c89"
6168    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6169echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6170esac
6171
6172
6173ac_ext=c
6174ac_cpp='$CPP $CPPFLAGS'
6175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178
6179ac_ext=cpp
6180ac_cpp='$CXXCPP $CPPFLAGS'
6181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6184if test -z "$CXX"; then
6185  if test -n "$CCC"; then
6186    CXX=$CCC
6187  else
6188    if test -n "$ac_tool_prefix"; then
6189  for ac_prog in g++
6190  do
6191    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195if test "${ac_cv_prog_CXX+set}" = set; then
6196  echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198  if test -n "$CXX"; then
6199  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206  for ac_exec_ext in '' $ac_executable_extensions; do
6207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213done
6214IFS=$as_save_IFS
6215
6216fi
6217fi
6218CXX=$ac_cv_prog_CXX
6219if test -n "$CXX"; then
6220  { echo "$as_me:$LINENO: result: $CXX" >&5
6221echo "${ECHO_T}$CXX" >&6; }
6222else
6223  { echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6; }
6225fi
6226
6227
6228    test -n "$CXX" && break
6229  done
6230fi
6231if test -z "$CXX"; then
6232  ac_ct_CXX=$CXX
6233  for ac_prog in g++
6234do
6235  # Extract the first word of "$ac_prog", so it can be a program name with args.
6236set dummy $ac_prog; ac_word=$2
6237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6240  echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242  if test -n "$ac_ct_CXX"; then
6243  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250  for ac_exec_ext in '' $ac_executable_extensions; do
6251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252    ac_cv_prog_ac_ct_CXX="$ac_prog"
6253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6263if test -n "$ac_ct_CXX"; then
6264  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6265echo "${ECHO_T}$ac_ct_CXX" >&6; }
6266else
6267  { echo "$as_me:$LINENO: result: no" >&5
6268echo "${ECHO_T}no" >&6; }
6269fi
6270
6271
6272  test -n "$ac_ct_CXX" && break
6273done
6274
6275  if test "x$ac_ct_CXX" = x; then
6276    CXX="g++"
6277  else
6278    case $cross_compiling:$ac_tool_warned in
6279yes:)
6280{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6281whose name does not start with the host triplet.  If you think this
6282configuration is useful to you, please write to autoconf@gnu.org." >&5
6283echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6284whose name does not start with the host triplet.  If you think this
6285configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6286ac_tool_warned=yes ;;
6287esac
6288    CXX=$ac_ct_CXX
6289  fi
6290fi
6291
6292  fi
6293fi
6294# Provide some information about the compiler.
6295echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6296ac_compiler=`set X $ac_compile; echo $2`
6297{ (ac_try="$ac_compiler --version >&5"
6298case "(($ac_try" in
6299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300  *) ac_try_echo=$ac_try;;
6301esac
6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303  (eval "$ac_compiler --version >&5") 2>&5
6304  ac_status=$?
6305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306  (exit $ac_status); }
6307{ (ac_try="$ac_compiler -v >&5"
6308case "(($ac_try" in
6309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310  *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313  (eval "$ac_compiler -v >&5") 2>&5
6314  ac_status=$?
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }
6317{ (ac_try="$ac_compiler -V >&5"
6318case "(($ac_try" in
6319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320  *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323  (eval "$ac_compiler -V >&5") 2>&5
6324  ac_status=$?
6325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326  (exit $ac_status); }
6327
6328{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6329echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6330if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6331  echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333  cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h.  */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h.  */
6339
6340int
6341main ()
6342{
6343#ifndef __GNUC__
6344       choke me
6345#endif
6346
6347  ;
6348  return 0;
6349}
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (ac_try="$ac_compile"
6353case "(($ac_try" in
6354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355  *) ac_try_echo=$ac_try;;
6356esac
6357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358  (eval "$ac_compile") 2>conftest.er1
6359  ac_status=$?
6360  grep -v '^ *+' conftest.er1 >conftest.err
6361  rm -f conftest.er1
6362  cat conftest.err >&5
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); } &&
6365	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6366  { (case "(($ac_try" in
6367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368  *) ac_try_echo=$ac_try;;
6369esac
6370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371  (eval "$ac_try") 2>&5
6372  ac_status=$?
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); }; } &&
6375	 { ac_try='test -s conftest.$ac_objext'
6376  { (case "(($ac_try" in
6377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378  *) ac_try_echo=$ac_try;;
6379esac
6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381  (eval "$ac_try") 2>&5
6382  ac_status=$?
6383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384  (exit $ac_status); }; }; then
6385  ac_compiler_gnu=yes
6386else
6387  echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390	ac_compiler_gnu=no
6391fi
6392
6393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6395
6396fi
6397{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6398echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6399GXX=`test $ac_compiler_gnu = yes && echo yes`
6400ac_test_CXXFLAGS=${CXXFLAGS+set}
6401ac_save_CXXFLAGS=$CXXFLAGS
6402{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6403echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6404if test "${ac_cv_prog_cxx_g+set}" = set; then
6405  echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6408   ac_cxx_werror_flag=yes
6409   ac_cv_prog_cxx_g=no
6410   CXXFLAGS="-g"
6411   cat >conftest.$ac_ext <<_ACEOF
6412/* confdefs.h.  */
6413_ACEOF
6414cat confdefs.h >>conftest.$ac_ext
6415cat >>conftest.$ac_ext <<_ACEOF
6416/* end confdefs.h.  */
6417
6418int
6419main ()
6420{
6421
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426rm -f conftest.$ac_objext
6427if { (ac_try="$ac_compile"
6428case "(($ac_try" in
6429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430  *) ac_try_echo=$ac_try;;
6431esac
6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433  (eval "$ac_compile") 2>conftest.er1
6434  ac_status=$?
6435  grep -v '^ *+' conftest.er1 >conftest.err
6436  rm -f conftest.er1
6437  cat conftest.err >&5
6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439  (exit $ac_status); } &&
6440	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6441  { (case "(($ac_try" in
6442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443  *) ac_try_echo=$ac_try;;
6444esac
6445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446  (eval "$ac_try") 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }; } &&
6450	 { ac_try='test -s conftest.$ac_objext'
6451  { (case "(($ac_try" in
6452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453  *) ac_try_echo=$ac_try;;
6454esac
6455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456  (eval "$ac_try") 2>&5
6457  ac_status=$?
6458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459  (exit $ac_status); }; }; then
6460  ac_cv_prog_cxx_g=yes
6461else
6462  echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465	CXXFLAGS=""
6466      cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h.  */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h.  */
6472
6473int
6474main ()
6475{
6476
6477  ;
6478  return 0;
6479}
6480_ACEOF
6481rm -f conftest.$ac_objext
6482if { (ac_try="$ac_compile"
6483case "(($ac_try" in
6484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485  *) ac_try_echo=$ac_try;;
6486esac
6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488  (eval "$ac_compile") 2>conftest.er1
6489  ac_status=$?
6490  grep -v '^ *+' conftest.er1 >conftest.err
6491  rm -f conftest.er1
6492  cat conftest.err >&5
6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494  (exit $ac_status); } &&
6495	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6496  { (case "(($ac_try" in
6497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498  *) ac_try_echo=$ac_try;;
6499esac
6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501  (eval "$ac_try") 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; } &&
6505	 { ac_try='test -s conftest.$ac_objext'
6506  { (case "(($ac_try" in
6507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508  *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511  (eval "$ac_try") 2>&5
6512  ac_status=$?
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); }; }; then
6515  :
6516else
6517  echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6521	 CXXFLAGS="-g"
6522	 cat >conftest.$ac_ext <<_ACEOF
6523/* confdefs.h.  */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
6527/* end confdefs.h.  */
6528
6529int
6530main ()
6531{
6532
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (ac_try="$ac_compile"
6539case "(($ac_try" in
6540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541  *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544  (eval "$ac_compile") 2>conftest.er1
6545  ac_status=$?
6546  grep -v '^ *+' conftest.er1 >conftest.err
6547  rm -f conftest.er1
6548  cat conftest.err >&5
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); } &&
6551	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6552  { (case "(($ac_try" in
6553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554  *) ac_try_echo=$ac_try;;
6555esac
6556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557  (eval "$ac_try") 2>&5
6558  ac_status=$?
6559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560  (exit $ac_status); }; } &&
6561	 { ac_try='test -s conftest.$ac_objext'
6562  { (case "(($ac_try" in
6563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564  *) ac_try_echo=$ac_try;;
6565esac
6566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567  (eval "$ac_try") 2>&5
6568  ac_status=$?
6569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570  (exit $ac_status); }; }; then
6571  ac_cv_prog_cxx_g=yes
6572else
6573  echo "$as_me: failed program was:" >&5
6574sed 's/^/| /' conftest.$ac_ext >&5
6575
6576
6577fi
6578
6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580fi
6581
6582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583fi
6584
6585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6587fi
6588{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6589echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6590if test "$ac_test_CXXFLAGS" = set; then
6591  CXXFLAGS=$ac_save_CXXFLAGS
6592elif test $ac_cv_prog_cxx_g = yes; then
6593  if test "$GXX" = yes; then
6594    CXXFLAGS="-g -O2"
6595  else
6596    CXXFLAGS="-g"
6597  fi
6598else
6599  if test "$GXX" = yes; then
6600    CXXFLAGS="-O2"
6601  else
6602    CXXFLAGS=
6603  fi
6604fi
6605ac_ext=c
6606ac_cpp='$CPP $CPPFLAGS'
6607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610
6611
6612{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6613echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6614if test "${lt_cv_path_NM+set}" = set; then
6615  echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
6617  if test -n "$NM"; then
6618  # Let the user override the test.
6619  lt_cv_path_NM="$NM"
6620else
6621  lt_nm_to_check="${ac_tool_prefix}nm"
6622  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6623    lt_nm_to_check="$lt_nm_to_check nm"
6624  fi
6625  for lt_tmp_nm in $lt_nm_to_check; do
6626    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6628      IFS="$lt_save_ifs"
6629      test -z "$ac_dir" && ac_dir=.
6630      tmp_nm="$ac_dir/$lt_tmp_nm"
6631      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6632	# Check to see if the nm accepts a BSD-compat flag.
6633	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6634	#   nm: unknown option "B" ignored
6635	# Tru64's nm complains that /dev/null is an invalid object file
6636	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6637	*/dev/null* | *'Invalid file or object type'*)
6638	  lt_cv_path_NM="$tmp_nm -B"
6639	  break
6640	  ;;
6641	*)
6642	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6643	  */dev/null*)
6644	    lt_cv_path_NM="$tmp_nm -p"
6645	    break
6646	    ;;
6647	  *)
6648	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6649	    continue # so that we can try to find one that supports BSD flags
6650	    ;;
6651	  esac
6652	  ;;
6653	esac
6654      fi
6655    done
6656    IFS="$lt_save_ifs"
6657  done
6658  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6659fi
6660fi
6661{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6662echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6663NM="$lt_cv_path_NM"
6664
6665
6666
6667{ echo "$as_me:$LINENO: checking for GNU make" >&5
6668echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6669if test "${llvm_cv_gnu_make_command+set}" = set; then
6670  echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672  llvm_cv_gnu_make_command=''
6673 for a in "$MAKE" make gmake gnumake ; do
6674  if test -z "$a" ; then continue ; fi ;
6675  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6676  then
6677   llvm_cv_gnu_make_command=$a ;
6678   break;
6679  fi
6680 done
6681fi
6682{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6683echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6684 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6685   ifGNUmake='' ;
6686 else
6687   ifGNUmake='#' ;
6688   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6689echo "${ECHO_T}\"Not found\"" >&6; };
6690 fi
6691
6692
6693{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6694echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6695LN_S=$as_ln_s
6696if test "$LN_S" = "ln -s"; then
6697  { echo "$as_me:$LINENO: result: yes" >&5
6698echo "${ECHO_T}yes" >&6; }
6699else
6700  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6701echo "${ECHO_T}no, using $LN_S" >&6; }
6702fi
6703
6704# Extract the first word of "cmp", so it can be a program name with args.
6705set dummy cmp; ac_word=$2
6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_CMP+set}" = set; then
6709  echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711  case $CMP in
6712  [\\/]* | ?:[\\/]*)
6713  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6714  ;;
6715  *)
6716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719  IFS=$as_save_IFS
6720  test -z "$as_dir" && as_dir=.
6721  for ac_exec_ext in '' $ac_executable_extensions; do
6722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725    break 2
6726  fi
6727done
6728done
6729IFS=$as_save_IFS
6730
6731  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6732  ;;
6733esac
6734fi
6735CMP=$ac_cv_path_CMP
6736if test -n "$CMP"; then
6737  { echo "$as_me:$LINENO: result: $CMP" >&5
6738echo "${ECHO_T}$CMP" >&6; }
6739else
6740  { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
6742fi
6743
6744
6745# Extract the first word of "cp", so it can be a program name with args.
6746set dummy cp; ac_word=$2
6747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749if test "${ac_cv_path_CP+set}" = set; then
6750  echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752  case $CP in
6753  [\\/]* | ?:[\\/]*)
6754  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6755  ;;
6756  *)
6757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760  IFS=$as_save_IFS
6761  test -z "$as_dir" && as_dir=.
6762  for ac_exec_ext in '' $ac_executable_extensions; do
6763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766    break 2
6767  fi
6768done
6769done
6770IFS=$as_save_IFS
6771
6772  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6773  ;;
6774esac
6775fi
6776CP=$ac_cv_path_CP
6777if test -n "$CP"; then
6778  { echo "$as_me:$LINENO: result: $CP" >&5
6779echo "${ECHO_T}$CP" >&6; }
6780else
6781  { echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6; }
6783fi
6784
6785
6786# Extract the first word of "date", so it can be a program name with args.
6787set dummy date; ac_word=$2
6788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_path_DATE+set}" = set; then
6791  echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793  case $DATE in
6794  [\\/]* | ?:[\\/]*)
6795  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6796  ;;
6797  *)
6798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801  IFS=$as_save_IFS
6802  test -z "$as_dir" && as_dir=.
6803  for ac_exec_ext in '' $ac_executable_extensions; do
6804  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807    break 2
6808  fi
6809done
6810done
6811IFS=$as_save_IFS
6812
6813  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6814  ;;
6815esac
6816fi
6817DATE=$ac_cv_path_DATE
6818if test -n "$DATE"; then
6819  { echo "$as_me:$LINENO: result: $DATE" >&5
6820echo "${ECHO_T}$DATE" >&6; }
6821else
6822  { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
6824fi
6825
6826
6827# Extract the first word of "find", so it can be a program name with args.
6828set dummy find; ac_word=$2
6829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831if test "${ac_cv_path_FIND+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834  case $FIND in
6835  [\\/]* | ?:[\\/]*)
6836  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6837  ;;
6838  *)
6839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844  for ac_exec_ext in '' $ac_executable_extensions; do
6845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851done
6852IFS=$as_save_IFS
6853
6854  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6855  ;;
6856esac
6857fi
6858FIND=$ac_cv_path_FIND
6859if test -n "$FIND"; then
6860  { echo "$as_me:$LINENO: result: $FIND" >&5
6861echo "${ECHO_T}$FIND" >&6; }
6862else
6863  { echo "$as_me:$LINENO: result: no" >&5
6864echo "${ECHO_T}no" >&6; }
6865fi
6866
6867
6868# Extract the first word of "grep", so it can be a program name with args.
6869set dummy grep; ac_word=$2
6870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872if test "${ac_cv_path_GREP+set}" = set; then
6873  echo $ECHO_N "(cached) $ECHO_C" >&6
6874else
6875  case $GREP in
6876  [\\/]* | ?:[\\/]*)
6877  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6878  ;;
6879  *)
6880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883  IFS=$as_save_IFS
6884  test -z "$as_dir" && as_dir=.
6885  for ac_exec_ext in '' $ac_executable_extensions; do
6886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6887    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889    break 2
6890  fi
6891done
6892done
6893IFS=$as_save_IFS
6894
6895  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6896  ;;
6897esac
6898fi
6899GREP=$ac_cv_path_GREP
6900if test -n "$GREP"; then
6901  { echo "$as_me:$LINENO: result: $GREP" >&5
6902echo "${ECHO_T}$GREP" >&6; }
6903else
6904  { echo "$as_me:$LINENO: result: no" >&5
6905echo "${ECHO_T}no" >&6; }
6906fi
6907
6908
6909# Extract the first word of "mkdir", so it can be a program name with args.
6910set dummy mkdir; ac_word=$2
6911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913if test "${ac_cv_path_MKDIR+set}" = set; then
6914  echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916  case $MKDIR in
6917  [\\/]* | ?:[\\/]*)
6918  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6919  ;;
6920  *)
6921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924  IFS=$as_save_IFS
6925  test -z "$as_dir" && as_dir=.
6926  for ac_exec_ext in '' $ac_executable_extensions; do
6927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930    break 2
6931  fi
6932done
6933done
6934IFS=$as_save_IFS
6935
6936  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6937  ;;
6938esac
6939fi
6940MKDIR=$ac_cv_path_MKDIR
6941if test -n "$MKDIR"; then
6942  { echo "$as_me:$LINENO: result: $MKDIR" >&5
6943echo "${ECHO_T}$MKDIR" >&6; }
6944else
6945  { echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6; }
6947fi
6948
6949
6950# Extract the first word of "mv", so it can be a program name with args.
6951set dummy mv; ac_word=$2
6952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954if test "${ac_cv_path_MV+set}" = set; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  case $MV in
6958  [\\/]* | ?:[\\/]*)
6959  ac_cv_path_MV="$MV" # Let the user override the test with a path.
6960  ;;
6961  *)
6962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965  IFS=$as_save_IFS
6966  test -z "$as_dir" && as_dir=.
6967  for ac_exec_ext in '' $ac_executable_extensions; do
6968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971    break 2
6972  fi
6973done
6974done
6975IFS=$as_save_IFS
6976
6977  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6978  ;;
6979esac
6980fi
6981MV=$ac_cv_path_MV
6982if test -n "$MV"; then
6983  { echo "$as_me:$LINENO: result: $MV" >&5
6984echo "${ECHO_T}$MV" >&6; }
6985else
6986  { echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6; }
6988fi
6989
6990
6991if test -n "$ac_tool_prefix"; then
6992  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996if test "${ac_cv_prog_RANLIB+set}" = set; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999  if test -n "$RANLIB"; then
7000  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007  for ac_exec_ext in '' $ac_executable_extensions; do
7008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019RANLIB=$ac_cv_prog_RANLIB
7020if test -n "$RANLIB"; then
7021  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7022echo "${ECHO_T}$RANLIB" >&6; }
7023else
7024  { echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_RANLIB"; then
7031  ac_ct_RANLIB=$RANLIB
7032  # Extract the first word of "ranlib", so it can be a program name with args.
7033set dummy ranlib; ac_word=$2
7034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7037  echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039  if test -n "$ac_ct_RANLIB"; then
7040  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047  for ac_exec_ext in '' $ac_executable_extensions; do
7048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049    ac_cv_prog_ac_ct_RANLIB="ranlib"
7050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060if test -n "$ac_ct_RANLIB"; then
7061  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7062echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7063else
7064  { echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6; }
7066fi
7067
7068  if test "x$ac_ct_RANLIB" = x; then
7069    RANLIB=":"
7070  else
7071    case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7074whose name does not start with the host triplet.  If you think this
7075configuration is useful to you, please write to autoconf@gnu.org." >&5
7076echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7077whose name does not start with the host triplet.  If you think this
7078configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7079ac_tool_warned=yes ;;
7080esac
7081    RANLIB=$ac_ct_RANLIB
7082  fi
7083else
7084  RANLIB="$ac_cv_prog_RANLIB"
7085fi
7086
7087if test -n "$ac_tool_prefix"; then
7088  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7089set dummy ${ac_tool_prefix}ar; ac_word=$2
7090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092if test "${ac_cv_prog_AR+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  if test -n "$AR"; then
7096  ac_cv_prog_AR="$AR" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101  IFS=$as_save_IFS
7102  test -z "$as_dir" && as_dir=.
7103  for ac_exec_ext in '' $ac_executable_extensions; do
7104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105    ac_cv_prog_AR="${ac_tool_prefix}ar"
7106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107    break 2
7108  fi
7109done
7110done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115AR=$ac_cv_prog_AR
7116if test -n "$AR"; then
7117  { echo "$as_me:$LINENO: result: $AR" >&5
7118echo "${ECHO_T}$AR" >&6; }
7119else
7120  { echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6; }
7122fi
7123
7124
7125fi
7126if test -z "$ac_cv_prog_AR"; then
7127  ac_ct_AR=$AR
7128  # Extract the first word of "ar", so it can be a program name with args.
7129set dummy ar; ac_word=$2
7130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7132if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7133  echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135  if test -n "$ac_ct_AR"; then
7136  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141  IFS=$as_save_IFS
7142  test -z "$as_dir" && as_dir=.
7143  for ac_exec_ext in '' $ac_executable_extensions; do
7144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145    ac_cv_prog_ac_ct_AR="ar"
7146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147    break 2
7148  fi
7149done
7150done
7151IFS=$as_save_IFS
7152
7153fi
7154fi
7155ac_ct_AR=$ac_cv_prog_ac_ct_AR
7156if test -n "$ac_ct_AR"; then
7157  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7158echo "${ECHO_T}$ac_ct_AR" >&6; }
7159else
7160  { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
7162fi
7163
7164  if test "x$ac_ct_AR" = x; then
7165    AR="false"
7166  else
7167    case $cross_compiling:$ac_tool_warned in
7168yes:)
7169{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7170whose name does not start with the host triplet.  If you think this
7171configuration is useful to you, please write to autoconf@gnu.org." >&5
7172echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7173whose name does not start with the host triplet.  If you think this
7174configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7175ac_tool_warned=yes ;;
7176esac
7177    AR=$ac_ct_AR
7178  fi
7179else
7180  AR="$ac_cv_prog_AR"
7181fi
7182
7183# Extract the first word of "rm", so it can be a program name with args.
7184set dummy rm; ac_word=$2
7185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187if test "${ac_cv_path_RM+set}" = set; then
7188  echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190  case $RM in
7191  [\\/]* | ?:[\\/]*)
7192  ac_cv_path_RM="$RM" # Let the user override the test with a path.
7193  ;;
7194  *)
7195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198  IFS=$as_save_IFS
7199  test -z "$as_dir" && as_dir=.
7200  for ac_exec_ext in '' $ac_executable_extensions; do
7201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204    break 2
7205  fi
7206done
7207done
7208IFS=$as_save_IFS
7209
7210  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7211  ;;
7212esac
7213fi
7214RM=$ac_cv_path_RM
7215if test -n "$RM"; then
7216  { echo "$as_me:$LINENO: result: $RM" >&5
7217echo "${ECHO_T}$RM" >&6; }
7218else
7219  { echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6; }
7221fi
7222
7223
7224# Extract the first word of "sed", so it can be a program name with args.
7225set dummy sed; ac_word=$2
7226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228if test "${ac_cv_path_SED+set}" = set; then
7229  echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231  case $SED in
7232  [\\/]* | ?:[\\/]*)
7233  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7234  ;;
7235  *)
7236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239  IFS=$as_save_IFS
7240  test -z "$as_dir" && as_dir=.
7241  for ac_exec_ext in '' $ac_executable_extensions; do
7242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245    break 2
7246  fi
7247done
7248done
7249IFS=$as_save_IFS
7250
7251  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7252  ;;
7253esac
7254fi
7255SED=$ac_cv_path_SED
7256if test -n "$SED"; then
7257  { echo "$as_me:$LINENO: result: $SED" >&5
7258echo "${ECHO_T}$SED" >&6; }
7259else
7260  { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
7262fi
7263
7264
7265# Extract the first word of "tar", so it can be a program name with args.
7266set dummy tar; ac_word=$2
7267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269if test "${ac_cv_path_TAR+set}" = set; then
7270  echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272  case $TAR in
7273  [\\/]* | ?:[\\/]*)
7274  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7275  ;;
7276  *)
7277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282  for ac_exec_ext in '' $ac_executable_extensions; do
7283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289done
7290IFS=$as_save_IFS
7291
7292  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7293  ;;
7294esac
7295fi
7296TAR=$ac_cv_path_TAR
7297if test -n "$TAR"; then
7298  { echo "$as_me:$LINENO: result: $TAR" >&5
7299echo "${ECHO_T}$TAR" >&6; }
7300else
7301  { echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6; }
7303fi
7304
7305
7306# Extract the first word of "pwd", so it can be a program name with args.
7307set dummy pwd; ac_word=$2
7308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310if test "${ac_cv_path_BINPWD+set}" = set; then
7311  echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313  case $BINPWD in
7314  [\\/]* | ?:[\\/]*)
7315  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7316  ;;
7317  *)
7318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321  IFS=$as_save_IFS
7322  test -z "$as_dir" && as_dir=.
7323  for ac_exec_ext in '' $ac_executable_extensions; do
7324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7325    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327    break 2
7328  fi
7329done
7330done
7331IFS=$as_save_IFS
7332
7333  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7334  ;;
7335esac
7336fi
7337BINPWD=$ac_cv_path_BINPWD
7338if test -n "$BINPWD"; then
7339  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7340echo "${ECHO_T}$BINPWD" >&6; }
7341else
7342  { echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6; }
7344fi
7345
7346
7347
7348# Extract the first word of "Graphviz", so it can be a program name with args.
7349set dummy Graphviz; ac_word=$2
7350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7353  echo $ECHO_N "(cached) $ECHO_C" >&6
7354else
7355  case $GRAPHVIZ in
7356  [\\/]* | ?:[\\/]*)
7357  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7358  ;;
7359  *)
7360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363  IFS=$as_save_IFS
7364  test -z "$as_dir" && as_dir=.
7365  for ac_exec_ext in '' $ac_executable_extensions; do
7366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369    break 2
7370  fi
7371done
7372done
7373IFS=$as_save_IFS
7374
7375  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7376  ;;
7377esac
7378fi
7379GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7380if test -n "$GRAPHVIZ"; then
7381  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7382echo "${ECHO_T}$GRAPHVIZ" >&6; }
7383else
7384  { echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6; }
7386fi
7387
7388
7389if test "$GRAPHVIZ" != "echo Graphviz" ; then
7390
7391cat >>confdefs.h <<\_ACEOF
7392#define HAVE_GRAPHVIZ 1
7393_ACEOF
7394
7395    if test "$llvm_cv_os_type" = "MingW" ; then
7396    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7397  fi
7398
7399cat >>confdefs.h <<_ACEOF
7400#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7401_ACEOF
7402
7403fi
7404# Extract the first word of "dot", so it can be a program name with args.
7405set dummy dot; ac_word=$2
7406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408if test "${ac_cv_path_DOT+set}" = set; then
7409  echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411  case $DOT in
7412  [\\/]* | ?:[\\/]*)
7413  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7414  ;;
7415  *)
7416  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419  IFS=$as_save_IFS
7420  test -z "$as_dir" && as_dir=.
7421  for ac_exec_ext in '' $ac_executable_extensions; do
7422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425    break 2
7426  fi
7427done
7428done
7429IFS=$as_save_IFS
7430
7431  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7432  ;;
7433esac
7434fi
7435DOT=$ac_cv_path_DOT
7436if test -n "$DOT"; then
7437  { echo "$as_me:$LINENO: result: $DOT" >&5
7438echo "${ECHO_T}$DOT" >&6; }
7439else
7440  { echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6; }
7442fi
7443
7444
7445if test "$DOT" != "echo dot" ; then
7446
7447cat >>confdefs.h <<\_ACEOF
7448#define HAVE_DOT 1
7449_ACEOF
7450
7451    if test "$llvm_cv_os_type" = "MingW" ; then
7452    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7453  fi
7454
7455cat >>confdefs.h <<_ACEOF
7456#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7457_ACEOF
7458
7459fi
7460# Extract the first word of "fdp", so it can be a program name with args.
7461set dummy fdp; ac_word=$2
7462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464if test "${ac_cv_path_FDP+set}" = set; then
7465  echo $ECHO_N "(cached) $ECHO_C" >&6
7466else
7467  case $FDP in
7468  [\\/]* | ?:[\\/]*)
7469  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7470  ;;
7471  *)
7472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475  IFS=$as_save_IFS
7476  test -z "$as_dir" && as_dir=.
7477  for ac_exec_ext in '' $ac_executable_extensions; do
7478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7479    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481    break 2
7482  fi
7483done
7484done
7485IFS=$as_save_IFS
7486
7487  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7488  ;;
7489esac
7490fi
7491FDP=$ac_cv_path_FDP
7492if test -n "$FDP"; then
7493  { echo "$as_me:$LINENO: result: $FDP" >&5
7494echo "${ECHO_T}$FDP" >&6; }
7495else
7496  { echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6; }
7498fi
7499
7500
7501if test "$FDP" != "echo fdp" ; then
7502
7503cat >>confdefs.h <<\_ACEOF
7504#define HAVE_FDP 1
7505_ACEOF
7506
7507    if test "$llvm_cv_os_type" = "MingW" ; then
7508    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7509  fi
7510
7511cat >>confdefs.h <<_ACEOF
7512#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7513_ACEOF
7514
7515fi
7516# Extract the first word of "neato", so it can be a program name with args.
7517set dummy neato; ac_word=$2
7518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520if test "${ac_cv_path_NEATO+set}" = set; then
7521  echo $ECHO_N "(cached) $ECHO_C" >&6
7522else
7523  case $NEATO in
7524  [\\/]* | ?:[\\/]*)
7525  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7526  ;;
7527  *)
7528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531  IFS=$as_save_IFS
7532  test -z "$as_dir" && as_dir=.
7533  for ac_exec_ext in '' $ac_executable_extensions; do
7534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7535    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537    break 2
7538  fi
7539done
7540done
7541IFS=$as_save_IFS
7542
7543  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7544  ;;
7545esac
7546fi
7547NEATO=$ac_cv_path_NEATO
7548if test -n "$NEATO"; then
7549  { echo "$as_me:$LINENO: result: $NEATO" >&5
7550echo "${ECHO_T}$NEATO" >&6; }
7551else
7552  { echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6; }
7554fi
7555
7556
7557if test "$NEATO" != "echo neato" ; then
7558
7559cat >>confdefs.h <<\_ACEOF
7560#define HAVE_NEATO 1
7561_ACEOF
7562
7563    if test "$llvm_cv_os_type" = "MingW" ; then
7564    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7565  fi
7566
7567cat >>confdefs.h <<_ACEOF
7568#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7569_ACEOF
7570
7571fi
7572# Extract the first word of "twopi", so it can be a program name with args.
7573set dummy twopi; ac_word=$2
7574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_TWOPI+set}" = set; then
7577  echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579  case $TWOPI in
7580  [\\/]* | ?:[\\/]*)
7581  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7582  ;;
7583  *)
7584  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587  IFS=$as_save_IFS
7588  test -z "$as_dir" && as_dir=.
7589  for ac_exec_ext in '' $ac_executable_extensions; do
7590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593    break 2
7594  fi
7595done
7596done
7597IFS=$as_save_IFS
7598
7599  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7600  ;;
7601esac
7602fi
7603TWOPI=$ac_cv_path_TWOPI
7604if test -n "$TWOPI"; then
7605  { echo "$as_me:$LINENO: result: $TWOPI" >&5
7606echo "${ECHO_T}$TWOPI" >&6; }
7607else
7608  { echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6; }
7610fi
7611
7612
7613if test "$TWOPI" != "echo twopi" ; then
7614
7615cat >>confdefs.h <<\_ACEOF
7616#define HAVE_TWOPI 1
7617_ACEOF
7618
7619    if test "$llvm_cv_os_type" = "MingW" ; then
7620    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7621  fi
7622
7623cat >>confdefs.h <<_ACEOF
7624#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7625_ACEOF
7626
7627fi
7628# Extract the first word of "circo", so it can be a program name with args.
7629set dummy circo; ac_word=$2
7630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632if test "${ac_cv_path_CIRCO+set}" = set; then
7633  echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635  case $CIRCO in
7636  [\\/]* | ?:[\\/]*)
7637  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7638  ;;
7639  *)
7640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643  IFS=$as_save_IFS
7644  test -z "$as_dir" && as_dir=.
7645  for ac_exec_ext in '' $ac_executable_extensions; do
7646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649    break 2
7650  fi
7651done
7652done
7653IFS=$as_save_IFS
7654
7655  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7656  ;;
7657esac
7658fi
7659CIRCO=$ac_cv_path_CIRCO
7660if test -n "$CIRCO"; then
7661  { echo "$as_me:$LINENO: result: $CIRCO" >&5
7662echo "${ECHO_T}$CIRCO" >&6; }
7663else
7664  { echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6; }
7666fi
7667
7668
7669if test "$CIRCO" != "echo circo" ; then
7670
7671cat >>confdefs.h <<\_ACEOF
7672#define HAVE_CIRCO 1
7673_ACEOF
7674
7675    if test "$llvm_cv_os_type" = "MingW" ; then
7676    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7677  fi
7678
7679cat >>confdefs.h <<_ACEOF
7680#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7681_ACEOF
7682
7683fi
7684for ac_prog in gv gsview32
7685do
7686  # Extract the first word of "$ac_prog", so it can be a program name with args.
7687set dummy $ac_prog; ac_word=$2
7688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690if test "${ac_cv_path_GV+set}" = set; then
7691  echo $ECHO_N "(cached) $ECHO_C" >&6
7692else
7693  case $GV in
7694  [\\/]* | ?:[\\/]*)
7695  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7696  ;;
7697  *)
7698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701  IFS=$as_save_IFS
7702  test -z "$as_dir" && as_dir=.
7703  for ac_exec_ext in '' $ac_executable_extensions; do
7704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707    break 2
7708  fi
7709done
7710done
7711IFS=$as_save_IFS
7712
7713  ;;
7714esac
7715fi
7716GV=$ac_cv_path_GV
7717if test -n "$GV"; then
7718  { echo "$as_me:$LINENO: result: $GV" >&5
7719echo "${ECHO_T}$GV" >&6; }
7720else
7721  { echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6; }
7723fi
7724
7725
7726  test -n "$GV" && break
7727done
7728test -n "$GV" || GV="echo gv"
7729
7730if test "$GV" != "echo gv" ; then
7731
7732cat >>confdefs.h <<\_ACEOF
7733#define HAVE_GV 1
7734_ACEOF
7735
7736    if test "$llvm_cv_os_type" = "MingW" ; then
7737    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7738  fi
7739
7740cat >>confdefs.h <<_ACEOF
7741#define LLVM_PATH_GV "$GV${EXEEXT}"
7742_ACEOF
7743
7744fi
7745# Extract the first word of "dotty", so it can be a program name with args.
7746set dummy dotty; ac_word=$2
7747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749if test "${ac_cv_path_DOTTY+set}" = set; then
7750  echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752  case $DOTTY in
7753  [\\/]* | ?:[\\/]*)
7754  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7755  ;;
7756  *)
7757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760  IFS=$as_save_IFS
7761  test -z "$as_dir" && as_dir=.
7762  for ac_exec_ext in '' $ac_executable_extensions; do
7763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766    break 2
7767  fi
7768done
7769done
7770IFS=$as_save_IFS
7771
7772  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7773  ;;
7774esac
7775fi
7776DOTTY=$ac_cv_path_DOTTY
7777if test -n "$DOTTY"; then
7778  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7779echo "${ECHO_T}$DOTTY" >&6; }
7780else
7781  { echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6; }
7783fi
7784
7785
7786if test "$DOTTY" != "echo dotty" ; then
7787
7788cat >>confdefs.h <<\_ACEOF
7789#define HAVE_DOTTY 1
7790_ACEOF
7791
7792    if test "$llvm_cv_os_type" = "MingW" ; then
7793    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7794  fi
7795
7796cat >>confdefs.h <<_ACEOF
7797#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7798_ACEOF
7799
7800fi
7801
7802
7803# Extract the first word of "perl", so it can be a program name with args.
7804set dummy perl; ac_word=$2
7805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807if test "${ac_cv_path_PERL+set}" = set; then
7808  echo $ECHO_N "(cached) $ECHO_C" >&6
7809else
7810  case $PERL in
7811  [\\/]* | ?:[\\/]*)
7812  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7813  ;;
7814  *)
7815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818  IFS=$as_save_IFS
7819  test -z "$as_dir" && as_dir=.
7820  for ac_exec_ext in '' $ac_executable_extensions; do
7821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824    break 2
7825  fi
7826done
7827done
7828IFS=$as_save_IFS
7829
7830  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7831  ;;
7832esac
7833fi
7834PERL=$ac_cv_path_PERL
7835if test -n "$PERL"; then
7836  { echo "$as_me:$LINENO: result: $PERL" >&5
7837echo "${ECHO_T}$PERL" >&6; }
7838else
7839  { echo "$as_me:$LINENO: result: no" >&5
7840echo "${ECHO_T}no" >&6; }
7841fi
7842
7843
7844if test "$PERL" != "none"; then
7845  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7846echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7847  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7848    { echo "$as_me:$LINENO: result: yes" >&5
7849echo "${ECHO_T}yes" >&6; }
7850  else
7851    PERL=none
7852    { echo "$as_me:$LINENO: result: not found" >&5
7853echo "${ECHO_T}not found" >&6; }
7854  fi
7855fi
7856
7857
7858if test x"$PERL" = xnone; then
7859   HAVE_PERL=0
7860
7861   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7862echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7863   { (exit 1); exit 1; }; }
7864else
7865   HAVE_PERL=1
7866
7867fi
7868
7869# Find a good install program.  We prefer a C program (faster),
7870# so one script is as good as another.  But avoid the broken or
7871# incompatible versions:
7872# SysV /etc/install, /usr/sbin/install
7873# SunOS /usr/etc/install
7874# IRIX /sbin/install
7875# AIX /bin/install
7876# AmigaOS /C/install, which installs bootblocks on floppy discs
7877# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7878# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7879# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7880# OS/2's system install, which has a completely different semantic
7881# ./install, which can be erroneously created by make from ./install.sh.
7882{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7883echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7884if test -z "$INSTALL"; then
7885if test "${ac_cv_path_install+set}" = set; then
7886  echo $ECHO_N "(cached) $ECHO_C" >&6
7887else
7888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891  IFS=$as_save_IFS
7892  test -z "$as_dir" && as_dir=.
7893  # Account for people who put trailing slashes in PATH elements.
7894case $as_dir/ in
7895  ./ | .// | /cC/* | \
7896  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7897  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7898  /usr/ucb/* ) ;;
7899  *)
7900    # OSF1 and SCO ODT 3.0 have their own names for install.
7901    # Don't use installbsd from OSF since it installs stuff as root
7902    # by default.
7903    for ac_prog in ginstall scoinst install; do
7904      for ac_exec_ext in '' $ac_executable_extensions; do
7905	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7906	  if test $ac_prog = install &&
7907	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908	    # AIX install.  It has an incompatible calling convention.
7909	    :
7910	  elif test $ac_prog = install &&
7911	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7912	    # program-specific install script used by HP pwplus--don't use.
7913	    :
7914	  else
7915	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7916	    break 3
7917	  fi
7918	fi
7919      done
7920    done
7921    ;;
7922esac
7923done
7924IFS=$as_save_IFS
7925
7926
7927fi
7928  if test "${ac_cv_path_install+set}" = set; then
7929    INSTALL=$ac_cv_path_install
7930  else
7931    # As a last resort, use the slow shell script.  Don't cache a
7932    # value for INSTALL within a source directory, because that will
7933    # break other packages using the cache if that directory is
7934    # removed, or if the value is a relative name.
7935    INSTALL=$ac_install_sh
7936  fi
7937fi
7938{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7939echo "${ECHO_T}$INSTALL" >&6; }
7940
7941# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7942# It thinks the first close brace ends the variable substitution.
7943test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7944
7945test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7946
7947test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7948
7949
7950# Extract the first word of "bzip2", so it can be a program name with args.
7951set dummy bzip2; ac_word=$2
7952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954if test "${ac_cv_path_BZIP2+set}" = set; then
7955  echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957  case $BZIP2 in
7958  [\\/]* | ?:[\\/]*)
7959  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7960  ;;
7961  *)
7962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965  IFS=$as_save_IFS
7966  test -z "$as_dir" && as_dir=.
7967  for ac_exec_ext in '' $ac_executable_extensions; do
7968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971    break 2
7972  fi
7973done
7974done
7975IFS=$as_save_IFS
7976
7977  ;;
7978esac
7979fi
7980BZIP2=$ac_cv_path_BZIP2
7981if test -n "$BZIP2"; then
7982  { echo "$as_me:$LINENO: result: $BZIP2" >&5
7983echo "${ECHO_T}$BZIP2" >&6; }
7984else
7985  { echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6; }
7987fi
7988
7989
7990# Extract the first word of "doxygen", so it can be a program name with args.
7991set dummy doxygen; ac_word=$2
7992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994if test "${ac_cv_path_DOXYGEN+set}" = set; then
7995  echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997  case $DOXYGEN in
7998  [\\/]* | ?:[\\/]*)
7999  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8000  ;;
8001  *)
8002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005  IFS=$as_save_IFS
8006  test -z "$as_dir" && as_dir=.
8007  for ac_exec_ext in '' $ac_executable_extensions; do
8008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011    break 2
8012  fi
8013done
8014done
8015IFS=$as_save_IFS
8016
8017  ;;
8018esac
8019fi
8020DOXYGEN=$ac_cv_path_DOXYGEN
8021if test -n "$DOXYGEN"; then
8022  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8023echo "${ECHO_T}$DOXYGEN" >&6; }
8024else
8025  { echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6; }
8027fi
8028
8029
8030# Extract the first word of "groff", so it can be a program name with args.
8031set dummy groff; ac_word=$2
8032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034if test "${ac_cv_path_GROFF+set}" = set; then
8035  echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037  case $GROFF in
8038  [\\/]* | ?:[\\/]*)
8039  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8040  ;;
8041  *)
8042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045  IFS=$as_save_IFS
8046  test -z "$as_dir" && as_dir=.
8047  for ac_exec_ext in '' $ac_executable_extensions; do
8048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051    break 2
8052  fi
8053done
8054done
8055IFS=$as_save_IFS
8056
8057  ;;
8058esac
8059fi
8060GROFF=$ac_cv_path_GROFF
8061if test -n "$GROFF"; then
8062  { echo "$as_me:$LINENO: result: $GROFF" >&5
8063echo "${ECHO_T}$GROFF" >&6; }
8064else
8065  { echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6; }
8067fi
8068
8069
8070# Extract the first word of "gzip", so it can be a program name with args.
8071set dummy gzip; ac_word=$2
8072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074if test "${ac_cv_path_GZIP+set}" = set; then
8075  echo $ECHO_N "(cached) $ECHO_C" >&6
8076else
8077  case $GZIP in
8078  [\\/]* | ?:[\\/]*)
8079  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8080  ;;
8081  *)
8082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085  IFS=$as_save_IFS
8086  test -z "$as_dir" && as_dir=.
8087  for ac_exec_ext in '' $ac_executable_extensions; do
8088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8089    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091    break 2
8092  fi
8093done
8094done
8095IFS=$as_save_IFS
8096
8097  ;;
8098esac
8099fi
8100GZIP=$ac_cv_path_GZIP
8101if test -n "$GZIP"; then
8102  { echo "$as_me:$LINENO: result: $GZIP" >&5
8103echo "${ECHO_T}$GZIP" >&6; }
8104else
8105  { echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6; }
8107fi
8108
8109
8110# Extract the first word of "pod2html", so it can be a program name with args.
8111set dummy pod2html; ac_word=$2
8112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114if test "${ac_cv_path_POD2HTML+set}" = set; then
8115  echo $ECHO_N "(cached) $ECHO_C" >&6
8116else
8117  case $POD2HTML in
8118  [\\/]* | ?:[\\/]*)
8119  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8120  ;;
8121  *)
8122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125  IFS=$as_save_IFS
8126  test -z "$as_dir" && as_dir=.
8127  for ac_exec_ext in '' $ac_executable_extensions; do
8128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8129    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131    break 2
8132  fi
8133done
8134done
8135IFS=$as_save_IFS
8136
8137  ;;
8138esac
8139fi
8140POD2HTML=$ac_cv_path_POD2HTML
8141if test -n "$POD2HTML"; then
8142  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8143echo "${ECHO_T}$POD2HTML" >&6; }
8144else
8145  { echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6; }
8147fi
8148
8149
8150# Extract the first word of "pod2man", so it can be a program name with args.
8151set dummy pod2man; ac_word=$2
8152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154if test "${ac_cv_path_POD2MAN+set}" = set; then
8155  echo $ECHO_N "(cached) $ECHO_C" >&6
8156else
8157  case $POD2MAN in
8158  [\\/]* | ?:[\\/]*)
8159  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8160  ;;
8161  *)
8162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165  IFS=$as_save_IFS
8166  test -z "$as_dir" && as_dir=.
8167  for ac_exec_ext in '' $ac_executable_extensions; do
8168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171    break 2
8172  fi
8173done
8174done
8175IFS=$as_save_IFS
8176
8177  ;;
8178esac
8179fi
8180POD2MAN=$ac_cv_path_POD2MAN
8181if test -n "$POD2MAN"; then
8182  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8183echo "${ECHO_T}$POD2MAN" >&6; }
8184else
8185  { echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6; }
8187fi
8188
8189
8190# Extract the first word of "runtest", so it can be a program name with args.
8191set dummy runtest; ac_word=$2
8192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194if test "${ac_cv_path_RUNTEST+set}" = set; then
8195  echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197  case $RUNTEST in
8198  [\\/]* | ?:[\\/]*)
8199  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8200  ;;
8201  *)
8202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205  IFS=$as_save_IFS
8206  test -z "$as_dir" && as_dir=.
8207  for ac_exec_ext in '' $ac_executable_extensions; do
8208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211    break 2
8212  fi
8213done
8214done
8215IFS=$as_save_IFS
8216
8217  ;;
8218esac
8219fi
8220RUNTEST=$ac_cv_path_RUNTEST
8221if test -n "$RUNTEST"; then
8222  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8223echo "${ECHO_T}$RUNTEST" >&6; }
8224else
8225  { echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6; }
8227fi
8228
8229
8230
8231no_itcl=true
8232{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8233echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8234
8235# Check whether --with-tclinclude was given.
8236if test "${with_tclinclude+set}" = set; then
8237  withval=$with_tclinclude; with_tclinclude=${withval}
8238else
8239  with_tclinclude=''
8240fi
8241
8242if test "${ac_cv_path_tclsh+set}" = set; then
8243  echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245
8246if test x"${with_tclinclude}" != x ; then
8247  if test -f ${with_tclinclude}/tclsh ; then
8248    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8249  elif test -f ${with_tclinclude}/src/tclsh ; then
8250    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8251  else
8252    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8253echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8254   { (exit 1); exit 1; }; }
8255  fi
8256fi
8257fi
8258
8259
8260if test x"${ac_cv_path_tclsh}" = x ; then
8261  { echo "$as_me:$LINENO: result: none" >&5
8262echo "${ECHO_T}none" >&6; }
8263  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
8264do
8265  # Extract the first word of "$ac_prog", so it can be a program name with args.
8266set dummy $ac_prog; ac_word=$2
8267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269if test "${ac_cv_path_TCLSH+set}" = set; then
8270  echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272  case $TCLSH in
8273  [\\/]* | ?:[\\/]*)
8274  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8275  ;;
8276  *)
8277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280  IFS=$as_save_IFS
8281  test -z "$as_dir" && as_dir=.
8282  for ac_exec_ext in '' $ac_executable_extensions; do
8283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8284    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286    break 2
8287  fi
8288done
8289done
8290IFS=$as_save_IFS
8291
8292  ;;
8293esac
8294fi
8295TCLSH=$ac_cv_path_TCLSH
8296if test -n "$TCLSH"; then
8297  { echo "$as_me:$LINENO: result: $TCLSH" >&5
8298echo "${ECHO_T}$TCLSH" >&6; }
8299else
8300  { echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6; }
8302fi
8303
8304
8305  test -n "$TCLSH" && break
8306done
8307
8308  if test x"${TCLSH}" = x ; then
8309    ac_cv_path_tclsh='';
8310  else
8311    ac_cv_path_tclsh="${TCLSH}";
8312  fi
8313else
8314  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8315echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8316  TCLSH="${ac_cv_path_tclsh}"
8317
8318fi
8319
8320# Extract the first word of "zip", so it can be a program name with args.
8321set dummy zip; ac_word=$2
8322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8324if test "${ac_cv_path_ZIP+set}" = set; then
8325  echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327  case $ZIP in
8328  [\\/]* | ?:[\\/]*)
8329  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8330  ;;
8331  *)
8332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333for as_dir in $PATH
8334do
8335  IFS=$as_save_IFS
8336  test -z "$as_dir" && as_dir=.
8337  for ac_exec_ext in '' $ac_executable_extensions; do
8338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8339    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341    break 2
8342  fi
8343done
8344done
8345IFS=$as_save_IFS
8346
8347  ;;
8348esac
8349fi
8350ZIP=$ac_cv_path_ZIP
8351if test -n "$ZIP"; then
8352  { echo "$as_me:$LINENO: result: $ZIP" >&5
8353echo "${ECHO_T}$ZIP" >&6; }
8354else
8355  { echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6; }
8357fi
8358
8359
8360for ac_prog in ocamlc
8361do
8362  # Extract the first word of "$ac_prog", so it can be a program name with args.
8363set dummy $ac_prog; ac_word=$2
8364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366if test "${ac_cv_path_OCAMLC+set}" = set; then
8367  echo $ECHO_N "(cached) $ECHO_C" >&6
8368else
8369  case $OCAMLC in
8370  [\\/]* | ?:[\\/]*)
8371  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8372  ;;
8373  *)
8374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377  IFS=$as_save_IFS
8378  test -z "$as_dir" && as_dir=.
8379  for ac_exec_ext in '' $ac_executable_extensions; do
8380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383    break 2
8384  fi
8385done
8386done
8387IFS=$as_save_IFS
8388
8389  ;;
8390esac
8391fi
8392OCAMLC=$ac_cv_path_OCAMLC
8393if test -n "$OCAMLC"; then
8394  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8395echo "${ECHO_T}$OCAMLC" >&6; }
8396else
8397  { echo "$as_me:$LINENO: result: no" >&5
8398echo "${ECHO_T}no" >&6; }
8399fi
8400
8401
8402  test -n "$OCAMLC" && break
8403done
8404
8405for ac_prog in ocamlopt
8406do
8407  # Extract the first word of "$ac_prog", so it can be a program name with args.
8408set dummy $ac_prog; ac_word=$2
8409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8412  echo $ECHO_N "(cached) $ECHO_C" >&6
8413else
8414  case $OCAMLOPT in
8415  [\\/]* | ?:[\\/]*)
8416  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8417  ;;
8418  *)
8419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422  IFS=$as_save_IFS
8423  test -z "$as_dir" && as_dir=.
8424  for ac_exec_ext in '' $ac_executable_extensions; do
8425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8426    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428    break 2
8429  fi
8430done
8431done
8432IFS=$as_save_IFS
8433
8434  ;;
8435esac
8436fi
8437OCAMLOPT=$ac_cv_path_OCAMLOPT
8438if test -n "$OCAMLOPT"; then
8439  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8440echo "${ECHO_T}$OCAMLOPT" >&6; }
8441else
8442  { echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6; }
8444fi
8445
8446
8447  test -n "$OCAMLOPT" && break
8448done
8449
8450for ac_prog in ocamldep
8451do
8452  # Extract the first word of "$ac_prog", so it can be a program name with args.
8453set dummy $ac_prog; ac_word=$2
8454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8456if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8457  echo $ECHO_N "(cached) $ECHO_C" >&6
8458else
8459  case $OCAMLDEP in
8460  [\\/]* | ?:[\\/]*)
8461  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8462  ;;
8463  *)
8464  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467  IFS=$as_save_IFS
8468  test -z "$as_dir" && as_dir=.
8469  for ac_exec_ext in '' $ac_executable_extensions; do
8470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8471    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8472    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8473    break 2
8474  fi
8475done
8476done
8477IFS=$as_save_IFS
8478
8479  ;;
8480esac
8481fi
8482OCAMLDEP=$ac_cv_path_OCAMLDEP
8483if test -n "$OCAMLDEP"; then
8484  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8485echo "${ECHO_T}$OCAMLDEP" >&6; }
8486else
8487  { echo "$as_me:$LINENO: result: no" >&5
8488echo "${ECHO_T}no" >&6; }
8489fi
8490
8491
8492  test -n "$OCAMLDEP" && break
8493done
8494
8495for ac_prog in ocamldoc
8496do
8497  # Extract the first word of "$ac_prog", so it can be a program name with args.
8498set dummy $ac_prog; ac_word=$2
8499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8502  echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504  case $OCAMLDOC in
8505  [\\/]* | ?:[\\/]*)
8506  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8507  ;;
8508  *)
8509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512  IFS=$as_save_IFS
8513  test -z "$as_dir" && as_dir=.
8514  for ac_exec_ext in '' $ac_executable_extensions; do
8515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518    break 2
8519  fi
8520done
8521done
8522IFS=$as_save_IFS
8523
8524  ;;
8525esac
8526fi
8527OCAMLDOC=$ac_cv_path_OCAMLDOC
8528if test -n "$OCAMLDOC"; then
8529  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8530echo "${ECHO_T}$OCAMLDOC" >&6; }
8531else
8532  { echo "$as_me:$LINENO: result: no" >&5
8533echo "${ECHO_T}no" >&6; }
8534fi
8535
8536
8537  test -n "$OCAMLDOC" && break
8538done
8539
8540for ac_prog in gas as
8541do
8542  # Extract the first word of "$ac_prog", so it can be a program name with args.
8543set dummy $ac_prog; ac_word=$2
8544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8546if test "${ac_cv_path_GAS+set}" = set; then
8547  echo $ECHO_N "(cached) $ECHO_C" >&6
8548else
8549  case $GAS in
8550  [\\/]* | ?:[\\/]*)
8551  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8552  ;;
8553  *)
8554  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555for as_dir in $PATH
8556do
8557  IFS=$as_save_IFS
8558  test -z "$as_dir" && as_dir=.
8559  for ac_exec_ext in '' $ac_executable_extensions; do
8560  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8561    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8563    break 2
8564  fi
8565done
8566done
8567IFS=$as_save_IFS
8568
8569  ;;
8570esac
8571fi
8572GAS=$ac_cv_path_GAS
8573if test -n "$GAS"; then
8574  { echo "$as_me:$LINENO: result: $GAS" >&5
8575echo "${ECHO_T}$GAS" >&6; }
8576else
8577  { echo "$as_me:$LINENO: result: no" >&5
8578echo "${ECHO_T}no" >&6; }
8579fi
8580
8581
8582  test -n "$GAS" && break
8583done
8584
8585
8586{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8587echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8588if test "${llvm_cv_link_use_r+set}" = set; then
8589  echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591   ac_ext=c
8592ac_cpp='$CPP $CPPFLAGS'
8593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595ac_compiler_gnu=$ac_cv_c_compiler_gnu
8596
8597  oldcflags="$CFLAGS"
8598  CFLAGS="$CFLAGS -Wl,-R."
8599  cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h.  */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h.  */
8605
8606int
8607main ()
8608{
8609int main() { return 0; }
8610  ;
8611  return 0;
8612}
8613_ACEOF
8614rm -f conftest.$ac_objext conftest$ac_exeext
8615if { (ac_try="$ac_link"
8616case "(($ac_try" in
8617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618  *) ac_try_echo=$ac_try;;
8619esac
8620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621  (eval "$ac_link") 2>conftest.er1
8622  ac_status=$?
8623  grep -v '^ *+' conftest.er1 >conftest.err
8624  rm -f conftest.er1
8625  cat conftest.err >&5
8626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627  (exit $ac_status); } &&
8628	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629  { (case "(($ac_try" in
8630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631  *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634  (eval "$ac_try") 2>&5
8635  ac_status=$?
8636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637  (exit $ac_status); }; } &&
8638	 { ac_try='test -s conftest$ac_exeext'
8639  { (case "(($ac_try" in
8640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641  *) ac_try_echo=$ac_try;;
8642esac
8643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644  (eval "$ac_try") 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); }; }; then
8648  llvm_cv_link_use_r=yes
8649else
8650  echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653	llvm_cv_link_use_r=no
8654fi
8655
8656rm -f core conftest.err conftest.$ac_objext \
8657      conftest$ac_exeext conftest.$ac_ext
8658  CFLAGS="$oldcflags"
8659  ac_ext=c
8660ac_cpp='$CPP $CPPFLAGS'
8661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664
8665
8666fi
8667{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8668echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8669if test "$llvm_cv_link_use_r" = yes ; then
8670
8671cat >>confdefs.h <<\_ACEOF
8672#define HAVE_LINK_R 1
8673_ACEOF
8674
8675  fi
8676
8677
8678{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8679echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8680if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8681  echo $ECHO_N "(cached) $ECHO_C" >&6
8682else
8683   ac_ext=c
8684ac_cpp='$CPP $CPPFLAGS'
8685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688
8689  oldcflags="$CFLAGS"
8690  CFLAGS="$CFLAGS -Wl,-export-dynamic"
8691  cat >conftest.$ac_ext <<_ACEOF
8692/* confdefs.h.  */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h.  */
8697
8698int
8699main ()
8700{
8701int main() { return 0; }
8702  ;
8703  return 0;
8704}
8705_ACEOF
8706rm -f conftest.$ac_objext conftest$ac_exeext
8707if { (ac_try="$ac_link"
8708case "(($ac_try" in
8709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710  *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713  (eval "$ac_link") 2>conftest.er1
8714  ac_status=$?
8715  grep -v '^ *+' conftest.er1 >conftest.err
8716  rm -f conftest.er1
8717  cat conftest.err >&5
8718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719  (exit $ac_status); } &&
8720	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721  { (case "(($ac_try" in
8722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723  *) ac_try_echo=$ac_try;;
8724esac
8725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726  (eval "$ac_try") 2>&5
8727  ac_status=$?
8728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729  (exit $ac_status); }; } &&
8730	 { ac_try='test -s conftest$ac_exeext'
8731  { (case "(($ac_try" in
8732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733  *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736  (eval "$ac_try") 2>&5
8737  ac_status=$?
8738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739  (exit $ac_status); }; }; then
8740  llvm_cv_link_use_export_dynamic=yes
8741else
8742  echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745	llvm_cv_link_use_export_dynamic=no
8746fi
8747
8748rm -f core conftest.err conftest.$ac_objext \
8749      conftest$ac_exeext conftest.$ac_ext
8750  CFLAGS="$oldcflags"
8751  ac_ext=c
8752ac_cpp='$CPP $CPPFLAGS'
8753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756
8757
8758fi
8759{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8760echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8761if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8762
8763cat >>confdefs.h <<\_ACEOF
8764#define HAVE_LINK_EXPORT_DYNAMIC 1
8765_ACEOF
8766
8767  fi
8768
8769
8770
8771
8772{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8773echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8774if test "${ac_cv_c_const+set}" = set; then
8775  echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
8777  cat >conftest.$ac_ext <<_ACEOF
8778/* confdefs.h.  */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
8782/* end confdefs.h.  */
8783
8784int
8785main ()
8786{
8787/* FIXME: Include the comments suggested by Paul. */
8788#ifndef __cplusplus
8789  /* Ultrix mips cc rejects this.  */
8790  typedef int charset[2];
8791  const charset x;
8792  /* SunOS 4.1.1 cc rejects this.  */
8793  char const *const *ccp;
8794  char **p;
8795  /* NEC SVR4.0.2 mips cc rejects this.  */
8796  struct point {int x, y;};
8797  static struct point const zero = {0,0};
8798  /* AIX XL C 1.02.0.0 rejects this.
8799     It does not let you subtract one const X* pointer from another in
8800     an arm of an if-expression whose if-part is not a constant
8801     expression */
8802  const char *g = "string";
8803  ccp = &g + (g ? g-g : 0);
8804  /* HPUX 7.0 cc rejects these. */
8805  ++ccp;
8806  p = (char**) ccp;
8807  ccp = (char const *const *) p;
8808  { /* SCO 3.2v4 cc rejects this.  */
8809    char *t;
8810    char const *s = 0 ? (char *) 0 : (char const *) 0;
8811
8812    *t++ = 0;
8813    if (s) return 0;
8814  }
8815  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8816    int x[] = {25, 17};
8817    const int *foo = &x[0];
8818    ++foo;
8819  }
8820  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8821    typedef const int *iptr;
8822    iptr p = 0;
8823    ++p;
8824  }
8825  { /* AIX XL C 1.02.0.0 rejects this saying
8826       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8827    struct s { int j; const int *ap[3]; };
8828    struct s *b; b->j = 5;
8829  }
8830  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8831    const int foo = 10;
8832    if (!foo) return 0;
8833  }
8834  return !x[0] && !zero.x;
8835#endif
8836
8837  ;
8838  return 0;
8839}
8840_ACEOF
8841rm -f conftest.$ac_objext
8842if { (ac_try="$ac_compile"
8843case "(($ac_try" in
8844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845  *) ac_try_echo=$ac_try;;
8846esac
8847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848  (eval "$ac_compile") 2>conftest.er1
8849  ac_status=$?
8850  grep -v '^ *+' conftest.er1 >conftest.err
8851  rm -f conftest.er1
8852  cat conftest.err >&5
8853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854  (exit $ac_status); } &&
8855	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856  { (case "(($ac_try" in
8857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858  *) ac_try_echo=$ac_try;;
8859esac
8860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861  (eval "$ac_try") 2>&5
8862  ac_status=$?
8863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864  (exit $ac_status); }; } &&
8865	 { ac_try='test -s conftest.$ac_objext'
8866  { (case "(($ac_try" in
8867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868  *) ac_try_echo=$ac_try;;
8869esac
8870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871  (eval "$ac_try") 2>&5
8872  ac_status=$?
8873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874  (exit $ac_status); }; }; then
8875  ac_cv_c_const=yes
8876else
8877  echo "$as_me: failed program was:" >&5
8878sed 's/^/| /' conftest.$ac_ext >&5
8879
8880	ac_cv_c_const=no
8881fi
8882
8883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884fi
8885{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8886echo "${ECHO_T}$ac_cv_c_const" >&6; }
8887if test $ac_cv_c_const = no; then
8888
8889cat >>confdefs.h <<\_ACEOF
8890#define const
8891_ACEOF
8892
8893fi
8894
8895
8896
8897
8898
8899
8900ac_header_dirent=no
8901for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8902  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8903{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8904echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8906  echo $ECHO_N "(cached) $ECHO_C" >&6
8907else
8908  cat >conftest.$ac_ext <<_ACEOF
8909/* confdefs.h.  */
8910_ACEOF
8911cat confdefs.h >>conftest.$ac_ext
8912cat >>conftest.$ac_ext <<_ACEOF
8913/* end confdefs.h.  */
8914#include <sys/types.h>
8915#include <$ac_hdr>
8916
8917int
8918main ()
8919{
8920if ((DIR *) 0)
8921return 0;
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926rm -f conftest.$ac_objext
8927if { (ac_try="$ac_compile"
8928case "(($ac_try" in
8929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930  *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933  (eval "$ac_compile") 2>conftest.er1
8934  ac_status=$?
8935  grep -v '^ *+' conftest.er1 >conftest.err
8936  rm -f conftest.er1
8937  cat conftest.err >&5
8938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939  (exit $ac_status); } &&
8940	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941  { (case "(($ac_try" in
8942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943  *) ac_try_echo=$ac_try;;
8944esac
8945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946  (eval "$ac_try") 2>&5
8947  ac_status=$?
8948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949  (exit $ac_status); }; } &&
8950	 { ac_try='test -s conftest.$ac_objext'
8951  { (case "(($ac_try" in
8952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953  *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956  (eval "$ac_try") 2>&5
8957  ac_status=$?
8958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959  (exit $ac_status); }; }; then
8960  eval "$as_ac_Header=yes"
8961else
8962  echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965	eval "$as_ac_Header=no"
8966fi
8967
8968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969fi
8970ac_res=`eval echo '${'$as_ac_Header'}'`
8971	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8972echo "${ECHO_T}$ac_res" >&6; }
8973if test `eval echo '${'$as_ac_Header'}'` = yes; then
8974  cat >>confdefs.h <<_ACEOF
8975#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8976_ACEOF
8977
8978ac_header_dirent=$ac_hdr; break
8979fi
8980
8981done
8982# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8983if test $ac_header_dirent = dirent.h; then
8984  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8985echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8986if test "${ac_cv_search_opendir+set}" = set; then
8987  echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989  ac_func_search_save_LIBS=$LIBS
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h.  */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h.  */
8996
8997/* Override any GCC internal prototype to avoid an error.
8998   Use char because int might match the return type of a GCC
8999   builtin and then its argument prototype would still apply.  */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char opendir ();
9004int
9005main ()
9006{
9007return opendir ();
9008  ;
9009  return 0;
9010}
9011_ACEOF
9012for ac_lib in '' dir; do
9013  if test -z "$ac_lib"; then
9014    ac_res="none required"
9015  else
9016    ac_res=-l$ac_lib
9017    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9018  fi
9019  rm -f conftest.$ac_objext conftest$ac_exeext
9020if { (ac_try="$ac_link"
9021case "(($ac_try" in
9022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023  *) ac_try_echo=$ac_try;;
9024esac
9025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026  (eval "$ac_link") 2>conftest.er1
9027  ac_status=$?
9028  grep -v '^ *+' conftest.er1 >conftest.err
9029  rm -f conftest.er1
9030  cat conftest.err >&5
9031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032  (exit $ac_status); } &&
9033	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034  { (case "(($ac_try" in
9035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036  *) ac_try_echo=$ac_try;;
9037esac
9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039  (eval "$ac_try") 2>&5
9040  ac_status=$?
9041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042  (exit $ac_status); }; } &&
9043	 { ac_try='test -s conftest$ac_exeext'
9044  { (case "(($ac_try" in
9045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046  *) ac_try_echo=$ac_try;;
9047esac
9048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049  (eval "$ac_try") 2>&5
9050  ac_status=$?
9051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052  (exit $ac_status); }; }; then
9053  ac_cv_search_opendir=$ac_res
9054else
9055  echo "$as_me: failed program was:" >&5
9056sed 's/^/| /' conftest.$ac_ext >&5
9057
9058
9059fi
9060
9061rm -f core conftest.err conftest.$ac_objext \
9062      conftest$ac_exeext
9063  if test "${ac_cv_search_opendir+set}" = set; then
9064  break
9065fi
9066done
9067if test "${ac_cv_search_opendir+set}" = set; then
9068  :
9069else
9070  ac_cv_search_opendir=no
9071fi
9072rm conftest.$ac_ext
9073LIBS=$ac_func_search_save_LIBS
9074fi
9075{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9076echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9077ac_res=$ac_cv_search_opendir
9078if test "$ac_res" != no; then
9079  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9080
9081fi
9082
9083else
9084  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9085echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9086if test "${ac_cv_search_opendir+set}" = set; then
9087  echo $ECHO_N "(cached) $ECHO_C" >&6
9088else
9089  ac_func_search_save_LIBS=$LIBS
9090cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h.  */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
9095/* end confdefs.h.  */
9096
9097/* Override any GCC internal prototype to avoid an error.
9098   Use char because int might match the return type of a GCC
9099   builtin and then its argument prototype would still apply.  */
9100#ifdef __cplusplus
9101extern "C"
9102#endif
9103char opendir ();
9104int
9105main ()
9106{
9107return opendir ();
9108  ;
9109  return 0;
9110}
9111_ACEOF
9112for ac_lib in '' x; do
9113  if test -z "$ac_lib"; then
9114    ac_res="none required"
9115  else
9116    ac_res=-l$ac_lib
9117    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9118  fi
9119  rm -f conftest.$ac_objext conftest$ac_exeext
9120if { (ac_try="$ac_link"
9121case "(($ac_try" in
9122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123  *) ac_try_echo=$ac_try;;
9124esac
9125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126  (eval "$ac_link") 2>conftest.er1
9127  ac_status=$?
9128  grep -v '^ *+' conftest.er1 >conftest.err
9129  rm -f conftest.er1
9130  cat conftest.err >&5
9131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132  (exit $ac_status); } &&
9133	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9134  { (case "(($ac_try" in
9135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136  *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139  (eval "$ac_try") 2>&5
9140  ac_status=$?
9141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); }; } &&
9143	 { ac_try='test -s conftest$ac_exeext'
9144  { (case "(($ac_try" in
9145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146  *) ac_try_echo=$ac_try;;
9147esac
9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149  (eval "$ac_try") 2>&5
9150  ac_status=$?
9151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152  (exit $ac_status); }; }; then
9153  ac_cv_search_opendir=$ac_res
9154else
9155  echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158
9159fi
9160
9161rm -f core conftest.err conftest.$ac_objext \
9162      conftest$ac_exeext
9163  if test "${ac_cv_search_opendir+set}" = set; then
9164  break
9165fi
9166done
9167if test "${ac_cv_search_opendir+set}" = set; then
9168  :
9169else
9170  ac_cv_search_opendir=no
9171fi
9172rm conftest.$ac_ext
9173LIBS=$ac_func_search_save_LIBS
9174fi
9175{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9176echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9177ac_res=$ac_cv_search_opendir
9178if test "$ac_res" != no; then
9179  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9180
9181fi
9182
9183fi
9184
9185
9186for ac_header in dlfcn.h
9187do
9188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9193  echo $ECHO_N "(cached) $ECHO_C" >&6
9194fi
9195ac_res=`eval echo '${'$as_ac_Header'}'`
9196	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9197echo "${ECHO_T}$ac_res" >&6; }
9198else
9199  # Is the header compilable?
9200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9202cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h.  */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h.  */
9208$ac_includes_default
9209#include <$ac_header>
9210_ACEOF
9211rm -f conftest.$ac_objext
9212if { (ac_try="$ac_compile"
9213case "(($ac_try" in
9214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215  *) ac_try_echo=$ac_try;;
9216esac
9217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218  (eval "$ac_compile") 2>conftest.er1
9219  ac_status=$?
9220  grep -v '^ *+' conftest.er1 >conftest.err
9221  rm -f conftest.er1
9222  cat conftest.err >&5
9223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224  (exit $ac_status); } &&
9225	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9226  { (case "(($ac_try" in
9227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228  *) ac_try_echo=$ac_try;;
9229esac
9230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231  (eval "$ac_try") 2>&5
9232  ac_status=$?
9233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234  (exit $ac_status); }; } &&
9235	 { ac_try='test -s conftest.$ac_objext'
9236  { (case "(($ac_try" in
9237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238  *) ac_try_echo=$ac_try;;
9239esac
9240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241  (eval "$ac_try") 2>&5
9242  ac_status=$?
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); }; }; then
9245  ac_header_compiler=yes
9246else
9247  echo "$as_me: failed program was:" >&5
9248sed 's/^/| /' conftest.$ac_ext >&5
9249
9250	ac_header_compiler=no
9251fi
9252
9253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9255echo "${ECHO_T}$ac_header_compiler" >&6; }
9256
9257# Is the header present?
9258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9260cat >conftest.$ac_ext <<_ACEOF
9261/* confdefs.h.  */
9262_ACEOF
9263cat confdefs.h >>conftest.$ac_ext
9264cat >>conftest.$ac_ext <<_ACEOF
9265/* end confdefs.h.  */
9266#include <$ac_header>
9267_ACEOF
9268if { (ac_try="$ac_cpp conftest.$ac_ext"
9269case "(($ac_try" in
9270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271  *) ac_try_echo=$ac_try;;
9272esac
9273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9275  ac_status=$?
9276  grep -v '^ *+' conftest.er1 >conftest.err
9277  rm -f conftest.er1
9278  cat conftest.err >&5
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); } >/dev/null; then
9281  if test -s conftest.err; then
9282    ac_cpp_err=$ac_c_preproc_warn_flag
9283    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9284  else
9285    ac_cpp_err=
9286  fi
9287else
9288  ac_cpp_err=yes
9289fi
9290if test -z "$ac_cpp_err"; then
9291  ac_header_preproc=yes
9292else
9293  echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296  ac_header_preproc=no
9297fi
9298
9299rm -f conftest.err conftest.$ac_ext
9300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9301echo "${ECHO_T}$ac_header_preproc" >&6; }
9302
9303# So?  What about this header?
9304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9305  yes:no: )
9306    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9308    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9310    ac_header_preproc=yes
9311    ;;
9312  no:yes:* )
9313    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9315    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9316echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9317    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9319    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9320echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9321    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9323    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9325    ( cat <<\_ASBOX
9326## ----------------------------------- ##
9327## Report this to llvmbugs@cs.uiuc.edu ##
9328## ----------------------------------- ##
9329_ASBOX
9330     ) | sed "s/^/$as_me: WARNING:     /" >&2
9331    ;;
9332esac
9333{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9336  echo $ECHO_N "(cached) $ECHO_C" >&6
9337else
9338  eval "$as_ac_Header=\$ac_header_preproc"
9339fi
9340ac_res=`eval echo '${'$as_ac_Header'}'`
9341	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9342echo "${ECHO_T}$ac_res" >&6; }
9343
9344fi
9345if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346  cat >>confdefs.h <<_ACEOF
9347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348_ACEOF
9349
9350fi
9351
9352done
9353
9354# Check whether --enable-ltdl-install was given.
9355if test "${enable_ltdl_install+set}" = set; then
9356  enableval=$enable_ltdl_install;
9357fi
9358
9359
9360
9361
9362if test x"${enable_ltdl_install-no}" != xno; then
9363  INSTALL_LTDL_TRUE=
9364  INSTALL_LTDL_FALSE='#'
9365else
9366  INSTALL_LTDL_TRUE='#'
9367  INSTALL_LTDL_FALSE=
9368fi
9369
9370
9371
9372if test x"${enable_ltdl_convenience-no}" != xno; then
9373  CONVENIENCE_LTDL_TRUE=
9374  CONVENIENCE_LTDL_FALSE='#'
9375else
9376  CONVENIENCE_LTDL_TRUE='#'
9377  CONVENIENCE_LTDL_FALSE=
9378fi
9379
9380
9381{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9382echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9383library_names_spec=
9384libname_spec='lib$name'
9385soname_spec=
9386shrext_cmds=".so"
9387postinstall_cmds=
9388postuninstall_cmds=
9389finish_cmds=
9390finish_eval=
9391shlibpath_var=
9392shlibpath_overrides_runpath=unknown
9393version_type=none
9394dynamic_linker="$host_os ld.so"
9395sys_lib_dlsearch_path_spec="/lib /usr/lib"
9396if test "$GCC" = yes; then
9397  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9398  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9399    # if the path contains ";" then we assume it to be the separator
9400    # otherwise default to the standard path separator (i.e. ":") - it is
9401    # assumed that no part of a normal pathname contains ";" but that should
9402    # okay in the real world where ";" in dirpaths is itself problematic.
9403    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9404  else
9405    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9406  fi
9407else
9408  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9409fi
9410need_lib_prefix=unknown
9411hardcode_into_libs=no
9412
9413# when you set need_version to no, make sure it does not cause -set_version
9414# flags to be left without arguments
9415need_version=unknown
9416
9417case $host_os in
9418aix3*)
9419  version_type=linux
9420  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9421  shlibpath_var=LIBPATH
9422
9423  # AIX 3 has no versioning support, so we append a major version to the name.
9424  soname_spec='${libname}${release}${shared_ext}$major'
9425  ;;
9426
9427aix4* | aix5*)
9428  version_type=linux
9429  need_lib_prefix=no
9430  need_version=no
9431  hardcode_into_libs=yes
9432  if test "$host_cpu" = ia64; then
9433    # AIX 5 supports IA64
9434    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9435    shlibpath_var=LD_LIBRARY_PATH
9436  else
9437    # With GCC up to 2.95.x, collect2 would create an import file
9438    # for dependence libraries.  The import file would start with
9439    # the line `#! .'.  This would cause the generated library to
9440    # depend on `.', always an invalid library.  This was fixed in
9441    # development snapshots of GCC prior to 3.0.
9442    case $host_os in
9443      aix4 | aix4.[01] | aix4.[01].*)
9444      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9445	   echo ' yes '
9446	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9447	:
9448      else
9449	can_build_shared=no
9450      fi
9451      ;;
9452    esac
9453    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9454    # soname into executable. Probably we can add versioning support to
9455    # collect2, so additional links can be useful in future.
9456    if test "$aix_use_runtimelinking" = yes; then
9457      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9458      # instead of lib<name>.a to let people know that these are not
9459      # typical AIX shared libraries.
9460      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461    else
9462      # We preserve .a as extension for shared libraries through AIX4.2
9463      # and later when we are not doing run time linking.
9464      library_names_spec='${libname}${release}.a $libname.a'
9465      soname_spec='${libname}${release}${shared_ext}$major'
9466    fi
9467    shlibpath_var=LIBPATH
9468  fi
9469  ;;
9470
9471amigaos*)
9472  library_names_spec='$libname.ixlibrary $libname.a'
9473  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9474  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'
9475  ;;
9476
9477beos*)
9478  library_names_spec='${libname}${shared_ext}'
9479  dynamic_linker="$host_os ld.so"
9480  shlibpath_var=LIBRARY_PATH
9481  ;;
9482
9483bsdi[45]*)
9484  version_type=linux
9485  need_version=no
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487  soname_spec='${libname}${release}${shared_ext}$major'
9488  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9489  shlibpath_var=LD_LIBRARY_PATH
9490  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9491  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9492  # the default ld.so.conf also contains /usr/contrib/lib and
9493  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9494  # libtool to hard-code these into programs
9495  ;;
9496
9497cygwin* | mingw* | pw32*)
9498  version_type=windows
9499  shrext_cmds=".dll"
9500  need_version=no
9501  need_lib_prefix=no
9502
9503  case $GCC,$host_os in
9504  yes,cygwin* | yes,mingw* | yes,pw32*)
9505    library_names_spec='$libname.dll.a'
9506    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9507    postinstall_cmds='base_file=`basename \${file}`~
9508      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9509      dldir=$destdir/`dirname \$dlpath`~
9510      test -d \$dldir || mkdir -p \$dldir~
9511      $install_prog $dir/$dlname \$dldir/$dlname~
9512      chmod a+x \$dldir/$dlname'
9513    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9514      dlpath=$dir/\$dldll~
9515       $rm \$dlpath'
9516    shlibpath_overrides_runpath=yes
9517
9518    case $host_os in
9519    cygwin*)
9520      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9521      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9522      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9523      ;;
9524    mingw*)
9525      # MinGW DLLs use traditional 'lib' prefix
9526      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9527      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9528      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9529        # It is most probably a Windows format PATH printed by
9530        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9531        # path with ; separators, and with drive letters. We can handle the
9532        # drive letters (cygwin fileutils understands them), so leave them,
9533        # especially as we might pass files found there to a mingw objdump,
9534        # which wouldn't understand a cygwinified path. Ahh.
9535        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9536      else
9537        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9538      fi
9539      ;;
9540    pw32*)
9541      # pw32 DLLs use 'pw' prefix rather than 'lib'
9542      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9543      ;;
9544    esac
9545    ;;
9546
9547  *)
9548    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9549    ;;
9550  esac
9551  dynamic_linker='Win32 ld.exe'
9552  # FIXME: first we should search . and the directory the executable is in
9553  shlibpath_var=PATH
9554  ;;
9555
9556darwin* | rhapsody*)
9557  dynamic_linker="$host_os dyld"
9558  version_type=darwin
9559  need_lib_prefix=no
9560  need_version=no
9561  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9562  soname_spec='${libname}${release}${major}$shared_ext'
9563  shlibpath_overrides_runpath=yes
9564  shlibpath_var=DYLD_LIBRARY_PATH
9565  shrext_cmds='.dylib'
9566  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9567  if test "$GCC" = yes; then
9568    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"`
9569  else
9570    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9571  fi
9572  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9573  ;;
9574
9575dgux*)
9576  version_type=linux
9577  need_lib_prefix=no
9578  need_version=no
9579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9580  soname_spec='${libname}${release}${shared_ext}$major'
9581  shlibpath_var=LD_LIBRARY_PATH
9582  ;;
9583
9584freebsd1*)
9585  dynamic_linker=no
9586  ;;
9587
9588kfreebsd*-gnu)
9589  version_type=linux
9590  need_lib_prefix=no
9591  need_version=no
9592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593  soname_spec='${libname}${release}${shared_ext}$major'
9594  shlibpath_var=LD_LIBRARY_PATH
9595  shlibpath_overrides_runpath=no
9596  hardcode_into_libs=yes
9597  dynamic_linker='GNU ld.so'
9598  ;;
9599
9600freebsd* | dragonfly*)
9601  # DragonFly does not have aout.  When/if they implement a new
9602  # versioning mechanism, adjust this.
9603  if test -x /usr/bin/objformat; then
9604    objformat=`/usr/bin/objformat`
9605  else
9606    case $host_os in
9607    freebsd[123]*) objformat=aout ;;
9608    *) objformat=elf ;;
9609    esac
9610  fi
9611  version_type=freebsd-$objformat
9612  case $version_type in
9613    freebsd-elf*)
9614      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9615      need_version=no
9616      need_lib_prefix=no
9617      ;;
9618    freebsd-*)
9619      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9620      need_version=yes
9621      ;;
9622  esac
9623  shlibpath_var=LD_LIBRARY_PATH
9624  case $host_os in
9625  freebsd2*)
9626    shlibpath_overrides_runpath=yes
9627    ;;
9628  freebsd3.[01]* | freebsdelf3.[01]*)
9629    shlibpath_overrides_runpath=yes
9630    hardcode_into_libs=yes
9631    ;;
9632  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9633  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9634    shlibpath_overrides_runpath=no
9635    hardcode_into_libs=yes
9636    ;;
9637  freebsd*) # from 4.6 on
9638    shlibpath_overrides_runpath=yes
9639    hardcode_into_libs=yes
9640    ;;
9641  esac
9642  ;;
9643
9644gnu*)
9645  version_type=linux
9646  need_lib_prefix=no
9647  need_version=no
9648  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9649  soname_spec='${libname}${release}${shared_ext}$major'
9650  shlibpath_var=LD_LIBRARY_PATH
9651  hardcode_into_libs=yes
9652  ;;
9653
9654hpux9* | hpux10* | hpux11*)
9655  # Give a soname corresponding to the major version so that dld.sl refuses to
9656  # link against other versions.
9657  version_type=sunos
9658  need_lib_prefix=no
9659  need_version=no
9660  case $host_cpu in
9661  ia64*)
9662    shrext_cmds='.so'
9663    hardcode_into_libs=yes
9664    dynamic_linker="$host_os dld.so"
9665    shlibpath_var=LD_LIBRARY_PATH
9666    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9667    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668    soname_spec='${libname}${release}${shared_ext}$major'
9669    if test "X$HPUX_IA64_MODE" = X32; then
9670      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9671    else
9672      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9673    fi
9674    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9675    ;;
9676   hppa*64*)
9677     shrext_cmds='.sl'
9678     hardcode_into_libs=yes
9679     dynamic_linker="$host_os dld.sl"
9680     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9681     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683     soname_spec='${libname}${release}${shared_ext}$major'
9684     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9685     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9686     ;;
9687   *)
9688    shrext_cmds='.sl'
9689    dynamic_linker="$host_os dld.sl"
9690    shlibpath_var=SHLIB_PATH
9691    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9692    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693    soname_spec='${libname}${release}${shared_ext}$major'
9694    ;;
9695  esac
9696  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9697  postinstall_cmds='chmod 555 $lib'
9698  ;;
9699
9700interix3*)
9701  version_type=linux
9702  need_lib_prefix=no
9703  need_version=no
9704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705  soname_spec='${libname}${release}${shared_ext}$major'
9706  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9707  shlibpath_var=LD_LIBRARY_PATH
9708  shlibpath_overrides_runpath=no
9709  hardcode_into_libs=yes
9710  ;;
9711
9712irix5* | irix6* | nonstopux*)
9713  case $host_os in
9714    nonstopux*) version_type=nonstopux ;;
9715    *)
9716	if test "$lt_cv_prog_gnu_ld" = yes; then
9717		version_type=linux
9718	else
9719		version_type=irix
9720	fi ;;
9721  esac
9722  need_lib_prefix=no
9723  need_version=no
9724  soname_spec='${libname}${release}${shared_ext}$major'
9725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9726  case $host_os in
9727  irix5* | nonstopux*)
9728    libsuff= shlibsuff=
9729    ;;
9730  *)
9731    case $LD in # libtool.m4 will add one of these switches to LD
9732    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9733      libsuff= shlibsuff= libmagic=32-bit;;
9734    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9735      libsuff=32 shlibsuff=N32 libmagic=N32;;
9736    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9737      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9738    *) libsuff= shlibsuff= libmagic=never-match;;
9739    esac
9740    ;;
9741  esac
9742  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9743  shlibpath_overrides_runpath=no
9744  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9745  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9746  hardcode_into_libs=yes
9747  ;;
9748
9749# No shared lib support for Linux oldld, aout, or coff.
9750linux*oldld* | linux*aout* | linux*coff*)
9751  dynamic_linker=no
9752  ;;
9753
9754# This must be Linux ELF.
9755linux*)
9756  version_type=linux
9757  need_lib_prefix=no
9758  need_version=no
9759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760  soname_spec='${libname}${release}${shared_ext}$major'
9761  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9762  shlibpath_var=LD_LIBRARY_PATH
9763  shlibpath_overrides_runpath=no
9764  # This implies no fast_install, which is unacceptable.
9765  # Some rework will be needed to allow for fast_install
9766  # before this can be enabled.
9767  hardcode_into_libs=yes
9768
9769  # Append ld.so.conf contents to the search path
9770  if test -f /etc/ld.so.conf; then
9771    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' ' '`
9772    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9773  fi
9774
9775  # We used to test for /lib/ld.so.1 and disable shared libraries on
9776  # powerpc, because MkLinux only supported shared libraries with the
9777  # GNU dynamic linker.  Since this was broken with cross compilers,
9778  # most powerpc-linux boxes support dynamic linking these days and
9779  # people can always --disable-shared, the test was removed, and we
9780  # assume the GNU/Linux dynamic linker is in use.
9781  dynamic_linker='GNU/Linux ld.so'
9782  ;;
9783
9784knetbsd*-gnu)
9785  version_type=linux
9786  need_lib_prefix=no
9787  need_version=no
9788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9789  soname_spec='${libname}${release}${shared_ext}$major'
9790  shlibpath_var=LD_LIBRARY_PATH
9791  shlibpath_overrides_runpath=no
9792  hardcode_into_libs=yes
9793  dynamic_linker='GNU ld.so'
9794  ;;
9795
9796netbsd*)
9797  version_type=sunos
9798  need_lib_prefix=no
9799  need_version=no
9800  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9802    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9803    dynamic_linker='NetBSD (a.out) ld.so'
9804  else
9805    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9806    soname_spec='${libname}${release}${shared_ext}$major'
9807    dynamic_linker='NetBSD ld.elf_so'
9808  fi
9809  shlibpath_var=LD_LIBRARY_PATH
9810  shlibpath_overrides_runpath=yes
9811  hardcode_into_libs=yes
9812  ;;
9813
9814newsos6)
9815  version_type=linux
9816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817  shlibpath_var=LD_LIBRARY_PATH
9818  shlibpath_overrides_runpath=yes
9819  ;;
9820
9821nto-qnx*)
9822  version_type=linux
9823  need_lib_prefix=no
9824  need_version=no
9825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826  soname_spec='${libname}${release}${shared_ext}$major'
9827  shlibpath_var=LD_LIBRARY_PATH
9828  shlibpath_overrides_runpath=yes
9829  ;;
9830
9831openbsd*)
9832  version_type=sunos
9833  sys_lib_dlsearch_path_spec="/usr/lib"
9834  need_lib_prefix=no
9835  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9836  case $host_os in
9837    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9838    *)                         need_version=no  ;;
9839  esac
9840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9841  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9842  shlibpath_var=LD_LIBRARY_PATH
9843  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9844    case $host_os in
9845      openbsd2.[89] | openbsd2.[89].*)
9846	shlibpath_overrides_runpath=no
9847	;;
9848      *)
9849	shlibpath_overrides_runpath=yes
9850	;;
9851      esac
9852  else
9853    shlibpath_overrides_runpath=yes
9854  fi
9855  ;;
9856
9857os2*)
9858  libname_spec='$name'
9859  shrext_cmds=".dll"
9860  need_lib_prefix=no
9861  library_names_spec='$libname${shared_ext} $libname.a'
9862  dynamic_linker='OS/2 ld.exe'
9863  shlibpath_var=LIBPATH
9864  ;;
9865
9866osf3* | osf4* | osf5*)
9867  version_type=osf
9868  need_lib_prefix=no
9869  need_version=no
9870  soname_spec='${libname}${release}${shared_ext}$major'
9871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872  shlibpath_var=LD_LIBRARY_PATH
9873  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9874  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9875  ;;
9876
9877solaris*)
9878  version_type=linux
9879  need_lib_prefix=no
9880  need_version=no
9881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882  soname_spec='${libname}${release}${shared_ext}$major'
9883  shlibpath_var=LD_LIBRARY_PATH
9884  shlibpath_overrides_runpath=yes
9885  hardcode_into_libs=yes
9886  # ldd complains unless libraries are executable
9887  postinstall_cmds='chmod +x $lib'
9888  ;;
9889
9890sunos4*)
9891  version_type=sunos
9892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9893  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9894  shlibpath_var=LD_LIBRARY_PATH
9895  shlibpath_overrides_runpath=yes
9896  if test "$with_gnu_ld" = yes; then
9897    need_lib_prefix=no
9898  fi
9899  need_version=yes
9900  ;;
9901
9902sysv4 | sysv4.3*)
9903  version_type=linux
9904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905  soname_spec='${libname}${release}${shared_ext}$major'
9906  shlibpath_var=LD_LIBRARY_PATH
9907  case $host_vendor in
9908    sni)
9909      shlibpath_overrides_runpath=no
9910      need_lib_prefix=no
9911      export_dynamic_flag_spec='${wl}-Blargedynsym'
9912      runpath_var=LD_RUN_PATH
9913      ;;
9914    siemens)
9915      need_lib_prefix=no
9916      ;;
9917    motorola)
9918      need_lib_prefix=no
9919      need_version=no
9920      shlibpath_overrides_runpath=no
9921      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9922      ;;
9923  esac
9924  ;;
9925
9926sysv4*MP*)
9927  if test -d /usr/nec ;then
9928    version_type=linux
9929    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9930    soname_spec='$libname${shared_ext}.$major'
9931    shlibpath_var=LD_LIBRARY_PATH
9932  fi
9933  ;;
9934
9935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9936  version_type=freebsd-elf
9937  need_lib_prefix=no
9938  need_version=no
9939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9940  soname_spec='${libname}${release}${shared_ext}$major'
9941  shlibpath_var=LD_LIBRARY_PATH
9942  hardcode_into_libs=yes
9943  if test "$with_gnu_ld" = yes; then
9944    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9945    shlibpath_overrides_runpath=no
9946  else
9947    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9948    shlibpath_overrides_runpath=yes
9949    case $host_os in
9950      sco3.2v5*)
9951        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9952	;;
9953    esac
9954  fi
9955  sys_lib_dlsearch_path_spec='/usr/lib'
9956  ;;
9957
9958uts4*)
9959  version_type=linux
9960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961  soname_spec='${libname}${release}${shared_ext}$major'
9962  shlibpath_var=LD_LIBRARY_PATH
9963  ;;
9964
9965*)
9966  dynamic_linker=no
9967  ;;
9968esac
9969{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9970echo "${ECHO_T}$dynamic_linker" >&6; }
9971test "$dynamic_linker" = no && can_build_shared=no
9972
9973variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9974if test "$GCC" = yes; then
9975  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9976fi
9977
9978
9979{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9980echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9981if test "${libltdl_cv_shlibext+set}" = set; then
9982  echo $ECHO_N "(cached) $ECHO_C" >&6
9983else
9984
9985module=yes
9986eval libltdl_cv_shlibext=$shrext_cmds
9987
9988fi
9989{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9990echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9991if test -n "$libltdl_cv_shlibext"; then
9992
9993cat >>confdefs.h <<_ACEOF
9994#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9995_ACEOF
9996
9997fi
9998
9999
10000{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10001echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10002if test "${libltdl_cv_shlibpath_var+set}" = set; then
10003  echo $ECHO_N "(cached) $ECHO_C" >&6
10004else
10005  libltdl_cv_shlibpath_var="$shlibpath_var"
10006fi
10007{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10008echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10009if test -n "$libltdl_cv_shlibpath_var"; then
10010
10011cat >>confdefs.h <<_ACEOF
10012#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10013_ACEOF
10014
10015fi
10016
10017
10018{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10019echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10020if test "${libltdl_cv_sys_search_path+set}" = set; then
10021  echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10024fi
10025{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10026echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10027if test -n "$libltdl_cv_sys_search_path"; then
10028  sys_search_path=
10029  for dir in $libltdl_cv_sys_search_path; do
10030    if test -z "$sys_search_path"; then
10031      sys_search_path="$dir"
10032    else
10033      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10034    fi
10035  done
10036
10037cat >>confdefs.h <<_ACEOF
10038#define LTDL_SYSSEARCHPATH "$sys_search_path"
10039_ACEOF
10040
10041fi
10042
10043{ echo "$as_me:$LINENO: checking for objdir" >&5
10044echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10045if test "${libltdl_cv_objdir+set}" = set; then
10046  echo $ECHO_N "(cached) $ECHO_C" >&6
10047else
10048  libltdl_cv_objdir="$objdir"
10049  if test -n "$objdir"; then
10050    :
10051  else
10052    rm -f .libs 2>/dev/null
10053    mkdir .libs 2>/dev/null
10054    if test -d .libs; then
10055      libltdl_cv_objdir=.libs
10056    else
10057      # MS-DOS does not allow filenames that begin with a dot.
10058      libltdl_cv_objdir=_libs
10059    fi
10060  rmdir .libs 2>/dev/null
10061  fi
10062
10063fi
10064{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10065echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10066
10067cat >>confdefs.h <<_ACEOF
10068#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10069_ACEOF
10070
10071
10072
10073
10074
10075
10076# Check for command to grab the raw symbol name followed by C symbol from nm.
10077{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10078echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10079if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10080  echo $ECHO_N "(cached) $ECHO_C" >&6
10081else
10082
10083# These are sane defaults that work on at least a few old systems.
10084# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10085
10086# Character class describing NM global symbol codes.
10087symcode='[BCDEGRST]'
10088
10089# Regexp to match symbols that can be accessed directly from C.
10090sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10091
10092# Transform an extracted symbol line into a proper C declaration
10093lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10094
10095# Transform an extracted symbol line into symbol name and symbol address
10096lt_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'"
10097
10098# Define system-specific variables.
10099case $host_os in
10100aix*)
10101  symcode='[BCDT]'
10102  ;;
10103cygwin* | mingw* | pw32*)
10104  symcode='[ABCDGISTW]'
10105  ;;
10106hpux*) # Its linker distinguishes data from code symbols
10107  if test "$host_cpu" = ia64; then
10108    symcode='[ABCDEGRST]'
10109  fi
10110  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10111  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'"
10112  ;;
10113linux*)
10114  if test "$host_cpu" = ia64; then
10115    symcode='[ABCDGIRSTW]'
10116    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10117    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'"
10118  fi
10119  ;;
10120irix* | nonstopux*)
10121  symcode='[BCDEGRST]'
10122  ;;
10123osf*)
10124  symcode='[BCDEGQRST]'
10125  ;;
10126solaris*)
10127  symcode='[BDRT]'
10128  ;;
10129sco3.2v5*)
10130  symcode='[DT]'
10131  ;;
10132sysv4.2uw2*)
10133  symcode='[DT]'
10134  ;;
10135sysv5* | sco5v6* | unixware* | OpenUNIX*)
10136  symcode='[ABDT]'
10137  ;;
10138sysv4)
10139  symcode='[DFNSTU]'
10140  ;;
10141esac
10142
10143# Handle CRLF in mingw tool chain
10144opt_cr=
10145case $build_os in
10146mingw*)
10147  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10148  ;;
10149esac
10150
10151# If we're using GNU nm, then use its standard symbol codes.
10152case `$NM -V 2>&1` in
10153*GNU* | *'with BFD'*)
10154  symcode='[ABCDGIRSTW]' ;;
10155esac
10156
10157# Try without a prefix undercore, then with it.
10158for ac_symprfx in "" "_"; do
10159
10160  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10161  symxfrm="\\1 $ac_symprfx\\2 \\2"
10162
10163  # Write the raw and C identifiers.
10164  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10165
10166  # Check to see that the pipe works correctly.
10167  pipe_works=no
10168
10169  rm -f conftest*
10170  cat > conftest.$ac_ext <<EOF
10171#ifdef __cplusplus
10172extern "C" {
10173#endif
10174char nm_test_var;
10175void nm_test_func(){}
10176#ifdef __cplusplus
10177}
10178#endif
10179int main(){nm_test_var='a';nm_test_func();return(0);}
10180EOF
10181
10182  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183  (eval $ac_compile) 2>&5
10184  ac_status=$?
10185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186  (exit $ac_status); }; then
10187    # Now try to grab the symbols.
10188    nlist=conftest.nm
10189    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10190  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10191  ac_status=$?
10192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); } && test -s "$nlist"; then
10194      # Try sorting and uniquifying the output.
10195      if sort "$nlist" | uniq > "$nlist"T; then
10196	mv -f "$nlist"T "$nlist"
10197      else
10198	rm -f "$nlist"T
10199      fi
10200
10201      # Make sure that we snagged all the symbols we need.
10202      if grep ' nm_test_var$' "$nlist" >/dev/null; then
10203	if grep ' nm_test_func$' "$nlist" >/dev/null; then
10204	  cat <<EOF > conftest.$ac_ext
10205#ifdef __cplusplus
10206extern "C" {
10207#endif
10208
10209EOF
10210	  # Now generate the symbol file.
10211	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10212
10213	  cat <<EOF >> conftest.$ac_ext
10214#if defined (__STDC__) && __STDC__
10215# define lt_ptr_t void *
10216#else
10217# define lt_ptr_t char *
10218# define const
10219#endif
10220
10221/* The mapping between symbol names and symbols. */
10222const struct {
10223  const char *name;
10224  lt_ptr_t address;
10225}
10226lt_preloaded_symbols[] =
10227{
10228EOF
10229	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10230	  cat <<\EOF >> conftest.$ac_ext
10231  {0, (lt_ptr_t) 0}
10232};
10233
10234#ifdef __cplusplus
10235}
10236#endif
10237EOF
10238	  # Now try linking the two files.
10239	  mv conftest.$ac_objext conftstm.$ac_objext
10240	  lt_save_LIBS="$LIBS"
10241	  lt_save_CFLAGS="$CFLAGS"
10242	  LIBS="conftstm.$ac_objext"
10243	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10244	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245  (eval $ac_link) 2>&5
10246  ac_status=$?
10247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248  (exit $ac_status); } && test -s conftest${ac_exeext}; then
10249	    pipe_works=yes
10250	  fi
10251	  LIBS="$lt_save_LIBS"
10252	  CFLAGS="$lt_save_CFLAGS"
10253	else
10254	  echo "cannot find nm_test_func in $nlist" >&5
10255	fi
10256      else
10257	echo "cannot find nm_test_var in $nlist" >&5
10258      fi
10259    else
10260      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10261    fi
10262  else
10263    echo "$progname: failed program was:" >&5
10264    cat conftest.$ac_ext >&5
10265  fi
10266  rm -f conftest* conftst*
10267
10268  # Do not use the global_symbol_pipe unless it works.
10269  if test "$pipe_works" = yes; then
10270    break
10271  else
10272    lt_cv_sys_global_symbol_pipe=
10273  fi
10274done
10275
10276fi
10277
10278if test -z "$lt_cv_sys_global_symbol_pipe"; then
10279  lt_cv_sys_global_symbol_to_cdecl=
10280fi
10281if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10282  { echo "$as_me:$LINENO: result: failed" >&5
10283echo "${ECHO_T}failed" >&6; }
10284else
10285  { echo "$as_me:$LINENO: result: ok" >&5
10286echo "${ECHO_T}ok" >&6; }
10287fi
10288
10289
10290{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10291echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10292if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10293  echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295  if test -n "$lt_cv_sys_global_symbol_pipe"; then
10296    libltdl_cv_preloaded_symbols=yes
10297  else
10298    libltdl_cv_preloaded_symbols=no
10299  fi
10300
10301fi
10302{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10303echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10304if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10305
10306cat >>confdefs.h <<\_ACEOF
10307#define HAVE_PRELOADED_SYMBOLS 1
10308_ACEOF
10309
10310fi
10311
10312LIBADD_DL=
10313
10314ac_ext=c
10315ac_cpp='$CPP $CPPFLAGS'
10316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10318ac_compiler_gnu=$ac_cv_c_compiler_gnu
10319
10320
10321{ echo "$as_me:$LINENO: checking for shl_load" >&5
10322echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10323if test "${ac_cv_func_shl_load+set}" = set; then
10324  echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326  cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10333   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10334#define shl_load innocuous_shl_load
10335
10336/* System header to define __stub macros and hopefully few prototypes,
10337    which can conflict with char shl_load (); below.
10338    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339    <limits.h> exists even on freestanding compilers.  */
10340
10341#ifdef __STDC__
10342# include <limits.h>
10343#else
10344# include <assert.h>
10345#endif
10346
10347#undef shl_load
10348
10349/* Override any GCC internal prototype to avoid an error.
10350   Use char because int might match the return type of a GCC
10351   builtin and then its argument prototype would still apply.  */
10352#ifdef __cplusplus
10353extern "C"
10354#endif
10355char shl_load ();
10356/* The GNU C library defines this for functions which it implements
10357    to always fail with ENOSYS.  Some functions are actually named
10358    something starting with __ and the normal name is an alias.  */
10359#if defined __stub_shl_load || defined __stub___shl_load
10360choke me
10361#endif
10362
10363int
10364main ()
10365{
10366return shl_load ();
10367  ;
10368  return 0;
10369}
10370_ACEOF
10371rm -f conftest.$ac_objext conftest$ac_exeext
10372if { (ac_try="$ac_link"
10373case "(($ac_try" in
10374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375  *) ac_try_echo=$ac_try;;
10376esac
10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378  (eval "$ac_link") 2>conftest.er1
10379  ac_status=$?
10380  grep -v '^ *+' conftest.er1 >conftest.err
10381  rm -f conftest.er1
10382  cat conftest.err >&5
10383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384  (exit $ac_status); } &&
10385	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386  { (case "(($ac_try" in
10387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388  *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391  (eval "$ac_try") 2>&5
10392  ac_status=$?
10393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394  (exit $ac_status); }; } &&
10395	 { ac_try='test -s conftest$ac_exeext'
10396  { (case "(($ac_try" in
10397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398  *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401  (eval "$ac_try") 2>&5
10402  ac_status=$?
10403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404  (exit $ac_status); }; }; then
10405  ac_cv_func_shl_load=yes
10406else
10407  echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410	ac_cv_func_shl_load=no
10411fi
10412
10413rm -f core conftest.err conftest.$ac_objext \
10414      conftest$ac_exeext conftest.$ac_ext
10415fi
10416{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10417echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10418if test $ac_cv_func_shl_load = yes; then
10419
10420cat >>confdefs.h <<\_ACEOF
10421#define HAVE_SHL_LOAD 1
10422_ACEOF
10423
10424else
10425  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10426echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10427if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10428  echo $ECHO_N "(cached) $ECHO_C" >&6
10429else
10430  ac_check_lib_save_LIBS=$LIBS
10431LIBS="-ldld  $LIBS"
10432cat >conftest.$ac_ext <<_ACEOF
10433/* confdefs.h.  */
10434_ACEOF
10435cat confdefs.h >>conftest.$ac_ext
10436cat >>conftest.$ac_ext <<_ACEOF
10437/* end confdefs.h.  */
10438
10439/* Override any GCC internal prototype to avoid an error.
10440   Use char because int might match the return type of a GCC
10441   builtin and then its argument prototype would still apply.  */
10442#ifdef __cplusplus
10443extern "C"
10444#endif
10445char shl_load ();
10446int
10447main ()
10448{
10449return shl_load ();
10450  ;
10451  return 0;
10452}
10453_ACEOF
10454rm -f conftest.$ac_objext conftest$ac_exeext
10455if { (ac_try="$ac_link"
10456case "(($ac_try" in
10457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458  *) ac_try_echo=$ac_try;;
10459esac
10460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461  (eval "$ac_link") 2>conftest.er1
10462  ac_status=$?
10463  grep -v '^ *+' conftest.er1 >conftest.err
10464  rm -f conftest.er1
10465  cat conftest.err >&5
10466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467  (exit $ac_status); } &&
10468	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10469  { (case "(($ac_try" in
10470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471  *) ac_try_echo=$ac_try;;
10472esac
10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474  (eval "$ac_try") 2>&5
10475  ac_status=$?
10476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477  (exit $ac_status); }; } &&
10478	 { ac_try='test -s conftest$ac_exeext'
10479  { (case "(($ac_try" in
10480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481  *) ac_try_echo=$ac_try;;
10482esac
10483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484  (eval "$ac_try") 2>&5
10485  ac_status=$?
10486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); }; }; then
10488  ac_cv_lib_dld_shl_load=yes
10489else
10490  echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493	ac_cv_lib_dld_shl_load=no
10494fi
10495
10496rm -f core conftest.err conftest.$ac_objext \
10497      conftest$ac_exeext conftest.$ac_ext
10498LIBS=$ac_check_lib_save_LIBS
10499fi
10500{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10501echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10502if test $ac_cv_lib_dld_shl_load = yes; then
10503
10504cat >>confdefs.h <<\_ACEOF
10505#define HAVE_SHL_LOAD 1
10506_ACEOF
10507
10508	LIBADD_DL="$LIBADD_DL -ldld"
10509else
10510  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10511echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10512if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10513  echo $ECHO_N "(cached) $ECHO_C" >&6
10514else
10515  ac_check_lib_save_LIBS=$LIBS
10516LIBS="-ldl  $LIBS"
10517cat >conftest.$ac_ext <<_ACEOF
10518/* confdefs.h.  */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h.  */
10523
10524/* Override any GCC internal prototype to avoid an error.
10525   Use char because int might match the return type of a GCC
10526   builtin and then its argument prototype would still apply.  */
10527#ifdef __cplusplus
10528extern "C"
10529#endif
10530char dlopen ();
10531int
10532main ()
10533{
10534return dlopen ();
10535  ;
10536  return 0;
10537}
10538_ACEOF
10539rm -f conftest.$ac_objext conftest$ac_exeext
10540if { (ac_try="$ac_link"
10541case "(($ac_try" in
10542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543  *) ac_try_echo=$ac_try;;
10544esac
10545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546  (eval "$ac_link") 2>conftest.er1
10547  ac_status=$?
10548  grep -v '^ *+' conftest.er1 >conftest.err
10549  rm -f conftest.er1
10550  cat conftest.err >&5
10551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552  (exit $ac_status); } &&
10553	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10554  { (case "(($ac_try" in
10555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556  *) ac_try_echo=$ac_try;;
10557esac
10558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559  (eval "$ac_try") 2>&5
10560  ac_status=$?
10561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562  (exit $ac_status); }; } &&
10563	 { ac_try='test -s conftest$ac_exeext'
10564  { (case "(($ac_try" in
10565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566  *) ac_try_echo=$ac_try;;
10567esac
10568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569  (eval "$ac_try") 2>&5
10570  ac_status=$?
10571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572  (exit $ac_status); }; }; then
10573  ac_cv_lib_dl_dlopen=yes
10574else
10575  echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578	ac_cv_lib_dl_dlopen=no
10579fi
10580
10581rm -f core conftest.err conftest.$ac_objext \
10582      conftest$ac_exeext conftest.$ac_ext
10583LIBS=$ac_check_lib_save_LIBS
10584fi
10585{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587if test $ac_cv_lib_dl_dlopen = yes; then
10588
10589cat >>confdefs.h <<\_ACEOF
10590#define HAVE_LIBDL 1
10591_ACEOF
10592
10593	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10594else
10595  cat >conftest.$ac_ext <<_ACEOF
10596/* confdefs.h.  */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h.  */
10601#if HAVE_DLFCN_H
10602#  include <dlfcn.h>
10603#endif
10604
10605int
10606main ()
10607{
10608dlopen(0, 0);
10609  ;
10610  return 0;
10611}
10612_ACEOF
10613rm -f conftest.$ac_objext conftest$ac_exeext
10614if { (ac_try="$ac_link"
10615case "(($ac_try" in
10616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617  *) ac_try_echo=$ac_try;;
10618esac
10619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620  (eval "$ac_link") 2>conftest.er1
10621  ac_status=$?
10622  grep -v '^ *+' conftest.er1 >conftest.err
10623  rm -f conftest.er1
10624  cat conftest.err >&5
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); } &&
10627	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628  { (case "(($ac_try" in
10629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630  *) ac_try_echo=$ac_try;;
10631esac
10632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633  (eval "$ac_try") 2>&5
10634  ac_status=$?
10635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); }; } &&
10637	 { ac_try='test -s conftest$ac_exeext'
10638  { (case "(($ac_try" in
10639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640  *) ac_try_echo=$ac_try;;
10641esac
10642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643  (eval "$ac_try") 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); }; }; then
10647
10648cat >>confdefs.h <<\_ACEOF
10649#define HAVE_LIBDL 1
10650_ACEOF
10651 libltdl_cv_func_dlopen="yes"
10652else
10653  echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
10656	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10657echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10658if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10659  echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661  ac_check_lib_save_LIBS=$LIBS
10662LIBS="-lsvld  $LIBS"
10663cat >conftest.$ac_ext <<_ACEOF
10664/* confdefs.h.  */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h.  */
10669
10670/* Override any GCC internal prototype to avoid an error.
10671   Use char because int might match the return type of a GCC
10672   builtin and then its argument prototype would still apply.  */
10673#ifdef __cplusplus
10674extern "C"
10675#endif
10676char dlopen ();
10677int
10678main ()
10679{
10680return dlopen ();
10681  ;
10682  return 0;
10683}
10684_ACEOF
10685rm -f conftest.$ac_objext conftest$ac_exeext
10686if { (ac_try="$ac_link"
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_link") 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_exeext'
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_cv_lib_svld_dlopen=yes
10720else
10721  echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724	ac_cv_lib_svld_dlopen=no
10725fi
10726
10727rm -f core conftest.err conftest.$ac_objext \
10728      conftest$ac_exeext conftest.$ac_ext
10729LIBS=$ac_check_lib_save_LIBS
10730fi
10731{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10732echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10733if test $ac_cv_lib_svld_dlopen = yes; then
10734
10735cat >>confdefs.h <<\_ACEOF
10736#define HAVE_LIBDL 1
10737_ACEOF
10738
10739	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10740else
10741  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10742echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10743if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10744  echo $ECHO_N "(cached) $ECHO_C" >&6
10745else
10746  ac_check_lib_save_LIBS=$LIBS
10747LIBS="-ldld  $LIBS"
10748cat >conftest.$ac_ext <<_ACEOF
10749/* confdefs.h.  */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
10753/* end confdefs.h.  */
10754
10755/* Override any GCC internal prototype to avoid an error.
10756   Use char because int might match the return type of a GCC
10757   builtin and then its argument prototype would still apply.  */
10758#ifdef __cplusplus
10759extern "C"
10760#endif
10761char dld_link ();
10762int
10763main ()
10764{
10765return dld_link ();
10766  ;
10767  return 0;
10768}
10769_ACEOF
10770rm -f conftest.$ac_objext conftest$ac_exeext
10771if { (ac_try="$ac_link"
10772case "(($ac_try" in
10773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774  *) ac_try_echo=$ac_try;;
10775esac
10776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777  (eval "$ac_link") 2>conftest.er1
10778  ac_status=$?
10779  grep -v '^ *+' conftest.er1 >conftest.err
10780  rm -f conftest.er1
10781  cat conftest.err >&5
10782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783  (exit $ac_status); } &&
10784	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10785  { (case "(($ac_try" in
10786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787  *) ac_try_echo=$ac_try;;
10788esac
10789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790  (eval "$ac_try") 2>&5
10791  ac_status=$?
10792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793  (exit $ac_status); }; } &&
10794	 { ac_try='test -s conftest$ac_exeext'
10795  { (case "(($ac_try" in
10796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797  *) ac_try_echo=$ac_try;;
10798esac
10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800  (eval "$ac_try") 2>&5
10801  ac_status=$?
10802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803  (exit $ac_status); }; }; then
10804  ac_cv_lib_dld_dld_link=yes
10805else
10806  echo "$as_me: failed program was:" >&5
10807sed 's/^/| /' conftest.$ac_ext >&5
10808
10809	ac_cv_lib_dld_dld_link=no
10810fi
10811
10812rm -f core conftest.err conftest.$ac_objext \
10813      conftest$ac_exeext conftest.$ac_ext
10814LIBS=$ac_check_lib_save_LIBS
10815fi
10816{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10817echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10818if test $ac_cv_lib_dld_dld_link = yes; then
10819
10820cat >>confdefs.h <<\_ACEOF
10821#define HAVE_DLD 1
10822_ACEOF
10823
10824	 	LIBADD_DL="$LIBADD_DL -ldld"
10825else
10826  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10827echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10828if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10829  echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831  cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h.  */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h.  */
10837/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10838   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10839#define _dyld_func_lookup innocuous__dyld_func_lookup
10840
10841/* System header to define __stub macros and hopefully few prototypes,
10842    which can conflict with char _dyld_func_lookup (); below.
10843    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844    <limits.h> exists even on freestanding compilers.  */
10845
10846#ifdef __STDC__
10847# include <limits.h>
10848#else
10849# include <assert.h>
10850#endif
10851
10852#undef _dyld_func_lookup
10853
10854/* Override any GCC internal prototype to avoid an error.
10855   Use char because int might match the return type of a GCC
10856   builtin and then its argument prototype would still apply.  */
10857#ifdef __cplusplus
10858extern "C"
10859#endif
10860char _dyld_func_lookup ();
10861/* The GNU C library defines this for functions which it implements
10862    to always fail with ENOSYS.  Some functions are actually named
10863    something starting with __ and the normal name is an alias.  */
10864#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10865choke me
10866#endif
10867
10868int
10869main ()
10870{
10871return _dyld_func_lookup ();
10872  ;
10873  return 0;
10874}
10875_ACEOF
10876rm -f conftest.$ac_objext conftest$ac_exeext
10877if { (ac_try="$ac_link"
10878case "(($ac_try" in
10879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880  *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883  (eval "$ac_link") 2>conftest.er1
10884  ac_status=$?
10885  grep -v '^ *+' conftest.er1 >conftest.err
10886  rm -f conftest.er1
10887  cat conftest.err >&5
10888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889  (exit $ac_status); } &&
10890	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891  { (case "(($ac_try" in
10892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893  *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896  (eval "$ac_try") 2>&5
10897  ac_status=$?
10898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899  (exit $ac_status); }; } &&
10900	 { ac_try='test -s conftest$ac_exeext'
10901  { (case "(($ac_try" in
10902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903  *) ac_try_echo=$ac_try;;
10904esac
10905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906  (eval "$ac_try") 2>&5
10907  ac_status=$?
10908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909  (exit $ac_status); }; }; then
10910  ac_cv_func__dyld_func_lookup=yes
10911else
10912  echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915	ac_cv_func__dyld_func_lookup=no
10916fi
10917
10918rm -f core conftest.err conftest.$ac_objext \
10919      conftest$ac_exeext conftest.$ac_ext
10920fi
10921{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10922echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10923if test $ac_cv_func__dyld_func_lookup = yes; then
10924
10925cat >>confdefs.h <<\_ACEOF
10926#define HAVE_DYLD 1
10927_ACEOF
10928
10929fi
10930
10931
10932fi
10933
10934
10935fi
10936
10937
10938fi
10939
10940rm -f core conftest.err conftest.$ac_objext \
10941      conftest$ac_exeext conftest.$ac_ext
10942
10943fi
10944
10945
10946fi
10947
10948
10949fi
10950
10951
10952if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10953then
10954  lt_save_LIBS="$LIBS"
10955  LIBS="$LIBS $LIBADD_DL"
10956
10957for ac_func in dlerror
10958do
10959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963  echo $ECHO_N "(cached) $ECHO_C" >&6
10964else
10965  cat >conftest.$ac_ext <<_ACEOF
10966/* confdefs.h.  */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h.  */
10971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10973#define $ac_func innocuous_$ac_func
10974
10975/* System header to define __stub macros and hopefully few prototypes,
10976    which can conflict with char $ac_func (); below.
10977    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978    <limits.h> exists even on freestanding compilers.  */
10979
10980#ifdef __STDC__
10981# include <limits.h>
10982#else
10983# include <assert.h>
10984#endif
10985
10986#undef $ac_func
10987
10988/* Override any GCC internal prototype to avoid an error.
10989   Use char because int might match the return type of a GCC
10990   builtin and then its argument prototype would still apply.  */
10991#ifdef __cplusplus
10992extern "C"
10993#endif
10994char $ac_func ();
10995/* The GNU C library defines this for functions which it implements
10996    to always fail with ENOSYS.  Some functions are actually named
10997    something starting with __ and the normal name is an alias.  */
10998#if defined __stub_$ac_func || defined __stub___$ac_func
10999choke me
11000#endif
11001
11002int
11003main ()
11004{
11005return $ac_func ();
11006  ;
11007  return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext conftest$ac_exeext
11011if { (ac_try="$ac_link"
11012case "(($ac_try" in
11013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014  *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017  (eval "$ac_link") 2>conftest.er1
11018  ac_status=$?
11019  grep -v '^ *+' conftest.er1 >conftest.err
11020  rm -f conftest.er1
11021  cat conftest.err >&5
11022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023  (exit $ac_status); } &&
11024	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025  { (case "(($ac_try" in
11026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027  *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030  (eval "$ac_try") 2>&5
11031  ac_status=$?
11032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033  (exit $ac_status); }; } &&
11034	 { ac_try='test -s conftest$ac_exeext'
11035  { (case "(($ac_try" in
11036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037  *) ac_try_echo=$ac_try;;
11038esac
11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040  (eval "$ac_try") 2>&5
11041  ac_status=$?
11042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043  (exit $ac_status); }; }; then
11044  eval "$as_ac_var=yes"
11045else
11046  echo "$as_me: failed program was:" >&5
11047sed 's/^/| /' conftest.$ac_ext >&5
11048
11049	eval "$as_ac_var=no"
11050fi
11051
11052rm -f core conftest.err conftest.$ac_objext \
11053      conftest$ac_exeext conftest.$ac_ext
11054fi
11055ac_res=`eval echo '${'$as_ac_var'}'`
11056	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11057echo "${ECHO_T}$ac_res" >&6; }
11058if test `eval echo '${'$as_ac_var'}'` = yes; then
11059  cat >>confdefs.h <<_ACEOF
11060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061_ACEOF
11062
11063fi
11064done
11065
11066  LIBS="$lt_save_LIBS"
11067fi
11068ac_ext=c
11069ac_cpp='$CPP $CPPFLAGS'
11070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11072ac_compiler_gnu=$ac_cv_c_compiler_gnu
11073
11074
11075
11076{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11077echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11078if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11079  echo $ECHO_N "(cached) $ECHO_C" >&6
11080else
11081  ac_cv_sys_symbol_underscore=no
11082  cat > conftest.$ac_ext <<EOF
11083void nm_test_func(){}
11084int main(){nm_test_func;return 0;}
11085EOF
11086  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087  (eval $ac_compile) 2>&5
11088  ac_status=$?
11089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090  (exit $ac_status); }; then
11091    # Now try to grab the symbols.
11092    ac_nlist=conftest.nm
11093    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11094  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11095  ac_status=$?
11096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097  (exit $ac_status); } && test -s "$ac_nlist"; then
11098      # See whether the symbols have a leading underscore.
11099      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11100        ac_cv_sys_symbol_underscore=yes
11101      else
11102        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11103	  :
11104        else
11105	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11106        fi
11107      fi
11108    else
11109      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11110    fi
11111  else
11112    echo "configure: failed program was:" >&5
11113    cat conftest.c >&5
11114  fi
11115  rm -rf conftest*
11116
11117fi
11118{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11119echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11120
11121
11122if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11123  if test x"$libltdl_cv_func_dlopen" = xyes ||
11124     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11125	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11126echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11127if test "${libltdl_cv_need_uscore+set}" = set; then
11128  echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130  libltdl_cv_need_uscore=unknown
11131          save_LIBS="$LIBS"
11132          LIBS="$LIBS $LIBADD_DL"
11133	  if test "$cross_compiling" = yes; then :
11134  libltdl_cv_need_uscore=cross
11135else
11136  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137  lt_status=$lt_dlunknown
11138  cat > conftest.$ac_ext <<EOF
11139#line 11139 "configure"
11140#include "confdefs.h"
11141
11142#if HAVE_DLFCN_H
11143#include <dlfcn.h>
11144#endif
11145
11146#include <stdio.h>
11147
11148#ifdef RTLD_GLOBAL
11149#  define LT_DLGLOBAL		RTLD_GLOBAL
11150#else
11151#  ifdef DL_GLOBAL
11152#    define LT_DLGLOBAL		DL_GLOBAL
11153#  else
11154#    define LT_DLGLOBAL		0
11155#  endif
11156#endif
11157
11158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159   find out it does not work in some platform. */
11160#ifndef LT_DLLAZY_OR_NOW
11161#  ifdef RTLD_LAZY
11162#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11163#  else
11164#    ifdef DL_LAZY
11165#      define LT_DLLAZY_OR_NOW		DL_LAZY
11166#    else
11167#      ifdef RTLD_NOW
11168#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11169#      else
11170#        ifdef DL_NOW
11171#          define LT_DLLAZY_OR_NOW	DL_NOW
11172#        else
11173#          define LT_DLLAZY_OR_NOW	0
11174#        endif
11175#      endif
11176#    endif
11177#  endif
11178#endif
11179
11180#ifdef __cplusplus
11181extern "C" void exit (int);
11182#endif
11183
11184void fnord() { int i=42;}
11185int main ()
11186{
11187  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11188  int status = $lt_dlunknown;
11189
11190  if (self)
11191    {
11192      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11193      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11194      /* dlclose (self); */
11195    }
11196  else
11197    puts (dlerror ());
11198
11199    exit (status);
11200}
11201EOF
11202  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203  (eval $ac_link) 2>&5
11204  ac_status=$?
11205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207    (./conftest; exit; ) >&5 2>/dev/null
11208    lt_status=$?
11209    case x$lt_status in
11210      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11211      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11212      x$lt_dlunknown|x*)  ;;
11213    esac
11214  else :
11215    # compilation failed
11216
11217  fi
11218fi
11219rm -fr conftest*
11220
11221	  LIBS="$save_LIBS"
11222
11223fi
11224{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11225echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11226  fi
11227fi
11228
11229if test x"$libltdl_cv_need_uscore" = xyes; then
11230
11231cat >>confdefs.h <<\_ACEOF
11232#define NEED_USCORE 1
11233_ACEOF
11234
11235fi
11236
11237
11238{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11239echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11240if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11241  echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243  # PORTME does your system automatically load deplibs for dlopen?
11244  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11245  # For now, we just catch OSes we know something about -- in the
11246  # future, we'll try test this programmatically.
11247  libltdl_cv_sys_dlopen_deplibs=unknown
11248  case "$host_os" in
11249  aix3*|aix4.1.*|aix4.2.*)
11250    # Unknown whether this is true for these versions of AIX, but
11251    # we want this `case' here to explicitly catch those versions.
11252    libltdl_cv_sys_dlopen_deplibs=unknown
11253    ;;
11254  aix[45]*)
11255    libltdl_cv_sys_dlopen_deplibs=yes
11256    ;;
11257  darwin*)
11258    # Assuming the user has installed a libdl from somewhere, this is true
11259    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11260    libltdl_cv_sys_dlopen_deplibs=yes
11261    ;;
11262  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11263    # GNU and its variants, using gnu ld.so (Glibc)
11264    libltdl_cv_sys_dlopen_deplibs=yes
11265    ;;
11266  hpux10*|hpux11*)
11267    libltdl_cv_sys_dlopen_deplibs=yes
11268    ;;
11269  interix*)
11270    libltdl_cv_sys_dlopen_deplibs=yes
11271    ;;
11272  irix[12345]*|irix6.[01]*)
11273    # Catch all versions of IRIX before 6.2, and indicate that we don't
11274    # know how it worked for any of those versions.
11275    libltdl_cv_sys_dlopen_deplibs=unknown
11276    ;;
11277  irix*)
11278    # The case above catches anything before 6.2, and it's known that
11279    # at 6.2 and later dlopen does load deplibs.
11280    libltdl_cv_sys_dlopen_deplibs=yes
11281    ;;
11282  netbsd*)
11283    libltdl_cv_sys_dlopen_deplibs=yes
11284    ;;
11285  openbsd*)
11286    libltdl_cv_sys_dlopen_deplibs=yes
11287    ;;
11288  osf[1234]*)
11289    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11290    # it did *not* use an RPATH in a shared library to find objects the
11291    # library depends on, so we explictly say `no'.
11292    libltdl_cv_sys_dlopen_deplibs=no
11293    ;;
11294  osf5.0|osf5.0a|osf5.1)
11295    # dlopen *does* load deplibs and with the right loader patch applied
11296    # it even uses RPATH in a shared library to search for shared objects
11297    # that the library depends on, but there's no easy way to know if that
11298    # patch is installed.  Since this is the case, all we can really
11299    # say is unknown -- it depends on the patch being installed.  If
11300    # it is, this changes to `yes'.  Without it, it would be `no'.
11301    libltdl_cv_sys_dlopen_deplibs=unknown
11302    ;;
11303  osf*)
11304    # the two cases above should catch all versions of osf <= 5.1.  Read
11305    # the comments above for what we know about them.
11306    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11307    # is used to find them so we can finally say `yes'.
11308    libltdl_cv_sys_dlopen_deplibs=yes
11309    ;;
11310  solaris*)
11311    libltdl_cv_sys_dlopen_deplibs=yes
11312    ;;
11313  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11314    libltdl_cv_sys_dlopen_deplibs=yes
11315    ;;
11316  esac
11317
11318fi
11319{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11320echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11321if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11322
11323cat >>confdefs.h <<\_ACEOF
11324#define LTDL_DLOPEN_DEPLIBS 1
11325_ACEOF
11326
11327fi
11328
11329
11330for ac_header in argz.h
11331do
11332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337  echo $ECHO_N "(cached) $ECHO_C" >&6
11338fi
11339ac_res=`eval echo '${'$as_ac_Header'}'`
11340	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11341echo "${ECHO_T}$ac_res" >&6; }
11342else
11343  # Is the header compilable?
11344{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11346cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h.  */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h.  */
11352$ac_includes_default
11353#include <$ac_header>
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (ac_try="$ac_compile"
11357case "(($ac_try" in
11358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359  *) ac_try_echo=$ac_try;;
11360esac
11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362  (eval "$ac_compile") 2>conftest.er1
11363  ac_status=$?
11364  grep -v '^ *+' conftest.er1 >conftest.err
11365  rm -f conftest.er1
11366  cat conftest.err >&5
11367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368  (exit $ac_status); } &&
11369	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370  { (case "(($ac_try" in
11371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372  *) ac_try_echo=$ac_try;;
11373esac
11374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375  (eval "$ac_try") 2>&5
11376  ac_status=$?
11377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378  (exit $ac_status); }; } &&
11379	 { ac_try='test -s conftest.$ac_objext'
11380  { (case "(($ac_try" in
11381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382  *) ac_try_echo=$ac_try;;
11383esac
11384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385  (eval "$ac_try") 2>&5
11386  ac_status=$?
11387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388  (exit $ac_status); }; }; then
11389  ac_header_compiler=yes
11390else
11391  echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394	ac_header_compiler=no
11395fi
11396
11397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11399echo "${ECHO_T}$ac_header_compiler" >&6; }
11400
11401# Is the header present?
11402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11404cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h.  */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h.  */
11410#include <$ac_header>
11411_ACEOF
11412if { (ac_try="$ac_cpp conftest.$ac_ext"
11413case "(($ac_try" in
11414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415  *) ac_try_echo=$ac_try;;
11416esac
11417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419  ac_status=$?
11420  grep -v '^ *+' conftest.er1 >conftest.err
11421  rm -f conftest.er1
11422  cat conftest.err >&5
11423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424  (exit $ac_status); } >/dev/null; then
11425  if test -s conftest.err; then
11426    ac_cpp_err=$ac_c_preproc_warn_flag
11427    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11428  else
11429    ac_cpp_err=
11430  fi
11431else
11432  ac_cpp_err=yes
11433fi
11434if test -z "$ac_cpp_err"; then
11435  ac_header_preproc=yes
11436else
11437  echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
11439
11440  ac_header_preproc=no
11441fi
11442
11443rm -f conftest.err conftest.$ac_ext
11444{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445echo "${ECHO_T}$ac_header_preproc" >&6; }
11446
11447# So?  What about this header?
11448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449  yes:no: )
11450    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11454    ac_header_preproc=yes
11455    ;;
11456  no:yes:* )
11457    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11460echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11461    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11464echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11465    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11469    ( cat <<\_ASBOX
11470## ----------------------------------- ##
11471## Report this to llvmbugs@cs.uiuc.edu ##
11472## ----------------------------------- ##
11473_ASBOX
11474     ) | sed "s/^/$as_me: WARNING:     /" >&2
11475    ;;
11476esac
11477{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480  echo $ECHO_N "(cached) $ECHO_C" >&6
11481else
11482  eval "$as_ac_Header=\$ac_header_preproc"
11483fi
11484ac_res=`eval echo '${'$as_ac_Header'}'`
11485	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11486echo "${ECHO_T}$ac_res" >&6; }
11487
11488fi
11489if test `eval echo '${'$as_ac_Header'}'` = yes; then
11490  cat >>confdefs.h <<_ACEOF
11491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11492_ACEOF
11493
11494fi
11495
11496done
11497
11498
11499{ echo "$as_me:$LINENO: checking for error_t" >&5
11500echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11501if test "${ac_cv_type_error_t+set}" = set; then
11502  echo $ECHO_N "(cached) $ECHO_C" >&6
11503else
11504  cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h.  */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h.  */
11510#if HAVE_ARGZ_H
11511#  include <argz.h>
11512#endif
11513
11514typedef error_t ac__type_new_;
11515int
11516main ()
11517{
11518if ((ac__type_new_ *) 0)
11519  return 0;
11520if (sizeof (ac__type_new_))
11521  return 0;
11522  ;
11523  return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext
11527if { (ac_try="$ac_compile"
11528case "(($ac_try" in
11529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530  *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533  (eval "$ac_compile") 2>conftest.er1
11534  ac_status=$?
11535  grep -v '^ *+' conftest.er1 >conftest.err
11536  rm -f conftest.er1
11537  cat conftest.err >&5
11538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539  (exit $ac_status); } &&
11540	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541  { (case "(($ac_try" in
11542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543  *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546  (eval "$ac_try") 2>&5
11547  ac_status=$?
11548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549  (exit $ac_status); }; } &&
11550	 { ac_try='test -s conftest.$ac_objext'
11551  { (case "(($ac_try" in
11552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553  *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556  (eval "$ac_try") 2>&5
11557  ac_status=$?
11558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559  (exit $ac_status); }; }; then
11560  ac_cv_type_error_t=yes
11561else
11562  echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565	ac_cv_type_error_t=no
11566fi
11567
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569fi
11570{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11571echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11572if test $ac_cv_type_error_t = yes; then
11573
11574cat >>confdefs.h <<_ACEOF
11575#define HAVE_ERROR_T 1
11576_ACEOF
11577
11578
11579else
11580
11581cat >>confdefs.h <<\_ACEOF
11582#define error_t int
11583_ACEOF
11584
11585fi
11586
11587
11588
11589
11590
11591
11592
11593for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11594do
11595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11596{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11598if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11599  echo $ECHO_N "(cached) $ECHO_C" >&6
11600else
11601  cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h.  */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h.  */
11607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11608   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11609#define $ac_func innocuous_$ac_func
11610
11611/* System header to define __stub macros and hopefully few prototypes,
11612    which can conflict with char $ac_func (); below.
11613    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11614    <limits.h> exists even on freestanding compilers.  */
11615
11616#ifdef __STDC__
11617# include <limits.h>
11618#else
11619# include <assert.h>
11620#endif
11621
11622#undef $ac_func
11623
11624/* Override any GCC internal prototype to avoid an error.
11625   Use char because int might match the return type of a GCC
11626   builtin and then its argument prototype would still apply.  */
11627#ifdef __cplusplus
11628extern "C"
11629#endif
11630char $ac_func ();
11631/* The GNU C library defines this for functions which it implements
11632    to always fail with ENOSYS.  Some functions are actually named
11633    something starting with __ and the normal name is an alias.  */
11634#if defined __stub_$ac_func || defined __stub___$ac_func
11635choke me
11636#endif
11637
11638int
11639main ()
11640{
11641return $ac_func ();
11642  ;
11643  return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (ac_try="$ac_link"
11648case "(($ac_try" in
11649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650  *) ac_try_echo=$ac_try;;
11651esac
11652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653  (eval "$ac_link") 2>conftest.er1
11654  ac_status=$?
11655  grep -v '^ *+' conftest.er1 >conftest.err
11656  rm -f conftest.er1
11657  cat conftest.err >&5
11658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); } &&
11660	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11661  { (case "(($ac_try" in
11662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663  *) ac_try_echo=$ac_try;;
11664esac
11665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666  (eval "$ac_try") 2>&5
11667  ac_status=$?
11668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669  (exit $ac_status); }; } &&
11670	 { ac_try='test -s conftest$ac_exeext'
11671  { (case "(($ac_try" in
11672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673  *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676  (eval "$ac_try") 2>&5
11677  ac_status=$?
11678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679  (exit $ac_status); }; }; then
11680  eval "$as_ac_var=yes"
11681else
11682  echo "$as_me: failed program was:" >&5
11683sed 's/^/| /' conftest.$ac_ext >&5
11684
11685	eval "$as_ac_var=no"
11686fi
11687
11688rm -f core conftest.err conftest.$ac_objext \
11689      conftest$ac_exeext conftest.$ac_ext
11690fi
11691ac_res=`eval echo '${'$as_ac_var'}'`
11692	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11693echo "${ECHO_T}$ac_res" >&6; }
11694if test `eval echo '${'$as_ac_var'}'` = yes; then
11695  cat >>confdefs.h <<_ACEOF
11696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11697_ACEOF
11698
11699fi
11700done
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11730		  stdio.h unistd.h
11731do
11732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11737  echo $ECHO_N "(cached) $ECHO_C" >&6
11738fi
11739ac_res=`eval echo '${'$as_ac_Header'}'`
11740	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11741echo "${ECHO_T}$ac_res" >&6; }
11742else
11743  # Is the header compilable?
11744{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11746cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h.  */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h.  */
11752$ac_includes_default
11753#include <$ac_header>
11754_ACEOF
11755rm -f conftest.$ac_objext
11756if { (ac_try="$ac_compile"
11757case "(($ac_try" in
11758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759  *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762  (eval "$ac_compile") 2>conftest.er1
11763  ac_status=$?
11764  grep -v '^ *+' conftest.er1 >conftest.err
11765  rm -f conftest.er1
11766  cat conftest.err >&5
11767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768  (exit $ac_status); } &&
11769	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11770  { (case "(($ac_try" in
11771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772  *) ac_try_echo=$ac_try;;
11773esac
11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775  (eval "$ac_try") 2>&5
11776  ac_status=$?
11777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778  (exit $ac_status); }; } &&
11779	 { ac_try='test -s conftest.$ac_objext'
11780  { (case "(($ac_try" in
11781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782  *) ac_try_echo=$ac_try;;
11783esac
11784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785  (eval "$ac_try") 2>&5
11786  ac_status=$?
11787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788  (exit $ac_status); }; }; then
11789  ac_header_compiler=yes
11790else
11791  echo "$as_me: failed program was:" >&5
11792sed 's/^/| /' conftest.$ac_ext >&5
11793
11794	ac_header_compiler=no
11795fi
11796
11797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799echo "${ECHO_T}$ac_header_compiler" >&6; }
11800
11801# Is the header present?
11802{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11804cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h.  */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h.  */
11810#include <$ac_header>
11811_ACEOF
11812if { (ac_try="$ac_cpp conftest.$ac_ext"
11813case "(($ac_try" in
11814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815  *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11819  ac_status=$?
11820  grep -v '^ *+' conftest.er1 >conftest.err
11821  rm -f conftest.er1
11822  cat conftest.err >&5
11823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824  (exit $ac_status); } >/dev/null; then
11825  if test -s conftest.err; then
11826    ac_cpp_err=$ac_c_preproc_warn_flag
11827    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11828  else
11829    ac_cpp_err=
11830  fi
11831else
11832  ac_cpp_err=yes
11833fi
11834if test -z "$ac_cpp_err"; then
11835  ac_header_preproc=yes
11836else
11837  echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840  ac_header_preproc=no
11841fi
11842
11843rm -f conftest.err conftest.$ac_ext
11844{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845echo "${ECHO_T}$ac_header_preproc" >&6; }
11846
11847# So?  What about this header?
11848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849  yes:no: )
11850    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11854    ac_header_preproc=yes
11855    ;;
11856  no:yes:* )
11857    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11859    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11860echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11861    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11863    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11864echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11865    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11867    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11869    ( cat <<\_ASBOX
11870## ----------------------------------- ##
11871## Report this to llvmbugs@cs.uiuc.edu ##
11872## ----------------------------------- ##
11873_ASBOX
11874     ) | sed "s/^/$as_me: WARNING:     /" >&2
11875    ;;
11876esac
11877{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880  echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882  eval "$as_ac_Header=\$ac_header_preproc"
11883fi
11884ac_res=`eval echo '${'$as_ac_Header'}'`
11885	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11886echo "${ECHO_T}$ac_res" >&6; }
11887
11888fi
11889if test `eval echo '${'$as_ac_Header'}'` = yes; then
11890  cat >>confdefs.h <<_ACEOF
11891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11892_ACEOF
11893
11894fi
11895
11896done
11897
11898
11899
11900
11901
11902for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11903do
11904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909  echo $ECHO_N "(cached) $ECHO_C" >&6
11910fi
11911ac_res=`eval echo '${'$as_ac_Header'}'`
11912	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11913echo "${ECHO_T}$ac_res" >&6; }
11914else
11915  # Is the header compilable?
11916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11918cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h.  */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h.  */
11924$ac_includes_default
11925#include <$ac_header>
11926_ACEOF
11927rm -f conftest.$ac_objext
11928if { (ac_try="$ac_compile"
11929case "(($ac_try" in
11930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931  *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934  (eval "$ac_compile") 2>conftest.er1
11935  ac_status=$?
11936  grep -v '^ *+' conftest.er1 >conftest.err
11937  rm -f conftest.er1
11938  cat conftest.err >&5
11939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940  (exit $ac_status); } &&
11941	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942  { (case "(($ac_try" in
11943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944  *) ac_try_echo=$ac_try;;
11945esac
11946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947  (eval "$ac_try") 2>&5
11948  ac_status=$?
11949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950  (exit $ac_status); }; } &&
11951	 { ac_try='test -s conftest.$ac_objext'
11952  { (case "(($ac_try" in
11953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954  *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957  (eval "$ac_try") 2>&5
11958  ac_status=$?
11959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960  (exit $ac_status); }; }; then
11961  ac_header_compiler=yes
11962else
11963  echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966	ac_header_compiler=no
11967fi
11968
11969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11971echo "${ECHO_T}$ac_header_compiler" >&6; }
11972
11973# Is the header present?
11974{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11976cat >conftest.$ac_ext <<_ACEOF
11977/* confdefs.h.  */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h.  */
11982#include <$ac_header>
11983_ACEOF
11984if { (ac_try="$ac_cpp conftest.$ac_ext"
11985case "(($ac_try" in
11986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987  *) ac_try_echo=$ac_try;;
11988esac
11989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11991  ac_status=$?
11992  grep -v '^ *+' conftest.er1 >conftest.err
11993  rm -f conftest.er1
11994  cat conftest.err >&5
11995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996  (exit $ac_status); } >/dev/null; then
11997  if test -s conftest.err; then
11998    ac_cpp_err=$ac_c_preproc_warn_flag
11999    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12000  else
12001    ac_cpp_err=
12002  fi
12003else
12004  ac_cpp_err=yes
12005fi
12006if test -z "$ac_cpp_err"; then
12007  ac_header_preproc=yes
12008else
12009  echo "$as_me: failed program was:" >&5
12010sed 's/^/| /' conftest.$ac_ext >&5
12011
12012  ac_header_preproc=no
12013fi
12014
12015rm -f conftest.err conftest.$ac_ext
12016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12017echo "${ECHO_T}$ac_header_preproc" >&6; }
12018
12019# So?  What about this header?
12020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12021  yes:no: )
12022    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12026    ac_header_preproc=yes
12027    ;;
12028  no:yes:* )
12029    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12031    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12032echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12033    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12035    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12036echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12037    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12039    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12041    ( cat <<\_ASBOX
12042## ----------------------------------- ##
12043## Report this to llvmbugs@cs.uiuc.edu ##
12044## ----------------------------------- ##
12045_ASBOX
12046     ) | sed "s/^/$as_me: WARNING:     /" >&2
12047    ;;
12048esac
12049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052  echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054  eval "$as_ac_Header=\$ac_header_preproc"
12055fi
12056ac_res=`eval echo '${'$as_ac_Header'}'`
12057	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12058echo "${ECHO_T}$ac_res" >&6; }
12059
12060fi
12061if test `eval echo '${'$as_ac_Header'}'` = yes; then
12062  cat >>confdefs.h <<_ACEOF
12063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12064_ACEOF
12065
12066fi
12067
12068done
12069
12070
12071
12072for ac_header in string.h strings.h
12073do
12074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12076  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079  echo $ECHO_N "(cached) $ECHO_C" >&6
12080fi
12081ac_res=`eval echo '${'$as_ac_Header'}'`
12082	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12083echo "${ECHO_T}$ac_res" >&6; }
12084else
12085  # Is the header compilable?
12086{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12088cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h.  */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h.  */
12094$ac_includes_default
12095#include <$ac_header>
12096_ACEOF
12097rm -f conftest.$ac_objext
12098if { (ac_try="$ac_compile"
12099case "(($ac_try" in
12100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101  *) ac_try_echo=$ac_try;;
12102esac
12103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104  (eval "$ac_compile") 2>conftest.er1
12105  ac_status=$?
12106  grep -v '^ *+' conftest.er1 >conftest.err
12107  rm -f conftest.er1
12108  cat conftest.err >&5
12109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110  (exit $ac_status); } &&
12111	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12112  { (case "(($ac_try" in
12113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114  *) ac_try_echo=$ac_try;;
12115esac
12116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117  (eval "$ac_try") 2>&5
12118  ac_status=$?
12119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120  (exit $ac_status); }; } &&
12121	 { ac_try='test -s conftest.$ac_objext'
12122  { (case "(($ac_try" in
12123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124  *) ac_try_echo=$ac_try;;
12125esac
12126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127  (eval "$ac_try") 2>&5
12128  ac_status=$?
12129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130  (exit $ac_status); }; }; then
12131  ac_header_compiler=yes
12132else
12133  echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136	ac_header_compiler=no
12137fi
12138
12139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141echo "${ECHO_T}$ac_header_compiler" >&6; }
12142
12143# Is the header present?
12144{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12146cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h.  */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h.  */
12152#include <$ac_header>
12153_ACEOF
12154if { (ac_try="$ac_cpp conftest.$ac_ext"
12155case "(($ac_try" in
12156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157  *) ac_try_echo=$ac_try;;
12158esac
12159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12161  ac_status=$?
12162  grep -v '^ *+' conftest.er1 >conftest.err
12163  rm -f conftest.er1
12164  cat conftest.err >&5
12165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166  (exit $ac_status); } >/dev/null; then
12167  if test -s conftest.err; then
12168    ac_cpp_err=$ac_c_preproc_warn_flag
12169    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12170  else
12171    ac_cpp_err=
12172  fi
12173else
12174  ac_cpp_err=yes
12175fi
12176if test -z "$ac_cpp_err"; then
12177  ac_header_preproc=yes
12178else
12179  echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
12182  ac_header_preproc=no
12183fi
12184
12185rm -f conftest.err conftest.$ac_ext
12186{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12187echo "${ECHO_T}$ac_header_preproc" >&6; }
12188
12189# So?  What about this header?
12190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12191  yes:no: )
12192    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12194    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12196    ac_header_preproc=yes
12197    ;;
12198  no:yes:* )
12199    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12201    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12202echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12203    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12205    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12206echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12207    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12209    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12211    ( cat <<\_ASBOX
12212## ----------------------------------- ##
12213## Report this to llvmbugs@cs.uiuc.edu ##
12214## ----------------------------------- ##
12215_ASBOX
12216     ) | sed "s/^/$as_me: WARNING:     /" >&2
12217    ;;
12218esac
12219{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12222  echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224  eval "$as_ac_Header=\$ac_header_preproc"
12225fi
12226ac_res=`eval echo '${'$as_ac_Header'}'`
12227	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12228echo "${ECHO_T}$ac_res" >&6; }
12229
12230fi
12231if test `eval echo '${'$as_ac_Header'}'` = yes; then
12232  cat >>confdefs.h <<_ACEOF
12233#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12234_ACEOF
12235 break
12236fi
12237
12238done
12239
12240
12241
12242
12243for ac_func in strchr index
12244do
12245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12246{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12248if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12249  echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251  cat >conftest.$ac_ext <<_ACEOF
12252/* confdefs.h.  */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h.  */
12257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12258   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12259#define $ac_func innocuous_$ac_func
12260
12261/* System header to define __stub macros and hopefully few prototypes,
12262    which can conflict with char $ac_func (); below.
12263    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12264    <limits.h> exists even on freestanding compilers.  */
12265
12266#ifdef __STDC__
12267# include <limits.h>
12268#else
12269# include <assert.h>
12270#endif
12271
12272#undef $ac_func
12273
12274/* Override any GCC internal prototype to avoid an error.
12275   Use char because int might match the return type of a GCC
12276   builtin and then its argument prototype would still apply.  */
12277#ifdef __cplusplus
12278extern "C"
12279#endif
12280char $ac_func ();
12281/* The GNU C library defines this for functions which it implements
12282    to always fail with ENOSYS.  Some functions are actually named
12283    something starting with __ and the normal name is an alias.  */
12284#if defined __stub_$ac_func || defined __stub___$ac_func
12285choke me
12286#endif
12287
12288int
12289main ()
12290{
12291return $ac_func ();
12292  ;
12293  return 0;
12294}
12295_ACEOF
12296rm -f conftest.$ac_objext conftest$ac_exeext
12297if { (ac_try="$ac_link"
12298case "(($ac_try" in
12299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300  *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303  (eval "$ac_link") 2>conftest.er1
12304  ac_status=$?
12305  grep -v '^ *+' conftest.er1 >conftest.err
12306  rm -f conftest.er1
12307  cat conftest.err >&5
12308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309  (exit $ac_status); } &&
12310	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12311  { (case "(($ac_try" in
12312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313  *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316  (eval "$ac_try") 2>&5
12317  ac_status=$?
12318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319  (exit $ac_status); }; } &&
12320	 { ac_try='test -s conftest$ac_exeext'
12321  { (case "(($ac_try" in
12322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323  *) ac_try_echo=$ac_try;;
12324esac
12325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326  (eval "$ac_try") 2>&5
12327  ac_status=$?
12328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329  (exit $ac_status); }; }; then
12330  eval "$as_ac_var=yes"
12331else
12332  echo "$as_me: failed program was:" >&5
12333sed 's/^/| /' conftest.$ac_ext >&5
12334
12335	eval "$as_ac_var=no"
12336fi
12337
12338rm -f core conftest.err conftest.$ac_objext \
12339      conftest$ac_exeext conftest.$ac_ext
12340fi
12341ac_res=`eval echo '${'$as_ac_var'}'`
12342	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12343echo "${ECHO_T}$ac_res" >&6; }
12344if test `eval echo '${'$as_ac_var'}'` = yes; then
12345  cat >>confdefs.h <<_ACEOF
12346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12347_ACEOF
12348 break
12349fi
12350done
12351
12352
12353
12354for ac_func in strrchr rindex
12355do
12356as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12357{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12358echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12359if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12360  echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362  cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h.  */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
12367/* end confdefs.h.  */
12368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12369   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12370#define $ac_func innocuous_$ac_func
12371
12372/* System header to define __stub macros and hopefully few prototypes,
12373    which can conflict with char $ac_func (); below.
12374    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375    <limits.h> exists even on freestanding compilers.  */
12376
12377#ifdef __STDC__
12378# include <limits.h>
12379#else
12380# include <assert.h>
12381#endif
12382
12383#undef $ac_func
12384
12385/* Override any GCC internal prototype to avoid an error.
12386   Use char because int might match the return type of a GCC
12387   builtin and then its argument prototype would still apply.  */
12388#ifdef __cplusplus
12389extern "C"
12390#endif
12391char $ac_func ();
12392/* The GNU C library defines this for functions which it implements
12393    to always fail with ENOSYS.  Some functions are actually named
12394    something starting with __ and the normal name is an alias.  */
12395#if defined __stub_$ac_func || defined __stub___$ac_func
12396choke me
12397#endif
12398
12399int
12400main ()
12401{
12402return $ac_func ();
12403  ;
12404  return 0;
12405}
12406_ACEOF
12407rm -f conftest.$ac_objext conftest$ac_exeext
12408if { (ac_try="$ac_link"
12409case "(($ac_try" in
12410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411  *) ac_try_echo=$ac_try;;
12412esac
12413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414  (eval "$ac_link") 2>conftest.er1
12415  ac_status=$?
12416  grep -v '^ *+' conftest.er1 >conftest.err
12417  rm -f conftest.er1
12418  cat conftest.err >&5
12419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420  (exit $ac_status); } &&
12421	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12422  { (case "(($ac_try" in
12423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424  *) ac_try_echo=$ac_try;;
12425esac
12426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427  (eval "$ac_try") 2>&5
12428  ac_status=$?
12429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430  (exit $ac_status); }; } &&
12431	 { ac_try='test -s conftest$ac_exeext'
12432  { (case "(($ac_try" in
12433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434  *) ac_try_echo=$ac_try;;
12435esac
12436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437  (eval "$ac_try") 2>&5
12438  ac_status=$?
12439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440  (exit $ac_status); }; }; then
12441  eval "$as_ac_var=yes"
12442else
12443  echo "$as_me: failed program was:" >&5
12444sed 's/^/| /' conftest.$ac_ext >&5
12445
12446	eval "$as_ac_var=no"
12447fi
12448
12449rm -f core conftest.err conftest.$ac_objext \
12450      conftest$ac_exeext conftest.$ac_ext
12451fi
12452ac_res=`eval echo '${'$as_ac_var'}'`
12453	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12454echo "${ECHO_T}$ac_res" >&6; }
12455if test `eval echo '${'$as_ac_var'}'` = yes; then
12456  cat >>confdefs.h <<_ACEOF
12457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12458_ACEOF
12459 break
12460fi
12461done
12462
12463
12464
12465for ac_func in memcpy bcopy
12466do
12467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12471  echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473  cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h.  */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h.  */
12479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12481#define $ac_func innocuous_$ac_func
12482
12483/* System header to define __stub macros and hopefully few prototypes,
12484    which can conflict with char $ac_func (); below.
12485    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486    <limits.h> exists even on freestanding compilers.  */
12487
12488#ifdef __STDC__
12489# include <limits.h>
12490#else
12491# include <assert.h>
12492#endif
12493
12494#undef $ac_func
12495
12496/* Override any GCC internal prototype to avoid an error.
12497   Use char because int might match the return type of a GCC
12498   builtin and then its argument prototype would still apply.  */
12499#ifdef __cplusplus
12500extern "C"
12501#endif
12502char $ac_func ();
12503/* The GNU C library defines this for functions which it implements
12504    to always fail with ENOSYS.  Some functions are actually named
12505    something starting with __ and the normal name is an alias.  */
12506#if defined __stub_$ac_func || defined __stub___$ac_func
12507choke me
12508#endif
12509
12510int
12511main ()
12512{
12513return $ac_func ();
12514  ;
12515  return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext conftest$ac_exeext
12519if { (ac_try="$ac_link"
12520case "(($ac_try" in
12521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522  *) ac_try_echo=$ac_try;;
12523esac
12524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525  (eval "$ac_link") 2>conftest.er1
12526  ac_status=$?
12527  grep -v '^ *+' conftest.er1 >conftest.err
12528  rm -f conftest.er1
12529  cat conftest.err >&5
12530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531  (exit $ac_status); } &&
12532	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533  { (case "(($ac_try" in
12534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535  *) ac_try_echo=$ac_try;;
12536esac
12537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538  (eval "$ac_try") 2>&5
12539  ac_status=$?
12540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541  (exit $ac_status); }; } &&
12542	 { ac_try='test -s conftest$ac_exeext'
12543  { (case "(($ac_try" in
12544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545  *) ac_try_echo=$ac_try;;
12546esac
12547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548  (eval "$ac_try") 2>&5
12549  ac_status=$?
12550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551  (exit $ac_status); }; }; then
12552  eval "$as_ac_var=yes"
12553else
12554  echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557	eval "$as_ac_var=no"
12558fi
12559
12560rm -f core conftest.err conftest.$ac_objext \
12561      conftest$ac_exeext conftest.$ac_ext
12562fi
12563ac_res=`eval echo '${'$as_ac_var'}'`
12564	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12565echo "${ECHO_T}$ac_res" >&6; }
12566if test `eval echo '${'$as_ac_var'}'` = yes; then
12567  cat >>confdefs.h <<_ACEOF
12568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12569_ACEOF
12570 break
12571fi
12572done
12573
12574
12575
12576for ac_func in memmove strcmp
12577do
12578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12581if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12582  echo $ECHO_N "(cached) $ECHO_C" >&6
12583else
12584  cat >conftest.$ac_ext <<_ACEOF
12585/* confdefs.h.  */
12586_ACEOF
12587cat confdefs.h >>conftest.$ac_ext
12588cat >>conftest.$ac_ext <<_ACEOF
12589/* end confdefs.h.  */
12590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12591   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12592#define $ac_func innocuous_$ac_func
12593
12594/* System header to define __stub macros and hopefully few prototypes,
12595    which can conflict with char $ac_func (); below.
12596    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12597    <limits.h> exists even on freestanding compilers.  */
12598
12599#ifdef __STDC__
12600# include <limits.h>
12601#else
12602# include <assert.h>
12603#endif
12604
12605#undef $ac_func
12606
12607/* Override any GCC internal prototype to avoid an error.
12608   Use char because int might match the return type of a GCC
12609   builtin and then its argument prototype would still apply.  */
12610#ifdef __cplusplus
12611extern "C"
12612#endif
12613char $ac_func ();
12614/* The GNU C library defines this for functions which it implements
12615    to always fail with ENOSYS.  Some functions are actually named
12616    something starting with __ and the normal name is an alias.  */
12617#if defined __stub_$ac_func || defined __stub___$ac_func
12618choke me
12619#endif
12620
12621int
12622main ()
12623{
12624return $ac_func ();
12625  ;
12626  return 0;
12627}
12628_ACEOF
12629rm -f conftest.$ac_objext conftest$ac_exeext
12630if { (ac_try="$ac_link"
12631case "(($ac_try" in
12632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633  *) ac_try_echo=$ac_try;;
12634esac
12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636  (eval "$ac_link") 2>conftest.er1
12637  ac_status=$?
12638  grep -v '^ *+' conftest.er1 >conftest.err
12639  rm -f conftest.er1
12640  cat conftest.err >&5
12641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642  (exit $ac_status); } &&
12643	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12644  { (case "(($ac_try" in
12645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646  *) ac_try_echo=$ac_try;;
12647esac
12648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649  (eval "$ac_try") 2>&5
12650  ac_status=$?
12651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652  (exit $ac_status); }; } &&
12653	 { ac_try='test -s conftest$ac_exeext'
12654  { (case "(($ac_try" in
12655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656  *) ac_try_echo=$ac_try;;
12657esac
12658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659  (eval "$ac_try") 2>&5
12660  ac_status=$?
12661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662  (exit $ac_status); }; }; then
12663  eval "$as_ac_var=yes"
12664else
12665  echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668	eval "$as_ac_var=no"
12669fi
12670
12671rm -f core conftest.err conftest.$ac_objext \
12672      conftest$ac_exeext conftest.$ac_ext
12673fi
12674ac_res=`eval echo '${'$as_ac_var'}'`
12675	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12676echo "${ECHO_T}$ac_res" >&6; }
12677if test `eval echo '${'$as_ac_var'}'` = yes; then
12678  cat >>confdefs.h <<_ACEOF
12679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12680_ACEOF
12681
12682fi
12683done
12684
12685
12686
12687
12688for ac_func in closedir opendir readdir
12689do
12690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12694  echo $ECHO_N "(cached) $ECHO_C" >&6
12695else
12696  cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h.  */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h.  */
12702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12703   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12704#define $ac_func innocuous_$ac_func
12705
12706/* System header to define __stub macros and hopefully few prototypes,
12707    which can conflict with char $ac_func (); below.
12708    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709    <limits.h> exists even on freestanding compilers.  */
12710
12711#ifdef __STDC__
12712# include <limits.h>
12713#else
12714# include <assert.h>
12715#endif
12716
12717#undef $ac_func
12718
12719/* Override any GCC internal prototype to avoid an error.
12720   Use char because int might match the return type of a GCC
12721   builtin and then its argument prototype would still apply.  */
12722#ifdef __cplusplus
12723extern "C"
12724#endif
12725char $ac_func ();
12726/* The GNU C library defines this for functions which it implements
12727    to always fail with ENOSYS.  Some functions are actually named
12728    something starting with __ and the normal name is an alias.  */
12729#if defined __stub_$ac_func || defined __stub___$ac_func
12730choke me
12731#endif
12732
12733int
12734main ()
12735{
12736return $ac_func ();
12737  ;
12738  return 0;
12739}
12740_ACEOF
12741rm -f conftest.$ac_objext conftest$ac_exeext
12742if { (ac_try="$ac_link"
12743case "(($ac_try" in
12744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745  *) ac_try_echo=$ac_try;;
12746esac
12747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748  (eval "$ac_link") 2>conftest.er1
12749  ac_status=$?
12750  grep -v '^ *+' conftest.er1 >conftest.err
12751  rm -f conftest.er1
12752  cat conftest.err >&5
12753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754  (exit $ac_status); } &&
12755	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756  { (case "(($ac_try" in
12757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758  *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761  (eval "$ac_try") 2>&5
12762  ac_status=$?
12763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764  (exit $ac_status); }; } &&
12765	 { ac_try='test -s conftest$ac_exeext'
12766  { (case "(($ac_try" in
12767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768  *) ac_try_echo=$ac_try;;
12769esac
12770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771  (eval "$ac_try") 2>&5
12772  ac_status=$?
12773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774  (exit $ac_status); }; }; then
12775  eval "$as_ac_var=yes"
12776else
12777  echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
12780	eval "$as_ac_var=no"
12781fi
12782
12783rm -f core conftest.err conftest.$ac_objext \
12784      conftest$ac_exeext conftest.$ac_ext
12785fi
12786ac_res=`eval echo '${'$as_ac_var'}'`
12787	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12788echo "${ECHO_T}$ac_res" >&6; }
12789if test `eval echo '${'$as_ac_var'}'` = yes; then
12790  cat >>confdefs.h <<_ACEOF
12791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12792_ACEOF
12793
12794fi
12795done
12796
12797
12798
12799if test "$WITH_LLVMGCCDIR" = "default" ; then
12800  LLVMGCC="llvm-gcc${EXEEXT}"
12801  LLVMGXX="llvm-g++${EXEEXT}"
12802  LLVMGCCCOMMAND="$LLVMGCC"
12803  LLVMGXXCOMMAND="$LLVMGXX"
12804  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12805
12806  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12807
12808  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12809set dummy $LLVMGCC; ac_word=$2
12810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12812if test "${ac_cv_path_LLVMGCC+set}" = set; then
12813  echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815  case $LLVMGCC in
12816  [\\/]* | ?:[\\/]*)
12817  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12818  ;;
12819  *)
12820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823  IFS=$as_save_IFS
12824  test -z "$as_dir" && as_dir=.
12825  for ac_exec_ext in '' $ac_executable_extensions; do
12826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12827    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12829    break 2
12830  fi
12831done
12832done
12833IFS=$as_save_IFS
12834
12835  ;;
12836esac
12837fi
12838LLVMGCC=$ac_cv_path_LLVMGCC
12839if test -n "$LLVMGCC"; then
12840  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12841echo "${ECHO_T}$LLVMGCC" >&6; }
12842else
12843  { echo "$as_me:$LINENO: result: no" >&5
12844echo "${ECHO_T}no" >&6; }
12845fi
12846
12847
12848  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12849set dummy $LLVMGXX; ac_word=$2
12850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12852if test "${ac_cv_path_LLVMGXX+set}" = set; then
12853  echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855  case $LLVMGXX in
12856  [\\/]* | ?:[\\/]*)
12857  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12858  ;;
12859  *)
12860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863  IFS=$as_save_IFS
12864  test -z "$as_dir" && as_dir=.
12865  for ac_exec_ext in '' $ac_executable_extensions; do
12866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12867    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12869    break 2
12870  fi
12871done
12872done
12873IFS=$as_save_IFS
12874
12875  ;;
12876esac
12877fi
12878LLVMGXX=$ac_cv_path_LLVMGXX
12879if test -n "$LLVMGXX"; then
12880  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12881echo "${ECHO_T}$LLVMGXX" >&6; }
12882else
12883  { echo "$as_me:$LINENO: result: no" >&5
12884echo "${ECHO_T}no" >&6; }
12885fi
12886
12887
12888else
12889  if test -z "$LLVMGCC"; then
12890    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12891    LLVMGCCCOMMAND="$LLVMGCC"
12892  fi
12893  if test -z "$LLVMGXX"; then
12894    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12895    LLVMGXXCOMMAND="$LLVMGXX"
12896  fi
12897
12898  LLVMGCC=$LLVMGCC
12899
12900  LLVMGXX=$LLVMGXX
12901
12902  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12903
12904  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12905
12906fi
12907
12908
12909# Check whether --with-llvmcc was given.
12910if test "${with_llvmcc+set}" = set; then
12911  withval=$with_llvmcc;
12912else
12913  with_llvmcc=check
12914fi
12915
12916{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12917echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12918if test "$with_llvmcc" != "check"; then
12919   if (test "$with_llvmcc" != "llvm-gcc" &&
12920       test "$with_llvmcc" != "clang" &&
12921       test "$with_llvmcc" != "none"); then
12922      { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12923echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12924   { (exit 1); exit 1; }; }
12925   fi
12926   WITH_LLVMCC="$with_llvmcc"
12927elif test -n "$LLVMGCC"; then
12928   WITH_LLVMCC=llvm-gcc
12929elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12930   WITH_LLVMCC=clang
12931else
12932   WITH_LLVMCC=none
12933fi
12934{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12935echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12936LLVMCC_OPTION=$WITH_LLVMCC
12937
12938
12939{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12940echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12941
12942ICC=no
12943IXX=no
12944case $CC in
12945  icc*|icpc*)
12946    ICC=yes
12947    IXX=yes
12948    ;;
12949   *)
12950    ;;
12951esac
12952
12953if test "$GCC" != "yes" && test "$ICC" != "yes"
12954then
12955  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12956echo "$as_me: error: gcc|icc required but not found" >&2;}
12957   { (exit 1); exit 1; }; }
12958fi
12959
12960if test "$GXX" != "yes" && test "$IXX" != "yes"
12961then
12962  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12963echo "$as_me: error: g++|icc required but not found" >&2;}
12964   { (exit 1); exit 1; }; }
12965fi
12966
12967if test "$GCC" = "yes"
12968then
12969  cat >conftest.$ac_ext <<_ACEOF
12970#if !defined(__GNUC__) || __GNUC__ < 3
12971#error Unsupported GCC version
12972#endif
12973
12974_ACEOF
12975rm -f conftest.$ac_objext
12976if { (ac_try="$ac_compile"
12977case "(($ac_try" in
12978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979  *) ac_try_echo=$ac_try;;
12980esac
12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982  (eval "$ac_compile") 2>conftest.er1
12983  ac_status=$?
12984  grep -v '^ *+' conftest.er1 >conftest.err
12985  rm -f conftest.er1
12986  cat conftest.err >&5
12987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988  (exit $ac_status); } &&
12989	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990  { (case "(($ac_try" in
12991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992  *) ac_try_echo=$ac_try;;
12993esac
12994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995  (eval "$ac_try") 2>&5
12996  ac_status=$?
12997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998  (exit $ac_status); }; } &&
12999	 { ac_try='test -s conftest.$ac_objext'
13000  { (case "(($ac_try" in
13001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002  *) ac_try_echo=$ac_try;;
13003esac
13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005  (eval "$ac_try") 2>&5
13006  ac_status=$?
13007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008  (exit $ac_status); }; }; then
13009  :
13010else
13011  echo "$as_me: failed program was:" >&5
13012sed 's/^/| /' conftest.$ac_ext >&5
13013
13014	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13015echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13016   { (exit 1); exit 1; }; }
13017fi
13018
13019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020fi
13021
13022if test -z "$llvm_cv_gnu_make_command"
13023then
13024  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13025echo "$as_me: error: GNU Make required but not found" >&2;}
13026   { (exit 1); exit 1; }; }
13027fi
13028
13029{ echo "$as_me:$LINENO: result: ok" >&5
13030echo "${ECHO_T}ok" >&6; }
13031
13032{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13033echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13034NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13035
13036NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13037
13038{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13039echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13040
13041
13042
13043{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13044echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13045if test "${ac_cv_lib_m_sin+set}" = set; then
13046  echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
13048  ac_check_lib_save_LIBS=$LIBS
13049LIBS="-lm  $LIBS"
13050cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h.  */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h.  */
13056
13057/* Override any GCC internal prototype to avoid an error.
13058   Use char because int might match the return type of a GCC
13059   builtin and then its argument prototype would still apply.  */
13060#ifdef __cplusplus
13061extern "C"
13062#endif
13063char sin ();
13064int
13065main ()
13066{
13067return sin ();
13068  ;
13069  return 0;
13070}
13071_ACEOF
13072rm -f conftest.$ac_objext conftest$ac_exeext
13073if { (ac_try="$ac_link"
13074case "(($ac_try" in
13075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076  *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079  (eval "$ac_link") 2>conftest.er1
13080  ac_status=$?
13081  grep -v '^ *+' conftest.er1 >conftest.err
13082  rm -f conftest.er1
13083  cat conftest.err >&5
13084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085  (exit $ac_status); } &&
13086	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087  { (case "(($ac_try" in
13088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089  *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092  (eval "$ac_try") 2>&5
13093  ac_status=$?
13094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095  (exit $ac_status); }; } &&
13096	 { ac_try='test -s conftest$ac_exeext'
13097  { (case "(($ac_try" in
13098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099  *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102  (eval "$ac_try") 2>&5
13103  ac_status=$?
13104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105  (exit $ac_status); }; }; then
13106  ac_cv_lib_m_sin=yes
13107else
13108  echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
13111	ac_cv_lib_m_sin=no
13112fi
13113
13114rm -f core conftest.err conftest.$ac_objext \
13115      conftest$ac_exeext conftest.$ac_ext
13116LIBS=$ac_check_lib_save_LIBS
13117fi
13118{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13119echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13120if test $ac_cv_lib_m_sin = yes; then
13121  cat >>confdefs.h <<_ACEOF
13122#define HAVE_LIBM 1
13123_ACEOF
13124
13125  LIBS="-lm $LIBS"
13126
13127fi
13128
13129if test "$llvm_cv_os_type" = "MingW" ; then
13130
13131{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13132echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13133if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13134  echo $ECHO_N "(cached) $ECHO_C" >&6
13135else
13136  ac_check_lib_save_LIBS=$LIBS
13137LIBS="-limagehlp  $LIBS"
13138cat >conftest.$ac_ext <<_ACEOF
13139/* confdefs.h.  */
13140_ACEOF
13141cat confdefs.h >>conftest.$ac_ext
13142cat >>conftest.$ac_ext <<_ACEOF
13143/* end confdefs.h.  */
13144
13145
13146int
13147main ()
13148{
13149return main ();
13150  ;
13151  return 0;
13152}
13153_ACEOF
13154rm -f conftest.$ac_objext conftest$ac_exeext
13155if { (ac_try="$ac_link"
13156case "(($ac_try" in
13157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158  *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161  (eval "$ac_link") 2>conftest.er1
13162  ac_status=$?
13163  grep -v '^ *+' conftest.er1 >conftest.err
13164  rm -f conftest.er1
13165  cat conftest.err >&5
13166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167  (exit $ac_status); } &&
13168	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169  { (case "(($ac_try" in
13170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171  *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174  (eval "$ac_try") 2>&5
13175  ac_status=$?
13176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177  (exit $ac_status); }; } &&
13178	 { ac_try='test -s conftest$ac_exeext'
13179  { (case "(($ac_try" in
13180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181  *) ac_try_echo=$ac_try;;
13182esac
13183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184  (eval "$ac_try") 2>&5
13185  ac_status=$?
13186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187  (exit $ac_status); }; }; then
13188  ac_cv_lib_imagehlp_main=yes
13189else
13190  echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193	ac_cv_lib_imagehlp_main=no
13194fi
13195
13196rm -f core conftest.err conftest.$ac_objext \
13197      conftest$ac_exeext conftest.$ac_ext
13198LIBS=$ac_check_lib_save_LIBS
13199fi
13200{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13201echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13202if test $ac_cv_lib_imagehlp_main = yes; then
13203  cat >>confdefs.h <<_ACEOF
13204#define HAVE_LIBIMAGEHLP 1
13205_ACEOF
13206
13207  LIBS="-limagehlp $LIBS"
13208
13209fi
13210
13211
13212{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13213echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13214if test "${ac_cv_lib_psapi_main+set}" = set; then
13215  echo $ECHO_N "(cached) $ECHO_C" >&6
13216else
13217  ac_check_lib_save_LIBS=$LIBS
13218LIBS="-lpsapi  $LIBS"
13219cat >conftest.$ac_ext <<_ACEOF
13220/* confdefs.h.  */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
13224/* end confdefs.h.  */
13225
13226
13227int
13228main ()
13229{
13230return main ();
13231  ;
13232  return 0;
13233}
13234_ACEOF
13235rm -f conftest.$ac_objext conftest$ac_exeext
13236if { (ac_try="$ac_link"
13237case "(($ac_try" in
13238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239  *) ac_try_echo=$ac_try;;
13240esac
13241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242  (eval "$ac_link") 2>conftest.er1
13243  ac_status=$?
13244  grep -v '^ *+' conftest.er1 >conftest.err
13245  rm -f conftest.er1
13246  cat conftest.err >&5
13247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248  (exit $ac_status); } &&
13249	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250  { (case "(($ac_try" in
13251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252  *) ac_try_echo=$ac_try;;
13253esac
13254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255  (eval "$ac_try") 2>&5
13256  ac_status=$?
13257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258  (exit $ac_status); }; } &&
13259	 { ac_try='test -s conftest$ac_exeext'
13260  { (case "(($ac_try" in
13261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262  *) ac_try_echo=$ac_try;;
13263esac
13264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265  (eval "$ac_try") 2>&5
13266  ac_status=$?
13267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268  (exit $ac_status); }; }; then
13269  ac_cv_lib_psapi_main=yes
13270else
13271  echo "$as_me: failed program was:" >&5
13272sed 's/^/| /' conftest.$ac_ext >&5
13273
13274	ac_cv_lib_psapi_main=no
13275fi
13276
13277rm -f core conftest.err conftest.$ac_objext \
13278      conftest$ac_exeext conftest.$ac_ext
13279LIBS=$ac_check_lib_save_LIBS
13280fi
13281{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13282echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13283if test $ac_cv_lib_psapi_main = yes; then
13284  cat >>confdefs.h <<_ACEOF
13285#define HAVE_LIBPSAPI 1
13286_ACEOF
13287
13288  LIBS="-lpsapi $LIBS"
13289
13290fi
13291
13292fi
13293
13294{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13295echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13296if test "${ac_cv_search_dlopen+set}" = set; then
13297  echo $ECHO_N "(cached) $ECHO_C" >&6
13298else
13299  ac_func_search_save_LIBS=$LIBS
13300cat >conftest.$ac_ext <<_ACEOF
13301/* confdefs.h.  */
13302_ACEOF
13303cat confdefs.h >>conftest.$ac_ext
13304cat >>conftest.$ac_ext <<_ACEOF
13305/* end confdefs.h.  */
13306
13307/* Override any GCC internal prototype to avoid an error.
13308   Use char because int might match the return type of a GCC
13309   builtin and then its argument prototype would still apply.  */
13310#ifdef __cplusplus
13311extern "C"
13312#endif
13313char dlopen ();
13314int
13315main ()
13316{
13317return dlopen ();
13318  ;
13319  return 0;
13320}
13321_ACEOF
13322for ac_lib in '' dl; do
13323  if test -z "$ac_lib"; then
13324    ac_res="none required"
13325  else
13326    ac_res=-l$ac_lib
13327    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13328  fi
13329  rm -f conftest.$ac_objext conftest$ac_exeext
13330if { (ac_try="$ac_link"
13331case "(($ac_try" in
13332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333  *) ac_try_echo=$ac_try;;
13334esac
13335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336  (eval "$ac_link") 2>conftest.er1
13337  ac_status=$?
13338  grep -v '^ *+' conftest.er1 >conftest.err
13339  rm -f conftest.er1
13340  cat conftest.err >&5
13341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342  (exit $ac_status); } &&
13343	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13344  { (case "(($ac_try" in
13345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346  *) ac_try_echo=$ac_try;;
13347esac
13348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349  (eval "$ac_try") 2>&5
13350  ac_status=$?
13351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352  (exit $ac_status); }; } &&
13353	 { ac_try='test -s conftest$ac_exeext'
13354  { (case "(($ac_try" in
13355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356  *) ac_try_echo=$ac_try;;
13357esac
13358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359  (eval "$ac_try") 2>&5
13360  ac_status=$?
13361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362  (exit $ac_status); }; }; then
13363  ac_cv_search_dlopen=$ac_res
13364else
13365  echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368
13369fi
13370
13371rm -f core conftest.err conftest.$ac_objext \
13372      conftest$ac_exeext
13373  if test "${ac_cv_search_dlopen+set}" = set; then
13374  break
13375fi
13376done
13377if test "${ac_cv_search_dlopen+set}" = set; then
13378  :
13379else
13380  ac_cv_search_dlopen=no
13381fi
13382rm conftest.$ac_ext
13383LIBS=$ac_func_search_save_LIBS
13384fi
13385{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13386echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13387ac_res=$ac_cv_search_dlopen
13388if test "$ac_res" != no; then
13389  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13390
13391cat >>confdefs.h <<\_ACEOF
13392#define HAVE_DLOPEN 1
13393_ACEOF
13394
13395else
13396  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13397echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13398fi
13399
13400
13401if test "$llvm_cv_enable_libffi" = "yes" ; then
13402  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13403echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13404if test "${ac_cv_search_ffi_call+set}" = set; then
13405  echo $ECHO_N "(cached) $ECHO_C" >&6
13406else
13407  ac_func_search_save_LIBS=$LIBS
13408cat >conftest.$ac_ext <<_ACEOF
13409/* confdefs.h.  */
13410_ACEOF
13411cat confdefs.h >>conftest.$ac_ext
13412cat >>conftest.$ac_ext <<_ACEOF
13413/* end confdefs.h.  */
13414
13415/* Override any GCC internal prototype to avoid an error.
13416   Use char because int might match the return type of a GCC
13417   builtin and then its argument prototype would still apply.  */
13418#ifdef __cplusplus
13419extern "C"
13420#endif
13421char ffi_call ();
13422int
13423main ()
13424{
13425return ffi_call ();
13426  ;
13427  return 0;
13428}
13429_ACEOF
13430for ac_lib in '' ffi; do
13431  if test -z "$ac_lib"; then
13432    ac_res="none required"
13433  else
13434    ac_res=-l$ac_lib
13435    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13436  fi
13437  rm -f conftest.$ac_objext conftest$ac_exeext
13438if { (ac_try="$ac_link"
13439case "(($ac_try" in
13440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441  *) ac_try_echo=$ac_try;;
13442esac
13443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444  (eval "$ac_link") 2>conftest.er1
13445  ac_status=$?
13446  grep -v '^ *+' conftest.er1 >conftest.err
13447  rm -f conftest.er1
13448  cat conftest.err >&5
13449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450  (exit $ac_status); } &&
13451	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452  { (case "(($ac_try" in
13453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454  *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457  (eval "$ac_try") 2>&5
13458  ac_status=$?
13459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460  (exit $ac_status); }; } &&
13461	 { ac_try='test -s conftest$ac_exeext'
13462  { (case "(($ac_try" in
13463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464  *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467  (eval "$ac_try") 2>&5
13468  ac_status=$?
13469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470  (exit $ac_status); }; }; then
13471  ac_cv_search_ffi_call=$ac_res
13472else
13473  echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476
13477fi
13478
13479rm -f core conftest.err conftest.$ac_objext \
13480      conftest$ac_exeext
13481  if test "${ac_cv_search_ffi_call+set}" = set; then
13482  break
13483fi
13484done
13485if test "${ac_cv_search_ffi_call+set}" = set; then
13486  :
13487else
13488  ac_cv_search_ffi_call=no
13489fi
13490rm conftest.$ac_ext
13491LIBS=$ac_func_search_save_LIBS
13492fi
13493{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13494echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13495ac_res=$ac_cv_search_ffi_call
13496if test "$ac_res" != no; then
13497  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13498
13499cat >>confdefs.h <<\_ACEOF
13500#define HAVE_FFI_CALL 1
13501_ACEOF
13502
13503else
13504  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13505echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13506   { (exit 1); exit 1; }; }
13507fi
13508
13509fi
13510
13511{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13512echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13513if test "${ac_cv_search_mallinfo+set}" = set; then
13514  echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
13516  ac_func_search_save_LIBS=$LIBS
13517cat >conftest.$ac_ext <<_ACEOF
13518/* confdefs.h.  */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
13522/* end confdefs.h.  */
13523
13524/* Override any GCC internal prototype to avoid an error.
13525   Use char because int might match the return type of a GCC
13526   builtin and then its argument prototype would still apply.  */
13527#ifdef __cplusplus
13528extern "C"
13529#endif
13530char mallinfo ();
13531int
13532main ()
13533{
13534return mallinfo ();
13535  ;
13536  return 0;
13537}
13538_ACEOF
13539for ac_lib in '' malloc; do
13540  if test -z "$ac_lib"; then
13541    ac_res="none required"
13542  else
13543    ac_res=-l$ac_lib
13544    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13545  fi
13546  rm -f conftest.$ac_objext conftest$ac_exeext
13547if { (ac_try="$ac_link"
13548case "(($ac_try" in
13549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550  *) ac_try_echo=$ac_try;;
13551esac
13552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553  (eval "$ac_link") 2>conftest.er1
13554  ac_status=$?
13555  grep -v '^ *+' conftest.er1 >conftest.err
13556  rm -f conftest.er1
13557  cat conftest.err >&5
13558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559  (exit $ac_status); } &&
13560	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13561  { (case "(($ac_try" in
13562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563  *) ac_try_echo=$ac_try;;
13564esac
13565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566  (eval "$ac_try") 2>&5
13567  ac_status=$?
13568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569  (exit $ac_status); }; } &&
13570	 { ac_try='test -s conftest$ac_exeext'
13571  { (case "(($ac_try" in
13572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573  *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576  (eval "$ac_try") 2>&5
13577  ac_status=$?
13578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579  (exit $ac_status); }; }; then
13580  ac_cv_search_mallinfo=$ac_res
13581else
13582  echo "$as_me: failed program was:" >&5
13583sed 's/^/| /' conftest.$ac_ext >&5
13584
13585
13586fi
13587
13588rm -f core conftest.err conftest.$ac_objext \
13589      conftest$ac_exeext
13590  if test "${ac_cv_search_mallinfo+set}" = set; then
13591  break
13592fi
13593done
13594if test "${ac_cv_search_mallinfo+set}" = set; then
13595  :
13596else
13597  ac_cv_search_mallinfo=no
13598fi
13599rm conftest.$ac_ext
13600LIBS=$ac_func_search_save_LIBS
13601fi
13602{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13603echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13604ac_res=$ac_cv_search_mallinfo
13605if test "$ac_res" != no; then
13606  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13607
13608cat >>confdefs.h <<\_ACEOF
13609#define HAVE_MALLINFO 1
13610_ACEOF
13611
13612fi
13613
13614
13615if test "$ENABLE_THREADS" -eq 1 ; then
13616
13617{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13618echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13619if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13620  echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622  ac_check_lib_save_LIBS=$LIBS
13623LIBS="-lpthread  $LIBS"
13624cat >conftest.$ac_ext <<_ACEOF
13625/* confdefs.h.  */
13626_ACEOF
13627cat confdefs.h >>conftest.$ac_ext
13628cat >>conftest.$ac_ext <<_ACEOF
13629/* end confdefs.h.  */
13630
13631/* Override any GCC internal prototype to avoid an error.
13632   Use char because int might match the return type of a GCC
13633   builtin and then its argument prototype would still apply.  */
13634#ifdef __cplusplus
13635extern "C"
13636#endif
13637char pthread_mutex_init ();
13638int
13639main ()
13640{
13641return pthread_mutex_init ();
13642  ;
13643  return 0;
13644}
13645_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650  *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653  (eval "$ac_link") 2>conftest.er1
13654  ac_status=$?
13655  grep -v '^ *+' conftest.er1 >conftest.err
13656  rm -f conftest.er1
13657  cat conftest.err >&5
13658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659  (exit $ac_status); } &&
13660	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661  { (case "(($ac_try" in
13662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663  *) ac_try_echo=$ac_try;;
13664esac
13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666  (eval "$ac_try") 2>&5
13667  ac_status=$?
13668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669  (exit $ac_status); }; } &&
13670	 { ac_try='test -s conftest$ac_exeext'
13671  { (case "(($ac_try" in
13672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673  *) ac_try_echo=$ac_try;;
13674esac
13675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676  (eval "$ac_try") 2>&5
13677  ac_status=$?
13678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679  (exit $ac_status); }; }; then
13680  ac_cv_lib_pthread_pthread_mutex_init=yes
13681else
13682  echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685	ac_cv_lib_pthread_pthread_mutex_init=no
13686fi
13687
13688rm -f core conftest.err conftest.$ac_objext \
13689      conftest$ac_exeext conftest.$ac_ext
13690LIBS=$ac_check_lib_save_LIBS
13691fi
13692{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13693echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13694if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13695  cat >>confdefs.h <<_ACEOF
13696#define HAVE_LIBPTHREAD 1
13697_ACEOF
13698
13699  LIBS="-lpthread $LIBS"
13700
13701fi
13702
13703  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13704echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13705if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13706  echo $ECHO_N "(cached) $ECHO_C" >&6
13707else
13708  ac_func_search_save_LIBS=$LIBS
13709cat >conftest.$ac_ext <<_ACEOF
13710/* confdefs.h.  */
13711_ACEOF
13712cat confdefs.h >>conftest.$ac_ext
13713cat >>conftest.$ac_ext <<_ACEOF
13714/* end confdefs.h.  */
13715
13716/* Override any GCC internal prototype to avoid an error.
13717   Use char because int might match the return type of a GCC
13718   builtin and then its argument prototype would still apply.  */
13719#ifdef __cplusplus
13720extern "C"
13721#endif
13722char pthread_mutex_lock ();
13723int
13724main ()
13725{
13726return pthread_mutex_lock ();
13727  ;
13728  return 0;
13729}
13730_ACEOF
13731for ac_lib in '' pthread; do
13732  if test -z "$ac_lib"; then
13733    ac_res="none required"
13734  else
13735    ac_res=-l$ac_lib
13736    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13737  fi
13738  rm -f conftest.$ac_objext conftest$ac_exeext
13739if { (ac_try="$ac_link"
13740case "(($ac_try" in
13741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742  *) ac_try_echo=$ac_try;;
13743esac
13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745  (eval "$ac_link") 2>conftest.er1
13746  ac_status=$?
13747  grep -v '^ *+' conftest.er1 >conftest.err
13748  rm -f conftest.er1
13749  cat conftest.err >&5
13750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751  (exit $ac_status); } &&
13752	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753  { (case "(($ac_try" in
13754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755  *) ac_try_echo=$ac_try;;
13756esac
13757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758  (eval "$ac_try") 2>&5
13759  ac_status=$?
13760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761  (exit $ac_status); }; } &&
13762	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13772  ac_cv_search_pthread_mutex_lock=$ac_res
13773else
13774  echo "$as_me: failed program was:" >&5
13775sed 's/^/| /' conftest.$ac_ext >&5
13776
13777
13778fi
13779
13780rm -f core conftest.err conftest.$ac_objext \
13781      conftest$ac_exeext
13782  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13783  break
13784fi
13785done
13786if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13787  :
13788else
13789  ac_cv_search_pthread_mutex_lock=no
13790fi
13791rm conftest.$ac_ext
13792LIBS=$ac_func_search_save_LIBS
13793fi
13794{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13795echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13796ac_res=$ac_cv_search_pthread_mutex_lock
13797if test "$ac_res" != no; then
13798  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13799
13800cat >>confdefs.h <<\_ACEOF
13801#define HAVE_PTHREAD_MUTEX_LOCK 1
13802_ACEOF
13803
13804fi
13805
13806  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13807echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13808if test "${ac_cv_search_pthread_rwlock_init+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 pthread_rwlock_init ();
13826int
13827main ()
13828{
13829return pthread_rwlock_init ();
13830  ;
13831  return 0;
13832}
13833_ACEOF
13834for ac_lib in '' pthread; 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_pthread_rwlock_init=$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_pthread_rwlock_init+set}" = set; then
13886  break
13887fi
13888done
13889if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13890  :
13891else
13892  ac_cv_search_pthread_rwlock_init=no
13893fi
13894rm conftest.$ac_ext
13895LIBS=$ac_func_search_save_LIBS
13896fi
13897{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13898echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13899ac_res=$ac_cv_search_pthread_rwlock_init
13900if test "$ac_res" != no; then
13901  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13902
13903cat >>confdefs.h <<\_ACEOF
13904#define HAVE_PTHREAD_RWLOCK_INIT 1
13905_ACEOF
13906
13907fi
13908
13909  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13910echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13911if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13912  echo $ECHO_N "(cached) $ECHO_C" >&6
13913else
13914  ac_func_search_save_LIBS=$LIBS
13915cat >conftest.$ac_ext <<_ACEOF
13916/* confdefs.h.  */
13917_ACEOF
13918cat confdefs.h >>conftest.$ac_ext
13919cat >>conftest.$ac_ext <<_ACEOF
13920/* end confdefs.h.  */
13921
13922/* Override any GCC internal prototype to avoid an error.
13923   Use char because int might match the return type of a GCC
13924   builtin and then its argument prototype would still apply.  */
13925#ifdef __cplusplus
13926extern "C"
13927#endif
13928char pthread_getspecific ();
13929int
13930main ()
13931{
13932return pthread_getspecific ();
13933  ;
13934  return 0;
13935}
13936_ACEOF
13937for ac_lib in '' pthread; do
13938  if test -z "$ac_lib"; then
13939    ac_res="none required"
13940  else
13941    ac_res=-l$ac_lib
13942    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13943  fi
13944  rm -f conftest.$ac_objext conftest$ac_exeext
13945if { (ac_try="$ac_link"
13946case "(($ac_try" in
13947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948  *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951  (eval "$ac_link") 2>conftest.er1
13952  ac_status=$?
13953  grep -v '^ *+' conftest.er1 >conftest.err
13954  rm -f conftest.er1
13955  cat conftest.err >&5
13956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957  (exit $ac_status); } &&
13958	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959  { (case "(($ac_try" in
13960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961  *) ac_try_echo=$ac_try;;
13962esac
13963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964  (eval "$ac_try") 2>&5
13965  ac_status=$?
13966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967  (exit $ac_status); }; } &&
13968	 { ac_try='test -s conftest$ac_exeext'
13969  { (case "(($ac_try" in
13970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971  *) ac_try_echo=$ac_try;;
13972esac
13973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974  (eval "$ac_try") 2>&5
13975  ac_status=$?
13976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977  (exit $ac_status); }; }; then
13978  ac_cv_search_pthread_getspecific=$ac_res
13979else
13980  echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
13983
13984fi
13985
13986rm -f core conftest.err conftest.$ac_objext \
13987      conftest$ac_exeext
13988  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13989  break
13990fi
13991done
13992if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13993  :
13994else
13995  ac_cv_search_pthread_getspecific=no
13996fi
13997rm conftest.$ac_ext
13998LIBS=$ac_func_search_save_LIBS
13999fi
14000{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14001echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14002ac_res=$ac_cv_search_pthread_getspecific
14003if test "$ac_res" != no; then
14004  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14005
14006cat >>confdefs.h <<\_ACEOF
14007#define HAVE_PTHREAD_GETSPECIFIC 1
14008_ACEOF
14009
14010fi
14011
14012fi
14013
14014
14015# Check whether --with-udis86 was given.
14016if test "${with_udis86+set}" = set; then
14017  withval=$with_udis86;
14018      USE_UDIS86=1
14019
14020      case "$withval" in
14021        /usr/lib|yes) ;;
14022        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14023      esac
14024
14025{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14026echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14027if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14028  echo $ECHO_N "(cached) $ECHO_C" >&6
14029else
14030  ac_check_lib_save_LIBS=$LIBS
14031LIBS="-ludis86  $LIBS"
14032cat >conftest.$ac_ext <<_ACEOF
14033/* confdefs.h.  */
14034_ACEOF
14035cat confdefs.h >>conftest.$ac_ext
14036cat >>conftest.$ac_ext <<_ACEOF
14037/* end confdefs.h.  */
14038
14039/* Override any GCC internal prototype to avoid an error.
14040   Use char because int might match the return type of a GCC
14041   builtin and then its argument prototype would still apply.  */
14042#ifdef __cplusplus
14043extern "C"
14044#endif
14045char ud_init ();
14046int
14047main ()
14048{
14049return ud_init ();
14050  ;
14051  return 0;
14052}
14053_ACEOF
14054rm -f conftest.$ac_objext conftest$ac_exeext
14055if { (ac_try="$ac_link"
14056case "(($ac_try" in
14057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058  *) ac_try_echo=$ac_try;;
14059esac
14060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061  (eval "$ac_link") 2>conftest.er1
14062  ac_status=$?
14063  grep -v '^ *+' conftest.er1 >conftest.err
14064  rm -f conftest.er1
14065  cat conftest.err >&5
14066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067  (exit $ac_status); } &&
14068	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14069  { (case "(($ac_try" in
14070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071  *) ac_try_echo=$ac_try;;
14072esac
14073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074  (eval "$ac_try") 2>&5
14075  ac_status=$?
14076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077  (exit $ac_status); }; } &&
14078	 { ac_try='test -s conftest$ac_exeext'
14079  { (case "(($ac_try" in
14080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081  *) ac_try_echo=$ac_try;;
14082esac
14083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084  (eval "$ac_try") 2>&5
14085  ac_status=$?
14086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087  (exit $ac_status); }; }; then
14088  ac_cv_lib_udis86_ud_init=yes
14089else
14090  echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093	ac_cv_lib_udis86_ud_init=no
14094fi
14095
14096rm -f core conftest.err conftest.$ac_objext \
14097      conftest$ac_exeext conftest.$ac_ext
14098LIBS=$ac_check_lib_save_LIBS
14099fi
14100{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14101echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14102if test $ac_cv_lib_udis86_ud_init = yes; then
14103  cat >>confdefs.h <<_ACEOF
14104#define HAVE_LIBUDIS86 1
14105_ACEOF
14106
14107  LIBS="-ludis86 $LIBS"
14108
14109else
14110
14111        echo "Error! You need to have libudis86 around."
14112        exit -1
14113
14114fi
14115
14116
14117else
14118  USE_UDIS86=0
14119
14120fi
14121
14122
14123cat >>confdefs.h <<_ACEOF
14124#define USE_UDIS86 $USE_UDIS86
14125_ACEOF
14126
14127
14128
14129# Check whether --with-oprofile was given.
14130if test "${with_oprofile+set}" = set; then
14131  withval=$with_oprofile;
14132      USE_OPROFILE=1
14133
14134      case "$withval" in
14135        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14136        no) llvm_cv_oppath=
14137            USE_OPROFILE=0
14138 ;;
14139        *) llvm_cv_oppath="${withval}/lib/oprofile"
14140           CPPFLAGS="-I${withval}/include";;
14141      esac
14142      if test -n "$llvm_cv_oppath" ; then
14143        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14144                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14145echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14146if test "${ac_cv_search_bfd_init+set}" = set; then
14147  echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
14149  ac_func_search_save_LIBS=$LIBS
14150cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h.  */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h.  */
14156
14157/* Override any GCC internal prototype to avoid an error.
14158   Use char because int might match the return type of a GCC
14159   builtin and then its argument prototype would still apply.  */
14160#ifdef __cplusplus
14161extern "C"
14162#endif
14163char bfd_init ();
14164int
14165main ()
14166{
14167return bfd_init ();
14168  ;
14169  return 0;
14170}
14171_ACEOF
14172for ac_lib in '' bfd; do
14173  if test -z "$ac_lib"; then
14174    ac_res="none required"
14175  else
14176    ac_res=-l$ac_lib
14177    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14178  fi
14179  rm -f conftest.$ac_objext conftest$ac_exeext
14180if { (ac_try="$ac_link"
14181case "(($ac_try" in
14182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183  *) ac_try_echo=$ac_try;;
14184esac
14185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186  (eval "$ac_link") 2>conftest.er1
14187  ac_status=$?
14188  grep -v '^ *+' conftest.er1 >conftest.err
14189  rm -f conftest.er1
14190  cat conftest.err >&5
14191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192  (exit $ac_status); } &&
14193	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194  { (case "(($ac_try" in
14195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196  *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199  (eval "$ac_try") 2>&5
14200  ac_status=$?
14201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202  (exit $ac_status); }; } &&
14203	 { ac_try='test -s conftest$ac_exeext'
14204  { (case "(($ac_try" in
14205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206  *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209  (eval "$ac_try") 2>&5
14210  ac_status=$?
14211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212  (exit $ac_status); }; }; then
14213  ac_cv_search_bfd_init=$ac_res
14214else
14215  echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218
14219fi
14220
14221rm -f core conftest.err conftest.$ac_objext \
14222      conftest$ac_exeext
14223  if test "${ac_cv_search_bfd_init+set}" = set; then
14224  break
14225fi
14226done
14227if test "${ac_cv_search_bfd_init+set}" = set; then
14228  :
14229else
14230  ac_cv_search_bfd_init=no
14231fi
14232rm conftest.$ac_ext
14233LIBS=$ac_func_search_save_LIBS
14234fi
14235{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14236echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14237ac_res=$ac_cv_search_bfd_init
14238if test "$ac_res" != no; then
14239  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14240
14241fi
14242
14243        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14244echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14245if test "${ac_cv_search_op_open_agent+set}" = set; then
14246  echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248  ac_func_search_save_LIBS=$LIBS
14249cat >conftest.$ac_ext <<_ACEOF
14250/* confdefs.h.  */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h.  */
14255
14256/* Override any GCC internal prototype to avoid an error.
14257   Use char because int might match the return type of a GCC
14258   builtin and then its argument prototype would still apply.  */
14259#ifdef __cplusplus
14260extern "C"
14261#endif
14262char op_open_agent ();
14263int
14264main ()
14265{
14266return op_open_agent ();
14267  ;
14268  return 0;
14269}
14270_ACEOF
14271for ac_lib in '' opagent; do
14272  if test -z "$ac_lib"; then
14273    ac_res="none required"
14274  else
14275    ac_res=-l$ac_lib
14276    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14277  fi
14278  rm -f conftest.$ac_objext conftest$ac_exeext
14279if { (ac_try="$ac_link"
14280case "(($ac_try" in
14281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282  *) ac_try_echo=$ac_try;;
14283esac
14284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285  (eval "$ac_link") 2>conftest.er1
14286  ac_status=$?
14287  grep -v '^ *+' conftest.er1 >conftest.err
14288  rm -f conftest.er1
14289  cat conftest.err >&5
14290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291  (exit $ac_status); } &&
14292	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14293  { (case "(($ac_try" in
14294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295  *) ac_try_echo=$ac_try;;
14296esac
14297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298  (eval "$ac_try") 2>&5
14299  ac_status=$?
14300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301  (exit $ac_status); }; } &&
14302	 { ac_try='test -s conftest$ac_exeext'
14303  { (case "(($ac_try" in
14304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305  *) ac_try_echo=$ac_try;;
14306esac
14307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308  (eval "$ac_try") 2>&5
14309  ac_status=$?
14310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311  (exit $ac_status); }; }; then
14312  ac_cv_search_op_open_agent=$ac_res
14313else
14314  echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317
14318fi
14319
14320rm -f core conftest.err conftest.$ac_objext \
14321      conftest$ac_exeext
14322  if test "${ac_cv_search_op_open_agent+set}" = set; then
14323  break
14324fi
14325done
14326if test "${ac_cv_search_op_open_agent+set}" = set; then
14327  :
14328else
14329  ac_cv_search_op_open_agent=no
14330fi
14331rm conftest.$ac_ext
14332LIBS=$ac_func_search_save_LIBS
14333fi
14334{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14335echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14336ac_res=$ac_cv_search_op_open_agent
14337if test "$ac_res" != no; then
14338  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14339
14340else
14341
14342          echo "Error! You need to have libopagent around."
14343          exit -1
14344
14345fi
14346
14347        if test "${ac_cv_header_opagent_h+set}" = set; then
14348  { echo "$as_me:$LINENO: checking for opagent.h" >&5
14349echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14350if test "${ac_cv_header_opagent_h+set}" = set; then
14351  echo $ECHO_N "(cached) $ECHO_C" >&6
14352fi
14353{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14354echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14355else
14356  # Is the header compilable?
14357{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14358echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14359cat >conftest.$ac_ext <<_ACEOF
14360/* confdefs.h.  */
14361_ACEOF
14362cat confdefs.h >>conftest.$ac_ext
14363cat >>conftest.$ac_ext <<_ACEOF
14364/* end confdefs.h.  */
14365$ac_includes_default
14366#include <opagent.h>
14367_ACEOF
14368rm -f conftest.$ac_objext
14369if { (ac_try="$ac_compile"
14370case "(($ac_try" in
14371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372  *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375  (eval "$ac_compile") 2>conftest.er1
14376  ac_status=$?
14377  grep -v '^ *+' conftest.er1 >conftest.err
14378  rm -f conftest.er1
14379  cat conftest.err >&5
14380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381  (exit $ac_status); } &&
14382	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383  { (case "(($ac_try" in
14384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385  *) ac_try_echo=$ac_try;;
14386esac
14387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388  (eval "$ac_try") 2>&5
14389  ac_status=$?
14390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391  (exit $ac_status); }; } &&
14392	 { ac_try='test -s conftest.$ac_objext'
14393  { (case "(($ac_try" in
14394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395  *) ac_try_echo=$ac_try;;
14396esac
14397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398  (eval "$ac_try") 2>&5
14399  ac_status=$?
14400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401  (exit $ac_status); }; }; then
14402  ac_header_compiler=yes
14403else
14404  echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
14406
14407	ac_header_compiler=no
14408fi
14409
14410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412echo "${ECHO_T}$ac_header_compiler" >&6; }
14413
14414# Is the header present?
14415{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14416echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14417cat >conftest.$ac_ext <<_ACEOF
14418/* confdefs.h.  */
14419_ACEOF
14420cat confdefs.h >>conftest.$ac_ext
14421cat >>conftest.$ac_ext <<_ACEOF
14422/* end confdefs.h.  */
14423#include <opagent.h>
14424_ACEOF
14425if { (ac_try="$ac_cpp conftest.$ac_ext"
14426case "(($ac_try" in
14427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428  *) ac_try_echo=$ac_try;;
14429esac
14430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14432  ac_status=$?
14433  grep -v '^ *+' conftest.er1 >conftest.err
14434  rm -f conftest.er1
14435  cat conftest.err >&5
14436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437  (exit $ac_status); } >/dev/null; then
14438  if test -s conftest.err; then
14439    ac_cpp_err=$ac_c_preproc_warn_flag
14440    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14441  else
14442    ac_cpp_err=
14443  fi
14444else
14445  ac_cpp_err=yes
14446fi
14447if test -z "$ac_cpp_err"; then
14448  ac_header_preproc=yes
14449else
14450  echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
14453  ac_header_preproc=no
14454fi
14455
14456rm -f conftest.err conftest.$ac_ext
14457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458echo "${ECHO_T}$ac_header_preproc" >&6; }
14459
14460# So?  What about this header?
14461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14462  yes:no: )
14463    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14464echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14466echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14467    ac_header_preproc=yes
14468    ;;
14469  no:yes:* )
14470    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14471echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14472    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14473echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14474    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14475echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14476    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14477echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14478    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14479echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14480    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14481echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14482    ( cat <<\_ASBOX
14483## ----------------------------------- ##
14484## Report this to llvmbugs@cs.uiuc.edu ##
14485## ----------------------------------- ##
14486_ASBOX
14487     ) | sed "s/^/$as_me: WARNING:     /" >&2
14488    ;;
14489esac
14490{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14491echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14492if test "${ac_cv_header_opagent_h+set}" = set; then
14493  echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495  ac_cv_header_opagent_h=$ac_header_preproc
14496fi
14497{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14498echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14499
14500fi
14501if test $ac_cv_header_opagent_h = yes; then
14502  :
14503else
14504
14505          echo "Error! You need to have opagent.h around."
14506          exit -1
14507
14508fi
14509
14510
14511      fi
14512
14513else
14514
14515      USE_OPROFILE=0
14516
14517
14518fi
14519
14520
14521cat >>confdefs.h <<_ACEOF
14522#define USE_OPROFILE $USE_OPROFILE
14523_ACEOF
14524
14525
14526
14527
14528
14529
14530
14531
14532ac_header_dirent=no
14533for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14534  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14535{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14536echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538  echo $ECHO_N "(cached) $ECHO_C" >&6
14539else
14540  cat >conftest.$ac_ext <<_ACEOF
14541/* confdefs.h.  */
14542_ACEOF
14543cat confdefs.h >>conftest.$ac_ext
14544cat >>conftest.$ac_ext <<_ACEOF
14545/* end confdefs.h.  */
14546#include <sys/types.h>
14547#include <$ac_hdr>
14548
14549int
14550main ()
14551{
14552if ((DIR *) 0)
14553return 0;
14554  ;
14555  return 0;
14556}
14557_ACEOF
14558rm -f conftest.$ac_objext
14559if { (ac_try="$ac_compile"
14560case "(($ac_try" in
14561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562  *) ac_try_echo=$ac_try;;
14563esac
14564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565  (eval "$ac_compile") 2>conftest.er1
14566  ac_status=$?
14567  grep -v '^ *+' conftest.er1 >conftest.err
14568  rm -f conftest.er1
14569  cat conftest.err >&5
14570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571  (exit $ac_status); } &&
14572	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573  { (case "(($ac_try" in
14574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575  *) ac_try_echo=$ac_try;;
14576esac
14577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578  (eval "$ac_try") 2>&5
14579  ac_status=$?
14580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581  (exit $ac_status); }; } &&
14582	 { ac_try='test -s conftest.$ac_objext'
14583  { (case "(($ac_try" in
14584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585  *) ac_try_echo=$ac_try;;
14586esac
14587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588  (eval "$ac_try") 2>&5
14589  ac_status=$?
14590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591  (exit $ac_status); }; }; then
14592  eval "$as_ac_Header=yes"
14593else
14594  echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597	eval "$as_ac_Header=no"
14598fi
14599
14600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601fi
14602ac_res=`eval echo '${'$as_ac_Header'}'`
14603	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14604echo "${ECHO_T}$ac_res" >&6; }
14605if test `eval echo '${'$as_ac_Header'}'` = yes; then
14606  cat >>confdefs.h <<_ACEOF
14607#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14608_ACEOF
14609
14610ac_header_dirent=$ac_hdr; break
14611fi
14612
14613done
14614# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14615if test $ac_header_dirent = dirent.h; then
14616  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14617echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14618if test "${ac_cv_search_opendir+set}" = set; then
14619  echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621  ac_func_search_save_LIBS=$LIBS
14622cat >conftest.$ac_ext <<_ACEOF
14623/* confdefs.h.  */
14624_ACEOF
14625cat confdefs.h >>conftest.$ac_ext
14626cat >>conftest.$ac_ext <<_ACEOF
14627/* end confdefs.h.  */
14628
14629/* Override any GCC internal prototype to avoid an error.
14630   Use char because int might match the return type of a GCC
14631   builtin and then its argument prototype would still apply.  */
14632#ifdef __cplusplus
14633extern "C"
14634#endif
14635char opendir ();
14636int
14637main ()
14638{
14639return opendir ();
14640  ;
14641  return 0;
14642}
14643_ACEOF
14644for ac_lib in '' dir; do
14645  if test -z "$ac_lib"; then
14646    ac_res="none required"
14647  else
14648    ac_res=-l$ac_lib
14649    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14650  fi
14651  rm -f conftest.$ac_objext conftest$ac_exeext
14652if { (ac_try="$ac_link"
14653case "(($ac_try" in
14654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655  *) ac_try_echo=$ac_try;;
14656esac
14657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658  (eval "$ac_link") 2>conftest.er1
14659  ac_status=$?
14660  grep -v '^ *+' conftest.er1 >conftest.err
14661  rm -f conftest.er1
14662  cat conftest.err >&5
14663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664  (exit $ac_status); } &&
14665	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14666  { (case "(($ac_try" in
14667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668  *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671  (eval "$ac_try") 2>&5
14672  ac_status=$?
14673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674  (exit $ac_status); }; } &&
14675	 { ac_try='test -s conftest$ac_exeext'
14676  { (case "(($ac_try" in
14677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678  *) ac_try_echo=$ac_try;;
14679esac
14680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681  (eval "$ac_try") 2>&5
14682  ac_status=$?
14683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684  (exit $ac_status); }; }; then
14685  ac_cv_search_opendir=$ac_res
14686else
14687  echo "$as_me: failed program was:" >&5
14688sed 's/^/| /' conftest.$ac_ext >&5
14689
14690
14691fi
14692
14693rm -f core conftest.err conftest.$ac_objext \
14694      conftest$ac_exeext
14695  if test "${ac_cv_search_opendir+set}" = set; then
14696  break
14697fi
14698done
14699if test "${ac_cv_search_opendir+set}" = set; then
14700  :
14701else
14702  ac_cv_search_opendir=no
14703fi
14704rm conftest.$ac_ext
14705LIBS=$ac_func_search_save_LIBS
14706fi
14707{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14708echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14709ac_res=$ac_cv_search_opendir
14710if test "$ac_res" != no; then
14711  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14712
14713fi
14714
14715else
14716  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14717echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14718if test "${ac_cv_search_opendir+set}" = set; then
14719  echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
14721  ac_func_search_save_LIBS=$LIBS
14722cat >conftest.$ac_ext <<_ACEOF
14723/* confdefs.h.  */
14724_ACEOF
14725cat confdefs.h >>conftest.$ac_ext
14726cat >>conftest.$ac_ext <<_ACEOF
14727/* end confdefs.h.  */
14728
14729/* Override any GCC internal prototype to avoid an error.
14730   Use char because int might match the return type of a GCC
14731   builtin and then its argument prototype would still apply.  */
14732#ifdef __cplusplus
14733extern "C"
14734#endif
14735char opendir ();
14736int
14737main ()
14738{
14739return opendir ();
14740  ;
14741  return 0;
14742}
14743_ACEOF
14744for ac_lib in '' x; do
14745  if test -z "$ac_lib"; then
14746    ac_res="none required"
14747  else
14748    ac_res=-l$ac_lib
14749    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14750  fi
14751  rm -f conftest.$ac_objext conftest$ac_exeext
14752if { (ac_try="$ac_link"
14753case "(($ac_try" in
14754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755  *) ac_try_echo=$ac_try;;
14756esac
14757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758  (eval "$ac_link") 2>conftest.er1
14759  ac_status=$?
14760  grep -v '^ *+' conftest.er1 >conftest.err
14761  rm -f conftest.er1
14762  cat conftest.err >&5
14763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764  (exit $ac_status); } &&
14765	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14766  { (case "(($ac_try" in
14767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768  *) ac_try_echo=$ac_try;;
14769esac
14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771  (eval "$ac_try") 2>&5
14772  ac_status=$?
14773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774  (exit $ac_status); }; } &&
14775	 { ac_try='test -s conftest$ac_exeext'
14776  { (case "(($ac_try" in
14777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778  *) ac_try_echo=$ac_try;;
14779esac
14780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781  (eval "$ac_try") 2>&5
14782  ac_status=$?
14783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784  (exit $ac_status); }; }; then
14785  ac_cv_search_opendir=$ac_res
14786else
14787  echo "$as_me: failed program was:" >&5
14788sed 's/^/| /' conftest.$ac_ext >&5
14789
14790
14791fi
14792
14793rm -f core conftest.err conftest.$ac_objext \
14794      conftest$ac_exeext
14795  if test "${ac_cv_search_opendir+set}" = set; then
14796  break
14797fi
14798done
14799if test "${ac_cv_search_opendir+set}" = set; then
14800  :
14801else
14802  ac_cv_search_opendir=no
14803fi
14804rm conftest.$ac_ext
14805LIBS=$ac_func_search_save_LIBS
14806fi
14807{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14808echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14809ac_res=$ac_cv_search_opendir
14810if test "$ac_res" != no; then
14811  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14812
14813fi
14814
14815fi
14816
14817{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14818echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14819if test "${ac_cv_header_mmap_anon+set}" = set; then
14820  echo $ECHO_N "(cached) $ECHO_C" >&6
14821else
14822   ac_ext=c
14823ac_cpp='$CPP $CPPFLAGS'
14824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826ac_compiler_gnu=$ac_cv_c_compiler_gnu
14827
14828  cat >conftest.$ac_ext <<_ACEOF
14829/* confdefs.h.  */
14830_ACEOF
14831cat confdefs.h >>conftest.$ac_ext
14832cat >>conftest.$ac_ext <<_ACEOF
14833/* end confdefs.h.  */
14834#include <sys/mman.h>
14835#include <unistd.h>
14836#include <fcntl.h>
14837int
14838main ()
14839{
14840mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14841  ;
14842  return 0;
14843}
14844_ACEOF
14845rm -f conftest.$ac_objext
14846if { (ac_try="$ac_compile"
14847case "(($ac_try" in
14848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849  *) ac_try_echo=$ac_try;;
14850esac
14851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852  (eval "$ac_compile") 2>conftest.er1
14853  ac_status=$?
14854  grep -v '^ *+' conftest.er1 >conftest.err
14855  rm -f conftest.er1
14856  cat conftest.err >&5
14857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858  (exit $ac_status); } &&
14859	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860  { (case "(($ac_try" in
14861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862  *) ac_try_echo=$ac_try;;
14863esac
14864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865  (eval "$ac_try") 2>&5
14866  ac_status=$?
14867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868  (exit $ac_status); }; } &&
14869	 { ac_try='test -s conftest.$ac_objext'
14870  { (case "(($ac_try" in
14871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872  *) ac_try_echo=$ac_try;;
14873esac
14874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875  (eval "$ac_try") 2>&5
14876  ac_status=$?
14877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878  (exit $ac_status); }; }; then
14879  ac_cv_header_mmap_anon=yes
14880else
14881  echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
14884	ac_cv_header_mmap_anon=no
14885fi
14886
14887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888  ac_ext=c
14889ac_cpp='$CPP $CPPFLAGS'
14890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894
14895fi
14896{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14897echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14898if test "$ac_cv_header_mmap_anon" = yes; then
14899
14900cat >>confdefs.h <<\_ACEOF
14901#define HAVE_MMAP_ANONYMOUS 1
14902_ACEOF
14903
14904fi
14905
14906{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14907echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14908if test "${ac_cv_header_stat_broken+set}" = set; then
14909  echo $ECHO_N "(cached) $ECHO_C" >&6
14910else
14911  cat >conftest.$ac_ext <<_ACEOF
14912/* confdefs.h.  */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
14916/* end confdefs.h.  */
14917#include <sys/types.h>
14918#include <sys/stat.h>
14919
14920#if defined S_ISBLK && defined S_IFDIR
14921# if S_ISBLK (S_IFDIR)
14922You lose.
14923# endif
14924#endif
14925
14926#if defined S_ISBLK && defined S_IFCHR
14927# if S_ISBLK (S_IFCHR)
14928You lose.
14929# endif
14930#endif
14931
14932#if defined S_ISLNK && defined S_IFREG
14933# if S_ISLNK (S_IFREG)
14934You lose.
14935# endif
14936#endif
14937
14938#if defined S_ISSOCK && defined S_IFREG
14939# if S_ISSOCK (S_IFREG)
14940You lose.
14941# endif
14942#endif
14943
14944_ACEOF
14945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14946  $EGREP "You lose" >/dev/null 2>&1; then
14947  ac_cv_header_stat_broken=yes
14948else
14949  ac_cv_header_stat_broken=no
14950fi
14951rm -f conftest*
14952
14953fi
14954{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14955echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14956if test $ac_cv_header_stat_broken = yes; then
14957
14958cat >>confdefs.h <<\_ACEOF
14959#define STAT_MACROS_BROKEN 1
14960_ACEOF
14961
14962fi
14963
14964{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14965echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14966if test "${ac_cv_header_stdc+set}" = set; then
14967  echo $ECHO_N "(cached) $ECHO_C" >&6
14968else
14969  cat >conftest.$ac_ext <<_ACEOF
14970/* confdefs.h.  */
14971_ACEOF
14972cat confdefs.h >>conftest.$ac_ext
14973cat >>conftest.$ac_ext <<_ACEOF
14974/* end confdefs.h.  */
14975#include <stdlib.h>
14976#include <stdarg.h>
14977#include <string.h>
14978#include <float.h>
14979
14980int
14981main ()
14982{
14983
14984  ;
14985  return 0;
14986}
14987_ACEOF
14988rm -f conftest.$ac_objext
14989if { (ac_try="$ac_compile"
14990case "(($ac_try" in
14991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992  *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995  (eval "$ac_compile") 2>conftest.er1
14996  ac_status=$?
14997  grep -v '^ *+' conftest.er1 >conftest.err
14998  rm -f conftest.er1
14999  cat conftest.err >&5
15000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001  (exit $ac_status); } &&
15002	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003  { (case "(($ac_try" in
15004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005  *) ac_try_echo=$ac_try;;
15006esac
15007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008  (eval "$ac_try") 2>&5
15009  ac_status=$?
15010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011  (exit $ac_status); }; } &&
15012	 { ac_try='test -s conftest.$ac_objext'
15013  { (case "(($ac_try" in
15014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015  *) ac_try_echo=$ac_try;;
15016esac
15017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018  (eval "$ac_try") 2>&5
15019  ac_status=$?
15020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021  (exit $ac_status); }; }; then
15022  ac_cv_header_stdc=yes
15023else
15024  echo "$as_me: failed program was:" >&5
15025sed 's/^/| /' conftest.$ac_ext >&5
15026
15027	ac_cv_header_stdc=no
15028fi
15029
15030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031
15032if test $ac_cv_header_stdc = yes; then
15033  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15034  cat >conftest.$ac_ext <<_ACEOF
15035/* confdefs.h.  */
15036_ACEOF
15037cat confdefs.h >>conftest.$ac_ext
15038cat >>conftest.$ac_ext <<_ACEOF
15039/* end confdefs.h.  */
15040#include <string.h>
15041
15042_ACEOF
15043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15044  $EGREP "memchr" >/dev/null 2>&1; then
15045  :
15046else
15047  ac_cv_header_stdc=no
15048fi
15049rm -f conftest*
15050
15051fi
15052
15053if test $ac_cv_header_stdc = yes; then
15054  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15055  cat >conftest.$ac_ext <<_ACEOF
15056/* confdefs.h.  */
15057_ACEOF
15058cat confdefs.h >>conftest.$ac_ext
15059cat >>conftest.$ac_ext <<_ACEOF
15060/* end confdefs.h.  */
15061#include <stdlib.h>
15062
15063_ACEOF
15064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15065  $EGREP "free" >/dev/null 2>&1; then
15066  :
15067else
15068  ac_cv_header_stdc=no
15069fi
15070rm -f conftest*
15071
15072fi
15073
15074if test $ac_cv_header_stdc = yes; then
15075  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15076  if test "$cross_compiling" = yes; then
15077  :
15078else
15079  cat >conftest.$ac_ext <<_ACEOF
15080/* confdefs.h.  */
15081_ACEOF
15082cat confdefs.h >>conftest.$ac_ext
15083cat >>conftest.$ac_ext <<_ACEOF
15084/* end confdefs.h.  */
15085#include <ctype.h>
15086#include <stdlib.h>
15087#if ((' ' & 0x0FF) == 0x020)
15088# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15089# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15090#else
15091# define ISLOWER(c) \
15092		   (('a' <= (c) && (c) <= 'i') \
15093		     || ('j' <= (c) && (c) <= 'r') \
15094		     || ('s' <= (c) && (c) <= 'z'))
15095# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15096#endif
15097
15098#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15099int
15100main ()
15101{
15102  int i;
15103  for (i = 0; i < 256; i++)
15104    if (XOR (islower (i), ISLOWER (i))
15105	|| toupper (i) != TOUPPER (i))
15106      return 2;
15107  return 0;
15108}
15109_ACEOF
15110rm -f conftest$ac_exeext
15111if { (ac_try="$ac_link"
15112case "(($ac_try" in
15113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114  *) ac_try_echo=$ac_try;;
15115esac
15116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117  (eval "$ac_link") 2>&5
15118  ac_status=$?
15119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15121  { (case "(($ac_try" in
15122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123  *) ac_try_echo=$ac_try;;
15124esac
15125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126  (eval "$ac_try") 2>&5
15127  ac_status=$?
15128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129  (exit $ac_status); }; }; then
15130  :
15131else
15132  echo "$as_me: program exited with status $ac_status" >&5
15133echo "$as_me: failed program was:" >&5
15134sed 's/^/| /' conftest.$ac_ext >&5
15135
15136( exit $ac_status )
15137ac_cv_header_stdc=no
15138fi
15139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15140fi
15141
15142
15143fi
15144fi
15145{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15146echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15147if test $ac_cv_header_stdc = yes; then
15148
15149cat >>confdefs.h <<\_ACEOF
15150#define STDC_HEADERS 1
15151_ACEOF
15152
15153fi
15154
15155{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15156echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15157if test "${ac_cv_header_sys_wait_h+set}" = set; then
15158  echo $ECHO_N "(cached) $ECHO_C" >&6
15159else
15160  cat >conftest.$ac_ext <<_ACEOF
15161/* confdefs.h.  */
15162_ACEOF
15163cat confdefs.h >>conftest.$ac_ext
15164cat >>conftest.$ac_ext <<_ACEOF
15165/* end confdefs.h.  */
15166#include <sys/types.h>
15167#include <sys/wait.h>
15168#ifndef WEXITSTATUS
15169# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15170#endif
15171#ifndef WIFEXITED
15172# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15173#endif
15174
15175int
15176main ()
15177{
15178  int s;
15179  wait (&s);
15180  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15181  ;
15182  return 0;
15183}
15184_ACEOF
15185rm -f conftest.$ac_objext
15186if { (ac_try="$ac_compile"
15187case "(($ac_try" in
15188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189  *) ac_try_echo=$ac_try;;
15190esac
15191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192  (eval "$ac_compile") 2>conftest.er1
15193  ac_status=$?
15194  grep -v '^ *+' conftest.er1 >conftest.err
15195  rm -f conftest.er1
15196  cat conftest.err >&5
15197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198  (exit $ac_status); } &&
15199	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200  { (case "(($ac_try" in
15201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202  *) ac_try_echo=$ac_try;;
15203esac
15204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205  (eval "$ac_try") 2>&5
15206  ac_status=$?
15207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208  (exit $ac_status); }; } &&
15209	 { ac_try='test -s conftest.$ac_objext'
15210  { (case "(($ac_try" in
15211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212  *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215  (eval "$ac_try") 2>&5
15216  ac_status=$?
15217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218  (exit $ac_status); }; }; then
15219  ac_cv_header_sys_wait_h=yes
15220else
15221  echo "$as_me: failed program was:" >&5
15222sed 's/^/| /' conftest.$ac_ext >&5
15223
15224	ac_cv_header_sys_wait_h=no
15225fi
15226
15227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228fi
15229{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15230echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15231if test $ac_cv_header_sys_wait_h = yes; then
15232
15233cat >>confdefs.h <<\_ACEOF
15234#define HAVE_SYS_WAIT_H 1
15235_ACEOF
15236
15237fi
15238
15239{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15240echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15241if test "${ac_cv_header_time+set}" = set; then
15242  echo $ECHO_N "(cached) $ECHO_C" >&6
15243else
15244  cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h.  */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h.  */
15250#include <sys/types.h>
15251#include <sys/time.h>
15252#include <time.h>
15253
15254int
15255main ()
15256{
15257if ((struct tm *) 0)
15258return 0;
15259  ;
15260  return 0;
15261}
15262_ACEOF
15263rm -f conftest.$ac_objext
15264if { (ac_try="$ac_compile"
15265case "(($ac_try" in
15266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267  *) ac_try_echo=$ac_try;;
15268esac
15269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270  (eval "$ac_compile") 2>conftest.er1
15271  ac_status=$?
15272  grep -v '^ *+' conftest.er1 >conftest.err
15273  rm -f conftest.er1
15274  cat conftest.err >&5
15275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276  (exit $ac_status); } &&
15277	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15278  { (case "(($ac_try" in
15279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280  *) ac_try_echo=$ac_try;;
15281esac
15282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283  (eval "$ac_try") 2>&5
15284  ac_status=$?
15285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286  (exit $ac_status); }; } &&
15287	 { ac_try='test -s conftest.$ac_objext'
15288  { (case "(($ac_try" in
15289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290  *) ac_try_echo=$ac_try;;
15291esac
15292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293  (eval "$ac_try") 2>&5
15294  ac_status=$?
15295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296  (exit $ac_status); }; }; then
15297  ac_cv_header_time=yes
15298else
15299  echo "$as_me: failed program was:" >&5
15300sed 's/^/| /' conftest.$ac_ext >&5
15301
15302	ac_cv_header_time=no
15303fi
15304
15305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306fi
15307{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15308echo "${ECHO_T}$ac_cv_header_time" >&6; }
15309if test $ac_cv_header_time = yes; then
15310
15311cat >>confdefs.h <<\_ACEOF
15312#define TIME_WITH_SYS_TIME 1
15313_ACEOF
15314
15315fi
15316
15317
15318
15319
15320
15321
15322
15323
15324for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15325do
15326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
15332fi
15333ac_res=`eval echo '${'$as_ac_Header'}'`
15334	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15335echo "${ECHO_T}$ac_res" >&6; }
15336else
15337  # Is the header compilable?
15338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15340cat >conftest.$ac_ext <<_ACEOF
15341/* confdefs.h.  */
15342_ACEOF
15343cat confdefs.h >>conftest.$ac_ext
15344cat >>conftest.$ac_ext <<_ACEOF
15345/* end confdefs.h.  */
15346$ac_includes_default
15347#include <$ac_header>
15348_ACEOF
15349rm -f conftest.$ac_objext
15350if { (ac_try="$ac_compile"
15351case "(($ac_try" in
15352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353  *) ac_try_echo=$ac_try;;
15354esac
15355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356  (eval "$ac_compile") 2>conftest.er1
15357  ac_status=$?
15358  grep -v '^ *+' conftest.er1 >conftest.err
15359  rm -f conftest.er1
15360  cat conftest.err >&5
15361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362  (exit $ac_status); } &&
15363	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364  { (case "(($ac_try" in
15365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366  *) ac_try_echo=$ac_try;;
15367esac
15368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369  (eval "$ac_try") 2>&5
15370  ac_status=$?
15371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372  (exit $ac_status); }; } &&
15373	 { ac_try='test -s conftest.$ac_objext'
15374  { (case "(($ac_try" in
15375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376  *) ac_try_echo=$ac_try;;
15377esac
15378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379  (eval "$ac_try") 2>&5
15380  ac_status=$?
15381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382  (exit $ac_status); }; }; then
15383  ac_header_compiler=yes
15384else
15385  echo "$as_me: failed program was:" >&5
15386sed 's/^/| /' conftest.$ac_ext >&5
15387
15388	ac_header_compiler=no
15389fi
15390
15391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15393echo "${ECHO_T}$ac_header_compiler" >&6; }
15394
15395# Is the header present?
15396{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15398cat >conftest.$ac_ext <<_ACEOF
15399/* confdefs.h.  */
15400_ACEOF
15401cat confdefs.h >>conftest.$ac_ext
15402cat >>conftest.$ac_ext <<_ACEOF
15403/* end confdefs.h.  */
15404#include <$ac_header>
15405_ACEOF
15406if { (ac_try="$ac_cpp conftest.$ac_ext"
15407case "(($ac_try" in
15408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409  *) ac_try_echo=$ac_try;;
15410esac
15411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15413  ac_status=$?
15414  grep -v '^ *+' conftest.er1 >conftest.err
15415  rm -f conftest.er1
15416  cat conftest.err >&5
15417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418  (exit $ac_status); } >/dev/null; then
15419  if test -s conftest.err; then
15420    ac_cpp_err=$ac_c_preproc_warn_flag
15421    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15422  else
15423    ac_cpp_err=
15424  fi
15425else
15426  ac_cpp_err=yes
15427fi
15428if test -z "$ac_cpp_err"; then
15429  ac_header_preproc=yes
15430else
15431  echo "$as_me: failed program was:" >&5
15432sed 's/^/| /' conftest.$ac_ext >&5
15433
15434  ac_header_preproc=no
15435fi
15436
15437rm -f conftest.err conftest.$ac_ext
15438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439echo "${ECHO_T}$ac_header_preproc" >&6; }
15440
15441# So?  What about this header?
15442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15443  yes:no: )
15444    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15448    ac_header_preproc=yes
15449    ;;
15450  no:yes:* )
15451    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15453    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15454echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15455    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15457    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15458echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15459    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15461    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15463    ( cat <<\_ASBOX
15464## ----------------------------------- ##
15465## Report this to llvmbugs@cs.uiuc.edu ##
15466## ----------------------------------- ##
15467_ASBOX
15468     ) | sed "s/^/$as_me: WARNING:     /" >&2
15469    ;;
15470esac
15471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474  echo $ECHO_N "(cached) $ECHO_C" >&6
15475else
15476  eval "$as_ac_Header=\$ac_header_preproc"
15477fi
15478ac_res=`eval echo '${'$as_ac_Header'}'`
15479	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15480echo "${ECHO_T}$ac_res" >&6; }
15481
15482fi
15483if test `eval echo '${'$as_ac_Header'}'` = yes; then
15484  cat >>confdefs.h <<_ACEOF
15485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15486_ACEOF
15487
15488fi
15489
15490done
15491
15492
15493
15494
15495
15496
15497
15498for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15499do
15500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505  echo $ECHO_N "(cached) $ECHO_C" >&6
15506fi
15507ac_res=`eval echo '${'$as_ac_Header'}'`
15508	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15509echo "${ECHO_T}$ac_res" >&6; }
15510else
15511  # Is the header compilable?
15512{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15514cat >conftest.$ac_ext <<_ACEOF
15515/* confdefs.h.  */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
15519/* end confdefs.h.  */
15520$ac_includes_default
15521#include <$ac_header>
15522_ACEOF
15523rm -f conftest.$ac_objext
15524if { (ac_try="$ac_compile"
15525case "(($ac_try" in
15526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527  *) ac_try_echo=$ac_try;;
15528esac
15529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530  (eval "$ac_compile") 2>conftest.er1
15531  ac_status=$?
15532  grep -v '^ *+' conftest.er1 >conftest.err
15533  rm -f conftest.er1
15534  cat conftest.err >&5
15535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536  (exit $ac_status); } &&
15537	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15538  { (case "(($ac_try" in
15539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540  *) ac_try_echo=$ac_try;;
15541esac
15542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543  (eval "$ac_try") 2>&5
15544  ac_status=$?
15545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546  (exit $ac_status); }; } &&
15547	 { ac_try='test -s conftest.$ac_objext'
15548  { (case "(($ac_try" in
15549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550  *) ac_try_echo=$ac_try;;
15551esac
15552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553  (eval "$ac_try") 2>&5
15554  ac_status=$?
15555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556  (exit $ac_status); }; }; then
15557  ac_header_compiler=yes
15558else
15559  echo "$as_me: failed program was:" >&5
15560sed 's/^/| /' conftest.$ac_ext >&5
15561
15562	ac_header_compiler=no
15563fi
15564
15565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15567echo "${ECHO_T}$ac_header_compiler" >&6; }
15568
15569# Is the header present?
15570{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15572cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h.  */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h.  */
15578#include <$ac_header>
15579_ACEOF
15580if { (ac_try="$ac_cpp conftest.$ac_ext"
15581case "(($ac_try" in
15582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583  *) ac_try_echo=$ac_try;;
15584esac
15585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15587  ac_status=$?
15588  grep -v '^ *+' conftest.er1 >conftest.err
15589  rm -f conftest.er1
15590  cat conftest.err >&5
15591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592  (exit $ac_status); } >/dev/null; then
15593  if test -s conftest.err; then
15594    ac_cpp_err=$ac_c_preproc_warn_flag
15595    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15596  else
15597    ac_cpp_err=
15598  fi
15599else
15600  ac_cpp_err=yes
15601fi
15602if test -z "$ac_cpp_err"; then
15603  ac_header_preproc=yes
15604else
15605  echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608  ac_header_preproc=no
15609fi
15610
15611rm -f conftest.err conftest.$ac_ext
15612{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15613echo "${ECHO_T}$ac_header_preproc" >&6; }
15614
15615# So?  What about this header?
15616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15617  yes:no: )
15618    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15620    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15622    ac_header_preproc=yes
15623    ;;
15624  no:yes:* )
15625    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15627    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15628echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15629    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15631    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15632echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15633    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15635    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15637    ( cat <<\_ASBOX
15638## ----------------------------------- ##
15639## Report this to llvmbugs@cs.uiuc.edu ##
15640## ----------------------------------- ##
15641_ASBOX
15642     ) | sed "s/^/$as_me: WARNING:     /" >&2
15643    ;;
15644esac
15645{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648  echo $ECHO_N "(cached) $ECHO_C" >&6
15649else
15650  eval "$as_ac_Header=\$ac_header_preproc"
15651fi
15652ac_res=`eval echo '${'$as_ac_Header'}'`
15653	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15654echo "${ECHO_T}$ac_res" >&6; }
15655
15656fi
15657if test `eval echo '${'$as_ac_Header'}'` = yes; then
15658  cat >>confdefs.h <<_ACEOF
15659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15660_ACEOF
15661
15662fi
15663
15664done
15665
15666
15667
15668for ac_header in utime.h windows.h
15669do
15670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675  echo $ECHO_N "(cached) $ECHO_C" >&6
15676fi
15677ac_res=`eval echo '${'$as_ac_Header'}'`
15678	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15679echo "${ECHO_T}$ac_res" >&6; }
15680else
15681  # Is the header compilable?
15682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15684cat >conftest.$ac_ext <<_ACEOF
15685/* confdefs.h.  */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h.  */
15690$ac_includes_default
15691#include <$ac_header>
15692_ACEOF
15693rm -f conftest.$ac_objext
15694if { (ac_try="$ac_compile"
15695case "(($ac_try" in
15696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697  *) ac_try_echo=$ac_try;;
15698esac
15699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700  (eval "$ac_compile") 2>conftest.er1
15701  ac_status=$?
15702  grep -v '^ *+' conftest.er1 >conftest.err
15703  rm -f conftest.er1
15704  cat conftest.err >&5
15705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706  (exit $ac_status); } &&
15707	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15708  { (case "(($ac_try" in
15709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710  *) ac_try_echo=$ac_try;;
15711esac
15712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713  (eval "$ac_try") 2>&5
15714  ac_status=$?
15715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716  (exit $ac_status); }; } &&
15717	 { ac_try='test -s conftest.$ac_objext'
15718  { (case "(($ac_try" in
15719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720  *) ac_try_echo=$ac_try;;
15721esac
15722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723  (eval "$ac_try") 2>&5
15724  ac_status=$?
15725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726  (exit $ac_status); }; }; then
15727  ac_header_compiler=yes
15728else
15729  echo "$as_me: failed program was:" >&5
15730sed 's/^/| /' conftest.$ac_ext >&5
15731
15732	ac_header_compiler=no
15733fi
15734
15735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15737echo "${ECHO_T}$ac_header_compiler" >&6; }
15738
15739# Is the header present?
15740{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15742cat >conftest.$ac_ext <<_ACEOF
15743/* confdefs.h.  */
15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h.  */
15748#include <$ac_header>
15749_ACEOF
15750if { (ac_try="$ac_cpp conftest.$ac_ext"
15751case "(($ac_try" in
15752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753  *) ac_try_echo=$ac_try;;
15754esac
15755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15757  ac_status=$?
15758  grep -v '^ *+' conftest.er1 >conftest.err
15759  rm -f conftest.er1
15760  cat conftest.err >&5
15761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762  (exit $ac_status); } >/dev/null; then
15763  if test -s conftest.err; then
15764    ac_cpp_err=$ac_c_preproc_warn_flag
15765    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15766  else
15767    ac_cpp_err=
15768  fi
15769else
15770  ac_cpp_err=yes
15771fi
15772if test -z "$ac_cpp_err"; then
15773  ac_header_preproc=yes
15774else
15775  echo "$as_me: failed program was:" >&5
15776sed 's/^/| /' conftest.$ac_ext >&5
15777
15778  ac_header_preproc=no
15779fi
15780
15781rm -f conftest.err conftest.$ac_ext
15782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15783echo "${ECHO_T}$ac_header_preproc" >&6; }
15784
15785# So?  What about this header?
15786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15787  yes:no: )
15788    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15790    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15792    ac_header_preproc=yes
15793    ;;
15794  no:yes:* )
15795    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15797    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15798echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15799    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15801    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15802echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15803    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15805    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15807    ( cat <<\_ASBOX
15808## ----------------------------------- ##
15809## Report this to llvmbugs@cs.uiuc.edu ##
15810## ----------------------------------- ##
15811_ASBOX
15812     ) | sed "s/^/$as_me: WARNING:     /" >&2
15813    ;;
15814esac
15815{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818  echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820  eval "$as_ac_Header=\$ac_header_preproc"
15821fi
15822ac_res=`eval echo '${'$as_ac_Header'}'`
15823	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15824echo "${ECHO_T}$ac_res" >&6; }
15825
15826fi
15827if test `eval echo '${'$as_ac_Header'}'` = yes; then
15828  cat >>confdefs.h <<_ACEOF
15829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15830_ACEOF
15831
15832fi
15833
15834done
15835
15836
15837
15838
15839
15840for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15841do
15842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847  echo $ECHO_N "(cached) $ECHO_C" >&6
15848fi
15849ac_res=`eval echo '${'$as_ac_Header'}'`
15850	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15851echo "${ECHO_T}$ac_res" >&6; }
15852else
15853  # Is the header compilable?
15854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15856cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h.  */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h.  */
15862$ac_includes_default
15863#include <$ac_header>
15864_ACEOF
15865rm -f conftest.$ac_objext
15866if { (ac_try="$ac_compile"
15867case "(($ac_try" in
15868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869  *) ac_try_echo=$ac_try;;
15870esac
15871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872  (eval "$ac_compile") 2>conftest.er1
15873  ac_status=$?
15874  grep -v '^ *+' conftest.er1 >conftest.err
15875  rm -f conftest.er1
15876  cat conftest.err >&5
15877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878  (exit $ac_status); } &&
15879	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15880  { (case "(($ac_try" in
15881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882  *) ac_try_echo=$ac_try;;
15883esac
15884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885  (eval "$ac_try") 2>&5
15886  ac_status=$?
15887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888  (exit $ac_status); }; } &&
15889	 { ac_try='test -s conftest.$ac_objext'
15890  { (case "(($ac_try" in
15891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892  *) ac_try_echo=$ac_try;;
15893esac
15894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895  (eval "$ac_try") 2>&5
15896  ac_status=$?
15897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898  (exit $ac_status); }; }; then
15899  ac_header_compiler=yes
15900else
15901  echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904	ac_header_compiler=no
15905fi
15906
15907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15909echo "${ECHO_T}$ac_header_compiler" >&6; }
15910
15911# Is the header present?
15912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15914cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h.  */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h.  */
15920#include <$ac_header>
15921_ACEOF
15922if { (ac_try="$ac_cpp conftest.$ac_ext"
15923case "(($ac_try" in
15924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925  *) ac_try_echo=$ac_try;;
15926esac
15927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15929  ac_status=$?
15930  grep -v '^ *+' conftest.er1 >conftest.err
15931  rm -f conftest.er1
15932  cat conftest.err >&5
15933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934  (exit $ac_status); } >/dev/null; then
15935  if test -s conftest.err; then
15936    ac_cpp_err=$ac_c_preproc_warn_flag
15937    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15938  else
15939    ac_cpp_err=
15940  fi
15941else
15942  ac_cpp_err=yes
15943fi
15944if test -z "$ac_cpp_err"; then
15945  ac_header_preproc=yes
15946else
15947  echo "$as_me: failed program was:" >&5
15948sed 's/^/| /' conftest.$ac_ext >&5
15949
15950  ac_header_preproc=no
15951fi
15952
15953rm -f conftest.err conftest.$ac_ext
15954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955echo "${ECHO_T}$ac_header_preproc" >&6; }
15956
15957# So?  What about this header?
15958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959  yes:no: )
15960    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15964    ac_header_preproc=yes
15965    ;;
15966  no:yes:* )
15967    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15970echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15971    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15973    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15974echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15975    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15977    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15979    ( cat <<\_ASBOX
15980## ----------------------------------- ##
15981## Report this to llvmbugs@cs.uiuc.edu ##
15982## ----------------------------------- ##
15983_ASBOX
15984     ) | sed "s/^/$as_me: WARNING:     /" >&2
15985    ;;
15986esac
15987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990  echo $ECHO_N "(cached) $ECHO_C" >&6
15991else
15992  eval "$as_ac_Header=\$ac_header_preproc"
15993fi
15994ac_res=`eval echo '${'$as_ac_Header'}'`
15995	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15996echo "${ECHO_T}$ac_res" >&6; }
15997
15998fi
15999if test `eval echo '${'$as_ac_Header'}'` = yes; then
16000  cat >>confdefs.h <<_ACEOF
16001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16002_ACEOF
16003
16004fi
16005
16006done
16007
16008
16009
16010
16011
16012for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16013do
16014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019  echo $ECHO_N "(cached) $ECHO_C" >&6
16020fi
16021ac_res=`eval echo '${'$as_ac_Header'}'`
16022	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16023echo "${ECHO_T}$ac_res" >&6; }
16024else
16025  # Is the header compilable?
16026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16028cat >conftest.$ac_ext <<_ACEOF
16029/* confdefs.h.  */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h.  */
16034$ac_includes_default
16035#include <$ac_header>
16036_ACEOF
16037rm -f conftest.$ac_objext
16038if { (ac_try="$ac_compile"
16039case "(($ac_try" in
16040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041  *) ac_try_echo=$ac_try;;
16042esac
16043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044  (eval "$ac_compile") 2>conftest.er1
16045  ac_status=$?
16046  grep -v '^ *+' conftest.er1 >conftest.err
16047  rm -f conftest.er1
16048  cat conftest.err >&5
16049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050  (exit $ac_status); } &&
16051	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16052  { (case "(($ac_try" in
16053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054  *) ac_try_echo=$ac_try;;
16055esac
16056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057  (eval "$ac_try") 2>&5
16058  ac_status=$?
16059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060  (exit $ac_status); }; } &&
16061	 { ac_try='test -s conftest.$ac_objext'
16062  { (case "(($ac_try" in
16063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064  *) ac_try_echo=$ac_try;;
16065esac
16066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067  (eval "$ac_try") 2>&5
16068  ac_status=$?
16069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070  (exit $ac_status); }; }; then
16071  ac_header_compiler=yes
16072else
16073  echo "$as_me: failed program was:" >&5
16074sed 's/^/| /' conftest.$ac_ext >&5
16075
16076	ac_header_compiler=no
16077fi
16078
16079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16081echo "${ECHO_T}$ac_header_compiler" >&6; }
16082
16083# Is the header present?
16084{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16086cat >conftest.$ac_ext <<_ACEOF
16087/* confdefs.h.  */
16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h.  */
16092#include <$ac_header>
16093_ACEOF
16094if { (ac_try="$ac_cpp conftest.$ac_ext"
16095case "(($ac_try" in
16096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097  *) ac_try_echo=$ac_try;;
16098esac
16099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16101  ac_status=$?
16102  grep -v '^ *+' conftest.er1 >conftest.err
16103  rm -f conftest.er1
16104  cat conftest.err >&5
16105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106  (exit $ac_status); } >/dev/null; then
16107  if test -s conftest.err; then
16108    ac_cpp_err=$ac_c_preproc_warn_flag
16109    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16110  else
16111    ac_cpp_err=
16112  fi
16113else
16114  ac_cpp_err=yes
16115fi
16116if test -z "$ac_cpp_err"; then
16117  ac_header_preproc=yes
16118else
16119  echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122  ac_header_preproc=no
16123fi
16124
16125rm -f conftest.err conftest.$ac_ext
16126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16127echo "${ECHO_T}$ac_header_preproc" >&6; }
16128
16129# So?  What about this header?
16130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16131  yes:no: )
16132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16136    ac_header_preproc=yes
16137    ;;
16138  no:yes:* )
16139    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16141    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16142echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16143    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16145    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16146echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16149    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16151    ( cat <<\_ASBOX
16152## ----------------------------------- ##
16153## Report this to llvmbugs@cs.uiuc.edu ##
16154## ----------------------------------- ##
16155_ASBOX
16156     ) | sed "s/^/$as_me: WARNING:     /" >&2
16157    ;;
16158esac
16159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162  echo $ECHO_N "(cached) $ECHO_C" >&6
16163else
16164  eval "$as_ac_Header=\$ac_header_preproc"
16165fi
16166ac_res=`eval echo '${'$as_ac_Header'}'`
16167	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16168echo "${ECHO_T}$ac_res" >&6; }
16169
16170fi
16171if test `eval echo '${'$as_ac_Header'}'` = yes; then
16172  cat >>confdefs.h <<_ACEOF
16173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174_ACEOF
16175
16176fi
16177
16178done
16179
16180if test "$ENABLE_THREADS" -eq 1 ; then
16181
16182for ac_header in pthread.h
16183do
16184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189  echo $ECHO_N "(cached) $ECHO_C" >&6
16190fi
16191ac_res=`eval echo '${'$as_ac_Header'}'`
16192	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16193echo "${ECHO_T}$ac_res" >&6; }
16194else
16195  # Is the header compilable?
16196{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16198cat >conftest.$ac_ext <<_ACEOF
16199/* confdefs.h.  */
16200_ACEOF
16201cat confdefs.h >>conftest.$ac_ext
16202cat >>conftest.$ac_ext <<_ACEOF
16203/* end confdefs.h.  */
16204$ac_includes_default
16205#include <$ac_header>
16206_ACEOF
16207rm -f conftest.$ac_objext
16208if { (ac_try="$ac_compile"
16209case "(($ac_try" in
16210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211  *) ac_try_echo=$ac_try;;
16212esac
16213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214  (eval "$ac_compile") 2>conftest.er1
16215  ac_status=$?
16216  grep -v '^ *+' conftest.er1 >conftest.err
16217  rm -f conftest.er1
16218  cat conftest.err >&5
16219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220  (exit $ac_status); } &&
16221	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222  { (case "(($ac_try" in
16223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224  *) ac_try_echo=$ac_try;;
16225esac
16226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227  (eval "$ac_try") 2>&5
16228  ac_status=$?
16229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230  (exit $ac_status); }; } &&
16231	 { ac_try='test -s conftest.$ac_objext'
16232  { (case "(($ac_try" in
16233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234  *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237  (eval "$ac_try") 2>&5
16238  ac_status=$?
16239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240  (exit $ac_status); }; }; then
16241  ac_header_compiler=yes
16242else
16243  echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246	ac_header_compiler=no
16247fi
16248
16249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251echo "${ECHO_T}$ac_header_compiler" >&6; }
16252
16253# Is the header present?
16254{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256cat >conftest.$ac_ext <<_ACEOF
16257/* confdefs.h.  */
16258_ACEOF
16259cat confdefs.h >>conftest.$ac_ext
16260cat >>conftest.$ac_ext <<_ACEOF
16261/* end confdefs.h.  */
16262#include <$ac_header>
16263_ACEOF
16264if { (ac_try="$ac_cpp conftest.$ac_ext"
16265case "(($ac_try" in
16266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267  *) ac_try_echo=$ac_try;;
16268esac
16269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16271  ac_status=$?
16272  grep -v '^ *+' conftest.er1 >conftest.err
16273  rm -f conftest.er1
16274  cat conftest.err >&5
16275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276  (exit $ac_status); } >/dev/null; then
16277  if test -s conftest.err; then
16278    ac_cpp_err=$ac_c_preproc_warn_flag
16279    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16280  else
16281    ac_cpp_err=
16282  fi
16283else
16284  ac_cpp_err=yes
16285fi
16286if test -z "$ac_cpp_err"; then
16287  ac_header_preproc=yes
16288else
16289  echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292  ac_header_preproc=no
16293fi
16294
16295rm -f conftest.err conftest.$ac_ext
16296{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16297echo "${ECHO_T}$ac_header_preproc" >&6; }
16298
16299# So?  What about this header?
16300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16301  yes:no: )
16302    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16304    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16306    ac_header_preproc=yes
16307    ;;
16308  no:yes:* )
16309    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16311    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16312echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16313    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16315    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16316echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16317    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16319    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16321    ( cat <<\_ASBOX
16322## ----------------------------------- ##
16323## Report this to llvmbugs@cs.uiuc.edu ##
16324## ----------------------------------- ##
16325_ASBOX
16326     ) | sed "s/^/$as_me: WARNING:     /" >&2
16327    ;;
16328esac
16329{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332  echo $ECHO_N "(cached) $ECHO_C" >&6
16333else
16334  eval "$as_ac_Header=\$ac_header_preproc"
16335fi
16336ac_res=`eval echo '${'$as_ac_Header'}'`
16337	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16338echo "${ECHO_T}$ac_res" >&6; }
16339
16340fi
16341if test `eval echo '${'$as_ac_Header'}'` = yes; then
16342  cat >>confdefs.h <<_ACEOF
16343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344_ACEOF
16345 HAVE_PTHREAD=1
16346
16347else
16348  HAVE_PTHREAD=0
16349
16350fi
16351
16352done
16353
16354else
16355  HAVE_PTHREAD=0
16356
16357fi
16358
16359if test "$llvm_cv_enable_libffi" = "yes" ; then
16360
16361
16362for ac_header in ffi.h ffi/ffi.h
16363do
16364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16369  echo $ECHO_N "(cached) $ECHO_C" >&6
16370fi
16371ac_res=`eval echo '${'$as_ac_Header'}'`
16372	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16373echo "${ECHO_T}$ac_res" >&6; }
16374else
16375  # Is the header compilable?
16376{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16378cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h.  */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h.  */
16384$ac_includes_default
16385#include <$ac_header>
16386_ACEOF
16387rm -f conftest.$ac_objext
16388if { (ac_try="$ac_compile"
16389case "(($ac_try" in
16390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391  *) ac_try_echo=$ac_try;;
16392esac
16393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394  (eval "$ac_compile") 2>conftest.er1
16395  ac_status=$?
16396  grep -v '^ *+' conftest.er1 >conftest.err
16397  rm -f conftest.er1
16398  cat conftest.err >&5
16399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400  (exit $ac_status); } &&
16401	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402  { (case "(($ac_try" in
16403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404  *) ac_try_echo=$ac_try;;
16405esac
16406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407  (eval "$ac_try") 2>&5
16408  ac_status=$?
16409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410  (exit $ac_status); }; } &&
16411	 { ac_try='test -s conftest.$ac_objext'
16412  { (case "(($ac_try" in
16413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414  *) ac_try_echo=$ac_try;;
16415esac
16416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417  (eval "$ac_try") 2>&5
16418  ac_status=$?
16419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420  (exit $ac_status); }; }; then
16421  ac_header_compiler=yes
16422else
16423  echo "$as_me: failed program was:" >&5
16424sed 's/^/| /' conftest.$ac_ext >&5
16425
16426	ac_header_compiler=no
16427fi
16428
16429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16431echo "${ECHO_T}$ac_header_compiler" >&6; }
16432
16433# Is the header present?
16434{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16436cat >conftest.$ac_ext <<_ACEOF
16437/* confdefs.h.  */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h.  */
16442#include <$ac_header>
16443_ACEOF
16444if { (ac_try="$ac_cpp conftest.$ac_ext"
16445case "(($ac_try" in
16446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447  *) ac_try_echo=$ac_try;;
16448esac
16449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16451  ac_status=$?
16452  grep -v '^ *+' conftest.er1 >conftest.err
16453  rm -f conftest.er1
16454  cat conftest.err >&5
16455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456  (exit $ac_status); } >/dev/null; then
16457  if test -s conftest.err; then
16458    ac_cpp_err=$ac_c_preproc_warn_flag
16459    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16460  else
16461    ac_cpp_err=
16462  fi
16463else
16464  ac_cpp_err=yes
16465fi
16466if test -z "$ac_cpp_err"; then
16467  ac_header_preproc=yes
16468else
16469  echo "$as_me: failed program was:" >&5
16470sed 's/^/| /' conftest.$ac_ext >&5
16471
16472  ac_header_preproc=no
16473fi
16474
16475rm -f conftest.err conftest.$ac_ext
16476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16477echo "${ECHO_T}$ac_header_preproc" >&6; }
16478
16479# So?  What about this header?
16480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16481  yes:no: )
16482    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16484    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16486    ac_header_preproc=yes
16487    ;;
16488  no:yes:* )
16489    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16491    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16492echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16493    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16495    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16496echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16497    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16499    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16501    ( cat <<\_ASBOX
16502## ----------------------------------- ##
16503## Report this to llvmbugs@cs.uiuc.edu ##
16504## ----------------------------------- ##
16505_ASBOX
16506     ) | sed "s/^/$as_me: WARNING:     /" >&2
16507    ;;
16508esac
16509{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16512  echo $ECHO_N "(cached) $ECHO_C" >&6
16513else
16514  eval "$as_ac_Header=\$ac_header_preproc"
16515fi
16516ac_res=`eval echo '${'$as_ac_Header'}'`
16517	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16518echo "${ECHO_T}$ac_res" >&6; }
16519
16520fi
16521if test `eval echo '${'$as_ac_Header'}'` = yes; then
16522  cat >>confdefs.h <<_ACEOF
16523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16524_ACEOF
16525
16526fi
16527
16528done
16529
16530fi
16531
16532
16533
16534
16535  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16536echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16537if test "${ac_cv_huge_val_sanity+set}" = set; then
16538  echo $ECHO_N "(cached) $ECHO_C" >&6
16539else
16540
16541    ac_ext=cpp
16542ac_cpp='$CXXCPP $CPPFLAGS'
16543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16546
16547    ac_save_CXXFLAGS=$CXXFLAGS
16548    CXXFLAGS=-pedantic
16549    if test "$cross_compiling" = yes; then
16550  ac_cv_huge_val_sanity=yes
16551else
16552  cat >conftest.$ac_ext <<_ACEOF
16553/* confdefs.h.  */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h.  */
16558#include <math.h>
16559int
16560main ()
16561{
16562double x = HUGE_VAL; return x != x;
16563  ;
16564  return 0;
16565}
16566_ACEOF
16567rm -f conftest$ac_exeext
16568if { (ac_try="$ac_link"
16569case "(($ac_try" in
16570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571  *) ac_try_echo=$ac_try;;
16572esac
16573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574  (eval "$ac_link") 2>&5
16575  ac_status=$?
16576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16578  { (case "(($ac_try" in
16579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580  *) ac_try_echo=$ac_try;;
16581esac
16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583  (eval "$ac_try") 2>&5
16584  ac_status=$?
16585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586  (exit $ac_status); }; }; then
16587  ac_cv_huge_val_sanity=yes
16588else
16589  echo "$as_me: program exited with status $ac_status" >&5
16590echo "$as_me: failed program was:" >&5
16591sed 's/^/| /' conftest.$ac_ext >&5
16592
16593( exit $ac_status )
16594ac_cv_huge_val_sanity=no
16595fi
16596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16597fi
16598
16599
16600    CXXFLAGS=$ac_save_CXXFLAGS
16601    ac_ext=c
16602ac_cpp='$CPP $CPPFLAGS'
16603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605ac_compiler_gnu=$ac_cv_c_compiler_gnu
16606
16607
16608fi
16609{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16610echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16611  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16612
16613
16614{ echo "$as_me:$LINENO: checking for pid_t" >&5
16615echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16616if test "${ac_cv_type_pid_t+set}" = set; then
16617  echo $ECHO_N "(cached) $ECHO_C" >&6
16618else
16619  cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h.  */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h.  */
16625$ac_includes_default
16626typedef pid_t ac__type_new_;
16627int
16628main ()
16629{
16630if ((ac__type_new_ *) 0)
16631  return 0;
16632if (sizeof (ac__type_new_))
16633  return 0;
16634  ;
16635  return 0;
16636}
16637_ACEOF
16638rm -f conftest.$ac_objext
16639if { (ac_try="$ac_compile"
16640case "(($ac_try" in
16641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642  *) ac_try_echo=$ac_try;;
16643esac
16644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645  (eval "$ac_compile") 2>conftest.er1
16646  ac_status=$?
16647  grep -v '^ *+' conftest.er1 >conftest.err
16648  rm -f conftest.er1
16649  cat conftest.err >&5
16650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651  (exit $ac_status); } &&
16652	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653  { (case "(($ac_try" in
16654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655  *) ac_try_echo=$ac_try;;
16656esac
16657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658  (eval "$ac_try") 2>&5
16659  ac_status=$?
16660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661  (exit $ac_status); }; } &&
16662	 { ac_try='test -s conftest.$ac_objext'
16663  { (case "(($ac_try" in
16664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665  *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668  (eval "$ac_try") 2>&5
16669  ac_status=$?
16670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671  (exit $ac_status); }; }; then
16672  ac_cv_type_pid_t=yes
16673else
16674  echo "$as_me: failed program was:" >&5
16675sed 's/^/| /' conftest.$ac_ext >&5
16676
16677	ac_cv_type_pid_t=no
16678fi
16679
16680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681fi
16682{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16683echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16684if test $ac_cv_type_pid_t = yes; then
16685  :
16686else
16687
16688cat >>confdefs.h <<_ACEOF
16689#define pid_t int
16690_ACEOF
16691
16692fi
16693
16694{ echo "$as_me:$LINENO: checking for size_t" >&5
16695echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16696if test "${ac_cv_type_size_t+set}" = set; then
16697  echo $ECHO_N "(cached) $ECHO_C" >&6
16698else
16699  cat >conftest.$ac_ext <<_ACEOF
16700/* confdefs.h.  */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h.  */
16705$ac_includes_default
16706typedef size_t ac__type_new_;
16707int
16708main ()
16709{
16710if ((ac__type_new_ *) 0)
16711  return 0;
16712if (sizeof (ac__type_new_))
16713  return 0;
16714  ;
16715  return 0;
16716}
16717_ACEOF
16718rm -f conftest.$ac_objext
16719if { (ac_try="$ac_compile"
16720case "(($ac_try" in
16721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722  *) ac_try_echo=$ac_try;;
16723esac
16724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725  (eval "$ac_compile") 2>conftest.er1
16726  ac_status=$?
16727  grep -v '^ *+' conftest.er1 >conftest.err
16728  rm -f conftest.er1
16729  cat conftest.err >&5
16730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731  (exit $ac_status); } &&
16732	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16733  { (case "(($ac_try" in
16734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735  *) ac_try_echo=$ac_try;;
16736esac
16737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738  (eval "$ac_try") 2>&5
16739  ac_status=$?
16740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741  (exit $ac_status); }; } &&
16742	 { ac_try='test -s conftest.$ac_objext'
16743  { (case "(($ac_try" in
16744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745  *) ac_try_echo=$ac_try;;
16746esac
16747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748  (eval "$ac_try") 2>&5
16749  ac_status=$?
16750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751  (exit $ac_status); }; }; then
16752  ac_cv_type_size_t=yes
16753else
16754  echo "$as_me: failed program was:" >&5
16755sed 's/^/| /' conftest.$ac_ext >&5
16756
16757	ac_cv_type_size_t=no
16758fi
16759
16760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761fi
16762{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16763echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16764if test $ac_cv_type_size_t = yes; then
16765  :
16766else
16767
16768cat >>confdefs.h <<_ACEOF
16769#define size_t unsigned int
16770_ACEOF
16771
16772fi
16773
16774
16775cat >>confdefs.h <<_ACEOF
16776#define RETSIGTYPE void
16777_ACEOF
16778
16779{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16780echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16781if test "${ac_cv_struct_tm+set}" = set; then
16782  echo $ECHO_N "(cached) $ECHO_C" >&6
16783else
16784  cat >conftest.$ac_ext <<_ACEOF
16785/* confdefs.h.  */
16786_ACEOF
16787cat confdefs.h >>conftest.$ac_ext
16788cat >>conftest.$ac_ext <<_ACEOF
16789/* end confdefs.h.  */
16790#include <sys/types.h>
16791#include <time.h>
16792
16793int
16794main ()
16795{
16796struct tm *tp; tp->tm_sec;
16797  ;
16798  return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (ac_try="$ac_compile"
16803case "(($ac_try" in
16804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805  *) ac_try_echo=$ac_try;;
16806esac
16807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808  (eval "$ac_compile") 2>conftest.er1
16809  ac_status=$?
16810  grep -v '^ *+' conftest.er1 >conftest.err
16811  rm -f conftest.er1
16812  cat conftest.err >&5
16813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814  (exit $ac_status); } &&
16815	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816  { (case "(($ac_try" in
16817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818  *) ac_try_echo=$ac_try;;
16819esac
16820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821  (eval "$ac_try") 2>&5
16822  ac_status=$?
16823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824  (exit $ac_status); }; } &&
16825	 { ac_try='test -s conftest.$ac_objext'
16826  { (case "(($ac_try" in
16827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828  *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831  (eval "$ac_try") 2>&5
16832  ac_status=$?
16833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834  (exit $ac_status); }; }; then
16835  ac_cv_struct_tm=time.h
16836else
16837  echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840	ac_cv_struct_tm=sys/time.h
16841fi
16842
16843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844fi
16845{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16846echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16847if test $ac_cv_struct_tm = sys/time.h; then
16848
16849cat >>confdefs.h <<\_ACEOF
16850#define TM_IN_SYS_TIME 1
16851_ACEOF
16852
16853fi
16854
16855{ echo "$as_me:$LINENO: checking for int64_t" >&5
16856echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16857if test "${ac_cv_type_int64_t+set}" = set; then
16858  echo $ECHO_N "(cached) $ECHO_C" >&6
16859else
16860  cat >conftest.$ac_ext <<_ACEOF
16861/* confdefs.h.  */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h.  */
16866$ac_includes_default
16867typedef int64_t ac__type_new_;
16868int
16869main ()
16870{
16871if ((ac__type_new_ *) 0)
16872  return 0;
16873if (sizeof (ac__type_new_))
16874  return 0;
16875  ;
16876  return 0;
16877}
16878_ACEOF
16879rm -f conftest.$ac_objext
16880if { (ac_try="$ac_compile"
16881case "(($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_compile") 2>conftest.er1
16887  ac_status=$?
16888  grep -v '^ *+' conftest.er1 >conftest.err
16889  rm -f conftest.er1
16890  cat conftest.err >&5
16891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892  (exit $ac_status); } &&
16893	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894  { (case "(($ac_try" in
16895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896  *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899  (eval "$ac_try") 2>&5
16900  ac_status=$?
16901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902  (exit $ac_status); }; } &&
16903	 { ac_try='test -s conftest.$ac_objext'
16904  { (case "(($ac_try" in
16905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906  *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909  (eval "$ac_try") 2>&5
16910  ac_status=$?
16911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912  (exit $ac_status); }; }; then
16913  ac_cv_type_int64_t=yes
16914else
16915  echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918	ac_cv_type_int64_t=no
16919fi
16920
16921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922fi
16923{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16924echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16925if test $ac_cv_type_int64_t = yes; then
16926
16927cat >>confdefs.h <<_ACEOF
16928#define HAVE_INT64_T 1
16929_ACEOF
16930
16931
16932else
16933  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16934echo "$as_me: error: Type int64_t required but not found" >&2;}
16935   { (exit 1); exit 1; }; }
16936fi
16937
16938{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16939echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16940if test "${ac_cv_type_uint64_t+set}" = set; then
16941  echo $ECHO_N "(cached) $ECHO_C" >&6
16942else
16943  cat >conftest.$ac_ext <<_ACEOF
16944/* confdefs.h.  */
16945_ACEOF
16946cat confdefs.h >>conftest.$ac_ext
16947cat >>conftest.$ac_ext <<_ACEOF
16948/* end confdefs.h.  */
16949$ac_includes_default
16950typedef uint64_t ac__type_new_;
16951int
16952main ()
16953{
16954if ((ac__type_new_ *) 0)
16955  return 0;
16956if (sizeof (ac__type_new_))
16957  return 0;
16958  ;
16959  return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext
16963if { (ac_try="$ac_compile"
16964case "(($ac_try" in
16965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966  *) ac_try_echo=$ac_try;;
16967esac
16968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969  (eval "$ac_compile") 2>conftest.er1
16970  ac_status=$?
16971  grep -v '^ *+' conftest.er1 >conftest.err
16972  rm -f conftest.er1
16973  cat conftest.err >&5
16974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975  (exit $ac_status); } &&
16976	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16977  { (case "(($ac_try" in
16978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979  *) ac_try_echo=$ac_try;;
16980esac
16981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982  (eval "$ac_try") 2>&5
16983  ac_status=$?
16984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985  (exit $ac_status); }; } &&
16986	 { ac_try='test -s conftest.$ac_objext'
16987  { (case "(($ac_try" in
16988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989  *) ac_try_echo=$ac_try;;
16990esac
16991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992  (eval "$ac_try") 2>&5
16993  ac_status=$?
16994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995  (exit $ac_status); }; }; then
16996  ac_cv_type_uint64_t=yes
16997else
16998  echo "$as_me: failed program was:" >&5
16999sed 's/^/| /' conftest.$ac_ext >&5
17000
17001	ac_cv_type_uint64_t=no
17002fi
17003
17004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005fi
17006{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17007echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17008if test $ac_cv_type_uint64_t = yes; then
17009
17010cat >>confdefs.h <<_ACEOF
17011#define HAVE_UINT64_T 1
17012_ACEOF
17013
17014
17015else
17016  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17017echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17018if test "${ac_cv_type_u_int64_t+set}" = set; then
17019  echo $ECHO_N "(cached) $ECHO_C" >&6
17020else
17021  cat >conftest.$ac_ext <<_ACEOF
17022/* confdefs.h.  */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h.  */
17027$ac_includes_default
17028typedef u_int64_t ac__type_new_;
17029int
17030main ()
17031{
17032if ((ac__type_new_ *) 0)
17033  return 0;
17034if (sizeof (ac__type_new_))
17035  return 0;
17036  ;
17037  return 0;
17038}
17039_ACEOF
17040rm -f conftest.$ac_objext
17041if { (ac_try="$ac_compile"
17042case "(($ac_try" in
17043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044  *) ac_try_echo=$ac_try;;
17045esac
17046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047  (eval "$ac_compile") 2>conftest.er1
17048  ac_status=$?
17049  grep -v '^ *+' conftest.er1 >conftest.err
17050  rm -f conftest.er1
17051  cat conftest.err >&5
17052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053  (exit $ac_status); } &&
17054	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055  { (case "(($ac_try" in
17056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057  *) ac_try_echo=$ac_try;;
17058esac
17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060  (eval "$ac_try") 2>&5
17061  ac_status=$?
17062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063  (exit $ac_status); }; } &&
17064	 { ac_try='test -s conftest.$ac_objext'
17065  { (case "(($ac_try" in
17066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067  *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070  (eval "$ac_try") 2>&5
17071  ac_status=$?
17072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073  (exit $ac_status); }; }; then
17074  ac_cv_type_u_int64_t=yes
17075else
17076  echo "$as_me: failed program was:" >&5
17077sed 's/^/| /' conftest.$ac_ext >&5
17078
17079	ac_cv_type_u_int64_t=no
17080fi
17081
17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083fi
17084{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17085echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17086if test $ac_cv_type_u_int64_t = yes; then
17087
17088cat >>confdefs.h <<_ACEOF
17089#define HAVE_U_INT64_T 1
17090_ACEOF
17091
17092
17093else
17094  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17095echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17096   { (exit 1); exit 1; }; }
17097fi
17098
17099fi
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17111do
17112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17115if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17116  echo $ECHO_N "(cached) $ECHO_C" >&6
17117else
17118  cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h.  */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h.  */
17124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17125   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17126#define $ac_func innocuous_$ac_func
17127
17128/* System header to define __stub macros and hopefully few prototypes,
17129    which can conflict with char $ac_func (); below.
17130    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17131    <limits.h> exists even on freestanding compilers.  */
17132
17133#ifdef __STDC__
17134# include <limits.h>
17135#else
17136# include <assert.h>
17137#endif
17138
17139#undef $ac_func
17140
17141/* Override any GCC internal prototype to avoid an error.
17142   Use char because int might match the return type of a GCC
17143   builtin and then its argument prototype would still apply.  */
17144#ifdef __cplusplus
17145extern "C"
17146#endif
17147char $ac_func ();
17148/* The GNU C library defines this for functions which it implements
17149    to always fail with ENOSYS.  Some functions are actually named
17150    something starting with __ and the normal name is an alias.  */
17151#if defined __stub_$ac_func || defined __stub___$ac_func
17152choke me
17153#endif
17154
17155int
17156main ()
17157{
17158return $ac_func ();
17159  ;
17160  return 0;
17161}
17162_ACEOF
17163rm -f conftest.$ac_objext conftest$ac_exeext
17164if { (ac_try="$ac_link"
17165case "(($ac_try" in
17166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167  *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170  (eval "$ac_link") 2>conftest.er1
17171  ac_status=$?
17172  grep -v '^ *+' conftest.er1 >conftest.err
17173  rm -f conftest.er1
17174  cat conftest.err >&5
17175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176  (exit $ac_status); } &&
17177	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17178  { (case "(($ac_try" in
17179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180  *) ac_try_echo=$ac_try;;
17181esac
17182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183  (eval "$ac_try") 2>&5
17184  ac_status=$?
17185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186  (exit $ac_status); }; } &&
17187	 { ac_try='test -s conftest$ac_exeext'
17188  { (case "(($ac_try" in
17189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190  *) ac_try_echo=$ac_try;;
17191esac
17192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193  (eval "$ac_try") 2>&5
17194  ac_status=$?
17195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196  (exit $ac_status); }; }; then
17197  eval "$as_ac_var=yes"
17198else
17199  echo "$as_me: failed program was:" >&5
17200sed 's/^/| /' conftest.$ac_ext >&5
17201
17202	eval "$as_ac_var=no"
17203fi
17204
17205rm -f core conftest.err conftest.$ac_objext \
17206      conftest$ac_exeext conftest.$ac_ext
17207fi
17208ac_res=`eval echo '${'$as_ac_var'}'`
17209	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17210echo "${ECHO_T}$ac_res" >&6; }
17211if test `eval echo '${'$as_ac_var'}'` = yes; then
17212  cat >>confdefs.h <<_ACEOF
17213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17214_ACEOF
17215
17216fi
17217done
17218
17219
17220
17221
17222
17223for ac_func in powf fmodf strtof round
17224do
17225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17226{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17228if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17229  echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231  cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h.  */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h.  */
17237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17238   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17239#define $ac_func innocuous_$ac_func
17240
17241/* System header to define __stub macros and hopefully few prototypes,
17242    which can conflict with char $ac_func (); below.
17243    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17244    <limits.h> exists even on freestanding compilers.  */
17245
17246#ifdef __STDC__
17247# include <limits.h>
17248#else
17249# include <assert.h>
17250#endif
17251
17252#undef $ac_func
17253
17254/* Override any GCC internal prototype to avoid an error.
17255   Use char because int might match the return type of a GCC
17256   builtin and then its argument prototype would still apply.  */
17257#ifdef __cplusplus
17258extern "C"
17259#endif
17260char $ac_func ();
17261/* The GNU C library defines this for functions which it implements
17262    to always fail with ENOSYS.  Some functions are actually named
17263    something starting with __ and the normal name is an alias.  */
17264#if defined __stub_$ac_func || defined __stub___$ac_func
17265choke me
17266#endif
17267
17268int
17269main ()
17270{
17271return $ac_func ();
17272  ;
17273  return 0;
17274}
17275_ACEOF
17276rm -f conftest.$ac_objext conftest$ac_exeext
17277if { (ac_try="$ac_link"
17278case "(($ac_try" in
17279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280  *) ac_try_echo=$ac_try;;
17281esac
17282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283  (eval "$ac_link") 2>conftest.er1
17284  ac_status=$?
17285  grep -v '^ *+' conftest.er1 >conftest.err
17286  rm -f conftest.er1
17287  cat conftest.err >&5
17288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289  (exit $ac_status); } &&
17290	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17291  { (case "(($ac_try" in
17292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293  *) ac_try_echo=$ac_try;;
17294esac
17295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296  (eval "$ac_try") 2>&5
17297  ac_status=$?
17298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299  (exit $ac_status); }; } &&
17300	 { ac_try='test -s conftest$ac_exeext'
17301  { (case "(($ac_try" in
17302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303  *) ac_try_echo=$ac_try;;
17304esac
17305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306  (eval "$ac_try") 2>&5
17307  ac_status=$?
17308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309  (exit $ac_status); }; }; then
17310  eval "$as_ac_var=yes"
17311else
17312  echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315	eval "$as_ac_var=no"
17316fi
17317
17318rm -f core conftest.err conftest.$ac_objext \
17319      conftest$ac_exeext conftest.$ac_ext
17320fi
17321ac_res=`eval echo '${'$as_ac_var'}'`
17322	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17323echo "${ECHO_T}$ac_res" >&6; }
17324if test `eval echo '${'$as_ac_var'}'` = yes; then
17325  cat >>confdefs.h <<_ACEOF
17326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17327_ACEOF
17328
17329fi
17330done
17331
17332
17333
17334
17335
17336
17337for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17338do
17339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17340{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17342if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17343  echo $ECHO_N "(cached) $ECHO_C" >&6
17344else
17345  cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h.  */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h.  */
17351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17352   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17353#define $ac_func innocuous_$ac_func
17354
17355/* System header to define __stub macros and hopefully few prototypes,
17356    which can conflict with char $ac_func (); below.
17357    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358    <limits.h> exists even on freestanding compilers.  */
17359
17360#ifdef __STDC__
17361# include <limits.h>
17362#else
17363# include <assert.h>
17364#endif
17365
17366#undef $ac_func
17367
17368/* Override any GCC internal prototype to avoid an error.
17369   Use char because int might match the return type of a GCC
17370   builtin and then its argument prototype would still apply.  */
17371#ifdef __cplusplus
17372extern "C"
17373#endif
17374char $ac_func ();
17375/* The GNU C library defines this for functions which it implements
17376    to always fail with ENOSYS.  Some functions are actually named
17377    something starting with __ and the normal name is an alias.  */
17378#if defined __stub_$ac_func || defined __stub___$ac_func
17379choke me
17380#endif
17381
17382int
17383main ()
17384{
17385return $ac_func ();
17386  ;
17387  return 0;
17388}
17389_ACEOF
17390rm -f conftest.$ac_objext conftest$ac_exeext
17391if { (ac_try="$ac_link"
17392case "(($ac_try" in
17393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394  *) ac_try_echo=$ac_try;;
17395esac
17396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397  (eval "$ac_link") 2>conftest.er1
17398  ac_status=$?
17399  grep -v '^ *+' conftest.er1 >conftest.err
17400  rm -f conftest.er1
17401  cat conftest.err >&5
17402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403  (exit $ac_status); } &&
17404	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17405  { (case "(($ac_try" in
17406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407  *) ac_try_echo=$ac_try;;
17408esac
17409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410  (eval "$ac_try") 2>&5
17411  ac_status=$?
17412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413  (exit $ac_status); }; } &&
17414	 { ac_try='test -s conftest$ac_exeext'
17415  { (case "(($ac_try" in
17416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417  *) ac_try_echo=$ac_try;;
17418esac
17419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420  (eval "$ac_try") 2>&5
17421  ac_status=$?
17422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423  (exit $ac_status); }; }; then
17424  eval "$as_ac_var=yes"
17425else
17426  echo "$as_me: failed program was:" >&5
17427sed 's/^/| /' conftest.$ac_ext >&5
17428
17429	eval "$as_ac_var=no"
17430fi
17431
17432rm -f core conftest.err conftest.$ac_objext \
17433      conftest$ac_exeext conftest.$ac_ext
17434fi
17435ac_res=`eval echo '${'$as_ac_var'}'`
17436	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17437echo "${ECHO_T}$ac_res" >&6; }
17438if test `eval echo '${'$as_ac_var'}'` = yes; then
17439  cat >>confdefs.h <<_ACEOF
17440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17441_ACEOF
17442
17443fi
17444done
17445
17446
17447
17448
17449for ac_func in isatty mkdtemp mkstemp
17450do
17451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17455  echo $ECHO_N "(cached) $ECHO_C" >&6
17456else
17457  cat >conftest.$ac_ext <<_ACEOF
17458/* confdefs.h.  */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h.  */
17463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17464   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17465#define $ac_func innocuous_$ac_func
17466
17467/* System header to define __stub macros and hopefully few prototypes,
17468    which can conflict with char $ac_func (); below.
17469    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17470    <limits.h> exists even on freestanding compilers.  */
17471
17472#ifdef __STDC__
17473# include <limits.h>
17474#else
17475# include <assert.h>
17476#endif
17477
17478#undef $ac_func
17479
17480/* Override any GCC internal prototype to avoid an error.
17481   Use char because int might match the return type of a GCC
17482   builtin and then its argument prototype would still apply.  */
17483#ifdef __cplusplus
17484extern "C"
17485#endif
17486char $ac_func ();
17487/* The GNU C library defines this for functions which it implements
17488    to always fail with ENOSYS.  Some functions are actually named
17489    something starting with __ and the normal name is an alias.  */
17490#if defined __stub_$ac_func || defined __stub___$ac_func
17491choke me
17492#endif
17493
17494int
17495main ()
17496{
17497return $ac_func ();
17498  ;
17499  return 0;
17500}
17501_ACEOF
17502rm -f conftest.$ac_objext conftest$ac_exeext
17503if { (ac_try="$ac_link"
17504case "(($ac_try" in
17505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506  *) ac_try_echo=$ac_try;;
17507esac
17508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509  (eval "$ac_link") 2>conftest.er1
17510  ac_status=$?
17511  grep -v '^ *+' conftest.er1 >conftest.err
17512  rm -f conftest.er1
17513  cat conftest.err >&5
17514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515  (exit $ac_status); } &&
17516	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17517  { (case "(($ac_try" in
17518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519  *) ac_try_echo=$ac_try;;
17520esac
17521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17522  (eval "$ac_try") 2>&5
17523  ac_status=$?
17524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525  (exit $ac_status); }; } &&
17526	 { ac_try='test -s conftest$ac_exeext'
17527  { (case "(($ac_try" in
17528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529  *) ac_try_echo=$ac_try;;
17530esac
17531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532  (eval "$ac_try") 2>&5
17533  ac_status=$?
17534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535  (exit $ac_status); }; }; then
17536  eval "$as_ac_var=yes"
17537else
17538  echo "$as_me: failed program was:" >&5
17539sed 's/^/| /' conftest.$ac_ext >&5
17540
17541	eval "$as_ac_var=no"
17542fi
17543
17544rm -f core conftest.err conftest.$ac_objext \
17545      conftest$ac_exeext conftest.$ac_ext
17546fi
17547ac_res=`eval echo '${'$as_ac_var'}'`
17548	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17549echo "${ECHO_T}$ac_res" >&6; }
17550if test `eval echo '${'$as_ac_var'}'` = yes; then
17551  cat >>confdefs.h <<_ACEOF
17552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17553_ACEOF
17554
17555fi
17556done
17557
17558
17559
17560
17561
17562
17563for ac_func in mktemp realpath sbrk setrlimit strdup
17564do
17565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17569  echo $ECHO_N "(cached) $ECHO_C" >&6
17570else
17571  cat >conftest.$ac_ext <<_ACEOF
17572/* confdefs.h.  */
17573_ACEOF
17574cat confdefs.h >>conftest.$ac_ext
17575cat >>conftest.$ac_ext <<_ACEOF
17576/* end confdefs.h.  */
17577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17578   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17579#define $ac_func innocuous_$ac_func
17580
17581/* System header to define __stub macros and hopefully few prototypes,
17582    which can conflict with char $ac_func (); below.
17583    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17584    <limits.h> exists even on freestanding compilers.  */
17585
17586#ifdef __STDC__
17587# include <limits.h>
17588#else
17589# include <assert.h>
17590#endif
17591
17592#undef $ac_func
17593
17594/* Override any GCC internal prototype to avoid an error.
17595   Use char because int might match the return type of a GCC
17596   builtin and then its argument prototype would still apply.  */
17597#ifdef __cplusplus
17598extern "C"
17599#endif
17600char $ac_func ();
17601/* The GNU C library defines this for functions which it implements
17602    to always fail with ENOSYS.  Some functions are actually named
17603    something starting with __ and the normal name is an alias.  */
17604#if defined __stub_$ac_func || defined __stub___$ac_func
17605choke me
17606#endif
17607
17608int
17609main ()
17610{
17611return $ac_func ();
17612  ;
17613  return 0;
17614}
17615_ACEOF
17616rm -f conftest.$ac_objext conftest$ac_exeext
17617if { (ac_try="$ac_link"
17618case "(($ac_try" in
17619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620  *) ac_try_echo=$ac_try;;
17621esac
17622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623  (eval "$ac_link") 2>conftest.er1
17624  ac_status=$?
17625  grep -v '^ *+' conftest.er1 >conftest.err
17626  rm -f conftest.er1
17627  cat conftest.err >&5
17628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629  (exit $ac_status); } &&
17630	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17631  { (case "(($ac_try" in
17632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633  *) ac_try_echo=$ac_try;;
17634esac
17635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636  (eval "$ac_try") 2>&5
17637  ac_status=$?
17638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639  (exit $ac_status); }; } &&
17640	 { ac_try='test -s conftest$ac_exeext'
17641  { (case "(($ac_try" in
17642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643  *) ac_try_echo=$ac_try;;
17644esac
17645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646  (eval "$ac_try") 2>&5
17647  ac_status=$?
17648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649  (exit $ac_status); }; }; then
17650  eval "$as_ac_var=yes"
17651else
17652  echo "$as_me: failed program was:" >&5
17653sed 's/^/| /' conftest.$ac_ext >&5
17654
17655	eval "$as_ac_var=no"
17656fi
17657
17658rm -f core conftest.err conftest.$ac_objext \
17659      conftest$ac_exeext conftest.$ac_ext
17660fi
17661ac_res=`eval echo '${'$as_ac_var'}'`
17662	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17663echo "${ECHO_T}$ac_res" >&6; }
17664if test `eval echo '${'$as_ac_var'}'` = yes; then
17665  cat >>confdefs.h <<_ACEOF
17666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17667_ACEOF
17668
17669fi
17670done
17671
17672
17673
17674
17675
17676for ac_func in strerror strerror_r strerror_s setenv
17677do
17678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17679{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17681if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17682  echo $ECHO_N "(cached) $ECHO_C" >&6
17683else
17684  cat >conftest.$ac_ext <<_ACEOF
17685/* confdefs.h.  */
17686_ACEOF
17687cat confdefs.h >>conftest.$ac_ext
17688cat >>conftest.$ac_ext <<_ACEOF
17689/* end confdefs.h.  */
17690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17691   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17692#define $ac_func innocuous_$ac_func
17693
17694/* System header to define __stub macros and hopefully few prototypes,
17695    which can conflict with char $ac_func (); below.
17696    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17697    <limits.h> exists even on freestanding compilers.  */
17698
17699#ifdef __STDC__
17700# include <limits.h>
17701#else
17702# include <assert.h>
17703#endif
17704
17705#undef $ac_func
17706
17707/* Override any GCC internal prototype to avoid an error.
17708   Use char because int might match the return type of a GCC
17709   builtin and then its argument prototype would still apply.  */
17710#ifdef __cplusplus
17711extern "C"
17712#endif
17713char $ac_func ();
17714/* The GNU C library defines this for functions which it implements
17715    to always fail with ENOSYS.  Some functions are actually named
17716    something starting with __ and the normal name is an alias.  */
17717#if defined __stub_$ac_func || defined __stub___$ac_func
17718choke me
17719#endif
17720
17721int
17722main ()
17723{
17724return $ac_func ();
17725  ;
17726  return 0;
17727}
17728_ACEOF
17729rm -f conftest.$ac_objext conftest$ac_exeext
17730if { (ac_try="$ac_link"
17731case "(($ac_try" in
17732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733  *) ac_try_echo=$ac_try;;
17734esac
17735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736  (eval "$ac_link") 2>conftest.er1
17737  ac_status=$?
17738  grep -v '^ *+' conftest.er1 >conftest.err
17739  rm -f conftest.er1
17740  cat conftest.err >&5
17741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742  (exit $ac_status); } &&
17743	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17744  { (case "(($ac_try" in
17745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746  *) ac_try_echo=$ac_try;;
17747esac
17748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749  (eval "$ac_try") 2>&5
17750  ac_status=$?
17751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752  (exit $ac_status); }; } &&
17753	 { ac_try='test -s conftest$ac_exeext'
17754  { (case "(($ac_try" in
17755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756  *) ac_try_echo=$ac_try;;
17757esac
17758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759  (eval "$ac_try") 2>&5
17760  ac_status=$?
17761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762  (exit $ac_status); }; }; then
17763  eval "$as_ac_var=yes"
17764else
17765  echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768	eval "$as_ac_var=no"
17769fi
17770
17771rm -f core conftest.err conftest.$ac_objext \
17772      conftest$ac_exeext conftest.$ac_ext
17773fi
17774ac_res=`eval echo '${'$as_ac_var'}'`
17775	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17776echo "${ECHO_T}$ac_res" >&6; }
17777if test `eval echo '${'$as_ac_var'}'` = yes; then
17778  cat >>confdefs.h <<_ACEOF
17779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17780_ACEOF
17781
17782fi
17783done
17784
17785
17786
17787
17788
17789for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17790do
17791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17792{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17794if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17795  echo $ECHO_N "(cached) $ECHO_C" >&6
17796else
17797  cat >conftest.$ac_ext <<_ACEOF
17798/* confdefs.h.  */
17799_ACEOF
17800cat confdefs.h >>conftest.$ac_ext
17801cat >>conftest.$ac_ext <<_ACEOF
17802/* end confdefs.h.  */
17803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17805#define $ac_func innocuous_$ac_func
17806
17807/* System header to define __stub macros and hopefully few prototypes,
17808    which can conflict with char $ac_func (); below.
17809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17810    <limits.h> exists even on freestanding compilers.  */
17811
17812#ifdef __STDC__
17813# include <limits.h>
17814#else
17815# include <assert.h>
17816#endif
17817
17818#undef $ac_func
17819
17820/* Override any GCC internal prototype to avoid an error.
17821   Use char because int might match the return type of a GCC
17822   builtin and then its argument prototype would still apply.  */
17823#ifdef __cplusplus
17824extern "C"
17825#endif
17826char $ac_func ();
17827/* The GNU C library defines this for functions which it implements
17828    to always fail with ENOSYS.  Some functions are actually named
17829    something starting with __ and the normal name is an alias.  */
17830#if defined __stub_$ac_func || defined __stub___$ac_func
17831choke me
17832#endif
17833
17834int
17835main ()
17836{
17837return $ac_func ();
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842rm -f conftest.$ac_objext conftest$ac_exeext
17843if { (ac_try="$ac_link"
17844case "(($ac_try" in
17845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846  *) ac_try_echo=$ac_try;;
17847esac
17848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849  (eval "$ac_link") 2>conftest.er1
17850  ac_status=$?
17851  grep -v '^ *+' conftest.er1 >conftest.err
17852  rm -f conftest.er1
17853  cat conftest.err >&5
17854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855  (exit $ac_status); } &&
17856	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857  { (case "(($ac_try" in
17858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859  *) ac_try_echo=$ac_try;;
17860esac
17861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862  (eval "$ac_try") 2>&5
17863  ac_status=$?
17864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865  (exit $ac_status); }; } &&
17866	 { ac_try='test -s conftest$ac_exeext'
17867  { (case "(($ac_try" in
17868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869  *) ac_try_echo=$ac_try;;
17870esac
17871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872  (eval "$ac_try") 2>&5
17873  ac_status=$?
17874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875  (exit $ac_status); }; }; then
17876  eval "$as_ac_var=yes"
17877else
17878  echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881	eval "$as_ac_var=no"
17882fi
17883
17884rm -f core conftest.err conftest.$ac_objext \
17885      conftest$ac_exeext conftest.$ac_ext
17886fi
17887ac_res=`eval echo '${'$as_ac_var'}'`
17888	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17889echo "${ECHO_T}$ac_res" >&6; }
17890if test `eval echo '${'$as_ac_var'}'` = yes; then
17891  cat >>confdefs.h <<_ACEOF
17892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17893_ACEOF
17894
17895fi
17896done
17897
17898
17899
17900
17901
17902for ac_func in setjmp longjmp sigsetjmp siglongjmp
17903do
17904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17905{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17908  echo $ECHO_N "(cached) $ECHO_C" >&6
17909else
17910  cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h.  */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h.  */
17916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17917   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17918#define $ac_func innocuous_$ac_func
17919
17920/* System header to define __stub macros and hopefully few prototypes,
17921    which can conflict with char $ac_func (); below.
17922    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923    <limits.h> exists even on freestanding compilers.  */
17924
17925#ifdef __STDC__
17926# include <limits.h>
17927#else
17928# include <assert.h>
17929#endif
17930
17931#undef $ac_func
17932
17933/* Override any GCC internal prototype to avoid an error.
17934   Use char because int might match the return type of a GCC
17935   builtin and then its argument prototype would still apply.  */
17936#ifdef __cplusplus
17937extern "C"
17938#endif
17939char $ac_func ();
17940/* The GNU C library defines this for functions which it implements
17941    to always fail with ENOSYS.  Some functions are actually named
17942    something starting with __ and the normal name is an alias.  */
17943#if defined __stub_$ac_func || defined __stub___$ac_func
17944choke me
17945#endif
17946
17947int
17948main ()
17949{
17950return $ac_func ();
17951  ;
17952  return 0;
17953}
17954_ACEOF
17955rm -f conftest.$ac_objext conftest$ac_exeext
17956if { (ac_try="$ac_link"
17957case "(($ac_try" in
17958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959  *) ac_try_echo=$ac_try;;
17960esac
17961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962  (eval "$ac_link") 2>conftest.er1
17963  ac_status=$?
17964  grep -v '^ *+' conftest.er1 >conftest.err
17965  rm -f conftest.er1
17966  cat conftest.err >&5
17967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968  (exit $ac_status); } &&
17969	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970  { (case "(($ac_try" in
17971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972  *) ac_try_echo=$ac_try;;
17973esac
17974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975  (eval "$ac_try") 2>&5
17976  ac_status=$?
17977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978  (exit $ac_status); }; } &&
17979	 { ac_try='test -s conftest$ac_exeext'
17980  { (case "(($ac_try" in
17981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982  *) ac_try_echo=$ac_try;;
17983esac
17984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985  (eval "$ac_try") 2>&5
17986  ac_status=$?
17987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988  (exit $ac_status); }; }; then
17989  eval "$as_ac_var=yes"
17990else
17991  echo "$as_me: failed program was:" >&5
17992sed 's/^/| /' conftest.$ac_ext >&5
17993
17994	eval "$as_ac_var=no"
17995fi
17996
17997rm -f core conftest.err conftest.$ac_objext \
17998      conftest$ac_exeext conftest.$ac_ext
17999fi
18000ac_res=`eval echo '${'$as_ac_var'}'`
18001	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18002echo "${ECHO_T}$ac_res" >&6; }
18003if test `eval echo '${'$as_ac_var'}'` = yes; then
18004  cat >>confdefs.h <<_ACEOF
18005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18006_ACEOF
18007
18008fi
18009done
18010
18011{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18012echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18013if test "${llvm_cv_c_printf_a+set}" = set; then
18014  echo $ECHO_N "(cached) $ECHO_C" >&6
18015else
18016  ac_ext=c
18017ac_cpp='$CPP $CPPFLAGS'
18018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020ac_compiler_gnu=$ac_cv_c_compiler_gnu
18021
18022 if test "$cross_compiling" = yes; then
18023  llvmac_cv_c_printf_a=no
18024else
18025  cat >conftest.$ac_ext <<_ACEOF
18026
18027  /* confdefs.h.  */
18028_ACEOF
18029cat confdefs.h >>conftest.$ac_ext
18030cat >>conftest.$ac_ext <<_ACEOF
18031/* end confdefs.h.  */
18032
18033#include <stdio.h>
18034#include <stdlib.h>
18035
18036int
18037main ()
18038{
18039
18040volatile double A, B;
18041char Buffer[100];
18042A = 1;
18043A /= 10.0;
18044sprintf(Buffer, "%a", A);
18045B = atof(Buffer);
18046if (A != B)
18047  return (1);
18048if (A != 0x1.999999999999ap-4)
18049  return (1);
18050return (0);
18051  ;
18052  return 0;
18053}
18054_ACEOF
18055rm -f conftest$ac_exeext
18056if { (ac_try="$ac_link"
18057case "(($ac_try" in
18058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059  *) ac_try_echo=$ac_try;;
18060esac
18061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062  (eval "$ac_link") 2>&5
18063  ac_status=$?
18064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18066  { (case "(($ac_try" in
18067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068  *) ac_try_echo=$ac_try;;
18069esac
18070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071  (eval "$ac_try") 2>&5
18072  ac_status=$?
18073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074  (exit $ac_status); }; }; then
18075  llvm_cv_c_printf_a=yes
18076else
18077  echo "$as_me: program exited with status $ac_status" >&5
18078echo "$as_me: failed program was:" >&5
18079sed 's/^/| /' conftest.$ac_ext >&5
18080
18081( exit $ac_status )
18082llvmac_cv_c_printf_a=no
18083fi
18084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18085fi
18086
18087
18088 ac_ext=c
18089ac_cpp='$CPP $CPPFLAGS'
18090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18092ac_compiler_gnu=$ac_cv_c_compiler_gnu
18093
18094fi
18095{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18096echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18097 if test "$llvm_cv_c_printf_a" = "yes"; then
18098
18099cat >>confdefs.h <<\_ACEOF
18100#define HAVE_PRINTF_A 1
18101_ACEOF
18102
18103 fi
18104
18105
18106{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18107echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18108if test "${ac_cv_func_rand48+set}" = set; then
18109  echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111  ac_ext=cpp
18112ac_cpp='$CXXCPP $CPPFLAGS'
18113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18116
18117   cat >conftest.$ac_ext <<_ACEOF
18118/* confdefs.h.  */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h.  */
18123#include <stdlib.h>
18124int
18125main ()
18126{
18127srand48(0);lrand48();drand48();
18128  ;
18129  return 0;
18130}
18131_ACEOF
18132rm -f conftest.$ac_objext
18133if { (ac_try="$ac_compile"
18134case "(($ac_try" in
18135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136  *) ac_try_echo=$ac_try;;
18137esac
18138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139  (eval "$ac_compile") 2>conftest.er1
18140  ac_status=$?
18141  grep -v '^ *+' conftest.er1 >conftest.err
18142  rm -f conftest.er1
18143  cat conftest.err >&5
18144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145  (exit $ac_status); } &&
18146	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18147  { (case "(($ac_try" in
18148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149  *) ac_try_echo=$ac_try;;
18150esac
18151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152  (eval "$ac_try") 2>&5
18153  ac_status=$?
18154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155  (exit $ac_status); }; } &&
18156	 { ac_try='test -s conftest.$ac_objext'
18157  { (case "(($ac_try" in
18158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159  *) ac_try_echo=$ac_try;;
18160esac
18161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162  (eval "$ac_try") 2>&5
18163  ac_status=$?
18164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165  (exit $ac_status); }; }; then
18166  ac_cv_func_rand48=yes
18167else
18168  echo "$as_me: failed program was:" >&5
18169sed 's/^/| /' conftest.$ac_ext >&5
18170
18171	ac_cv_func_rand48=no
18172fi
18173
18174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175  ac_ext=c
18176ac_cpp='$CPP $CPPFLAGS'
18177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179ac_compiler_gnu=$ac_cv_c_compiler_gnu
18180
18181fi
18182{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18183echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18184
18185if test "$ac_cv_func_rand48" = "yes" ; then
18186
18187cat >>confdefs.h <<\_ACEOF
18188#define HAVE_RAND48 1
18189_ACEOF
18190
18191fi
18192
18193
18194
18195{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18196echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18197if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18198  echo $ECHO_N "(cached) $ECHO_C" >&6
18199else
18200  ac_ext=cpp
18201ac_cpp='$CXXCPP $CPPFLAGS'
18202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18205
18206   cat >conftest.$ac_ext <<_ACEOF
18207/* confdefs.h.  */
18208_ACEOF
18209cat confdefs.h >>conftest.$ac_ext
18210cat >>conftest.$ac_ext <<_ACEOF
18211/* end confdefs.h.  */
18212#include <math.h>
18213int
18214main ()
18215{
18216float f; isnan(f);
18217  ;
18218  return 0;
18219}
18220_ACEOF
18221rm -f conftest.$ac_objext
18222if { (ac_try="$ac_compile"
18223case "(($ac_try" in
18224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225  *) ac_try_echo=$ac_try;;
18226esac
18227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228  (eval "$ac_compile") 2>conftest.er1
18229  ac_status=$?
18230  grep -v '^ *+' conftest.er1 >conftest.err
18231  rm -f conftest.er1
18232  cat conftest.err >&5
18233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234  (exit $ac_status); } &&
18235	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18236  { (case "(($ac_try" in
18237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238  *) ac_try_echo=$ac_try;;
18239esac
18240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241  (eval "$ac_try") 2>&5
18242  ac_status=$?
18243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244  (exit $ac_status); }; } &&
18245	 { ac_try='test -s conftest.$ac_objext'
18246  { (case "(($ac_try" in
18247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248  *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251  (eval "$ac_try") 2>&5
18252  ac_status=$?
18253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254  (exit $ac_status); }; }; then
18255  ac_cv_func_isnan_in_math_h=yes
18256else
18257  echo "$as_me: failed program was:" >&5
18258sed 's/^/| /' conftest.$ac_ext >&5
18259
18260	ac_cv_func_isnan_in_math_h=no
18261fi
18262
18263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264  ac_ext=c
18265ac_cpp='$CPP $CPPFLAGS'
18266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18268ac_compiler_gnu=$ac_cv_c_compiler_gnu
18269
18270fi
18271{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18272echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18273
18274
18275if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18276
18277cat >>confdefs.h <<\_ACEOF
18278#define HAVE_ISNAN_IN_MATH_H 1
18279_ACEOF
18280
18281fi
18282
18283{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18284echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18285if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18286  echo $ECHO_N "(cached) $ECHO_C" >&6
18287else
18288  ac_ext=cpp
18289ac_cpp='$CXXCPP $CPPFLAGS'
18290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18293
18294   cat >conftest.$ac_ext <<_ACEOF
18295/* confdefs.h.  */
18296_ACEOF
18297cat confdefs.h >>conftest.$ac_ext
18298cat >>conftest.$ac_ext <<_ACEOF
18299/* end confdefs.h.  */
18300#include <cmath>
18301int
18302main ()
18303{
18304float f; isnan(f);
18305  ;
18306  return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext
18310if { (ac_try="$ac_compile"
18311case "(($ac_try" in
18312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313  *) ac_try_echo=$ac_try;;
18314esac
18315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316  (eval "$ac_compile") 2>conftest.er1
18317  ac_status=$?
18318  grep -v '^ *+' conftest.er1 >conftest.err
18319  rm -f conftest.er1
18320  cat conftest.err >&5
18321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322  (exit $ac_status); } &&
18323	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18324  { (case "(($ac_try" in
18325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326  *) ac_try_echo=$ac_try;;
18327esac
18328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329  (eval "$ac_try") 2>&5
18330  ac_status=$?
18331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332  (exit $ac_status); }; } &&
18333	 { ac_try='test -s conftest.$ac_objext'
18334  { (case "(($ac_try" in
18335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336  *) ac_try_echo=$ac_try;;
18337esac
18338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339  (eval "$ac_try") 2>&5
18340  ac_status=$?
18341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342  (exit $ac_status); }; }; then
18343  ac_cv_func_isnan_in_cmath=yes
18344else
18345  echo "$as_me: failed program was:" >&5
18346sed 's/^/| /' conftest.$ac_ext >&5
18347
18348	ac_cv_func_isnan_in_cmath=no
18349fi
18350
18351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18352  ac_ext=c
18353ac_cpp='$CPP $CPPFLAGS'
18354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356ac_compiler_gnu=$ac_cv_c_compiler_gnu
18357
18358fi
18359{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18360echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18361
18362if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18363
18364cat >>confdefs.h <<\_ACEOF
18365#define HAVE_ISNAN_IN_CMATH 1
18366_ACEOF
18367
18368fi
18369
18370{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18371echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18372if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18373  echo $ECHO_N "(cached) $ECHO_C" >&6
18374else
18375  ac_ext=cpp
18376ac_cpp='$CXXCPP $CPPFLAGS'
18377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18380
18381   cat >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#include <cmath>
18388int
18389main ()
18390{
18391float f; std::isnan(f);
18392  ;
18393  return 0;
18394}
18395_ACEOF
18396rm -f conftest.$ac_objext
18397if { (ac_try="$ac_compile"
18398case "(($ac_try" in
18399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400  *) ac_try_echo=$ac_try;;
18401esac
18402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403  (eval "$ac_compile") 2>conftest.er1
18404  ac_status=$?
18405  grep -v '^ *+' conftest.er1 >conftest.err
18406  rm -f conftest.er1
18407  cat conftest.err >&5
18408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409  (exit $ac_status); } &&
18410	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18411  { (case "(($ac_try" in
18412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413  *) ac_try_echo=$ac_try;;
18414esac
18415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416  (eval "$ac_try") 2>&5
18417  ac_status=$?
18418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419  (exit $ac_status); }; } &&
18420	 { ac_try='test -s conftest.$ac_objext'
18421  { (case "(($ac_try" in
18422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423  *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426  (eval "$ac_try") 2>&5
18427  ac_status=$?
18428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429  (exit $ac_status); }; }; then
18430  ac_cv_func_std_isnan_in_cmath=yes
18431else
18432  echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435	ac_cv_func_std_isnan_in_cmath=no
18436fi
18437
18438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18439  ac_ext=c
18440ac_cpp='$CPP $CPPFLAGS'
18441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443ac_compiler_gnu=$ac_cv_c_compiler_gnu
18444
18445fi
18446{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18447echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18448
18449if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18450
18451cat >>confdefs.h <<\_ACEOF
18452#define HAVE_STD_ISNAN_IN_CMATH 1
18453_ACEOF
18454
18455fi
18456
18457
18458{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18459echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18460if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18461  echo $ECHO_N "(cached) $ECHO_C" >&6
18462else
18463  ac_ext=cpp
18464ac_cpp='$CXXCPP $CPPFLAGS'
18465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18468
18469   cat >conftest.$ac_ext <<_ACEOF
18470/* confdefs.h.  */
18471_ACEOF
18472cat confdefs.h >>conftest.$ac_ext
18473cat >>conftest.$ac_ext <<_ACEOF
18474/* end confdefs.h.  */
18475#include <math.h>
18476int
18477main ()
18478{
18479float f; isinf(f);
18480  ;
18481  return 0;
18482}
18483_ACEOF
18484rm -f conftest.$ac_objext
18485if { (ac_try="$ac_compile"
18486case "(($ac_try" in
18487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488  *) ac_try_echo=$ac_try;;
18489esac
18490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491  (eval "$ac_compile") 2>conftest.er1
18492  ac_status=$?
18493  grep -v '^ *+' conftest.er1 >conftest.err
18494  rm -f conftest.er1
18495  cat conftest.err >&5
18496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497  (exit $ac_status); } &&
18498	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18499  { (case "(($ac_try" in
18500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501  *) ac_try_echo=$ac_try;;
18502esac
18503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504  (eval "$ac_try") 2>&5
18505  ac_status=$?
18506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507  (exit $ac_status); }; } &&
18508	 { ac_try='test -s conftest.$ac_objext'
18509  { (case "(($ac_try" in
18510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511  *) ac_try_echo=$ac_try;;
18512esac
18513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514  (eval "$ac_try") 2>&5
18515  ac_status=$?
18516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517  (exit $ac_status); }; }; then
18518  ac_cv_func_isinf_in_math_h=yes
18519else
18520  echo "$as_me: failed program was:" >&5
18521sed 's/^/| /' conftest.$ac_ext >&5
18522
18523	ac_cv_func_isinf_in_math_h=no
18524fi
18525
18526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18527  ac_ext=c
18528ac_cpp='$CPP $CPPFLAGS'
18529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531ac_compiler_gnu=$ac_cv_c_compiler_gnu
18532
18533fi
18534{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18535echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18536
18537if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18538
18539cat >>confdefs.h <<\_ACEOF
18540#define HAVE_ISINF_IN_MATH_H 1
18541_ACEOF
18542
18543fi
18544
18545{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18546echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18547if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18548  echo $ECHO_N "(cached) $ECHO_C" >&6
18549else
18550  ac_ext=cpp
18551ac_cpp='$CXXCPP $CPPFLAGS'
18552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18555
18556   cat >conftest.$ac_ext <<_ACEOF
18557/* confdefs.h.  */
18558_ACEOF
18559cat confdefs.h >>conftest.$ac_ext
18560cat >>conftest.$ac_ext <<_ACEOF
18561/* end confdefs.h.  */
18562#include <cmath>
18563int
18564main ()
18565{
18566float f; isinf(f);
18567  ;
18568  return 0;
18569}
18570_ACEOF
18571rm -f conftest.$ac_objext
18572if { (ac_try="$ac_compile"
18573case "(($ac_try" in
18574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575  *) ac_try_echo=$ac_try;;
18576esac
18577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578  (eval "$ac_compile") 2>conftest.er1
18579  ac_status=$?
18580  grep -v '^ *+' conftest.er1 >conftest.err
18581  rm -f conftest.er1
18582  cat conftest.err >&5
18583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584  (exit $ac_status); } &&
18585	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18586  { (case "(($ac_try" in
18587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588  *) ac_try_echo=$ac_try;;
18589esac
18590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591  (eval "$ac_try") 2>&5
18592  ac_status=$?
18593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594  (exit $ac_status); }; } &&
18595	 { ac_try='test -s conftest.$ac_objext'
18596  { (case "(($ac_try" in
18597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598  *) ac_try_echo=$ac_try;;
18599esac
18600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601  (eval "$ac_try") 2>&5
18602  ac_status=$?
18603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604  (exit $ac_status); }; }; then
18605  ac_cv_func_isinf_in_cmath=yes
18606else
18607  echo "$as_me: failed program was:" >&5
18608sed 's/^/| /' conftest.$ac_ext >&5
18609
18610	ac_cv_func_isinf_in_cmath=no
18611fi
18612
18613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18614  ac_ext=c
18615ac_cpp='$CPP $CPPFLAGS'
18616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618ac_compiler_gnu=$ac_cv_c_compiler_gnu
18619
18620fi
18621{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18622echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18623
18624if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18625
18626cat >>confdefs.h <<\_ACEOF
18627#define HAVE_ISINF_IN_CMATH 1
18628_ACEOF
18629
18630fi
18631
18632{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18633echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18634if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18635  echo $ECHO_N "(cached) $ECHO_C" >&6
18636else
18637  ac_ext=cpp
18638ac_cpp='$CXXCPP $CPPFLAGS'
18639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18642
18643   cat >conftest.$ac_ext <<_ACEOF
18644/* confdefs.h.  */
18645_ACEOF
18646cat confdefs.h >>conftest.$ac_ext
18647cat >>conftest.$ac_ext <<_ACEOF
18648/* end confdefs.h.  */
18649#include <cmath>
18650int
18651main ()
18652{
18653float f; std::isinf(f)}
18654  ;
18655  return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext
18659if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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_func_std_isinf_in_cmath=yes
18693else
18694  echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697	ac_cv_func_std_isinf_in_cmath=no
18698fi
18699
18700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701  ac_ext=c
18702ac_cpp='$CPP $CPPFLAGS'
18703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705ac_compiler_gnu=$ac_cv_c_compiler_gnu
18706
18707fi
18708{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18709echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18710
18711if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18712
18713cat >>confdefs.h <<\_ACEOF
18714#define HAVE_STD_ISINF_IN_CMATH 1
18715_ACEOF
18716
18717fi
18718
18719{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18720echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18721if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18722  echo $ECHO_N "(cached) $ECHO_C" >&6
18723else
18724  ac_ext=cpp
18725ac_cpp='$CXXCPP $CPPFLAGS'
18726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18729
18730   cat >conftest.$ac_ext <<_ACEOF
18731/* confdefs.h.  */
18732_ACEOF
18733cat confdefs.h >>conftest.$ac_ext
18734cat >>conftest.$ac_ext <<_ACEOF
18735/* end confdefs.h.  */
18736#include <ieeefp.h>
18737int
18738main ()
18739{
18740float f; finite(f);
18741  ;
18742  return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext
18746if { (ac_try="$ac_compile"
18747case "(($ac_try" in
18748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749  *) ac_try_echo=$ac_try;;
18750esac
18751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752  (eval "$ac_compile") 2>conftest.er1
18753  ac_status=$?
18754  grep -v '^ *+' conftest.er1 >conftest.err
18755  rm -f conftest.er1
18756  cat conftest.err >&5
18757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758  (exit $ac_status); } &&
18759	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18760  { (case "(($ac_try" in
18761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762  *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765  (eval "$ac_try") 2>&5
18766  ac_status=$?
18767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768  (exit $ac_status); }; } &&
18769	 { ac_try='test -s conftest.$ac_objext'
18770  { (case "(($ac_try" in
18771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772  *) ac_try_echo=$ac_try;;
18773esac
18774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775  (eval "$ac_try") 2>&5
18776  ac_status=$?
18777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778  (exit $ac_status); }; }; then
18779  ac_cv_func_finite_in_ieeefp_h=yes
18780else
18781  echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784	ac_cv_func_finite_in_ieeefp_h=no
18785fi
18786
18787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788  ac_ext=c
18789ac_cpp='$CPP $CPPFLAGS'
18790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18792ac_compiler_gnu=$ac_cv_c_compiler_gnu
18793
18794fi
18795{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18796echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18797
18798if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18799
18800cat >>confdefs.h <<\_ACEOF
18801#define HAVE_FINITE_IN_IEEEFP_H 1
18802_ACEOF
18803
18804fi
18805
18806
18807
18808if test "$llvm_cv_platform_type" = "Unix" ; then
18809
18810
18811for ac_header in stdlib.h unistd.h
18812do
18813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18815  { echo "$as_me:$LINENO: checking for $ac_header" >&5
18816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18818  echo $ECHO_N "(cached) $ECHO_C" >&6
18819fi
18820ac_res=`eval echo '${'$as_ac_Header'}'`
18821	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18822echo "${ECHO_T}$ac_res" >&6; }
18823else
18824  # Is the header compilable?
18825{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18827cat >conftest.$ac_ext <<_ACEOF
18828/* confdefs.h.  */
18829_ACEOF
18830cat confdefs.h >>conftest.$ac_ext
18831cat >>conftest.$ac_ext <<_ACEOF
18832/* end confdefs.h.  */
18833$ac_includes_default
18834#include <$ac_header>
18835_ACEOF
18836rm -f conftest.$ac_objext
18837if { (ac_try="$ac_compile"
18838case "(($ac_try" in
18839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840  *) ac_try_echo=$ac_try;;
18841esac
18842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843  (eval "$ac_compile") 2>conftest.er1
18844  ac_status=$?
18845  grep -v '^ *+' conftest.er1 >conftest.err
18846  rm -f conftest.er1
18847  cat conftest.err >&5
18848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849  (exit $ac_status); } &&
18850	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851  { (case "(($ac_try" in
18852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853  *) ac_try_echo=$ac_try;;
18854esac
18855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856  (eval "$ac_try") 2>&5
18857  ac_status=$?
18858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859  (exit $ac_status); }; } &&
18860	 { ac_try='test -s conftest.$ac_objext'
18861  { (case "(($ac_try" in
18862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863  *) ac_try_echo=$ac_try;;
18864esac
18865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866  (eval "$ac_try") 2>&5
18867  ac_status=$?
18868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869  (exit $ac_status); }; }; then
18870  ac_header_compiler=yes
18871else
18872  echo "$as_me: failed program was:" >&5
18873sed 's/^/| /' conftest.$ac_ext >&5
18874
18875	ac_header_compiler=no
18876fi
18877
18878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18879{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18880echo "${ECHO_T}$ac_header_compiler" >&6; }
18881
18882# Is the header present?
18883{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18885cat >conftest.$ac_ext <<_ACEOF
18886/* confdefs.h.  */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h.  */
18891#include <$ac_header>
18892_ACEOF
18893if { (ac_try="$ac_cpp conftest.$ac_ext"
18894case "(($ac_try" in
18895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896  *) ac_try_echo=$ac_try;;
18897esac
18898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18900  ac_status=$?
18901  grep -v '^ *+' conftest.er1 >conftest.err
18902  rm -f conftest.er1
18903  cat conftest.err >&5
18904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905  (exit $ac_status); } >/dev/null; then
18906  if test -s conftest.err; then
18907    ac_cpp_err=$ac_c_preproc_warn_flag
18908    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18909  else
18910    ac_cpp_err=
18911  fi
18912else
18913  ac_cpp_err=yes
18914fi
18915if test -z "$ac_cpp_err"; then
18916  ac_header_preproc=yes
18917else
18918  echo "$as_me: failed program was:" >&5
18919sed 's/^/| /' conftest.$ac_ext >&5
18920
18921  ac_header_preproc=no
18922fi
18923
18924rm -f conftest.err conftest.$ac_ext
18925{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18926echo "${ECHO_T}$ac_header_preproc" >&6; }
18927
18928# So?  What about this header?
18929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18930  yes:no: )
18931    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18933    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18935    ac_header_preproc=yes
18936    ;;
18937  no:yes:* )
18938    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18940    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18941echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18942    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18944    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18945echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18946    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18948    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18950    ( cat <<\_ASBOX
18951## ----------------------------------- ##
18952## Report this to llvmbugs@cs.uiuc.edu ##
18953## ----------------------------------- ##
18954_ASBOX
18955     ) | sed "s/^/$as_me: WARNING:     /" >&2
18956    ;;
18957esac
18958{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18961  echo $ECHO_N "(cached) $ECHO_C" >&6
18962else
18963  eval "$as_ac_Header=\$ac_header_preproc"
18964fi
18965ac_res=`eval echo '${'$as_ac_Header'}'`
18966	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18967echo "${ECHO_T}$ac_res" >&6; }
18968
18969fi
18970if test `eval echo '${'$as_ac_Header'}'` = yes; then
18971  cat >>confdefs.h <<_ACEOF
18972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18973_ACEOF
18974
18975fi
18976
18977done
18978
18979
18980for ac_func in getpagesize
18981do
18982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18983{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18985if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18986  echo $ECHO_N "(cached) $ECHO_C" >&6
18987else
18988  cat >conftest.$ac_ext <<_ACEOF
18989/* confdefs.h.  */
18990_ACEOF
18991cat confdefs.h >>conftest.$ac_ext
18992cat >>conftest.$ac_ext <<_ACEOF
18993/* end confdefs.h.  */
18994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18996#define $ac_func innocuous_$ac_func
18997
18998/* System header to define __stub macros and hopefully few prototypes,
18999    which can conflict with char $ac_func (); below.
19000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19001    <limits.h> exists even on freestanding compilers.  */
19002
19003#ifdef __STDC__
19004# include <limits.h>
19005#else
19006# include <assert.h>
19007#endif
19008
19009#undef $ac_func
19010
19011/* Override any GCC internal prototype to avoid an error.
19012   Use char because int might match the return type of a GCC
19013   builtin and then its argument prototype would still apply.  */
19014#ifdef __cplusplus
19015extern "C"
19016#endif
19017char $ac_func ();
19018/* The GNU C library defines this for functions which it implements
19019    to always fail with ENOSYS.  Some functions are actually named
19020    something starting with __ and the normal name is an alias.  */
19021#if defined __stub_$ac_func || defined __stub___$ac_func
19022choke me
19023#endif
19024
19025int
19026main ()
19027{
19028return $ac_func ();
19029  ;
19030  return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext conftest$ac_exeext
19034if { (ac_try="$ac_link"
19035case "(($ac_try" in
19036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037  *) ac_try_echo=$ac_try;;
19038esac
19039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040  (eval "$ac_link") 2>conftest.er1
19041  ac_status=$?
19042  grep -v '^ *+' conftest.er1 >conftest.err
19043  rm -f conftest.er1
19044  cat conftest.err >&5
19045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046  (exit $ac_status); } &&
19047	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048  { (case "(($ac_try" in
19049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050  *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053  (eval "$ac_try") 2>&5
19054  ac_status=$?
19055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056  (exit $ac_status); }; } &&
19057	 { ac_try='test -s conftest$ac_exeext'
19058  { (case "(($ac_try" in
19059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060  *) ac_try_echo=$ac_try;;
19061esac
19062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063  (eval "$ac_try") 2>&5
19064  ac_status=$?
19065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066  (exit $ac_status); }; }; then
19067  eval "$as_ac_var=yes"
19068else
19069  echo "$as_me: failed program was:" >&5
19070sed 's/^/| /' conftest.$ac_ext >&5
19071
19072	eval "$as_ac_var=no"
19073fi
19074
19075rm -f core conftest.err conftest.$ac_objext \
19076      conftest$ac_exeext conftest.$ac_ext
19077fi
19078ac_res=`eval echo '${'$as_ac_var'}'`
19079	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19080echo "${ECHO_T}$ac_res" >&6; }
19081if test `eval echo '${'$as_ac_var'}'` = yes; then
19082  cat >>confdefs.h <<_ACEOF
19083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19084_ACEOF
19085
19086fi
19087done
19088
19089{ echo "$as_me:$LINENO: checking for working mmap" >&5
19090echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19091if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19092  echo $ECHO_N "(cached) $ECHO_C" >&6
19093else
19094  if test "$cross_compiling" = yes; then
19095  ac_cv_func_mmap_fixed_mapped=no
19096else
19097  cat >conftest.$ac_ext <<_ACEOF
19098/* confdefs.h.  */
19099_ACEOF
19100cat confdefs.h >>conftest.$ac_ext
19101cat >>conftest.$ac_ext <<_ACEOF
19102/* end confdefs.h.  */
19103$ac_includes_default
19104/* malloc might have been renamed as rpl_malloc. */
19105#undef malloc
19106
19107/* Thanks to Mike Haertel and Jim Avera for this test.
19108   Here is a matrix of mmap possibilities:
19109	mmap private not fixed
19110	mmap private fixed at somewhere currently unmapped
19111	mmap private fixed at somewhere already mapped
19112	mmap shared not fixed
19113	mmap shared fixed at somewhere currently unmapped
19114	mmap shared fixed at somewhere already mapped
19115   For private mappings, we should verify that changes cannot be read()
19116   back from the file, nor mmap's back from the file at a different
19117   address.  (There have been systems where private was not correctly
19118   implemented like the infamous i386 svr4.0, and systems where the
19119   VM page cache was not coherent with the file system buffer cache
19120   like early versions of FreeBSD and possibly contemporary NetBSD.)
19121   For shared mappings, we should conversely verify that changes get
19122   propagated back to all the places they're supposed to be.
19123
19124   Grep wants private fixed already mapped.
19125   The main things grep needs to know about mmap are:
19126   * does it exist and is it safe to write into the mmap'd area
19127   * how to use it (BSD variants)  */
19128
19129#include <fcntl.h>
19130#include <sys/mman.h>
19131
19132#if !STDC_HEADERS && !HAVE_STDLIB_H
19133char *malloc ();
19134#endif
19135
19136/* This mess was copied from the GNU getpagesize.h.  */
19137#if !HAVE_GETPAGESIZE
19138/* Assume that all systems that can run configure have sys/param.h.  */
19139# if !HAVE_SYS_PARAM_H
19140#  define HAVE_SYS_PARAM_H 1
19141# endif
19142
19143# ifdef _SC_PAGESIZE
19144#  define getpagesize() sysconf(_SC_PAGESIZE)
19145# else /* no _SC_PAGESIZE */
19146#  if HAVE_SYS_PARAM_H
19147#   include <sys/param.h>
19148#   ifdef EXEC_PAGESIZE
19149#    define getpagesize() EXEC_PAGESIZE
19150#   else /* no EXEC_PAGESIZE */
19151#    ifdef NBPG
19152#     define getpagesize() NBPG * CLSIZE
19153#     ifndef CLSIZE
19154#      define CLSIZE 1
19155#     endif /* no CLSIZE */
19156#    else /* no NBPG */
19157#     ifdef NBPC
19158#      define getpagesize() NBPC
19159#     else /* no NBPC */
19160#      ifdef PAGESIZE
19161#       define getpagesize() PAGESIZE
19162#      endif /* PAGESIZE */
19163#     endif /* no NBPC */
19164#    endif /* no NBPG */
19165#   endif /* no EXEC_PAGESIZE */
19166#  else /* no HAVE_SYS_PARAM_H */
19167#   define getpagesize() 8192	/* punt totally */
19168#  endif /* no HAVE_SYS_PARAM_H */
19169# endif /* no _SC_PAGESIZE */
19170
19171#endif /* no HAVE_GETPAGESIZE */
19172
19173int
19174main ()
19175{
19176  char *data, *data2, *data3;
19177  int i, pagesize;
19178  int fd;
19179
19180  pagesize = getpagesize ();
19181
19182  /* First, make a file with some known garbage in it. */
19183  data = (char *) malloc (pagesize);
19184  if (!data)
19185    return 1;
19186  for (i = 0; i < pagesize; ++i)
19187    *(data + i) = rand ();
19188  umask (0);
19189  fd = creat ("conftest.mmap", 0600);
19190  if (fd < 0)
19191    return 1;
19192  if (write (fd, data, pagesize) != pagesize)
19193    return 1;
19194  close (fd);
19195
19196  /* Next, try to mmap the file at a fixed address which already has
19197     something else allocated at it.  If we can, also make sure that
19198     we see the same garbage.  */
19199  fd = open ("conftest.mmap", O_RDWR);
19200  if (fd < 0)
19201    return 1;
19202  data2 = (char *) malloc (2 * pagesize);
19203  if (!data2)
19204    return 1;
19205  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19206  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19207		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
19208    return 1;
19209  for (i = 0; i < pagesize; ++i)
19210    if (*(data + i) != *(data2 + i))
19211      return 1;
19212
19213  /* Finally, make sure that changes to the mapped area do not
19214     percolate back to the file as seen by read().  (This is a bug on
19215     some variants of i386 svr4.0.)  */
19216  for (i = 0; i < pagesize; ++i)
19217    *(data2 + i) = *(data2 + i) + 1;
19218  data3 = (char *) malloc (pagesize);
19219  if (!data3)
19220    return 1;
19221  if (read (fd, data3, pagesize) != pagesize)
19222    return 1;
19223  for (i = 0; i < pagesize; ++i)
19224    if (*(data + i) != *(data3 + i))
19225      return 1;
19226  close (fd);
19227  return 0;
19228}
19229_ACEOF
19230rm -f conftest$ac_exeext
19231if { (ac_try="$ac_link"
19232case "(($ac_try" in
19233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234  *) ac_try_echo=$ac_try;;
19235esac
19236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237  (eval "$ac_link") 2>&5
19238  ac_status=$?
19239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19241  { (case "(($ac_try" in
19242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243  *) ac_try_echo=$ac_try;;
19244esac
19245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246  (eval "$ac_try") 2>&5
19247  ac_status=$?
19248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249  (exit $ac_status); }; }; then
19250  ac_cv_func_mmap_fixed_mapped=yes
19251else
19252  echo "$as_me: program exited with status $ac_status" >&5
19253echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
19256( exit $ac_status )
19257ac_cv_func_mmap_fixed_mapped=no
19258fi
19259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19260fi
19261
19262
19263fi
19264{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19265echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19266if test $ac_cv_func_mmap_fixed_mapped = yes; then
19267
19268cat >>confdefs.h <<\_ACEOF
19269#define HAVE_MMAP 1
19270_ACEOF
19271
19272fi
19273rm -f conftest.mmap
19274
19275  { echo "$as_me:$LINENO: checking for mmap of files" >&5
19276echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19277if test "${ac_cv_func_mmap_file+set}" = set; then
19278  echo $ECHO_N "(cached) $ECHO_C" >&6
19279else
19280   ac_ext=c
19281ac_cpp='$CPP $CPPFLAGS'
19282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284ac_compiler_gnu=$ac_cv_c_compiler_gnu
19285
19286  if test "$cross_compiling" = yes; then
19287  ac_cv_func_mmap_file=no
19288else
19289  cat >conftest.$ac_ext <<_ACEOF
19290
19291    /* confdefs.h.  */
19292_ACEOF
19293cat confdefs.h >>conftest.$ac_ext
19294cat >>conftest.$ac_ext <<_ACEOF
19295/* end confdefs.h.  */
19296
19297#include <sys/types.h>
19298#include <sys/mman.h>
19299#include <fcntl.h>
19300
19301int
19302main ()
19303{
19304
19305  int fd;
19306  fd = creat ("foo",0777);
19307  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19308  unlink ("foo");
19309  return (fd != (int) MAP_FAILED);
19310  ;
19311  return 0;
19312}
19313_ACEOF
19314rm -f conftest$ac_exeext
19315if { (ac_try="$ac_link"
19316case "(($ac_try" in
19317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318  *) ac_try_echo=$ac_try;;
19319esac
19320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321  (eval "$ac_link") 2>&5
19322  ac_status=$?
19323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19325  { (case "(($ac_try" in
19326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327  *) ac_try_echo=$ac_try;;
19328esac
19329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330  (eval "$ac_try") 2>&5
19331  ac_status=$?
19332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333  (exit $ac_status); }; }; then
19334  ac_cv_func_mmap_file=yes
19335else
19336  echo "$as_me: program exited with status $ac_status" >&5
19337echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340( exit $ac_status )
19341ac_cv_func_mmap_file=no
19342fi
19343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19344fi
19345
19346
19347  ac_ext=c
19348ac_cpp='$CPP $CPPFLAGS'
19349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351ac_compiler_gnu=$ac_cv_c_compiler_gnu
19352
19353
19354fi
19355{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19356echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19357if test "$ac_cv_func_mmap_file" = yes; then
19358
19359cat >>confdefs.h <<\_ACEOF
19360#define HAVE_MMAP_FILE
19361_ACEOF
19362
19363   MMAP_FILE=yes
19364
19365fi
19366
19367  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19368echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19369if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19370  echo $ECHO_N "(cached) $ECHO_C" >&6
19371else
19372  if test "$llvm_cv_os_type" = "Interix" ; then
19373   ac_cv_need_dev_zero_for_mmap=yes
19374 else
19375   ac_cv_need_dev_zero_for_mmap=no
19376 fi
19377
19378fi
19379{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19380echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19381if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19382
19383cat >>confdefs.h <<\_ACEOF
19384#define NEED_DEV_ZERO_FOR_MMAP 1
19385_ACEOF
19386
19387fi
19388
19389  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19390  then
19391    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19392echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19393  fi
19394  if test "$ac_cv_func_mmap_file" = "no"
19395  then
19396    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19397echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19398  fi
19399fi
19400
19401{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19402echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19403cat >conftest.$ac_ext <<_ACEOF
19404/* confdefs.h.  */
19405_ACEOF
19406cat confdefs.h >>conftest.$ac_ext
19407cat >>conftest.$ac_ext <<_ACEOF
19408/* end confdefs.h.  */
19409int main() {
19410        volatile unsigned long val = 1;
19411        __sync_synchronize();
19412        __sync_val_compare_and_swap(&val, 1, 0);
19413        __sync_add_and_fetch(&val, 1);
19414        __sync_sub_and_fetch(&val, 1);
19415        return 0;
19416      }
19417
19418_ACEOF
19419rm -f conftest.$ac_objext conftest$ac_exeext
19420if { (ac_try="$ac_link"
19421case "(($ac_try" in
19422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423  *) ac_try_echo=$ac_try;;
19424esac
19425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426  (eval "$ac_link") 2>conftest.er1
19427  ac_status=$?
19428  grep -v '^ *+' conftest.er1 >conftest.err
19429  rm -f conftest.er1
19430  cat conftest.err >&5
19431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432  (exit $ac_status); } &&
19433	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19443	 { ac_try='test -s conftest$ac_exeext'
19444  { (case "(($ac_try" in
19445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446  *) ac_try_echo=$ac_try;;
19447esac
19448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449  (eval "$ac_try") 2>&5
19450  ac_status=$?
19451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452  (exit $ac_status); }; }; then
19453  { echo "$as_me:$LINENO: result: yes" >&5
19454echo "${ECHO_T}yes" >&6; }
19455
19456cat >>confdefs.h <<\_ACEOF
19457#define LLVM_MULTITHREADED 1
19458_ACEOF
19459
19460else
19461  echo "$as_me: failed program was:" >&5
19462sed 's/^/| /' conftest.$ac_ext >&5
19463
19464	{ echo "$as_me:$LINENO: result: no" >&5
19465echo "${ECHO_T}no" >&6; }
19466
19467cat >>confdefs.h <<\_ACEOF
19468#define LLVM_MULTITHREADED 0
19469_ACEOF
19470
19471  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19472echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19473fi
19474
19475rm -f core conftest.err conftest.$ac_objext \
19476      conftest$ac_exeext conftest.$ac_ext
19477
19478
19479
19480if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19481  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19482echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19483if test "${llvm_cv_linux_mixed+set}" = set; then
19484  echo $ECHO_N "(cached) $ECHO_C" >&6
19485else
19486   ac_ext=c
19487ac_cpp='$CPP $CPPFLAGS'
19488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19490ac_compiler_gnu=$ac_cv_c_compiler_gnu
19491
19492  cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h.  */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h.  */
19498#ifndef __x86_64__
19499       error: Not x86-64 even if uname says so!
19500      #endif
19501
19502int
19503main ()
19504{
19505
19506  ;
19507  return 0;
19508}
19509_ACEOF
19510rm -f conftest.$ac_objext
19511if { (ac_try="$ac_compile"
19512case "(($ac_try" in
19513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514  *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517  (eval "$ac_compile") 2>conftest.er1
19518  ac_status=$?
19519  grep -v '^ *+' conftest.er1 >conftest.err
19520  rm -f conftest.er1
19521  cat conftest.err >&5
19522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523  (exit $ac_status); } &&
19524	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19525  { (case "(($ac_try" in
19526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527  *) ac_try_echo=$ac_try;;
19528esac
19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530  (eval "$ac_try") 2>&5
19531  ac_status=$?
19532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533  (exit $ac_status); }; } &&
19534	 { ac_try='test -s conftest.$ac_objext'
19535  { (case "(($ac_try" in
19536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537  *) ac_try_echo=$ac_try;;
19538esac
19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540  (eval "$ac_try") 2>&5
19541  ac_status=$?
19542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543  (exit $ac_status); }; }; then
19544  llvm_cv_linux_mixed=no
19545else
19546  echo "$as_me: failed program was:" >&5
19547sed 's/^/| /' conftest.$ac_ext >&5
19548
19549	llvm_cv_linux_mixed=yes
19550fi
19551
19552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553  ac_ext=c
19554ac_cpp='$CPP $CPPFLAGS'
19555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19557ac_compiler_gnu=$ac_cv_c_compiler_gnu
19558
19559
19560fi
19561{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19562echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19563
19564  if test "$llvm_cv_linux_mixed" = "yes"; then
19565    llvm_cv_target_arch="x86"
19566    ARCH="x86"
19567  fi
19568fi
19569
19570
19571for ac_func in __dso_handle
19572do
19573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19577  echo $ECHO_N "(cached) $ECHO_C" >&6
19578else
19579  cat >conftest.$ac_ext <<_ACEOF
19580/* confdefs.h.  */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h.  */
19585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19586   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19587#define $ac_func innocuous_$ac_func
19588
19589/* System header to define __stub macros and hopefully few prototypes,
19590    which can conflict with char $ac_func (); below.
19591    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19592    <limits.h> exists even on freestanding compilers.  */
19593
19594#ifdef __STDC__
19595# include <limits.h>
19596#else
19597# include <assert.h>
19598#endif
19599
19600#undef $ac_func
19601
19602/* Override any GCC internal prototype to avoid an error.
19603   Use char because int might match the return type of a GCC
19604   builtin and then its argument prototype would still apply.  */
19605#ifdef __cplusplus
19606extern "C"
19607#endif
19608char $ac_func ();
19609/* The GNU C library defines this for functions which it implements
19610    to always fail with ENOSYS.  Some functions are actually named
19611    something starting with __ and the normal name is an alias.  */
19612#if defined __stub_$ac_func || defined __stub___$ac_func
19613choke me
19614#endif
19615
19616int
19617main ()
19618{
19619return $ac_func ();
19620  ;
19621  return 0;
19622}
19623_ACEOF
19624rm -f conftest.$ac_objext conftest$ac_exeext
19625if { (ac_try="$ac_link"
19626case "(($ac_try" in
19627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628  *) ac_try_echo=$ac_try;;
19629esac
19630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631  (eval "$ac_link") 2>conftest.er1
19632  ac_status=$?
19633  grep -v '^ *+' conftest.er1 >conftest.err
19634  rm -f conftest.er1
19635  cat conftest.err >&5
19636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637  (exit $ac_status); } &&
19638	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639  { (case "(($ac_try" in
19640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641  *) ac_try_echo=$ac_try;;
19642esac
19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644  (eval "$ac_try") 2>&5
19645  ac_status=$?
19646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647  (exit $ac_status); }; } &&
19648	 { ac_try='test -s conftest$ac_exeext'
19649  { (case "(($ac_try" in
19650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651  *) ac_try_echo=$ac_try;;
19652esac
19653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654  (eval "$ac_try") 2>&5
19655  ac_status=$?
19656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657  (exit $ac_status); }; }; then
19658  eval "$as_ac_var=yes"
19659else
19660  echo "$as_me: failed program was:" >&5
19661sed 's/^/| /' conftest.$ac_ext >&5
19662
19663	eval "$as_ac_var=no"
19664fi
19665
19666rm -f core conftest.err conftest.$ac_objext \
19667      conftest$ac_exeext conftest.$ac_ext
19668fi
19669ac_res=`eval echo '${'$as_ac_var'}'`
19670	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19671echo "${ECHO_T}$ac_res" >&6; }
19672if test `eval echo '${'$as_ac_var'}'` = yes; then
19673  cat >>confdefs.h <<_ACEOF
19674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19675_ACEOF
19676
19677fi
19678done
19679
19680
19681{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19682echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19683if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19684  echo $ECHO_N "(cached) $ECHO_C" >&6
19685else
19686  llvm_cv_llvmgcc_sanity="no"
19687if test -x "$LLVMGCC" ; then
19688  cp /dev/null conftest.c
19689  "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19690      grep 'target datalayout =' > /dev/null 2>&1
19691  if test $? -eq 0 ; then
19692    llvm_cv_llvmgcc_sanity="yes"
19693  fi
19694  rm conftest.c
19695fi
19696fi
19697{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19698echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19699
19700if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19701  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19702echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19703  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19704  LLVMCC1=$llvmcc1path
19705
19706  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19707  LLVMCC1PLUS=$llvmcc1pluspath
19708
19709  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19710  LLVMGCCDIR=$llvmgccdir
19711
19712  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19713  LLVMGCC_LANGS=$llvmgcclangs
19714
19715  { echo "$as_me:$LINENO: result: ok" >&5
19716echo "${ECHO_T}ok" >&6; }
19717fi
19718
19719SHLIBEXT=$libltdl_cv_shlibext
19720
19721
19722SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19723
19724
19725# Translate the various configuration directories and other basic
19726# information into substitutions that will end up in Makefile.config.in
19727# that these configured values can be used by the makefiles
19728if test "${prefix}" = "NONE" ; then
19729  prefix="/usr/local"
19730fi
19731eval LLVM_PREFIX="${prefix}";
19732eval LLVM_BINDIR="${prefix}/bin";
19733eval LLVM_LIBDIR="${prefix}/lib";
19734eval LLVM_DATADIR="${prefix}/share/llvm";
19735eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19736eval LLVM_ETCDIR="${prefix}/etc/llvm";
19737eval LLVM_INCLUDEDIR="${prefix}/include";
19738eval LLVM_INFODIR="${prefix}/info";
19739eval LLVM_MANDIR="${prefix}/man";
19740LLVM_CONFIGTIME=`date`
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752# Place the various directores into the config.h file as #defines so that we
19753# can know about the installation paths within LLVM.
19754
19755cat >>confdefs.h <<_ACEOF
19756#define LLVM_PREFIX "$LLVM_PREFIX"
19757_ACEOF
19758
19759
19760cat >>confdefs.h <<_ACEOF
19761#define LLVM_BINDIR "$LLVM_BINDIR"
19762_ACEOF
19763
19764
19765cat >>confdefs.h <<_ACEOF
19766#define LLVM_LIBDIR "$LLVM_LIBDIR"
19767_ACEOF
19768
19769
19770cat >>confdefs.h <<_ACEOF
19771#define LLVM_DATADIR "$LLVM_DATADIR"
19772_ACEOF
19773
19774
19775cat >>confdefs.h <<_ACEOF
19776#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19777_ACEOF
19778
19779
19780cat >>confdefs.h <<_ACEOF
19781#define LLVM_ETCDIR "$LLVM_ETCDIR"
19782_ACEOF
19783
19784
19785cat >>confdefs.h <<_ACEOF
19786#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19787_ACEOF
19788
19789
19790cat >>confdefs.h <<_ACEOF
19791#define LLVM_INFODIR "$LLVM_INFODIR"
19792_ACEOF
19793
19794
19795cat >>confdefs.h <<_ACEOF
19796#define LLVM_MANDIR "$LLVM_MANDIR"
19797_ACEOF
19798
19799
19800cat >>confdefs.h <<_ACEOF
19801#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19802_ACEOF
19803
19804
19805cat >>confdefs.h <<_ACEOF
19806#define LLVM_HOSTTRIPLE "$host"
19807_ACEOF
19808
19809
19810# Determine which bindings to build.
19811if test "$BINDINGS_TO_BUILD" = auto ; then
19812  BINDINGS_TO_BUILD=""
19813  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19814    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19815  fi
19816fi
19817BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19818
19819
19820# This isn't really configurey, but it avoids having to repeat the list in
19821# other files.
19822ALL_BINDINGS=ocaml
19823
19824
19825# Do any work necessary to ensure that bindings have what they need.
19826binding_prereqs_failed=0
19827for a_binding in $BINDINGS_TO_BUILD ; do
19828  case "$a_binding" in
19829  ocaml)
19830    if test "x$OCAMLC" = x ; then
19831      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19832echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19833      binding_prereqs_failed=1
19834    fi
19835    if test "x$OCAMLDEP" = x ; then
19836      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19837echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19838      binding_prereqs_failed=1
19839    fi
19840    if test "x$OCAMLOPT" = x ; then
19841      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19842echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19843          fi
19844    if test "x$with_ocaml_libdir" != xauto ; then
19845      OCAML_LIBDIR=$with_ocaml_libdir
19846
19847    else
19848      ocaml_stdlib="`"$OCAMLC" -where`"
19849      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19850      then
19851        # ocaml stdlib is beneath our prefix; use stdlib
19852        OCAML_LIBDIR=$ocaml_stdlib
19853
19854      else
19855        # ocaml stdlib is outside our prefix; use libdir/ocaml
19856        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19857
19858      fi
19859    fi
19860    ;;
19861  esac
19862done
19863if test "$binding_prereqs_failed" = 1 ; then
19864  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19865echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19866   { (exit 1); exit 1; }; }
19867fi
19868
19869{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19870echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19871if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19872  echo $ECHO_N "(cached) $ECHO_C" >&6
19873else
19874   ac_ext=cpp
19875ac_cpp='$CXXCPP $CPPFLAGS'
19876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19879
19880  oldcxxflags="$CXXFLAGS"
19881  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19882  cat >conftest.$ac_ext <<_ACEOF
19883/* confdefs.h.  */
19884_ACEOF
19885cat confdefs.h >>conftest.$ac_ext
19886cat >>conftest.$ac_ext <<_ACEOF
19887/* end confdefs.h.  */
19888
19889int
19890main ()
19891{
19892
19893  ;
19894  return 0;
19895}
19896_ACEOF
19897rm -f conftest.$ac_objext
19898if { (ac_try="$ac_compile"
19899case "(($ac_try" in
19900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901  *) ac_try_echo=$ac_try;;
19902esac
19903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904  (eval "$ac_compile") 2>conftest.er1
19905  ac_status=$?
19906  grep -v '^ *+' conftest.er1 >conftest.err
19907  rm -f conftest.er1
19908  cat conftest.err >&5
19909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910  (exit $ac_status); } &&
19911	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19912  { (case "(($ac_try" in
19913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914  *) ac_try_echo=$ac_try;;
19915esac
19916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917  (eval "$ac_try") 2>&5
19918  ac_status=$?
19919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920  (exit $ac_status); }; } &&
19921	 { ac_try='test -s conftest.$ac_objext'
19922  { (case "(($ac_try" in
19923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924  *) ac_try_echo=$ac_try;;
19925esac
19926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927  (eval "$ac_try") 2>&5
19928  ac_status=$?
19929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930  (exit $ac_status); }; }; then
19931  llvm_cv_cxx_visibility_inlines_hidden=yes
19932else
19933  echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936	llvm_cv_cxx_visibility_inlines_hidden=no
19937fi
19938
19939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940  CXXFLAGS="$oldcxxflags"
19941  ac_ext=c
19942ac_cpp='$CPP $CPPFLAGS'
19943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19945ac_compiler_gnu=$ac_cv_c_compiler_gnu
19946
19947
19948fi
19949{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19950echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19951if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19952  ENABLE_VISIBILITY_INLINES_HIDDEN=1
19953
19954else
19955  ENABLE_VISIBILITY_INLINES_HIDDEN=0
19956
19957fi
19958
19959
19960if test "$llvm_cv_link_use_r" = "yes" ; then
19961  RPATH="-Wl,-R"
19962else
19963  RPATH="-Wl,-rpath"
19964fi
19965
19966
19967if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19968  RDYNAMIC="-Wl,-export-dynamic"
19969else
19970  RDYNAMIC=""
19971fi
19972
19973
19974
19975ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19976
19977ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19978
19979ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19980
19981ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19982
19983ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19984
19985ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19986
19987
19988ac_config_files="$ac_config_files Makefile.config"
19989
19990
19991ac_config_files="$ac_config_files llvm.spec"
19992
19993
19994ac_config_files="$ac_config_files docs/doxygen.cfg"
19995
19996
19997ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19998
19999
20000ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20001
20002
20003ac_config_commands="$ac_config_commands setup"
20004
20005ac_config_commands="$ac_config_commands Makefile"
20006
20007
20008ac_config_commands="$ac_config_commands Makefile.common"
20009
20010
20011ac_config_commands="$ac_config_commands examples/Makefile"
20012
20013
20014ac_config_commands="$ac_config_commands lib/Makefile"
20015
20016
20017ac_config_commands="$ac_config_commands runtime/Makefile"
20018
20019
20020ac_config_commands="$ac_config_commands test/Makefile"
20021
20022
20023ac_config_commands="$ac_config_commands test/Makefile.tests"
20024
20025
20026ac_config_commands="$ac_config_commands unittests/Makefile"
20027
20028
20029ac_config_commands="$ac_config_commands tools/Makefile"
20030
20031
20032ac_config_commands="$ac_config_commands utils/Makefile"
20033
20034
20035ac_config_commands="$ac_config_commands projects/Makefile"
20036
20037
20038ac_config_commands="$ac_config_commands bindings/Makefile"
20039
20040
20041ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20042
20043
20044
20045cat >confcache <<\_ACEOF
20046# This file is a shell script that caches the results of configure
20047# tests run on this system so they can be shared between configure
20048# scripts and configure runs, see configure's option --config-cache.
20049# It is not useful on other systems.  If it contains results you don't
20050# want to keep, you may remove or edit it.
20051#
20052# config.status only pays attention to the cache file if you give it
20053# the --recheck option to rerun configure.
20054#
20055# `ac_cv_env_foo' variables (set or unset) will be overridden when
20056# loading this file, other *unset* `ac_cv_foo' will be assigned the
20057# following values.
20058
20059_ACEOF
20060
20061# The following way of writing the cache mishandles newlines in values,
20062# but we know of no workaround that is simple, portable, and efficient.
20063# So, we kill variables containing newlines.
20064# Ultrix sh set writes to stderr and can't be redirected directly,
20065# and sets the high bit in the cache file unless we assign to the vars.
20066(
20067  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20068    eval ac_val=\$$ac_var
20069    case $ac_val in #(
20070    *${as_nl}*)
20071      case $ac_var in #(
20072      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20073echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20074      esac
20075      case $ac_var in #(
20076      _ | IFS | as_nl) ;; #(
20077      *) $as_unset $ac_var ;;
20078      esac ;;
20079    esac
20080  done
20081
20082  (set) 2>&1 |
20083    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20084    *${as_nl}ac_space=\ *)
20085      # `set' does not quote correctly, so add quotes (double-quote
20086      # substitution turns \\\\ into \\, and sed turns \\ into \).
20087      sed -n \
20088	"s/'/'\\\\''/g;
20089	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20090      ;; #(
20091    *)
20092      # `set' quotes correctly as required by POSIX, so do not add quotes.
20093      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20094      ;;
20095    esac |
20096    sort
20097) |
20098  sed '
20099     /^ac_cv_env_/b end
20100     t clear
20101     :clear
20102     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20103     t end
20104     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20105     :end' >>confcache
20106if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20107  if test -w "$cache_file"; then
20108    test "x$cache_file" != "x/dev/null" &&
20109      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20110echo "$as_me: updating cache $cache_file" >&6;}
20111    cat confcache >$cache_file
20112  else
20113    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20114echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20115  fi
20116fi
20117rm -f confcache
20118
20119test "x$prefix" = xNONE && prefix=$ac_default_prefix
20120# Let make expand exec_prefix.
20121test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20122
20123DEFS=-DHAVE_CONFIG_H
20124
20125ac_libobjs=
20126ac_ltlibobjs=
20127for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20128  # 1. Remove the extension, and $U if already installed.
20129  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20130  ac_i=`echo "$ac_i" | sed "$ac_script"`
20131  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20132  #    will be set to the directory where LIBOBJS objects are built.
20133  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20134  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20135done
20136LIBOBJS=$ac_libobjs
20137
20138LTLIBOBJS=$ac_ltlibobjs
20139
20140
20141if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20142  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20143Usually this means the macro was only invoked conditionally." >&5
20144echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20145Usually this means the macro was only invoked conditionally." >&2;}
20146   { (exit 1); exit 1; }; }
20147fi
20148if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20149  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20150Usually this means the macro was only invoked conditionally." >&5
20151echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20152Usually this means the macro was only invoked conditionally." >&2;}
20153   { (exit 1); exit 1; }; }
20154fi
20155
20156: ${CONFIG_STATUS=./config.status}
20157ac_clean_files_save=$ac_clean_files
20158ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20159{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20160echo "$as_me: creating $CONFIG_STATUS" >&6;}
20161cat >$CONFIG_STATUS <<_ACEOF
20162#! $SHELL
20163# Generated by $as_me.
20164# Run this file to recreate the current configuration.
20165# Compiler output produced by configure, useful for debugging
20166# configure, is in config.log if it exists.
20167
20168debug=false
20169ac_cs_recheck=false
20170ac_cs_silent=false
20171SHELL=\${CONFIG_SHELL-$SHELL}
20172_ACEOF
20173
20174cat >>$CONFIG_STATUS <<\_ACEOF
20175## --------------------- ##
20176## M4sh Initialization.  ##
20177## --------------------- ##
20178
20179# Be Bourne compatible
20180if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20181  emulate sh
20182  NULLCMD=:
20183  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20184  # is contrary to our usage.  Disable this feature.
20185  alias -g '${1+"$@"}'='"$@"'
20186  setopt NO_GLOB_SUBST
20187else
20188  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20189fi
20190BIN_SH=xpg4; export BIN_SH # for Tru64
20191DUALCASE=1; export DUALCASE # for MKS sh
20192
20193
20194# PATH needs CR
20195# Avoid depending upon Character Ranges.
20196as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20198as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20199as_cr_digits='0123456789'
20200as_cr_alnum=$as_cr_Letters$as_cr_digits
20201
20202# The user is always right.
20203if test "${PATH_SEPARATOR+set}" != set; then
20204  echo "#! /bin/sh" >conf$$.sh
20205  echo  "exit 0"   >>conf$$.sh
20206  chmod +x conf$$.sh
20207  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20208    PATH_SEPARATOR=';'
20209  else
20210    PATH_SEPARATOR=:
20211  fi
20212  rm -f conf$$.sh
20213fi
20214
20215# Support unset when possible.
20216if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20217  as_unset=unset
20218else
20219  as_unset=false
20220fi
20221
20222
20223# IFS
20224# We need space, tab and new line, in precisely that order.  Quoting is
20225# there to prevent editors from complaining about space-tab.
20226# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20227# splitting by setting IFS to empty value.)
20228as_nl='
20229'
20230IFS=" ""	$as_nl"
20231
20232# Find who we are.  Look in the path if we contain no directory separator.
20233case $0 in
20234  *[\\/]* ) as_myself=$0 ;;
20235  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20236for as_dir in $PATH
20237do
20238  IFS=$as_save_IFS
20239  test -z "$as_dir" && as_dir=.
20240  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20241done
20242IFS=$as_save_IFS
20243
20244     ;;
20245esac
20246# We did not find ourselves, most probably we were run as `sh COMMAND'
20247# in which case we are not to be found in the path.
20248if test "x$as_myself" = x; then
20249  as_myself=$0
20250fi
20251if test ! -f "$as_myself"; then
20252  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20253  { (exit 1); exit 1; }
20254fi
20255
20256# Work around bugs in pre-3.0 UWIN ksh.
20257for as_var in ENV MAIL MAILPATH
20258do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20259done
20260PS1='$ '
20261PS2='> '
20262PS4='+ '
20263
20264# NLS nuisances.
20265for as_var in \
20266  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20267  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20268  LC_TELEPHONE LC_TIME
20269do
20270  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20271    eval $as_var=C; export $as_var
20272  else
20273    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20274  fi
20275done
20276
20277# Required to use basename.
20278if expr a : '\(a\)' >/dev/null 2>&1 &&
20279   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20280  as_expr=expr
20281else
20282  as_expr=false
20283fi
20284
20285if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20286  as_basename=basename
20287else
20288  as_basename=false
20289fi
20290
20291
20292# Name of the executable.
20293as_me=`$as_basename -- "$0" ||
20294$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20295	 X"$0" : 'X\(//\)$' \| \
20296	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20297echo X/"$0" |
20298    sed '/^.*\/\([^/][^/]*\)\/*$/{
20299	    s//\1/
20300	    q
20301	  }
20302	  /^X\/\(\/\/\)$/{
20303	    s//\1/
20304	    q
20305	  }
20306	  /^X\/\(\/\).*/{
20307	    s//\1/
20308	    q
20309	  }
20310	  s/.*/./; q'`
20311
20312# CDPATH.
20313$as_unset CDPATH
20314
20315
20316
20317  as_lineno_1=$LINENO
20318  as_lineno_2=$LINENO
20319  test "x$as_lineno_1" != "x$as_lineno_2" &&
20320  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20321
20322  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20323  # uniformly replaced by the line number.  The first 'sed' inserts a
20324  # line-number line after each line using $LINENO; the second 'sed'
20325  # does the real work.  The second script uses 'N' to pair each
20326  # line-number line with the line containing $LINENO, and appends
20327  # trailing '-' during substitution so that $LINENO is not a special
20328  # case at line end.
20329  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20330  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20331  # E. McMahon (1931-1989) for sed's syntax.  :-)
20332  sed -n '
20333    p
20334    /[$]LINENO/=
20335  ' <$as_myself |
20336    sed '
20337      s/[$]LINENO.*/&-/
20338      t lineno
20339      b
20340      :lineno
20341      N
20342      :loop
20343      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20344      t loop
20345      s/-\n.*//
20346    ' >$as_me.lineno &&
20347  chmod +x "$as_me.lineno" ||
20348    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20349   { (exit 1); exit 1; }; }
20350
20351  # Don't try to exec as it changes $[0], causing all sort of problems
20352  # (the dirname of $[0] is not the place where we might find the
20353  # original and so on.  Autoconf is especially sensitive to this).
20354  . "./$as_me.lineno"
20355  # Exit status is that of the last command.
20356  exit
20357}
20358
20359
20360if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20361  as_dirname=dirname
20362else
20363  as_dirname=false
20364fi
20365
20366ECHO_C= ECHO_N= ECHO_T=
20367case `echo -n x` in
20368-n*)
20369  case `echo 'x\c'` in
20370  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20371  *)   ECHO_C='\c';;
20372  esac;;
20373*)
20374  ECHO_N='-n';;
20375esac
20376
20377if expr a : '\(a\)' >/dev/null 2>&1 &&
20378   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20379  as_expr=expr
20380else
20381  as_expr=false
20382fi
20383
20384rm -f conf$$ conf$$.exe conf$$.file
20385if test -d conf$$.dir; then
20386  rm -f conf$$.dir/conf$$.file
20387else
20388  rm -f conf$$.dir
20389  mkdir conf$$.dir
20390fi
20391echo >conf$$.file
20392if ln -s conf$$.file conf$$ 2>/dev/null; then
20393  as_ln_s='ln -s'
20394  # ... but there are two gotchas:
20395  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20396  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20397  # In both cases, we have to default to `cp -p'.
20398  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20399    as_ln_s='cp -p'
20400elif ln conf$$.file conf$$ 2>/dev/null; then
20401  as_ln_s=ln
20402else
20403  as_ln_s='cp -p'
20404fi
20405rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20406rmdir conf$$.dir 2>/dev/null
20407
20408if mkdir -p . 2>/dev/null; then
20409  as_mkdir_p=:
20410else
20411  test -d ./-p && rmdir ./-p
20412  as_mkdir_p=false
20413fi
20414
20415# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20416# systems may use methods other than mode bits to determine executability.
20417cat >conf$$.file <<_ASEOF
20418#! /bin/sh
20419exit 0
20420_ASEOF
20421chmod +x conf$$.file
20422if test -x conf$$.file >/dev/null 2>&1; then
20423  as_executable_p="test -x"
20424else
20425  as_executable_p=:
20426fi
20427rm -f conf$$.file
20428
20429# Sed expression to map a string onto a valid CPP name.
20430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20431
20432# Sed expression to map a string onto a valid variable name.
20433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20434
20435
20436exec 6>&1
20437
20438# Save the log message, to keep $[0] and so on meaningful, and to
20439# report actual input values of CONFIG_FILES etc. instead of their
20440# values after options handling.
20441ac_log="
20442This file was extended by llvm $as_me 2.7svn, which was
20443generated by GNU Autoconf 2.60.  Invocation command line was
20444
20445  CONFIG_FILES    = $CONFIG_FILES
20446  CONFIG_HEADERS  = $CONFIG_HEADERS
20447  CONFIG_LINKS    = $CONFIG_LINKS
20448  CONFIG_COMMANDS = $CONFIG_COMMANDS
20449  $ $0 $@
20450
20451on `(hostname || uname -n) 2>/dev/null | sed 1q`
20452"
20453
20454_ACEOF
20455
20456cat >>$CONFIG_STATUS <<_ACEOF
20457# Files that config.status was made for.
20458config_files="$ac_config_files"
20459config_headers="$ac_config_headers"
20460config_commands="$ac_config_commands"
20461
20462_ACEOF
20463
20464cat >>$CONFIG_STATUS <<\_ACEOF
20465ac_cs_usage="\
20466\`$as_me' instantiates files from templates according to the
20467current configuration.
20468
20469Usage: $0 [OPTIONS] [FILE]...
20470
20471  -h, --help       print this help, then exit
20472  -V, --version    print version number, then exit
20473  -q, --quiet      do not print progress messages
20474  -d, --debug      don't remove temporary files
20475      --recheck    update $as_me by reconfiguring in the same conditions
20476  --file=FILE[:TEMPLATE]
20477		   instantiate the configuration file FILE
20478  --header=FILE[:TEMPLATE]
20479		   instantiate the configuration header FILE
20480
20481Configuration files:
20482$config_files
20483
20484Configuration headers:
20485$config_headers
20486
20487Configuration commands:
20488$config_commands
20489
20490Report bugs to <bug-autoconf@gnu.org>."
20491
20492_ACEOF
20493cat >>$CONFIG_STATUS <<_ACEOF
20494ac_cs_version="\\
20495llvm config.status 2.7svn
20496configured by $0, generated by GNU Autoconf 2.60,
20497  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20498
20499Copyright (C) 2006 Free Software Foundation, Inc.
20500This config.status script is free software; the Free Software Foundation
20501gives unlimited permission to copy, distribute and modify it."
20502
20503ac_pwd='$ac_pwd'
20504srcdir='$srcdir'
20505INSTALL='$INSTALL'
20506_ACEOF
20507
20508cat >>$CONFIG_STATUS <<\_ACEOF
20509# If no file are specified by the user, then we need to provide default
20510# value.  By we need to know if files were specified by the user.
20511ac_need_defaults=:
20512while test $# != 0
20513do
20514  case $1 in
20515  --*=*)
20516    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20517    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20518    ac_shift=:
20519    ;;
20520  *)
20521    ac_option=$1
20522    ac_optarg=$2
20523    ac_shift=shift
20524    ;;
20525  esac
20526
20527  case $ac_option in
20528  # Handling of the options.
20529  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20530    ac_cs_recheck=: ;;
20531  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20532    echo "$ac_cs_version"; exit ;;
20533  --debug | --debu | --deb | --de | --d | -d )
20534    debug=: ;;
20535  --file | --fil | --fi | --f )
20536    $ac_shift
20537    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20538    ac_need_defaults=false;;
20539  --header | --heade | --head | --hea )
20540    $ac_shift
20541    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20542    ac_need_defaults=false;;
20543  --he | --h)
20544    # Conflict between --help and --header
20545    { echo "$as_me: error: ambiguous option: $1
20546Try \`$0 --help' for more information." >&2
20547   { (exit 1); exit 1; }; };;
20548  --help | --hel | -h )
20549    echo "$ac_cs_usage"; exit ;;
20550  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20551  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20552    ac_cs_silent=: ;;
20553
20554  # This is an error.
20555  -*) { echo "$as_me: error: unrecognized option: $1
20556Try \`$0 --help' for more information." >&2
20557   { (exit 1); exit 1; }; } ;;
20558
20559  *) ac_config_targets="$ac_config_targets $1"
20560     ac_need_defaults=false ;;
20561
20562  esac
20563  shift
20564done
20565
20566ac_configure_extra_args=
20567
20568if $ac_cs_silent; then
20569  exec 6>/dev/null
20570  ac_configure_extra_args="$ac_configure_extra_args --silent"
20571fi
20572
20573_ACEOF
20574cat >>$CONFIG_STATUS <<_ACEOF
20575if \$ac_cs_recheck; then
20576  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20577  CONFIG_SHELL=$SHELL
20578  export CONFIG_SHELL
20579  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20580fi
20581
20582_ACEOF
20583cat >>$CONFIG_STATUS <<\_ACEOF
20584exec 5>>config.log
20585{
20586  echo
20587  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20588## Running $as_me. ##
20589_ASBOX
20590  echo "$ac_log"
20591} >&5
20592
20593_ACEOF
20594cat >>$CONFIG_STATUS <<_ACEOF
20595#
20596# INIT-COMMANDS
20597#
20598llvm_src="${srcdir}"
20599
20600_ACEOF
20601
20602cat >>$CONFIG_STATUS <<\_ACEOF
20603
20604# Handling of arguments.
20605for ac_config_target in $ac_config_targets
20606do
20607  case $ac_config_target in
20608    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20609    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20610    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20611    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20612    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20613    "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20614    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20615    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20616    "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20617    "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20618    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20619    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20620    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20621    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20622    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20623    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20624    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20625    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20626    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20627    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20628    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20629    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20630    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20631    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20632    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20633
20634  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20635echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20636   { (exit 1); exit 1; }; };;
20637  esac
20638done
20639
20640
20641# If the user did not use the arguments to specify the items to instantiate,
20642# then the envvar interface is used.  Set only those that are not.
20643# We use the long form for the default assignment because of an extremely
20644# bizarre bug on SunOS 4.1.3.
20645if $ac_need_defaults; then
20646  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20647  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20648  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20649fi
20650
20651# Have a temporary directory for convenience.  Make it in the build tree
20652# simply because there is no reason against having it here, and in addition,
20653# creating and moving files from /tmp can sometimes cause problems.
20654# Hook for its removal unless debugging.
20655# Note that there is a small window in which the directory will not be cleaned:
20656# after its creation but before its name has been assigned to `$tmp'.
20657$debug ||
20658{
20659  tmp=
20660  trap 'exit_status=$?
20661  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20662' 0
20663  trap '{ (exit 1); exit 1; }' 1 2 13 15
20664}
20665# Create a (secure) tmp directory for tmp files.
20666
20667{
20668  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20669  test -n "$tmp" && test -d "$tmp"
20670}  ||
20671{
20672  tmp=./conf$$-$RANDOM
20673  (umask 077 && mkdir "$tmp")
20674} ||
20675{
20676   echo "$me: cannot create a temporary directory in ." >&2
20677   { (exit 1); exit 1; }
20678}
20679
20680#
20681# Set up the sed scripts for CONFIG_FILES section.
20682#
20683
20684# No need to generate the scripts if there are no CONFIG_FILES.
20685# This happens for instance when ./config.status config.h
20686if test -n "$CONFIG_FILES"; then
20687
20688_ACEOF
20689
20690
20691
20692ac_delim='%!_!# '
20693for ac_last_try in false false false false false :; do
20694  cat >conf$$subs.sed <<_ACEOF
20695SHELL!$SHELL$ac_delim
20696PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20697PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20698PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20699PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20700PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20701PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20702exec_prefix!$exec_prefix$ac_delim
20703prefix!$prefix$ac_delim
20704program_transform_name!$program_transform_name$ac_delim
20705bindir!$bindir$ac_delim
20706sbindir!$sbindir$ac_delim
20707libexecdir!$libexecdir$ac_delim
20708datarootdir!$datarootdir$ac_delim
20709datadir!$datadir$ac_delim
20710sysconfdir!$sysconfdir$ac_delim
20711sharedstatedir!$sharedstatedir$ac_delim
20712localstatedir!$localstatedir$ac_delim
20713includedir!$includedir$ac_delim
20714oldincludedir!$oldincludedir$ac_delim
20715docdir!$docdir$ac_delim
20716infodir!$infodir$ac_delim
20717htmldir!$htmldir$ac_delim
20718dvidir!$dvidir$ac_delim
20719pdfdir!$pdfdir$ac_delim
20720psdir!$psdir$ac_delim
20721libdir!$libdir$ac_delim
20722localedir!$localedir$ac_delim
20723mandir!$mandir$ac_delim
20724DEFS!$DEFS$ac_delim
20725ECHO_C!$ECHO_C$ac_delim
20726ECHO_N!$ECHO_N$ac_delim
20727ECHO_T!$ECHO_T$ac_delim
20728LIBS!$LIBS$ac_delim
20729build_alias!$build_alias$ac_delim
20730host_alias!$host_alias$ac_delim
20731target_alias!$target_alias$ac_delim
20732LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20733subdirs!$subdirs$ac_delim
20734build!$build$ac_delim
20735build_cpu!$build_cpu$ac_delim
20736build_vendor!$build_vendor$ac_delim
20737build_os!$build_os$ac_delim
20738host!$host$ac_delim
20739host_cpu!$host_cpu$ac_delim
20740host_vendor!$host_vendor$ac_delim
20741host_os!$host_os$ac_delim
20742target!$target$ac_delim
20743target_cpu!$target_cpu$ac_delim
20744target_vendor!$target_vendor$ac_delim
20745target_os!$target_os$ac_delim
20746OS!$OS$ac_delim
20747HOST_OS!$HOST_OS$ac_delim
20748TARGET_OS!$TARGET_OS$ac_delim
20749LINKALL!$LINKALL$ac_delim
20750NOLINKALL!$NOLINKALL$ac_delim
20751LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20752LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20753ARCH!$ARCH$ac_delim
20754ENDIAN!$ENDIAN$ac_delim
20755CC!$CC$ac_delim
20756CFLAGS!$CFLAGS$ac_delim
20757LDFLAGS!$LDFLAGS$ac_delim
20758CPPFLAGS!$CPPFLAGS$ac_delim
20759ac_ct_CC!$ac_ct_CC$ac_delim
20760EXEEXT!$EXEEXT$ac_delim
20761OBJEXT!$OBJEXT$ac_delim
20762CPP!$CPP$ac_delim
20763GREP!$GREP$ac_delim
20764EGREP!$EGREP$ac_delim
20765LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20766BUILD_CC!$BUILD_CC$ac_delim
20767BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20768BUILD_CXX!$BUILD_CXX$ac_delim
20769CVSBUILD!$CVSBUILD$ac_delim
20770ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20771ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20772DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20773ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20774EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20775DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20776DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20777JIT!$JIT$ac_delim
20778TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20779ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20780ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20781ENABLE_PIC!$ENABLE_PIC$ac_delim
20782ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20783TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20784LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20785LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20786LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20787LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20788ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20789CLANGPATH!$CLANGPATH$ac_delim
20790CLANGXXPATH!$CLANGXXPATH$ac_delim
20791ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20792_ACEOF
20793
20794  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20795    break
20796  elif $ac_last_try; then
20797    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20798echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20799   { (exit 1); exit 1; }; }
20800  else
20801    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20802  fi
20803done
20804
20805ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20806if test -n "$ac_eof"; then
20807  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20808  ac_eof=`expr $ac_eof + 1`
20809fi
20810
20811cat >>$CONFIG_STATUS <<_ACEOF
20812cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20813/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20814_ACEOF
20815sed '
20816s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20817s/^/s,@/; s/!/@,|#_!!_#|/
20818:n
20819t n
20820s/'"$ac_delim"'$/,g/; t
20821s/$/\\/; p
20822N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20823' >>$CONFIG_STATUS <conf$$subs.sed
20824rm -f conf$$subs.sed
20825cat >>$CONFIG_STATUS <<_ACEOF
20826CEOF$ac_eof
20827_ACEOF
20828
20829
20830ac_delim='%!_!# '
20831for ac_last_try in false false false false false :; do
20832  cat >conf$$subs.sed <<_ACEOF
20833OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20834EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20835BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20836ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20837ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20838CXX!$CXX$ac_delim
20839CXXFLAGS!$CXXFLAGS$ac_delim
20840ac_ct_CXX!$ac_ct_CXX$ac_delim
20841NM!$NM$ac_delim
20842ifGNUmake!$ifGNUmake$ac_delim
20843LN_S!$LN_S$ac_delim
20844CMP!$CMP$ac_delim
20845CP!$CP$ac_delim
20846DATE!$DATE$ac_delim
20847FIND!$FIND$ac_delim
20848MKDIR!$MKDIR$ac_delim
20849MV!$MV$ac_delim
20850RANLIB!$RANLIB$ac_delim
20851AR!$AR$ac_delim
20852RM!$RM$ac_delim
20853SED!$SED$ac_delim
20854TAR!$TAR$ac_delim
20855BINPWD!$BINPWD$ac_delim
20856GRAPHVIZ!$GRAPHVIZ$ac_delim
20857DOT!$DOT$ac_delim
20858FDP!$FDP$ac_delim
20859NEATO!$NEATO$ac_delim
20860TWOPI!$TWOPI$ac_delim
20861CIRCO!$CIRCO$ac_delim
20862GV!$GV$ac_delim
20863DOTTY!$DOTTY$ac_delim
20864PERL!$PERL$ac_delim
20865HAVE_PERL!$HAVE_PERL$ac_delim
20866INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20867INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20868INSTALL_DATA!$INSTALL_DATA$ac_delim
20869BZIP2!$BZIP2$ac_delim
20870DOXYGEN!$DOXYGEN$ac_delim
20871GROFF!$GROFF$ac_delim
20872GZIP!$GZIP$ac_delim
20873POD2HTML!$POD2HTML$ac_delim
20874POD2MAN!$POD2MAN$ac_delim
20875RUNTEST!$RUNTEST$ac_delim
20876TCLSH!$TCLSH$ac_delim
20877ZIP!$ZIP$ac_delim
20878OCAMLC!$OCAMLC$ac_delim
20879OCAMLOPT!$OCAMLOPT$ac_delim
20880OCAMLDEP!$OCAMLDEP$ac_delim
20881OCAMLDOC!$OCAMLDOC$ac_delim
20882GAS!$GAS$ac_delim
20883INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20884INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20885CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20886CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20887LIBADD_DL!$LIBADD_DL$ac_delim
20888LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20889LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20890LLVMGCC!$LLVMGCC$ac_delim
20891LLVMGXX!$LLVMGXX$ac_delim
20892LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20893NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20894NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20895USE_UDIS86!$USE_UDIS86$ac_delim
20896USE_OPROFILE!$USE_OPROFILE$ac_delim
20897HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20898HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20899MMAP_FILE!$MMAP_FILE$ac_delim
20900LLVMCC1!$LLVMCC1$ac_delim
20901LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20902LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20903LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20904SHLIBEXT!$SHLIBEXT$ac_delim
20905SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20906LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20907LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20908LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20909LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20910LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20911LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20912LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20913LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20914LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20915LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20916BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20917ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20918OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20919ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20920RPATH!$RPATH$ac_delim
20921RDYNAMIC!$RDYNAMIC$ac_delim
20922LIBOBJS!$LIBOBJS$ac_delim
20923LTLIBOBJS!$LTLIBOBJS$ac_delim
20924_ACEOF
20925
20926  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20927    break
20928  elif $ac_last_try; then
20929    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20930echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20931   { (exit 1); exit 1; }; }
20932  else
20933    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20934  fi
20935done
20936
20937ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20938if test -n "$ac_eof"; then
20939  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20940  ac_eof=`expr $ac_eof + 1`
20941fi
20942
20943cat >>$CONFIG_STATUS <<_ACEOF
20944cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20946_ACEOF
20947sed '
20948s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20949s/^/s,@/; s/!/@,|#_!!_#|/
20950:n
20951t n
20952s/'"$ac_delim"'$/,g/; t
20953s/$/\\/; p
20954N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20955' >>$CONFIG_STATUS <conf$$subs.sed
20956rm -f conf$$subs.sed
20957cat >>$CONFIG_STATUS <<_ACEOF
20958:end
20959s/|#_!!_#|//g
20960CEOF$ac_eof
20961_ACEOF
20962
20963
20964# VPATH may cause trouble with some makes, so we remove $(srcdir),
20965# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20966# trailing colons and then remove the whole line if VPATH becomes empty
20967# (actually we leave an empty line to preserve line numbers).
20968if test "x$srcdir" = x.; then
20969  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20970s/:*\$(srcdir):*/:/
20971s/:*\${srcdir}:*/:/
20972s/:*@srcdir@:*/:/
20973s/^\([^=]*=[	 ]*\):*/\1/
20974s/:*$//
20975s/^[^=]*=[	 ]*$//
20976}'
20977fi
20978
20979cat >>$CONFIG_STATUS <<\_ACEOF
20980fi # test -n "$CONFIG_FILES"
20981
20982
20983for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20984do
20985  case $ac_tag in
20986  :[FHLC]) ac_mode=$ac_tag; continue;;
20987  esac
20988  case $ac_mode$ac_tag in
20989  :[FHL]*:*);;
20990  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20991echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20992   { (exit 1); exit 1; }; };;
20993  :[FH]-) ac_tag=-:-;;
20994  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20995  esac
20996  ac_save_IFS=$IFS
20997  IFS=:
20998  set x $ac_tag
20999  IFS=$ac_save_IFS
21000  shift
21001  ac_file=$1
21002  shift
21003
21004  case $ac_mode in
21005  :L) ac_source=$1;;
21006  :[FH])
21007    ac_file_inputs=
21008    for ac_f
21009    do
21010      case $ac_f in
21011      -) ac_f="$tmp/stdin";;
21012      *) # Look for the file first in the build tree, then in the source tree
21013	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21014	 # because $ac_f cannot contain `:'.
21015	 test -f "$ac_f" ||
21016	   case $ac_f in
21017	   [\\/$]*) false;;
21018	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21019	   esac ||
21020	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21021echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21022   { (exit 1); exit 1; }; };;
21023      esac
21024      ac_file_inputs="$ac_file_inputs $ac_f"
21025    done
21026
21027    # Let's still pretend it is `configure' which instantiates (i.e., don't
21028    # use $as_me), people would be surprised to read:
21029    #    /* config.h.  Generated by config.status.  */
21030    configure_input="Generated from "`IFS=:
21031	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21032    if test x"$ac_file" != x-; then
21033      configure_input="$ac_file.  $configure_input"
21034      { echo "$as_me:$LINENO: creating $ac_file" >&5
21035echo "$as_me: creating $ac_file" >&6;}
21036    fi
21037
21038    case $ac_tag in
21039    *:-:* | *:-) cat >"$tmp/stdin";;
21040    esac
21041    ;;
21042  esac
21043
21044  ac_dir=`$as_dirname -- "$ac_file" ||
21045$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21046	 X"$ac_file" : 'X\(//\)[^/]' \| \
21047	 X"$ac_file" : 'X\(//\)$' \| \
21048	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21049echo X"$ac_file" |
21050    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21051	    s//\1/
21052	    q
21053	  }
21054	  /^X\(\/\/\)[^/].*/{
21055	    s//\1/
21056	    q
21057	  }
21058	  /^X\(\/\/\)$/{
21059	    s//\1/
21060	    q
21061	  }
21062	  /^X\(\/\).*/{
21063	    s//\1/
21064	    q
21065	  }
21066	  s/.*/./; q'`
21067  { as_dir="$ac_dir"
21068  case $as_dir in #(
21069  -*) as_dir=./$as_dir;;
21070  esac
21071  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21072    as_dirs=
21073    while :; do
21074      case $as_dir in #(
21075      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21076      *) as_qdir=$as_dir;;
21077      esac
21078      as_dirs="'$as_qdir' $as_dirs"
21079      as_dir=`$as_dirname -- "$as_dir" ||
21080$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21081	 X"$as_dir" : 'X\(//\)[^/]' \| \
21082	 X"$as_dir" : 'X\(//\)$' \| \
21083	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21084echo X"$as_dir" |
21085    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21086	    s//\1/
21087	    q
21088	  }
21089	  /^X\(\/\/\)[^/].*/{
21090	    s//\1/
21091	    q
21092	  }
21093	  /^X\(\/\/\)$/{
21094	    s//\1/
21095	    q
21096	  }
21097	  /^X\(\/\).*/{
21098	    s//\1/
21099	    q
21100	  }
21101	  s/.*/./; q'`
21102      test -d "$as_dir" && break
21103    done
21104    test -z "$as_dirs" || eval "mkdir $as_dirs"
21105  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21106echo "$as_me: error: cannot create directory $as_dir" >&2;}
21107   { (exit 1); exit 1; }; }; }
21108  ac_builddir=.
21109
21110case "$ac_dir" in
21111.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21112*)
21113  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21114  # A ".." for each directory in $ac_dir_suffix.
21115  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21116  case $ac_top_builddir_sub in
21117  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21118  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21119  esac ;;
21120esac
21121ac_abs_top_builddir=$ac_pwd
21122ac_abs_builddir=$ac_pwd$ac_dir_suffix
21123# for backward compatibility:
21124ac_top_builddir=$ac_top_build_prefix
21125
21126case $srcdir in
21127  .)  # We are building in place.
21128    ac_srcdir=.
21129    ac_top_srcdir=$ac_top_builddir_sub
21130    ac_abs_top_srcdir=$ac_pwd ;;
21131  [\\/]* | ?:[\\/]* )  # Absolute name.
21132    ac_srcdir=$srcdir$ac_dir_suffix;
21133    ac_top_srcdir=$srcdir
21134    ac_abs_top_srcdir=$srcdir ;;
21135  *) # Relative name.
21136    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21137    ac_top_srcdir=$ac_top_build_prefix$srcdir
21138    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21139esac
21140ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21141
21142
21143  case $ac_mode in
21144  :F)
21145  #
21146  # CONFIG_FILE
21147  #
21148
21149  case $INSTALL in
21150  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21151  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21152  esac
21153_ACEOF
21154
21155cat >>$CONFIG_STATUS <<\_ACEOF
21156# If the template does not know about datarootdir, expand it.
21157# FIXME: This hack should be removed a few years after 2.60.
21158ac_datarootdir_hack=; ac_datarootdir_seen=
21159
21160case `sed -n '/datarootdir/ {
21161  p
21162  q
21163}
21164/@datadir@/p
21165/@docdir@/p
21166/@infodir@/p
21167/@localedir@/p
21168/@mandir@/p
21169' $ac_file_inputs` in
21170*datarootdir*) ac_datarootdir_seen=yes;;
21171*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21172  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21173echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21174_ACEOF
21175cat >>$CONFIG_STATUS <<_ACEOF
21176  ac_datarootdir_hack='
21177  s&@datadir@&$datadir&g
21178  s&@docdir@&$docdir&g
21179  s&@infodir@&$infodir&g
21180  s&@localedir@&$localedir&g
21181  s&@mandir@&$mandir&g
21182    s&\\\${datarootdir}&$datarootdir&g' ;;
21183esac
21184_ACEOF
21185
21186# Neutralize VPATH when `$srcdir' = `.'.
21187# Shell code in configure.ac might set extrasub.
21188# FIXME: do we really want to maintain this feature?
21189cat >>$CONFIG_STATUS <<_ACEOF
21190  sed "$ac_vpsub
21191$extrasub
21192_ACEOF
21193cat >>$CONFIG_STATUS <<\_ACEOF
21194:t
21195/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21196s&@configure_input@&$configure_input&;t t
21197s&@top_builddir@&$ac_top_builddir_sub&;t t
21198s&@srcdir@&$ac_srcdir&;t t
21199s&@abs_srcdir@&$ac_abs_srcdir&;t t
21200s&@top_srcdir@&$ac_top_srcdir&;t t
21201s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21202s&@builddir@&$ac_builddir&;t t
21203s&@abs_builddir@&$ac_abs_builddir&;t t
21204s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21205s&@INSTALL@&$ac_INSTALL&;t t
21206$ac_datarootdir_hack
21207" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21208
21209test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21210  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21211  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21212  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21213which seems to be undefined.  Please make sure it is defined." >&5
21214echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21215which seems to be undefined.  Please make sure it is defined." >&2;}
21216
21217  rm -f "$tmp/stdin"
21218  case $ac_file in
21219  -) cat "$tmp/out"; rm -f "$tmp/out";;
21220  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21221  esac
21222 ;;
21223  :H)
21224  #
21225  # CONFIG_HEADER
21226  #
21227_ACEOF
21228
21229# Transform confdefs.h into a sed script `conftest.defines', that
21230# substitutes the proper values into config.h.in to produce config.h.
21231rm -f conftest.defines conftest.tail
21232# First, append a space to every undef/define line, to ease matching.
21233echo 's/$/ /' >conftest.defines
21234# Then, protect against being on the right side of a sed subst, or in
21235# an unquoted here document, in config.status.  If some macros were
21236# called several times there might be several #defines for the same
21237# symbol, which is useless.  But do not sort them, since the last
21238# AC_DEFINE must be honored.
21239ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21240# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21241# NAME is the cpp macro being defined, VALUE is the value it is being given.
21242# PARAMS is the parameter list in the macro definition--in most cases, it's
21243# just an empty string.
21244ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21245ac_dB='\\)[	 (].*,\\1define\\2'
21246ac_dC=' '
21247ac_dD=' ,'
21248
21249uniq confdefs.h |
21250  sed -n '
21251	t rset
21252	:rset
21253	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21254	t ok
21255	d
21256	:ok
21257	s/[\\&,]/\\&/g
21258	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21259	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21260  ' >>conftest.defines
21261
21262# Remove the space that was appended to ease matching.
21263# Then replace #undef with comments.  This is necessary, for
21264# example, in the case of _POSIX_SOURCE, which is predefined and required
21265# on some systems where configure will not decide to define it.
21266# (The regexp can be short, since the line contains either #define or #undef.)
21267echo 's/ $//
21268s,^[	 #]*u.*,/* & */,' >>conftest.defines
21269
21270# Break up conftest.defines:
21271ac_max_sed_lines=50
21272
21273# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21274# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21275# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21276# et cetera.
21277ac_in='$ac_file_inputs'
21278ac_out='"$tmp/out1"'
21279ac_nxt='"$tmp/out2"'
21280
21281while :
21282do
21283  # Write a here document:
21284    cat >>$CONFIG_STATUS <<_ACEOF
21285    # First, check the format of the line:
21286    cat >"\$tmp/defines.sed" <<\\CEOF
21287/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21288/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21289b
21290:def
21291_ACEOF
21292  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21293  echo 'CEOF
21294    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21295  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21296  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21297  grep . conftest.tail >/dev/null || break
21298  rm -f conftest.defines
21299  mv conftest.tail conftest.defines
21300done
21301rm -f conftest.defines conftest.tail
21302
21303echo "ac_result=$ac_in" >>$CONFIG_STATUS
21304cat >>$CONFIG_STATUS <<\_ACEOF
21305  if test x"$ac_file" != x-; then
21306    echo "/* $configure_input  */" >"$tmp/config.h"
21307    cat "$ac_result" >>"$tmp/config.h"
21308    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21309      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21310echo "$as_me: $ac_file is unchanged" >&6;}
21311    else
21312      rm -f $ac_file
21313      mv "$tmp/config.h" $ac_file
21314    fi
21315  else
21316    echo "/* $configure_input  */"
21317    cat "$ac_result"
21318  fi
21319  rm -f "$tmp/out12"
21320 ;;
21321
21322  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21323echo "$as_me: executing $ac_file commands" >&6;}
21324 ;;
21325  esac
21326
21327
21328  case $ac_file$ac_mode in
21329    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21330   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21331    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21332   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21333    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21334   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21335    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21336   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21337    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21338   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21339    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21340   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21341    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21342   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21343    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21344   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21345    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21346   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21347    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21348   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21349    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21350   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21351    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21352   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21353    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21354   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21355
21356  esac
21357done # for ac_tag
21358
21359
21360{ (exit 0); exit 0; }
21361_ACEOF
21362chmod +x $CONFIG_STATUS
21363ac_clean_files=$ac_clean_files_save
21364
21365
21366# configure is writing to config.log, and then calls config.status.
21367# config.status does its own redirection, appending to config.log.
21368# Unfortunately, on DOS this fails, as config.log is still kept open
21369# by configure, so config.status won't be able to write to it; its
21370# output is simply discarded.  So we exec the FD to /dev/null,
21371# effectively closing config.log, so it can be properly (re)opened and
21372# appended to by config.status.  When coming back to configure, we
21373# need to make the FD available again.
21374if test "$no_create" != yes; then
21375  ac_cs_success=:
21376  ac_config_status_args=
21377  test "$silent" = yes &&
21378    ac_config_status_args="$ac_config_status_args --quiet"
21379  exec 5>/dev/null
21380  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21381  exec 5>>config.log
21382  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21383  # would make configure fail if this is the last instruction.
21384  $ac_cs_success || { (exit 1); exit 1; }
21385fi
21386
21387#
21388# CONFIG_SUBDIRS section.
21389#
21390if test "$no_recursion" != yes; then
21391
21392  # Remove --cache-file and --srcdir arguments so they do not pile up.
21393  ac_sub_configure_args=
21394  ac_prev=
21395  eval "set x $ac_configure_args"
21396  shift
21397  for ac_arg
21398  do
21399    if test -n "$ac_prev"; then
21400      ac_prev=
21401      continue
21402    fi
21403    case $ac_arg in
21404    -cache-file | --cache-file | --cache-fil | --cache-fi \
21405    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21406      ac_prev=cache_file ;;
21407    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21408    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21409    | --c=*)
21410      ;;
21411    --config-cache | -C)
21412      ;;
21413    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21414      ac_prev=srcdir ;;
21415    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21416      ;;
21417    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21418      ac_prev=prefix ;;
21419    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21420      ;;
21421    *)
21422      case $ac_arg in
21423      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21424      esac
21425      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21426    esac
21427  done
21428
21429  # Always prepend --prefix to ensure using the same prefix
21430  # in subdir configurations.
21431  ac_arg="--prefix=$prefix"
21432  case $ac_arg in
21433  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21434  esac
21435  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21436
21437  ac_popdir=`pwd`
21438  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21439
21440    # Do not complain, so a configure script can configure whichever
21441    # parts of a large source tree are present.
21442    test -d "$srcdir/$ac_dir" || continue
21443
21444    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21445    echo "$as_me:$LINENO: $ac_msg" >&5
21446    echo "$ac_msg" >&6
21447    { as_dir="$ac_dir"
21448  case $as_dir in #(
21449  -*) as_dir=./$as_dir;;
21450  esac
21451  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21452    as_dirs=
21453    while :; do
21454      case $as_dir in #(
21455      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21456      *) as_qdir=$as_dir;;
21457      esac
21458      as_dirs="'$as_qdir' $as_dirs"
21459      as_dir=`$as_dirname -- "$as_dir" ||
21460$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21461	 X"$as_dir" : 'X\(//\)[^/]' \| \
21462	 X"$as_dir" : 'X\(//\)$' \| \
21463	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21464echo X"$as_dir" |
21465    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21466	    s//\1/
21467	    q
21468	  }
21469	  /^X\(\/\/\)[^/].*/{
21470	    s//\1/
21471	    q
21472	  }
21473	  /^X\(\/\/\)$/{
21474	    s//\1/
21475	    q
21476	  }
21477	  /^X\(\/\).*/{
21478	    s//\1/
21479	    q
21480	  }
21481	  s/.*/./; q'`
21482      test -d "$as_dir" && break
21483    done
21484    test -z "$as_dirs" || eval "mkdir $as_dirs"
21485  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21486echo "$as_me: error: cannot create directory $as_dir" >&2;}
21487   { (exit 1); exit 1; }; }; }
21488    ac_builddir=.
21489
21490case "$ac_dir" in
21491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21492*)
21493  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21494  # A ".." for each directory in $ac_dir_suffix.
21495  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21496  case $ac_top_builddir_sub in
21497  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21498  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21499  esac ;;
21500esac
21501ac_abs_top_builddir=$ac_pwd
21502ac_abs_builddir=$ac_pwd$ac_dir_suffix
21503# for backward compatibility:
21504ac_top_builddir=$ac_top_build_prefix
21505
21506case $srcdir in
21507  .)  # We are building in place.
21508    ac_srcdir=.
21509    ac_top_srcdir=$ac_top_builddir_sub
21510    ac_abs_top_srcdir=$ac_pwd ;;
21511  [\\/]* | ?:[\\/]* )  # Absolute name.
21512    ac_srcdir=$srcdir$ac_dir_suffix;
21513    ac_top_srcdir=$srcdir
21514    ac_abs_top_srcdir=$srcdir ;;
21515  *) # Relative name.
21516    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21517    ac_top_srcdir=$ac_top_build_prefix$srcdir
21518    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21519esac
21520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21521
21522
21523    cd "$ac_dir"
21524
21525    # Check for guested configure; otherwise get Cygnus style configure.
21526    if test -f "$ac_srcdir/configure.gnu"; then
21527      ac_sub_configure=$ac_srcdir/configure.gnu
21528    elif test -f "$ac_srcdir/configure"; then
21529      ac_sub_configure=$ac_srcdir/configure
21530    elif test -f "$ac_srcdir/configure.in"; then
21531      # This should be Cygnus configure.
21532      ac_sub_configure=$ac_aux_dir/configure
21533    else
21534      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21535echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21536      ac_sub_configure=
21537    fi
21538
21539    # The recursion is here.
21540    if test -n "$ac_sub_configure"; then
21541      # Make the cache file name correct relative to the subdirectory.
21542      case $cache_file in
21543      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21544      *) # Relative name.
21545	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21546      esac
21547
21548      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21549echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21550      # The eval makes quoting arguments work.
21551      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21552	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21553	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21554echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21555   { (exit 1); exit 1; }; }
21556    fi
21557
21558    cd "$ac_popdir"
21559  done
21560fi
21561
21562