configure revision a84b56771371cf1cd03812baff69164e7192115a
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for llvm 2.9svn.
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-2010 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.9svn'
565PACKAGE_STRING='llvm 2.9svn'
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
644ENABLE_POLLY
645LLVM_HAS_POLLY
646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
691ENABLE_DOXYGEN
692ENABLE_THREADS
693ENABLE_PIC
694ENABLE_SHARED
695ENABLE_TIMESTAMPS
696TARGETS_TO_BUILD
697LLVM_ENUM_TARGETS
698LLVM_ENUM_ASM_PRINTERS
699LLVM_ENUM_ASM_PARSERS
700LLVM_ENUM_DISASSEMBLERS
701ENABLE_CBE_PRINTF_A
702CLANGPATH
703CLANGXXPATH
704ENABLE_BUILT_CLANG
705OPTIMIZE_OPTION
706EXTRA_OPTIONS
707BINUTILS_INCDIR
708CXX
709CXXFLAGS
710ac_ct_CXX
711NM
712ifGNUmake
713LN_S
714CMP
715CP
716DATE
717FIND
718MKDIR
719MV
720RANLIB
721AR
722RM
723SED
724TAR
725BINPWD
726GRAPHVIZ
727DOT
728FDP
729NEATO
730TWOPI
731CIRCO
732GV
733DOTTY
734XDOT_PY
735PERL
736HAVE_PERL
737INSTALL_PROGRAM
738INSTALL_SCRIPT
739INSTALL_DATA
740BZIP2
741CAT
742DOXYGEN
743GROFF
744GZIP
745POD2HTML
746POD2MAN
747PDFROFF
748RUNTEST
749TCLSH
750ZIP
751OCAMLC
752OCAMLOPT
753OCAMLDEP
754OCAMLDOC
755GAS
756HAVE_LINK_VERSION_SCRIPT
757INSTALL_LTDL_TRUE
758INSTALL_LTDL_FALSE
759CONVENIENCE_LTDL_TRUE
760CONVENIENCE_LTDL_FALSE
761LIBADD_DL
762LLVMGCCCOMMAND
763LLVMGXXCOMMAND
764LLVMGCC
765LLVMGXX
766LLVMCC_OPTION
767NO_VARIADIC_MACROS
768NO_MISSING_FIELD_INITIALIZERS
769USE_UDIS86
770USE_OPROFILE
771HAVE_PTHREAD
772HUGE_VAL_SANITY
773MMAP_FILE
774LLVMCC_EMITIR_FLAG
775LLVMCC1
776LLVMCC1PLUS
777LLVMGCCDIR
778LLVMGCC_LANGS
779LLVMGCC_DRAGONEGG
780LLVMGCC_DISABLEOPT_FLAGS
781SHLIBEXT
782SHLIBPATH_VAR
783LLVM_PREFIX
784LLVM_BINDIR
785LLVM_LIBDIR
786LLVM_DATADIR
787LLVM_DOCSDIR
788LLVM_ETCDIR
789LLVM_INCLUDEDIR
790LLVM_INFODIR
791LLVM_MANDIR
792LLVM_CONFIGTIME
793BINDINGS_TO_BUILD
794ALL_BINDINGS
795OCAML_LIBDIR
796ENABLE_VISIBILITY_INLINES_HIDDEN
797RPATH
798RDYNAMIC
799LIBOBJS
800LTLIBOBJS'
801ac_subst_files=''
802      ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808CPPFLAGS
809CPP
810CXX
811CXXFLAGS
812CCC'
813ac_subdirs_all='projects/llvm-gcc
814projects/test-suite
815projects/llvm-test
816projects/poolalloc
817projects/llvm-poolalloc
818projects/sample
819projects/privbracket
820projects/llvm-stacker
821projects/llvm-reopt
822projects/llvm-java
823projects/llvm-tv
824projects/safecode
825projects/llvm-kernel
826tools/polly'
827
828# Initialize some variables set by options.
829ac_init_help=
830ac_init_version=false
831# The variables have the same names as the options, with
832# dashes changed to underlines.
833cache_file=/dev/null
834exec_prefix=NONE
835no_create=
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
844verbose=
845x_includes=NONE
846x_libraries=NONE
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
853# (The list follows the same order as the GNU Coding Standards.)
854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
873
874ac_prev=
875ac_dashdash=
876for ac_option
877do
878  # If the previous option needs an argument, assign it.
879  if test -n "$ac_prev"; then
880    eval $ac_prev=\$ac_option
881    ac_prev=
882    continue
883  fi
884
885  case $ac_option in
886  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887  *)	ac_optarg=yes ;;
888  esac
889
890  # Accept the important Cygnus configure options, so we can diagnose typos.
891
892  case $ac_dashdash$ac_option in
893  --)
894    ac_dashdash=yes ;;
895
896  -bindir | --bindir | --bindi | --bind | --bin | --bi)
897    ac_prev=bindir ;;
898  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899    bindir=$ac_optarg ;;
900
901  -build | --build | --buil | --bui | --bu)
902    ac_prev=build_alias ;;
903  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904    build_alias=$ac_optarg ;;
905
906  -cache-file | --cache-file | --cache-fil | --cache-fi \
907  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908    ac_prev=cache_file ;;
909  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911    cache_file=$ac_optarg ;;
912
913  --config-cache | -C)
914    cache_file=config.cache ;;
915
916  -datadir | --datadir | --datadi | --datad)
917    ac_prev=datadir ;;
918  -datadir=* | --datadir=* | --datadi=* | --datad=*)
919    datadir=$ac_optarg ;;
920
921  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922  | --dataroo | --dataro | --datar)
923    ac_prev=datarootdir ;;
924  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926    datarootdir=$ac_optarg ;;
927
928  -disable-* | --disable-*)
929    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930    # Reject names that are not valid shell variable names.
931    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
932      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
933   { (exit 1); exit 1; }; }
934    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
935    eval enable_$ac_feature=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
951      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
952   { (exit 1); exit 1; }; }
953    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
954    eval enable_$ac_feature=\$ac_optarg ;;
955
956  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958  | --exec | --exe | --ex)
959    ac_prev=exec_prefix ;;
960  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962  | --exec=* | --exe=* | --ex=*)
963    exec_prefix=$ac_optarg ;;
964
965  -gas | --gas | --ga | --g)
966    # Obsolete; use --with-gas.
967    with_gas=yes ;;
968
969  -help | --help | --hel | --he | -h)
970    ac_init_help=long ;;
971  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972    ac_init_help=recursive ;;
973  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974    ac_init_help=short ;;
975
976  -host | --host | --hos | --ho)
977    ac_prev=host_alias ;;
978  -host=* | --host=* | --hos=* | --ho=*)
979    host_alias=$ac_optarg ;;
980
981  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982    ac_prev=htmldir ;;
983  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984  | --ht=*)
985    htmldir=$ac_optarg ;;
986
987  -includedir | --includedir | --includedi | --included | --include \
988  | --includ | --inclu | --incl | --inc)
989    ac_prev=includedir ;;
990  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991  | --includ=* | --inclu=* | --incl=* | --inc=*)
992    includedir=$ac_optarg ;;
993
994  -infodir | --infodir | --infodi | --infod | --info | --inf)
995    ac_prev=infodir ;;
996  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997    infodir=$ac_optarg ;;
998
999  -libdir | --libdir | --libdi | --libd)
1000    ac_prev=libdir ;;
1001  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002    libdir=$ac_optarg ;;
1003
1004  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005  | --libexe | --libex | --libe)
1006    ac_prev=libexecdir ;;
1007  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008  | --libexe=* | --libex=* | --libe=*)
1009    libexecdir=$ac_optarg ;;
1010
1011  -localedir | --localedir | --localedi | --localed | --locale)
1012    ac_prev=localedir ;;
1013  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014    localedir=$ac_optarg ;;
1015
1016  -localstatedir | --localstatedir | --localstatedi | --localstated \
1017  | --localstate | --localstat | --localsta | --localst | --locals)
1018    ac_prev=localstatedir ;;
1019  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021    localstatedir=$ac_optarg ;;
1022
1023  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024    ac_prev=mandir ;;
1025  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026    mandir=$ac_optarg ;;
1027
1028  -nfp | --nfp | --nf)
1029    # Obsolete; use --without-fp.
1030    with_fp=no ;;
1031
1032  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033  | --no-cr | --no-c | -n)
1034    no_create=yes ;;
1035
1036  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038    no_recursion=yes ;;
1039
1040  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042  | --oldin | --oldi | --old | --ol | --o)
1043    ac_prev=oldincludedir ;;
1044  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047    oldincludedir=$ac_optarg ;;
1048
1049  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050    ac_prev=prefix ;;
1051  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052    prefix=$ac_optarg ;;
1053
1054  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055  | --program-pre | --program-pr | --program-p)
1056    ac_prev=program_prefix ;;
1057  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059    program_prefix=$ac_optarg ;;
1060
1061  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062  | --program-suf | --program-su | --program-s)
1063    ac_prev=program_suffix ;;
1064  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066    program_suffix=$ac_optarg ;;
1067
1068  -program-transform-name | --program-transform-name \
1069  | --program-transform-nam | --program-transform-na \
1070  | --program-transform-n | --program-transform- \
1071  | --program-transform | --program-transfor \
1072  | --program-transfo | --program-transf \
1073  | --program-trans | --program-tran \
1074  | --progr-tra | --program-tr | --program-t)
1075    ac_prev=program_transform_name ;;
1076  -program-transform-name=* | --program-transform-name=* \
1077  | --program-transform-nam=* | --program-transform-na=* \
1078  | --program-transform-n=* | --program-transform-=* \
1079  | --program-transform=* | --program-transfor=* \
1080  | --program-transfo=* | --program-transf=* \
1081  | --program-trans=* | --program-tran=* \
1082  | --progr-tra=* | --program-tr=* | --program-t=*)
1083    program_transform_name=$ac_optarg ;;
1084
1085  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086    ac_prev=pdfdir ;;
1087  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088    pdfdir=$ac_optarg ;;
1089
1090  -psdir | --psdir | --psdi | --psd | --ps)
1091    ac_prev=psdir ;;
1092  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093    psdir=$ac_optarg ;;
1094
1095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096  | -silent | --silent | --silen | --sile | --sil)
1097    silent=yes ;;
1098
1099  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100    ac_prev=sbindir ;;
1101  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102  | --sbi=* | --sb=*)
1103    sbindir=$ac_optarg ;;
1104
1105  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107  | --sharedst | --shareds | --shared | --share | --shar \
1108  | --sha | --sh)
1109    ac_prev=sharedstatedir ;;
1110  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113  | --sha=* | --sh=*)
1114    sharedstatedir=$ac_optarg ;;
1115
1116  -site | --site | --sit)
1117    ac_prev=site ;;
1118  -site=* | --site=* | --sit=*)
1119    site=$ac_optarg ;;
1120
1121  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122    ac_prev=srcdir ;;
1123  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124    srcdir=$ac_optarg ;;
1125
1126  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127  | --syscon | --sysco | --sysc | --sys | --sy)
1128    ac_prev=sysconfdir ;;
1129  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131    sysconfdir=$ac_optarg ;;
1132
1133  -target | --target | --targe | --targ | --tar | --ta | --t)
1134    ac_prev=target_alias ;;
1135  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136    target_alias=$ac_optarg ;;
1137
1138  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139    verbose=yes ;;
1140
1141  -version | --version | --versio | --versi | --vers | -V)
1142    ac_init_version=: ;;
1143
1144  -with-* | --with-*)
1145    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1152
1153  -without-* | --without-*)
1154    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155    # Reject names that are not valid shell variable names.
1156    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1157      { echo "$as_me: error: invalid package name: $ac_package" >&2
1158   { (exit 1); exit 1; }; }
1159    ac_package=`echo $ac_package | sed 's/-/_/g'`
1160    eval with_$ac_package=no ;;
1161
1162  --x)
1163    # Obsolete; use --with-x.
1164    with_x=yes ;;
1165
1166  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167  | --x-incl | --x-inc | --x-in | --x-i)
1168    ac_prev=x_includes ;;
1169  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171    x_includes=$ac_optarg ;;
1172
1173  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175    ac_prev=x_libraries ;;
1176  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178    x_libraries=$ac_optarg ;;
1179
1180  -*) { echo "$as_me: error: unrecognized option: $ac_option
1181Try \`$0 --help' for more information." >&2
1182   { (exit 1); exit 1; }; }
1183    ;;
1184
1185  *=*)
1186    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1189      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1190   { (exit 1); exit 1; }; }
1191    eval $ac_envvar=\$ac_optarg
1192    export $ac_envvar ;;
1193
1194  *)
1195    # FIXME: should be removed in autoconf 3.0.
1196    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200    ;;
1201
1202  esac
1203done
1204
1205if test -n "$ac_prev"; then
1206  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207  { echo "$as_me: error: missing argument to $ac_option" >&2
1208   { (exit 1); exit 1; }; }
1209fi
1210
1211# Be sure to have absolute directory names.
1212for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213		datadir sysconfdir sharedstatedir localstatedir includedir \
1214		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215		libdir localedir mandir
1216do
1217  eval ac_val=\$$ac_var
1218  case $ac_val in
1219    [\\/$]* | ?:[\\/]* )  continue;;
1220    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221  esac
1222  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1223   { (exit 1); exit 1; }; }
1224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235  if test "x$build_alias" = x; then
1236    cross_compiling=maybe
1237    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238    If a cross compiler is detected then cross compile mode will be used." >&2
1239  elif test "x$build_alias" != "x$host_alias"; then
1240    cross_compiling=yes
1241  fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
1250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253  { echo "$as_me: error: Working directory cannot be determined" >&2
1254   { (exit 1); exit 1; }; }
1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256  { echo "$as_me: error: pwd does not report name of working directory" >&2
1257   { (exit 1); exit 1; }; }
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262  ac_srcdir_defaulted=yes
1263  # Try the directory containing this script, then the parent directory.
1264  ac_confdir=`$as_dirname -- "$0" ||
1265$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266	 X"$0" : 'X\(//\)[^/]' \| \
1267	 X"$0" : 'X\(//\)$' \| \
1268	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1269echo X"$0" |
1270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)[^/].*/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)$/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\).*/{
1283	    s//\1/
1284	    q
1285	  }
1286	  s/.*/./; q'`
1287  srcdir=$ac_confdir
1288  if test ! -r "$srcdir/$ac_unique_file"; then
1289    srcdir=..
1290  fi
1291else
1292  ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1297   { (exit 1); exit 1; }; }
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
1301	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1302   { (exit 1); exit 1; }; }
1303	pwd)`
1304# When building in place, set srcdir=.
1305if test "$ac_abs_confdir" = "$ac_pwd"; then
1306  srcdir=.
1307fi
1308# Remove unnecessary trailing slashes from srcdir.
1309# Double slashes in file names in object file debugging info
1310# mess up M-x gdb in Emacs.
1311case $srcdir in
1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313esac
1314for ac_var in $ac_precious_vars; do
1315  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316  eval ac_env_${ac_var}_value=\$${ac_var}
1317  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319done
1320
1321#
1322# Report the --help message.
1323#
1324if test "$ac_init_help" = "long"; then
1325  # Omit some internal or obsolete options to make the list less imposing.
1326  # This message is too long to be a string in the A/UX 3.1 sh.
1327  cat <<_ACEOF
1328\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1329
1330Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335Defaults for the options are specified in brackets.
1336
1337Configuration:
1338  -h, --help              display this help and exit
1339      --help=short        display options specific to this package
1340      --help=recursive    display the short help of all the included packages
1341  -V, --version           display version information and exit
1342  -q, --quiet, --silent   do not print \`checking...' messages
1343      --cache-file=FILE   cache test results in FILE [disabled]
1344  -C, --config-cache      alias for \`--cache-file=config.cache'
1345  -n, --no-create         do not create output files
1346      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348Installation directories:
1349  --prefix=PREFIX         install architecture-independent files in PREFIX
1350			  [$ac_default_prefix]
1351  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352			  [PREFIX]
1353
1354By default, \`make install' will install all the files in
1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357for instance \`--prefix=\$HOME'.
1358
1359For better control, use the options below.
1360
1361Fine tuning of the installation directories:
1362  --bindir=DIR           user executables [EPREFIX/bin]
1363  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1364  --libexecdir=DIR       program executables [EPREFIX/libexec]
1365  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1366  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1367  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1368  --libdir=DIR           object code libraries [EPREFIX/lib]
1369  --includedir=DIR       C header files [PREFIX/include]
1370  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1371  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1372  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1373  --infodir=DIR          info documentation [DATAROOTDIR/info]
1374  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1375  --mandir=DIR           man documentation [DATAROOTDIR/man]
1376  --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1377  --htmldir=DIR          html documentation [DOCDIR]
1378  --dvidir=DIR           dvi documentation [DOCDIR]
1379  --pdfdir=DIR           pdf documentation [DOCDIR]
1380  --psdir=DIR            ps documentation [DOCDIR]
1381_ACEOF
1382
1383  cat <<\_ACEOF
1384
1385System types:
1386  --build=BUILD     configure for building on BUILD [guessed]
1387  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1388  --target=TARGET   configure for building compilers for TARGET [HOST]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393  case $ac_init_help in
1394     short | recursive ) echo "Configuration of llvm 2.9svn:";;
1395   esac
1396  cat <<\_ACEOF
1397
1398Optional Features:
1399  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401  --enable-polly          Use polly if available (default is YES)
1402  --enable-optimized      Compile with optimizations enabled (default is NO)
1403  --enable-profiling      Compile with profiling enabled (default is NO)
1404  --enable-assertions     Compile with assertion checks enabled (default is
1405                          YES)
1406  --enable-expensive-checks
1407                          Compile with expensive debug checks enabled (default
1408                          is NO)
1409  --enable-debug-runtime  Build runtime libs with debug symbols (default is
1410                          NO)
1411  --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1412                          optimization is on and YES if it's off)
1413  --enable-jit            Enable Just In Time Compiling (default is YES)
1414  --enable-doxygen        Build doxygen documentation (default is NO)
1415  --enable-threads        Use threads if available (default is YES)
1416  --enable-pic            Build LLVM with Position Independent Code (default
1417                          is YES)
1418  --enable-shared         Build a shared library and link tools against it
1419                          (default is NO)
1420  --enable-timestamps     Enable embedding timestamp information in build
1421                          (default is YES)
1422  --enable-targets        Build specific host targets: all or
1423                          target1,target2,... Valid targets are: host, x86,
1424                          x86_64, sparc, powerpc, alpha, arm, mips, spu,
1425                          xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1426                          (default=all)
1427  --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1428                          %a (default is YES)
1429  --enable-bindings       Build specific language bindings:
1430                          all,auto,none,{binding-name} (default=auto)
1431  --enable-libffi         Check for the presence of libffi (default is NO)
1432  --enable-ltdl-install   install libltdl
1433
1434Optional Packages:
1435  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1436  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1437  --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1438                          searches PATH)
1439  --with-llvmgcc          Specify location of llvm-gcc driver (default
1440                          searches PATH)
1441  --with-llvmgxx          Specify location of llvm-g++ driver (default
1442                          searches PATH)
1443  --with-clang            Specify location of clang compiler (default is
1444                          --with-built-clang)
1445  --with-built-clang      Use the compiled Clang as the LLVM compiler
1446                          (default=check)
1447  --with-optimize-option  Select the compiler options to use for optimized
1448                          builds
1449  --with-extra-options    Specify additional options to compile LLVM with
1450  --with-ocaml-libdir     Specify install location for ocaml bindings (default
1451                          is stdlib)
1452  --with-clang-resource-dir
1453                          Relative directory from the Clang binary for
1454                          resource files
1455  --with-c-include-dirs   Colon separated list of directories clang will
1456                          search for headers
1457  --with-cxx-include-root Directory with the libstdc++ headers.
1458  --with-cxx-include-arch Architecture of the libstdc++ headers.
1459  --with-cxx-include-32bit-dir
1460                          32 bit multilib dir.
1461  --with-cxx-include-64bit-dir
1462                          64 bit multilib directory.
1463  --with-binutils-include Specify path to binutils/include/ containing
1464                          plugin-api.h file for gold plugin.
1465  --with-tclinclude       directory where tcl headers are
1466  --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1467                          clang, or none; default=check)
1468  --with-udis86=<path>    Use udis86 external x86 disassembler library
1469  --with-oprofile=<prefix>
1470                          Tell OProfile >= 0.9.4 how to symbolize JIT output
1471
1472Some influential environment variables:
1473  CC          C compiler command
1474  CFLAGS      C compiler flags
1475  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1476              nonstandard directory <lib dir>
1477  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1478              you have headers in a nonstandard directory <include dir>
1479  CPP         C preprocessor
1480  CXX         C++ compiler command
1481  CXXFLAGS    C++ compiler flags
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <llvmbugs@cs.uiuc.edu>.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" || continue
1495    ac_builddir=.
1496
1497case "$ac_dir" in
1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499*)
1500  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1501  # A ".." for each directory in $ac_dir_suffix.
1502  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1503  case $ac_top_builddir_sub in
1504  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506  esac ;;
1507esac
1508ac_abs_top_builddir=$ac_pwd
1509ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510# for backward compatibility:
1511ac_top_builddir=$ac_top_build_prefix
1512
1513case $srcdir in
1514  .)  # We are building in place.
1515    ac_srcdir=.
1516    ac_top_srcdir=$ac_top_builddir_sub
1517    ac_abs_top_srcdir=$ac_pwd ;;
1518  [\\/]* | ?:[\\/]* )  # Absolute name.
1519    ac_srcdir=$srcdir$ac_dir_suffix;
1520    ac_top_srcdir=$srcdir
1521    ac_abs_top_srcdir=$srcdir ;;
1522  *) # Relative name.
1523    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524    ac_top_srcdir=$ac_top_build_prefix$srcdir
1525    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526esac
1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529    cd "$ac_dir" || { ac_status=$?; continue; }
1530    # Check for guested configure.
1531    if test -f "$ac_srcdir/configure.gnu"; then
1532      echo &&
1533      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534    elif test -f "$ac_srcdir/configure"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure" --help=recursive
1537    else
1538      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539    fi || ac_status=$?
1540    cd "$ac_pwd" || { ac_status=$?; break; }
1541  done
1542fi
1543
1544test -n "$ac_init_help" && exit $ac_status
1545if $ac_init_version; then
1546  cat <<\_ACEOF
1547llvm configure 2.9svn
1548generated by GNU Autoconf 2.60
1549
1550Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15512002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554
1555Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1556_ACEOF
1557  exit
1558fi
1559cat >config.log <<_ACEOF
1560This file contains any messages produced by compilers while
1561running configure, to aid debugging if configure makes a mistake.
1562
1563It was created by llvm $as_me 2.9svn, which was
1564generated by GNU Autoconf 2.60.  Invocation command line was
1565
1566  $ $0 $@
1567
1568_ACEOF
1569exec 5>>config.log
1570{
1571cat <<_ASUNAME
1572## --------- ##
1573## Platform. ##
1574## --------- ##
1575
1576hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1577uname -m = `(uname -m) 2>/dev/null || echo unknown`
1578uname -r = `(uname -r) 2>/dev/null || echo unknown`
1579uname -s = `(uname -s) 2>/dev/null || echo unknown`
1580uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581
1582/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1583/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1584
1585/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1586/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1587/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1588/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1589/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1590/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1591/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1592
1593_ASUNAME
1594
1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598  IFS=$as_save_IFS
1599  test -z "$as_dir" && as_dir=.
1600  echo "PATH: $as_dir"
1601done
1602IFS=$as_save_IFS
1603
1604} >&5
1605
1606cat >&5 <<_ACEOF
1607
1608
1609## ----------- ##
1610## Core tests. ##
1611## ----------- ##
1612
1613_ACEOF
1614
1615
1616# Keep a trace of the command line.
1617# Strip out --no-create and --no-recursion so they do not pile up.
1618# Strip out --silent because we don't want to record it for future runs.
1619# Also quote any args containing shell meta-characters.
1620# Make two passes to allow for proper duplicate-argument suppression.
1621ac_configure_args=
1622ac_configure_args0=
1623ac_configure_args1=
1624ac_must_keep_next=false
1625for ac_pass in 1 2
1626do
1627  for ac_arg
1628  do
1629    case $ac_arg in
1630    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1631    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632    | -silent | --silent | --silen | --sile | --sil)
1633      continue ;;
1634    *\'*)
1635      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1636    esac
1637    case $ac_pass in
1638    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1639    2)
1640      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1641      if test $ac_must_keep_next = true; then
1642	ac_must_keep_next=false # Got value, back to normal.
1643      else
1644	case $ac_arg in
1645	  *=* | --config-cache | -C | -disable-* | --disable-* \
1646	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1647	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1648	  | -with-* | --with-* | -without-* | --without-* | --x)
1649	    case "$ac_configure_args0 " in
1650	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1651	    esac
1652	    ;;
1653	  -* ) ac_must_keep_next=true ;;
1654	esac
1655      fi
1656      ac_configure_args="$ac_configure_args '$ac_arg'"
1657      ;;
1658    esac
1659  done
1660done
1661$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1662$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1663
1664# When interrupted or exit'd, cleanup temporary files, and complete
1665# config.log.  We remove comments because anyway the quotes in there
1666# would cause problems or look ugly.
1667# WARNING: Use '\'' to represent an apostrophe within the trap.
1668# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1669trap 'exit_status=$?
1670  # Save into config.log some information that might help in debugging.
1671  {
1672    echo
1673
1674    cat <<\_ASBOX
1675## ---------------- ##
1676## Cache variables. ##
1677## ---------------- ##
1678_ASBOX
1679    echo
1680    # The following way of writing the cache mishandles newlines in values,
1681(
1682  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1683    eval ac_val=\$$ac_var
1684    case $ac_val in #(
1685    *${as_nl}*)
1686      case $ac_var in #(
1687      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1688echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1689      esac
1690      case $ac_var in #(
1691      _ | IFS | as_nl) ;; #(
1692      *) $as_unset $ac_var ;;
1693      esac ;;
1694    esac
1695  done
1696  (set) 2>&1 |
1697    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1698    *${as_nl}ac_space=\ *)
1699      sed -n \
1700	"s/'\''/'\''\\\\'\'''\''/g;
1701	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702      ;; #(
1703    *)
1704      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1705      ;;
1706    esac |
1707    sort
1708)
1709    echo
1710
1711    cat <<\_ASBOX
1712## ----------------- ##
1713## Output variables. ##
1714## ----------------- ##
1715_ASBOX
1716    echo
1717    for ac_var in $ac_subst_vars
1718    do
1719      eval ac_val=\$$ac_var
1720      case $ac_val in
1721      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722      esac
1723      echo "$ac_var='\''$ac_val'\''"
1724    done | sort
1725    echo
1726
1727    if test -n "$ac_subst_files"; then
1728      cat <<\_ASBOX
1729## ------------------- ##
1730## File substitutions. ##
1731## ------------------- ##
1732_ASBOX
1733      echo
1734      for ac_var in $ac_subst_files
1735      do
1736	eval ac_val=\$$ac_var
1737	case $ac_val in
1738	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739	esac
1740	echo "$ac_var='\''$ac_val'\''"
1741      done | sort
1742      echo
1743    fi
1744
1745    if test -s confdefs.h; then
1746      cat <<\_ASBOX
1747## ----------- ##
1748## confdefs.h. ##
1749## ----------- ##
1750_ASBOX
1751      echo
1752      cat confdefs.h
1753      echo
1754    fi
1755    test "$ac_signal" != 0 &&
1756      echo "$as_me: caught signal $ac_signal"
1757    echo "$as_me: exit $exit_status"
1758  } >&5
1759  rm -f core *.core core.conftest.* &&
1760    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761    exit $exit_status
1762' 0
1763for ac_signal in 1 2 13 15; do
1764  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765done
1766ac_signal=0
1767
1768# confdefs.h avoids OS command line length limits that DEFS can exceed.
1769rm -f -r conftest* confdefs.h
1770
1771# Predefined preprocessor variables.
1772
1773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_NAME "$PACKAGE_NAME"
1775_ACEOF
1776
1777
1778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780_ACEOF
1781
1782
1783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_VERSION "$PACKAGE_VERSION"
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_STRING "$PACKAGE_STRING"
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795_ACEOF
1796
1797
1798# Let the site file select an alternate cache file if it wants to.
1799# Prefer explicitly selected file to automatically selected ones.
1800if test -n "$CONFIG_SITE"; then
1801  set x "$CONFIG_SITE"
1802elif test "x$prefix" != xNONE; then
1803  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1804else
1805  set x "$ac_default_prefix/share/config.site" \
1806	"$ac_default_prefix/etc/config.site"
1807fi
1808shift
1809for ac_site_file
1810do
1811  if test -r "$ac_site_file"; then
1812    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1813echo "$as_me: loading site script $ac_site_file" >&6;}
1814    sed 's/^/| /' "$ac_site_file" >&5
1815    . "$ac_site_file"
1816  fi
1817done
1818
1819if test -r "$cache_file"; then
1820  # Some versions of bash will fail to source /dev/null (special
1821  # files actually), so we avoid doing that.
1822  if test -f "$cache_file"; then
1823    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1824echo "$as_me: loading cache $cache_file" >&6;}
1825    case $cache_file in
1826      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827      *)                      . "./$cache_file";;
1828    esac
1829  fi
1830else
1831  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1832echo "$as_me: creating cache $cache_file" >&6;}
1833  >$cache_file
1834fi
1835
1836# Check that the precious variables saved in the cache have kept the same
1837# value.
1838ac_cache_corrupted=false
1839for ac_var in $ac_precious_vars; do
1840  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841  eval ac_new_set=\$ac_env_${ac_var}_set
1842  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843  eval ac_new_val=\$ac_env_${ac_var}_value
1844  case $ac_old_set,$ac_new_set in
1845    set,)
1846      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1847echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1848      ac_cache_corrupted=: ;;
1849    ,set)
1850      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1851echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1852      ac_cache_corrupted=: ;;
1853    ,);;
1854    *)
1855      if test "x$ac_old_val" != "x$ac_new_val"; then
1856	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1857echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1858	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1859echo "$as_me:   former value:  $ac_old_val" >&2;}
1860	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1861echo "$as_me:   current value: $ac_new_val" >&2;}
1862	ac_cache_corrupted=:
1863      fi;;
1864  esac
1865  # Pass precious variables to config.status.
1866  if test "$ac_new_set" = set; then
1867    case $ac_new_val in
1868    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1869    *) ac_arg=$ac_var=$ac_new_val ;;
1870    esac
1871    case " $ac_configure_args " in
1872      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1873      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874    esac
1875  fi
1876done
1877if $ac_cache_corrupted; then
1878  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1879echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1880  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1881echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1882   { (exit 1); exit 1; }; }
1883fi
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909ac_ext=c
1910ac_cpp='$CPP $CPPFLAGS'
1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916
1917LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1918
1919
1920
1921
1922
1923
1924
1925ac_aux_dir=
1926for ac_dir in autoconf "$srcdir"/autoconf; do
1927  if test -f "$ac_dir/install-sh"; then
1928    ac_aux_dir=$ac_dir
1929    ac_install_sh="$ac_aux_dir/install-sh -c"
1930    break
1931  elif test -f "$ac_dir/install.sh"; then
1932    ac_aux_dir=$ac_dir
1933    ac_install_sh="$ac_aux_dir/install.sh -c"
1934    break
1935  elif test -f "$ac_dir/shtool"; then
1936    ac_aux_dir=$ac_dir
1937    ac_install_sh="$ac_aux_dir/shtool install -c"
1938    break
1939  fi
1940done
1941if test -z "$ac_aux_dir"; then
1942  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1943echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1944   { (exit 1); exit 1; }; }
1945fi
1946
1947# These three variables are undocumented and unsupported,
1948# and are intended to be withdrawn in a future Autoconf release.
1949# They can cause serious problems if a builder's source tree is in a directory
1950# whose full name contains unusual characters.
1951ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
1955
1956
1957if test ${srcdir} != "." ; then
1958  if test -f ${srcdir}/include/llvm/Config/config.h ; then
1959    { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1960echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1961   { (exit 1); exit 1; }; }
1962  fi
1963fi
1964
1965
1966
1967if test -d ${srcdir}/projects/llvm-gcc ; then
1968  subdirs="$subdirs projects/llvm-gcc"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/test-suite ; then
1973  subdirs="$subdirs projects/test-suite"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/llvm-test ; then
1978  subdirs="$subdirs projects/llvm-test"
1979
1980fi
1981
1982if test -d ${srcdir}/projects/poolalloc ; then
1983  subdirs="$subdirs projects/poolalloc"
1984
1985fi
1986
1987if test -d ${srcdir}/projects/llvm-poolalloc ; then
1988  subdirs="$subdirs projects/llvm-poolalloc"
1989
1990fi
1991
1992for i in `ls ${srcdir}/projects`
1993do
1994  if test -d ${srcdir}/projects/${i} ; then
1995    case ${i} in
1996      sample)       subdirs="$subdirs projects/sample"
1997    ;;
1998      privbracket)  subdirs="$subdirs projects/privbracket"
1999 ;;
2000      llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2001 ;;
2002      llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2003;;
2004      llvm-java)    subdirs="$subdirs projects/llvm-java"
2005 ;;
2006      llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2007   ;;
2008      safecode)     subdirs="$subdirs projects/safecode"
2009 ;;
2010      llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2011 ;;
2012      llvm-gcc)       ;;
2013      test-suite)     ;;
2014      llvm-test)      ;;
2015      poolalloc)      ;;
2016      llvm-poolalloc) ;;
2017      *)
2018        { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2019echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2020        ;;
2021    esac
2022  fi
2023done
2024
2025# Check whether --enable-polly was given.
2026if test "${enable_polly+set}" = set; then
2027  enableval=$enable_polly;
2028else
2029  enableval=default
2030fi
2031
2032case "$enableval" in
2033  yes) ENABLE_POLLY=1
2034 ;;
2035  no)  ENABLE_POLLY=0
2036 ;;
2037  default) ENABLE_POLLY=1
2038 ;;
2039  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2040echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2041   { (exit 1); exit 1; }; } ;;
2042esac
2043
2044
2045if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2046  LLVM_HAS_POLLY=1
2047
2048  subdirs="$subdirs tools/polly"
2049
2050fi
2051
2052
2053# Make sure we can run config.sub.
2054$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2055  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057   { (exit 1); exit 1; }; }
2058
2059{ echo "$as_me:$LINENO: checking build system type" >&5
2060echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2061if test "${ac_cv_build+set}" = set; then
2062  echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064  ac_build_alias=$build_alias
2065test "x$ac_build_alias" = x &&
2066  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067test "x$ac_build_alias" = x &&
2068  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070   { (exit 1); exit 1; }; }
2071ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074   { (exit 1); exit 1; }; }
2075
2076fi
2077{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078echo "${ECHO_T}$ac_cv_build" >&6; }
2079case $ac_cv_build in
2080*-*-*) ;;
2081*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082echo "$as_me: error: invalid value of canonical build" >&2;}
2083   { (exit 1); exit 1; }; };;
2084esac
2085build=$ac_cv_build
2086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_build
2088shift
2089build_cpu=$1
2090build_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094build_os=$*
2095IFS=$ac_save_IFS
2096case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2097
2098
2099{ echo "$as_me:$LINENO: checking host system type" >&5
2100echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2101if test "${ac_cv_host+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  if test "x$host_alias" = x; then
2105  ac_cv_host=$ac_cv_build
2106else
2107  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2108    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110   { (exit 1); exit 1; }; }
2111fi
2112
2113fi
2114{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115echo "${ECHO_T}$ac_cv_host" >&6; }
2116case $ac_cv_host in
2117*-*-*) ;;
2118*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119echo "$as_me: error: invalid value of canonical host" >&2;}
2120   { (exit 1); exit 1; }; };;
2121esac
2122host=$ac_cv_host
2123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_host
2125shift
2126host_cpu=$1
2127host_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131host_os=$*
2132IFS=$ac_save_IFS
2133case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2134
2135
2136{ echo "$as_me:$LINENO: checking target system type" >&5
2137echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2138if test "${ac_cv_target+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  if test "x$target_alias" = x; then
2142  ac_cv_target=$ac_cv_host
2143else
2144  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2145    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2146echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2147   { (exit 1); exit 1; }; }
2148fi
2149
2150fi
2151{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2152echo "${ECHO_T}$ac_cv_target" >&6; }
2153case $ac_cv_target in
2154*-*-*) ;;
2155*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2156echo "$as_me: error: invalid value of canonical target" >&2;}
2157   { (exit 1); exit 1; }; };;
2158esac
2159target=$ac_cv_target
2160ac_save_IFS=$IFS; IFS='-'
2161set x $ac_cv_target
2162shift
2163target_cpu=$1
2164target_vendor=$2
2165shift; shift
2166# Remember, the first character of IFS is used to create $*,
2167# except with old shells:
2168target_os=$*
2169IFS=$ac_save_IFS
2170case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2171
2172
2173# The aliases save the names the user supplied, while $host etc.
2174# will get canonicalized.
2175test -n "$target_alias" &&
2176  test "$program_prefix$program_suffix$program_transform_name" = \
2177    NONENONEs,x,x, &&
2178  program_prefix=${target_alias}-
2179
2180{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2181echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2182if test "${llvm_cv_os_type+set}" = set; then
2183  echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185  case $host in
2186  *-*-aix*)
2187    llvm_cv_link_all_option="-Wl,--whole-archive"
2188    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2189    llvm_cv_os_type="AIX"
2190    llvm_cv_platform_type="Unix" ;;
2191  *-*-irix*)
2192    llvm_cv_link_all_option="-Wl,--whole-archive"
2193    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2194    llvm_cv_os_type="IRIX"
2195    llvm_cv_platform_type="Unix" ;;
2196  *-*-cygwin*)
2197    llvm_cv_link_all_option="-Wl,--whole-archive"
2198    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2199    llvm_cv_os_type="Cygwin"
2200    llvm_cv_platform_type="Unix" ;;
2201  *-*-darwin*)
2202    llvm_cv_link_all_option="-Wl,-all_load"
2203    llvm_cv_no_link_all_option="-Wl,-noall_load"
2204    llvm_cv_os_type="Darwin"
2205    llvm_cv_platform_type="Unix" ;;
2206  *-*-minix*)
2207    llvm_cv_link_all_option="-Wl,-all_load"
2208    llvm_cv_no_link_all_option="-Wl,-noall_load"
2209    llvm_cv_os_type="Minix"
2210    llvm_cv_platform_type="Unix" ;;
2211  *-*-freebsd*)
2212    llvm_cv_link_all_option="-Wl,--whole-archive"
2213    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2214    llvm_cv_os_type="FreeBSD"
2215    llvm_cv_platform_type="Unix" ;;
2216  *-*-openbsd*)
2217    llvm_cv_link_all_option="-Wl,--whole-archive"
2218    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2219    llvm_cv_os_type="OpenBSD"
2220    llvm_cv_platform_type="Unix" ;;
2221  *-*-netbsd*)
2222    llvm_cv_link_all_option="-Wl,--whole-archive"
2223    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2224    llvm_cv_os_type="NetBSD"
2225    llvm_cv_platform_type="Unix" ;;
2226  *-*-dragonfly*)
2227    llvm_cv_link_all_option="-Wl,--whole-archive"
2228    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229    llvm_cv_os_type="DragonFly"
2230    llvm_cv_platform_type="Unix" ;;
2231  *-*-hpux*)
2232    llvm_cv_link_all_option="-Wl,--whole-archive"
2233    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234    llvm_cv_os_type="HP-UX"
2235    llvm_cv_platform_type="Unix" ;;
2236  *-*-interix*)
2237    llvm_cv_link_all_option="-Wl,--whole-archive"
2238    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2239    llvm_cv_os_type="Interix"
2240    llvm_cv_platform_type="Unix" ;;
2241  *-*-linux*)
2242    llvm_cv_link_all_option="-Wl,--whole-archive"
2243    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244    llvm_cv_os_type="Linux"
2245    llvm_cv_platform_type="Unix" ;;
2246  *-*-solaris*)
2247    llvm_cv_link_all_option="-Wl,-z,allextract"
2248    llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2249    llvm_cv_os_type="SunOS"
2250    llvm_cv_platform_type="Unix" ;;
2251  *-*-auroraux*)
2252    llvm_cv_link_all_option="-Wl,-z,allextract"
2253    llvm_cv_link_all_option="-Wl,-z,defaultextract"
2254    llvm_cv_os_type="AuroraUX"
2255    llvm_cv_platform_type="Unix" ;;
2256  *-*-win32*)
2257    llvm_cv_link_all_option="-Wl,--whole-archive"
2258    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259    llvm_cv_os_type="Win32"
2260    llvm_cv_platform_type="Win32" ;;
2261  *-*-mingw*)
2262    llvm_cv_link_all_option="-Wl,--whole-archive"
2263    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264    llvm_cv_os_type="MingW"
2265    llvm_cv_platform_type="Win32" ;;
2266  *-*-haiku*)
2267    llvm_cv_link_all_option="-Wl,--whole-archive"
2268    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269    llvm_cv_os_type="Haiku"
2270    llvm_cv_platform_type="Unix" ;;
2271  *-unknown-eabi*)
2272    llvm_cv_link_all_option="-Wl,--whole-archive"
2273    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274    llvm_cv_os_type="Freestanding"
2275    llvm_cv_platform_type="Unix" ;;
2276  *-unknown-elf*)
2277    llvm_cv_link_all_option="-Wl,--whole-archive"
2278    llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279    llvm_cv_os_type="Freestanding"
2280    llvm_cv_platform_type="Unix" ;;
2281  *)
2282    llvm_cv_link_all_option=""
2283    llvm_cv_no_link_all_option=""
2284    llvm_cv_os_type="Unknown"
2285    llvm_cv_platform_type="Unknown" ;;
2286esac
2287fi
2288{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2289echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2290
2291{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2292echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2293if test "${llvm_cv_target_os_type+set}" = set; then
2294  echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296  case $target in
2297  *-*-aix*)
2298    llvm_cv_target_os_type="AIX" ;;
2299  *-*-irix*)
2300    llvm_cv_target_os_type="IRIX" ;;
2301  *-*-cygwin*)
2302    llvm_cv_target_os_type="Cygwin" ;;
2303  *-*-darwin*)
2304    llvm_cv_target_os_type="Darwin" ;;
2305  *-*-minix*)
2306    llvm_cv_target_os_type="Minix" ;;
2307  *-*-freebsd*)
2308    llvm_cv_target_os_type="FreeBSD" ;;
2309  *-*-openbsd*)
2310    llvm_cv_target_os_type="OpenBSD" ;;
2311  *-*-netbsd*)
2312    llvm_cv_target_os_type="NetBSD" ;;
2313  *-*-dragonfly*)
2314    llvm_cv_target_os_type="DragonFly" ;;
2315  *-*-hpux*)
2316    llvm_cv_target_os_type="HP-UX" ;;
2317  *-*-interix*)
2318    llvm_cv_target_os_type="Interix" ;;
2319  *-*-linux*)
2320    llvm_cv_target_os_type="Linux" ;;
2321  *-*-solaris*)
2322    llvm_cv_target_os_type="SunOS" ;;
2323  *-*-auroraux*)
2324    llvm_cv_target_os_type="AuroraUX" ;;
2325  *-*-win32*)
2326    llvm_cv_target_os_type="Win32" ;;
2327  *-*-mingw*)
2328    llvm_cv_target_os_type="MingW" ;;
2329  *-*-haiku*)
2330    llvm_cv_target_os_type="Haiku" ;;
2331  *-unknown-eabi*)
2332    llvm_cv_target_os_type="Freestanding" ;;
2333  *)
2334    llvm_cv_target_os_type="Unknown" ;;
2335esac
2336fi
2337{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2338echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2339
2340if test "$llvm_cv_os_type" = "Unknown" ; then
2341  { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2342echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2343   { (exit 1); exit 1; }; }
2344fi
2345
2346OS=$llvm_cv_os_type
2347
2348HOST_OS=$llvm_cv_os_type
2349
2350TARGET_OS=$llvm_cv_target_os_type
2351
2352
2353LINKALL=$llvm_cv_link_all_option
2354
2355NOLINKALL=$llvm_cv_no_link_all_option
2356
2357
2358case $llvm_cv_platform_type in
2359  Unix)
2360
2361cat >>confdefs.h <<\_ACEOF
2362#define LLVM_ON_UNIX 1
2363_ACEOF
2364
2365    LLVM_ON_UNIX=1
2366
2367    LLVM_ON_WIN32=0
2368
2369    ;;
2370  Win32)
2371
2372cat >>confdefs.h <<\_ACEOF
2373#define LLVM_ON_WIN32 1
2374_ACEOF
2375
2376    LLVM_ON_UNIX=0
2377
2378    LLVM_ON_WIN32=1
2379
2380    ;;
2381esac
2382
2383{ echo "$as_me:$LINENO: checking target architecture" >&5
2384echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2385if test "${llvm_cv_target_arch+set}" = set; then
2386  echo $ECHO_N "(cached) $ECHO_C" >&6
2387else
2388  case $target in
2389  i?86-*)                 llvm_cv_target_arch="x86" ;;
2390  amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2391  sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2392  powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2393  alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2394  arm*-*)                 llvm_cv_target_arch="ARM" ;;
2395  mips-*)                 llvm_cv_target_arch="Mips" ;;
2396  xcore-*)                llvm_cv_target_arch="XCore" ;;
2397  msp430-*)               llvm_cv_target_arch="MSP430" ;;
2398  s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2399  bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2400  mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2401  ptx-*)                  llvm_cv_target_arch="PTX" ;;
2402  *)                      llvm_cv_target_arch="Unknown" ;;
2403esac
2404fi
2405{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2406echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2407
2408if test "$llvm_cv_target_arch" = "Unknown" ; then
2409  { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2410echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2411fi
2412
2413# Determine the LLVM native architecture for the target
2414case "$llvm_cv_target_arch" in
2415    x86)     LLVM_NATIVE_ARCH="X86" ;;
2416    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2417    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2418esac
2419
2420ARCH=$llvm_cv_target_arch
2421
2422
2423ac_ext=c
2424ac_cpp='$CPP $CPPFLAGS'
2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428if test -n "$ac_tool_prefix"; then
2429  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430set dummy ${ac_tool_prefix}gcc; ac_word=$2
2431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433if test "${ac_cv_prog_CC+set}" = set; then
2434  echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436  if test -n "$CC"; then
2437  ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442  IFS=$as_save_IFS
2443  test -z "$as_dir" && as_dir=.
2444  for ac_exec_ext in '' $ac_executable_extensions; do
2445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2446    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451done
2452IFS=$as_save_IFS
2453
2454fi
2455fi
2456CC=$ac_cv_prog_CC
2457if test -n "$CC"; then
2458  { echo "$as_me:$LINENO: result: $CC" >&5
2459echo "${ECHO_T}$CC" >&6; }
2460else
2461  { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
2463fi
2464
2465
2466fi
2467if test -z "$ac_cv_prog_CC"; then
2468  ac_ct_CC=$CC
2469  # Extract the first word of "gcc", so it can be a program name with args.
2470set dummy gcc; ac_word=$2
2471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474  echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476  if test -n "$ac_ct_CC"; then
2477  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482  IFS=$as_save_IFS
2483  test -z "$as_dir" && as_dir=.
2484  for ac_exec_ext in '' $ac_executable_extensions; do
2485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2486    ac_cv_prog_ac_ct_CC="gcc"
2487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488    break 2
2489  fi
2490done
2491done
2492IFS=$as_save_IFS
2493
2494fi
2495fi
2496ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497if test -n "$ac_ct_CC"; then
2498  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499echo "${ECHO_T}$ac_ct_CC" >&6; }
2500else
2501  { echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6; }
2503fi
2504
2505  if test "x$ac_ct_CC" = x; then
2506    CC=""
2507  else
2508    case $cross_compiling:$ac_tool_warned in
2509yes:)
2510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511whose name does not start with the host triplet.  If you think this
2512configuration is useful to you, please write to autoconf@gnu.org." >&5
2513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514whose name does not start with the host triplet.  If you think this
2515configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516ac_tool_warned=yes ;;
2517esac
2518    CC=$ac_ct_CC
2519  fi
2520else
2521  CC="$ac_cv_prog_CC"
2522fi
2523
2524if test -z "$CC"; then
2525          if test -n "$ac_tool_prefix"; then
2526    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2527set dummy ${ac_tool_prefix}cc; ac_word=$2
2528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530if test "${ac_cv_prog_CC+set}" = set; then
2531  echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533  if test -n "$CC"; then
2534  ac_cv_prog_CC="$CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541  for ac_exec_ext in '' $ac_executable_extensions; do
2542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2543    ac_cv_prog_CC="${ac_tool_prefix}cc"
2544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553CC=$ac_cv_prog_CC
2554if test -n "$CC"; then
2555  { echo "$as_me:$LINENO: result: $CC" >&5
2556echo "${ECHO_T}$CC" >&6; }
2557else
2558  { echo "$as_me:$LINENO: result: no" >&5
2559echo "${ECHO_T}no" >&6; }
2560fi
2561
2562
2563  fi
2564fi
2565if test -z "$CC"; then
2566  # Extract the first word of "cc", so it can be a program name with args.
2567set dummy cc; ac_word=$2
2568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570if test "${ac_cv_prog_CC+set}" = set; then
2571  echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573  if test -n "$CC"; then
2574  ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
2576  ac_prog_rejected=no
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580  IFS=$as_save_IFS
2581  test -z "$as_dir" && as_dir=.
2582  for ac_exec_ext in '' $ac_executable_extensions; do
2583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2584    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585       ac_prog_rejected=yes
2586       continue
2587     fi
2588    ac_cv_prog_CC="cc"
2589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590    break 2
2591  fi
2592done
2593done
2594IFS=$as_save_IFS
2595
2596if test $ac_prog_rejected = yes; then
2597  # We found a bogon in the path, so make sure we never use it.
2598  set dummy $ac_cv_prog_CC
2599  shift
2600  if test $# != 0; then
2601    # We chose a different compiler from the bogus one.
2602    # However, it has the same basename, so the bogon will be chosen
2603    # first if we set CC to just the basename; use the full file name.
2604    shift
2605    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2606  fi
2607fi
2608fi
2609fi
2610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
2612  { echo "$as_me:$LINENO: result: $CC" >&5
2613echo "${ECHO_T}$CC" >&6; }
2614else
2615  { echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6; }
2617fi
2618
2619
2620fi
2621if test -z "$CC"; then
2622  if test -n "$ac_tool_prefix"; then
2623  for ac_prog in cl.exe
2624  do
2625    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629if test "${ac_cv_prog_CC+set}" = set; then
2630  echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632  if test -n "$CC"; then
2633  ac_cv_prog_CC="$CC" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640  for ac_exec_ext in '' $ac_executable_extensions; do
2641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2642    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644    break 2
2645  fi
2646done
2647done
2648IFS=$as_save_IFS
2649
2650fi
2651fi
2652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
2654  { echo "$as_me:$LINENO: result: $CC" >&5
2655echo "${ECHO_T}$CC" >&6; }
2656else
2657  { echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6; }
2659fi
2660
2661
2662    test -n "$CC" && break
2663  done
2664fi
2665if test -z "$CC"; then
2666  ac_ct_CC=$CC
2667  for ac_prog in cl.exe
2668do
2669  # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
2671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674  echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676  if test -n "$ac_ct_CC"; then
2677  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684  for ac_exec_ext in '' $ac_executable_extensions; do
2685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2686    ac_cv_prog_ac_ct_CC="$ac_prog"
2687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688    break 2
2689  fi
2690done
2691done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697if test -n "$ac_ct_CC"; then
2698  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2699echo "${ECHO_T}$ac_ct_CC" >&6; }
2700else
2701  { echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6; }
2703fi
2704
2705
2706  test -n "$ac_ct_CC" && break
2707done
2708
2709  if test "x$ac_ct_CC" = x; then
2710    CC=""
2711  else
2712    case $cross_compiling:$ac_tool_warned in
2713yes:)
2714{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715whose name does not start with the host triplet.  If you think this
2716configuration is useful to you, please write to autoconf@gnu.org." >&5
2717echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718whose name does not start with the host triplet.  If you think this
2719configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720ac_tool_warned=yes ;;
2721esac
2722    CC=$ac_ct_CC
2723  fi
2724fi
2725
2726fi
2727
2728
2729test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730See \`config.log' for more details." >&5
2731echo "$as_me: error: no acceptable C compiler found in \$PATH
2732See \`config.log' for more details." >&2;}
2733   { (exit 1); exit 1; }; }
2734
2735# Provide some information about the compiler.
2736echo "$as_me:$LINENO: checking for C compiler version" >&5
2737ac_compiler=`set X $ac_compile; echo $2`
2738{ (ac_try="$ac_compiler --version >&5"
2739case "(($ac_try" in
2740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741  *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744  (eval "$ac_compiler --version >&5") 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }
2748{ (ac_try="$ac_compiler -v >&5"
2749case "(($ac_try" in
2750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751  *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754  (eval "$ac_compiler -v >&5") 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }
2758{ (ac_try="$ac_compiler -V >&5"
2759case "(($ac_try" in
2760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761  *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764  (eval "$ac_compiler -V >&5") 2>&5
2765  ac_status=$?
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }
2768
2769cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h.  */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h.  */
2775
2776int
2777main ()
2778{
2779
2780  ;
2781  return 0;
2782}
2783_ACEOF
2784ac_clean_files_save=$ac_clean_files
2785ac_clean_files="$ac_clean_files a.out a.exe b.out"
2786# Try to create an executable without -o first, disregard a.out.
2787# It will help us diagnose broken compilers, and finding out an intuition
2788# of exeext.
2789{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792#
2793# List of possible output files, starting from the most likely.
2794# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795# only as a last resort.  b.out is created by i960 compilers.
2796ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797#
2798# The IRIX 6 linker writes into existing files which may not be
2799# executable, retaining their permissions.  Remove them first so a
2800# subsequent execution test works.
2801ac_rmfiles=
2802for ac_file in $ac_files
2803do
2804  case $ac_file in
2805    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2806    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807  esac
2808done
2809rm -f $ac_rmfiles
2810
2811if { (ac_try="$ac_link_default"
2812case "(($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_link_default") 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }; then
2821  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2824# so that the user can short-circuit this test for compilers unknown to
2825# Autoconf.
2826for ac_file in $ac_files
2827do
2828  test -f "$ac_file" || continue
2829  case $ac_file in
2830    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2831	;;
2832    [ab].out )
2833	# We found the default executable, but exeext='' is most
2834	# certainly right.
2835	break;;
2836    *.* )
2837        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838	then :; else
2839	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840	fi
2841	# We set ac_cv_exeext here because the later test for it is not
2842	# safe: cross compilers may not add the suffix if given an `-o'
2843	# argument, so we may need to know it at that point already.
2844	# Even if this section looks crufty: it has the advantage of
2845	# actually working.
2846	break;;
2847    * )
2848	break;;
2849  esac
2850done
2851test "$ac_cv_exeext" = no && ac_cv_exeext=
2852
2853else
2854  echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: C compiler cannot create executables
2860See \`config.log' for more details." >&2;}
2861   { (exit 77); exit 77; }; }
2862fi
2863
2864ac_exeext=$ac_cv_exeext
2865{ echo "$as_me:$LINENO: result: $ac_file" >&5
2866echo "${ECHO_T}$ac_file" >&6; }
2867
2868# Check that the compiler produces executables we can run.  If not, either
2869# the compiler is broken, or we cross compile.
2870{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2871echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2872# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2873# If not cross compiling, check that we can run a simple program.
2874if test "$cross_compiling" != yes; then
2875  if { ac_try='./$ac_file'
2876  { (case "(($ac_try" in
2877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878  *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881  (eval "$ac_try") 2>&5
2882  ac_status=$?
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); }; }; then
2885    cross_compiling=no
2886  else
2887    if test "$cross_compiling" = maybe; then
2888	cross_compiling=yes
2889    else
2890	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2891If you meant to cross compile, use \`--host'.
2892See \`config.log' for more details." >&5
2893echo "$as_me: error: cannot run C compiled programs.
2894If you meant to cross compile, use \`--host'.
2895See \`config.log' for more details." >&2;}
2896   { (exit 1); exit 1; }; }
2897    fi
2898  fi
2899fi
2900{ echo "$as_me:$LINENO: result: yes" >&5
2901echo "${ECHO_T}yes" >&6; }
2902
2903rm -f a.out a.exe conftest$ac_cv_exeext b.out
2904ac_clean_files=$ac_clean_files_save
2905# Check that the compiler produces executables we can run.  If not, either
2906# the compiler is broken, or we cross compile.
2907{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2908echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2909{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2910echo "${ECHO_T}$cross_compiling" >&6; }
2911
2912{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2913echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2914if { (ac_try="$ac_link"
2915case "(($ac_try" in
2916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917  *) ac_try_echo=$ac_try;;
2918esac
2919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920  (eval "$ac_link") 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; then
2924  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2925# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2926# work properly (i.e., refer to `conftest.exe'), while it won't with
2927# `rm'.
2928for ac_file in conftest.exe conftest conftest.*; do
2929  test -f "$ac_file" || continue
2930  case $ac_file in
2931    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2932    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933	  break;;
2934    * ) break;;
2935  esac
2936done
2937else
2938  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2939See \`config.log' for more details." >&5
2940echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2941See \`config.log' for more details." >&2;}
2942   { (exit 1); exit 1; }; }
2943fi
2944
2945rm -f conftest$ac_cv_exeext
2946{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2947echo "${ECHO_T}$ac_cv_exeext" >&6; }
2948
2949rm -f conftest.$ac_ext
2950EXEEXT=$ac_cv_exeext
2951ac_exeext=$EXEEXT
2952{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2953echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2954if test "${ac_cv_objext+set}" = set; then
2955  echo $ECHO_N "(cached) $ECHO_C" >&6
2956else
2957  cat >conftest.$ac_ext <<_ACEOF
2958/* confdefs.h.  */
2959_ACEOF
2960cat confdefs.h >>conftest.$ac_ext
2961cat >>conftest.$ac_ext <<_ACEOF
2962/* end confdefs.h.  */
2963
2964int
2965main ()
2966{
2967
2968  ;
2969  return 0;
2970}
2971_ACEOF
2972rm -f conftest.o conftest.obj
2973if { (ac_try="$ac_compile"
2974case "(($ac_try" in
2975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976  *) ac_try_echo=$ac_try;;
2977esac
2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979  (eval "$ac_compile") 2>&5
2980  ac_status=$?
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); }; then
2983  for ac_file in conftest.o conftest.obj conftest.*; do
2984  test -f "$ac_file" || continue;
2985  case $ac_file in
2986    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2987    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2988       break;;
2989  esac
2990done
2991else
2992  echo "$as_me: failed program was:" >&5
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
2995{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details." >&5
2997echo "$as_me: error: cannot compute suffix of object files: cannot compile
2998See \`config.log' for more details." >&2;}
2999   { (exit 1); exit 1; }; }
3000fi
3001
3002rm -f conftest.$ac_cv_objext conftest.$ac_ext
3003fi
3004{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3005echo "${ECHO_T}$ac_cv_objext" >&6; }
3006OBJEXT=$ac_cv_objext
3007ac_objext=$OBJEXT
3008{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (ac_try="$ac_compile"
3033case "(($ac_try" in
3034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035  *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038  (eval "$ac_compile") 2>conftest.er1
3039  ac_status=$?
3040  grep -v '^ *+' conftest.er1 >conftest.err
3041  rm -f conftest.er1
3042  cat conftest.err >&5
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); } &&
3045	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3046  { (case "(($ac_try" in
3047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048  *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051  (eval "$ac_try") 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; } &&
3055	 { ac_try='test -s conftest.$ac_objext'
3056  { (case "(($ac_try" in
3057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058  *) ac_try_echo=$ac_try;;
3059esac
3060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061  (eval "$ac_try") 2>&5
3062  ac_status=$?
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }; }; then
3065  ac_compiler_gnu=yes
3066else
3067  echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070	ac_compiler_gnu=no
3071fi
3072
3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074ac_cv_c_compiler_gnu=$ac_compiler_gnu
3075
3076fi
3077{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3078echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3079GCC=`test $ac_compiler_gnu = yes && echo yes`
3080ac_test_CFLAGS=${CFLAGS+set}
3081ac_save_CFLAGS=$CFLAGS
3082{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3083echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3084if test "${ac_cv_prog_cc_g+set}" = set; then
3085  echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087  ac_save_c_werror_flag=$ac_c_werror_flag
3088   ac_c_werror_flag=yes
3089   ac_cv_prog_cc_g=no
3090   CFLAGS="-g"
3091   cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h.  */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h.  */
3097
3098int
3099main ()
3100{
3101
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext
3107if { (ac_try="$ac_compile"
3108case "(($ac_try" in
3109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110  *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113  (eval "$ac_compile") 2>conftest.er1
3114  ac_status=$?
3115  grep -v '^ *+' conftest.er1 >conftest.err
3116  rm -f conftest.er1
3117  cat conftest.err >&5
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); } &&
3120	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121  { (case "(($ac_try" in
3122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123  *) ac_try_echo=$ac_try;;
3124esac
3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126  (eval "$ac_try") 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; } &&
3130	 { ac_try='test -s conftest.$ac_objext'
3131  { (case "(($ac_try" in
3132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133  *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136  (eval "$ac_try") 2>&5
3137  ac_status=$?
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); }; }; then
3140  ac_cv_prog_cc_g=yes
3141else
3142  echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145	CFLAGS=""
3146      cat >conftest.$ac_ext <<_ACEOF
3147/* confdefs.h.  */
3148_ACEOF
3149cat confdefs.h >>conftest.$ac_ext
3150cat >>conftest.$ac_ext <<_ACEOF
3151/* end confdefs.h.  */
3152
3153int
3154main ()
3155{
3156
3157  ;
3158  return 0;
3159}
3160_ACEOF
3161rm -f conftest.$ac_objext
3162if { (ac_try="$ac_compile"
3163case "(($ac_try" in
3164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165  *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168  (eval "$ac_compile") 2>conftest.er1
3169  ac_status=$?
3170  grep -v '^ *+' conftest.er1 >conftest.err
3171  rm -f conftest.er1
3172  cat conftest.err >&5
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); } &&
3175	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3176  { (case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181  (eval "$ac_try") 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); }; } &&
3185	 { ac_try='test -s conftest.$ac_objext'
3186  { (case "(($ac_try" in
3187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188  *) ac_try_echo=$ac_try;;
3189esac
3190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191  (eval "$ac_try") 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }; }; then
3195  :
3196else
3197  echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200	ac_c_werror_flag=$ac_save_c_werror_flag
3201	 CFLAGS="-g"
3202	 cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h.  */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext
3218if { (ac_try="$ac_compile"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224  (eval "$ac_compile") 2>conftest.er1
3225  ac_status=$?
3226  grep -v '^ *+' conftest.er1 >conftest.err
3227  rm -f conftest.er1
3228  cat conftest.err >&5
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); } &&
3231	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3232  { (case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237  (eval "$ac_try") 2>&5
3238  ac_status=$?
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); }; } &&
3241	 { ac_try='test -s conftest.$ac_objext'
3242  { (case "(($ac_try" in
3243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244  *) ac_try_echo=$ac_try;;
3245esac
3246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247  (eval "$ac_try") 2>&5
3248  ac_status=$?
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); }; }; then
3251  ac_cv_prog_cc_g=yes
3252else
3253  echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256
3257fi
3258
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260fi
3261
3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263fi
3264
3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266   ac_c_werror_flag=$ac_save_c_werror_flag
3267fi
3268{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3270if test "$ac_test_CFLAGS" = set; then
3271  CFLAGS=$ac_save_CFLAGS
3272elif test $ac_cv_prog_cc_g = yes; then
3273  if test "$GCC" = yes; then
3274    CFLAGS="-g -O2"
3275  else
3276    CFLAGS="-g"
3277  fi
3278else
3279  if test "$GCC" = yes; then
3280    CFLAGS="-O2"
3281  else
3282    CFLAGS=
3283  fi
3284fi
3285{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3286echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3287if test "${ac_cv_prog_cc_c89+set}" = set; then
3288  echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290  ac_cv_prog_cc_c89=no
3291ac_save_CC=$CC
3292cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298#include <stdarg.h>
3299#include <stdio.h>
3300#include <sys/types.h>
3301#include <sys/stat.h>
3302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3303struct buf { int x; };
3304FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305static char *e (p, i)
3306     char **p;
3307     int i;
3308{
3309  return p[i];
3310}
3311static char *f (char * (*g) (char **, int), char **p, ...)
3312{
3313  char *s;
3314  va_list v;
3315  va_start (v,p);
3316  s = g (p, va_arg (v,int));
3317  va_end (v);
3318  return s;
3319}
3320
3321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3322   function prototypes and stuff, but not '\xHH' hex character constants.
3323   These don't provoke an error unfortunately, instead are silently treated
3324   as 'x'.  The following induces an error, until -std is added to get
3325   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3326   array size at least.  It's necessary to write '\x00'==0 to get something
3327   that's true only with -std.  */
3328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329
3330/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3331   inside strings and character constants.  */
3332#define FOO(x) 'x'
3333int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334
3335int test (int i, double x);
3336struct s1 {int (*f) (int a);};
3337struct s2 {int (*f) (double a);};
3338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339int argc;
3340char **argv;
3341int
3342main ()
3343{
3344return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3350	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351do
3352  CC="$ac_save_CC $ac_arg"
3353  rm -f conftest.$ac_objext
3354if { (ac_try="$ac_compile"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360  (eval "$ac_compile") 2>conftest.er1
3361  ac_status=$?
3362  grep -v '^ *+' conftest.er1 >conftest.err
3363  rm -f conftest.er1
3364  cat conftest.err >&5
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); } &&
3367	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3368  { (case "(($ac_try" in
3369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370  *) ac_try_echo=$ac_try;;
3371esac
3372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373  (eval "$ac_try") 2>&5
3374  ac_status=$?
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); }; } &&
3377	 { ac_try='test -s conftest.$ac_objext'
3378  { (case "(($ac_try" in
3379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380  *) ac_try_echo=$ac_try;;
3381esac
3382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383  (eval "$ac_try") 2>&5
3384  ac_status=$?
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); }; }; then
3387  ac_cv_prog_cc_c89=$ac_arg
3388else
3389  echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392
3393fi
3394
3395rm -f core conftest.err conftest.$ac_objext
3396  test "x$ac_cv_prog_cc_c89" != "xno" && break
3397done
3398rm -f conftest.$ac_ext
3399CC=$ac_save_CC
3400
3401fi
3402# AC_CACHE_VAL
3403case "x$ac_cv_prog_cc_c89" in
3404  x)
3405    { echo "$as_me:$LINENO: result: none needed" >&5
3406echo "${ECHO_T}none needed" >&6; } ;;
3407  xno)
3408    { echo "$as_me:$LINENO: result: unsupported" >&5
3409echo "${ECHO_T}unsupported" >&6; } ;;
3410  *)
3411    CC="$CC $ac_cv_prog_cc_c89"
3412    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3413echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3414esac
3415
3416
3417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423
3424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3431# On Suns, sometimes $CPP names a directory.
3432if test -n "$CPP" && test -d "$CPP"; then
3433  CPP=
3434fi
3435if test -z "$CPP"; then
3436  if test "${ac_cv_prog_CPP+set}" = set; then
3437  echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439      # Double quotes because CPP needs to be expanded
3440    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3441    do
3442      ac_preproc_ok=false
3443for ac_c_preproc_warn_flag in '' yes
3444do
3445  # Use a header file that comes with gcc, so configuring glibc
3446  # with a fresh cross-compiler works.
3447  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448  # <limits.h> exists even on freestanding compilers.
3449  # On the NeXT, cc -E runs the code through the compiler's parser,
3450  # not just through cpp. "Syntax error" is here to catch this case.
3451  cat >conftest.$ac_ext <<_ACEOF
3452/* confdefs.h.  */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h.  */
3457#ifdef __STDC__
3458# include <limits.h>
3459#else
3460# include <assert.h>
3461#endif
3462		     Syntax error
3463_ACEOF
3464if { (ac_try="$ac_cpp conftest.$ac_ext"
3465case "(($ac_try" in
3466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467  *) ac_try_echo=$ac_try;;
3468esac
3469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471  ac_status=$?
3472  grep -v '^ *+' conftest.er1 >conftest.err
3473  rm -f conftest.er1
3474  cat conftest.err >&5
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); } >/dev/null; then
3477  if test -s conftest.err; then
3478    ac_cpp_err=$ac_c_preproc_warn_flag
3479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480  else
3481    ac_cpp_err=
3482  fi
3483else
3484  ac_cpp_err=yes
3485fi
3486if test -z "$ac_cpp_err"; then
3487  :
3488else
3489  echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492  # Broken: fails on valid input.
3493continue
3494fi
3495
3496rm -f conftest.err conftest.$ac_ext
3497
3498  # OK, works on sane cases.  Now check whether nonexistent headers
3499  # can be detected and how.
3500  cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h.  */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h.  */
3506#include <ac_nonexistent.h>
3507_ACEOF
3508if { (ac_try="$ac_cpp conftest.$ac_ext"
3509case "(($ac_try" in
3510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511  *) ac_try_echo=$ac_try;;
3512esac
3513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515  ac_status=$?
3516  grep -v '^ *+' conftest.er1 >conftest.err
3517  rm -f conftest.er1
3518  cat conftest.err >&5
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } >/dev/null; then
3521  if test -s conftest.err; then
3522    ac_cpp_err=$ac_c_preproc_warn_flag
3523    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524  else
3525    ac_cpp_err=
3526  fi
3527else
3528  ac_cpp_err=yes
3529fi
3530if test -z "$ac_cpp_err"; then
3531  # Broken: success on invalid input.
3532continue
3533else
3534  echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537  # Passes both tests.
3538ac_preproc_ok=:
3539break
3540fi
3541
3542rm -f conftest.err conftest.$ac_ext
3543
3544done
3545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546rm -f conftest.err conftest.$ac_ext
3547if $ac_preproc_ok; then
3548  break
3549fi
3550
3551    done
3552    ac_cv_prog_CPP=$CPP
3553
3554fi
3555  CPP=$ac_cv_prog_CPP
3556else
3557  ac_cv_prog_CPP=$CPP
3558fi
3559{ echo "$as_me:$LINENO: result: $CPP" >&5
3560echo "${ECHO_T}$CPP" >&6; }
3561ac_preproc_ok=false
3562for ac_c_preproc_warn_flag in '' yes
3563do
3564  # Use a header file that comes with gcc, so configuring glibc
3565  # with a fresh cross-compiler works.
3566  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3567  # <limits.h> exists even on freestanding compilers.
3568  # On the NeXT, cc -E runs the code through the compiler's parser,
3569  # not just through cpp. "Syntax error" is here to catch this case.
3570  cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h.  */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h.  */
3576#ifdef __STDC__
3577# include <limits.h>
3578#else
3579# include <assert.h>
3580#endif
3581		     Syntax error
3582_ACEOF
3583if { (ac_try="$ac_cpp conftest.$ac_ext"
3584case "(($ac_try" in
3585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586  *) ac_try_echo=$ac_try;;
3587esac
3588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590  ac_status=$?
3591  grep -v '^ *+' conftest.er1 >conftest.err
3592  rm -f conftest.er1
3593  cat conftest.err >&5
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); } >/dev/null; then
3596  if test -s conftest.err; then
3597    ac_cpp_err=$ac_c_preproc_warn_flag
3598    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599  else
3600    ac_cpp_err=
3601  fi
3602else
3603  ac_cpp_err=yes
3604fi
3605if test -z "$ac_cpp_err"; then
3606  :
3607else
3608  echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611  # Broken: fails on valid input.
3612continue
3613fi
3614
3615rm -f conftest.err conftest.$ac_ext
3616
3617  # OK, works on sane cases.  Now check whether nonexistent headers
3618  # can be detected and how.
3619  cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h.  */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h.  */
3625#include <ac_nonexistent.h>
3626_ACEOF
3627if { (ac_try="$ac_cpp conftest.$ac_ext"
3628case "(($ac_try" in
3629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630  *) ac_try_echo=$ac_try;;
3631esac
3632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634  ac_status=$?
3635  grep -v '^ *+' conftest.er1 >conftest.err
3636  rm -f conftest.er1
3637  cat conftest.err >&5
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); } >/dev/null; then
3640  if test -s conftest.err; then
3641    ac_cpp_err=$ac_c_preproc_warn_flag
3642    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3643  else
3644    ac_cpp_err=
3645  fi
3646else
3647  ac_cpp_err=yes
3648fi
3649if test -z "$ac_cpp_err"; then
3650  # Broken: success on invalid input.
3651continue
3652else
3653  echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
3655
3656  # Passes both tests.
3657ac_preproc_ok=:
3658break
3659fi
3660
3661rm -f conftest.err conftest.$ac_ext
3662
3663done
3664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3665rm -f conftest.err conftest.$ac_ext
3666if $ac_preproc_ok; then
3667  :
3668else
3669  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3670See \`config.log' for more details." >&5
3671echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3672See \`config.log' for more details." >&2;}
3673   { (exit 1); exit 1; }; }
3674fi
3675
3676ac_ext=c
3677ac_cpp='$CPP $CPPFLAGS'
3678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681
3682
3683{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3684echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3685if test "${ac_cv_path_GREP+set}" = set; then
3686  echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688  # Extract the first word of "grep ggrep" to use in msg output
3689if test -z "$GREP"; then
3690set dummy grep ggrep; ac_prog_name=$2
3691if test "${ac_cv_path_GREP+set}" = set; then
3692  echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
3694  ac_path_GREP_found=false
3695# Loop through the user's path and test for each of PROGNAME-LIST
3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3698do
3699  IFS=$as_save_IFS
3700  test -z "$as_dir" && as_dir=.
3701  for ac_prog in grep ggrep; do
3702  for ac_exec_ext in '' $ac_executable_extensions; do
3703    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3704    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3705    # Check for GNU ac_path_GREP and select it if it is found.
3706  # Check for GNU $ac_path_GREP
3707case `"$ac_path_GREP" --version 2>&1` in
3708*GNU*)
3709  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3710*)
3711  ac_count=0
3712  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3713  while :
3714  do
3715    cat "conftest.in" "conftest.in" >"conftest.tmp"
3716    mv "conftest.tmp" "conftest.in"
3717    cp "conftest.in" "conftest.nl"
3718    echo 'GREP' >> "conftest.nl"
3719    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721    ac_count=`expr $ac_count + 1`
3722    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3723      # Best one so far, save it but keep looking for a better one
3724      ac_cv_path_GREP="$ac_path_GREP"
3725      ac_path_GREP_max=$ac_count
3726    fi
3727    # 10*(2^10) chars as input seems more than enough
3728    test $ac_count -gt 10 && break
3729  done
3730  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731esac
3732
3733
3734    $ac_path_GREP_found && break 3
3735  done
3736done
3737
3738done
3739IFS=$as_save_IFS
3740
3741
3742fi
3743
3744GREP="$ac_cv_path_GREP"
3745if test -z "$GREP"; then
3746  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3747echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3748   { (exit 1); exit 1; }; }
3749fi
3750
3751else
3752  ac_cv_path_GREP=$GREP
3753fi
3754
3755
3756fi
3757{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3758echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3759 GREP="$ac_cv_path_GREP"
3760
3761
3762{ echo "$as_me:$LINENO: checking for egrep" >&5
3763echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3764if test "${ac_cv_path_EGREP+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3768   then ac_cv_path_EGREP="$GREP -E"
3769   else
3770     # Extract the first word of "egrep" to use in msg output
3771if test -z "$EGREP"; then
3772set dummy egrep; ac_prog_name=$2
3773if test "${ac_cv_path_EGREP+set}" = set; then
3774  echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776  ac_path_EGREP_found=false
3777# Loop through the user's path and test for each of PROGNAME-LIST
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780do
3781  IFS=$as_save_IFS
3782  test -z "$as_dir" && as_dir=.
3783  for ac_prog in egrep; do
3784  for ac_exec_ext in '' $ac_executable_extensions; do
3785    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3786    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3787    # Check for GNU ac_path_EGREP and select it if it is found.
3788  # Check for GNU $ac_path_EGREP
3789case `"$ac_path_EGREP" --version 2>&1` in
3790*GNU*)
3791  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3792*)
3793  ac_count=0
3794  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3795  while :
3796  do
3797    cat "conftest.in" "conftest.in" >"conftest.tmp"
3798    mv "conftest.tmp" "conftest.in"
3799    cp "conftest.in" "conftest.nl"
3800    echo 'EGREP' >> "conftest.nl"
3801    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3802    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3803    ac_count=`expr $ac_count + 1`
3804    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3805      # Best one so far, save it but keep looking for a better one
3806      ac_cv_path_EGREP="$ac_path_EGREP"
3807      ac_path_EGREP_max=$ac_count
3808    fi
3809    # 10*(2^10) chars as input seems more than enough
3810    test $ac_count -gt 10 && break
3811  done
3812  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3813esac
3814
3815
3816    $ac_path_EGREP_found && break 3
3817  done
3818done
3819
3820done
3821IFS=$as_save_IFS
3822
3823
3824fi
3825
3826EGREP="$ac_cv_path_EGREP"
3827if test -z "$EGREP"; then
3828  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3829echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3830   { (exit 1); exit 1; }; }
3831fi
3832
3833else
3834  ac_cv_path_EGREP=$EGREP
3835fi
3836
3837
3838   fi
3839fi
3840{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3841echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3842 EGREP="$ac_cv_path_EGREP"
3843
3844
3845{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3846echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3847if test "${ac_cv_header_stdc+set}" = set; then
3848  echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850  cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h.  */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h.  */
3856#include <stdlib.h>
3857#include <stdarg.h>
3858#include <string.h>
3859#include <float.h>
3860
3861int
3862main ()
3863{
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869rm -f conftest.$ac_objext
3870if { (ac_try="$ac_compile"
3871case "(($ac_try" in
3872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873  *) ac_try_echo=$ac_try;;
3874esac
3875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876  (eval "$ac_compile") 2>conftest.er1
3877  ac_status=$?
3878  grep -v '^ *+' conftest.er1 >conftest.err
3879  rm -f conftest.er1
3880  cat conftest.err >&5
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); } &&
3883	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3884  { (case "(($ac_try" in
3885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886  *) ac_try_echo=$ac_try;;
3887esac
3888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889  (eval "$ac_try") 2>&5
3890  ac_status=$?
3891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892  (exit $ac_status); }; } &&
3893	 { ac_try='test -s conftest.$ac_objext'
3894  { (case "(($ac_try" in
3895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896  *) ac_try_echo=$ac_try;;
3897esac
3898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899  (eval "$ac_try") 2>&5
3900  ac_status=$?
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); }; }; then
3903  ac_cv_header_stdc=yes
3904else
3905  echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908	ac_cv_header_stdc=no
3909fi
3910
3911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912
3913if test $ac_cv_header_stdc = yes; then
3914  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3915  cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h.  */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h.  */
3921#include <string.h>
3922
3923_ACEOF
3924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925  $EGREP "memchr" >/dev/null 2>&1; then
3926  :
3927else
3928  ac_cv_header_stdc=no
3929fi
3930rm -f conftest*
3931
3932fi
3933
3934if test $ac_cv_header_stdc = yes; then
3935  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3936  cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h.  */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h.  */
3942#include <stdlib.h>
3943
3944_ACEOF
3945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946  $EGREP "free" >/dev/null 2>&1; then
3947  :
3948else
3949  ac_cv_header_stdc=no
3950fi
3951rm -f conftest*
3952
3953fi
3954
3955if test $ac_cv_header_stdc = yes; then
3956  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3957  if test "$cross_compiling" = yes; then
3958  :
3959else
3960  cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h.  */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h.  */
3966#include <ctype.h>
3967#include <stdlib.h>
3968#if ((' ' & 0x0FF) == 0x020)
3969# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3970# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971#else
3972# define ISLOWER(c) \
3973		   (('a' <= (c) && (c) <= 'i') \
3974		     || ('j' <= (c) && (c) <= 'r') \
3975		     || ('s' <= (c) && (c) <= 'z'))
3976# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3977#endif
3978
3979#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3980int
3981main ()
3982{
3983  int i;
3984  for (i = 0; i < 256; i++)
3985    if (XOR (islower (i), ISLOWER (i))
3986	|| toupper (i) != TOUPPER (i))
3987      return 2;
3988  return 0;
3989}
3990_ACEOF
3991rm -f conftest$ac_exeext
3992if { (ac_try="$ac_link"
3993case "(($ac_try" in
3994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995  *) ac_try_echo=$ac_try;;
3996esac
3997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998  (eval "$ac_link") 2>&5
3999  ac_status=$?
4000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4002  { (case "(($ac_try" in
4003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004  *) ac_try_echo=$ac_try;;
4005esac
4006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007  (eval "$ac_try") 2>&5
4008  ac_status=$?
4009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010  (exit $ac_status); }; }; then
4011  :
4012else
4013  echo "$as_me: program exited with status $ac_status" >&5
4014echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017( exit $ac_status )
4018ac_cv_header_stdc=no
4019fi
4020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4021fi
4022
4023
4024fi
4025fi
4026{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4027echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4028if test $ac_cv_header_stdc = yes; then
4029
4030cat >>confdefs.h <<\_ACEOF
4031#define STDC_HEADERS 1
4032_ACEOF
4033
4034fi
4035
4036# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4047		  inttypes.h stdint.h unistd.h
4048do
4049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4053  echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055  cat >conftest.$ac_ext <<_ACEOF
4056/* confdefs.h.  */
4057_ACEOF
4058cat confdefs.h >>conftest.$ac_ext
4059cat >>conftest.$ac_ext <<_ACEOF
4060/* end confdefs.h.  */
4061$ac_includes_default
4062
4063#include <$ac_header>
4064_ACEOF
4065rm -f conftest.$ac_objext
4066if { (ac_try="$ac_compile"
4067case "(($ac_try" in
4068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069  *) ac_try_echo=$ac_try;;
4070esac
4071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072  (eval "$ac_compile") 2>conftest.er1
4073  ac_status=$?
4074  grep -v '^ *+' conftest.er1 >conftest.err
4075  rm -f conftest.er1
4076  cat conftest.err >&5
4077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078  (exit $ac_status); } &&
4079	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080  { (case "(($ac_try" in
4081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082  *) ac_try_echo=$ac_try;;
4083esac
4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085  (eval "$ac_try") 2>&5
4086  ac_status=$?
4087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088  (exit $ac_status); }; } &&
4089	 { ac_try='test -s conftest.$ac_objext'
4090  { (case "(($ac_try" in
4091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092  *) ac_try_echo=$ac_try;;
4093esac
4094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095  (eval "$ac_try") 2>&5
4096  ac_status=$?
4097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098  (exit $ac_status); }; }; then
4099  eval "$as_ac_Header=yes"
4100else
4101  echo "$as_me: failed program was:" >&5
4102sed 's/^/| /' conftest.$ac_ext >&5
4103
4104	eval "$as_ac_Header=no"
4105fi
4106
4107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108fi
4109ac_res=`eval echo '${'$as_ac_Header'}'`
4110	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4111echo "${ECHO_T}$ac_res" >&6; }
4112if test `eval echo '${'$as_ac_Header'}'` = yes; then
4113  cat >>confdefs.h <<_ACEOF
4114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4115_ACEOF
4116
4117fi
4118
4119done
4120
4121
4122{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4123echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4124if test "${ac_cv_c_bigendian+set}" = set; then
4125  echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127  # See if sys/param.h defines the BYTE_ORDER macro.
4128cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h.  */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h.  */
4134#include <sys/types.h>
4135#include <sys/param.h>
4136
4137int
4138main ()
4139{
4140#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4141 bogus endian macros
4142#endif
4143
4144  ;
4145  return 0;
4146}
4147_ACEOF
4148rm -f conftest.$ac_objext
4149if { (ac_try="$ac_compile"
4150case "(($ac_try" in
4151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152  *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155  (eval "$ac_compile") 2>conftest.er1
4156  ac_status=$?
4157  grep -v '^ *+' conftest.er1 >conftest.err
4158  rm -f conftest.er1
4159  cat conftest.err >&5
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } &&
4162	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163  { (case "(($ac_try" in
4164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165  *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168  (eval "$ac_try") 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); }; } &&
4172	 { ac_try='test -s conftest.$ac_objext'
4173  { (case "(($ac_try" in
4174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175  *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178  (eval "$ac_try") 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; }; then
4182  # It does; now see whether it defined to BIG_ENDIAN or not.
4183cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h.  */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h.  */
4189#include <sys/types.h>
4190#include <sys/param.h>
4191
4192int
4193main ()
4194{
4195#if BYTE_ORDER != BIG_ENDIAN
4196 not big endian
4197#endif
4198
4199  ;
4200  return 0;
4201}
4202_ACEOF
4203rm -f conftest.$ac_objext
4204if { (ac_try="$ac_compile"
4205case "(($ac_try" in
4206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207  *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210  (eval "$ac_compile") 2>conftest.er1
4211  ac_status=$?
4212  grep -v '^ *+' conftest.er1 >conftest.err
4213  rm -f conftest.er1
4214  cat conftest.err >&5
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); } &&
4217	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218  { (case "(($ac_try" in
4219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220  *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223  (eval "$ac_try") 2>&5
4224  ac_status=$?
4225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226  (exit $ac_status); }; } &&
4227	 { ac_try='test -s conftest.$ac_objext'
4228  { (case "(($ac_try" in
4229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230  *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233  (eval "$ac_try") 2>&5
4234  ac_status=$?
4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236  (exit $ac_status); }; }; then
4237  ac_cv_c_bigendian=yes
4238else
4239  echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242	ac_cv_c_bigendian=no
4243fi
4244
4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246else
4247  echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250	# It does not; compile a test program.
4251if test "$cross_compiling" = yes; then
4252  # try to guess the endianness by grepping values into an object file
4253  ac_cv_c_bigendian=unknown
4254  cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h.  */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h.  */
4260short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4261short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4262void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4263short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4264short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4265void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4266int
4267main ()
4268{
4269 _ascii (); _ebcdic ();
4270  ;
4271  return 0;
4272}
4273_ACEOF
4274rm -f conftest.$ac_objext
4275if { (ac_try="$ac_compile"
4276case "(($ac_try" in
4277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278  *) ac_try_echo=$ac_try;;
4279esac
4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281  (eval "$ac_compile") 2>conftest.er1
4282  ac_status=$?
4283  grep -v '^ *+' conftest.er1 >conftest.err
4284  rm -f conftest.er1
4285  cat conftest.err >&5
4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287  (exit $ac_status); } &&
4288	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4289  { (case "(($ac_try" in
4290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291  *) ac_try_echo=$ac_try;;
4292esac
4293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294  (eval "$ac_try") 2>&5
4295  ac_status=$?
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); }; } &&
4298	 { ac_try='test -s conftest.$ac_objext'
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  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4309  ac_cv_c_bigendian=yes
4310fi
4311if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4312  if test "$ac_cv_c_bigendian" = unknown; then
4313    ac_cv_c_bigendian=no
4314  else
4315    # finding both strings is unlikely to happen, but who knows?
4316    ac_cv_c_bigendian=unknown
4317  fi
4318fi
4319else
4320  echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323
4324fi
4325
4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327else
4328  cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h.  */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h.  */
4334$ac_includes_default
4335int
4336main ()
4337{
4338
4339  /* Are we little or big endian?  From Harbison&Steele.  */
4340  union
4341  {
4342    long int l;
4343    char c[sizeof (long int)];
4344  } u;
4345  u.l = 1;
4346  return u.c[sizeof (long int) - 1] == 1;
4347
4348  ;
4349  return 0;
4350}
4351_ACEOF
4352rm -f conftest$ac_exeext
4353if { (ac_try="$ac_link"
4354case "(($ac_try" in
4355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356  *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359  (eval "$ac_link") 2>&5
4360  ac_status=$?
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4363  { (case "(($ac_try" in
4364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365  *) ac_try_echo=$ac_try;;
4366esac
4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368  (eval "$ac_try") 2>&5
4369  ac_status=$?
4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); }; }; then
4372  ac_cv_c_bigendian=no
4373else
4374  echo "$as_me: program exited with status $ac_status" >&5
4375echo "$as_me: failed program was:" >&5
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
4378( exit $ac_status )
4379ac_cv_c_bigendian=yes
4380fi
4381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4382fi
4383
4384
4385fi
4386
4387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388fi
4389{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4390echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4391case $ac_cv_c_bigendian in
4392  yes)
4393    ENDIAN=big
4394 ;;
4395  no)
4396    ENDIAN=little
4397 ;;
4398  *)
4399    { { echo "$as_me:$LINENO: error: unknown endianness
4400presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4401echo "$as_me: error: unknown endianness
4402presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4403   { (exit 1); exit 1; }; } ;;
4404esac
4405
4406
4407if test "$cross_compiling" = yes; then
4408  LLVM_CROSS_COMPILING=1
4409
4410
4411{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4412echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4413if test "${ac_cv_build_exeext+set}" = set; then
4414  echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4417  ac_cv_build_exeext=.exe
4418else
4419  ac_build_prefix=${build_alias}-
4420
4421  # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4422set dummy ${ac_build_prefix}gcc; ac_word=$2
4423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426  echo $ECHO_N "(cached) $ECHO_C" >&6
4427else
4428  if test -n "$BUILD_CC"; then
4429  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434  IFS=$as_save_IFS
4435  test -z "$as_dir" && as_dir=.
4436  for ac_exec_ext in '' $ac_executable_extensions; do
4437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4438    ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440    break 2
4441  fi
4442done
4443done
4444IFS=$as_save_IFS
4445
4446fi
4447fi
4448BUILD_CC=$ac_cv_prog_BUILD_CC
4449if test -n "$BUILD_CC"; then
4450  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451echo "${ECHO_T}$BUILD_CC" >&6; }
4452else
4453  { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
4455fi
4456
4457
4458  if test -z "$BUILD_CC"; then
4459     # Extract the first word of "gcc", so it can be a program name with args.
4460set dummy gcc; ac_word=$2
4461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464  echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466  if test -n "$BUILD_CC"; then
4467  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472  IFS=$as_save_IFS
4473  test -z "$as_dir" && as_dir=.
4474  for ac_exec_ext in '' $ac_executable_extensions; do
4475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476    ac_cv_prog_BUILD_CC="gcc"
4477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478    break 2
4479  fi
4480done
4481done
4482IFS=$as_save_IFS
4483
4484fi
4485fi
4486BUILD_CC=$ac_cv_prog_BUILD_CC
4487if test -n "$BUILD_CC"; then
4488  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4489echo "${ECHO_T}$BUILD_CC" >&6; }
4490else
4491  { echo "$as_me:$LINENO: result: no" >&5
4492echo "${ECHO_T}no" >&6; }
4493fi
4494
4495
4496     if test -z "$BUILD_CC"; then
4497       # Extract the first word of "cc", so it can be a program name with args.
4498set dummy cc; ac_word=$2
4499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4502  echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504  if test -n "$BUILD_CC"; then
4505  ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4506else
4507  ac_prog_rejected=no
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511  IFS=$as_save_IFS
4512  test -z "$as_dir" && as_dir=.
4513  for ac_exec_ext in '' $ac_executable_extensions; do
4514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4515    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4516       ac_prog_rejected=yes
4517       continue
4518     fi
4519    ac_cv_prog_BUILD_CC="cc"
4520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521    break 2
4522  fi
4523done
4524done
4525IFS=$as_save_IFS
4526
4527if test $ac_prog_rejected = yes; then
4528  # We found a bogon in the path, so make sure we never use it.
4529  set dummy $ac_cv_prog_BUILD_CC
4530  shift
4531  if test $# != 0; then
4532    # We chose a different compiler from the bogus one.
4533    # However, it has the same basename, so the bogon will be chosen
4534    # first if we set BUILD_CC to just the basename; use the full file name.
4535    shift
4536    ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4537  fi
4538fi
4539fi
4540fi
4541BUILD_CC=$ac_cv_prog_BUILD_CC
4542if test -n "$BUILD_CC"; then
4543  { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4544echo "${ECHO_T}$BUILD_CC" >&6; }
4545else
4546  { echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6; }
4548fi
4549
4550
4551     fi
4552  fi
4553  test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4554echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4555   { (exit 1); exit 1; }; }
4556  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4557  rm -f conftest*
4558  echo 'int main () { return 0; }' > conftest.$ac_ext
4559  ac_cv_build_exeext=
4560  if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4561  (eval $ac_build_link) 2>&5
4562  ac_status=$?
4563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564  (exit $ac_status); }; then
4565    for file in conftest.*; do
4566      case $file in
4567      *.c | *.o | *.obj | *.dSYM) ;;
4568      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4569      esac
4570    done
4571  else
4572    { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4573echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4574   { (exit 1); exit 1; }; }
4575  fi
4576  rm -f conftest*
4577  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4578fi
4579fi
4580
4581BUILD_EXEEXT=""
4582test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4583{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4584echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4585ac_build_exeext=$BUILD_EXEEXT
4586
4587  ac_build_prefix=${build_alias}-
4588  # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4589set dummy ${ac_build_prefix}g++; ac_word=$2
4590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593  echo $ECHO_N "(cached) $ECHO_C" >&6
4594else
4595  if test -n "$BUILD_CXX"; then
4596  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601  IFS=$as_save_IFS
4602  test -z "$as_dir" && as_dir=.
4603  for ac_exec_ext in '' $ac_executable_extensions; do
4604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605    ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607    break 2
4608  fi
4609done
4610done
4611IFS=$as_save_IFS
4612
4613fi
4614fi
4615BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616if test -n "$BUILD_CXX"; then
4617  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618echo "${ECHO_T}$BUILD_CXX" >&6; }
4619else
4620  { echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6; }
4622fi
4623
4624
4625  if test -z "$BUILD_CXX"; then
4626     # Extract the first word of "g++", so it can be a program name with args.
4627set dummy g++; ac_word=$2
4628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631  echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633  if test -n "$BUILD_CXX"; then
4634  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635else
4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639  IFS=$as_save_IFS
4640  test -z "$as_dir" && as_dir=.
4641  for ac_exec_ext in '' $ac_executable_extensions; do
4642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4643    ac_cv_prog_BUILD_CXX="g++"
4644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645    break 2
4646  fi
4647done
4648done
4649IFS=$as_save_IFS
4650
4651fi
4652fi
4653BUILD_CXX=$ac_cv_prog_BUILD_CXX
4654if test -n "$BUILD_CXX"; then
4655  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4656echo "${ECHO_T}$BUILD_CXX" >&6; }
4657else
4658  { echo "$as_me:$LINENO: result: no" >&5
4659echo "${ECHO_T}no" >&6; }
4660fi
4661
4662
4663     if test -z "$BUILD_CXX"; then
4664       # Extract the first word of "c++", so it can be a program name with args.
4665set dummy c++; ac_word=$2
4666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4669  echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671  if test -n "$BUILD_CXX"; then
4672  ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4673else
4674  ac_prog_rejected=no
4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH
4677do
4678  IFS=$as_save_IFS
4679  test -z "$as_dir" && as_dir=.
4680  for ac_exec_ext in '' $ac_executable_extensions; do
4681  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4682    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4683       ac_prog_rejected=yes
4684       continue
4685     fi
4686    ac_cv_prog_BUILD_CXX="c++"
4687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688    break 2
4689  fi
4690done
4691done
4692IFS=$as_save_IFS
4693
4694if test $ac_prog_rejected = yes; then
4695  # We found a bogon in the path, so make sure we never use it.
4696  set dummy $ac_cv_prog_BUILD_CXX
4697  shift
4698  if test $# != 0; then
4699    # We chose a different compiler from the bogus one.
4700    # However, it has the same basename, so the bogon will be chosen
4701    # first if we set BUILD_CXX to just the basename; use the full file name.
4702    shift
4703    ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4704  fi
4705fi
4706fi
4707fi
4708BUILD_CXX=$ac_cv_prog_BUILD_CXX
4709if test -n "$BUILD_CXX"; then
4710  { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4711echo "${ECHO_T}$BUILD_CXX" >&6; }
4712else
4713  { echo "$as_me:$LINENO: result: no" >&5
4714echo "${ECHO_T}no" >&6; }
4715fi
4716
4717
4718     fi
4719  fi
4720else
4721  LLVM_CROSS_COMPILING=0
4722
4723fi
4724
4725if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4726  cvsbuild="yes"
4727  optimize="no"
4728  CVSBUILD=CVSBUILD=1
4729
4730else
4731  cvsbuild="no"
4732  optimize="yes"
4733fi
4734
4735
4736# Check whether --enable-optimized was given.
4737if test "${enable_optimized+set}" = set; then
4738  enableval=$enable_optimized;
4739else
4740  enableval=$optimize
4741fi
4742
4743if test ${enableval} = "no" ; then
4744  ENABLE_OPTIMIZED=
4745
4746else
4747  ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4748
4749fi
4750
4751# Check whether --enable-profiling was given.
4752if test "${enable_profiling+set}" = set; then
4753  enableval=$enable_profiling;
4754else
4755  enableval="no"
4756fi
4757
4758if test ${enableval} = "no" ; then
4759  ENABLE_PROFILING=
4760
4761else
4762  ENABLE_PROFILING=ENABLE_PROFILING=1
4763
4764fi
4765
4766# Check whether --enable-assertions was given.
4767if test "${enable_assertions+set}" = set; then
4768  enableval=$enable_assertions;
4769else
4770  enableval="yes"
4771fi
4772
4773if test ${enableval} = "yes" ; then
4774  DISABLE_ASSERTIONS=
4775
4776else
4777  DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4778
4779fi
4780
4781# Check whether --enable-expensive-checks was given.
4782if test "${enable_expensive_checks+set}" = set; then
4783  enableval=$enable_expensive_checks;
4784else
4785  enableval="no"
4786fi
4787
4788if test ${enableval} = "yes" ; then
4789  ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4790
4791  EXPENSIVE_CHECKS=yes
4792
4793else
4794  ENABLE_EXPENSIVE_CHECKS=
4795
4796  EXPENSIVE_CHECKS=no
4797
4798fi
4799
4800# Check whether --enable-debug-runtime was given.
4801if test "${enable_debug_runtime+set}" = set; then
4802  enableval=$enable_debug_runtime;
4803else
4804  enableval=no
4805fi
4806
4807if test ${enableval} = "no" ; then
4808  DEBUG_RUNTIME=
4809
4810else
4811  DEBUG_RUNTIME=DEBUG_RUNTIME=1
4812
4813fi
4814
4815# Check whether --enable-debug-symbols was given.
4816if test "${enable_debug_symbols+set}" = set; then
4817  enableval=$enable_debug_symbols;
4818else
4819  enableval=no
4820fi
4821
4822if test ${enableval} = "no" ; then
4823  DEBUG_SYMBOLS=
4824
4825else
4826  DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4827
4828fi
4829
4830# Check whether --enable-jit was given.
4831if test "${enable_jit+set}" = set; then
4832  enableval=$enable_jit;
4833else
4834  enableval=default
4835fi
4836
4837if test ${enableval} = "no"
4838then
4839  JIT=
4840
4841else
4842  case "$llvm_cv_target_arch" in
4843    x86)         TARGET_HAS_JIT=1
4844 ;;
4845    Sparc)       TARGET_HAS_JIT=0
4846 ;;
4847    PowerPC)     TARGET_HAS_JIT=1
4848 ;;
4849    x86_64)      TARGET_HAS_JIT=1
4850 ;;
4851    Alpha)       TARGET_HAS_JIT=1
4852 ;;
4853    ARM)         TARGET_HAS_JIT=1
4854 ;;
4855    Mips)        TARGET_HAS_JIT=0
4856 ;;
4857    XCore)       TARGET_HAS_JIT=0
4858 ;;
4859    MSP430)      TARGET_HAS_JIT=0
4860 ;;
4861    SystemZ)     TARGET_HAS_JIT=0
4862 ;;
4863    Blackfin)    TARGET_HAS_JIT=0
4864 ;;
4865    MBlaze)      TARGET_HAS_JIT=0
4866 ;;
4867    PTX)         TARGET_HAS_JIT=0
4868 ;;
4869    *)           TARGET_HAS_JIT=0
4870 ;;
4871  esac
4872fi
4873
4874# Check whether --enable-doxygen was given.
4875if test "${enable_doxygen+set}" = set; then
4876  enableval=$enable_doxygen;
4877else
4878  enableval=default
4879fi
4880
4881case "$enableval" in
4882  yes) ENABLE_DOXYGEN=1
4883 ;;
4884  no)  ENABLE_DOXYGEN=0
4885 ;;
4886  default) ENABLE_DOXYGEN=0
4887 ;;
4888  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4889echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4890   { (exit 1); exit 1; }; } ;;
4891esac
4892
4893# Check whether --enable-threads was given.
4894if test "${enable_threads+set}" = set; then
4895  enableval=$enable_threads;
4896else
4897  enableval=default
4898fi
4899
4900case "$enableval" in
4901  yes) ENABLE_THREADS=1
4902 ;;
4903  no)  ENABLE_THREADS=0
4904 ;;
4905  default) ENABLE_THREADS=1
4906 ;;
4907  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4908echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4909   { (exit 1); exit 1; }; } ;;
4910esac
4911
4912cat >>confdefs.h <<_ACEOF
4913#define ENABLE_THREADS $ENABLE_THREADS
4914_ACEOF
4915
4916
4917# Check whether --enable-pic was given.
4918if test "${enable_pic+set}" = set; then
4919  enableval=$enable_pic;
4920else
4921  enableval=default
4922fi
4923
4924case "$enableval" in
4925  yes) ENABLE_PIC=1
4926 ;;
4927  no)  ENABLE_PIC=0
4928 ;;
4929  default) ENABLE_PIC=1
4930 ;;
4931  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4932echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4933   { (exit 1); exit 1; }; } ;;
4934esac
4935
4936cat >>confdefs.h <<_ACEOF
4937#define ENABLE_PIC $ENABLE_PIC
4938_ACEOF
4939
4940
4941# Check whether --enable-shared was given.
4942if test "${enable_shared+set}" = set; then
4943  enableval=$enable_shared;
4944else
4945  enableval=default
4946fi
4947
4948case "$enableval" in
4949  yes) ENABLE_SHARED=1
4950 ;;
4951  no)  ENABLE_SHARED=0
4952 ;;
4953  default) ENABLE_SHARED=0
4954 ;;
4955  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4956echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4957   { (exit 1); exit 1; }; } ;;
4958esac
4959
4960# Check whether --enable-timestamps was given.
4961if test "${enable_timestamps+set}" = set; then
4962  enableval=$enable_timestamps;
4963else
4964  enableval=default
4965fi
4966
4967case "$enableval" in
4968  yes) ENABLE_TIMESTAMPS=1
4969 ;;
4970  no)  ENABLE_TIMESTAMPS=0
4971 ;;
4972  default) ENABLE_TIMESTAMPS=1
4973 ;;
4974  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4975echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4976   { (exit 1); exit 1; }; } ;;
4977esac
4978
4979cat >>confdefs.h <<_ACEOF
4980#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4981_ACEOF
4982
4983
4984TARGETS_TO_BUILD=""
4985# Check whether --enable-targets was given.
4986if test "${enable_targets+set}" = set; then
4987  enableval=$enable_targets;
4988else
4989  enableval=all
4990fi
4991
4992if test "$enableval" = host-only ; then
4993  enableval=host
4994fi
4995case "$enableval" in
4996  all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4997  *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4998      case "$a_target" in
4999        x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5000        x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5001        sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5002        powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5003        alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5004        arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5005        mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5006        spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5007        xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5008        msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5009        systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5010        blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5011        cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5012        cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5013        mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5014        ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5015        host) case "$llvm_cv_target_arch" in
5016            x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5017            x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5018            Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5019            PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5020            Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5021            ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5022            Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5023            MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5024            CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5025            XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5026            MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5027            s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5028            Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5029            PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5030            *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5031echo "$as_me: error: Can not set target to build" >&2;}
5032   { (exit 1); exit 1; }; } ;;
5033          esac ;;
5034        *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5035echo "$as_me: error: Unrecognized target $a_target" >&2;}
5036   { (exit 1); exit 1; }; } ;;
5037      esac
5038  done
5039  ;;
5040esac
5041TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5042
5043
5044# Determine whether we are building LLVM support for the native architecture.
5045# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5046for a_target in $TARGETS_TO_BUILD; do
5047  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5048
5049cat >>confdefs.h <<_ACEOF
5050#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5051_ACEOF
5052
5053    LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5054    LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5055    LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5056
5057cat >>confdefs.h <<_ACEOF
5058#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5059_ACEOF
5060
5061
5062cat >>confdefs.h <<_ACEOF
5063#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5064_ACEOF
5065
5066
5067cat >>confdefs.h <<_ACEOF
5068#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5069_ACEOF
5070
5071  fi
5072done
5073
5074# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5075# target feature def files.
5076LLVM_ENUM_TARGETS=""
5077LLVM_ENUM_ASM_PRINTERS=""
5078LLVM_ENUM_ASM_PARSERS=""
5079LLVM_ENUM_DISASSEMBLERS=""
5080for target_to_build in $TARGETS_TO_BUILD; do
5081  LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5082  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5083    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5084  fi
5085  # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5086  if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5087    LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5088  fi
5089  if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5090    LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5091  fi
5092  if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5093    LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5094  fi
5095done
5096
5097
5098
5099
5100
5101# Check whether --enable-cbe-printf-a was given.
5102if test "${enable_cbe_printf_a+set}" = set; then
5103  enableval=$enable_cbe_printf_a;
5104else
5105  enableval=default
5106fi
5107
5108case "$enableval" in
5109  yes) ENABLE_CBE_PRINTF_A=1
5110 ;;
5111  no)  ENABLE_CBE_PRINTF_A=0
5112 ;;
5113  default)  ENABLE_CBE_PRINTF_A=1
5114 ;;
5115  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5116echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5117   { (exit 1); exit 1; }; } ;;
5118esac
5119
5120cat >>confdefs.h <<_ACEOF
5121#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5122_ACEOF
5123
5124
5125
5126# Check whether --with-llvmgccdir was given.
5127if test "${with_llvmgccdir+set}" = set; then
5128  withval=$with_llvmgccdir;
5129else
5130  withval=default
5131fi
5132
5133case "$withval" in
5134  default) WITH_LLVMGCCDIR=default ;;
5135  /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5136  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5137echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5138   { (exit 1); exit 1; }; } ;;
5139esac
5140
5141
5142# Check whether --with-llvmgcc was given.
5143if test "${with_llvmgcc+set}" = set; then
5144  withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5145      WITH_LLVMGCCDIR=""
5146fi
5147
5148
5149
5150# Check whether --with-llvmgxx was given.
5151if test "${with_llvmgxx+set}" = set; then
5152  withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5153    WITH_LLVMGCCDIR=""
5154fi
5155
5156
5157if test -n "$LLVMGCC"; then
5158   LLVMGCCCOMMAND="$LLVMGCC"
5159fi
5160
5161if test -n "$LLVMGXX"; then
5162   LLVMGXXCOMMAND="$LLVMGXX"
5163fi
5164
5165if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5166   { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5167echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5168   { (exit 1); exit 1; }; };
5169fi
5170
5171if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5172   { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5173echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5174   { (exit 1); exit 1; }; };
5175fi
5176
5177
5178# Check whether --with-clang was given.
5179if test "${with_clang+set}" = set; then
5180  withval=$with_clang;
5181else
5182  with_clang=default
5183fi
5184
5185
5186
5187# Check whether --with-built-clang was given.
5188if test "${with_built_clang+set}" = set; then
5189  withval=$with_built_clang;
5190else
5191  with_built_clang=check
5192fi
5193
5194
5195{ echo "$as_me:$LINENO: checking clang compiler" >&5
5196echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5197WITH_CLANGPATH=""
5198WITH_BUILT_CLANG=0
5199if test "$with_clang" != "default"; then
5200   WITH_CLANGPATH="$with_clang"
5201   if ! test -x "$WITH_CLANGPATH"; then
5202     { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5203echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5204   { (exit 1); exit 1; }; }
5205   fi
5206elif test "$with_built_clang" = "yes"; then
5207   WITH_BUILT_CLANG=1
5208elif test "$with_built_clang" = "no"; then
5209   WITH_BUILT_CLANG=0
5210else
5211   if test "$with_built_clang" != "check"; then
5212      { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5213echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5214   { (exit 1); exit 1; }; }
5215   fi
5216
5217   if test -f ${srcdir}/tools/clang/README.txt; then
5218     WITH_BUILT_CLANG=1
5219   fi
5220fi
5221
5222if ! test -z "$WITH_CLANGPATH"; then
5223   { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5224echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5225   WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5226elif test "$WITH_BUILT_CLANG" = "1"; then
5227   { echo "$as_me:$LINENO: result: built" >&5
5228echo "${ECHO_T}built" >&6; }
5229else
5230   { echo "$as_me:$LINENO: result: none" >&5
5231echo "${ECHO_T}none" >&6; }
5232fi
5233CLANGPATH=$WITH_CLANGPATH
5234
5235CLANGXXPATH=$WITH_CLANGXXPATH
5236
5237ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5238
5239
5240
5241# Check whether --with-optimize-option was given.
5242if test "${with_optimize_option+set}" = set; then
5243  withval=$with_optimize_option;
5244else
5245  withval=default
5246fi
5247
5248{ echo "$as_me:$LINENO: checking optimization flags" >&5
5249echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5250case "$withval" in
5251  default)
5252    case "$llvm_cv_os_type" in
5253    FreeBSD) optimize_option=-O2 ;;
5254    MingW) optimize_option=-O2 ;;
5255    *)     optimize_option=-O3 ;;
5256    esac ;;
5257  *) optimize_option="$withval" ;;
5258esac
5259OPTIMIZE_OPTION=$optimize_option
5260
5261{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5262echo "${ECHO_T}$optimize_option" >&6; }
5263
5264
5265# Check whether --with-extra-options was given.
5266if test "${with_extra_options+set}" = set; then
5267  withval=$with_extra_options;
5268else
5269  withval=default
5270fi
5271
5272case "$withval" in
5273  default) EXTRA_OPTIONS= ;;
5274  *) EXTRA_OPTIONS=$withval ;;
5275esac
5276EXTRA_OPTIONS=$EXTRA_OPTIONS
5277
5278
5279# Check whether --enable-bindings was given.
5280if test "${enable_bindings+set}" = set; then
5281  enableval=$enable_bindings;
5282else
5283  enableval=default
5284fi
5285
5286BINDINGS_TO_BUILD=""
5287case "$enableval" in
5288  yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5289  all ) BINDINGS_TO_BUILD="ocaml" ;;
5290  none | no) BINDINGS_TO_BUILD="" ;;
5291  *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5292      case "$a_binding" in
5293        ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5294        *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5295echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5296   { (exit 1); exit 1; }; } ;;
5297      esac
5298  done
5299  ;;
5300esac
5301
5302
5303# Check whether --with-ocaml-libdir was given.
5304if test "${with_ocaml_libdir+set}" = set; then
5305  withval=$with_ocaml_libdir;
5306else
5307  withval=auto
5308fi
5309
5310case "$withval" in
5311  auto) with_ocaml_libdir="$withval" ;;
5312  /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5313  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5314echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5315   { (exit 1); exit 1; }; } ;;
5316esac
5317
5318
5319# Check whether --with-clang-resource-dir was given.
5320if test "${with_clang_resource_dir+set}" = set; then
5321  withval=$with_clang_resource_dir;
5322else
5323  withval=""
5324fi
5325
5326
5327cat >>confdefs.h <<_ACEOF
5328#define CLANG_RESOURCE_DIR "$withval"
5329_ACEOF
5330
5331
5332
5333# Check whether --with-c-include-dirs was given.
5334if test "${with_c_include_dirs+set}" = set; then
5335  withval=$with_c_include_dirs;
5336else
5337  withval=""
5338fi
5339
5340
5341cat >>confdefs.h <<_ACEOF
5342#define C_INCLUDE_DIRS "$withval"
5343_ACEOF
5344
5345
5346
5347# Check whether --with-cxx-include-root was given.
5348if test "${with_cxx_include_root+set}" = set; then
5349  withval=$with_cxx_include_root;
5350else
5351  withval=""
5352fi
5353
5354
5355cat >>confdefs.h <<_ACEOF
5356#define CXX_INCLUDE_ROOT "$withval"
5357_ACEOF
5358
5359
5360
5361# Check whether --with-cxx-include-arch was given.
5362if test "${with_cxx_include_arch+set}" = set; then
5363  withval=$with_cxx_include_arch;
5364else
5365  withval=""
5366fi
5367
5368
5369cat >>confdefs.h <<_ACEOF
5370#define CXX_INCLUDE_ARCH "$withval"
5371_ACEOF
5372
5373
5374
5375# Check whether --with-cxx-include-32bit-dir was given.
5376if test "${with_cxx_include_32bit_dir+set}" = set; then
5377  withval=$with_cxx_include_32bit_dir;
5378else
5379  withval=""
5380fi
5381
5382
5383cat >>confdefs.h <<_ACEOF
5384#define CXX_INCLUDE_32BIT_DIR "$withval"
5385_ACEOF
5386
5387
5388
5389# Check whether --with-cxx-include-64bit-dir was given.
5390if test "${with_cxx_include_64bit_dir+set}" = set; then
5391  withval=$with_cxx_include_64bit_dir;
5392else
5393  withval=""
5394fi
5395
5396
5397cat >>confdefs.h <<_ACEOF
5398#define CXX_INCLUDE_64BIT_DIR "$withval"
5399_ACEOF
5400
5401
5402
5403# Check whether --with-binutils-include was given.
5404if test "${with_binutils_include+set}" = set; then
5405  withval=$with_binutils_include;
5406else
5407  withval=default
5408fi
5409
5410case "$withval" in
5411  default) WITH_BINUTILS_INCDIR=default ;;
5412  /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5413  *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5414echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5415   { (exit 1); exit 1; }; } ;;
5416esac
5417if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5418  BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5419
5420  if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5421     echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5422     { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5423echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5424   { (exit 1); exit 1; }; };
5425  fi
5426fi
5427
5428# Check whether --enable-libffi was given.
5429if test "${enable_libffi+set}" = set; then
5430  enableval=$enable_libffi; case "$enableval" in
5431    yes) llvm_cv_enable_libffi="yes" ;;
5432    no)  llvm_cv_enable_libffi="no"  ;;
5433    *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5434echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5435   { (exit 1); exit 1; }; } ;;
5436  esac
5437else
5438  llvm_cv_enable_libffi=no
5439fi
5440
5441
5442
5443ac_ext=c
5444ac_cpp='$CPP $CPPFLAGS'
5445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5449echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5450# On Suns, sometimes $CPP names a directory.
5451if test -n "$CPP" && test -d "$CPP"; then
5452  CPP=
5453fi
5454if test -z "$CPP"; then
5455  if test "${ac_cv_prog_CPP+set}" = set; then
5456  echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458      # Double quotes because CPP needs to be expanded
5459    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5460    do
5461      ac_preproc_ok=false
5462for ac_c_preproc_warn_flag in '' yes
5463do
5464  # Use a header file that comes with gcc, so configuring glibc
5465  # with a fresh cross-compiler works.
5466  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467  # <limits.h> exists even on freestanding compilers.
5468  # On the NeXT, cc -E runs the code through the compiler's parser,
5469  # not just through cpp. "Syntax error" is here to catch this case.
5470  cat >conftest.$ac_ext <<_ACEOF
5471/* confdefs.h.  */
5472_ACEOF
5473cat confdefs.h >>conftest.$ac_ext
5474cat >>conftest.$ac_ext <<_ACEOF
5475/* end confdefs.h.  */
5476#ifdef __STDC__
5477# include <limits.h>
5478#else
5479# include <assert.h>
5480#endif
5481		     Syntax error
5482_ACEOF
5483if { (ac_try="$ac_cpp conftest.$ac_ext"
5484case "(($ac_try" in
5485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486  *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490  ac_status=$?
5491  grep -v '^ *+' conftest.er1 >conftest.err
5492  rm -f conftest.er1
5493  cat conftest.err >&5
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } >/dev/null; then
5496  if test -s conftest.err; then
5497    ac_cpp_err=$ac_c_preproc_warn_flag
5498    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499  else
5500    ac_cpp_err=
5501  fi
5502else
5503  ac_cpp_err=yes
5504fi
5505if test -z "$ac_cpp_err"; then
5506  :
5507else
5508  echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
5511  # Broken: fails on valid input.
5512continue
5513fi
5514
5515rm -f conftest.err conftest.$ac_ext
5516
5517  # OK, works on sane cases.  Now check whether nonexistent headers
5518  # can be detected and how.
5519  cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h.  */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h.  */
5525#include <ac_nonexistent.h>
5526_ACEOF
5527if { (ac_try="$ac_cpp conftest.$ac_ext"
5528case "(($ac_try" in
5529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530  *) ac_try_echo=$ac_try;;
5531esac
5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534  ac_status=$?
5535  grep -v '^ *+' conftest.er1 >conftest.err
5536  rm -f conftest.er1
5537  cat conftest.err >&5
5538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539  (exit $ac_status); } >/dev/null; then
5540  if test -s conftest.err; then
5541    ac_cpp_err=$ac_c_preproc_warn_flag
5542    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543  else
5544    ac_cpp_err=
5545  fi
5546else
5547  ac_cpp_err=yes
5548fi
5549if test -z "$ac_cpp_err"; then
5550  # Broken: success on invalid input.
5551continue
5552else
5553  echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556  # Passes both tests.
5557ac_preproc_ok=:
5558break
5559fi
5560
5561rm -f conftest.err conftest.$ac_ext
5562
5563done
5564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5565rm -f conftest.err conftest.$ac_ext
5566if $ac_preproc_ok; then
5567  break
5568fi
5569
5570    done
5571    ac_cv_prog_CPP=$CPP
5572
5573fi
5574  CPP=$ac_cv_prog_CPP
5575else
5576  ac_cv_prog_CPP=$CPP
5577fi
5578{ echo "$as_me:$LINENO: result: $CPP" >&5
5579echo "${ECHO_T}$CPP" >&6; }
5580ac_preproc_ok=false
5581for ac_c_preproc_warn_flag in '' yes
5582do
5583  # Use a header file that comes with gcc, so configuring glibc
5584  # with a fresh cross-compiler works.
5585  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586  # <limits.h> exists even on freestanding compilers.
5587  # On the NeXT, cc -E runs the code through the compiler's parser,
5588  # not just through cpp. "Syntax error" is here to catch this case.
5589  cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h.  */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
5594/* end confdefs.h.  */
5595#ifdef __STDC__
5596# include <limits.h>
5597#else
5598# include <assert.h>
5599#endif
5600		     Syntax error
5601_ACEOF
5602if { (ac_try="$ac_cpp conftest.$ac_ext"
5603case "(($ac_try" in
5604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605  *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609  ac_status=$?
5610  grep -v '^ *+' conftest.er1 >conftest.err
5611  rm -f conftest.er1
5612  cat conftest.err >&5
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); } >/dev/null; then
5615  if test -s conftest.err; then
5616    ac_cpp_err=$ac_c_preproc_warn_flag
5617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5618  else
5619    ac_cpp_err=
5620  fi
5621else
5622  ac_cpp_err=yes
5623fi
5624if test -z "$ac_cpp_err"; then
5625  :
5626else
5627  echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630  # Broken: fails on valid input.
5631continue
5632fi
5633
5634rm -f conftest.err conftest.$ac_ext
5635
5636  # OK, works on sane cases.  Now check whether nonexistent headers
5637  # can be detected and how.
5638  cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h.  */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
5643/* end confdefs.h.  */
5644#include <ac_nonexistent.h>
5645_ACEOF
5646if { (ac_try="$ac_cpp conftest.$ac_ext"
5647case "(($ac_try" in
5648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649  *) ac_try_echo=$ac_try;;
5650esac
5651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5653  ac_status=$?
5654  grep -v '^ *+' conftest.er1 >conftest.err
5655  rm -f conftest.er1
5656  cat conftest.err >&5
5657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658  (exit $ac_status); } >/dev/null; then
5659  if test -s conftest.err; then
5660    ac_cpp_err=$ac_c_preproc_warn_flag
5661    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5662  else
5663    ac_cpp_err=
5664  fi
5665else
5666  ac_cpp_err=yes
5667fi
5668if test -z "$ac_cpp_err"; then
5669  # Broken: success on invalid input.
5670continue
5671else
5672  echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675  # Passes both tests.
5676ac_preproc_ok=:
5677break
5678fi
5679
5680rm -f conftest.err conftest.$ac_ext
5681
5682done
5683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5684rm -f conftest.err conftest.$ac_ext
5685if $ac_preproc_ok; then
5686  :
5687else
5688  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5689See \`config.log' for more details." >&5
5690echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5691See \`config.log' for more details." >&2;}
5692   { (exit 1); exit 1; }; }
5693fi
5694
5695ac_ext=c
5696ac_cpp='$CPP $CPPFLAGS'
5697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700
5701ac_ext=c
5702ac_cpp='$CPP $CPPFLAGS'
5703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706if test -n "$ac_tool_prefix"; then
5707  for ac_prog in gcc
5708  do
5709    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5710set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5713if test "${ac_cv_prog_CC+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  if test -n "$CC"; then
5717  ac_cv_prog_CC="$CC" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  test -z "$as_dir" && as_dir=.
5724  for ac_exec_ext in '' $ac_executable_extensions; do
5725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5726    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5728    break 2
5729  fi
5730done
5731done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736CC=$ac_cv_prog_CC
5737if test -n "$CC"; then
5738  { echo "$as_me:$LINENO: result: $CC" >&5
5739echo "${ECHO_T}$CC" >&6; }
5740else
5741  { echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6; }
5743fi
5744
5745
5746    test -n "$CC" && break
5747  done
5748fi
5749if test -z "$CC"; then
5750  ac_ct_CC=$CC
5751  for ac_prog in gcc
5752do
5753  # Extract the first word of "$ac_prog", so it can be a program name with args.
5754set dummy $ac_prog; ac_word=$2
5755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760  if test -n "$ac_ct_CC"; then
5761  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766  IFS=$as_save_IFS
5767  test -z "$as_dir" && as_dir=.
5768  for ac_exec_ext in '' $ac_executable_extensions; do
5769  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770    ac_cv_prog_ac_ct_CC="$ac_prog"
5771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772    break 2
5773  fi
5774done
5775done
5776IFS=$as_save_IFS
5777
5778fi
5779fi
5780ac_ct_CC=$ac_cv_prog_ac_ct_CC
5781if test -n "$ac_ct_CC"; then
5782  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5783echo "${ECHO_T}$ac_ct_CC" >&6; }
5784else
5785  { echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6; }
5787fi
5788
5789
5790  test -n "$ac_ct_CC" && break
5791done
5792
5793  if test "x$ac_ct_CC" = x; then
5794    CC=""
5795  else
5796    case $cross_compiling:$ac_tool_warned in
5797yes:)
5798{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5799whose name does not start with the host triplet.  If you think this
5800configuration is useful to you, please write to autoconf@gnu.org." >&5
5801echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5802whose name does not start with the host triplet.  If you think this
5803configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5804ac_tool_warned=yes ;;
5805esac
5806    CC=$ac_ct_CC
5807  fi
5808fi
5809
5810
5811test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5812See \`config.log' for more details." >&5
5813echo "$as_me: error: no acceptable C compiler found in \$PATH
5814See \`config.log' for more details." >&2;}
5815   { (exit 1); exit 1; }; }
5816
5817# Provide some information about the compiler.
5818echo "$as_me:$LINENO: checking for C compiler version" >&5
5819ac_compiler=`set X $ac_compile; echo $2`
5820{ (ac_try="$ac_compiler --version >&5"
5821case "(($ac_try" in
5822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823  *) ac_try_echo=$ac_try;;
5824esac
5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826  (eval "$ac_compiler --version >&5") 2>&5
5827  ac_status=$?
5828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829  (exit $ac_status); }
5830{ (ac_try="$ac_compiler -v >&5"
5831case "(($ac_try" in
5832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833  *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836  (eval "$ac_compiler -v >&5") 2>&5
5837  ac_status=$?
5838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839  (exit $ac_status); }
5840{ (ac_try="$ac_compiler -V >&5"
5841case "(($ac_try" in
5842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843  *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846  (eval "$ac_compiler -V >&5") 2>&5
5847  ac_status=$?
5848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849  (exit $ac_status); }
5850
5851{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5852echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5853if test "${ac_cv_c_compiler_gnu+set}" = set; then
5854  echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856  cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h.  */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h.  */
5862
5863int
5864main ()
5865{
5866#ifndef __GNUC__
5867       choke me
5868#endif
5869
5870  ;
5871  return 0;
5872}
5873_ACEOF
5874rm -f conftest.$ac_objext
5875if { (ac_try="$ac_compile"
5876case "(($ac_try" in
5877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878  *) ac_try_echo=$ac_try;;
5879esac
5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881  (eval "$ac_compile") 2>conftest.er1
5882  ac_status=$?
5883  grep -v '^ *+' conftest.er1 >conftest.err
5884  rm -f conftest.er1
5885  cat conftest.err >&5
5886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887  (exit $ac_status); } &&
5888	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5889  { (case "(($ac_try" in
5890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891  *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894  (eval "$ac_try") 2>&5
5895  ac_status=$?
5896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897  (exit $ac_status); }; } &&
5898	 { ac_try='test -s conftest.$ac_objext'
5899  { (case "(($ac_try" in
5900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901  *) ac_try_echo=$ac_try;;
5902esac
5903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904  (eval "$ac_try") 2>&5
5905  ac_status=$?
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); }; }; then
5908  ac_compiler_gnu=yes
5909else
5910  echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913	ac_compiler_gnu=no
5914fi
5915
5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917ac_cv_c_compiler_gnu=$ac_compiler_gnu
5918
5919fi
5920{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5921echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5922GCC=`test $ac_compiler_gnu = yes && echo yes`
5923ac_test_CFLAGS=${CFLAGS+set}
5924ac_save_CFLAGS=$CFLAGS
5925{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5926echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5927if test "${ac_cv_prog_cc_g+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  ac_save_c_werror_flag=$ac_c_werror_flag
5931   ac_c_werror_flag=yes
5932   ac_cv_prog_cc_g=no
5933   CFLAGS="-g"
5934   cat >conftest.$ac_ext <<_ACEOF
5935/* confdefs.h.  */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
5939/* end confdefs.h.  */
5940
5941int
5942main ()
5943{
5944
5945  ;
5946  return 0;
5947}
5948_ACEOF
5949rm -f conftest.$ac_objext
5950if { (ac_try="$ac_compile"
5951case "(($ac_try" in
5952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953  *) ac_try_echo=$ac_try;;
5954esac
5955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956  (eval "$ac_compile") 2>conftest.er1
5957  ac_status=$?
5958  grep -v '^ *+' conftest.er1 >conftest.err
5959  rm -f conftest.er1
5960  cat conftest.err >&5
5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962  (exit $ac_status); } &&
5963	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5964  { (case "(($ac_try" in
5965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966  *) ac_try_echo=$ac_try;;
5967esac
5968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969  (eval "$ac_try") 2>&5
5970  ac_status=$?
5971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972  (exit $ac_status); }; } &&
5973	 { ac_try='test -s conftest.$ac_objext'
5974  { (case "(($ac_try" in
5975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976  *) ac_try_echo=$ac_try;;
5977esac
5978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979  (eval "$ac_try") 2>&5
5980  ac_status=$?
5981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982  (exit $ac_status); }; }; then
5983  ac_cv_prog_cc_g=yes
5984else
5985  echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988	CFLAGS=""
5989      cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h.  */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h.  */
5995
5996int
5997main ()
5998{
5999
6000  ;
6001  return 0;
6002}
6003_ACEOF
6004rm -f conftest.$ac_objext
6005if { (ac_try="$ac_compile"
6006case "(($ac_try" in
6007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008  *) ac_try_echo=$ac_try;;
6009esac
6010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011  (eval "$ac_compile") 2>conftest.er1
6012  ac_status=$?
6013  grep -v '^ *+' conftest.er1 >conftest.err
6014  rm -f conftest.er1
6015  cat conftest.err >&5
6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); } &&
6018	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019  { (case "(($ac_try" in
6020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021  *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024  (eval "$ac_try") 2>&5
6025  ac_status=$?
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); }; } &&
6028	 { ac_try='test -s conftest.$ac_objext'
6029  { (case "(($ac_try" in
6030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031  *) ac_try_echo=$ac_try;;
6032esac
6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034  (eval "$ac_try") 2>&5
6035  ac_status=$?
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); }; }; then
6038  :
6039else
6040  echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043	ac_c_werror_flag=$ac_save_c_werror_flag
6044	 CFLAGS="-g"
6045	 cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h.  */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h.  */
6051
6052int
6053main ()
6054{
6055
6056  ;
6057  return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext
6061if { (ac_try="$ac_compile"
6062case "(($ac_try" in
6063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064  *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067  (eval "$ac_compile") 2>conftest.er1
6068  ac_status=$?
6069  grep -v '^ *+' conftest.er1 >conftest.err
6070  rm -f conftest.er1
6071  cat conftest.err >&5
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); } &&
6074	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075  { (case "(($ac_try" in
6076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077  *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080  (eval "$ac_try") 2>&5
6081  ac_status=$?
6082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083  (exit $ac_status); }; } &&
6084	 { ac_try='test -s conftest.$ac_objext'
6085  { (case "(($ac_try" in
6086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087  *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090  (eval "$ac_try") 2>&5
6091  ac_status=$?
6092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093  (exit $ac_status); }; }; then
6094  ac_cv_prog_cc_g=yes
6095else
6096  echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
6099
6100fi
6101
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103fi
6104
6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106fi
6107
6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109   ac_c_werror_flag=$ac_save_c_werror_flag
6110fi
6111{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6112echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6113if test "$ac_test_CFLAGS" = set; then
6114  CFLAGS=$ac_save_CFLAGS
6115elif test $ac_cv_prog_cc_g = yes; then
6116  if test "$GCC" = yes; then
6117    CFLAGS="-g -O2"
6118  else
6119    CFLAGS="-g"
6120  fi
6121else
6122  if test "$GCC" = yes; then
6123    CFLAGS="-O2"
6124  else
6125    CFLAGS=
6126  fi
6127fi
6128{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6129echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6130if test "${ac_cv_prog_cc_c89+set}" = set; then
6131  echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133  ac_cv_prog_cc_c89=no
6134ac_save_CC=$CC
6135cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h.  */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h.  */
6141#include <stdarg.h>
6142#include <stdio.h>
6143#include <sys/types.h>
6144#include <sys/stat.h>
6145/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6146struct buf { int x; };
6147FILE * (*rcsopen) (struct buf *, struct stat *, int);
6148static char *e (p, i)
6149     char **p;
6150     int i;
6151{
6152  return p[i];
6153}
6154static char *f (char * (*g) (char **, int), char **p, ...)
6155{
6156  char *s;
6157  va_list v;
6158  va_start (v,p);
6159  s = g (p, va_arg (v,int));
6160  va_end (v);
6161  return s;
6162}
6163
6164/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6165   function prototypes and stuff, but not '\xHH' hex character constants.
6166   These don't provoke an error unfortunately, instead are silently treated
6167   as 'x'.  The following induces an error, until -std is added to get
6168   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6169   array size at least.  It's necessary to write '\x00'==0 to get something
6170   that's true only with -std.  */
6171int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6172
6173/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6174   inside strings and character constants.  */
6175#define FOO(x) 'x'
6176int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6177
6178int test (int i, double x);
6179struct s1 {int (*f) (int a);};
6180struct s2 {int (*f) (double a);};
6181int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6182int argc;
6183char **argv;
6184int
6185main ()
6186{
6187return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6188  ;
6189  return 0;
6190}
6191_ACEOF
6192for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6193	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6194do
6195  CC="$ac_save_CC $ac_arg"
6196  rm -f conftest.$ac_objext
6197if { (ac_try="$ac_compile"
6198case "(($ac_try" in
6199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200  *) ac_try_echo=$ac_try;;
6201esac
6202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203  (eval "$ac_compile") 2>conftest.er1
6204  ac_status=$?
6205  grep -v '^ *+' conftest.er1 >conftest.err
6206  rm -f conftest.er1
6207  cat conftest.err >&5
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); } &&
6210	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211  { (case "(($ac_try" in
6212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213  *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216  (eval "$ac_try") 2>&5
6217  ac_status=$?
6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); }; } &&
6220	 { ac_try='test -s conftest.$ac_objext'
6221  { (case "(($ac_try" in
6222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223  *) ac_try_echo=$ac_try;;
6224esac
6225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226  (eval "$ac_try") 2>&5
6227  ac_status=$?
6228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); }; }; then
6230  ac_cv_prog_cc_c89=$ac_arg
6231else
6232  echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235
6236fi
6237
6238rm -f core conftest.err conftest.$ac_objext
6239  test "x$ac_cv_prog_cc_c89" != "xno" && break
6240done
6241rm -f conftest.$ac_ext
6242CC=$ac_save_CC
6243
6244fi
6245# AC_CACHE_VAL
6246case "x$ac_cv_prog_cc_c89" in
6247  x)
6248    { echo "$as_me:$LINENO: result: none needed" >&5
6249echo "${ECHO_T}none needed" >&6; } ;;
6250  xno)
6251    { echo "$as_me:$LINENO: result: unsupported" >&5
6252echo "${ECHO_T}unsupported" >&6; } ;;
6253  *)
6254    CC="$CC $ac_cv_prog_cc_c89"
6255    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6256echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6257esac
6258
6259
6260ac_ext=c
6261ac_cpp='$CPP $CPPFLAGS'
6262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265
6266ac_ext=cpp
6267ac_cpp='$CXXCPP $CPPFLAGS'
6268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6271if test -z "$CXX"; then
6272  if test -n "$CCC"; then
6273    CXX=$CCC
6274  else
6275    if test -n "$ac_tool_prefix"; then
6276  for ac_prog in g++
6277  do
6278    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282if test "${ac_cv_prog_CXX+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285  if test -n "$CXX"; then
6286  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293  for ac_exec_ext in '' $ac_executable_extensions; do
6294  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6296    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305CXX=$ac_cv_prog_CXX
6306if test -n "$CXX"; then
6307  { echo "$as_me:$LINENO: result: $CXX" >&5
6308echo "${ECHO_T}$CXX" >&6; }
6309else
6310  { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
6312fi
6313
6314
6315    test -n "$CXX" && break
6316  done
6317fi
6318if test -z "$CXX"; then
6319  ac_ct_CXX=$CXX
6320  for ac_prog in g++
6321do
6322  # Extract the first word of "$ac_prog", so it can be a program name with args.
6323set dummy $ac_prog; ac_word=$2
6324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  if test -n "$ac_ct_CXX"; then
6330  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335  IFS=$as_save_IFS
6336  test -z "$as_dir" && as_dir=.
6337  for ac_exec_ext in '' $ac_executable_extensions; do
6338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339    ac_cv_prog_ac_ct_CXX="$ac_prog"
6340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341    break 2
6342  fi
6343done
6344done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6350if test -n "$ac_ct_CXX"; then
6351  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6352echo "${ECHO_T}$ac_ct_CXX" >&6; }
6353else
6354  { echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6; }
6356fi
6357
6358
6359  test -n "$ac_ct_CXX" && break
6360done
6361
6362  if test "x$ac_ct_CXX" = x; then
6363    CXX="g++"
6364  else
6365    case $cross_compiling:$ac_tool_warned in
6366yes:)
6367{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6368whose name does not start with the host triplet.  If you think this
6369configuration is useful to you, please write to autoconf@gnu.org." >&5
6370echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6371whose name does not start with the host triplet.  If you think this
6372configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6373ac_tool_warned=yes ;;
6374esac
6375    CXX=$ac_ct_CXX
6376  fi
6377fi
6378
6379  fi
6380fi
6381# Provide some information about the compiler.
6382echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6383ac_compiler=`set X $ac_compile; echo $2`
6384{ (ac_try="$ac_compiler --version >&5"
6385case "(($ac_try" in
6386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387  *) ac_try_echo=$ac_try;;
6388esac
6389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390  (eval "$ac_compiler --version >&5") 2>&5
6391  ac_status=$?
6392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393  (exit $ac_status); }
6394{ (ac_try="$ac_compiler -v >&5"
6395case "(($ac_try" in
6396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397  *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400  (eval "$ac_compiler -v >&5") 2>&5
6401  ac_status=$?
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); }
6404{ (ac_try="$ac_compiler -V >&5"
6405case "(($ac_try" in
6406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407  *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410  (eval "$ac_compiler -V >&5") 2>&5
6411  ac_status=$?
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); }
6414
6415{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6416echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6417if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6418  echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420  cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h.  */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h.  */
6426
6427int
6428main ()
6429{
6430#ifndef __GNUC__
6431       choke me
6432#endif
6433
6434  ;
6435  return 0;
6436}
6437_ACEOF
6438rm -f conftest.$ac_objext
6439if { (ac_try="$ac_compile"
6440case "(($ac_try" in
6441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442  *) ac_try_echo=$ac_try;;
6443esac
6444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445  (eval "$ac_compile") 2>conftest.er1
6446  ac_status=$?
6447  grep -v '^ *+' conftest.er1 >conftest.err
6448  rm -f conftest.er1
6449  cat conftest.err >&5
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); } &&
6452	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6453  { (case "(($ac_try" in
6454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455  *) ac_try_echo=$ac_try;;
6456esac
6457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458  (eval "$ac_try") 2>&5
6459  ac_status=$?
6460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461  (exit $ac_status); }; } &&
6462	 { ac_try='test -s conftest.$ac_objext'
6463  { (case "(($ac_try" in
6464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465  *) ac_try_echo=$ac_try;;
6466esac
6467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468  (eval "$ac_try") 2>&5
6469  ac_status=$?
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); }; }; then
6472  ac_compiler_gnu=yes
6473else
6474  echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
6477	ac_compiler_gnu=no
6478fi
6479
6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6482
6483fi
6484{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6485echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6486GXX=`test $ac_compiler_gnu = yes && echo yes`
6487ac_test_CXXFLAGS=${CXXFLAGS+set}
6488ac_save_CXXFLAGS=$CXXFLAGS
6489{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6490echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6491if test "${ac_cv_prog_cxx_g+set}" = set; then
6492  echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6495   ac_cxx_werror_flag=yes
6496   ac_cv_prog_cxx_g=no
6497   CXXFLAGS="-g"
6498   cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h.  */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h.  */
6504
6505int
6506main ()
6507{
6508
6509  ;
6510  return 0;
6511}
6512_ACEOF
6513rm -f conftest.$ac_objext
6514if { (ac_try="$ac_compile"
6515case "(($ac_try" in
6516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517  *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520  (eval "$ac_compile") 2>conftest.er1
6521  ac_status=$?
6522  grep -v '^ *+' conftest.er1 >conftest.err
6523  rm -f conftest.er1
6524  cat conftest.err >&5
6525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526  (exit $ac_status); } &&
6527	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6528  { (case "(($ac_try" in
6529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530  *) ac_try_echo=$ac_try;;
6531esac
6532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533  (eval "$ac_try") 2>&5
6534  ac_status=$?
6535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536  (exit $ac_status); }; } &&
6537	 { ac_try='test -s conftest.$ac_objext'
6538  { (case "(($ac_try" in
6539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540  *) ac_try_echo=$ac_try;;
6541esac
6542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543  (eval "$ac_try") 2>&5
6544  ac_status=$?
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); }; }; then
6547  ac_cv_prog_cxx_g=yes
6548else
6549  echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552	CXXFLAGS=""
6553      cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h.  */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
6558/* end confdefs.h.  */
6559
6560int
6561main ()
6562{
6563
6564  ;
6565  return 0;
6566}
6567_ACEOF
6568rm -f conftest.$ac_objext
6569if { (ac_try="$ac_compile"
6570case "(($ac_try" in
6571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572  *) ac_try_echo=$ac_try;;
6573esac
6574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575  (eval "$ac_compile") 2>conftest.er1
6576  ac_status=$?
6577  grep -v '^ *+' conftest.er1 >conftest.err
6578  rm -f conftest.er1
6579  cat conftest.err >&5
6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581  (exit $ac_status); } &&
6582	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583  { (case "(($ac_try" in
6584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585  *) ac_try_echo=$ac_try;;
6586esac
6587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588  (eval "$ac_try") 2>&5
6589  ac_status=$?
6590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591  (exit $ac_status); }; } &&
6592	 { ac_try='test -s conftest.$ac_objext'
6593  { (case "(($ac_try" in
6594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595  *) ac_try_echo=$ac_try;;
6596esac
6597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598  (eval "$ac_try") 2>&5
6599  ac_status=$?
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); }; }; then
6602  :
6603else
6604  echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6608	 CXXFLAGS="-g"
6609	 cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h.  */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h.  */
6615
6616int
6617main ()
6618{
6619
6620  ;
6621  return 0;
6622}
6623_ACEOF
6624rm -f conftest.$ac_objext
6625if { (ac_try="$ac_compile"
6626case "(($ac_try" in
6627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628  *) ac_try_echo=$ac_try;;
6629esac
6630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631  (eval "$ac_compile") 2>conftest.er1
6632  ac_status=$?
6633  grep -v '^ *+' conftest.er1 >conftest.err
6634  rm -f conftest.er1
6635  cat conftest.err >&5
6636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637  (exit $ac_status); } &&
6638	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6639  { (case "(($ac_try" in
6640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641  *) ac_try_echo=$ac_try;;
6642esac
6643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644  (eval "$ac_try") 2>&5
6645  ac_status=$?
6646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647  (exit $ac_status); }; } &&
6648	 { ac_try='test -s conftest.$ac_objext'
6649  { (case "(($ac_try" in
6650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651  *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654  (eval "$ac_try") 2>&5
6655  ac_status=$?
6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657  (exit $ac_status); }; }; then
6658  ac_cv_prog_cxx_g=yes
6659else
6660  echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663
6664fi
6665
6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667fi
6668
6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670fi
6671
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6674fi
6675{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6676echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6677if test "$ac_test_CXXFLAGS" = set; then
6678  CXXFLAGS=$ac_save_CXXFLAGS
6679elif test $ac_cv_prog_cxx_g = yes; then
6680  if test "$GXX" = yes; then
6681    CXXFLAGS="-g -O2"
6682  else
6683    CXXFLAGS="-g"
6684  fi
6685else
6686  if test "$GXX" = yes; then
6687    CXXFLAGS="-O2"
6688  else
6689    CXXFLAGS=
6690  fi
6691fi
6692ac_ext=c
6693ac_cpp='$CPP $CPPFLAGS'
6694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697
6698
6699{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6700echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6701if test "${lt_cv_path_NM+set}" = set; then
6702  echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704  if test -n "$NM"; then
6705  # Let the user override the test.
6706  lt_cv_path_NM="$NM"
6707else
6708  lt_nm_to_check="${ac_tool_prefix}nm"
6709  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6710    lt_nm_to_check="$lt_nm_to_check nm"
6711  fi
6712  for lt_tmp_nm in $lt_nm_to_check; do
6713    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6714    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6715      IFS="$lt_save_ifs"
6716      test -z "$ac_dir" && ac_dir=.
6717      tmp_nm="$ac_dir/$lt_tmp_nm"
6718      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6719	# Check to see if the nm accepts a BSD-compat flag.
6720	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6721	#   nm: unknown option "B" ignored
6722	# Tru64's nm complains that /dev/null is an invalid object file
6723	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6724	*/dev/null* | *'Invalid file or object type'*)
6725	  lt_cv_path_NM="$tmp_nm -B"
6726	  break
6727	  ;;
6728	*)
6729	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6730	  */dev/null*)
6731	    lt_cv_path_NM="$tmp_nm -p"
6732	    break
6733	    ;;
6734	  *)
6735	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6736	    continue # so that we can try to find one that supports BSD flags
6737	    ;;
6738	  esac
6739	  ;;
6740	esac
6741      fi
6742    done
6743    IFS="$lt_save_ifs"
6744  done
6745  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6746fi
6747fi
6748{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6749echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6750NM="$lt_cv_path_NM"
6751
6752
6753
6754{ echo "$as_me:$LINENO: checking for GNU make" >&5
6755echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6756if test "${llvm_cv_gnu_make_command+set}" = set; then
6757  echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759  llvm_cv_gnu_make_command=''
6760 for a in "$MAKE" make gmake gnumake ; do
6761  if test -z "$a" ; then continue ; fi ;
6762  if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6763  then
6764   llvm_cv_gnu_make_command=$a ;
6765   break;
6766  fi
6767 done
6768fi
6769{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6770echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6771 if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6772   ifGNUmake='' ;
6773 else
6774   ifGNUmake='#' ;
6775   { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6776echo "${ECHO_T}\"Not found\"" >&6; };
6777 fi
6778
6779
6780{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6781echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6782LN_S=$as_ln_s
6783if test "$LN_S" = "ln -s"; then
6784  { echo "$as_me:$LINENO: result: yes" >&5
6785echo "${ECHO_T}yes" >&6; }
6786else
6787  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6788echo "${ECHO_T}no, using $LN_S" >&6; }
6789fi
6790
6791# Extract the first word of "cmp", so it can be a program name with args.
6792set dummy cmp; ac_word=$2
6793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795if test "${ac_cv_path_CMP+set}" = set; then
6796  echo $ECHO_N "(cached) $ECHO_C" >&6
6797else
6798  case $CMP in
6799  [\\/]* | ?:[\\/]*)
6800  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6801  ;;
6802  *)
6803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806  IFS=$as_save_IFS
6807  test -z "$as_dir" && as_dir=.
6808  for ac_exec_ext in '' $ac_executable_extensions; do
6809  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6810    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812    break 2
6813  fi
6814done
6815done
6816IFS=$as_save_IFS
6817
6818  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6819  ;;
6820esac
6821fi
6822CMP=$ac_cv_path_CMP
6823if test -n "$CMP"; then
6824  { echo "$as_me:$LINENO: result: $CMP" >&5
6825echo "${ECHO_T}$CMP" >&6; }
6826else
6827  { echo "$as_me:$LINENO: result: no" >&5
6828echo "${ECHO_T}no" >&6; }
6829fi
6830
6831
6832# Extract the first word of "cp", so it can be a program name with args.
6833set dummy cp; ac_word=$2
6834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836if test "${ac_cv_path_CP+set}" = set; then
6837  echo $ECHO_N "(cached) $ECHO_C" >&6
6838else
6839  case $CP in
6840  [\\/]* | ?:[\\/]*)
6841  ac_cv_path_CP="$CP" # Let the user override the test with a path.
6842  ;;
6843  *)
6844  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847  IFS=$as_save_IFS
6848  test -z "$as_dir" && as_dir=.
6849  for ac_exec_ext in '' $ac_executable_extensions; do
6850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6851    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853    break 2
6854  fi
6855done
6856done
6857IFS=$as_save_IFS
6858
6859  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6860  ;;
6861esac
6862fi
6863CP=$ac_cv_path_CP
6864if test -n "$CP"; then
6865  { echo "$as_me:$LINENO: result: $CP" >&5
6866echo "${ECHO_T}$CP" >&6; }
6867else
6868  { echo "$as_me:$LINENO: result: no" >&5
6869echo "${ECHO_T}no" >&6; }
6870fi
6871
6872
6873# Extract the first word of "date", so it can be a program name with args.
6874set dummy date; ac_word=$2
6875{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877if test "${ac_cv_path_DATE+set}" = set; then
6878  echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880  case $DATE in
6881  [\\/]* | ?:[\\/]*)
6882  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6883  ;;
6884  *)
6885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888  IFS=$as_save_IFS
6889  test -z "$as_dir" && as_dir=.
6890  for ac_exec_ext in '' $ac_executable_extensions; do
6891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6892    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894    break 2
6895  fi
6896done
6897done
6898IFS=$as_save_IFS
6899
6900  test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6901  ;;
6902esac
6903fi
6904DATE=$ac_cv_path_DATE
6905if test -n "$DATE"; then
6906  { echo "$as_me:$LINENO: result: $DATE" >&5
6907echo "${ECHO_T}$DATE" >&6; }
6908else
6909  { echo "$as_me:$LINENO: result: no" >&5
6910echo "${ECHO_T}no" >&6; }
6911fi
6912
6913
6914# Extract the first word of "find", so it can be a program name with args.
6915set dummy find; ac_word=$2
6916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918if test "${ac_cv_path_FIND+set}" = set; then
6919  echo $ECHO_N "(cached) $ECHO_C" >&6
6920else
6921  case $FIND in
6922  [\\/]* | ?:[\\/]*)
6923  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6924  ;;
6925  *)
6926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929  IFS=$as_save_IFS
6930  test -z "$as_dir" && as_dir=.
6931  for ac_exec_ext in '' $ac_executable_extensions; do
6932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935    break 2
6936  fi
6937done
6938done
6939IFS=$as_save_IFS
6940
6941  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6942  ;;
6943esac
6944fi
6945FIND=$ac_cv_path_FIND
6946if test -n "$FIND"; then
6947  { echo "$as_me:$LINENO: result: $FIND" >&5
6948echo "${ECHO_T}$FIND" >&6; }
6949else
6950  { echo "$as_me:$LINENO: result: no" >&5
6951echo "${ECHO_T}no" >&6; }
6952fi
6953
6954
6955# Extract the first word of "grep", so it can be a program name with args.
6956set dummy grep; ac_word=$2
6957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959if test "${ac_cv_path_GREP+set}" = set; then
6960  echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962  case $GREP in
6963  [\\/]* | ?:[\\/]*)
6964  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6965  ;;
6966  *)
6967  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970  IFS=$as_save_IFS
6971  test -z "$as_dir" && as_dir=.
6972  for ac_exec_ext in '' $ac_executable_extensions; do
6973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6974    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976    break 2
6977  fi
6978done
6979done
6980IFS=$as_save_IFS
6981
6982  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6983  ;;
6984esac
6985fi
6986GREP=$ac_cv_path_GREP
6987if test -n "$GREP"; then
6988  { echo "$as_me:$LINENO: result: $GREP" >&5
6989echo "${ECHO_T}$GREP" >&6; }
6990else
6991  { echo "$as_me:$LINENO: result: no" >&5
6992echo "${ECHO_T}no" >&6; }
6993fi
6994
6995
6996# Extract the first word of "mkdir", so it can be a program name with args.
6997set dummy mkdir; ac_word=$2
6998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000if test "${ac_cv_path_MKDIR+set}" = set; then
7001  echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003  case $MKDIR in
7004  [\\/]* | ?:[\\/]*)
7005  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7006  ;;
7007  *)
7008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011  IFS=$as_save_IFS
7012  test -z "$as_dir" && as_dir=.
7013  for ac_exec_ext in '' $ac_executable_extensions; do
7014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017    break 2
7018  fi
7019done
7020done
7021IFS=$as_save_IFS
7022
7023  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7024  ;;
7025esac
7026fi
7027MKDIR=$ac_cv_path_MKDIR
7028if test -n "$MKDIR"; then
7029  { echo "$as_me:$LINENO: result: $MKDIR" >&5
7030echo "${ECHO_T}$MKDIR" >&6; }
7031else
7032  { echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6; }
7034fi
7035
7036
7037# Extract the first word of "mv", so it can be a program name with args.
7038set dummy mv; ac_word=$2
7039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041if test "${ac_cv_path_MV+set}" = set; then
7042  echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044  case $MV in
7045  [\\/]* | ?:[\\/]*)
7046  ac_cv_path_MV="$MV" # Let the user override the test with a path.
7047  ;;
7048  *)
7049  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052  IFS=$as_save_IFS
7053  test -z "$as_dir" && as_dir=.
7054  for ac_exec_ext in '' $ac_executable_extensions; do
7055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058    break 2
7059  fi
7060done
7061done
7062IFS=$as_save_IFS
7063
7064  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7065  ;;
7066esac
7067fi
7068MV=$ac_cv_path_MV
7069if test -n "$MV"; then
7070  { echo "$as_me:$LINENO: result: $MV" >&5
7071echo "${ECHO_T}$MV" >&6; }
7072else
7073  { echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6; }
7075fi
7076
7077
7078if test -n "$ac_tool_prefix"; then
7079  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7080set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083if test "${ac_cv_prog_RANLIB+set}" = set; then
7084  echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086  if test -n "$RANLIB"; then
7087  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7088else
7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092  IFS=$as_save_IFS
7093  test -z "$as_dir" && as_dir=.
7094  for ac_exec_ext in '' $ac_executable_extensions; do
7095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098    break 2
7099  fi
7100done
7101done
7102IFS=$as_save_IFS
7103
7104fi
7105fi
7106RANLIB=$ac_cv_prog_RANLIB
7107if test -n "$RANLIB"; then
7108  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7109echo "${ECHO_T}$RANLIB" >&6; }
7110else
7111  { echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6; }
7113fi
7114
7115
7116fi
7117if test -z "$ac_cv_prog_RANLIB"; then
7118  ac_ct_RANLIB=$RANLIB
7119  # Extract the first word of "ranlib", so it can be a program name with args.
7120set dummy ranlib; ac_word=$2
7121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7124  echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126  if test -n "$ac_ct_RANLIB"; then
7127  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7128else
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132  IFS=$as_save_IFS
7133  test -z "$as_dir" && as_dir=.
7134  for ac_exec_ext in '' $ac_executable_extensions; do
7135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136    ac_cv_prog_ac_ct_RANLIB="ranlib"
7137    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138    break 2
7139  fi
7140done
7141done
7142IFS=$as_save_IFS
7143
7144fi
7145fi
7146ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7147if test -n "$ac_ct_RANLIB"; then
7148  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7149echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7150else
7151  { echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6; }
7153fi
7154
7155  if test "x$ac_ct_RANLIB" = x; then
7156    RANLIB=":"
7157  else
7158    case $cross_compiling:$ac_tool_warned in
7159yes:)
7160{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7161whose name does not start with the host triplet.  If you think this
7162configuration is useful to you, please write to autoconf@gnu.org." >&5
7163echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7164whose name does not start with the host triplet.  If you think this
7165configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7166ac_tool_warned=yes ;;
7167esac
7168    RANLIB=$ac_ct_RANLIB
7169  fi
7170else
7171  RANLIB="$ac_cv_prog_RANLIB"
7172fi
7173
7174if test -n "$ac_tool_prefix"; then
7175  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7176set dummy ${ac_tool_prefix}ar; ac_word=$2
7177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179if test "${ac_cv_prog_AR+set}" = set; then
7180  echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182  if test -n "$AR"; then
7183  ac_cv_prog_AR="$AR" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190  for ac_exec_ext in '' $ac_executable_extensions; do
7191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192    ac_cv_prog_AR="${ac_tool_prefix}ar"
7193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202AR=$ac_cv_prog_AR
7203if test -n "$AR"; then
7204  { echo "$as_me:$LINENO: result: $AR" >&5
7205echo "${ECHO_T}$AR" >&6; }
7206else
7207  { echo "$as_me:$LINENO: result: no" >&5
7208echo "${ECHO_T}no" >&6; }
7209fi
7210
7211
7212fi
7213if test -z "$ac_cv_prog_AR"; then
7214  ac_ct_AR=$AR
7215  # Extract the first word of "ar", so it can be a program name with args.
7216set dummy ar; ac_word=$2
7217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7220  echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222  if test -n "$ac_ct_AR"; then
7223  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228  IFS=$as_save_IFS
7229  test -z "$as_dir" && as_dir=.
7230  for ac_exec_ext in '' $ac_executable_extensions; do
7231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232    ac_cv_prog_ac_ct_AR="ar"
7233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234    break 2
7235  fi
7236done
7237done
7238IFS=$as_save_IFS
7239
7240fi
7241fi
7242ac_ct_AR=$ac_cv_prog_ac_ct_AR
7243if test -n "$ac_ct_AR"; then
7244  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7245echo "${ECHO_T}$ac_ct_AR" >&6; }
7246else
7247  { echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6; }
7249fi
7250
7251  if test "x$ac_ct_AR" = x; then
7252    AR="false"
7253  else
7254    case $cross_compiling:$ac_tool_warned in
7255yes:)
7256{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7257whose name does not start with the host triplet.  If you think this
7258configuration is useful to you, please write to autoconf@gnu.org." >&5
7259echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7260whose name does not start with the host triplet.  If you think this
7261configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7262ac_tool_warned=yes ;;
7263esac
7264    AR=$ac_ct_AR
7265  fi
7266else
7267  AR="$ac_cv_prog_AR"
7268fi
7269
7270# Extract the first word of "rm", so it can be a program name with args.
7271set dummy rm; ac_word=$2
7272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274if test "${ac_cv_path_RM+set}" = set; then
7275  echo $ECHO_N "(cached) $ECHO_C" >&6
7276else
7277  case $RM in
7278  [\\/]* | ?:[\\/]*)
7279  ac_cv_path_RM="$RM" # Let the user override the test with a path.
7280  ;;
7281  *)
7282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285  IFS=$as_save_IFS
7286  test -z "$as_dir" && as_dir=.
7287  for ac_exec_ext in '' $ac_executable_extensions; do
7288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7289    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291    break 2
7292  fi
7293done
7294done
7295IFS=$as_save_IFS
7296
7297  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7298  ;;
7299esac
7300fi
7301RM=$ac_cv_path_RM
7302if test -n "$RM"; then
7303  { echo "$as_me:$LINENO: result: $RM" >&5
7304echo "${ECHO_T}$RM" >&6; }
7305else
7306  { echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6; }
7308fi
7309
7310
7311# Extract the first word of "sed", so it can be a program name with args.
7312set dummy sed; ac_word=$2
7313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315if test "${ac_cv_path_SED+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318  case $SED in
7319  [\\/]* | ?:[\\/]*)
7320  ac_cv_path_SED="$SED" # Let the user override the test with a path.
7321  ;;
7322  *)
7323  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326  IFS=$as_save_IFS
7327  test -z "$as_dir" && as_dir=.
7328  for ac_exec_ext in '' $ac_executable_extensions; do
7329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7330    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335done
7336IFS=$as_save_IFS
7337
7338  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7339  ;;
7340esac
7341fi
7342SED=$ac_cv_path_SED
7343if test -n "$SED"; then
7344  { echo "$as_me:$LINENO: result: $SED" >&5
7345echo "${ECHO_T}$SED" >&6; }
7346else
7347  { echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6; }
7349fi
7350
7351
7352# Extract the first word of "tar", so it can be a program name with args.
7353set dummy tar; ac_word=$2
7354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356if test "${ac_cv_path_TAR+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  case $TAR in
7360  [\\/]* | ?:[\\/]*)
7361  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7362  ;;
7363  *)
7364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367  IFS=$as_save_IFS
7368  test -z "$as_dir" && as_dir=.
7369  for ac_exec_ext in '' $ac_executable_extensions; do
7370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373    break 2
7374  fi
7375done
7376done
7377IFS=$as_save_IFS
7378
7379  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7380  ;;
7381esac
7382fi
7383TAR=$ac_cv_path_TAR
7384if test -n "$TAR"; then
7385  { echo "$as_me:$LINENO: result: $TAR" >&5
7386echo "${ECHO_T}$TAR" >&6; }
7387else
7388  { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
7390fi
7391
7392
7393# Extract the first word of "pwd", so it can be a program name with args.
7394set dummy pwd; ac_word=$2
7395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397if test "${ac_cv_path_BINPWD+set}" = set; then
7398  echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400  case $BINPWD in
7401  [\\/]* | ?:[\\/]*)
7402  ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7403  ;;
7404  *)
7405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408  IFS=$as_save_IFS
7409  test -z "$as_dir" && as_dir=.
7410  for ac_exec_ext in '' $ac_executable_extensions; do
7411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7412    ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414    break 2
7415  fi
7416done
7417done
7418IFS=$as_save_IFS
7419
7420  test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7421  ;;
7422esac
7423fi
7424BINPWD=$ac_cv_path_BINPWD
7425if test -n "$BINPWD"; then
7426  { echo "$as_me:$LINENO: result: $BINPWD" >&5
7427echo "${ECHO_T}$BINPWD" >&6; }
7428else
7429  { echo "$as_me:$LINENO: result: no" >&5
7430echo "${ECHO_T}no" >&6; }
7431fi
7432
7433
7434
7435# Extract the first word of "Graphviz", so it can be a program name with args.
7436set dummy Graphviz; ac_word=$2
7437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7440  echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442  case $GRAPHVIZ in
7443  [\\/]* | ?:[\\/]*)
7444  ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7445  ;;
7446  *)
7447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450  IFS=$as_save_IFS
7451  test -z "$as_dir" && as_dir=.
7452  for ac_exec_ext in '' $ac_executable_extensions; do
7453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454    ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7455    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456    break 2
7457  fi
7458done
7459done
7460IFS=$as_save_IFS
7461
7462  test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7463  ;;
7464esac
7465fi
7466GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7467if test -n "$GRAPHVIZ"; then
7468  { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7469echo "${ECHO_T}$GRAPHVIZ" >&6; }
7470else
7471  { echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6; }
7473fi
7474
7475
7476if test "$GRAPHVIZ" != "echo Graphviz" ; then
7477
7478cat >>confdefs.h <<\_ACEOF
7479#define HAVE_GRAPHVIZ 1
7480_ACEOF
7481
7482    if test "$llvm_cv_os_type" = "MingW" ; then
7483    GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7484  fi
7485
7486cat >>confdefs.h <<_ACEOF
7487#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7488_ACEOF
7489
7490fi
7491# Extract the first word of "dot", so it can be a program name with args.
7492set dummy dot; ac_word=$2
7493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495if test "${ac_cv_path_DOT+set}" = set; then
7496  echo $ECHO_N "(cached) $ECHO_C" >&6
7497else
7498  case $DOT in
7499  [\\/]* | ?:[\\/]*)
7500  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7501  ;;
7502  *)
7503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  test -z "$as_dir" && as_dir=.
7508  for ac_exec_ext in '' $ac_executable_extensions; do
7509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515done
7516IFS=$as_save_IFS
7517
7518  test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7519  ;;
7520esac
7521fi
7522DOT=$ac_cv_path_DOT
7523if test -n "$DOT"; then
7524  { echo "$as_me:$LINENO: result: $DOT" >&5
7525echo "${ECHO_T}$DOT" >&6; }
7526else
7527  { echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6; }
7529fi
7530
7531
7532if test "$DOT" != "echo dot" ; then
7533
7534cat >>confdefs.h <<\_ACEOF
7535#define HAVE_DOT 1
7536_ACEOF
7537
7538    if test "$llvm_cv_os_type" = "MingW" ; then
7539    DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7540  fi
7541
7542cat >>confdefs.h <<_ACEOF
7543#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7544_ACEOF
7545
7546fi
7547# Extract the first word of "fdp", so it can be a program name with args.
7548set dummy fdp; ac_word=$2
7549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551if test "${ac_cv_path_FDP+set}" = set; then
7552  echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554  case $FDP in
7555  [\\/]* | ?:[\\/]*)
7556  ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7557  ;;
7558  *)
7559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  test -z "$as_dir" && as_dir=.
7564  for ac_exec_ext in '' $ac_executable_extensions; do
7565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566    ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568    break 2
7569  fi
7570done
7571done
7572IFS=$as_save_IFS
7573
7574  test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7575  ;;
7576esac
7577fi
7578FDP=$ac_cv_path_FDP
7579if test -n "$FDP"; then
7580  { echo "$as_me:$LINENO: result: $FDP" >&5
7581echo "${ECHO_T}$FDP" >&6; }
7582else
7583  { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
7585fi
7586
7587
7588if test "$FDP" != "echo fdp" ; then
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_FDP 1
7592_ACEOF
7593
7594    if test "$llvm_cv_os_type" = "MingW" ; then
7595    FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596  fi
7597
7598cat >>confdefs.h <<_ACEOF
7599#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7600_ACEOF
7601
7602fi
7603# Extract the first word of "neato", so it can be a program name with args.
7604set dummy neato; ac_word=$2
7605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607if test "${ac_cv_path_NEATO+set}" = set; then
7608  echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610  case $NEATO in
7611  [\\/]* | ?:[\\/]*)
7612  ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7613  ;;
7614  *)
7615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618  IFS=$as_save_IFS
7619  test -z "$as_dir" && as_dir=.
7620  for ac_exec_ext in '' $ac_executable_extensions; do
7621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622    ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624    break 2
7625  fi
7626done
7627done
7628IFS=$as_save_IFS
7629
7630  test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7631  ;;
7632esac
7633fi
7634NEATO=$ac_cv_path_NEATO
7635if test -n "$NEATO"; then
7636  { echo "$as_me:$LINENO: result: $NEATO" >&5
7637echo "${ECHO_T}$NEATO" >&6; }
7638else
7639  { echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6; }
7641fi
7642
7643
7644if test "$NEATO" != "echo neato" ; then
7645
7646cat >>confdefs.h <<\_ACEOF
7647#define HAVE_NEATO 1
7648_ACEOF
7649
7650    if test "$llvm_cv_os_type" = "MingW" ; then
7651    NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652  fi
7653
7654cat >>confdefs.h <<_ACEOF
7655#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7656_ACEOF
7657
7658fi
7659# Extract the first word of "twopi", so it can be a program name with args.
7660set dummy twopi; ac_word=$2
7661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663if test "${ac_cv_path_TWOPI+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  case $TWOPI in
7667  [\\/]* | ?:[\\/]*)
7668  ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7669  ;;
7670  *)
7671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674  IFS=$as_save_IFS
7675  test -z "$as_dir" && as_dir=.
7676  for ac_exec_ext in '' $ac_executable_extensions; do
7677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678    ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680    break 2
7681  fi
7682done
7683done
7684IFS=$as_save_IFS
7685
7686  test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7687  ;;
7688esac
7689fi
7690TWOPI=$ac_cv_path_TWOPI
7691if test -n "$TWOPI"; then
7692  { echo "$as_me:$LINENO: result: $TWOPI" >&5
7693echo "${ECHO_T}$TWOPI" >&6; }
7694else
7695  { echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6; }
7697fi
7698
7699
7700if test "$TWOPI" != "echo twopi" ; then
7701
7702cat >>confdefs.h <<\_ACEOF
7703#define HAVE_TWOPI 1
7704_ACEOF
7705
7706    if test "$llvm_cv_os_type" = "MingW" ; then
7707    TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7708  fi
7709
7710cat >>confdefs.h <<_ACEOF
7711#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7712_ACEOF
7713
7714fi
7715# Extract the first word of "circo", so it can be a program name with args.
7716set dummy circo; ac_word=$2
7717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719if test "${ac_cv_path_CIRCO+set}" = set; then
7720  echo $ECHO_N "(cached) $ECHO_C" >&6
7721else
7722  case $CIRCO in
7723  [\\/]* | ?:[\\/]*)
7724  ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7725  ;;
7726  *)
7727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730  IFS=$as_save_IFS
7731  test -z "$as_dir" && as_dir=.
7732  for ac_exec_ext in '' $ac_executable_extensions; do
7733  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7734    ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736    break 2
7737  fi
7738done
7739done
7740IFS=$as_save_IFS
7741
7742  test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7743  ;;
7744esac
7745fi
7746CIRCO=$ac_cv_path_CIRCO
7747if test -n "$CIRCO"; then
7748  { echo "$as_me:$LINENO: result: $CIRCO" >&5
7749echo "${ECHO_T}$CIRCO" >&6; }
7750else
7751  { echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6; }
7753fi
7754
7755
7756if test "$CIRCO" != "echo circo" ; then
7757
7758cat >>confdefs.h <<\_ACEOF
7759#define HAVE_CIRCO 1
7760_ACEOF
7761
7762    if test "$llvm_cv_os_type" = "MingW" ; then
7763    CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7764  fi
7765
7766cat >>confdefs.h <<_ACEOF
7767#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7768_ACEOF
7769
7770fi
7771for ac_prog in gv gsview32
7772do
7773  # Extract the first word of "$ac_prog", so it can be a program name with args.
7774set dummy $ac_prog; ac_word=$2
7775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777if test "${ac_cv_path_GV+set}" = set; then
7778  echo $ECHO_N "(cached) $ECHO_C" >&6
7779else
7780  case $GV in
7781  [\\/]* | ?:[\\/]*)
7782  ac_cv_path_GV="$GV" # Let the user override the test with a path.
7783  ;;
7784  *)
7785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788  IFS=$as_save_IFS
7789  test -z "$as_dir" && as_dir=.
7790  for ac_exec_ext in '' $ac_executable_extensions; do
7791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7792    ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794    break 2
7795  fi
7796done
7797done
7798IFS=$as_save_IFS
7799
7800  ;;
7801esac
7802fi
7803GV=$ac_cv_path_GV
7804if test -n "$GV"; then
7805  { echo "$as_me:$LINENO: result: $GV" >&5
7806echo "${ECHO_T}$GV" >&6; }
7807else
7808  { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
7810fi
7811
7812
7813  test -n "$GV" && break
7814done
7815test -n "$GV" || GV="echo gv"
7816
7817if test "$GV" != "echo gv" ; then
7818
7819cat >>confdefs.h <<\_ACEOF
7820#define HAVE_GV 1
7821_ACEOF
7822
7823    if test "$llvm_cv_os_type" = "MingW" ; then
7824    GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7825  fi
7826
7827cat >>confdefs.h <<_ACEOF
7828#define LLVM_PATH_GV "$GV${EXEEXT}"
7829_ACEOF
7830
7831fi
7832# Extract the first word of "dotty", so it can be a program name with args.
7833set dummy dotty; ac_word=$2
7834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836if test "${ac_cv_path_DOTTY+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839  case $DOTTY in
7840  [\\/]* | ?:[\\/]*)
7841  ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7842  ;;
7843  *)
7844  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847  IFS=$as_save_IFS
7848  test -z "$as_dir" && as_dir=.
7849  for ac_exec_ext in '' $ac_executable_extensions; do
7850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7851    ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853    break 2
7854  fi
7855done
7856done
7857IFS=$as_save_IFS
7858
7859  test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7860  ;;
7861esac
7862fi
7863DOTTY=$ac_cv_path_DOTTY
7864if test -n "$DOTTY"; then
7865  { echo "$as_me:$LINENO: result: $DOTTY" >&5
7866echo "${ECHO_T}$DOTTY" >&6; }
7867else
7868  { echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6; }
7870fi
7871
7872
7873if test "$DOTTY" != "echo dotty" ; then
7874
7875cat >>confdefs.h <<\_ACEOF
7876#define HAVE_DOTTY 1
7877_ACEOF
7878
7879    if test "$llvm_cv_os_type" = "MingW" ; then
7880    DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7881  fi
7882
7883cat >>confdefs.h <<_ACEOF
7884#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7885_ACEOF
7886
7887fi
7888# Extract the first word of "xdot.py", so it can be a program name with args.
7889set dummy xdot.py; ac_word=$2
7890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892if test "${ac_cv_path_XDOT_PY+set}" = set; then
7893  echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895  case $XDOT_PY in
7896  [\\/]* | ?:[\\/]*)
7897  ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7898  ;;
7899  *)
7900  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903  IFS=$as_save_IFS
7904  test -z "$as_dir" && as_dir=.
7905  for ac_exec_ext in '' $ac_executable_extensions; do
7906  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907    ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909    break 2
7910  fi
7911done
7912done
7913IFS=$as_save_IFS
7914
7915  test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7916  ;;
7917esac
7918fi
7919XDOT_PY=$ac_cv_path_XDOT_PY
7920if test -n "$XDOT_PY"; then
7921  { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7922echo "${ECHO_T}$XDOT_PY" >&6; }
7923else
7924  { echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6; }
7926fi
7927
7928
7929if test "$XDOT_PY" != "echo xdot.py" ; then
7930
7931cat >>confdefs.h <<\_ACEOF
7932#define HAVE_XDOT_PY 1
7933_ACEOF
7934
7935    if test "$llvm_cv_os_type" = "MingW" ; then
7936    XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7937  fi
7938
7939cat >>confdefs.h <<_ACEOF
7940#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7941_ACEOF
7942
7943fi
7944
7945
7946# Extract the first word of "perl", so it can be a program name with args.
7947set dummy perl; ac_word=$2
7948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950if test "${ac_cv_path_PERL+set}" = set; then
7951  echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953  case $PERL in
7954  [\\/]* | ?:[\\/]*)
7955  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7956  ;;
7957  *)
7958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963  for ac_exec_ext in '' $ac_executable_extensions; do
7964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970done
7971IFS=$as_save_IFS
7972
7973  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7974  ;;
7975esac
7976fi
7977PERL=$ac_cv_path_PERL
7978if test -n "$PERL"; then
7979  { echo "$as_me:$LINENO: result: $PERL" >&5
7980echo "${ECHO_T}$PERL" >&6; }
7981else
7982  { echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6; }
7984fi
7985
7986
7987if test "$PERL" != "none"; then
7988  { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7989echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7990  if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7991    { echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6; }
7993  else
7994    PERL=none
7995    { echo "$as_me:$LINENO: result: not found" >&5
7996echo "${ECHO_T}not found" >&6; }
7997  fi
7998fi
7999
8000
8001if test x"$PERL" = xnone; then
8002   HAVE_PERL=0
8003
8004   { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8005echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8006   { (exit 1); exit 1; }; }
8007else
8008   HAVE_PERL=1
8009
8010fi
8011
8012# Find a good install program.  We prefer a C program (faster),
8013# so one script is as good as another.  But avoid the broken or
8014# incompatible versions:
8015# SysV /etc/install, /usr/sbin/install
8016# SunOS /usr/etc/install
8017# IRIX /sbin/install
8018# AIX /bin/install
8019# AmigaOS /C/install, which installs bootblocks on floppy discs
8020# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8021# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8022# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8023# OS/2's system install, which has a completely different semantic
8024# ./install, which can be erroneously created by make from ./install.sh.
8025{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8026echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8027if test -z "$INSTALL"; then
8028if test "${ac_cv_path_install+set}" = set; then
8029  echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034  IFS=$as_save_IFS
8035  test -z "$as_dir" && as_dir=.
8036  # Account for people who put trailing slashes in PATH elements.
8037case $as_dir/ in
8038  ./ | .// | /cC/* | \
8039  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8040  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8041  /usr/ucb/* ) ;;
8042  *)
8043    # OSF1 and SCO ODT 3.0 have their own names for install.
8044    # Don't use installbsd from OSF since it installs stuff as root
8045    # by default.
8046    for ac_prog in ginstall scoinst install; do
8047      for ac_exec_ext in '' $ac_executable_extensions; do
8048	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8049	  if test $ac_prog = install &&
8050	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8051	    # AIX install.  It has an incompatible calling convention.
8052	    :
8053	  elif test $ac_prog = install &&
8054	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8055	    # program-specific install script used by HP pwplus--don't use.
8056	    :
8057	  else
8058	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8059	    break 3
8060	  fi
8061	fi
8062      done
8063    done
8064    ;;
8065esac
8066done
8067IFS=$as_save_IFS
8068
8069
8070fi
8071  if test "${ac_cv_path_install+set}" = set; then
8072    INSTALL=$ac_cv_path_install
8073  else
8074    # As a last resort, use the slow shell script.  Don't cache a
8075    # value for INSTALL within a source directory, because that will
8076    # break other packages using the cache if that directory is
8077    # removed, or if the value is a relative name.
8078    INSTALL=$ac_install_sh
8079  fi
8080fi
8081{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8082echo "${ECHO_T}$INSTALL" >&6; }
8083
8084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8085# It thinks the first close brace ends the variable substitution.
8086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8087
8088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8089
8090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8091
8092case "$INSTALL" in
8093 [\\/$]* | ?:[\\/]* ) ;;
8094 *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8095esac
8096
8097# Extract the first word of "bzip2", so it can be a program name with args.
8098set dummy bzip2; ac_word=$2
8099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101if test "${ac_cv_path_BZIP2+set}" = set; then
8102  echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104  case $BZIP2 in
8105  [\\/]* | ?:[\\/]*)
8106  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8107  ;;
8108  *)
8109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112  IFS=$as_save_IFS
8113  test -z "$as_dir" && as_dir=.
8114  for ac_exec_ext in '' $ac_executable_extensions; do
8115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8116    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118    break 2
8119  fi
8120done
8121done
8122IFS=$as_save_IFS
8123
8124  ;;
8125esac
8126fi
8127BZIP2=$ac_cv_path_BZIP2
8128if test -n "$BZIP2"; then
8129  { echo "$as_me:$LINENO: result: $BZIP2" >&5
8130echo "${ECHO_T}$BZIP2" >&6; }
8131else
8132  { echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6; }
8134fi
8135
8136
8137# Extract the first word of "cat", so it can be a program name with args.
8138set dummy cat; ac_word=$2
8139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141if test "${ac_cv_path_CAT+set}" = set; then
8142  echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144  case $CAT in
8145  [\\/]* | ?:[\\/]*)
8146  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8147  ;;
8148  *)
8149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152  IFS=$as_save_IFS
8153  test -z "$as_dir" && as_dir=.
8154  for ac_exec_ext in '' $ac_executable_extensions; do
8155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158    break 2
8159  fi
8160done
8161done
8162IFS=$as_save_IFS
8163
8164  ;;
8165esac
8166fi
8167CAT=$ac_cv_path_CAT
8168if test -n "$CAT"; then
8169  { echo "$as_me:$LINENO: result: $CAT" >&5
8170echo "${ECHO_T}$CAT" >&6; }
8171else
8172  { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
8174fi
8175
8176
8177# Extract the first word of "doxygen", so it can be a program name with args.
8178set dummy doxygen; ac_word=$2
8179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181if test "${ac_cv_path_DOXYGEN+set}" = set; then
8182  echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184  case $DOXYGEN in
8185  [\\/]* | ?:[\\/]*)
8186  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8187  ;;
8188  *)
8189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192  IFS=$as_save_IFS
8193  test -z "$as_dir" && as_dir=.
8194  for ac_exec_ext in '' $ac_executable_extensions; do
8195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8196    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198    break 2
8199  fi
8200done
8201done
8202IFS=$as_save_IFS
8203
8204  ;;
8205esac
8206fi
8207DOXYGEN=$ac_cv_path_DOXYGEN
8208if test -n "$DOXYGEN"; then
8209  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8210echo "${ECHO_T}$DOXYGEN" >&6; }
8211else
8212  { echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6; }
8214fi
8215
8216
8217# Extract the first word of "groff", so it can be a program name with args.
8218set dummy groff; ac_word=$2
8219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221if test "${ac_cv_path_GROFF+set}" = set; then
8222  echo $ECHO_N "(cached) $ECHO_C" >&6
8223else
8224  case $GROFF in
8225  [\\/]* | ?:[\\/]*)
8226  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8227  ;;
8228  *)
8229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232  IFS=$as_save_IFS
8233  test -z "$as_dir" && as_dir=.
8234  for ac_exec_ext in '' $ac_executable_extensions; do
8235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8236    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238    break 2
8239  fi
8240done
8241done
8242IFS=$as_save_IFS
8243
8244  ;;
8245esac
8246fi
8247GROFF=$ac_cv_path_GROFF
8248if test -n "$GROFF"; then
8249  { echo "$as_me:$LINENO: result: $GROFF" >&5
8250echo "${ECHO_T}$GROFF" >&6; }
8251else
8252  { echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6; }
8254fi
8255
8256
8257# Extract the first word of "gzip", so it can be a program name with args.
8258set dummy gzip; ac_word=$2
8259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8261if test "${ac_cv_path_GZIP+set}" = set; then
8262  echo $ECHO_N "(cached) $ECHO_C" >&6
8263else
8264  case $GZIP in
8265  [\\/]* | ?:[\\/]*)
8266  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8267  ;;
8268  *)
8269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  test -z "$as_dir" && as_dir=.
8274  for ac_exec_ext in '' $ac_executable_extensions; do
8275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8276    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278    break 2
8279  fi
8280done
8281done
8282IFS=$as_save_IFS
8283
8284  ;;
8285esac
8286fi
8287GZIP=$ac_cv_path_GZIP
8288if test -n "$GZIP"; then
8289  { echo "$as_me:$LINENO: result: $GZIP" >&5
8290echo "${ECHO_T}$GZIP" >&6; }
8291else
8292  { echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6; }
8294fi
8295
8296
8297# Extract the first word of "pod2html", so it can be a program name with args.
8298set dummy pod2html; ac_word=$2
8299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8301if test "${ac_cv_path_POD2HTML+set}" = set; then
8302  echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304  case $POD2HTML in
8305  [\\/]* | ?:[\\/]*)
8306  ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8307  ;;
8308  *)
8309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312  IFS=$as_save_IFS
8313  test -z "$as_dir" && as_dir=.
8314  for ac_exec_ext in '' $ac_executable_extensions; do
8315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8316    ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8318    break 2
8319  fi
8320done
8321done
8322IFS=$as_save_IFS
8323
8324  ;;
8325esac
8326fi
8327POD2HTML=$ac_cv_path_POD2HTML
8328if test -n "$POD2HTML"; then
8329  { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8330echo "${ECHO_T}$POD2HTML" >&6; }
8331else
8332  { echo "$as_me:$LINENO: result: no" >&5
8333echo "${ECHO_T}no" >&6; }
8334fi
8335
8336
8337# Extract the first word of "pod2man", so it can be a program name with args.
8338set dummy pod2man; ac_word=$2
8339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341if test "${ac_cv_path_POD2MAN+set}" = set; then
8342  echo $ECHO_N "(cached) $ECHO_C" >&6
8343else
8344  case $POD2MAN in
8345  [\\/]* | ?:[\\/]*)
8346  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8347  ;;
8348  *)
8349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350for as_dir in $PATH
8351do
8352  IFS=$as_save_IFS
8353  test -z "$as_dir" && as_dir=.
8354  for ac_exec_ext in '' $ac_executable_extensions; do
8355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8356    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8358    break 2
8359  fi
8360done
8361done
8362IFS=$as_save_IFS
8363
8364  ;;
8365esac
8366fi
8367POD2MAN=$ac_cv_path_POD2MAN
8368if test -n "$POD2MAN"; then
8369  { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8370echo "${ECHO_T}$POD2MAN" >&6; }
8371else
8372  { echo "$as_me:$LINENO: result: no" >&5
8373echo "${ECHO_T}no" >&6; }
8374fi
8375
8376
8377# Extract the first word of "pdfroff", so it can be a program name with args.
8378set dummy pdfroff; ac_word=$2
8379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381if test "${ac_cv_path_PDFROFF+set}" = set; then
8382  echo $ECHO_N "(cached) $ECHO_C" >&6
8383else
8384  case $PDFROFF in
8385  [\\/]* | ?:[\\/]*)
8386  ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8387  ;;
8388  *)
8389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392  IFS=$as_save_IFS
8393  test -z "$as_dir" && as_dir=.
8394  for ac_exec_ext in '' $ac_executable_extensions; do
8395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8396    ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8398    break 2
8399  fi
8400done
8401done
8402IFS=$as_save_IFS
8403
8404  ;;
8405esac
8406fi
8407PDFROFF=$ac_cv_path_PDFROFF
8408if test -n "$PDFROFF"; then
8409  { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8410echo "${ECHO_T}$PDFROFF" >&6; }
8411else
8412  { echo "$as_me:$LINENO: result: no" >&5
8413echo "${ECHO_T}no" >&6; }
8414fi
8415
8416
8417# Extract the first word of "runtest", so it can be a program name with args.
8418set dummy runtest; ac_word=$2
8419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8421if test "${ac_cv_path_RUNTEST+set}" = set; then
8422  echo $ECHO_N "(cached) $ECHO_C" >&6
8423else
8424  case $RUNTEST in
8425  [\\/]* | ?:[\\/]*)
8426  ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8427  ;;
8428  *)
8429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430for as_dir in $PATH
8431do
8432  IFS=$as_save_IFS
8433  test -z "$as_dir" && as_dir=.
8434  for ac_exec_ext in '' $ac_executable_extensions; do
8435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8436    ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8437    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8438    break 2
8439  fi
8440done
8441done
8442IFS=$as_save_IFS
8443
8444  ;;
8445esac
8446fi
8447RUNTEST=$ac_cv_path_RUNTEST
8448if test -n "$RUNTEST"; then
8449  { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8450echo "${ECHO_T}$RUNTEST" >&6; }
8451else
8452  { echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6; }
8454fi
8455
8456
8457
8458no_itcl=true
8459{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8460echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8461
8462# Check whether --with-tclinclude was given.
8463if test "${with_tclinclude+set}" = set; then
8464  withval=$with_tclinclude; with_tclinclude=${withval}
8465else
8466  with_tclinclude=''
8467fi
8468
8469if test "${ac_cv_path_tclsh+set}" = set; then
8470  echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472
8473if test x"${with_tclinclude}" != x ; then
8474  if test -f ${with_tclinclude}/tclsh ; then
8475    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8476  elif test -f ${with_tclinclude}/src/tclsh ; then
8477    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8478  else
8479    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8480echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8481   { (exit 1); exit 1; }; }
8482  fi
8483fi
8484fi
8485
8486
8487if test x"${ac_cv_path_tclsh}" = x ; then
8488  { echo "$as_me:$LINENO: result: none" >&5
8489echo "${ECHO_T}none" >&6; }
8490  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
8491do
8492  # Extract the first word of "$ac_prog", so it can be a program name with args.
8493set dummy $ac_prog; ac_word=$2
8494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8496if test "${ac_cv_path_TCLSH+set}" = set; then
8497  echo $ECHO_N "(cached) $ECHO_C" >&6
8498else
8499  case $TCLSH in
8500  [\\/]* | ?:[\\/]*)
8501  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8502  ;;
8503  *)
8504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507  IFS=$as_save_IFS
8508  test -z "$as_dir" && as_dir=.
8509  for ac_exec_ext in '' $ac_executable_extensions; do
8510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8511    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8512    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513    break 2
8514  fi
8515done
8516done
8517IFS=$as_save_IFS
8518
8519  ;;
8520esac
8521fi
8522TCLSH=$ac_cv_path_TCLSH
8523if test -n "$TCLSH"; then
8524  { echo "$as_me:$LINENO: result: $TCLSH" >&5
8525echo "${ECHO_T}$TCLSH" >&6; }
8526else
8527  { echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6; }
8529fi
8530
8531
8532  test -n "$TCLSH" && break
8533done
8534
8535  if test x"${TCLSH}" = x ; then
8536    ac_cv_path_tclsh='';
8537  else
8538    ac_cv_path_tclsh="${TCLSH}";
8539  fi
8540else
8541  { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8542echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8543  TCLSH="${ac_cv_path_tclsh}"
8544
8545fi
8546
8547# Extract the first word of "zip", so it can be a program name with args.
8548set dummy zip; ac_word=$2
8549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8551if test "${ac_cv_path_ZIP+set}" = set; then
8552  echo $ECHO_N "(cached) $ECHO_C" >&6
8553else
8554  case $ZIP in
8555  [\\/]* | ?:[\\/]*)
8556  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8557  ;;
8558  *)
8559  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562  IFS=$as_save_IFS
8563  test -z "$as_dir" && as_dir=.
8564  for ac_exec_ext in '' $ac_executable_extensions; do
8565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8566    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8568    break 2
8569  fi
8570done
8571done
8572IFS=$as_save_IFS
8573
8574  ;;
8575esac
8576fi
8577ZIP=$ac_cv_path_ZIP
8578if test -n "$ZIP"; then
8579  { echo "$as_me:$LINENO: result: $ZIP" >&5
8580echo "${ECHO_T}$ZIP" >&6; }
8581else
8582  { echo "$as_me:$LINENO: result: no" >&5
8583echo "${ECHO_T}no" >&6; }
8584fi
8585
8586
8587for ac_prog in ocamlc
8588do
8589  # Extract the first word of "$ac_prog", so it can be a program name with args.
8590set dummy $ac_prog; ac_word=$2
8591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8593if test "${ac_cv_path_OCAMLC+set}" = set; then
8594  echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596  case $OCAMLC in
8597  [\\/]* | ?:[\\/]*)
8598  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8599  ;;
8600  *)
8601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604  IFS=$as_save_IFS
8605  test -z "$as_dir" && as_dir=.
8606  for ac_exec_ext in '' $ac_executable_extensions; do
8607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8608    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610    break 2
8611  fi
8612done
8613done
8614IFS=$as_save_IFS
8615
8616  ;;
8617esac
8618fi
8619OCAMLC=$ac_cv_path_OCAMLC
8620if test -n "$OCAMLC"; then
8621  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8622echo "${ECHO_T}$OCAMLC" >&6; }
8623else
8624  { echo "$as_me:$LINENO: result: no" >&5
8625echo "${ECHO_T}no" >&6; }
8626fi
8627
8628
8629  test -n "$OCAMLC" && break
8630done
8631
8632for ac_prog in ocamlopt
8633do
8634  # Extract the first word of "$ac_prog", so it can be a program name with args.
8635set dummy $ac_prog; ac_word=$2
8636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8638if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8639  echo $ECHO_N "(cached) $ECHO_C" >&6
8640else
8641  case $OCAMLOPT in
8642  [\\/]* | ?:[\\/]*)
8643  ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8644  ;;
8645  *)
8646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649  IFS=$as_save_IFS
8650  test -z "$as_dir" && as_dir=.
8651  for ac_exec_ext in '' $ac_executable_extensions; do
8652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8653    ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655    break 2
8656  fi
8657done
8658done
8659IFS=$as_save_IFS
8660
8661  ;;
8662esac
8663fi
8664OCAMLOPT=$ac_cv_path_OCAMLOPT
8665if test -n "$OCAMLOPT"; then
8666  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8667echo "${ECHO_T}$OCAMLOPT" >&6; }
8668else
8669  { echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6; }
8671fi
8672
8673
8674  test -n "$OCAMLOPT" && break
8675done
8676
8677for ac_prog in ocamldep
8678do
8679  # Extract the first word of "$ac_prog", so it can be a program name with args.
8680set dummy $ac_prog; ac_word=$2
8681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8683if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8684  echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686  case $OCAMLDEP in
8687  [\\/]* | ?:[\\/]*)
8688  ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8689  ;;
8690  *)
8691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692for as_dir in $PATH
8693do
8694  IFS=$as_save_IFS
8695  test -z "$as_dir" && as_dir=.
8696  for ac_exec_ext in '' $ac_executable_extensions; do
8697  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8698    ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700    break 2
8701  fi
8702done
8703done
8704IFS=$as_save_IFS
8705
8706  ;;
8707esac
8708fi
8709OCAMLDEP=$ac_cv_path_OCAMLDEP
8710if test -n "$OCAMLDEP"; then
8711  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8712echo "${ECHO_T}$OCAMLDEP" >&6; }
8713else
8714  { echo "$as_me:$LINENO: result: no" >&5
8715echo "${ECHO_T}no" >&6; }
8716fi
8717
8718
8719  test -n "$OCAMLDEP" && break
8720done
8721
8722for ac_prog in ocamldoc
8723do
8724  # Extract the first word of "$ac_prog", so it can be a program name with args.
8725set dummy $ac_prog; ac_word=$2
8726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8728if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8729  echo $ECHO_N "(cached) $ECHO_C" >&6
8730else
8731  case $OCAMLDOC in
8732  [\\/]* | ?:[\\/]*)
8733  ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8734  ;;
8735  *)
8736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739  IFS=$as_save_IFS
8740  test -z "$as_dir" && as_dir=.
8741  for ac_exec_ext in '' $ac_executable_extensions; do
8742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8743    ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745    break 2
8746  fi
8747done
8748done
8749IFS=$as_save_IFS
8750
8751  ;;
8752esac
8753fi
8754OCAMLDOC=$ac_cv_path_OCAMLDOC
8755if test -n "$OCAMLDOC"; then
8756  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8757echo "${ECHO_T}$OCAMLDOC" >&6; }
8758else
8759  { echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6; }
8761fi
8762
8763
8764  test -n "$OCAMLDOC" && break
8765done
8766
8767for ac_prog in gas as
8768do
8769  # Extract the first word of "$ac_prog", so it can be a program name with args.
8770set dummy $ac_prog; ac_word=$2
8771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8773if test "${ac_cv_path_GAS+set}" = set; then
8774  echo $ECHO_N "(cached) $ECHO_C" >&6
8775else
8776  case $GAS in
8777  [\\/]* | ?:[\\/]*)
8778  ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8779  ;;
8780  *)
8781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782for as_dir in $PATH
8783do
8784  IFS=$as_save_IFS
8785  test -z "$as_dir" && as_dir=.
8786  for ac_exec_ext in '' $ac_executable_extensions; do
8787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8788    ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8790    break 2
8791  fi
8792done
8793done
8794IFS=$as_save_IFS
8795
8796  ;;
8797esac
8798fi
8799GAS=$ac_cv_path_GAS
8800if test -n "$GAS"; then
8801  { echo "$as_me:$LINENO: result: $GAS" >&5
8802echo "${ECHO_T}$GAS" >&6; }
8803else
8804  { echo "$as_me:$LINENO: result: no" >&5
8805echo "${ECHO_T}no" >&6; }
8806fi
8807
8808
8809  test -n "$GAS" && break
8810done
8811
8812
8813{ echo "$as_me:$LINENO: checking for linker version" >&5
8814echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8815if test "${llvm_cv_link_version+set}" = set; then
8816  echo $ECHO_N "(cached) $ECHO_C" >&6
8817else
8818
8819   version_string="$(ld -v 2>&1 | head -1)"
8820
8821   # Check for ld64.
8822   if (echo "$version_string" | grep -q "ld64"); then
8823     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8824   else
8825     llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8826   fi
8827
8828fi
8829{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8830echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8831
8832cat >>confdefs.h <<_ACEOF
8833#define HOST_LINK_VERSION "$llvm_cv_link_version"
8834_ACEOF
8835
8836
8837
8838{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8839echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8840if test "${llvm_cv_link_use_r+set}" = set; then
8841  echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843   ac_ext=c
8844ac_cpp='$CPP $CPPFLAGS'
8845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847ac_compiler_gnu=$ac_cv_c_compiler_gnu
8848
8849  oldcflags="$CFLAGS"
8850  CFLAGS="$CFLAGS -Wl,-R."
8851  cat >conftest.$ac_ext <<_ACEOF
8852/* confdefs.h.  */
8853_ACEOF
8854cat confdefs.h >>conftest.$ac_ext
8855cat >>conftest.$ac_ext <<_ACEOF
8856/* end confdefs.h.  */
8857
8858int
8859main ()
8860{
8861
8862  ;
8863  return 0;
8864}
8865_ACEOF
8866rm -f conftest.$ac_objext conftest$ac_exeext
8867if { (ac_try="$ac_link"
8868case "(($ac_try" in
8869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870  *) ac_try_echo=$ac_try;;
8871esac
8872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873  (eval "$ac_link") 2>conftest.er1
8874  ac_status=$?
8875  grep -v '^ *+' conftest.er1 >conftest.err
8876  rm -f conftest.er1
8877  cat conftest.err >&5
8878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879  (exit $ac_status); } &&
8880	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8881  { (case "(($ac_try" in
8882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883  *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886  (eval "$ac_try") 2>&5
8887  ac_status=$?
8888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889  (exit $ac_status); }; } &&
8890	 { ac_try='test -s conftest$ac_exeext'
8891  { (case "(($ac_try" in
8892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893  *) ac_try_echo=$ac_try;;
8894esac
8895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896  (eval "$ac_try") 2>&5
8897  ac_status=$?
8898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899  (exit $ac_status); }; }; then
8900  llvm_cv_link_use_r=yes
8901else
8902  echo "$as_me: failed program was:" >&5
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905	llvm_cv_link_use_r=no
8906fi
8907
8908rm -f core conftest.err conftest.$ac_objext \
8909      conftest$ac_exeext conftest.$ac_ext
8910  CFLAGS="$oldcflags"
8911  ac_ext=c
8912ac_cpp='$CPP $CPPFLAGS'
8913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8915ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916
8917
8918fi
8919{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8920echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8921if test "$llvm_cv_link_use_r" = yes ; then
8922
8923cat >>confdefs.h <<\_ACEOF
8924#define HAVE_LINK_R 1
8925_ACEOF
8926
8927  fi
8928
8929
8930{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8931echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8932if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8933  echo $ECHO_N "(cached) $ECHO_C" >&6
8934else
8935   ac_ext=c
8936ac_cpp='$CPP $CPPFLAGS'
8937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941  oldcflags="$CFLAGS"
8942  CFLAGS="$CFLAGS -Wl,-export-dynamic"
8943  cat >conftest.$ac_ext <<_ACEOF
8944/* confdefs.h.  */
8945_ACEOF
8946cat confdefs.h >>conftest.$ac_ext
8947cat >>conftest.$ac_ext <<_ACEOF
8948/* end confdefs.h.  */
8949
8950int
8951main ()
8952{
8953
8954  ;
8955  return 0;
8956}
8957_ACEOF
8958rm -f conftest.$ac_objext conftest$ac_exeext
8959if { (ac_try="$ac_link"
8960case "(($ac_try" in
8961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962  *) ac_try_echo=$ac_try;;
8963esac
8964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965  (eval "$ac_link") 2>conftest.er1
8966  ac_status=$?
8967  grep -v '^ *+' conftest.er1 >conftest.err
8968  rm -f conftest.er1
8969  cat conftest.err >&5
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); } &&
8972	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973  { (case "(($ac_try" in
8974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975  *) ac_try_echo=$ac_try;;
8976esac
8977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978  (eval "$ac_try") 2>&5
8979  ac_status=$?
8980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981  (exit $ac_status); }; } &&
8982	 { ac_try='test -s conftest$ac_exeext'
8983  { (case "(($ac_try" in
8984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985  *) ac_try_echo=$ac_try;;
8986esac
8987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988  (eval "$ac_try") 2>&5
8989  ac_status=$?
8990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991  (exit $ac_status); }; }; then
8992  llvm_cv_link_use_export_dynamic=yes
8993else
8994  echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997	llvm_cv_link_use_export_dynamic=no
8998fi
8999
9000rm -f core conftest.err conftest.$ac_objext \
9001      conftest$ac_exeext conftest.$ac_ext
9002  CFLAGS="$oldcflags"
9003  ac_ext=c
9004ac_cpp='$CPP $CPPFLAGS'
9005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009
9010fi
9011{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9012echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9013if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9014
9015cat >>confdefs.h <<\_ACEOF
9016#define HAVE_LINK_EXPORT_DYNAMIC 1
9017_ACEOF
9018
9019  fi
9020
9021
9022{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9023echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9024if test "${llvm_cv_link_use_version_script+set}" = set; then
9025  echo $ECHO_N "(cached) $ECHO_C" >&6
9026else
9027   ac_ext=c
9028ac_cpp='$CPP $CPPFLAGS'
9029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033  oldcflags="$CFLAGS"
9034
9035  # The following code is from the autoconf manual,
9036  # "11.13: Limitations of Usual Tools".
9037  # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9038  # Use mktemp if possible; otherwise fall back on mkdir,
9039  # with $RANDOM to make collisions less likely.
9040  : ${TMPDIR=/tmp}
9041  {
9042    tmp=`
9043      (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9044    ` &&
9045    test -n "$tmp" && test -d "$tmp"
9046  } || {
9047    tmp=$TMPDIR/foo$$-$RANDOM
9048    (umask 077 && mkdir "$tmp")
9049  } || exit $?
9050
9051  echo "{" > "$tmp/export.map"
9052  echo "  global: main;" >> "$tmp/export.map"
9053  echo "  local: *;" >> "$tmp/export.map"
9054  echo "};" >> "$tmp/export.map"
9055
9056  CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9057  cat >conftest.$ac_ext <<_ACEOF
9058/* confdefs.h.  */
9059_ACEOF
9060cat confdefs.h >>conftest.$ac_ext
9061cat >>conftest.$ac_ext <<_ACEOF
9062/* end confdefs.h.  */
9063
9064int
9065main ()
9066{
9067
9068  ;
9069  return 0;
9070}
9071_ACEOF
9072rm -f conftest.$ac_objext conftest$ac_exeext
9073if { (ac_try="$ac_link"
9074case "(($ac_try" in
9075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076  *) ac_try_echo=$ac_try;;
9077esac
9078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079  (eval "$ac_link") 2>conftest.er1
9080  ac_status=$?
9081  grep -v '^ *+' conftest.er1 >conftest.err
9082  rm -f conftest.er1
9083  cat conftest.err >&5
9084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); } &&
9086	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9087  { (case "(($ac_try" in
9088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089  *) ac_try_echo=$ac_try;;
9090esac
9091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092  (eval "$ac_try") 2>&5
9093  ac_status=$?
9094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095  (exit $ac_status); }; } &&
9096	 { ac_try='test -s conftest$ac_exeext'
9097  { (case "(($ac_try" in
9098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099  *) ac_try_echo=$ac_try;;
9100esac
9101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102  (eval "$ac_try") 2>&5
9103  ac_status=$?
9104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105  (exit $ac_status); }; }; then
9106  llvm_cv_link_use_version_script=yes
9107else
9108  echo "$as_me: failed program was:" >&5
9109sed 's/^/| /' conftest.$ac_ext >&5
9110
9111	llvm_cv_link_use_version_script=no
9112fi
9113
9114rm -f core conftest.err conftest.$ac_objext \
9115      conftest$ac_exeext conftest.$ac_ext
9116  rm "$tmp/export.map"
9117  rmdir "$tmp"
9118  CFLAGS="$oldcflags"
9119  ac_ext=c
9120ac_cpp='$CPP $CPPFLAGS'
9121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9123ac_compiler_gnu=$ac_cv_c_compiler_gnu
9124
9125
9126fi
9127{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9128echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9129if test "$llvm_cv_link_use_version_script" = yes ; then
9130  HAVE_LINK_VERSION_SCRIPT=1
9131
9132  fi
9133
9134
9135
9136
9137{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9138echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9139if test "${ac_cv_c_const+set}" = set; then
9140  echo $ECHO_N "(cached) $ECHO_C" >&6
9141else
9142  cat >conftest.$ac_ext <<_ACEOF
9143/* confdefs.h.  */
9144_ACEOF
9145cat confdefs.h >>conftest.$ac_ext
9146cat >>conftest.$ac_ext <<_ACEOF
9147/* end confdefs.h.  */
9148
9149int
9150main ()
9151{
9152/* FIXME: Include the comments suggested by Paul. */
9153#ifndef __cplusplus
9154  /* Ultrix mips cc rejects this.  */
9155  typedef int charset[2];
9156  const charset x;
9157  /* SunOS 4.1.1 cc rejects this.  */
9158  char const *const *ccp;
9159  char **p;
9160  /* NEC SVR4.0.2 mips cc rejects this.  */
9161  struct point {int x, y;};
9162  static struct point const zero = {0,0};
9163  /* AIX XL C 1.02.0.0 rejects this.
9164     It does not let you subtract one const X* pointer from another in
9165     an arm of an if-expression whose if-part is not a constant
9166     expression */
9167  const char *g = "string";
9168  ccp = &g + (g ? g-g : 0);
9169  /* HPUX 7.0 cc rejects these. */
9170  ++ccp;
9171  p = (char**) ccp;
9172  ccp = (char const *const *) p;
9173  { /* SCO 3.2v4 cc rejects this.  */
9174    char *t;
9175    char const *s = 0 ? (char *) 0 : (char const *) 0;
9176
9177    *t++ = 0;
9178    if (s) return 0;
9179  }
9180  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9181    int x[] = {25, 17};
9182    const int *foo = &x[0];
9183    ++foo;
9184  }
9185  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9186    typedef const int *iptr;
9187    iptr p = 0;
9188    ++p;
9189  }
9190  { /* AIX XL C 1.02.0.0 rejects this saying
9191       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9192    struct s { int j; const int *ap[3]; };
9193    struct s *b; b->j = 5;
9194  }
9195  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9196    const int foo = 10;
9197    if (!foo) return 0;
9198  }
9199  return !x[0] && !zero.x;
9200#endif
9201
9202  ;
9203  return 0;
9204}
9205_ACEOF
9206rm -f conftest.$ac_objext
9207if { (ac_try="$ac_compile"
9208case "(($ac_try" in
9209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210  *) ac_try_echo=$ac_try;;
9211esac
9212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213  (eval "$ac_compile") 2>conftest.er1
9214  ac_status=$?
9215  grep -v '^ *+' conftest.er1 >conftest.err
9216  rm -f conftest.er1
9217  cat conftest.err >&5
9218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219  (exit $ac_status); } &&
9220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221  { (case "(($ac_try" in
9222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223  *) ac_try_echo=$ac_try;;
9224esac
9225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226  (eval "$ac_try") 2>&5
9227  ac_status=$?
9228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229  (exit $ac_status); }; } &&
9230	 { ac_try='test -s conftest.$ac_objext'
9231  { (case "(($ac_try" in
9232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233  *) ac_try_echo=$ac_try;;
9234esac
9235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236  (eval "$ac_try") 2>&5
9237  ac_status=$?
9238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239  (exit $ac_status); }; }; then
9240  ac_cv_c_const=yes
9241else
9242  echo "$as_me: failed program was:" >&5
9243sed 's/^/| /' conftest.$ac_ext >&5
9244
9245	ac_cv_c_const=no
9246fi
9247
9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249fi
9250{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9251echo "${ECHO_T}$ac_cv_c_const" >&6; }
9252if test $ac_cv_c_const = no; then
9253
9254cat >>confdefs.h <<\_ACEOF
9255#define const
9256_ACEOF
9257
9258fi
9259
9260
9261
9262
9263
9264
9265ac_header_dirent=no
9266for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9267  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9268{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9269echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9271  echo $ECHO_N "(cached) $ECHO_C" >&6
9272else
9273  cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h.  */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h.  */
9279#include <sys/types.h>
9280#include <$ac_hdr>
9281
9282int
9283main ()
9284{
9285if ((DIR *) 0)
9286return 0;
9287  ;
9288  return 0;
9289}
9290_ACEOF
9291rm -f conftest.$ac_objext
9292if { (ac_try="$ac_compile"
9293case "(($ac_try" in
9294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295  *) ac_try_echo=$ac_try;;
9296esac
9297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298  (eval "$ac_compile") 2>conftest.er1
9299  ac_status=$?
9300  grep -v '^ *+' conftest.er1 >conftest.err
9301  rm -f conftest.er1
9302  cat conftest.err >&5
9303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304  (exit $ac_status); } &&
9305	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306  { (case "(($ac_try" in
9307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308  *) ac_try_echo=$ac_try;;
9309esac
9310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311  (eval "$ac_try") 2>&5
9312  ac_status=$?
9313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314  (exit $ac_status); }; } &&
9315	 { ac_try='test -s conftest.$ac_objext'
9316  { (case "(($ac_try" in
9317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318  *) ac_try_echo=$ac_try;;
9319esac
9320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321  (eval "$ac_try") 2>&5
9322  ac_status=$?
9323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324  (exit $ac_status); }; }; then
9325  eval "$as_ac_Header=yes"
9326else
9327  echo "$as_me: failed program was:" >&5
9328sed 's/^/| /' conftest.$ac_ext >&5
9329
9330	eval "$as_ac_Header=no"
9331fi
9332
9333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334fi
9335ac_res=`eval echo '${'$as_ac_Header'}'`
9336	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9337echo "${ECHO_T}$ac_res" >&6; }
9338if test `eval echo '${'$as_ac_Header'}'` = yes; then
9339  cat >>confdefs.h <<_ACEOF
9340#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9341_ACEOF
9342
9343ac_header_dirent=$ac_hdr; break
9344fi
9345
9346done
9347# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9348if test $ac_header_dirent = dirent.h; then
9349  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9350echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9351if test "${ac_cv_search_opendir+set}" = set; then
9352  echo $ECHO_N "(cached) $ECHO_C" >&6
9353else
9354  ac_func_search_save_LIBS=$LIBS
9355cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h.  */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h.  */
9361
9362/* Override any GCC internal prototype to avoid an error.
9363   Use char because int might match the return type of a GCC
9364   builtin and then its argument prototype would still apply.  */
9365#ifdef __cplusplus
9366extern "C"
9367#endif
9368char opendir ();
9369int
9370main ()
9371{
9372return opendir ();
9373  ;
9374  return 0;
9375}
9376_ACEOF
9377for ac_lib in '' dir; do
9378  if test -z "$ac_lib"; then
9379    ac_res="none required"
9380  else
9381    ac_res=-l$ac_lib
9382    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9383  fi
9384  rm -f conftest.$ac_objext conftest$ac_exeext
9385if { (ac_try="$ac_link"
9386case "(($ac_try" in
9387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388  *) ac_try_echo=$ac_try;;
9389esac
9390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391  (eval "$ac_link") 2>conftest.er1
9392  ac_status=$?
9393  grep -v '^ *+' conftest.er1 >conftest.err
9394  rm -f conftest.er1
9395  cat conftest.err >&5
9396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397  (exit $ac_status); } &&
9398	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9399  { (case "(($ac_try" in
9400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401  *) ac_try_echo=$ac_try;;
9402esac
9403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404  (eval "$ac_try") 2>&5
9405  ac_status=$?
9406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407  (exit $ac_status); }; } &&
9408	 { ac_try='test -s conftest$ac_exeext'
9409  { (case "(($ac_try" in
9410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411  *) ac_try_echo=$ac_try;;
9412esac
9413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414  (eval "$ac_try") 2>&5
9415  ac_status=$?
9416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417  (exit $ac_status); }; }; then
9418  ac_cv_search_opendir=$ac_res
9419else
9420  echo "$as_me: failed program was:" >&5
9421sed 's/^/| /' conftest.$ac_ext >&5
9422
9423
9424fi
9425
9426rm -f core conftest.err conftest.$ac_objext \
9427      conftest$ac_exeext
9428  if test "${ac_cv_search_opendir+set}" = set; then
9429  break
9430fi
9431done
9432if test "${ac_cv_search_opendir+set}" = set; then
9433  :
9434else
9435  ac_cv_search_opendir=no
9436fi
9437rm conftest.$ac_ext
9438LIBS=$ac_func_search_save_LIBS
9439fi
9440{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9441echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9442ac_res=$ac_cv_search_opendir
9443if test "$ac_res" != no; then
9444  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9445
9446fi
9447
9448else
9449  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9450echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9451if test "${ac_cv_search_opendir+set}" = set; then
9452  echo $ECHO_N "(cached) $ECHO_C" >&6
9453else
9454  ac_func_search_save_LIBS=$LIBS
9455cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h.  */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
9460/* end confdefs.h.  */
9461
9462/* Override any GCC internal prototype to avoid an error.
9463   Use char because int might match the return type of a GCC
9464   builtin and then its argument prototype would still apply.  */
9465#ifdef __cplusplus
9466extern "C"
9467#endif
9468char opendir ();
9469int
9470main ()
9471{
9472return opendir ();
9473  ;
9474  return 0;
9475}
9476_ACEOF
9477for ac_lib in '' x; do
9478  if test -z "$ac_lib"; then
9479    ac_res="none required"
9480  else
9481    ac_res=-l$ac_lib
9482    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9483  fi
9484  rm -f conftest.$ac_objext conftest$ac_exeext
9485if { (ac_try="$ac_link"
9486case "(($ac_try" in
9487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488  *) ac_try_echo=$ac_try;;
9489esac
9490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491  (eval "$ac_link") 2>conftest.er1
9492  ac_status=$?
9493  grep -v '^ *+' conftest.er1 >conftest.err
9494  rm -f conftest.er1
9495  cat conftest.err >&5
9496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497  (exit $ac_status); } &&
9498	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9499  { (case "(($ac_try" in
9500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501  *) ac_try_echo=$ac_try;;
9502esac
9503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504  (eval "$ac_try") 2>&5
9505  ac_status=$?
9506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507  (exit $ac_status); }; } &&
9508	 { ac_try='test -s conftest$ac_exeext'
9509  { (case "(($ac_try" in
9510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511  *) ac_try_echo=$ac_try;;
9512esac
9513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514  (eval "$ac_try") 2>&5
9515  ac_status=$?
9516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517  (exit $ac_status); }; }; then
9518  ac_cv_search_opendir=$ac_res
9519else
9520  echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
9523
9524fi
9525
9526rm -f core conftest.err conftest.$ac_objext \
9527      conftest$ac_exeext
9528  if test "${ac_cv_search_opendir+set}" = set; then
9529  break
9530fi
9531done
9532if test "${ac_cv_search_opendir+set}" = set; then
9533  :
9534else
9535  ac_cv_search_opendir=no
9536fi
9537rm conftest.$ac_ext
9538LIBS=$ac_func_search_save_LIBS
9539fi
9540{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9541echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9542ac_res=$ac_cv_search_opendir
9543if test "$ac_res" != no; then
9544  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9545
9546fi
9547
9548fi
9549
9550
9551for ac_header in dlfcn.h
9552do
9553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9558  echo $ECHO_N "(cached) $ECHO_C" >&6
9559fi
9560ac_res=`eval echo '${'$as_ac_Header'}'`
9561	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9562echo "${ECHO_T}$ac_res" >&6; }
9563else
9564  # Is the header compilable?
9565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9567cat >conftest.$ac_ext <<_ACEOF
9568/* confdefs.h.  */
9569_ACEOF
9570cat confdefs.h >>conftest.$ac_ext
9571cat >>conftest.$ac_ext <<_ACEOF
9572/* end confdefs.h.  */
9573$ac_includes_default
9574#include <$ac_header>
9575_ACEOF
9576rm -f conftest.$ac_objext
9577if { (ac_try="$ac_compile"
9578case "(($ac_try" in
9579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580  *) ac_try_echo=$ac_try;;
9581esac
9582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583  (eval "$ac_compile") 2>conftest.er1
9584  ac_status=$?
9585  grep -v '^ *+' conftest.er1 >conftest.err
9586  rm -f conftest.er1
9587  cat conftest.err >&5
9588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589  (exit $ac_status); } &&
9590	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9591  { (case "(($ac_try" in
9592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593  *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596  (eval "$ac_try") 2>&5
9597  ac_status=$?
9598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599  (exit $ac_status); }; } &&
9600	 { ac_try='test -s conftest.$ac_objext'
9601  { (case "(($ac_try" in
9602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603  *) ac_try_echo=$ac_try;;
9604esac
9605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606  (eval "$ac_try") 2>&5
9607  ac_status=$?
9608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609  (exit $ac_status); }; }; then
9610  ac_header_compiler=yes
9611else
9612  echo "$as_me: failed program was:" >&5
9613sed 's/^/| /' conftest.$ac_ext >&5
9614
9615	ac_header_compiler=no
9616fi
9617
9618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620echo "${ECHO_T}$ac_header_compiler" >&6; }
9621
9622# Is the header present?
9623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9625cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h.  */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h.  */
9631#include <$ac_header>
9632_ACEOF
9633if { (ac_try="$ac_cpp conftest.$ac_ext"
9634case "(($ac_try" in
9635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636  *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9640  ac_status=$?
9641  grep -v '^ *+' conftest.er1 >conftest.err
9642  rm -f conftest.er1
9643  cat conftest.err >&5
9644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645  (exit $ac_status); } >/dev/null; then
9646  if test -s conftest.err; then
9647    ac_cpp_err=$ac_c_preproc_warn_flag
9648    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9649  else
9650    ac_cpp_err=
9651  fi
9652else
9653  ac_cpp_err=yes
9654fi
9655if test -z "$ac_cpp_err"; then
9656  ac_header_preproc=yes
9657else
9658  echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
9660
9661  ac_header_preproc=no
9662fi
9663
9664rm -f conftest.err conftest.$ac_ext
9665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9666echo "${ECHO_T}$ac_header_preproc" >&6; }
9667
9668# So?  What about this header?
9669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9670  yes:no: )
9671    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9673    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9675    ac_header_preproc=yes
9676    ;;
9677  no:yes:* )
9678    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9680    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9681echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9682    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9684    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9685echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9688    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9690    ( cat <<\_ASBOX
9691## ----------------------------------- ##
9692## Report this to llvmbugs@cs.uiuc.edu ##
9693## ----------------------------------- ##
9694_ASBOX
9695     ) | sed "s/^/$as_me: WARNING:     /" >&2
9696    ;;
9697esac
9698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701  echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703  eval "$as_ac_Header=\$ac_header_preproc"
9704fi
9705ac_res=`eval echo '${'$as_ac_Header'}'`
9706	       { echo "$as_me:$LINENO: result: $ac_res" >&5
9707echo "${ECHO_T}$ac_res" >&6; }
9708
9709fi
9710if test `eval echo '${'$as_ac_Header'}'` = yes; then
9711  cat >>confdefs.h <<_ACEOF
9712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9713_ACEOF
9714
9715fi
9716
9717done
9718
9719# Check whether --enable-ltdl-install was given.
9720if test "${enable_ltdl_install+set}" = set; then
9721  enableval=$enable_ltdl_install;
9722fi
9723
9724
9725
9726
9727if test x"${enable_ltdl_install-no}" != xno; then
9728  INSTALL_LTDL_TRUE=
9729  INSTALL_LTDL_FALSE='#'
9730else
9731  INSTALL_LTDL_TRUE='#'
9732  INSTALL_LTDL_FALSE=
9733fi
9734
9735
9736
9737if test x"${enable_ltdl_convenience-no}" != xno; then
9738  CONVENIENCE_LTDL_TRUE=
9739  CONVENIENCE_LTDL_FALSE='#'
9740else
9741  CONVENIENCE_LTDL_TRUE='#'
9742  CONVENIENCE_LTDL_FALSE=
9743fi
9744
9745
9746{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9747echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9748library_names_spec=
9749libname_spec='lib$name'
9750soname_spec=
9751shrext_cmds=".so"
9752postinstall_cmds=
9753postuninstall_cmds=
9754finish_cmds=
9755finish_eval=
9756shlibpath_var=
9757shlibpath_overrides_runpath=unknown
9758version_type=none
9759dynamic_linker="$host_os ld.so"
9760sys_lib_dlsearch_path_spec="/lib /usr/lib"
9761if test "$GCC" = yes; then
9762  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9763  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9764    # if the path contains ";" then we assume it to be the separator
9765    # otherwise default to the standard path separator (i.e. ":") - it is
9766    # assumed that no part of a normal pathname contains ";" but that should
9767    # okay in the real world where ";" in dirpaths is itself problematic.
9768    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9769  else
9770    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9771  fi
9772else
9773  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9774fi
9775need_lib_prefix=unknown
9776hardcode_into_libs=no
9777
9778# when you set need_version to no, make sure it does not cause -set_version
9779# flags to be left without arguments
9780need_version=unknown
9781
9782case $host_os in
9783aix3*)
9784  version_type=linux
9785  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9786  shlibpath_var=LIBPATH
9787
9788  # AIX 3 has no versioning support, so we append a major version to the name.
9789  soname_spec='${libname}${release}${shared_ext}$major'
9790  ;;
9791
9792aix4* | aix5*)
9793  version_type=linux
9794  need_lib_prefix=no
9795  need_version=no
9796  hardcode_into_libs=yes
9797  if test "$host_cpu" = ia64; then
9798    # AIX 5 supports IA64
9799    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9800    shlibpath_var=LD_LIBRARY_PATH
9801  else
9802    # With GCC up to 2.95.x, collect2 would create an import file
9803    # for dependence libraries.  The import file would start with
9804    # the line `#! .'.  This would cause the generated library to
9805    # depend on `.', always an invalid library.  This was fixed in
9806    # development snapshots of GCC prior to 3.0.
9807    case $host_os in
9808      aix4 | aix4.[01] | aix4.[01].*)
9809      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9810	   echo ' yes '
9811	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9812	:
9813      else
9814	can_build_shared=no
9815      fi
9816      ;;
9817    esac
9818    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9819    # soname into executable. Probably we can add versioning support to
9820    # collect2, so additional links can be useful in future.
9821    if test "$aix_use_runtimelinking" = yes; then
9822      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9823      # instead of lib<name>.a to let people know that these are not
9824      # typical AIX shared libraries.
9825      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826    else
9827      # We preserve .a as extension for shared libraries through AIX4.2
9828      # and later when we are not doing run time linking.
9829      library_names_spec='${libname}${release}.a $libname.a'
9830      soname_spec='${libname}${release}${shared_ext}$major'
9831    fi
9832    shlibpath_var=LIBPATH
9833  fi
9834  ;;
9835
9836amigaos*)
9837  library_names_spec='$libname.ixlibrary $libname.a'
9838  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9839  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'
9840  ;;
9841
9842beos*)
9843  library_names_spec='${libname}${shared_ext}'
9844  dynamic_linker="$host_os ld.so"
9845  shlibpath_var=LIBRARY_PATH
9846  ;;
9847
9848bsdi[45]*)
9849  version_type=linux
9850  need_version=no
9851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852  soname_spec='${libname}${release}${shared_ext}$major'
9853  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9854  shlibpath_var=LD_LIBRARY_PATH
9855  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9856  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9857  # the default ld.so.conf also contains /usr/contrib/lib and
9858  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9859  # libtool to hard-code these into programs
9860  ;;
9861
9862cygwin* | mingw* | pw32*)
9863  version_type=windows
9864  shrext_cmds=".dll"
9865  need_version=no
9866  need_lib_prefix=no
9867
9868  case $GCC,$host_os in
9869  yes,cygwin* | yes,mingw* | yes,pw32*)
9870    library_names_spec='$libname.dll.a'
9871    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9872    postinstall_cmds='base_file=`basename \${file}`~
9873      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9874      dldir=$destdir/`dirname \$dlpath`~
9875      test -d \$dldir || mkdir -p \$dldir~
9876      $install_prog $dir/$dlname \$dldir/$dlname~
9877      chmod a+x \$dldir/$dlname'
9878    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9879      dlpath=$dir/\$dldll~
9880       $rm \$dlpath'
9881    shlibpath_overrides_runpath=yes
9882
9883    case $host_os in
9884    cygwin*)
9885      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9886      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9887      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9888      ;;
9889    mingw*)
9890      # MinGW DLLs use traditional 'lib' prefix
9891      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9892      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9893      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9894        # It is most probably a Windows format PATH printed by
9895        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9896        # path with ; separators, and with drive letters. We can handle the
9897        # drive letters (cygwin fileutils understands them), so leave them,
9898        # especially as we might pass files found there to a mingw objdump,
9899        # which wouldn't understand a cygwinified path. Ahh.
9900        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901      else
9902        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9903      fi
9904      ;;
9905    pw32*)
9906      # pw32 DLLs use 'pw' prefix rather than 'lib'
9907      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9908      ;;
9909    esac
9910    ;;
9911
9912  *)
9913    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9914    ;;
9915  esac
9916  dynamic_linker='Win32 ld.exe'
9917  # FIXME: first we should search . and the directory the executable is in
9918  shlibpath_var=PATH
9919  ;;
9920
9921darwin* | rhapsody*)
9922  dynamic_linker="$host_os dyld"
9923  version_type=darwin
9924  need_lib_prefix=no
9925  need_version=no
9926  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9927  soname_spec='${libname}${release}${major}$shared_ext'
9928  shlibpath_overrides_runpath=yes
9929  shlibpath_var=DYLD_LIBRARY_PATH
9930  shrext_cmds='.dylib'
9931  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9932  if test "$GCC" = yes; then
9933    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"`
9934  else
9935    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9936  fi
9937  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9938  ;;
9939
9940dgux*)
9941  version_type=linux
9942  need_lib_prefix=no
9943  need_version=no
9944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945  soname_spec='${libname}${release}${shared_ext}$major'
9946  shlibpath_var=LD_LIBRARY_PATH
9947  ;;
9948
9949freebsd1*)
9950  dynamic_linker=no
9951  ;;
9952
9953kfreebsd*-gnu)
9954  version_type=linux
9955  need_lib_prefix=no
9956  need_version=no
9957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9958  soname_spec='${libname}${release}${shared_ext}$major'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  shlibpath_overrides_runpath=no
9961  hardcode_into_libs=yes
9962  dynamic_linker='GNU ld.so'
9963  ;;
9964
9965freebsd* | dragonfly*)
9966  # DragonFly does not have aout.  When/if they implement a new
9967  # versioning mechanism, adjust this.
9968  if test -x /usr/bin/objformat; then
9969    objformat=`/usr/bin/objformat`
9970  else
9971    case $host_os in
9972    freebsd[123]*) objformat=aout ;;
9973    *) objformat=elf ;;
9974    esac
9975  fi
9976  version_type=freebsd-$objformat
9977  case $version_type in
9978    freebsd-elf*)
9979      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9980      need_version=no
9981      need_lib_prefix=no
9982      ;;
9983    freebsd-*)
9984      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9985      need_version=yes
9986      ;;
9987  esac
9988  shlibpath_var=LD_LIBRARY_PATH
9989  case $host_os in
9990  freebsd2*)
9991    shlibpath_overrides_runpath=yes
9992    ;;
9993  freebsd3.[01]* | freebsdelf3.[01]*)
9994    shlibpath_overrides_runpath=yes
9995    hardcode_into_libs=yes
9996    ;;
9997  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9998  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9999    shlibpath_overrides_runpath=no
10000    hardcode_into_libs=yes
10001    ;;
10002  freebsd*) # from 4.6 on
10003    shlibpath_overrides_runpath=yes
10004    hardcode_into_libs=yes
10005    ;;
10006  esac
10007  ;;
10008
10009gnu*)
10010  version_type=linux
10011  need_lib_prefix=no
10012  need_version=no
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10014  soname_spec='${libname}${release}${shared_ext}$major'
10015  shlibpath_var=LD_LIBRARY_PATH
10016  hardcode_into_libs=yes
10017  ;;
10018
10019hpux9* | hpux10* | hpux11*)
10020  # Give a soname corresponding to the major version so that dld.sl refuses to
10021  # link against other versions.
10022  version_type=sunos
10023  need_lib_prefix=no
10024  need_version=no
10025  case $host_cpu in
10026  ia64*)
10027    shrext_cmds='.so'
10028    hardcode_into_libs=yes
10029    dynamic_linker="$host_os dld.so"
10030    shlibpath_var=LD_LIBRARY_PATH
10031    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10032    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033    soname_spec='${libname}${release}${shared_ext}$major'
10034    if test "X$HPUX_IA64_MODE" = X32; then
10035      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10036    else
10037      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10038    fi
10039    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10040    ;;
10041   hppa*64*)
10042     shrext_cmds='.sl'
10043     hardcode_into_libs=yes
10044     dynamic_linker="$host_os dld.sl"
10045     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048     soname_spec='${libname}${release}${shared_ext}$major'
10049     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10050     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10051     ;;
10052   *)
10053    shrext_cmds='.sl'
10054    dynamic_linker="$host_os dld.sl"
10055    shlibpath_var=SHLIB_PATH
10056    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058    soname_spec='${libname}${release}${shared_ext}$major'
10059    ;;
10060  esac
10061  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10062  postinstall_cmds='chmod 555 $lib'
10063  ;;
10064
10065interix3*)
10066  version_type=linux
10067  need_lib_prefix=no
10068  need_version=no
10069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10070  soname_spec='${libname}${release}${shared_ext}$major'
10071  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10072  shlibpath_var=LD_LIBRARY_PATH
10073  shlibpath_overrides_runpath=no
10074  hardcode_into_libs=yes
10075  ;;
10076
10077irix5* | irix6* | nonstopux*)
10078  case $host_os in
10079    nonstopux*) version_type=nonstopux ;;
10080    *)
10081	if test "$lt_cv_prog_gnu_ld" = yes; then
10082		version_type=linux
10083	else
10084		version_type=irix
10085	fi ;;
10086  esac
10087  need_lib_prefix=no
10088  need_version=no
10089  soname_spec='${libname}${release}${shared_ext}$major'
10090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10091  case $host_os in
10092  irix5* | nonstopux*)
10093    libsuff= shlibsuff=
10094    ;;
10095  *)
10096    case $LD in # libtool.m4 will add one of these switches to LD
10097    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10098      libsuff= shlibsuff= libmagic=32-bit;;
10099    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10100      libsuff=32 shlibsuff=N32 libmagic=N32;;
10101    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10102      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10103    *) libsuff= shlibsuff= libmagic=never-match;;
10104    esac
10105    ;;
10106  esac
10107  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10108  shlibpath_overrides_runpath=no
10109  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10110  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10111  hardcode_into_libs=yes
10112  ;;
10113
10114# No shared lib support for Linux oldld, aout, or coff.
10115linux*oldld* | linux*aout* | linux*coff*)
10116  dynamic_linker=no
10117  ;;
10118
10119# This must be Linux ELF.
10120linux*)
10121  version_type=linux
10122  need_lib_prefix=no
10123  need_version=no
10124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125  soname_spec='${libname}${release}${shared_ext}$major'
10126  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127  shlibpath_var=LD_LIBRARY_PATH
10128  shlibpath_overrides_runpath=no
10129  # This implies no fast_install, which is unacceptable.
10130  # Some rework will be needed to allow for fast_install
10131  # before this can be enabled.
10132  hardcode_into_libs=yes
10133
10134  # Append ld.so.conf contents to the search path
10135  if test -f /etc/ld.so.conf; then
10136    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' ' '`
10137    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10138  fi
10139
10140  # We used to test for /lib/ld.so.1 and disable shared libraries on
10141  # powerpc, because MkLinux only supported shared libraries with the
10142  # GNU dynamic linker.  Since this was broken with cross compilers,
10143  # most powerpc-linux boxes support dynamic linking these days and
10144  # people can always --disable-shared, the test was removed, and we
10145  # assume the GNU/Linux dynamic linker is in use.
10146  dynamic_linker='GNU/Linux ld.so'
10147  ;;
10148
10149knetbsd*-gnu)
10150  version_type=linux
10151  need_lib_prefix=no
10152  need_version=no
10153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154  soname_spec='${libname}${release}${shared_ext}$major'
10155  shlibpath_var=LD_LIBRARY_PATH
10156  shlibpath_overrides_runpath=no
10157  hardcode_into_libs=yes
10158  dynamic_linker='GNU ld.so'
10159  ;;
10160
10161netbsd*)
10162  version_type=sunos
10163  need_lib_prefix=no
10164  need_version=no
10165  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10167    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10168    dynamic_linker='NetBSD (a.out) ld.so'
10169  else
10170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171    soname_spec='${libname}${release}${shared_ext}$major'
10172    dynamic_linker='NetBSD ld.elf_so'
10173  fi
10174  shlibpath_var=LD_LIBRARY_PATH
10175  shlibpath_overrides_runpath=yes
10176  hardcode_into_libs=yes
10177  ;;
10178
10179newsos6)
10180  version_type=linux
10181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182  shlibpath_var=LD_LIBRARY_PATH
10183  shlibpath_overrides_runpath=yes
10184  ;;
10185
10186nto-qnx*)
10187  version_type=linux
10188  need_lib_prefix=no
10189  need_version=no
10190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191  soname_spec='${libname}${release}${shared_ext}$major'
10192  shlibpath_var=LD_LIBRARY_PATH
10193  shlibpath_overrides_runpath=yes
10194  ;;
10195
10196openbsd*)
10197  version_type=sunos
10198  sys_lib_dlsearch_path_spec="/usr/lib"
10199  need_lib_prefix=no
10200  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10201  case $host_os in
10202    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10203    *)                         need_version=no  ;;
10204  esac
10205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10206  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10207  shlibpath_var=LD_LIBRARY_PATH
10208  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10209    case $host_os in
10210      openbsd2.[89] | openbsd2.[89].*)
10211	shlibpath_overrides_runpath=no
10212	;;
10213      *)
10214	shlibpath_overrides_runpath=yes
10215	;;
10216      esac
10217  else
10218    shlibpath_overrides_runpath=yes
10219  fi
10220  ;;
10221
10222os2*)
10223  libname_spec='$name'
10224  shrext_cmds=".dll"
10225  need_lib_prefix=no
10226  library_names_spec='$libname${shared_ext} $libname.a'
10227  dynamic_linker='OS/2 ld.exe'
10228  shlibpath_var=LIBPATH
10229  ;;
10230
10231osf3* | osf4* | osf5*)
10232  version_type=osf
10233  need_lib_prefix=no
10234  need_version=no
10235  soname_spec='${libname}${release}${shared_ext}$major'
10236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237  shlibpath_var=LD_LIBRARY_PATH
10238  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10239  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10240  ;;
10241
10242solaris*)
10243  version_type=linux
10244  need_lib_prefix=no
10245  need_version=no
10246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247  soname_spec='${libname}${release}${shared_ext}$major'
10248  shlibpath_var=LD_LIBRARY_PATH
10249  shlibpath_overrides_runpath=yes
10250  hardcode_into_libs=yes
10251  # ldd complains unless libraries are executable
10252  postinstall_cmds='chmod +x $lib'
10253  ;;
10254
10255sunos4*)
10256  version_type=sunos
10257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10259  shlibpath_var=LD_LIBRARY_PATH
10260  shlibpath_overrides_runpath=yes
10261  if test "$with_gnu_ld" = yes; then
10262    need_lib_prefix=no
10263  fi
10264  need_version=yes
10265  ;;
10266
10267sysv4 | sysv4.3*)
10268  version_type=linux
10269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270  soname_spec='${libname}${release}${shared_ext}$major'
10271  shlibpath_var=LD_LIBRARY_PATH
10272  case $host_vendor in
10273    sni)
10274      shlibpath_overrides_runpath=no
10275      need_lib_prefix=no
10276      export_dynamic_flag_spec='${wl}-Blargedynsym'
10277      runpath_var=LD_RUN_PATH
10278      ;;
10279    siemens)
10280      need_lib_prefix=no
10281      ;;
10282    motorola)
10283      need_lib_prefix=no
10284      need_version=no
10285      shlibpath_overrides_runpath=no
10286      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10287      ;;
10288  esac
10289  ;;
10290
10291sysv4*MP*)
10292  if test -d /usr/nec ;then
10293    version_type=linux
10294    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10295    soname_spec='$libname${shared_ext}.$major'
10296    shlibpath_var=LD_LIBRARY_PATH
10297  fi
10298  ;;
10299
10300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10301  version_type=freebsd-elf
10302  need_lib_prefix=no
10303  need_version=no
10304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305  soname_spec='${libname}${release}${shared_ext}$major'
10306  shlibpath_var=LD_LIBRARY_PATH
10307  hardcode_into_libs=yes
10308  if test "$with_gnu_ld" = yes; then
10309    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10310    shlibpath_overrides_runpath=no
10311  else
10312    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10313    shlibpath_overrides_runpath=yes
10314    case $host_os in
10315      sco3.2v5*)
10316        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10317	;;
10318    esac
10319  fi
10320  sys_lib_dlsearch_path_spec='/usr/lib'
10321  ;;
10322
10323uts4*)
10324  version_type=linux
10325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326  soname_spec='${libname}${release}${shared_ext}$major'
10327  shlibpath_var=LD_LIBRARY_PATH
10328  ;;
10329
10330*)
10331  dynamic_linker=no
10332  ;;
10333esac
10334{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10335echo "${ECHO_T}$dynamic_linker" >&6; }
10336test "$dynamic_linker" = no && can_build_shared=no
10337
10338variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10339if test "$GCC" = yes; then
10340  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10341fi
10342
10343
10344{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10345echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10346if test "${libltdl_cv_shlibext+set}" = set; then
10347  echo $ECHO_N "(cached) $ECHO_C" >&6
10348else
10349
10350module=yes
10351eval libltdl_cv_shlibext=$shrext_cmds
10352
10353fi
10354{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10355echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10356if test -n "$libltdl_cv_shlibext"; then
10357
10358cat >>confdefs.h <<_ACEOF
10359#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10360_ACEOF
10361
10362fi
10363
10364
10365{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10366echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10367if test "${libltdl_cv_shlibpath_var+set}" = set; then
10368  echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370  libltdl_cv_shlibpath_var="$shlibpath_var"
10371fi
10372{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10373echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10374if test -n "$libltdl_cv_shlibpath_var"; then
10375
10376cat >>confdefs.h <<_ACEOF
10377#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10378_ACEOF
10379
10380fi
10381
10382
10383{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10384echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10385if test "${libltdl_cv_sys_search_path+set}" = set; then
10386  echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388  libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10389fi
10390{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10391echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10392if test -n "$libltdl_cv_sys_search_path"; then
10393  sys_search_path=
10394  for dir in $libltdl_cv_sys_search_path; do
10395    if test -z "$sys_search_path"; then
10396      sys_search_path="$dir"
10397    else
10398      sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10399    fi
10400  done
10401
10402cat >>confdefs.h <<_ACEOF
10403#define LTDL_SYSSEARCHPATH "$sys_search_path"
10404_ACEOF
10405
10406fi
10407
10408{ echo "$as_me:$LINENO: checking for objdir" >&5
10409echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10410if test "${libltdl_cv_objdir+set}" = set; then
10411  echo $ECHO_N "(cached) $ECHO_C" >&6
10412else
10413  libltdl_cv_objdir="$objdir"
10414  if test -n "$objdir"; then
10415    :
10416  else
10417    rm -f .libs 2>/dev/null
10418    mkdir .libs 2>/dev/null
10419    if test -d .libs; then
10420      libltdl_cv_objdir=.libs
10421    else
10422      # MS-DOS does not allow filenames that begin with a dot.
10423      libltdl_cv_objdir=_libs
10424    fi
10425  rmdir .libs 2>/dev/null
10426  fi
10427
10428fi
10429{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10430echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10431
10432cat >>confdefs.h <<_ACEOF
10433#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10434_ACEOF
10435
10436
10437
10438
10439
10440
10441# Check for command to grab the raw symbol name followed by C symbol from nm.
10442{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10443echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10444if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10445  echo $ECHO_N "(cached) $ECHO_C" >&6
10446else
10447
10448# These are sane defaults that work on at least a few old systems.
10449# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10450
10451# Character class describing NM global symbol codes.
10452symcode='[BCDEGRST]'
10453
10454# Regexp to match symbols that can be accessed directly from C.
10455sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10456
10457# Transform an extracted symbol line into a proper C declaration
10458lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10459
10460# Transform an extracted symbol line into symbol name and symbol address
10461lt_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'"
10462
10463# Define system-specific variables.
10464case $host_os in
10465aix*)
10466  symcode='[BCDT]'
10467  ;;
10468cygwin* | mingw* | pw32*)
10469  symcode='[ABCDGISTW]'
10470  ;;
10471hpux*) # Its linker distinguishes data from code symbols
10472  if test "$host_cpu" = ia64; then
10473    symcode='[ABCDEGRST]'
10474  fi
10475  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10476  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'"
10477  ;;
10478linux*)
10479  if test "$host_cpu" = ia64; then
10480    symcode='[ABCDGIRSTW]'
10481    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10482    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'"
10483  fi
10484  ;;
10485irix* | nonstopux*)
10486  symcode='[BCDEGRST]'
10487  ;;
10488osf*)
10489  symcode='[BCDEGQRST]'
10490  ;;
10491solaris*)
10492  symcode='[BDRT]'
10493  ;;
10494sco3.2v5*)
10495  symcode='[DT]'
10496  ;;
10497sysv4.2uw2*)
10498  symcode='[DT]'
10499  ;;
10500sysv5* | sco5v6* | unixware* | OpenUNIX*)
10501  symcode='[ABDT]'
10502  ;;
10503sysv4)
10504  symcode='[DFNSTU]'
10505  ;;
10506esac
10507
10508# Handle CRLF in mingw tool chain
10509opt_cr=
10510case $build_os in
10511mingw*)
10512  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10513  ;;
10514esac
10515
10516# If we're using GNU nm, then use its standard symbol codes.
10517case `$NM -V 2>&1` in
10518*GNU* | *'with BFD'*)
10519  symcode='[ABCDGIRSTW]' ;;
10520esac
10521
10522# Try without a prefix undercore, then with it.
10523for ac_symprfx in "" "_"; do
10524
10525  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10526  symxfrm="\\1 $ac_symprfx\\2 \\2"
10527
10528  # Write the raw and C identifiers.
10529  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10530
10531  # Check to see that the pipe works correctly.
10532  pipe_works=no
10533
10534  rm -f conftest*
10535  cat > conftest.$ac_ext <<EOF
10536#ifdef __cplusplus
10537extern "C" {
10538#endif
10539char nm_test_var;
10540void nm_test_func(){}
10541#ifdef __cplusplus
10542}
10543#endif
10544int main(){nm_test_var='a';nm_test_func();return(0);}
10545EOF
10546
10547  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548  (eval $ac_compile) 2>&5
10549  ac_status=$?
10550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551  (exit $ac_status); }; then
10552    # Now try to grab the symbols.
10553    nlist=conftest.nm
10554    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10555  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10556  ac_status=$?
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } && test -s "$nlist"; then
10559      # Try sorting and uniquifying the output.
10560      if sort "$nlist" | uniq > "$nlist"T; then
10561	mv -f "$nlist"T "$nlist"
10562      else
10563	rm -f "$nlist"T
10564      fi
10565
10566      # Make sure that we snagged all the symbols we need.
10567      if grep ' nm_test_var$' "$nlist" >/dev/null; then
10568	if grep ' nm_test_func$' "$nlist" >/dev/null; then
10569	  cat <<EOF > conftest.$ac_ext
10570#ifdef __cplusplus
10571extern "C" {
10572#endif
10573
10574EOF
10575	  # Now generate the symbol file.
10576	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10577
10578	  cat <<EOF >> conftest.$ac_ext
10579#if defined (__STDC__) && __STDC__
10580# define lt_ptr_t void *
10581#else
10582# define lt_ptr_t char *
10583# define const
10584#endif
10585
10586/* The mapping between symbol names and symbols. */
10587const struct {
10588  const char *name;
10589  lt_ptr_t address;
10590}
10591lt_preloaded_symbols[] =
10592{
10593EOF
10594	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10595	  cat <<\EOF >> conftest.$ac_ext
10596  {0, (lt_ptr_t) 0}
10597};
10598
10599#ifdef __cplusplus
10600}
10601#endif
10602EOF
10603	  # Now try linking the two files.
10604	  mv conftest.$ac_objext conftstm.$ac_objext
10605	  lt_save_LIBS="$LIBS"
10606	  lt_save_CFLAGS="$CFLAGS"
10607	  LIBS="conftstm.$ac_objext"
10608	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10609	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610  (eval $ac_link) 2>&5
10611  ac_status=$?
10612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613  (exit $ac_status); } && test -s conftest${ac_exeext}; then
10614	    pipe_works=yes
10615	  fi
10616	  LIBS="$lt_save_LIBS"
10617	  CFLAGS="$lt_save_CFLAGS"
10618	else
10619	  echo "cannot find nm_test_func in $nlist" >&5
10620	fi
10621      else
10622	echo "cannot find nm_test_var in $nlist" >&5
10623      fi
10624    else
10625      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10626    fi
10627  else
10628    echo "$progname: failed program was:" >&5
10629    cat conftest.$ac_ext >&5
10630  fi
10631  rm -f conftest* conftst*
10632
10633  # Do not use the global_symbol_pipe unless it works.
10634  if test "$pipe_works" = yes; then
10635    break
10636  else
10637    lt_cv_sys_global_symbol_pipe=
10638  fi
10639done
10640
10641fi
10642
10643if test -z "$lt_cv_sys_global_symbol_pipe"; then
10644  lt_cv_sys_global_symbol_to_cdecl=
10645fi
10646if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10647  { echo "$as_me:$LINENO: result: failed" >&5
10648echo "${ECHO_T}failed" >&6; }
10649else
10650  { echo "$as_me:$LINENO: result: ok" >&5
10651echo "${ECHO_T}ok" >&6; }
10652fi
10653
10654
10655{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10656echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10657if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10658  echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660  if test -n "$lt_cv_sys_global_symbol_pipe"; then
10661    libltdl_cv_preloaded_symbols=yes
10662  else
10663    libltdl_cv_preloaded_symbols=no
10664  fi
10665
10666fi
10667{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10668echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10669if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10670
10671cat >>confdefs.h <<\_ACEOF
10672#define HAVE_PRELOADED_SYMBOLS 1
10673_ACEOF
10674
10675fi
10676
10677LIBADD_DL=
10678
10679ac_ext=c
10680ac_cpp='$CPP $CPPFLAGS'
10681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683ac_compiler_gnu=$ac_cv_c_compiler_gnu
10684
10685
10686{ echo "$as_me:$LINENO: checking for shl_load" >&5
10687echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10688if test "${ac_cv_func_shl_load+set}" = set; then
10689  echo $ECHO_N "(cached) $ECHO_C" >&6
10690else
10691  cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h.  */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h.  */
10697/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10698   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10699#define shl_load innocuous_shl_load
10700
10701/* System header to define __stub macros and hopefully few prototypes,
10702    which can conflict with char shl_load (); below.
10703    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704    <limits.h> exists even on freestanding compilers.  */
10705
10706#ifdef __STDC__
10707# include <limits.h>
10708#else
10709# include <assert.h>
10710#endif
10711
10712#undef shl_load
10713
10714/* Override any GCC internal prototype to avoid an error.
10715   Use char because int might match the return type of a GCC
10716   builtin and then its argument prototype would still apply.  */
10717#ifdef __cplusplus
10718extern "C"
10719#endif
10720char shl_load ();
10721/* The GNU C library defines this for functions which it implements
10722    to always fail with ENOSYS.  Some functions are actually named
10723    something starting with __ and the normal name is an alias.  */
10724#if defined __stub_shl_load || defined __stub___shl_load
10725choke me
10726#endif
10727
10728int
10729main ()
10730{
10731return shl_load ();
10732  ;
10733  return 0;
10734}
10735_ACEOF
10736rm -f conftest.$ac_objext conftest$ac_exeext
10737if { (ac_try="$ac_link"
10738case "(($ac_try" in
10739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740  *) ac_try_echo=$ac_try;;
10741esac
10742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743  (eval "$ac_link") 2>conftest.er1
10744  ac_status=$?
10745  grep -v '^ *+' conftest.er1 >conftest.err
10746  rm -f conftest.er1
10747  cat conftest.err >&5
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); } &&
10750	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751  { (case "(($ac_try" in
10752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753  *) ac_try_echo=$ac_try;;
10754esac
10755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756  (eval "$ac_try") 2>&5
10757  ac_status=$?
10758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759  (exit $ac_status); }; } &&
10760	 { ac_try='test -s conftest$ac_exeext'
10761  { (case "(($ac_try" in
10762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763  *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766  (eval "$ac_try") 2>&5
10767  ac_status=$?
10768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769  (exit $ac_status); }; }; then
10770  ac_cv_func_shl_load=yes
10771else
10772  echo "$as_me: failed program was:" >&5
10773sed 's/^/| /' conftest.$ac_ext >&5
10774
10775	ac_cv_func_shl_load=no
10776fi
10777
10778rm -f core conftest.err conftest.$ac_objext \
10779      conftest$ac_exeext conftest.$ac_ext
10780fi
10781{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10782echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10783if test $ac_cv_func_shl_load = yes; then
10784
10785cat >>confdefs.h <<\_ACEOF
10786#define HAVE_SHL_LOAD 1
10787_ACEOF
10788
10789else
10790  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10791echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10792if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10793  echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795  ac_check_lib_save_LIBS=$LIBS
10796LIBS="-ldld  $LIBS"
10797cat >conftest.$ac_ext <<_ACEOF
10798/* confdefs.h.  */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h.  */
10803
10804/* Override any GCC internal prototype to avoid an error.
10805   Use char because int might match the return type of a GCC
10806   builtin and then its argument prototype would still apply.  */
10807#ifdef __cplusplus
10808extern "C"
10809#endif
10810char shl_load ();
10811int
10812main ()
10813{
10814return shl_load ();
10815  ;
10816  return 0;
10817}
10818_ACEOF
10819rm -f conftest.$ac_objext conftest$ac_exeext
10820if { (ac_try="$ac_link"
10821case "(($ac_try" in
10822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823  *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826  (eval "$ac_link") 2>conftest.er1
10827  ac_status=$?
10828  grep -v '^ *+' conftest.er1 >conftest.err
10829  rm -f conftest.er1
10830  cat conftest.err >&5
10831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832  (exit $ac_status); } &&
10833	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10834  { (case "(($ac_try" in
10835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836  *) ac_try_echo=$ac_try;;
10837esac
10838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839  (eval "$ac_try") 2>&5
10840  ac_status=$?
10841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842  (exit $ac_status); }; } &&
10843	 { ac_try='test -s conftest$ac_exeext'
10844  { (case "(($ac_try" in
10845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846  *) ac_try_echo=$ac_try;;
10847esac
10848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849  (eval "$ac_try") 2>&5
10850  ac_status=$?
10851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852  (exit $ac_status); }; }; then
10853  ac_cv_lib_dld_shl_load=yes
10854else
10855  echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
10857
10858	ac_cv_lib_dld_shl_load=no
10859fi
10860
10861rm -f core conftest.err conftest.$ac_objext \
10862      conftest$ac_exeext conftest.$ac_ext
10863LIBS=$ac_check_lib_save_LIBS
10864fi
10865{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10866echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10867if test $ac_cv_lib_dld_shl_load = yes; then
10868
10869cat >>confdefs.h <<\_ACEOF
10870#define HAVE_SHL_LOAD 1
10871_ACEOF
10872
10873	LIBADD_DL="$LIBADD_DL -ldld"
10874else
10875  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10876echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10877if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10878  echo $ECHO_N "(cached) $ECHO_C" >&6
10879else
10880  ac_check_lib_save_LIBS=$LIBS
10881LIBS="-ldl  $LIBS"
10882cat >conftest.$ac_ext <<_ACEOF
10883/* confdefs.h.  */
10884_ACEOF
10885cat confdefs.h >>conftest.$ac_ext
10886cat >>conftest.$ac_ext <<_ACEOF
10887/* end confdefs.h.  */
10888
10889/* Override any GCC internal prototype to avoid an error.
10890   Use char because int might match the return type of a GCC
10891   builtin and then its argument prototype would still apply.  */
10892#ifdef __cplusplus
10893extern "C"
10894#endif
10895char dlopen ();
10896int
10897main ()
10898{
10899return dlopen ();
10900  ;
10901  return 0;
10902}
10903_ACEOF
10904rm -f conftest.$ac_objext conftest$ac_exeext
10905if { (ac_try="$ac_link"
10906case "(($ac_try" in
10907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908  *) ac_try_echo=$ac_try;;
10909esac
10910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911  (eval "$ac_link") 2>conftest.er1
10912  ac_status=$?
10913  grep -v '^ *+' conftest.er1 >conftest.err
10914  rm -f conftest.er1
10915  cat conftest.err >&5
10916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917  (exit $ac_status); } &&
10918	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10919  { (case "(($ac_try" in
10920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921  *) ac_try_echo=$ac_try;;
10922esac
10923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924  (eval "$ac_try") 2>&5
10925  ac_status=$?
10926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927  (exit $ac_status); }; } &&
10928	 { ac_try='test -s conftest$ac_exeext'
10929  { (case "(($ac_try" in
10930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931  *) ac_try_echo=$ac_try;;
10932esac
10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934  (eval "$ac_try") 2>&5
10935  ac_status=$?
10936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937  (exit $ac_status); }; }; then
10938  ac_cv_lib_dl_dlopen=yes
10939else
10940  echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
10942
10943	ac_cv_lib_dl_dlopen=no
10944fi
10945
10946rm -f core conftest.err conftest.$ac_objext \
10947      conftest$ac_exeext conftest.$ac_ext
10948LIBS=$ac_check_lib_save_LIBS
10949fi
10950{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10951echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10952if test $ac_cv_lib_dl_dlopen = yes; then
10953
10954cat >>confdefs.h <<\_ACEOF
10955#define HAVE_LIBDL 1
10956_ACEOF
10957
10958	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10959else
10960  cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h.  */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h.  */
10966#if HAVE_DLFCN_H
10967#  include <dlfcn.h>
10968#endif
10969
10970int
10971main ()
10972{
10973dlopen(0, 0);
10974  ;
10975  return 0;
10976}
10977_ACEOF
10978rm -f conftest.$ac_objext conftest$ac_exeext
10979if { (ac_try="$ac_link"
10980case "(($ac_try" in
10981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982  *) ac_try_echo=$ac_try;;
10983esac
10984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985  (eval "$ac_link") 2>conftest.er1
10986  ac_status=$?
10987  grep -v '^ *+' conftest.er1 >conftest.err
10988  rm -f conftest.er1
10989  cat conftest.err >&5
10990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991  (exit $ac_status); } &&
10992	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10993  { (case "(($ac_try" in
10994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995  *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998  (eval "$ac_try") 2>&5
10999  ac_status=$?
11000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001  (exit $ac_status); }; } &&
11002	 { ac_try='test -s conftest$ac_exeext'
11003  { (case "(($ac_try" in
11004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005  *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008  (eval "$ac_try") 2>&5
11009  ac_status=$?
11010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011  (exit $ac_status); }; }; then
11012
11013cat >>confdefs.h <<\_ACEOF
11014#define HAVE_LIBDL 1
11015_ACEOF
11016 libltdl_cv_func_dlopen="yes"
11017else
11018  echo "$as_me: failed program was:" >&5
11019sed 's/^/| /' conftest.$ac_ext >&5
11020
11021	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11022echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11023if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11024  echo $ECHO_N "(cached) $ECHO_C" >&6
11025else
11026  ac_check_lib_save_LIBS=$LIBS
11027LIBS="-lsvld  $LIBS"
11028cat >conftest.$ac_ext <<_ACEOF
11029/* confdefs.h.  */
11030_ACEOF
11031cat confdefs.h >>conftest.$ac_ext
11032cat >>conftest.$ac_ext <<_ACEOF
11033/* end confdefs.h.  */
11034
11035/* Override any GCC internal prototype to avoid an error.
11036   Use char because int might match the return type of a GCC
11037   builtin and then its argument prototype would still apply.  */
11038#ifdef __cplusplus
11039extern "C"
11040#endif
11041char dlopen ();
11042int
11043main ()
11044{
11045return dlopen ();
11046  ;
11047  return 0;
11048}
11049_ACEOF
11050rm -f conftest.$ac_objext conftest$ac_exeext
11051if { (ac_try="$ac_link"
11052case "(($ac_try" in
11053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054  *) ac_try_echo=$ac_try;;
11055esac
11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057  (eval "$ac_link") 2>conftest.er1
11058  ac_status=$?
11059  grep -v '^ *+' conftest.er1 >conftest.err
11060  rm -f conftest.er1
11061  cat conftest.err >&5
11062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063  (exit $ac_status); } &&
11064	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065  { (case "(($ac_try" in
11066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067  *) ac_try_echo=$ac_try;;
11068esac
11069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070  (eval "$ac_try") 2>&5
11071  ac_status=$?
11072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073  (exit $ac_status); }; } &&
11074	 { ac_try='test -s conftest$ac_exeext'
11075  { (case "(($ac_try" in
11076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077  *) ac_try_echo=$ac_try;;
11078esac
11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080  (eval "$ac_try") 2>&5
11081  ac_status=$?
11082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083  (exit $ac_status); }; }; then
11084  ac_cv_lib_svld_dlopen=yes
11085else
11086  echo "$as_me: failed program was:" >&5
11087sed 's/^/| /' conftest.$ac_ext >&5
11088
11089	ac_cv_lib_svld_dlopen=no
11090fi
11091
11092rm -f core conftest.err conftest.$ac_objext \
11093      conftest$ac_exeext conftest.$ac_ext
11094LIBS=$ac_check_lib_save_LIBS
11095fi
11096{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11097echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11098if test $ac_cv_lib_svld_dlopen = yes; then
11099
11100cat >>confdefs.h <<\_ACEOF
11101#define HAVE_LIBDL 1
11102_ACEOF
11103
11104	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11105else
11106  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11107echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11108if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11109  echo $ECHO_N "(cached) $ECHO_C" >&6
11110else
11111  ac_check_lib_save_LIBS=$LIBS
11112LIBS="-ldld  $LIBS"
11113cat >conftest.$ac_ext <<_ACEOF
11114/* confdefs.h.  */
11115_ACEOF
11116cat confdefs.h >>conftest.$ac_ext
11117cat >>conftest.$ac_ext <<_ACEOF
11118/* end confdefs.h.  */
11119
11120/* Override any GCC internal prototype to avoid an error.
11121   Use char because int might match the return type of a GCC
11122   builtin and then its argument prototype would still apply.  */
11123#ifdef __cplusplus
11124extern "C"
11125#endif
11126char dld_link ();
11127int
11128main ()
11129{
11130return dld_link ();
11131  ;
11132  return 0;
11133}
11134_ACEOF
11135rm -f conftest.$ac_objext conftest$ac_exeext
11136if { (ac_try="$ac_link"
11137case "(($ac_try" in
11138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139  *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142  (eval "$ac_link") 2>conftest.er1
11143  ac_status=$?
11144  grep -v '^ *+' conftest.er1 >conftest.err
11145  rm -f conftest.er1
11146  cat conftest.err >&5
11147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148  (exit $ac_status); } &&
11149	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150  { (case "(($ac_try" in
11151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152  *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155  (eval "$ac_try") 2>&5
11156  ac_status=$?
11157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158  (exit $ac_status); }; } &&
11159	 { ac_try='test -s conftest$ac_exeext'
11160  { (case "(($ac_try" in
11161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162  *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165  (eval "$ac_try") 2>&5
11166  ac_status=$?
11167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168  (exit $ac_status); }; }; then
11169  ac_cv_lib_dld_dld_link=yes
11170else
11171  echo "$as_me: failed program was:" >&5
11172sed 's/^/| /' conftest.$ac_ext >&5
11173
11174	ac_cv_lib_dld_dld_link=no
11175fi
11176
11177rm -f core conftest.err conftest.$ac_objext \
11178      conftest$ac_exeext conftest.$ac_ext
11179LIBS=$ac_check_lib_save_LIBS
11180fi
11181{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11182echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11183if test $ac_cv_lib_dld_dld_link = yes; then
11184
11185cat >>confdefs.h <<\_ACEOF
11186#define HAVE_DLD 1
11187_ACEOF
11188
11189	 	LIBADD_DL="$LIBADD_DL -ldld"
11190else
11191  { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11192echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11193if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11194  echo $ECHO_N "(cached) $ECHO_C" >&6
11195else
11196  cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h.  */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h.  */
11202/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11203   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11204#define _dyld_func_lookup innocuous__dyld_func_lookup
11205
11206/* System header to define __stub macros and hopefully few prototypes,
11207    which can conflict with char _dyld_func_lookup (); below.
11208    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209    <limits.h> exists even on freestanding compilers.  */
11210
11211#ifdef __STDC__
11212# include <limits.h>
11213#else
11214# include <assert.h>
11215#endif
11216
11217#undef _dyld_func_lookup
11218
11219/* Override any GCC internal prototype to avoid an error.
11220   Use char because int might match the return type of a GCC
11221   builtin and then its argument prototype would still apply.  */
11222#ifdef __cplusplus
11223extern "C"
11224#endif
11225char _dyld_func_lookup ();
11226/* The GNU C library defines this for functions which it implements
11227    to always fail with ENOSYS.  Some functions are actually named
11228    something starting with __ and the normal name is an alias.  */
11229#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11230choke me
11231#endif
11232
11233int
11234main ()
11235{
11236return _dyld_func_lookup ();
11237  ;
11238  return 0;
11239}
11240_ACEOF
11241rm -f conftest.$ac_objext conftest$ac_exeext
11242if { (ac_try="$ac_link"
11243case "(($ac_try" in
11244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245  *) ac_try_echo=$ac_try;;
11246esac
11247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248  (eval "$ac_link") 2>conftest.er1
11249  ac_status=$?
11250  grep -v '^ *+' conftest.er1 >conftest.err
11251  rm -f conftest.er1
11252  cat conftest.err >&5
11253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254  (exit $ac_status); } &&
11255	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256  { (case "(($ac_try" in
11257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258  *) ac_try_echo=$ac_try;;
11259esac
11260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261  (eval "$ac_try") 2>&5
11262  ac_status=$?
11263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264  (exit $ac_status); }; } &&
11265	 { ac_try='test -s conftest$ac_exeext'
11266  { (case "(($ac_try" in
11267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268  *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271  (eval "$ac_try") 2>&5
11272  ac_status=$?
11273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274  (exit $ac_status); }; }; then
11275  ac_cv_func__dyld_func_lookup=yes
11276else
11277  echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
11280	ac_cv_func__dyld_func_lookup=no
11281fi
11282
11283rm -f core conftest.err conftest.$ac_objext \
11284      conftest$ac_exeext conftest.$ac_ext
11285fi
11286{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11287echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11288if test $ac_cv_func__dyld_func_lookup = yes; then
11289
11290cat >>confdefs.h <<\_ACEOF
11291#define HAVE_DYLD 1
11292_ACEOF
11293
11294fi
11295
11296
11297fi
11298
11299
11300fi
11301
11302
11303fi
11304
11305rm -f core conftest.err conftest.$ac_objext \
11306      conftest$ac_exeext conftest.$ac_ext
11307
11308fi
11309
11310
11311fi
11312
11313
11314fi
11315
11316
11317if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11318then
11319  lt_save_LIBS="$LIBS"
11320  LIBS="$LIBS $LIBADD_DL"
11321
11322for ac_func in dlerror
11323do
11324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11328  echo $ECHO_N "(cached) $ECHO_C" >&6
11329else
11330  cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h.  */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h.  */
11336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11337   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11338#define $ac_func innocuous_$ac_func
11339
11340/* System header to define __stub macros and hopefully few prototypes,
11341    which can conflict with char $ac_func (); below.
11342    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343    <limits.h> exists even on freestanding compilers.  */
11344
11345#ifdef __STDC__
11346# include <limits.h>
11347#else
11348# include <assert.h>
11349#endif
11350
11351#undef $ac_func
11352
11353/* Override any GCC internal prototype to avoid an error.
11354   Use char because int might match the return type of a GCC
11355   builtin and then its argument prototype would still apply.  */
11356#ifdef __cplusplus
11357extern "C"
11358#endif
11359char $ac_func ();
11360/* The GNU C library defines this for functions which it implements
11361    to always fail with ENOSYS.  Some functions are actually named
11362    something starting with __ and the normal name is an alias.  */
11363#if defined __stub_$ac_func || defined __stub___$ac_func
11364choke me
11365#endif
11366
11367int
11368main ()
11369{
11370return $ac_func ();
11371  ;
11372  return 0;
11373}
11374_ACEOF
11375rm -f conftest.$ac_objext conftest$ac_exeext
11376if { (ac_try="$ac_link"
11377case "(($ac_try" in
11378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379  *) ac_try_echo=$ac_try;;
11380esac
11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382  (eval "$ac_link") 2>conftest.er1
11383  ac_status=$?
11384  grep -v '^ *+' conftest.er1 >conftest.err
11385  rm -f conftest.er1
11386  cat conftest.err >&5
11387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388  (exit $ac_status); } &&
11389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390  { (case "(($ac_try" in
11391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392  *) ac_try_echo=$ac_try;;
11393esac
11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395  (eval "$ac_try") 2>&5
11396  ac_status=$?
11397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398  (exit $ac_status); }; } &&
11399	 { ac_try='test -s conftest$ac_exeext'
11400  { (case "(($ac_try" in
11401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402  *) ac_try_echo=$ac_try;;
11403esac
11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405  (eval "$ac_try") 2>&5
11406  ac_status=$?
11407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408  (exit $ac_status); }; }; then
11409  eval "$as_ac_var=yes"
11410else
11411  echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414	eval "$as_ac_var=no"
11415fi
11416
11417rm -f core conftest.err conftest.$ac_objext \
11418      conftest$ac_exeext conftest.$ac_ext
11419fi
11420ac_res=`eval echo '${'$as_ac_var'}'`
11421	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11422echo "${ECHO_T}$ac_res" >&6; }
11423if test `eval echo '${'$as_ac_var'}'` = yes; then
11424  cat >>confdefs.h <<_ACEOF
11425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11426_ACEOF
11427
11428fi
11429done
11430
11431  LIBS="$lt_save_LIBS"
11432fi
11433ac_ext=c
11434ac_cpp='$CPP $CPPFLAGS'
11435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438
11439
11440
11441{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11442echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11443if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11444  echo $ECHO_N "(cached) $ECHO_C" >&6
11445else
11446  ac_cv_sys_symbol_underscore=no
11447  cat > conftest.$ac_ext <<EOF
11448void nm_test_func(){}
11449int main(){nm_test_func;return 0;}
11450EOF
11451  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452  (eval $ac_compile) 2>&5
11453  ac_status=$?
11454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455  (exit $ac_status); }; then
11456    # Now try to grab the symbols.
11457    ac_nlist=conftest.nm
11458    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11459  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11460  ac_status=$?
11461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462  (exit $ac_status); } && test -s "$ac_nlist"; then
11463      # See whether the symbols have a leading underscore.
11464      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11465        ac_cv_sys_symbol_underscore=yes
11466      else
11467        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11468	  :
11469        else
11470	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11471        fi
11472      fi
11473    else
11474      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11475    fi
11476  else
11477    echo "configure: failed program was:" >&5
11478    cat conftest.c >&5
11479  fi
11480  rm -rf conftest*
11481
11482fi
11483{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11484echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11485
11486
11487if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11488  if test x"$libltdl_cv_func_dlopen" = xyes ||
11489     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11490	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11491echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11492if test "${libltdl_cv_need_uscore+set}" = set; then
11493  echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495  libltdl_cv_need_uscore=unknown
11496          save_LIBS="$LIBS"
11497          LIBS="$LIBS $LIBADD_DL"
11498	  if test "$cross_compiling" = yes; then :
11499  libltdl_cv_need_uscore=cross
11500else
11501  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11502  lt_status=$lt_dlunknown
11503  cat > conftest.$ac_ext <<EOF
11504#line 11504 "configure"
11505#include "confdefs.h"
11506
11507#if HAVE_DLFCN_H
11508#include <dlfcn.h>
11509#endif
11510
11511#include <stdio.h>
11512
11513#ifdef RTLD_GLOBAL
11514#  define LT_DLGLOBAL		RTLD_GLOBAL
11515#else
11516#  ifdef DL_GLOBAL
11517#    define LT_DLGLOBAL		DL_GLOBAL
11518#  else
11519#    define LT_DLGLOBAL		0
11520#  endif
11521#endif
11522
11523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11524   find out it does not work in some platform. */
11525#ifndef LT_DLLAZY_OR_NOW
11526#  ifdef RTLD_LAZY
11527#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11528#  else
11529#    ifdef DL_LAZY
11530#      define LT_DLLAZY_OR_NOW		DL_LAZY
11531#    else
11532#      ifdef RTLD_NOW
11533#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11534#      else
11535#        ifdef DL_NOW
11536#          define LT_DLLAZY_OR_NOW	DL_NOW
11537#        else
11538#          define LT_DLLAZY_OR_NOW	0
11539#        endif
11540#      endif
11541#    endif
11542#  endif
11543#endif
11544
11545#ifdef __cplusplus
11546extern "C" void exit (int);
11547#endif
11548
11549void fnord() { int i=42;}
11550int main ()
11551{
11552  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553  int status = $lt_dlunknown;
11554
11555  if (self)
11556    {
11557      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11558      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11559      /* dlclose (self); */
11560    }
11561  else
11562    puts (dlerror ());
11563
11564    exit (status);
11565}
11566EOF
11567  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11568  (eval $ac_link) 2>&5
11569  ac_status=$?
11570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11572    (./conftest; exit; ) >&5 2>/dev/null
11573    lt_status=$?
11574    case x$lt_status in
11575      x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11576      x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11577      x$lt_dlunknown|x*)  ;;
11578    esac
11579  else :
11580    # compilation failed
11581
11582  fi
11583fi
11584rm -fr conftest*
11585
11586	  LIBS="$save_LIBS"
11587
11588fi
11589{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11590echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11591  fi
11592fi
11593
11594if test x"$libltdl_cv_need_uscore" = xyes; then
11595
11596cat >>confdefs.h <<\_ACEOF
11597#define NEED_USCORE 1
11598_ACEOF
11599
11600fi
11601
11602
11603{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11604echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11605if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11606  echo $ECHO_N "(cached) $ECHO_C" >&6
11607else
11608  # PORTME does your system automatically load deplibs for dlopen?
11609  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11610  # For now, we just catch OSes we know something about -- in the
11611  # future, we'll try test this programmatically.
11612  libltdl_cv_sys_dlopen_deplibs=unknown
11613  case "$host_os" in
11614  aix3*|aix4.1.*|aix4.2.*)
11615    # Unknown whether this is true for these versions of AIX, but
11616    # we want this `case' here to explicitly catch those versions.
11617    libltdl_cv_sys_dlopen_deplibs=unknown
11618    ;;
11619  aix[45]*)
11620    libltdl_cv_sys_dlopen_deplibs=yes
11621    ;;
11622  darwin*)
11623    # Assuming the user has installed a libdl from somewhere, this is true
11624    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11625    libltdl_cv_sys_dlopen_deplibs=yes
11626    ;;
11627  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11628    # GNU and its variants, using gnu ld.so (Glibc)
11629    libltdl_cv_sys_dlopen_deplibs=yes
11630    ;;
11631  hpux10*|hpux11*)
11632    libltdl_cv_sys_dlopen_deplibs=yes
11633    ;;
11634  interix*)
11635    libltdl_cv_sys_dlopen_deplibs=yes
11636    ;;
11637  irix[12345]*|irix6.[01]*)
11638    # Catch all versions of IRIX before 6.2, and indicate that we don't
11639    # know how it worked for any of those versions.
11640    libltdl_cv_sys_dlopen_deplibs=unknown
11641    ;;
11642  irix*)
11643    # The case above catches anything before 6.2, and it's known that
11644    # at 6.2 and later dlopen does load deplibs.
11645    libltdl_cv_sys_dlopen_deplibs=yes
11646    ;;
11647  netbsd*)
11648    libltdl_cv_sys_dlopen_deplibs=yes
11649    ;;
11650  openbsd*)
11651    libltdl_cv_sys_dlopen_deplibs=yes
11652    ;;
11653  osf[1234]*)
11654    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11655    # it did *not* use an RPATH in a shared library to find objects the
11656    # library depends on, so we explictly say `no'.
11657    libltdl_cv_sys_dlopen_deplibs=no
11658    ;;
11659  osf5.0|osf5.0a|osf5.1)
11660    # dlopen *does* load deplibs and with the right loader patch applied
11661    # it even uses RPATH in a shared library to search for shared objects
11662    # that the library depends on, but there's no easy way to know if that
11663    # patch is installed.  Since this is the case, all we can really
11664    # say is unknown -- it depends on the patch being installed.  If
11665    # it is, this changes to `yes'.  Without it, it would be `no'.
11666    libltdl_cv_sys_dlopen_deplibs=unknown
11667    ;;
11668  osf*)
11669    # the two cases above should catch all versions of osf <= 5.1.  Read
11670    # the comments above for what we know about them.
11671    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11672    # is used to find them so we can finally say `yes'.
11673    libltdl_cv_sys_dlopen_deplibs=yes
11674    ;;
11675  solaris*)
11676    libltdl_cv_sys_dlopen_deplibs=yes
11677    ;;
11678  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11679    libltdl_cv_sys_dlopen_deplibs=yes
11680    ;;
11681  esac
11682
11683fi
11684{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11685echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11686if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11687
11688cat >>confdefs.h <<\_ACEOF
11689#define LTDL_DLOPEN_DEPLIBS 1
11690_ACEOF
11691
11692fi
11693
11694
11695for ac_header in argz.h
11696do
11697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11702  echo $ECHO_N "(cached) $ECHO_C" >&6
11703fi
11704ac_res=`eval echo '${'$as_ac_Header'}'`
11705	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11706echo "${ECHO_T}$ac_res" >&6; }
11707else
11708  # Is the header compilable?
11709{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11711cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h.  */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h.  */
11717$ac_includes_default
11718#include <$ac_header>
11719_ACEOF
11720rm -f conftest.$ac_objext
11721if { (ac_try="$ac_compile"
11722case "(($ac_try" in
11723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724  *) ac_try_echo=$ac_try;;
11725esac
11726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727  (eval "$ac_compile") 2>conftest.er1
11728  ac_status=$?
11729  grep -v '^ *+' conftest.er1 >conftest.err
11730  rm -f conftest.er1
11731  cat conftest.err >&5
11732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733  (exit $ac_status); } &&
11734	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735  { (case "(($ac_try" in
11736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737  *) ac_try_echo=$ac_try;;
11738esac
11739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740  (eval "$ac_try") 2>&5
11741  ac_status=$?
11742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743  (exit $ac_status); }; } &&
11744	 { ac_try='test -s conftest.$ac_objext'
11745  { (case "(($ac_try" in
11746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747  *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750  (eval "$ac_try") 2>&5
11751  ac_status=$?
11752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753  (exit $ac_status); }; }; then
11754  ac_header_compiler=yes
11755else
11756  echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759	ac_header_compiler=no
11760fi
11761
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11764echo "${ECHO_T}$ac_header_compiler" >&6; }
11765
11766# Is the header present?
11767{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11769cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h.  */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h.  */
11775#include <$ac_header>
11776_ACEOF
11777if { (ac_try="$ac_cpp conftest.$ac_ext"
11778case "(($ac_try" in
11779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780  *) ac_try_echo=$ac_try;;
11781esac
11782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11784  ac_status=$?
11785  grep -v '^ *+' conftest.er1 >conftest.err
11786  rm -f conftest.er1
11787  cat conftest.err >&5
11788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789  (exit $ac_status); } >/dev/null; then
11790  if test -s conftest.err; then
11791    ac_cpp_err=$ac_c_preproc_warn_flag
11792    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11793  else
11794    ac_cpp_err=
11795  fi
11796else
11797  ac_cpp_err=yes
11798fi
11799if test -z "$ac_cpp_err"; then
11800  ac_header_preproc=yes
11801else
11802  echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
11805  ac_header_preproc=no
11806fi
11807
11808rm -f conftest.err conftest.$ac_ext
11809{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11810echo "${ECHO_T}$ac_header_preproc" >&6; }
11811
11812# So?  What about this header?
11813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11814  yes:no: )
11815    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11817    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11819    ac_header_preproc=yes
11820    ;;
11821  no:yes:* )
11822    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11824    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11825echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11826    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11828    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11829echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11830    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11832    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11834    ( cat <<\_ASBOX
11835## ----------------------------------- ##
11836## Report this to llvmbugs@cs.uiuc.edu ##
11837## ----------------------------------- ##
11838_ASBOX
11839     ) | sed "s/^/$as_me: WARNING:     /" >&2
11840    ;;
11841esac
11842{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845  echo $ECHO_N "(cached) $ECHO_C" >&6
11846else
11847  eval "$as_ac_Header=\$ac_header_preproc"
11848fi
11849ac_res=`eval echo '${'$as_ac_Header'}'`
11850	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11851echo "${ECHO_T}$ac_res" >&6; }
11852
11853fi
11854if test `eval echo '${'$as_ac_Header'}'` = yes; then
11855  cat >>confdefs.h <<_ACEOF
11856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11857_ACEOF
11858
11859fi
11860
11861done
11862
11863
11864{ echo "$as_me:$LINENO: checking for error_t" >&5
11865echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11866if test "${ac_cv_type_error_t+set}" = set; then
11867  echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869  cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h.  */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h.  */
11875#if HAVE_ARGZ_H
11876#  include <argz.h>
11877#endif
11878
11879typedef error_t ac__type_new_;
11880int
11881main ()
11882{
11883if ((ac__type_new_ *) 0)
11884  return 0;
11885if (sizeof (ac__type_new_))
11886  return 0;
11887  ;
11888  return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext
11892if { (ac_try="$ac_compile"
11893case "(($ac_try" in
11894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895  *) ac_try_echo=$ac_try;;
11896esac
11897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898  (eval "$ac_compile") 2>conftest.er1
11899  ac_status=$?
11900  grep -v '^ *+' conftest.er1 >conftest.err
11901  rm -f conftest.er1
11902  cat conftest.err >&5
11903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904  (exit $ac_status); } &&
11905	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906  { (case "(($ac_try" in
11907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908  *) ac_try_echo=$ac_try;;
11909esac
11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911  (eval "$ac_try") 2>&5
11912  ac_status=$?
11913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914  (exit $ac_status); }; } &&
11915	 { ac_try='test -s conftest.$ac_objext'
11916  { (case "(($ac_try" in
11917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918  *) ac_try_echo=$ac_try;;
11919esac
11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921  (eval "$ac_try") 2>&5
11922  ac_status=$?
11923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924  (exit $ac_status); }; }; then
11925  ac_cv_type_error_t=yes
11926else
11927  echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930	ac_cv_type_error_t=no
11931fi
11932
11933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934fi
11935{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11936echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11937if test $ac_cv_type_error_t = yes; then
11938
11939cat >>confdefs.h <<_ACEOF
11940#define HAVE_ERROR_T 1
11941_ACEOF
11942
11943
11944else
11945
11946cat >>confdefs.h <<\_ACEOF
11947#define error_t int
11948_ACEOF
11949
11950fi
11951
11952
11953
11954
11955
11956
11957
11958for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11959do
11960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964  echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966  cat >conftest.$ac_ext <<_ACEOF
11967/* confdefs.h.  */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h.  */
11972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11974#define $ac_func innocuous_$ac_func
11975
11976/* System header to define __stub macros and hopefully few prototypes,
11977    which can conflict with char $ac_func (); below.
11978    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979    <limits.h> exists even on freestanding compilers.  */
11980
11981#ifdef __STDC__
11982# include <limits.h>
11983#else
11984# include <assert.h>
11985#endif
11986
11987#undef $ac_func
11988
11989/* Override any GCC internal prototype to avoid an error.
11990   Use char because int might match the return type of a GCC
11991   builtin and then its argument prototype would still apply.  */
11992#ifdef __cplusplus
11993extern "C"
11994#endif
11995char $ac_func ();
11996/* The GNU C library defines this for functions which it implements
11997    to always fail with ENOSYS.  Some functions are actually named
11998    something starting with __ and the normal name is an alias.  */
11999#if defined __stub_$ac_func || defined __stub___$ac_func
12000choke me
12001#endif
12002
12003int
12004main ()
12005{
12006return $ac_func ();
12007  ;
12008  return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext conftest$ac_exeext
12012if { (ac_try="$ac_link"
12013case "(($ac_try" in
12014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015  *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018  (eval "$ac_link") 2>conftest.er1
12019  ac_status=$?
12020  grep -v '^ *+' conftest.er1 >conftest.err
12021  rm -f conftest.er1
12022  cat conftest.err >&5
12023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024  (exit $ac_status); } &&
12025	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026  { (case "(($ac_try" in
12027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028  *) ac_try_echo=$ac_try;;
12029esac
12030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031  (eval "$ac_try") 2>&5
12032  ac_status=$?
12033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034  (exit $ac_status); }; } &&
12035	 { ac_try='test -s conftest$ac_exeext'
12036  { (case "(($ac_try" in
12037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038  *) ac_try_echo=$ac_try;;
12039esac
12040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041  (eval "$ac_try") 2>&5
12042  ac_status=$?
12043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044  (exit $ac_status); }; }; then
12045  eval "$as_ac_var=yes"
12046else
12047  echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
12050	eval "$as_ac_var=no"
12051fi
12052
12053rm -f core conftest.err conftest.$ac_objext \
12054      conftest$ac_exeext conftest.$ac_ext
12055fi
12056ac_res=`eval echo '${'$as_ac_var'}'`
12057	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12058echo "${ECHO_T}$ac_res" >&6; }
12059if test `eval echo '${'$as_ac_var'}'` = yes; then
12060  cat >>confdefs.h <<_ACEOF
12061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12062_ACEOF
12063
12064fi
12065done
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12095		  stdio.h unistd.h
12096do
12097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12102  echo $ECHO_N "(cached) $ECHO_C" >&6
12103fi
12104ac_res=`eval echo '${'$as_ac_Header'}'`
12105	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12106echo "${ECHO_T}$ac_res" >&6; }
12107else
12108  # Is the header compilable?
12109{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12111cat >conftest.$ac_ext <<_ACEOF
12112/* confdefs.h.  */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h.  */
12117$ac_includes_default
12118#include <$ac_header>
12119_ACEOF
12120rm -f conftest.$ac_objext
12121if { (ac_try="$ac_compile"
12122case "(($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_compile") 2>conftest.er1
12128  ac_status=$?
12129  grep -v '^ *+' conftest.er1 >conftest.err
12130  rm -f conftest.er1
12131  cat conftest.err >&5
12132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133  (exit $ac_status); } &&
12134	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12135  { (case "(($ac_try" in
12136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137  *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140  (eval "$ac_try") 2>&5
12141  ac_status=$?
12142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143  (exit $ac_status); }; } &&
12144	 { ac_try='test -s conftest.$ac_objext'
12145  { (case "(($ac_try" in
12146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147  *) ac_try_echo=$ac_try;;
12148esac
12149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150  (eval "$ac_try") 2>&5
12151  ac_status=$?
12152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153  (exit $ac_status); }; }; then
12154  ac_header_compiler=yes
12155else
12156  echo "$as_me: failed program was:" >&5
12157sed 's/^/| /' conftest.$ac_ext >&5
12158
12159	ac_header_compiler=no
12160fi
12161
12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164echo "${ECHO_T}$ac_header_compiler" >&6; }
12165
12166# Is the header present?
12167{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12169cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h.  */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h.  */
12175#include <$ac_header>
12176_ACEOF
12177if { (ac_try="$ac_cpp conftest.$ac_ext"
12178case "(($ac_try" in
12179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180  *) ac_try_echo=$ac_try;;
12181esac
12182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12184  ac_status=$?
12185  grep -v '^ *+' conftest.er1 >conftest.err
12186  rm -f conftest.er1
12187  cat conftest.err >&5
12188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189  (exit $ac_status); } >/dev/null; then
12190  if test -s conftest.err; then
12191    ac_cpp_err=$ac_c_preproc_warn_flag
12192    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12193  else
12194    ac_cpp_err=
12195  fi
12196else
12197  ac_cpp_err=yes
12198fi
12199if test -z "$ac_cpp_err"; then
12200  ac_header_preproc=yes
12201else
12202  echo "$as_me: failed program was:" >&5
12203sed 's/^/| /' conftest.$ac_ext >&5
12204
12205  ac_header_preproc=no
12206fi
12207
12208rm -f conftest.err conftest.$ac_ext
12209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12210echo "${ECHO_T}$ac_header_preproc" >&6; }
12211
12212# So?  What about this header?
12213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214  yes:no: )
12215    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12219    ac_header_preproc=yes
12220    ;;
12221  no:yes:* )
12222    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12224    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12225echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12226    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12228    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12229echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12232    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12234    ( cat <<\_ASBOX
12235## ----------------------------------- ##
12236## Report this to llvmbugs@cs.uiuc.edu ##
12237## ----------------------------------- ##
12238_ASBOX
12239     ) | sed "s/^/$as_me: WARNING:     /" >&2
12240    ;;
12241esac
12242{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12245  echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247  eval "$as_ac_Header=\$ac_header_preproc"
12248fi
12249ac_res=`eval echo '${'$as_ac_Header'}'`
12250	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12251echo "${ECHO_T}$ac_res" >&6; }
12252
12253fi
12254if test `eval echo '${'$as_ac_Header'}'` = yes; then
12255  cat >>confdefs.h <<_ACEOF
12256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12257_ACEOF
12258
12259fi
12260
12261done
12262
12263
12264
12265
12266
12267for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12268do
12269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274  echo $ECHO_N "(cached) $ECHO_C" >&6
12275fi
12276ac_res=`eval echo '${'$as_ac_Header'}'`
12277	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12278echo "${ECHO_T}$ac_res" >&6; }
12279else
12280  # Is the header compilable?
12281{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12283cat >conftest.$ac_ext <<_ACEOF
12284/* confdefs.h.  */
12285_ACEOF
12286cat confdefs.h >>conftest.$ac_ext
12287cat >>conftest.$ac_ext <<_ACEOF
12288/* end confdefs.h.  */
12289$ac_includes_default
12290#include <$ac_header>
12291_ACEOF
12292rm -f conftest.$ac_objext
12293if { (ac_try="$ac_compile"
12294case "(($ac_try" in
12295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296  *) ac_try_echo=$ac_try;;
12297esac
12298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299  (eval "$ac_compile") 2>conftest.er1
12300  ac_status=$?
12301  grep -v '^ *+' conftest.er1 >conftest.err
12302  rm -f conftest.er1
12303  cat conftest.err >&5
12304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305  (exit $ac_status); } &&
12306	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12307  { (case "(($ac_try" in
12308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309  *) ac_try_echo=$ac_try;;
12310esac
12311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312  (eval "$ac_try") 2>&5
12313  ac_status=$?
12314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315  (exit $ac_status); }; } &&
12316	 { ac_try='test -s conftest.$ac_objext'
12317  { (case "(($ac_try" in
12318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319  *) ac_try_echo=$ac_try;;
12320esac
12321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322  (eval "$ac_try") 2>&5
12323  ac_status=$?
12324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325  (exit $ac_status); }; }; then
12326  ac_header_compiler=yes
12327else
12328  echo "$as_me: failed program was:" >&5
12329sed 's/^/| /' conftest.$ac_ext >&5
12330
12331	ac_header_compiler=no
12332fi
12333
12334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12336echo "${ECHO_T}$ac_header_compiler" >&6; }
12337
12338# Is the header present?
12339{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12341cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h.  */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h.  */
12347#include <$ac_header>
12348_ACEOF
12349if { (ac_try="$ac_cpp conftest.$ac_ext"
12350case "(($ac_try" in
12351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352  *) ac_try_echo=$ac_try;;
12353esac
12354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12356  ac_status=$?
12357  grep -v '^ *+' conftest.er1 >conftest.err
12358  rm -f conftest.er1
12359  cat conftest.err >&5
12360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361  (exit $ac_status); } >/dev/null; then
12362  if test -s conftest.err; then
12363    ac_cpp_err=$ac_c_preproc_warn_flag
12364    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12365  else
12366    ac_cpp_err=
12367  fi
12368else
12369  ac_cpp_err=yes
12370fi
12371if test -z "$ac_cpp_err"; then
12372  ac_header_preproc=yes
12373else
12374  echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
12377  ac_header_preproc=no
12378fi
12379
12380rm -f conftest.err conftest.$ac_ext
12381{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12382echo "${ECHO_T}$ac_header_preproc" >&6; }
12383
12384# So?  What about this header?
12385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12386  yes:no: )
12387    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12389    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12391    ac_header_preproc=yes
12392    ;;
12393  no:yes:* )
12394    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12396    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12397echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12398    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12400    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12401echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12402    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12404    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12406    ( cat <<\_ASBOX
12407## ----------------------------------- ##
12408## Report this to llvmbugs@cs.uiuc.edu ##
12409## ----------------------------------- ##
12410_ASBOX
12411     ) | sed "s/^/$as_me: WARNING:     /" >&2
12412    ;;
12413esac
12414{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12417  echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419  eval "$as_ac_Header=\$ac_header_preproc"
12420fi
12421ac_res=`eval echo '${'$as_ac_Header'}'`
12422	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12423echo "${ECHO_T}$ac_res" >&6; }
12424
12425fi
12426if test `eval echo '${'$as_ac_Header'}'` = yes; then
12427  cat >>confdefs.h <<_ACEOF
12428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12429_ACEOF
12430
12431fi
12432
12433done
12434
12435
12436
12437for ac_header in string.h strings.h
12438do
12439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12444  echo $ECHO_N "(cached) $ECHO_C" >&6
12445fi
12446ac_res=`eval echo '${'$as_ac_Header'}'`
12447	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12448echo "${ECHO_T}$ac_res" >&6; }
12449else
12450  # Is the header compilable?
12451{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12453cat >conftest.$ac_ext <<_ACEOF
12454/* confdefs.h.  */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
12458/* end confdefs.h.  */
12459$ac_includes_default
12460#include <$ac_header>
12461_ACEOF
12462rm -f conftest.$ac_objext
12463if { (ac_try="$ac_compile"
12464case "(($ac_try" in
12465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466  *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469  (eval "$ac_compile") 2>conftest.er1
12470  ac_status=$?
12471  grep -v '^ *+' conftest.er1 >conftest.err
12472  rm -f conftest.er1
12473  cat conftest.err >&5
12474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475  (exit $ac_status); } &&
12476	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477  { (case "(($ac_try" in
12478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479  *) ac_try_echo=$ac_try;;
12480esac
12481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482  (eval "$ac_try") 2>&5
12483  ac_status=$?
12484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485  (exit $ac_status); }; } &&
12486	 { ac_try='test -s conftest.$ac_objext'
12487  { (case "(($ac_try" in
12488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489  *) ac_try_echo=$ac_try;;
12490esac
12491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492  (eval "$ac_try") 2>&5
12493  ac_status=$?
12494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495  (exit $ac_status); }; }; then
12496  ac_header_compiler=yes
12497else
12498  echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501	ac_header_compiler=no
12502fi
12503
12504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12506echo "${ECHO_T}$ac_header_compiler" >&6; }
12507
12508# Is the header present?
12509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12511cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h.  */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h.  */
12517#include <$ac_header>
12518_ACEOF
12519if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
12532  if test -s conftest.err; then
12533    ac_cpp_err=$ac_c_preproc_warn_flag
12534    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12535  else
12536    ac_cpp_err=
12537  fi
12538else
12539  ac_cpp_err=yes
12540fi
12541if test -z "$ac_cpp_err"; then
12542  ac_header_preproc=yes
12543else
12544  echo "$as_me: failed program was:" >&5
12545sed 's/^/| /' conftest.$ac_ext >&5
12546
12547  ac_header_preproc=no
12548fi
12549
12550rm -f conftest.err conftest.$ac_ext
12551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12552echo "${ECHO_T}$ac_header_preproc" >&6; }
12553
12554# So?  What about this header?
12555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12556  yes:no: )
12557    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12559    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12561    ac_header_preproc=yes
12562    ;;
12563  no:yes:* )
12564    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12566    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12567echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12568    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12570    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12571echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12572    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12574    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12576    ( cat <<\_ASBOX
12577## ----------------------------------- ##
12578## Report this to llvmbugs@cs.uiuc.edu ##
12579## ----------------------------------- ##
12580_ASBOX
12581     ) | sed "s/^/$as_me: WARNING:     /" >&2
12582    ;;
12583esac
12584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12587  echo $ECHO_N "(cached) $ECHO_C" >&6
12588else
12589  eval "$as_ac_Header=\$ac_header_preproc"
12590fi
12591ac_res=`eval echo '${'$as_ac_Header'}'`
12592	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12593echo "${ECHO_T}$ac_res" >&6; }
12594
12595fi
12596if test `eval echo '${'$as_ac_Header'}'` = yes; then
12597  cat >>confdefs.h <<_ACEOF
12598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12599_ACEOF
12600 break
12601fi
12602
12603done
12604
12605
12606
12607
12608for ac_func in strchr index
12609do
12610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12613if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12614  echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
12616  cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h.  */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h.  */
12622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12623   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12624#define $ac_func innocuous_$ac_func
12625
12626/* System header to define __stub macros and hopefully few prototypes,
12627    which can conflict with char $ac_func (); below.
12628    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12629    <limits.h> exists even on freestanding compilers.  */
12630
12631#ifdef __STDC__
12632# include <limits.h>
12633#else
12634# include <assert.h>
12635#endif
12636
12637#undef $ac_func
12638
12639/* Override any GCC internal prototype to avoid an error.
12640   Use char because int might match the return type of a GCC
12641   builtin and then its argument prototype would still apply.  */
12642#ifdef __cplusplus
12643extern "C"
12644#endif
12645char $ac_func ();
12646/* The GNU C library defines this for functions which it implements
12647    to always fail with ENOSYS.  Some functions are actually named
12648    something starting with __ and the normal name is an alias.  */
12649#if defined __stub_$ac_func || defined __stub___$ac_func
12650choke me
12651#endif
12652
12653int
12654main ()
12655{
12656return $ac_func ();
12657  ;
12658  return 0;
12659}
12660_ACEOF
12661rm -f conftest.$ac_objext conftest$ac_exeext
12662if { (ac_try="$ac_link"
12663case "(($ac_try" in
12664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665  *) ac_try_echo=$ac_try;;
12666esac
12667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668  (eval "$ac_link") 2>conftest.er1
12669  ac_status=$?
12670  grep -v '^ *+' conftest.er1 >conftest.err
12671  rm -f conftest.er1
12672  cat conftest.err >&5
12673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674  (exit $ac_status); } &&
12675	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676  { (case "(($ac_try" in
12677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678  *) ac_try_echo=$ac_try;;
12679esac
12680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681  (eval "$ac_try") 2>&5
12682  ac_status=$?
12683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684  (exit $ac_status); }; } &&
12685	 { ac_try='test -s conftest$ac_exeext'
12686  { (case "(($ac_try" in
12687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688  *) ac_try_echo=$ac_try;;
12689esac
12690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691  (eval "$ac_try") 2>&5
12692  ac_status=$?
12693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694  (exit $ac_status); }; }; then
12695  eval "$as_ac_var=yes"
12696else
12697  echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
12700	eval "$as_ac_var=no"
12701fi
12702
12703rm -f core conftest.err conftest.$ac_objext \
12704      conftest$ac_exeext conftest.$ac_ext
12705fi
12706ac_res=`eval echo '${'$as_ac_var'}'`
12707	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12708echo "${ECHO_T}$ac_res" >&6; }
12709if test `eval echo '${'$as_ac_var'}'` = yes; then
12710  cat >>confdefs.h <<_ACEOF
12711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12712_ACEOF
12713 break
12714fi
12715done
12716
12717
12718
12719for ac_func in strrchr rindex
12720do
12721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12725  echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727  cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h.  */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h.  */
12733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12734   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12735#define $ac_func innocuous_$ac_func
12736
12737/* System header to define __stub macros and hopefully few prototypes,
12738    which can conflict with char $ac_func (); below.
12739    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740    <limits.h> exists even on freestanding compilers.  */
12741
12742#ifdef __STDC__
12743# include <limits.h>
12744#else
12745# include <assert.h>
12746#endif
12747
12748#undef $ac_func
12749
12750/* Override any GCC internal prototype to avoid an error.
12751   Use char because int might match the return type of a GCC
12752   builtin and then its argument prototype would still apply.  */
12753#ifdef __cplusplus
12754extern "C"
12755#endif
12756char $ac_func ();
12757/* The GNU C library defines this for functions which it implements
12758    to always fail with ENOSYS.  Some functions are actually named
12759    something starting with __ and the normal name is an alias.  */
12760#if defined __stub_$ac_func || defined __stub___$ac_func
12761choke me
12762#endif
12763
12764int
12765main ()
12766{
12767return $ac_func ();
12768  ;
12769  return 0;
12770}
12771_ACEOF
12772rm -f conftest.$ac_objext conftest$ac_exeext
12773if { (ac_try="$ac_link"
12774case "(($ac_try" in
12775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776  *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779  (eval "$ac_link") 2>conftest.er1
12780  ac_status=$?
12781  grep -v '^ *+' conftest.er1 >conftest.err
12782  rm -f conftest.er1
12783  cat conftest.err >&5
12784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785  (exit $ac_status); } &&
12786	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787  { (case "(($ac_try" in
12788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789  *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792  (eval "$ac_try") 2>&5
12793  ac_status=$?
12794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795  (exit $ac_status); }; } &&
12796	 { ac_try='test -s conftest$ac_exeext'
12797  { (case "(($ac_try" in
12798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799  *) ac_try_echo=$ac_try;;
12800esac
12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802  (eval "$ac_try") 2>&5
12803  ac_status=$?
12804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805  (exit $ac_status); }; }; then
12806  eval "$as_ac_var=yes"
12807else
12808  echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811	eval "$as_ac_var=no"
12812fi
12813
12814rm -f core conftest.err conftest.$ac_objext \
12815      conftest$ac_exeext conftest.$ac_ext
12816fi
12817ac_res=`eval echo '${'$as_ac_var'}'`
12818	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12819echo "${ECHO_T}$ac_res" >&6; }
12820if test `eval echo '${'$as_ac_var'}'` = yes; then
12821  cat >>confdefs.h <<_ACEOF
12822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12823_ACEOF
12824 break
12825fi
12826done
12827
12828
12829
12830for ac_func in memcpy bcopy
12831do
12832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12836  echo $ECHO_N "(cached) $ECHO_C" >&6
12837else
12838  cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h.  */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h.  */
12844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12846#define $ac_func innocuous_$ac_func
12847
12848/* System header to define __stub macros and hopefully few prototypes,
12849    which can conflict with char $ac_func (); below.
12850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12851    <limits.h> exists even on freestanding compilers.  */
12852
12853#ifdef __STDC__
12854# include <limits.h>
12855#else
12856# include <assert.h>
12857#endif
12858
12859#undef $ac_func
12860
12861/* Override any GCC internal prototype to avoid an error.
12862   Use char because int might match the return type of a GCC
12863   builtin and then its argument prototype would still apply.  */
12864#ifdef __cplusplus
12865extern "C"
12866#endif
12867char $ac_func ();
12868/* The GNU C library defines this for functions which it implements
12869    to always fail with ENOSYS.  Some functions are actually named
12870    something starting with __ and the normal name is an alias.  */
12871#if defined __stub_$ac_func || defined __stub___$ac_func
12872choke me
12873#endif
12874
12875int
12876main ()
12877{
12878return $ac_func ();
12879  ;
12880  return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext conftest$ac_exeext
12884if { (ac_try="$ac_link"
12885case "(($ac_try" in
12886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887  *) ac_try_echo=$ac_try;;
12888esac
12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890  (eval "$ac_link") 2>conftest.er1
12891  ac_status=$?
12892  grep -v '^ *+' conftest.er1 >conftest.err
12893  rm -f conftest.er1
12894  cat conftest.err >&5
12895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896  (exit $ac_status); } &&
12897	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898  { (case "(($ac_try" in
12899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900  *) ac_try_echo=$ac_try;;
12901esac
12902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903  (eval "$ac_try") 2>&5
12904  ac_status=$?
12905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906  (exit $ac_status); }; } &&
12907	 { ac_try='test -s conftest$ac_exeext'
12908  { (case "(($ac_try" in
12909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910  *) ac_try_echo=$ac_try;;
12911esac
12912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913  (eval "$ac_try") 2>&5
12914  ac_status=$?
12915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916  (exit $ac_status); }; }; then
12917  eval "$as_ac_var=yes"
12918else
12919  echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922	eval "$as_ac_var=no"
12923fi
12924
12925rm -f core conftest.err conftest.$ac_objext \
12926      conftest$ac_exeext conftest.$ac_ext
12927fi
12928ac_res=`eval echo '${'$as_ac_var'}'`
12929	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12930echo "${ECHO_T}$ac_res" >&6; }
12931if test `eval echo '${'$as_ac_var'}'` = yes; then
12932  cat >>confdefs.h <<_ACEOF
12933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934_ACEOF
12935 break
12936fi
12937done
12938
12939
12940
12941for ac_func in memmove strcmp
12942do
12943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947  echo $ECHO_N "(cached) $ECHO_C" >&6
12948else
12949  cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h.  */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h.  */
12955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12957#define $ac_func innocuous_$ac_func
12958
12959/* System header to define __stub macros and hopefully few prototypes,
12960    which can conflict with char $ac_func (); below.
12961    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962    <limits.h> exists even on freestanding compilers.  */
12963
12964#ifdef __STDC__
12965# include <limits.h>
12966#else
12967# include <assert.h>
12968#endif
12969
12970#undef $ac_func
12971
12972/* Override any GCC internal prototype to avoid an error.
12973   Use char because int might match the return type of a GCC
12974   builtin and then its argument prototype would still apply.  */
12975#ifdef __cplusplus
12976extern "C"
12977#endif
12978char $ac_func ();
12979/* The GNU C library defines this for functions which it implements
12980    to always fail with ENOSYS.  Some functions are actually named
12981    something starting with __ and the normal name is an alias.  */
12982#if defined __stub_$ac_func || defined __stub___$ac_func
12983choke me
12984#endif
12985
12986int
12987main ()
12988{
12989return $ac_func ();
12990  ;
12991  return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext conftest$ac_exeext
12995if { (ac_try="$ac_link"
12996case "(($ac_try" in
12997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998  *) ac_try_echo=$ac_try;;
12999esac
13000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001  (eval "$ac_link") 2>conftest.er1
13002  ac_status=$?
13003  grep -v '^ *+' conftest.er1 >conftest.err
13004  rm -f conftest.er1
13005  cat conftest.err >&5
13006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007  (exit $ac_status); } &&
13008	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009  { (case "(($ac_try" in
13010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011  *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014  (eval "$ac_try") 2>&5
13015  ac_status=$?
13016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017  (exit $ac_status); }; } &&
13018	 { ac_try='test -s conftest$ac_exeext'
13019  { (case "(($ac_try" in
13020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021  *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024  (eval "$ac_try") 2>&5
13025  ac_status=$?
13026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027  (exit $ac_status); }; }; then
13028  eval "$as_ac_var=yes"
13029else
13030  echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
13033	eval "$as_ac_var=no"
13034fi
13035
13036rm -f core conftest.err conftest.$ac_objext \
13037      conftest$ac_exeext conftest.$ac_ext
13038fi
13039ac_res=`eval echo '${'$as_ac_var'}'`
13040	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13041echo "${ECHO_T}$ac_res" >&6; }
13042if test `eval echo '${'$as_ac_var'}'` = yes; then
13043  cat >>confdefs.h <<_ACEOF
13044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13045_ACEOF
13046
13047fi
13048done
13049
13050
13051
13052
13053for ac_func in closedir opendir readdir
13054do
13055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13056{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13058if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13059  echo $ECHO_N "(cached) $ECHO_C" >&6
13060else
13061  cat >conftest.$ac_ext <<_ACEOF
13062/* confdefs.h.  */
13063_ACEOF
13064cat confdefs.h >>conftest.$ac_ext
13065cat >>conftest.$ac_ext <<_ACEOF
13066/* end confdefs.h.  */
13067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13068   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13069#define $ac_func innocuous_$ac_func
13070
13071/* System header to define __stub macros and hopefully few prototypes,
13072    which can conflict with char $ac_func (); below.
13073    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13074    <limits.h> exists even on freestanding compilers.  */
13075
13076#ifdef __STDC__
13077# include <limits.h>
13078#else
13079# include <assert.h>
13080#endif
13081
13082#undef $ac_func
13083
13084/* Override any GCC internal prototype to avoid an error.
13085   Use char because int might match the return type of a GCC
13086   builtin and then its argument prototype would still apply.  */
13087#ifdef __cplusplus
13088extern "C"
13089#endif
13090char $ac_func ();
13091/* The GNU C library defines this for functions which it implements
13092    to always fail with ENOSYS.  Some functions are actually named
13093    something starting with __ and the normal name is an alias.  */
13094#if defined __stub_$ac_func || defined __stub___$ac_func
13095choke me
13096#endif
13097
13098int
13099main ()
13100{
13101return $ac_func ();
13102  ;
13103  return 0;
13104}
13105_ACEOF
13106rm -f conftest.$ac_objext conftest$ac_exeext
13107if { (ac_try="$ac_link"
13108case "(($ac_try" in
13109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110  *) ac_try_echo=$ac_try;;
13111esac
13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113  (eval "$ac_link") 2>conftest.er1
13114  ac_status=$?
13115  grep -v '^ *+' conftest.er1 >conftest.err
13116  rm -f conftest.er1
13117  cat conftest.err >&5
13118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119  (exit $ac_status); } &&
13120	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13121  { (case "(($ac_try" in
13122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123  *) ac_try_echo=$ac_try;;
13124esac
13125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126  (eval "$ac_try") 2>&5
13127  ac_status=$?
13128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129  (exit $ac_status); }; } &&
13130	 { ac_try='test -s conftest$ac_exeext'
13131  { (case "(($ac_try" in
13132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133  *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136  (eval "$ac_try") 2>&5
13137  ac_status=$?
13138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139  (exit $ac_status); }; }; then
13140  eval "$as_ac_var=yes"
13141else
13142  echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145	eval "$as_ac_var=no"
13146fi
13147
13148rm -f core conftest.err conftest.$ac_objext \
13149      conftest$ac_exeext conftest.$ac_ext
13150fi
13151ac_res=`eval echo '${'$as_ac_var'}'`
13152	       { echo "$as_me:$LINENO: result: $ac_res" >&5
13153echo "${ECHO_T}$ac_res" >&6; }
13154if test `eval echo '${'$as_ac_var'}'` = yes; then
13155  cat >>confdefs.h <<_ACEOF
13156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13157_ACEOF
13158
13159fi
13160done
13161
13162
13163
13164if test "$WITH_LLVMGCCDIR" = "default" ; then
13165  LLVMGCC="llvm-gcc${EXEEXT}"
13166  LLVMGXX="llvm-g++${EXEEXT}"
13167  LLVMGCCCOMMAND="$LLVMGCC"
13168  LLVMGXXCOMMAND="$LLVMGXX"
13169  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13170
13171  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13172
13173  # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13174set dummy $LLVMGCC; ac_word=$2
13175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13177if test "${ac_cv_path_LLVMGCC+set}" = set; then
13178  echo $ECHO_N "(cached) $ECHO_C" >&6
13179else
13180  case $LLVMGCC in
13181  [\\/]* | ?:[\\/]*)
13182  ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13183  ;;
13184  *)
13185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186for as_dir in $PATH
13187do
13188  IFS=$as_save_IFS
13189  test -z "$as_dir" && as_dir=.
13190  for ac_exec_ext in '' $ac_executable_extensions; do
13191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13192    ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13194    break 2
13195  fi
13196done
13197done
13198IFS=$as_save_IFS
13199
13200  ;;
13201esac
13202fi
13203LLVMGCC=$ac_cv_path_LLVMGCC
13204if test -n "$LLVMGCC"; then
13205  { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13206echo "${ECHO_T}$LLVMGCC" >&6; }
13207else
13208  { echo "$as_me:$LINENO: result: no" >&5
13209echo "${ECHO_T}no" >&6; }
13210fi
13211
13212
13213  # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13214set dummy $LLVMGXX; ac_word=$2
13215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13217if test "${ac_cv_path_LLVMGXX+set}" = set; then
13218  echo $ECHO_N "(cached) $ECHO_C" >&6
13219else
13220  case $LLVMGXX in
13221  [\\/]* | ?:[\\/]*)
13222  ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13223  ;;
13224  *)
13225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226for as_dir in $PATH
13227do
13228  IFS=$as_save_IFS
13229  test -z "$as_dir" && as_dir=.
13230  for ac_exec_ext in '' $ac_executable_extensions; do
13231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13232    ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13234    break 2
13235  fi
13236done
13237done
13238IFS=$as_save_IFS
13239
13240  ;;
13241esac
13242fi
13243LLVMGXX=$ac_cv_path_LLVMGXX
13244if test -n "$LLVMGXX"; then
13245  { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13246echo "${ECHO_T}$LLVMGXX" >&6; }
13247else
13248  { echo "$as_me:$LINENO: result: no" >&5
13249echo "${ECHO_T}no" >&6; }
13250fi
13251
13252
13253else
13254  if test -z "$LLVMGCC"; then
13255    LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13256    LLVMGCCCOMMAND="$LLVMGCC"
13257  fi
13258  if test -z "$LLVMGXX"; then
13259    LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13260    LLVMGXXCOMMAND="$LLVMGXX"
13261  fi
13262
13263  LLVMGCC=$LLVMGCC
13264
13265  LLVMGXX=$LLVMGXX
13266
13267  LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13268
13269  LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13270
13271fi
13272
13273
13274# Check whether --with-llvmcc was given.
13275if test "${with_llvmcc+set}" = set; then
13276  withval=$with_llvmcc;
13277else
13278  with_llvmcc=check
13279fi
13280
13281{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13282echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13283if test "$with_llvmcc" != "check"; then
13284   if (test "$with_llvmcc" != "llvm-gcc" &&
13285       test "$with_llvmcc" != "clang" &&
13286       test "$with_llvmcc" != "none"); then
13287      { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13288echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13289   { (exit 1); exit 1; }; }
13290   fi
13291   WITH_LLVMCC="$with_llvmcc"
13292elif test -n "$LLVMGCC"; then
13293   WITH_LLVMCC=llvm-gcc
13294elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13295   WITH_LLVMCC=clang
13296else
13297   WITH_LLVMCC=none
13298fi
13299{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13300echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13301LLVMCC_OPTION=$WITH_LLVMCC
13302
13303
13304{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13305echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13306
13307ICC=no
13308IXX=no
13309case $CC in
13310  icc*|icpc*)
13311    ICC=yes
13312    IXX=yes
13313    ;;
13314   *)
13315    ;;
13316esac
13317
13318if test "$GCC" != "yes" && test "$ICC" != "yes"
13319then
13320  { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13321echo "$as_me: error: gcc|icc required but not found" >&2;}
13322   { (exit 1); exit 1; }; }
13323fi
13324
13325if test "$GXX" != "yes" && test "$IXX" != "yes"
13326then
13327  { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13328echo "$as_me: error: g++|icc required but not found" >&2;}
13329   { (exit 1); exit 1; }; }
13330fi
13331
13332if test "$GCC" = "yes"
13333then
13334  cat >conftest.$ac_ext <<_ACEOF
13335#if !defined(__GNUC__) || __GNUC__ < 3
13336#error Unsupported GCC version
13337#endif
13338
13339_ACEOF
13340rm -f conftest.$ac_objext
13341if { (ac_try="$ac_compile"
13342case "(($ac_try" in
13343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344  *) ac_try_echo=$ac_try;;
13345esac
13346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347  (eval "$ac_compile") 2>conftest.er1
13348  ac_status=$?
13349  grep -v '^ *+' conftest.er1 >conftest.err
13350  rm -f conftest.er1
13351  cat conftest.err >&5
13352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353  (exit $ac_status); } &&
13354	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355  { (case "(($ac_try" in
13356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357  *) ac_try_echo=$ac_try;;
13358esac
13359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360  (eval "$ac_try") 2>&5
13361  ac_status=$?
13362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363  (exit $ac_status); }; } &&
13364	 { ac_try='test -s conftest.$ac_objext'
13365  { (case "(($ac_try" in
13366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367  *) ac_try_echo=$ac_try;;
13368esac
13369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370  (eval "$ac_try") 2>&5
13371  ac_status=$?
13372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373  (exit $ac_status); }; }; then
13374  :
13375else
13376  echo "$as_me: failed program was:" >&5
13377sed 's/^/| /' conftest.$ac_ext >&5
13378
13379	{ { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13380echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13381   { (exit 1); exit 1; }; }
13382fi
13383
13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385fi
13386
13387if test -z "$llvm_cv_gnu_make_command"
13388then
13389  { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13390echo "$as_me: error: GNU Make required but not found" >&2;}
13391   { (exit 1); exit 1; }; }
13392fi
13393
13394{ echo "$as_me:$LINENO: result: ok" >&5
13395echo "${ECHO_T}ok" >&6; }
13396
13397{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13398echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13399NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13400
13401NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13402
13403{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13404echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13405
13406
13407
13408{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13409echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13410if test "${ac_cv_lib_m_sin+set}" = set; then
13411  echo $ECHO_N "(cached) $ECHO_C" >&6
13412else
13413  ac_check_lib_save_LIBS=$LIBS
13414LIBS="-lm  $LIBS"
13415cat >conftest.$ac_ext <<_ACEOF
13416/* confdefs.h.  */
13417_ACEOF
13418cat confdefs.h >>conftest.$ac_ext
13419cat >>conftest.$ac_ext <<_ACEOF
13420/* end confdefs.h.  */
13421
13422/* Override any GCC internal prototype to avoid an error.
13423   Use char because int might match the return type of a GCC
13424   builtin and then its argument prototype would still apply.  */
13425#ifdef __cplusplus
13426extern "C"
13427#endif
13428char sin ();
13429int
13430main ()
13431{
13432return sin ();
13433  ;
13434  return 0;
13435}
13436_ACEOF
13437rm -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_lib_m_sin=yes
13472else
13473  echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476	ac_cv_lib_m_sin=no
13477fi
13478
13479rm -f core conftest.err conftest.$ac_objext \
13480      conftest$ac_exeext conftest.$ac_ext
13481LIBS=$ac_check_lib_save_LIBS
13482fi
13483{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13484echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13485if test $ac_cv_lib_m_sin = yes; then
13486  cat >>confdefs.h <<_ACEOF
13487#define HAVE_LIBM 1
13488_ACEOF
13489
13490  LIBS="-lm $LIBS"
13491
13492fi
13493
13494if test "$llvm_cv_os_type" = "MingW" ; then
13495
13496{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13497echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13498if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13499  echo $ECHO_N "(cached) $ECHO_C" >&6
13500else
13501  ac_check_lib_save_LIBS=$LIBS
13502LIBS="-limagehlp  $LIBS"
13503cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h.  */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h.  */
13509
13510
13511int
13512main ()
13513{
13514return main ();
13515  ;
13516  return 0;
13517}
13518_ACEOF
13519rm -f conftest.$ac_objext conftest$ac_exeext
13520if { (ac_try="$ac_link"
13521case "(($ac_try" in
13522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523  *) ac_try_echo=$ac_try;;
13524esac
13525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526  (eval "$ac_link") 2>conftest.er1
13527  ac_status=$?
13528  grep -v '^ *+' conftest.er1 >conftest.err
13529  rm -f conftest.er1
13530  cat conftest.err >&5
13531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532  (exit $ac_status); } &&
13533	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13534  { (case "(($ac_try" in
13535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536  *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539  (eval "$ac_try") 2>&5
13540  ac_status=$?
13541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542  (exit $ac_status); }; } &&
13543	 { ac_try='test -s conftest$ac_exeext'
13544  { (case "(($ac_try" in
13545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546  *) ac_try_echo=$ac_try;;
13547esac
13548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549  (eval "$ac_try") 2>&5
13550  ac_status=$?
13551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552  (exit $ac_status); }; }; then
13553  ac_cv_lib_imagehlp_main=yes
13554else
13555  echo "$as_me: failed program was:" >&5
13556sed 's/^/| /' conftest.$ac_ext >&5
13557
13558	ac_cv_lib_imagehlp_main=no
13559fi
13560
13561rm -f core conftest.err conftest.$ac_objext \
13562      conftest$ac_exeext conftest.$ac_ext
13563LIBS=$ac_check_lib_save_LIBS
13564fi
13565{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13566echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13567if test $ac_cv_lib_imagehlp_main = yes; then
13568  cat >>confdefs.h <<_ACEOF
13569#define HAVE_LIBIMAGEHLP 1
13570_ACEOF
13571
13572  LIBS="-limagehlp $LIBS"
13573
13574fi
13575
13576
13577{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13578echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13579if test "${ac_cv_lib_psapi_main+set}" = set; then
13580  echo $ECHO_N "(cached) $ECHO_C" >&6
13581else
13582  ac_check_lib_save_LIBS=$LIBS
13583LIBS="-lpsapi  $LIBS"
13584cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h.  */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h.  */
13590
13591
13592int
13593main ()
13594{
13595return main ();
13596  ;
13597  return 0;
13598}
13599_ACEOF
13600rm -f conftest.$ac_objext conftest$ac_exeext
13601if { (ac_try="$ac_link"
13602case "(($ac_try" in
13603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604  *) ac_try_echo=$ac_try;;
13605esac
13606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607  (eval "$ac_link") 2>conftest.er1
13608  ac_status=$?
13609  grep -v '^ *+' conftest.er1 >conftest.err
13610  rm -f conftest.er1
13611  cat conftest.err >&5
13612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613  (exit $ac_status); } &&
13614	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615  { (case "(($ac_try" in
13616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617  *) ac_try_echo=$ac_try;;
13618esac
13619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620  (eval "$ac_try") 2>&5
13621  ac_status=$?
13622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623  (exit $ac_status); }; } &&
13624	 { ac_try='test -s conftest$ac_exeext'
13625  { (case "(($ac_try" in
13626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627  *) ac_try_echo=$ac_try;;
13628esac
13629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630  (eval "$ac_try") 2>&5
13631  ac_status=$?
13632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633  (exit $ac_status); }; }; then
13634  ac_cv_lib_psapi_main=yes
13635else
13636  echo "$as_me: failed program was:" >&5
13637sed 's/^/| /' conftest.$ac_ext >&5
13638
13639	ac_cv_lib_psapi_main=no
13640fi
13641
13642rm -f core conftest.err conftest.$ac_objext \
13643      conftest$ac_exeext conftest.$ac_ext
13644LIBS=$ac_check_lib_save_LIBS
13645fi
13646{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13647echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13648if test $ac_cv_lib_psapi_main = yes; then
13649  cat >>confdefs.h <<_ACEOF
13650#define HAVE_LIBPSAPI 1
13651_ACEOF
13652
13653  LIBS="-lpsapi $LIBS"
13654
13655fi
13656
13657fi
13658
13659{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13660echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13661if test "${ac_cv_search_dlopen+set}" = set; then
13662  echo $ECHO_N "(cached) $ECHO_C" >&6
13663else
13664  ac_func_search_save_LIBS=$LIBS
13665cat >conftest.$ac_ext <<_ACEOF
13666/* confdefs.h.  */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h.  */
13671
13672/* Override any GCC internal prototype to avoid an error.
13673   Use char because int might match the return type of a GCC
13674   builtin and then its argument prototype would still apply.  */
13675#ifdef __cplusplus
13676extern "C"
13677#endif
13678char dlopen ();
13679int
13680main ()
13681{
13682return dlopen ();
13683  ;
13684  return 0;
13685}
13686_ACEOF
13687for ac_lib in '' dl; do
13688  if test -z "$ac_lib"; then
13689    ac_res="none required"
13690  else
13691    ac_res=-l$ac_lib
13692    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13693  fi
13694  rm -f conftest.$ac_objext conftest$ac_exeext
13695if { (ac_try="$ac_link"
13696case "(($ac_try" in
13697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698  *) ac_try_echo=$ac_try;;
13699esac
13700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701  (eval "$ac_link") 2>conftest.er1
13702  ac_status=$?
13703  grep -v '^ *+' conftest.er1 >conftest.err
13704  rm -f conftest.er1
13705  cat conftest.err >&5
13706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707  (exit $ac_status); } &&
13708	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13709  { (case "(($ac_try" in
13710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711  *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714  (eval "$ac_try") 2>&5
13715  ac_status=$?
13716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717  (exit $ac_status); }; } &&
13718	 { ac_try='test -s conftest$ac_exeext'
13719  { (case "(($ac_try" in
13720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721  *) ac_try_echo=$ac_try;;
13722esac
13723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724  (eval "$ac_try") 2>&5
13725  ac_status=$?
13726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727  (exit $ac_status); }; }; then
13728  ac_cv_search_dlopen=$ac_res
13729else
13730  echo "$as_me: failed program was:" >&5
13731sed 's/^/| /' conftest.$ac_ext >&5
13732
13733
13734fi
13735
13736rm -f core conftest.err conftest.$ac_objext \
13737      conftest$ac_exeext
13738  if test "${ac_cv_search_dlopen+set}" = set; then
13739  break
13740fi
13741done
13742if test "${ac_cv_search_dlopen+set}" = set; then
13743  :
13744else
13745  ac_cv_search_dlopen=no
13746fi
13747rm conftest.$ac_ext
13748LIBS=$ac_func_search_save_LIBS
13749fi
13750{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13751echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13752ac_res=$ac_cv_search_dlopen
13753if test "$ac_res" != no; then
13754  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13755
13756cat >>confdefs.h <<\_ACEOF
13757#define HAVE_DLOPEN 1
13758_ACEOF
13759
13760else
13761  { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13762echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13763fi
13764
13765
13766if test "$llvm_cv_enable_libffi" = "yes" ; then
13767  { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13768echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13769if test "${ac_cv_search_ffi_call+set}" = set; then
13770  echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772  ac_func_search_save_LIBS=$LIBS
13773cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h.  */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h.  */
13779
13780/* Override any GCC internal prototype to avoid an error.
13781   Use char because int might match the return type of a GCC
13782   builtin and then its argument prototype would still apply.  */
13783#ifdef __cplusplus
13784extern "C"
13785#endif
13786char ffi_call ();
13787int
13788main ()
13789{
13790return ffi_call ();
13791  ;
13792  return 0;
13793}
13794_ACEOF
13795for ac_lib in '' ffi; do
13796  if test -z "$ac_lib"; then
13797    ac_res="none required"
13798  else
13799    ac_res=-l$ac_lib
13800    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13801  fi
13802  rm -f conftest.$ac_objext conftest$ac_exeext
13803if { (ac_try="$ac_link"
13804case "(($ac_try" in
13805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806  *) ac_try_echo=$ac_try;;
13807esac
13808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809  (eval "$ac_link") 2>conftest.er1
13810  ac_status=$?
13811  grep -v '^ *+' conftest.er1 >conftest.err
13812  rm -f conftest.er1
13813  cat conftest.err >&5
13814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815  (exit $ac_status); } &&
13816	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817  { (case "(($ac_try" in
13818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819  *) ac_try_echo=$ac_try;;
13820esac
13821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822  (eval "$ac_try") 2>&5
13823  ac_status=$?
13824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825  (exit $ac_status); }; } &&
13826	 { ac_try='test -s conftest$ac_exeext'
13827  { (case "(($ac_try" in
13828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829  *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832  (eval "$ac_try") 2>&5
13833  ac_status=$?
13834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835  (exit $ac_status); }; }; then
13836  ac_cv_search_ffi_call=$ac_res
13837else
13838  echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
13840
13841
13842fi
13843
13844rm -f core conftest.err conftest.$ac_objext \
13845      conftest$ac_exeext
13846  if test "${ac_cv_search_ffi_call+set}" = set; then
13847  break
13848fi
13849done
13850if test "${ac_cv_search_ffi_call+set}" = set; then
13851  :
13852else
13853  ac_cv_search_ffi_call=no
13854fi
13855rm conftest.$ac_ext
13856LIBS=$ac_func_search_save_LIBS
13857fi
13858{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13859echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13860ac_res=$ac_cv_search_ffi_call
13861if test "$ac_res" != no; then
13862  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13863
13864cat >>confdefs.h <<\_ACEOF
13865#define HAVE_FFI_CALL 1
13866_ACEOF
13867
13868else
13869  { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13870echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13871   { (exit 1); exit 1; }; }
13872fi
13873
13874fi
13875
13876{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13877echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13878if test "${ac_cv_search_mallinfo+set}" = set; then
13879  echo $ECHO_N "(cached) $ECHO_C" >&6
13880else
13881  ac_func_search_save_LIBS=$LIBS
13882cat >conftest.$ac_ext <<_ACEOF
13883/* confdefs.h.  */
13884_ACEOF
13885cat confdefs.h >>conftest.$ac_ext
13886cat >>conftest.$ac_ext <<_ACEOF
13887/* end confdefs.h.  */
13888
13889/* Override any GCC internal prototype to avoid an error.
13890   Use char because int might match the return type of a GCC
13891   builtin and then its argument prototype would still apply.  */
13892#ifdef __cplusplus
13893extern "C"
13894#endif
13895char mallinfo ();
13896int
13897main ()
13898{
13899return mallinfo ();
13900  ;
13901  return 0;
13902}
13903_ACEOF
13904for ac_lib in '' malloc; do
13905  if test -z "$ac_lib"; then
13906    ac_res="none required"
13907  else
13908    ac_res=-l$ac_lib
13909    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13910  fi
13911  rm -f conftest.$ac_objext conftest$ac_exeext
13912if { (ac_try="$ac_link"
13913case "(($ac_try" in
13914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915  *) ac_try_echo=$ac_try;;
13916esac
13917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918  (eval "$ac_link") 2>conftest.er1
13919  ac_status=$?
13920  grep -v '^ *+' conftest.er1 >conftest.err
13921  rm -f conftest.er1
13922  cat conftest.err >&5
13923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924  (exit $ac_status); } &&
13925	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13926  { (case "(($ac_try" in
13927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928  *) ac_try_echo=$ac_try;;
13929esac
13930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931  (eval "$ac_try") 2>&5
13932  ac_status=$?
13933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934  (exit $ac_status); }; } &&
13935	 { ac_try='test -s conftest$ac_exeext'
13936  { (case "(($ac_try" in
13937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938  *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941  (eval "$ac_try") 2>&5
13942  ac_status=$?
13943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944  (exit $ac_status); }; }; then
13945  ac_cv_search_mallinfo=$ac_res
13946else
13947  echo "$as_me: failed program was:" >&5
13948sed 's/^/| /' conftest.$ac_ext >&5
13949
13950
13951fi
13952
13953rm -f core conftest.err conftest.$ac_objext \
13954      conftest$ac_exeext
13955  if test "${ac_cv_search_mallinfo+set}" = set; then
13956  break
13957fi
13958done
13959if test "${ac_cv_search_mallinfo+set}" = set; then
13960  :
13961else
13962  ac_cv_search_mallinfo=no
13963fi
13964rm conftest.$ac_ext
13965LIBS=$ac_func_search_save_LIBS
13966fi
13967{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13968echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13969ac_res=$ac_cv_search_mallinfo
13970if test "$ac_res" != no; then
13971  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13972
13973cat >>confdefs.h <<\_ACEOF
13974#define HAVE_MALLINFO 1
13975_ACEOF
13976
13977fi
13978
13979
13980if test "$ENABLE_THREADS" -eq 1 ; then
13981
13982{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13983echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13984if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13985  echo $ECHO_N "(cached) $ECHO_C" >&6
13986else
13987  ac_check_lib_save_LIBS=$LIBS
13988LIBS="-lpthread  $LIBS"
13989cat >conftest.$ac_ext <<_ACEOF
13990/* confdefs.h.  */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
13994/* end confdefs.h.  */
13995
13996/* Override any GCC internal prototype to avoid an error.
13997   Use char because int might match the return type of a GCC
13998   builtin and then its argument prototype would still apply.  */
13999#ifdef __cplusplus
14000extern "C"
14001#endif
14002char pthread_mutex_init ();
14003int
14004main ()
14005{
14006return pthread_mutex_init ();
14007  ;
14008  return 0;
14009}
14010_ACEOF
14011rm -f conftest.$ac_objext conftest$ac_exeext
14012if { (ac_try="$ac_link"
14013case "(($ac_try" in
14014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015  *) ac_try_echo=$ac_try;;
14016esac
14017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018  (eval "$ac_link") 2>conftest.er1
14019  ac_status=$?
14020  grep -v '^ *+' conftest.er1 >conftest.err
14021  rm -f conftest.er1
14022  cat conftest.err >&5
14023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024  (exit $ac_status); } &&
14025	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14026  { (case "(($ac_try" in
14027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028  *) ac_try_echo=$ac_try;;
14029esac
14030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031  (eval "$ac_try") 2>&5
14032  ac_status=$?
14033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034  (exit $ac_status); }; } &&
14035	 { ac_try='test -s conftest$ac_exeext'
14036  { (case "(($ac_try" in
14037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038  *) ac_try_echo=$ac_try;;
14039esac
14040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041  (eval "$ac_try") 2>&5
14042  ac_status=$?
14043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044  (exit $ac_status); }; }; then
14045  ac_cv_lib_pthread_pthread_mutex_init=yes
14046else
14047  echo "$as_me: failed program was:" >&5
14048sed 's/^/| /' conftest.$ac_ext >&5
14049
14050	ac_cv_lib_pthread_pthread_mutex_init=no
14051fi
14052
14053rm -f core conftest.err conftest.$ac_objext \
14054      conftest$ac_exeext conftest.$ac_ext
14055LIBS=$ac_check_lib_save_LIBS
14056fi
14057{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14058echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14059if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14060  cat >>confdefs.h <<_ACEOF
14061#define HAVE_LIBPTHREAD 1
14062_ACEOF
14063
14064  LIBS="-lpthread $LIBS"
14065
14066fi
14067
14068  { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14069echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14070if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14071  echo $ECHO_N "(cached) $ECHO_C" >&6
14072else
14073  ac_func_search_save_LIBS=$LIBS
14074cat >conftest.$ac_ext <<_ACEOF
14075/* confdefs.h.  */
14076_ACEOF
14077cat confdefs.h >>conftest.$ac_ext
14078cat >>conftest.$ac_ext <<_ACEOF
14079/* end confdefs.h.  */
14080
14081/* Override any GCC internal prototype to avoid an error.
14082   Use char because int might match the return type of a GCC
14083   builtin and then its argument prototype would still apply.  */
14084#ifdef __cplusplus
14085extern "C"
14086#endif
14087char pthread_mutex_lock ();
14088int
14089main ()
14090{
14091return pthread_mutex_lock ();
14092  ;
14093  return 0;
14094}
14095_ACEOF
14096for ac_lib in '' pthread; do
14097  if test -z "$ac_lib"; then
14098    ac_res="none required"
14099  else
14100    ac_res=-l$ac_lib
14101    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14102  fi
14103  rm -f conftest.$ac_objext conftest$ac_exeext
14104if { (ac_try="$ac_link"
14105case "(($ac_try" in
14106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107  *) ac_try_echo=$ac_try;;
14108esac
14109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110  (eval "$ac_link") 2>conftest.er1
14111  ac_status=$?
14112  grep -v '^ *+' conftest.er1 >conftest.err
14113  rm -f conftest.er1
14114  cat conftest.err >&5
14115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116  (exit $ac_status); } &&
14117	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14118  { (case "(($ac_try" in
14119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14120  *) ac_try_echo=$ac_try;;
14121esac
14122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14123  (eval "$ac_try") 2>&5
14124  ac_status=$?
14125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126  (exit $ac_status); }; } &&
14127	 { ac_try='test -s conftest$ac_exeext'
14128  { (case "(($ac_try" in
14129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130  *) ac_try_echo=$ac_try;;
14131esac
14132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133  (eval "$ac_try") 2>&5
14134  ac_status=$?
14135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136  (exit $ac_status); }; }; then
14137  ac_cv_search_pthread_mutex_lock=$ac_res
14138else
14139  echo "$as_me: failed program was:" >&5
14140sed 's/^/| /' conftest.$ac_ext >&5
14141
14142
14143fi
14144
14145rm -f core conftest.err conftest.$ac_objext \
14146      conftest$ac_exeext
14147  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14148  break
14149fi
14150done
14151if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14152  :
14153else
14154  ac_cv_search_pthread_mutex_lock=no
14155fi
14156rm conftest.$ac_ext
14157LIBS=$ac_func_search_save_LIBS
14158fi
14159{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14160echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14161ac_res=$ac_cv_search_pthread_mutex_lock
14162if test "$ac_res" != no; then
14163  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14164
14165cat >>confdefs.h <<\_ACEOF
14166#define HAVE_PTHREAD_MUTEX_LOCK 1
14167_ACEOF
14168
14169fi
14170
14171  { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14172echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14173if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14174  echo $ECHO_N "(cached) $ECHO_C" >&6
14175else
14176  ac_func_search_save_LIBS=$LIBS
14177cat >conftest.$ac_ext <<_ACEOF
14178/* confdefs.h.  */
14179_ACEOF
14180cat confdefs.h >>conftest.$ac_ext
14181cat >>conftest.$ac_ext <<_ACEOF
14182/* end confdefs.h.  */
14183
14184/* Override any GCC internal prototype to avoid an error.
14185   Use char because int might match the return type of a GCC
14186   builtin and then its argument prototype would still apply.  */
14187#ifdef __cplusplus
14188extern "C"
14189#endif
14190char pthread_rwlock_init ();
14191int
14192main ()
14193{
14194return pthread_rwlock_init ();
14195  ;
14196  return 0;
14197}
14198_ACEOF
14199for ac_lib in '' pthread; do
14200  if test -z "$ac_lib"; then
14201    ac_res="none required"
14202  else
14203    ac_res=-l$ac_lib
14204    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14205  fi
14206  rm -f conftest.$ac_objext conftest$ac_exeext
14207if { (ac_try="$ac_link"
14208case "(($ac_try" in
14209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210  *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213  (eval "$ac_link") 2>conftest.er1
14214  ac_status=$?
14215  grep -v '^ *+' conftest.er1 >conftest.err
14216  rm -f conftest.er1
14217  cat conftest.err >&5
14218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219  (exit $ac_status); } &&
14220	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221  { (case "(($ac_try" in
14222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223  *) ac_try_echo=$ac_try;;
14224esac
14225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226  (eval "$ac_try") 2>&5
14227  ac_status=$?
14228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229  (exit $ac_status); }; } &&
14230	 { ac_try='test -s conftest$ac_exeext'
14231  { (case "(($ac_try" in
14232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233  *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236  (eval "$ac_try") 2>&5
14237  ac_status=$?
14238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239  (exit $ac_status); }; }; then
14240  ac_cv_search_pthread_rwlock_init=$ac_res
14241else
14242  echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245
14246fi
14247
14248rm -f core conftest.err conftest.$ac_objext \
14249      conftest$ac_exeext
14250  if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14251  break
14252fi
14253done
14254if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14255  :
14256else
14257  ac_cv_search_pthread_rwlock_init=no
14258fi
14259rm conftest.$ac_ext
14260LIBS=$ac_func_search_save_LIBS
14261fi
14262{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14263echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14264ac_res=$ac_cv_search_pthread_rwlock_init
14265if test "$ac_res" != no; then
14266  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14267
14268cat >>confdefs.h <<\_ACEOF
14269#define HAVE_PTHREAD_RWLOCK_INIT 1
14270_ACEOF
14271
14272fi
14273
14274  { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14275echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14276if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14277  echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279  ac_func_search_save_LIBS=$LIBS
14280cat >conftest.$ac_ext <<_ACEOF
14281/* confdefs.h.  */
14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
14285/* end confdefs.h.  */
14286
14287/* Override any GCC internal prototype to avoid an error.
14288   Use char because int might match the return type of a GCC
14289   builtin and then its argument prototype would still apply.  */
14290#ifdef __cplusplus
14291extern "C"
14292#endif
14293char pthread_getspecific ();
14294int
14295main ()
14296{
14297return pthread_getspecific ();
14298  ;
14299  return 0;
14300}
14301_ACEOF
14302for ac_lib in '' pthread; do
14303  if test -z "$ac_lib"; then
14304    ac_res="none required"
14305  else
14306    ac_res=-l$ac_lib
14307    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14308  fi
14309  rm -f conftest.$ac_objext conftest$ac_exeext
14310if { (ac_try="$ac_link"
14311case "(($ac_try" in
14312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313  *) ac_try_echo=$ac_try;;
14314esac
14315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316  (eval "$ac_link") 2>conftest.er1
14317  ac_status=$?
14318  grep -v '^ *+' conftest.er1 >conftest.err
14319  rm -f conftest.er1
14320  cat conftest.err >&5
14321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322  (exit $ac_status); } &&
14323	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324  { (case "(($ac_try" in
14325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326  *) ac_try_echo=$ac_try;;
14327esac
14328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329  (eval "$ac_try") 2>&5
14330  ac_status=$?
14331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332  (exit $ac_status); }; } &&
14333	 { ac_try='test -s conftest$ac_exeext'
14334  { (case "(($ac_try" in
14335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336  *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339  (eval "$ac_try") 2>&5
14340  ac_status=$?
14341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342  (exit $ac_status); }; }; then
14343  ac_cv_search_pthread_getspecific=$ac_res
14344else
14345  echo "$as_me: failed program was:" >&5
14346sed 's/^/| /' conftest.$ac_ext >&5
14347
14348
14349fi
14350
14351rm -f core conftest.err conftest.$ac_objext \
14352      conftest$ac_exeext
14353  if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14354  break
14355fi
14356done
14357if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14358  :
14359else
14360  ac_cv_search_pthread_getspecific=no
14361fi
14362rm conftest.$ac_ext
14363LIBS=$ac_func_search_save_LIBS
14364fi
14365{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14366echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14367ac_res=$ac_cv_search_pthread_getspecific
14368if test "$ac_res" != no; then
14369  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14370
14371cat >>confdefs.h <<\_ACEOF
14372#define HAVE_PTHREAD_GETSPECIFIC 1
14373_ACEOF
14374
14375fi
14376
14377fi
14378
14379
14380# Check whether --with-udis86 was given.
14381if test "${with_udis86+set}" = set; then
14382  withval=$with_udis86;
14383      USE_UDIS86=1
14384
14385      case "$withval" in
14386        /usr/lib|yes) ;;
14387        *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14388      esac
14389
14390{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14391echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14392if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14393  echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395  ac_check_lib_save_LIBS=$LIBS
14396LIBS="-ludis86  $LIBS"
14397cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h.  */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h.  */
14403
14404/* Override any GCC internal prototype to avoid an error.
14405   Use char because int might match the return type of a GCC
14406   builtin and then its argument prototype would still apply.  */
14407#ifdef __cplusplus
14408extern "C"
14409#endif
14410char ud_init ();
14411int
14412main ()
14413{
14414return ud_init ();
14415  ;
14416  return 0;
14417}
14418_ACEOF
14419rm -f conftest.$ac_objext conftest$ac_exeext
14420if { (ac_try="$ac_link"
14421case "(($ac_try" in
14422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423  *) ac_try_echo=$ac_try;;
14424esac
14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426  (eval "$ac_link") 2>conftest.er1
14427  ac_status=$?
14428  grep -v '^ *+' conftest.er1 >conftest.err
14429  rm -f conftest.er1
14430  cat conftest.err >&5
14431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432  (exit $ac_status); } &&
14433	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14434  { (case "(($ac_try" in
14435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436  *) ac_try_echo=$ac_try;;
14437esac
14438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439  (eval "$ac_try") 2>&5
14440  ac_status=$?
14441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442  (exit $ac_status); }; } &&
14443	 { ac_try='test -s conftest$ac_exeext'
14444  { (case "(($ac_try" in
14445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446  *) ac_try_echo=$ac_try;;
14447esac
14448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449  (eval "$ac_try") 2>&5
14450  ac_status=$?
14451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452  (exit $ac_status); }; }; then
14453  ac_cv_lib_udis86_ud_init=yes
14454else
14455  echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458	ac_cv_lib_udis86_ud_init=no
14459fi
14460
14461rm -f core conftest.err conftest.$ac_objext \
14462      conftest$ac_exeext conftest.$ac_ext
14463LIBS=$ac_check_lib_save_LIBS
14464fi
14465{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14466echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14467if test $ac_cv_lib_udis86_ud_init = yes; then
14468  cat >>confdefs.h <<_ACEOF
14469#define HAVE_LIBUDIS86 1
14470_ACEOF
14471
14472  LIBS="-ludis86 $LIBS"
14473
14474else
14475
14476        echo "Error! You need to have libudis86 around."
14477        exit -1
14478
14479fi
14480
14481
14482else
14483  USE_UDIS86=0
14484
14485fi
14486
14487
14488cat >>confdefs.h <<_ACEOF
14489#define USE_UDIS86 $USE_UDIS86
14490_ACEOF
14491
14492
14493
14494# Check whether --with-oprofile was given.
14495if test "${with_oprofile+set}" = set; then
14496  withval=$with_oprofile;
14497      USE_OPROFILE=1
14498
14499      case "$withval" in
14500        /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14501        no) llvm_cv_oppath=
14502            USE_OPROFILE=0
14503 ;;
14504        *) llvm_cv_oppath="${withval}/lib/oprofile"
14505           CPPFLAGS="-I${withval}/include";;
14506      esac
14507      if test -n "$llvm_cv_oppath" ; then
14508        LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14509                                        { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14510echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14511if test "${ac_cv_search_bfd_init+set}" = set; then
14512  echo $ECHO_N "(cached) $ECHO_C" >&6
14513else
14514  ac_func_search_save_LIBS=$LIBS
14515cat >conftest.$ac_ext <<_ACEOF
14516/* confdefs.h.  */
14517_ACEOF
14518cat confdefs.h >>conftest.$ac_ext
14519cat >>conftest.$ac_ext <<_ACEOF
14520/* end confdefs.h.  */
14521
14522/* Override any GCC internal prototype to avoid an error.
14523   Use char because int might match the return type of a GCC
14524   builtin and then its argument prototype would still apply.  */
14525#ifdef __cplusplus
14526extern "C"
14527#endif
14528char bfd_init ();
14529int
14530main ()
14531{
14532return bfd_init ();
14533  ;
14534  return 0;
14535}
14536_ACEOF
14537for ac_lib in '' bfd; do
14538  if test -z "$ac_lib"; then
14539    ac_res="none required"
14540  else
14541    ac_res=-l$ac_lib
14542    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14543  fi
14544  rm -f conftest.$ac_objext conftest$ac_exeext
14545if { (ac_try="$ac_link"
14546case "(($ac_try" in
14547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548  *) ac_try_echo=$ac_try;;
14549esac
14550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551  (eval "$ac_link") 2>conftest.er1
14552  ac_status=$?
14553  grep -v '^ *+' conftest.er1 >conftest.err
14554  rm -f conftest.er1
14555  cat conftest.err >&5
14556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557  (exit $ac_status); } &&
14558	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14559  { (case "(($ac_try" in
14560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561  *) ac_try_echo=$ac_try;;
14562esac
14563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564  (eval "$ac_try") 2>&5
14565  ac_status=$?
14566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567  (exit $ac_status); }; } &&
14568	 { ac_try='test -s conftest$ac_exeext'
14569  { (case "(($ac_try" in
14570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571  *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574  (eval "$ac_try") 2>&5
14575  ac_status=$?
14576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577  (exit $ac_status); }; }; then
14578  ac_cv_search_bfd_init=$ac_res
14579else
14580  echo "$as_me: failed program was:" >&5
14581sed 's/^/| /' conftest.$ac_ext >&5
14582
14583
14584fi
14585
14586rm -f core conftest.err conftest.$ac_objext \
14587      conftest$ac_exeext
14588  if test "${ac_cv_search_bfd_init+set}" = set; then
14589  break
14590fi
14591done
14592if test "${ac_cv_search_bfd_init+set}" = set; then
14593  :
14594else
14595  ac_cv_search_bfd_init=no
14596fi
14597rm conftest.$ac_ext
14598LIBS=$ac_func_search_save_LIBS
14599fi
14600{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14601echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14602ac_res=$ac_cv_search_bfd_init
14603if test "$ac_res" != no; then
14604  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14605
14606fi
14607
14608        { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14609echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14610if test "${ac_cv_search_op_open_agent+set}" = set; then
14611  echo $ECHO_N "(cached) $ECHO_C" >&6
14612else
14613  ac_func_search_save_LIBS=$LIBS
14614cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h.  */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h.  */
14620
14621/* Override any GCC internal prototype to avoid an error.
14622   Use char because int might match the return type of a GCC
14623   builtin and then its argument prototype would still apply.  */
14624#ifdef __cplusplus
14625extern "C"
14626#endif
14627char op_open_agent ();
14628int
14629main ()
14630{
14631return op_open_agent ();
14632  ;
14633  return 0;
14634}
14635_ACEOF
14636for ac_lib in '' opagent; do
14637  if test -z "$ac_lib"; then
14638    ac_res="none required"
14639  else
14640    ac_res=-l$ac_lib
14641    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14642  fi
14643  rm -f conftest.$ac_objext conftest$ac_exeext
14644if { (ac_try="$ac_link"
14645case "(($ac_try" in
14646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647  *) ac_try_echo=$ac_try;;
14648esac
14649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650  (eval "$ac_link") 2>conftest.er1
14651  ac_status=$?
14652  grep -v '^ *+' conftest.er1 >conftest.err
14653  rm -f conftest.er1
14654  cat conftest.err >&5
14655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656  (exit $ac_status); } &&
14657	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14658  { (case "(($ac_try" in
14659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660  *) ac_try_echo=$ac_try;;
14661esac
14662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663  (eval "$ac_try") 2>&5
14664  ac_status=$?
14665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666  (exit $ac_status); }; } &&
14667	 { ac_try='test -s conftest$ac_exeext'
14668  { (case "(($ac_try" in
14669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670  *) ac_try_echo=$ac_try;;
14671esac
14672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673  (eval "$ac_try") 2>&5
14674  ac_status=$?
14675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676  (exit $ac_status); }; }; then
14677  ac_cv_search_op_open_agent=$ac_res
14678else
14679  echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682
14683fi
14684
14685rm -f core conftest.err conftest.$ac_objext \
14686      conftest$ac_exeext
14687  if test "${ac_cv_search_op_open_agent+set}" = set; then
14688  break
14689fi
14690done
14691if test "${ac_cv_search_op_open_agent+set}" = set; then
14692  :
14693else
14694  ac_cv_search_op_open_agent=no
14695fi
14696rm conftest.$ac_ext
14697LIBS=$ac_func_search_save_LIBS
14698fi
14699{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14700echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14701ac_res=$ac_cv_search_op_open_agent
14702if test "$ac_res" != no; then
14703  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14704
14705else
14706
14707          echo "Error! You need to have libopagent around."
14708          exit -1
14709
14710fi
14711
14712        if test "${ac_cv_header_opagent_h+set}" = set; then
14713  { echo "$as_me:$LINENO: checking for opagent.h" >&5
14714echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14715if test "${ac_cv_header_opagent_h+set}" = set; then
14716  echo $ECHO_N "(cached) $ECHO_C" >&6
14717fi
14718{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14719echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14720else
14721  # Is the header compilable?
14722{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14723echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14724cat >conftest.$ac_ext <<_ACEOF
14725/* confdefs.h.  */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h.  */
14730$ac_includes_default
14731#include <opagent.h>
14732_ACEOF
14733rm -f conftest.$ac_objext
14734if { (ac_try="$ac_compile"
14735case "(($ac_try" in
14736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737  *) ac_try_echo=$ac_try;;
14738esac
14739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740  (eval "$ac_compile") 2>conftest.er1
14741  ac_status=$?
14742  grep -v '^ *+' conftest.er1 >conftest.err
14743  rm -f conftest.er1
14744  cat conftest.err >&5
14745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746  (exit $ac_status); } &&
14747	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748  { (case "(($ac_try" in
14749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750  *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753  (eval "$ac_try") 2>&5
14754  ac_status=$?
14755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756  (exit $ac_status); }; } &&
14757	 { ac_try='test -s conftest.$ac_objext'
14758  { (case "(($ac_try" in
14759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760  *) ac_try_echo=$ac_try;;
14761esac
14762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763  (eval "$ac_try") 2>&5
14764  ac_status=$?
14765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766  (exit $ac_status); }; }; then
14767  ac_header_compiler=yes
14768else
14769  echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772	ac_header_compiler=no
14773fi
14774
14775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777echo "${ECHO_T}$ac_header_compiler" >&6; }
14778
14779# Is the header present?
14780{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14781echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14782cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h.  */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h.  */
14788#include <opagent.h>
14789_ACEOF
14790if { (ac_try="$ac_cpp conftest.$ac_ext"
14791case "(($ac_try" in
14792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793  *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797  ac_status=$?
14798  grep -v '^ *+' conftest.er1 >conftest.err
14799  rm -f conftest.er1
14800  cat conftest.err >&5
14801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802  (exit $ac_status); } >/dev/null; then
14803  if test -s conftest.err; then
14804    ac_cpp_err=$ac_c_preproc_warn_flag
14805    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806  else
14807    ac_cpp_err=
14808  fi
14809else
14810  ac_cpp_err=yes
14811fi
14812if test -z "$ac_cpp_err"; then
14813  ac_header_preproc=yes
14814else
14815  echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818  ac_header_preproc=no
14819fi
14820
14821rm -f conftest.err conftest.$ac_ext
14822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823echo "${ECHO_T}$ac_header_preproc" >&6; }
14824
14825# So?  What about this header?
14826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827  yes:no: )
14828    { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14831echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14832    ac_header_preproc=yes
14833    ;;
14834  no:yes:* )
14835    { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14836echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14837    { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14838echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14839    { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14840echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14841    { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14842echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14843    { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14844echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14845    { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14846echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14847    ( cat <<\_ASBOX
14848## ----------------------------------- ##
14849## Report this to llvmbugs@cs.uiuc.edu ##
14850## ----------------------------------- ##
14851_ASBOX
14852     ) | sed "s/^/$as_me: WARNING:     /" >&2
14853    ;;
14854esac
14855{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14856echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14857if test "${ac_cv_header_opagent_h+set}" = set; then
14858  echo $ECHO_N "(cached) $ECHO_C" >&6
14859else
14860  ac_cv_header_opagent_h=$ac_header_preproc
14861fi
14862{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14863echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14864
14865fi
14866if test $ac_cv_header_opagent_h = yes; then
14867  :
14868else
14869
14870          echo "Error! You need to have opagent.h around."
14871          exit -1
14872
14873fi
14874
14875
14876      fi
14877
14878else
14879
14880      USE_OPROFILE=0
14881
14882
14883fi
14884
14885
14886cat >>confdefs.h <<_ACEOF
14887#define USE_OPROFILE $USE_OPROFILE
14888_ACEOF
14889
14890
14891
14892
14893
14894
14895
14896
14897ac_header_dirent=no
14898for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14899  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14900{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14901echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14903  echo $ECHO_N "(cached) $ECHO_C" >&6
14904else
14905  cat >conftest.$ac_ext <<_ACEOF
14906/* confdefs.h.  */
14907_ACEOF
14908cat confdefs.h >>conftest.$ac_ext
14909cat >>conftest.$ac_ext <<_ACEOF
14910/* end confdefs.h.  */
14911#include <sys/types.h>
14912#include <$ac_hdr>
14913
14914int
14915main ()
14916{
14917if ((DIR *) 0)
14918return 0;
14919  ;
14920  return 0;
14921}
14922_ACEOF
14923rm -f conftest.$ac_objext
14924if { (ac_try="$ac_compile"
14925case "(($ac_try" in
14926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927  *) ac_try_echo=$ac_try;;
14928esac
14929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930  (eval "$ac_compile") 2>conftest.er1
14931  ac_status=$?
14932  grep -v '^ *+' conftest.er1 >conftest.err
14933  rm -f conftest.er1
14934  cat conftest.err >&5
14935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936  (exit $ac_status); } &&
14937	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14938  { (case "(($ac_try" in
14939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940  *) ac_try_echo=$ac_try;;
14941esac
14942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943  (eval "$ac_try") 2>&5
14944  ac_status=$?
14945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946  (exit $ac_status); }; } &&
14947	 { ac_try='test -s conftest.$ac_objext'
14948  { (case "(($ac_try" in
14949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950  *) ac_try_echo=$ac_try;;
14951esac
14952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953  (eval "$ac_try") 2>&5
14954  ac_status=$?
14955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956  (exit $ac_status); }; }; then
14957  eval "$as_ac_Header=yes"
14958else
14959  echo "$as_me: failed program was:" >&5
14960sed 's/^/| /' conftest.$ac_ext >&5
14961
14962	eval "$as_ac_Header=no"
14963fi
14964
14965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14966fi
14967ac_res=`eval echo '${'$as_ac_Header'}'`
14968	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14969echo "${ECHO_T}$ac_res" >&6; }
14970if test `eval echo '${'$as_ac_Header'}'` = yes; then
14971  cat >>confdefs.h <<_ACEOF
14972#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14973_ACEOF
14974
14975ac_header_dirent=$ac_hdr; break
14976fi
14977
14978done
14979# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14980if test $ac_header_dirent = dirent.h; then
14981  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14982echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14983if test "${ac_cv_search_opendir+set}" = set; then
14984  echo $ECHO_N "(cached) $ECHO_C" >&6
14985else
14986  ac_func_search_save_LIBS=$LIBS
14987cat >conftest.$ac_ext <<_ACEOF
14988/* confdefs.h.  */
14989_ACEOF
14990cat confdefs.h >>conftest.$ac_ext
14991cat >>conftest.$ac_ext <<_ACEOF
14992/* end confdefs.h.  */
14993
14994/* Override any GCC internal prototype to avoid an error.
14995   Use char because int might match the return type of a GCC
14996   builtin and then its argument prototype would still apply.  */
14997#ifdef __cplusplus
14998extern "C"
14999#endif
15000char opendir ();
15001int
15002main ()
15003{
15004return opendir ();
15005  ;
15006  return 0;
15007}
15008_ACEOF
15009for ac_lib in '' dir; do
15010  if test -z "$ac_lib"; then
15011    ac_res="none required"
15012  else
15013    ac_res=-l$ac_lib
15014    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15015  fi
15016  rm -f conftest.$ac_objext conftest$ac_exeext
15017if { (ac_try="$ac_link"
15018case "(($ac_try" in
15019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020  *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023  (eval "$ac_link") 2>conftest.er1
15024  ac_status=$?
15025  grep -v '^ *+' conftest.er1 >conftest.err
15026  rm -f conftest.er1
15027  cat conftest.err >&5
15028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029  (exit $ac_status); } &&
15030	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15031  { (case "(($ac_try" in
15032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033  *) ac_try_echo=$ac_try;;
15034esac
15035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036  (eval "$ac_try") 2>&5
15037  ac_status=$?
15038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039  (exit $ac_status); }; } &&
15040	 { ac_try='test -s conftest$ac_exeext'
15041  { (case "(($ac_try" in
15042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043  *) ac_try_echo=$ac_try;;
15044esac
15045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046  (eval "$ac_try") 2>&5
15047  ac_status=$?
15048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049  (exit $ac_status); }; }; then
15050  ac_cv_search_opendir=$ac_res
15051else
15052  echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055
15056fi
15057
15058rm -f core conftest.err conftest.$ac_objext \
15059      conftest$ac_exeext
15060  if test "${ac_cv_search_opendir+set}" = set; then
15061  break
15062fi
15063done
15064if test "${ac_cv_search_opendir+set}" = set; then
15065  :
15066else
15067  ac_cv_search_opendir=no
15068fi
15069rm conftest.$ac_ext
15070LIBS=$ac_func_search_save_LIBS
15071fi
15072{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15073echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15074ac_res=$ac_cv_search_opendir
15075if test "$ac_res" != no; then
15076  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15077
15078fi
15079
15080else
15081  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15082echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15083if test "${ac_cv_search_opendir+set}" = set; then
15084  echo $ECHO_N "(cached) $ECHO_C" >&6
15085else
15086  ac_func_search_save_LIBS=$LIBS
15087cat >conftest.$ac_ext <<_ACEOF
15088/* confdefs.h.  */
15089_ACEOF
15090cat confdefs.h >>conftest.$ac_ext
15091cat >>conftest.$ac_ext <<_ACEOF
15092/* end confdefs.h.  */
15093
15094/* Override any GCC internal prototype to avoid an error.
15095   Use char because int might match the return type of a GCC
15096   builtin and then its argument prototype would still apply.  */
15097#ifdef __cplusplus
15098extern "C"
15099#endif
15100char opendir ();
15101int
15102main ()
15103{
15104return opendir ();
15105  ;
15106  return 0;
15107}
15108_ACEOF
15109for ac_lib in '' x; do
15110  if test -z "$ac_lib"; then
15111    ac_res="none required"
15112  else
15113    ac_res=-l$ac_lib
15114    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15115  fi
15116  rm -f conftest.$ac_objext conftest$ac_exeext
15117if { (ac_try="$ac_link"
15118case "(($ac_try" in
15119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120  *) ac_try_echo=$ac_try;;
15121esac
15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123  (eval "$ac_link") 2>conftest.er1
15124  ac_status=$?
15125  grep -v '^ *+' conftest.er1 >conftest.err
15126  rm -f conftest.er1
15127  cat conftest.err >&5
15128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129  (exit $ac_status); } &&
15130	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15131  { (case "(($ac_try" in
15132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133  *) ac_try_echo=$ac_try;;
15134esac
15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136  (eval "$ac_try") 2>&5
15137  ac_status=$?
15138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139  (exit $ac_status); }; } &&
15140	 { ac_try='test -s conftest$ac_exeext'
15141  { (case "(($ac_try" in
15142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143  *) ac_try_echo=$ac_try;;
15144esac
15145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146  (eval "$ac_try") 2>&5
15147  ac_status=$?
15148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149  (exit $ac_status); }; }; then
15150  ac_cv_search_opendir=$ac_res
15151else
15152  echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
15155
15156fi
15157
15158rm -f core conftest.err conftest.$ac_objext \
15159      conftest$ac_exeext
15160  if test "${ac_cv_search_opendir+set}" = set; then
15161  break
15162fi
15163done
15164if test "${ac_cv_search_opendir+set}" = set; then
15165  :
15166else
15167  ac_cv_search_opendir=no
15168fi
15169rm conftest.$ac_ext
15170LIBS=$ac_func_search_save_LIBS
15171fi
15172{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15173echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15174ac_res=$ac_cv_search_opendir
15175if test "$ac_res" != no; then
15176  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15177
15178fi
15179
15180fi
15181
15182{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15183echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15184if test "${ac_cv_header_mmap_anon+set}" = set; then
15185  echo $ECHO_N "(cached) $ECHO_C" >&6
15186else
15187   ac_ext=c
15188ac_cpp='$CPP $CPPFLAGS'
15189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15191ac_compiler_gnu=$ac_cv_c_compiler_gnu
15192
15193  cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h.  */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h.  */
15199#include <sys/mman.h>
15200#include <unistd.h>
15201#include <fcntl.h>
15202int
15203main ()
15204{
15205mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15206  ;
15207  return 0;
15208}
15209_ACEOF
15210rm -f conftest.$ac_objext
15211if { (ac_try="$ac_compile"
15212case "(($ac_try" in
15213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214  *) ac_try_echo=$ac_try;;
15215esac
15216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217  (eval "$ac_compile") 2>conftest.er1
15218  ac_status=$?
15219  grep -v '^ *+' conftest.er1 >conftest.err
15220  rm -f conftest.er1
15221  cat conftest.err >&5
15222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223  (exit $ac_status); } &&
15224	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225  { (case "(($ac_try" in
15226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227  *) ac_try_echo=$ac_try;;
15228esac
15229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230  (eval "$ac_try") 2>&5
15231  ac_status=$?
15232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233  (exit $ac_status); }; } &&
15234	 { ac_try='test -s conftest.$ac_objext'
15235  { (case "(($ac_try" in
15236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237  *) ac_try_echo=$ac_try;;
15238esac
15239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240  (eval "$ac_try") 2>&5
15241  ac_status=$?
15242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243  (exit $ac_status); }; }; then
15244  ac_cv_header_mmap_anon=yes
15245else
15246  echo "$as_me: failed program was:" >&5
15247sed 's/^/| /' conftest.$ac_ext >&5
15248
15249	ac_cv_header_mmap_anon=no
15250fi
15251
15252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253  ac_ext=c
15254ac_cpp='$CPP $CPPFLAGS'
15255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15257ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258
15259
15260fi
15261{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15262echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15263if test "$ac_cv_header_mmap_anon" = yes; then
15264
15265cat >>confdefs.h <<\_ACEOF
15266#define HAVE_MMAP_ANONYMOUS 1
15267_ACEOF
15268
15269fi
15270
15271{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15272echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15273if test "${ac_cv_header_stat_broken+set}" = set; then
15274  echo $ECHO_N "(cached) $ECHO_C" >&6
15275else
15276  cat >conftest.$ac_ext <<_ACEOF
15277/* confdefs.h.  */
15278_ACEOF
15279cat confdefs.h >>conftest.$ac_ext
15280cat >>conftest.$ac_ext <<_ACEOF
15281/* end confdefs.h.  */
15282#include <sys/types.h>
15283#include <sys/stat.h>
15284
15285#if defined S_ISBLK && defined S_IFDIR
15286# if S_ISBLK (S_IFDIR)
15287You lose.
15288# endif
15289#endif
15290
15291#if defined S_ISBLK && defined S_IFCHR
15292# if S_ISBLK (S_IFCHR)
15293You lose.
15294# endif
15295#endif
15296
15297#if defined S_ISLNK && defined S_IFREG
15298# if S_ISLNK (S_IFREG)
15299You lose.
15300# endif
15301#endif
15302
15303#if defined S_ISSOCK && defined S_IFREG
15304# if S_ISSOCK (S_IFREG)
15305You lose.
15306# endif
15307#endif
15308
15309_ACEOF
15310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15311  $EGREP "You lose" >/dev/null 2>&1; then
15312  ac_cv_header_stat_broken=yes
15313else
15314  ac_cv_header_stat_broken=no
15315fi
15316rm -f conftest*
15317
15318fi
15319{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15320echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15321if test $ac_cv_header_stat_broken = yes; then
15322
15323cat >>confdefs.h <<\_ACEOF
15324#define STAT_MACROS_BROKEN 1
15325_ACEOF
15326
15327fi
15328
15329{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15330echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15331if test "${ac_cv_header_stdc+set}" = set; then
15332  echo $ECHO_N "(cached) $ECHO_C" >&6
15333else
15334  cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h.  */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h.  */
15340#include <stdlib.h>
15341#include <stdarg.h>
15342#include <string.h>
15343#include <float.h>
15344
15345int
15346main ()
15347{
15348
15349  ;
15350  return 0;
15351}
15352_ACEOF
15353rm -f conftest.$ac_objext
15354if { (ac_try="$ac_compile"
15355case "(($ac_try" in
15356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357  *) ac_try_echo=$ac_try;;
15358esac
15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360  (eval "$ac_compile") 2>conftest.er1
15361  ac_status=$?
15362  grep -v '^ *+' conftest.er1 >conftest.err
15363  rm -f conftest.er1
15364  cat conftest.err >&5
15365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366  (exit $ac_status); } &&
15367	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15368  { (case "(($ac_try" in
15369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370  *) ac_try_echo=$ac_try;;
15371esac
15372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373  (eval "$ac_try") 2>&5
15374  ac_status=$?
15375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376  (exit $ac_status); }; } &&
15377	 { ac_try='test -s conftest.$ac_objext'
15378  { (case "(($ac_try" in
15379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380  *) ac_try_echo=$ac_try;;
15381esac
15382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383  (eval "$ac_try") 2>&5
15384  ac_status=$?
15385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386  (exit $ac_status); }; }; then
15387  ac_cv_header_stdc=yes
15388else
15389  echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392	ac_cv_header_stdc=no
15393fi
15394
15395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396
15397if test $ac_cv_header_stdc = yes; then
15398  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15399  cat >conftest.$ac_ext <<_ACEOF
15400/* confdefs.h.  */
15401_ACEOF
15402cat confdefs.h >>conftest.$ac_ext
15403cat >>conftest.$ac_ext <<_ACEOF
15404/* end confdefs.h.  */
15405#include <string.h>
15406
15407_ACEOF
15408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15409  $EGREP "memchr" >/dev/null 2>&1; then
15410  :
15411else
15412  ac_cv_header_stdc=no
15413fi
15414rm -f conftest*
15415
15416fi
15417
15418if test $ac_cv_header_stdc = yes; then
15419  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15420  cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h.  */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h.  */
15426#include <stdlib.h>
15427
15428_ACEOF
15429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15430  $EGREP "free" >/dev/null 2>&1; then
15431  :
15432else
15433  ac_cv_header_stdc=no
15434fi
15435rm -f conftest*
15436
15437fi
15438
15439if test $ac_cv_header_stdc = yes; then
15440  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15441  if test "$cross_compiling" = yes; then
15442  :
15443else
15444  cat >conftest.$ac_ext <<_ACEOF
15445/* confdefs.h.  */
15446_ACEOF
15447cat confdefs.h >>conftest.$ac_ext
15448cat >>conftest.$ac_ext <<_ACEOF
15449/* end confdefs.h.  */
15450#include <ctype.h>
15451#include <stdlib.h>
15452#if ((' ' & 0x0FF) == 0x020)
15453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15455#else
15456# define ISLOWER(c) \
15457		   (('a' <= (c) && (c) <= 'i') \
15458		     || ('j' <= (c) && (c) <= 'r') \
15459		     || ('s' <= (c) && (c) <= 'z'))
15460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15461#endif
15462
15463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15464int
15465main ()
15466{
15467  int i;
15468  for (i = 0; i < 256; i++)
15469    if (XOR (islower (i), ISLOWER (i))
15470	|| toupper (i) != TOUPPER (i))
15471      return 2;
15472  return 0;
15473}
15474_ACEOF
15475rm -f conftest$ac_exeext
15476if { (ac_try="$ac_link"
15477case "(($ac_try" in
15478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479  *) ac_try_echo=$ac_try;;
15480esac
15481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482  (eval "$ac_link") 2>&5
15483  ac_status=$?
15484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15486  { (case "(($ac_try" in
15487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488  *) ac_try_echo=$ac_try;;
15489esac
15490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491  (eval "$ac_try") 2>&5
15492  ac_status=$?
15493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494  (exit $ac_status); }; }; then
15495  :
15496else
15497  echo "$as_me: program exited with status $ac_status" >&5
15498echo "$as_me: failed program was:" >&5
15499sed 's/^/| /' conftest.$ac_ext >&5
15500
15501( exit $ac_status )
15502ac_cv_header_stdc=no
15503fi
15504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15505fi
15506
15507
15508fi
15509fi
15510{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15511echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15512if test $ac_cv_header_stdc = yes; then
15513
15514cat >>confdefs.h <<\_ACEOF
15515#define STDC_HEADERS 1
15516_ACEOF
15517
15518fi
15519
15520{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15521echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15522if test "${ac_cv_header_sys_wait_h+set}" = set; then
15523  echo $ECHO_N "(cached) $ECHO_C" >&6
15524else
15525  cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h.  */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h.  */
15531#include <sys/types.h>
15532#include <sys/wait.h>
15533#ifndef WEXITSTATUS
15534# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15535#endif
15536#ifndef WIFEXITED
15537# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15538#endif
15539
15540int
15541main ()
15542{
15543  int s;
15544  wait (&s);
15545  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15546  ;
15547  return 0;
15548}
15549_ACEOF
15550rm -f conftest.$ac_objext
15551if { (ac_try="$ac_compile"
15552case "(($ac_try" in
15553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554  *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557  (eval "$ac_compile") 2>conftest.er1
15558  ac_status=$?
15559  grep -v '^ *+' conftest.er1 >conftest.err
15560  rm -f conftest.er1
15561  cat conftest.err >&5
15562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563  (exit $ac_status); } &&
15564	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565  { (case "(($ac_try" in
15566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567  *) ac_try_echo=$ac_try;;
15568esac
15569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570  (eval "$ac_try") 2>&5
15571  ac_status=$?
15572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573  (exit $ac_status); }; } &&
15574	 { ac_try='test -s conftest.$ac_objext'
15575  { (case "(($ac_try" in
15576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577  *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580  (eval "$ac_try") 2>&5
15581  ac_status=$?
15582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583  (exit $ac_status); }; }; then
15584  ac_cv_header_sys_wait_h=yes
15585else
15586  echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589	ac_cv_header_sys_wait_h=no
15590fi
15591
15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593fi
15594{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15595echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15596if test $ac_cv_header_sys_wait_h = yes; then
15597
15598cat >>confdefs.h <<\_ACEOF
15599#define HAVE_SYS_WAIT_H 1
15600_ACEOF
15601
15602fi
15603
15604{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15605echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15606if test "${ac_cv_header_time+set}" = set; then
15607  echo $ECHO_N "(cached) $ECHO_C" >&6
15608else
15609  cat >conftest.$ac_ext <<_ACEOF
15610/* confdefs.h.  */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
15614/* end confdefs.h.  */
15615#include <sys/types.h>
15616#include <sys/time.h>
15617#include <time.h>
15618
15619int
15620main ()
15621{
15622if ((struct tm *) 0)
15623return 0;
15624  ;
15625  return 0;
15626}
15627_ACEOF
15628rm -f conftest.$ac_objext
15629if { (ac_try="$ac_compile"
15630case "(($ac_try" in
15631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632  *) ac_try_echo=$ac_try;;
15633esac
15634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15635  (eval "$ac_compile") 2>conftest.er1
15636  ac_status=$?
15637  grep -v '^ *+' conftest.er1 >conftest.err
15638  rm -f conftest.er1
15639  cat conftest.err >&5
15640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641  (exit $ac_status); } &&
15642	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15643  { (case "(($ac_try" in
15644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645  *) ac_try_echo=$ac_try;;
15646esac
15647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648  (eval "$ac_try") 2>&5
15649  ac_status=$?
15650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651  (exit $ac_status); }; } &&
15652	 { ac_try='test -s conftest.$ac_objext'
15653  { (case "(($ac_try" in
15654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655  *) ac_try_echo=$ac_try;;
15656esac
15657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658  (eval "$ac_try") 2>&5
15659  ac_status=$?
15660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661  (exit $ac_status); }; }; then
15662  ac_cv_header_time=yes
15663else
15664  echo "$as_me: failed program was:" >&5
15665sed 's/^/| /' conftest.$ac_ext >&5
15666
15667	ac_cv_header_time=no
15668fi
15669
15670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671fi
15672{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15673echo "${ECHO_T}$ac_cv_header_time" >&6; }
15674if test $ac_cv_header_time = yes; then
15675
15676cat >>confdefs.h <<\_ACEOF
15677#define TIME_WITH_SYS_TIME 1
15678_ACEOF
15679
15680fi
15681
15682
15683
15684
15685
15686
15687
15688
15689for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15690do
15691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696  echo $ECHO_N "(cached) $ECHO_C" >&6
15697fi
15698ac_res=`eval echo '${'$as_ac_Header'}'`
15699	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15700echo "${ECHO_T}$ac_res" >&6; }
15701else
15702  # Is the header compilable?
15703{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15705cat >conftest.$ac_ext <<_ACEOF
15706/* confdefs.h.  */
15707_ACEOF
15708cat confdefs.h >>conftest.$ac_ext
15709cat >>conftest.$ac_ext <<_ACEOF
15710/* end confdefs.h.  */
15711$ac_includes_default
15712#include <$ac_header>
15713_ACEOF
15714rm -f conftest.$ac_objext
15715if { (ac_try="$ac_compile"
15716case "(($ac_try" in
15717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718  *) ac_try_echo=$ac_try;;
15719esac
15720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721  (eval "$ac_compile") 2>conftest.er1
15722  ac_status=$?
15723  grep -v '^ *+' conftest.er1 >conftest.err
15724  rm -f conftest.er1
15725  cat conftest.err >&5
15726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727  (exit $ac_status); } &&
15728	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729  { (case "(($ac_try" in
15730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731  *) ac_try_echo=$ac_try;;
15732esac
15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734  (eval "$ac_try") 2>&5
15735  ac_status=$?
15736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737  (exit $ac_status); }; } &&
15738	 { ac_try='test -s conftest.$ac_objext'
15739  { (case "(($ac_try" in
15740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741  *) ac_try_echo=$ac_try;;
15742esac
15743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744  (eval "$ac_try") 2>&5
15745  ac_status=$?
15746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747  (exit $ac_status); }; }; then
15748  ac_header_compiler=yes
15749else
15750  echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753	ac_header_compiler=no
15754fi
15755
15756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758echo "${ECHO_T}$ac_header_compiler" >&6; }
15759
15760# Is the header present?
15761{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15763cat >conftest.$ac_ext <<_ACEOF
15764/* confdefs.h.  */
15765_ACEOF
15766cat confdefs.h >>conftest.$ac_ext
15767cat >>conftest.$ac_ext <<_ACEOF
15768/* end confdefs.h.  */
15769#include <$ac_header>
15770_ACEOF
15771if { (ac_try="$ac_cpp conftest.$ac_ext"
15772case "(($ac_try" in
15773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774  *) ac_try_echo=$ac_try;;
15775esac
15776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15778  ac_status=$?
15779  grep -v '^ *+' conftest.er1 >conftest.err
15780  rm -f conftest.er1
15781  cat conftest.err >&5
15782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783  (exit $ac_status); } >/dev/null; then
15784  if test -s conftest.err; then
15785    ac_cpp_err=$ac_c_preproc_warn_flag
15786    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15787  else
15788    ac_cpp_err=
15789  fi
15790else
15791  ac_cpp_err=yes
15792fi
15793if test -z "$ac_cpp_err"; then
15794  ac_header_preproc=yes
15795else
15796  echo "$as_me: failed program was:" >&5
15797sed 's/^/| /' conftest.$ac_ext >&5
15798
15799  ac_header_preproc=no
15800fi
15801
15802rm -f conftest.err conftest.$ac_ext
15803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15804echo "${ECHO_T}$ac_header_preproc" >&6; }
15805
15806# So?  What about this header?
15807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15808  yes:no: )
15809    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15811    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15812echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15813    ac_header_preproc=yes
15814    ;;
15815  no:yes:* )
15816    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15817echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15818    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15819echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15820    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15821echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15822    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15823echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15824    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15826    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15827echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15828    ( cat <<\_ASBOX
15829## ----------------------------------- ##
15830## Report this to llvmbugs@cs.uiuc.edu ##
15831## ----------------------------------- ##
15832_ASBOX
15833     ) | sed "s/^/$as_me: WARNING:     /" >&2
15834    ;;
15835esac
15836{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839  echo $ECHO_N "(cached) $ECHO_C" >&6
15840else
15841  eval "$as_ac_Header=\$ac_header_preproc"
15842fi
15843ac_res=`eval echo '${'$as_ac_Header'}'`
15844	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15845echo "${ECHO_T}$ac_res" >&6; }
15846
15847fi
15848if test `eval echo '${'$as_ac_Header'}'` = yes; then
15849  cat >>confdefs.h <<_ACEOF
15850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15851_ACEOF
15852
15853fi
15854
15855done
15856
15857
15858
15859
15860
15861
15862
15863for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15864do
15865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870  echo $ECHO_N "(cached) $ECHO_C" >&6
15871fi
15872ac_res=`eval echo '${'$as_ac_Header'}'`
15873	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15874echo "${ECHO_T}$ac_res" >&6; }
15875else
15876  # Is the header compilable?
15877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15879cat >conftest.$ac_ext <<_ACEOF
15880/* confdefs.h.  */
15881_ACEOF
15882cat confdefs.h >>conftest.$ac_ext
15883cat >>conftest.$ac_ext <<_ACEOF
15884/* end confdefs.h.  */
15885$ac_includes_default
15886#include <$ac_header>
15887_ACEOF
15888rm -f conftest.$ac_objext
15889if { (ac_try="$ac_compile"
15890case "(($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_compile") 2>conftest.er1
15896  ac_status=$?
15897  grep -v '^ *+' conftest.er1 >conftest.err
15898  rm -f conftest.er1
15899  cat conftest.err >&5
15900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901  (exit $ac_status); } &&
15902	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15903  { (case "(($ac_try" in
15904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905  *) ac_try_echo=$ac_try;;
15906esac
15907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908  (eval "$ac_try") 2>&5
15909  ac_status=$?
15910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911  (exit $ac_status); }; } &&
15912	 { ac_try='test -s conftest.$ac_objext'
15913  { (case "(($ac_try" in
15914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915  *) ac_try_echo=$ac_try;;
15916esac
15917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918  (eval "$ac_try") 2>&5
15919  ac_status=$?
15920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921  (exit $ac_status); }; }; then
15922  ac_header_compiler=yes
15923else
15924  echo "$as_me: failed program was:" >&5
15925sed 's/^/| /' conftest.$ac_ext >&5
15926
15927	ac_header_compiler=no
15928fi
15929
15930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932echo "${ECHO_T}$ac_header_compiler" >&6; }
15933
15934# Is the header present?
15935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15937cat >conftest.$ac_ext <<_ACEOF
15938/* confdefs.h.  */
15939_ACEOF
15940cat confdefs.h >>conftest.$ac_ext
15941cat >>conftest.$ac_ext <<_ACEOF
15942/* end confdefs.h.  */
15943#include <$ac_header>
15944_ACEOF
15945if { (ac_try="$ac_cpp conftest.$ac_ext"
15946case "(($ac_try" in
15947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948  *) ac_try_echo=$ac_try;;
15949esac
15950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15952  ac_status=$?
15953  grep -v '^ *+' conftest.er1 >conftest.err
15954  rm -f conftest.er1
15955  cat conftest.err >&5
15956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957  (exit $ac_status); } >/dev/null; then
15958  if test -s conftest.err; then
15959    ac_cpp_err=$ac_c_preproc_warn_flag
15960    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15961  else
15962    ac_cpp_err=
15963  fi
15964else
15965  ac_cpp_err=yes
15966fi
15967if test -z "$ac_cpp_err"; then
15968  ac_header_preproc=yes
15969else
15970  echo "$as_me: failed program was:" >&5
15971sed 's/^/| /' conftest.$ac_ext >&5
15972
15973  ac_header_preproc=no
15974fi
15975
15976rm -f conftest.err conftest.$ac_ext
15977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15978echo "${ECHO_T}$ac_header_preproc" >&6; }
15979
15980# So?  What about this header?
15981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15982  yes:no: )
15983    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15987    ac_header_preproc=yes
15988    ;;
15989  no:yes:* )
15990    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15992    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15993echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15994    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15996    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15997echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16000    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16002    ( cat <<\_ASBOX
16003## ----------------------------------- ##
16004## Report this to llvmbugs@cs.uiuc.edu ##
16005## ----------------------------------- ##
16006_ASBOX
16007     ) | sed "s/^/$as_me: WARNING:     /" >&2
16008    ;;
16009esac
16010{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013  echo $ECHO_N "(cached) $ECHO_C" >&6
16014else
16015  eval "$as_ac_Header=\$ac_header_preproc"
16016fi
16017ac_res=`eval echo '${'$as_ac_Header'}'`
16018	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16019echo "${ECHO_T}$ac_res" >&6; }
16020
16021fi
16022if test `eval echo '${'$as_ac_Header'}'` = yes; then
16023  cat >>confdefs.h <<_ACEOF
16024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16025_ACEOF
16026
16027fi
16028
16029done
16030
16031
16032
16033for ac_header in utime.h windows.h
16034do
16035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16040  echo $ECHO_N "(cached) $ECHO_C" >&6
16041fi
16042ac_res=`eval echo '${'$as_ac_Header'}'`
16043	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16044echo "${ECHO_T}$ac_res" >&6; }
16045else
16046  # Is the header compilable?
16047{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16049cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h.  */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h.  */
16055$ac_includes_default
16056#include <$ac_header>
16057_ACEOF
16058rm -f conftest.$ac_objext
16059if { (ac_try="$ac_compile"
16060case "(($ac_try" in
16061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062  *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065  (eval "$ac_compile") 2>conftest.er1
16066  ac_status=$?
16067  grep -v '^ *+' conftest.er1 >conftest.err
16068  rm -f conftest.er1
16069  cat conftest.err >&5
16070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071  (exit $ac_status); } &&
16072	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073  { (case "(($ac_try" in
16074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075  *) ac_try_echo=$ac_try;;
16076esac
16077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078  (eval "$ac_try") 2>&5
16079  ac_status=$?
16080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081  (exit $ac_status); }; } &&
16082	 { ac_try='test -s conftest.$ac_objext'
16083  { (case "(($ac_try" in
16084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085  *) ac_try_echo=$ac_try;;
16086esac
16087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088  (eval "$ac_try") 2>&5
16089  ac_status=$?
16090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091  (exit $ac_status); }; }; then
16092  ac_header_compiler=yes
16093else
16094  echo "$as_me: failed program was:" >&5
16095sed 's/^/| /' conftest.$ac_ext >&5
16096
16097	ac_header_compiler=no
16098fi
16099
16100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16102echo "${ECHO_T}$ac_header_compiler" >&6; }
16103
16104# Is the header present?
16105{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16107cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h.  */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h.  */
16113#include <$ac_header>
16114_ACEOF
16115if { (ac_try="$ac_cpp conftest.$ac_ext"
16116case "(($ac_try" in
16117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118  *) ac_try_echo=$ac_try;;
16119esac
16120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16122  ac_status=$?
16123  grep -v '^ *+' conftest.er1 >conftest.err
16124  rm -f conftest.er1
16125  cat conftest.err >&5
16126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127  (exit $ac_status); } >/dev/null; then
16128  if test -s conftest.err; then
16129    ac_cpp_err=$ac_c_preproc_warn_flag
16130    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16131  else
16132    ac_cpp_err=
16133  fi
16134else
16135  ac_cpp_err=yes
16136fi
16137if test -z "$ac_cpp_err"; then
16138  ac_header_preproc=yes
16139else
16140  echo "$as_me: failed program was:" >&5
16141sed 's/^/| /' conftest.$ac_ext >&5
16142
16143  ac_header_preproc=no
16144fi
16145
16146rm -f conftest.err conftest.$ac_ext
16147{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16148echo "${ECHO_T}$ac_header_preproc" >&6; }
16149
16150# So?  What about this header?
16151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16152  yes:no: )
16153    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16154echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16155    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16156echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16157    ac_header_preproc=yes
16158    ;;
16159  no:yes:* )
16160    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16161echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16162    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16163echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16164    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16165echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16166    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16167echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16168    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16170    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16171echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16172    ( cat <<\_ASBOX
16173## ----------------------------------- ##
16174## Report this to llvmbugs@cs.uiuc.edu ##
16175## ----------------------------------- ##
16176_ASBOX
16177     ) | sed "s/^/$as_me: WARNING:     /" >&2
16178    ;;
16179esac
16180{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183  echo $ECHO_N "(cached) $ECHO_C" >&6
16184else
16185  eval "$as_ac_Header=\$ac_header_preproc"
16186fi
16187ac_res=`eval echo '${'$as_ac_Header'}'`
16188	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16189echo "${ECHO_T}$ac_res" >&6; }
16190
16191fi
16192if test `eval echo '${'$as_ac_Header'}'` = yes; then
16193  cat >>confdefs.h <<_ACEOF
16194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16195_ACEOF
16196
16197fi
16198
16199done
16200
16201
16202
16203
16204
16205for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16206do
16207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16209  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212  echo $ECHO_N "(cached) $ECHO_C" >&6
16213fi
16214ac_res=`eval echo '${'$as_ac_Header'}'`
16215	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16216echo "${ECHO_T}$ac_res" >&6; }
16217else
16218  # Is the header compilable?
16219{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16221cat >conftest.$ac_ext <<_ACEOF
16222/* confdefs.h.  */
16223_ACEOF
16224cat confdefs.h >>conftest.$ac_ext
16225cat >>conftest.$ac_ext <<_ACEOF
16226/* end confdefs.h.  */
16227$ac_includes_default
16228#include <$ac_header>
16229_ACEOF
16230rm -f conftest.$ac_objext
16231if { (ac_try="$ac_compile"
16232case "(($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_compile") 2>conftest.er1
16238  ac_status=$?
16239  grep -v '^ *+' conftest.er1 >conftest.err
16240  rm -f conftest.er1
16241  cat conftest.err >&5
16242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243  (exit $ac_status); } &&
16244	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245  { (case "(($ac_try" in
16246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247  *) ac_try_echo=$ac_try;;
16248esac
16249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250  (eval "$ac_try") 2>&5
16251  ac_status=$?
16252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253  (exit $ac_status); }; } &&
16254	 { ac_try='test -s conftest.$ac_objext'
16255  { (case "(($ac_try" in
16256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257  *) ac_try_echo=$ac_try;;
16258esac
16259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260  (eval "$ac_try") 2>&5
16261  ac_status=$?
16262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263  (exit $ac_status); }; }; then
16264  ac_header_compiler=yes
16265else
16266  echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269	ac_header_compiler=no
16270fi
16271
16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16274echo "${ECHO_T}$ac_header_compiler" >&6; }
16275
16276# Is the header present?
16277{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16279cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h.  */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h.  */
16285#include <$ac_header>
16286_ACEOF
16287if { (ac_try="$ac_cpp conftest.$ac_ext"
16288case "(($ac_try" in
16289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290  *) ac_try_echo=$ac_try;;
16291esac
16292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16293  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16294  ac_status=$?
16295  grep -v '^ *+' conftest.er1 >conftest.err
16296  rm -f conftest.er1
16297  cat conftest.err >&5
16298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299  (exit $ac_status); } >/dev/null; then
16300  if test -s conftest.err; then
16301    ac_cpp_err=$ac_c_preproc_warn_flag
16302    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16303  else
16304    ac_cpp_err=
16305  fi
16306else
16307  ac_cpp_err=yes
16308fi
16309if test -z "$ac_cpp_err"; then
16310  ac_header_preproc=yes
16311else
16312  echo "$as_me: failed program was:" >&5
16313sed 's/^/| /' conftest.$ac_ext >&5
16314
16315  ac_header_preproc=no
16316fi
16317
16318rm -f conftest.err conftest.$ac_ext
16319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16320echo "${ECHO_T}$ac_header_preproc" >&6; }
16321
16322# So?  What about this header?
16323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16324  yes:no: )
16325    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16327    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16329    ac_header_preproc=yes
16330    ;;
16331  no:yes:* )
16332    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16334    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16335echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16336    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16338    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16339echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16340    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16342    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16344    ( cat <<\_ASBOX
16345## ----------------------------------- ##
16346## Report this to llvmbugs@cs.uiuc.edu ##
16347## ----------------------------------- ##
16348_ASBOX
16349     ) | sed "s/^/$as_me: WARNING:     /" >&2
16350    ;;
16351esac
16352{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355  echo $ECHO_N "(cached) $ECHO_C" >&6
16356else
16357  eval "$as_ac_Header=\$ac_header_preproc"
16358fi
16359ac_res=`eval echo '${'$as_ac_Header'}'`
16360	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16361echo "${ECHO_T}$ac_res" >&6; }
16362
16363fi
16364if test `eval echo '${'$as_ac_Header'}'` = yes; then
16365  cat >>confdefs.h <<_ACEOF
16366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16367_ACEOF
16368
16369fi
16370
16371done
16372
16373
16374
16375
16376
16377for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16378do
16379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16384  echo $ECHO_N "(cached) $ECHO_C" >&6
16385fi
16386ac_res=`eval echo '${'$as_ac_Header'}'`
16387	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16388echo "${ECHO_T}$ac_res" >&6; }
16389else
16390  # Is the header compilable?
16391{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16393cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h.  */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h.  */
16399$ac_includes_default
16400#include <$ac_header>
16401_ACEOF
16402rm -f conftest.$ac_objext
16403if { (ac_try="$ac_compile"
16404case "(($ac_try" in
16405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406  *) ac_try_echo=$ac_try;;
16407esac
16408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409  (eval "$ac_compile") 2>conftest.er1
16410  ac_status=$?
16411  grep -v '^ *+' conftest.er1 >conftest.err
16412  rm -f conftest.er1
16413  cat conftest.err >&5
16414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415  (exit $ac_status); } &&
16416	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417  { (case "(($ac_try" in
16418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419  *) ac_try_echo=$ac_try;;
16420esac
16421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422  (eval "$ac_try") 2>&5
16423  ac_status=$?
16424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425  (exit $ac_status); }; } &&
16426	 { ac_try='test -s conftest.$ac_objext'
16427  { (case "(($ac_try" in
16428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429  *) ac_try_echo=$ac_try;;
16430esac
16431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432  (eval "$ac_try") 2>&5
16433  ac_status=$?
16434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435  (exit $ac_status); }; }; then
16436  ac_header_compiler=yes
16437else
16438  echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441	ac_header_compiler=no
16442fi
16443
16444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16446echo "${ECHO_T}$ac_header_compiler" >&6; }
16447
16448# Is the header present?
16449{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16451cat >conftest.$ac_ext <<_ACEOF
16452/* confdefs.h.  */
16453_ACEOF
16454cat confdefs.h >>conftest.$ac_ext
16455cat >>conftest.$ac_ext <<_ACEOF
16456/* end confdefs.h.  */
16457#include <$ac_header>
16458_ACEOF
16459if { (ac_try="$ac_cpp conftest.$ac_ext"
16460case "(($ac_try" in
16461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462  *) ac_try_echo=$ac_try;;
16463esac
16464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16466  ac_status=$?
16467  grep -v '^ *+' conftest.er1 >conftest.err
16468  rm -f conftest.er1
16469  cat conftest.err >&5
16470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471  (exit $ac_status); } >/dev/null; then
16472  if test -s conftest.err; then
16473    ac_cpp_err=$ac_c_preproc_warn_flag
16474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16475  else
16476    ac_cpp_err=
16477  fi
16478else
16479  ac_cpp_err=yes
16480fi
16481if test -z "$ac_cpp_err"; then
16482  ac_header_preproc=yes
16483else
16484  echo "$as_me: failed program was:" >&5
16485sed 's/^/| /' conftest.$ac_ext >&5
16486
16487  ac_header_preproc=no
16488fi
16489
16490rm -f conftest.err conftest.$ac_ext
16491{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16492echo "${ECHO_T}$ac_header_preproc" >&6; }
16493
16494# So?  What about this header?
16495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16496  yes:no: )
16497    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16499    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16501    ac_header_preproc=yes
16502    ;;
16503  no:yes:* )
16504    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16506    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16507echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16508    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16510    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16511echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16512    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16514    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16516    ( cat <<\_ASBOX
16517## ----------------------------------- ##
16518## Report this to llvmbugs@cs.uiuc.edu ##
16519## ----------------------------------- ##
16520_ASBOX
16521     ) | sed "s/^/$as_me: WARNING:     /" >&2
16522    ;;
16523esac
16524{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16527  echo $ECHO_N "(cached) $ECHO_C" >&6
16528else
16529  eval "$as_ac_Header=\$ac_header_preproc"
16530fi
16531ac_res=`eval echo '${'$as_ac_Header'}'`
16532	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16533echo "${ECHO_T}$ac_res" >&6; }
16534
16535fi
16536if test `eval echo '${'$as_ac_Header'}'` = yes; then
16537  cat >>confdefs.h <<_ACEOF
16538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16539_ACEOF
16540
16541fi
16542
16543done
16544
16545
16546for ac_header in valgrind/valgrind.h
16547do
16548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553  echo $ECHO_N "(cached) $ECHO_C" >&6
16554fi
16555ac_res=`eval echo '${'$as_ac_Header'}'`
16556	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16557echo "${ECHO_T}$ac_res" >&6; }
16558else
16559  # Is the header compilable?
16560{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16562cat >conftest.$ac_ext <<_ACEOF
16563/* confdefs.h.  */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h.  */
16568$ac_includes_default
16569#include <$ac_header>
16570_ACEOF
16571rm -f conftest.$ac_objext
16572if { (ac_try="$ac_compile"
16573case "(($ac_try" in
16574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575  *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578  (eval "$ac_compile") 2>conftest.er1
16579  ac_status=$?
16580  grep -v '^ *+' conftest.er1 >conftest.err
16581  rm -f conftest.er1
16582  cat conftest.err >&5
16583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584  (exit $ac_status); } &&
16585	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586  { (case "(($ac_try" in
16587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588  *) ac_try_echo=$ac_try;;
16589esac
16590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591  (eval "$ac_try") 2>&5
16592  ac_status=$?
16593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594  (exit $ac_status); }; } &&
16595	 { ac_try='test -s conftest.$ac_objext'
16596  { (case "(($ac_try" in
16597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598  *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601  (eval "$ac_try") 2>&5
16602  ac_status=$?
16603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604  (exit $ac_status); }; }; then
16605  ac_header_compiler=yes
16606else
16607  echo "$as_me: failed program was:" >&5
16608sed 's/^/| /' conftest.$ac_ext >&5
16609
16610	ac_header_compiler=no
16611fi
16612
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615echo "${ECHO_T}$ac_header_compiler" >&6; }
16616
16617# Is the header present?
16618{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16620cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h.  */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h.  */
16626#include <$ac_header>
16627_ACEOF
16628if { (ac_try="$ac_cpp conftest.$ac_ext"
16629case "(($ac_try" in
16630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631  *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16635  ac_status=$?
16636  grep -v '^ *+' conftest.er1 >conftest.err
16637  rm -f conftest.er1
16638  cat conftest.err >&5
16639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640  (exit $ac_status); } >/dev/null; then
16641  if test -s conftest.err; then
16642    ac_cpp_err=$ac_c_preproc_warn_flag
16643    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16644  else
16645    ac_cpp_err=
16646  fi
16647else
16648  ac_cpp_err=yes
16649fi
16650if test -z "$ac_cpp_err"; then
16651  ac_header_preproc=yes
16652else
16653  echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656  ac_header_preproc=no
16657fi
16658
16659rm -f conftest.err conftest.$ac_ext
16660{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16661echo "${ECHO_T}$ac_header_preproc" >&6; }
16662
16663# So?  What about this header?
16664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16665  yes:no: )
16666    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16668    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16670    ac_header_preproc=yes
16671    ;;
16672  no:yes:* )
16673    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16675    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16676echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16677    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16679    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16680echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16681    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16683    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16685    ( cat <<\_ASBOX
16686## ----------------------------------- ##
16687## Report this to llvmbugs@cs.uiuc.edu ##
16688## ----------------------------------- ##
16689_ASBOX
16690     ) | sed "s/^/$as_me: WARNING:     /" >&2
16691    ;;
16692esac
16693{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16696  echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698  eval "$as_ac_Header=\$ac_header_preproc"
16699fi
16700ac_res=`eval echo '${'$as_ac_Header'}'`
16701	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16702echo "${ECHO_T}$ac_res" >&6; }
16703
16704fi
16705if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706  cat >>confdefs.h <<_ACEOF
16707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16708_ACEOF
16709
16710fi
16711
16712done
16713
16714
16715for ac_header in fenv.h
16716do
16717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16722  echo $ECHO_N "(cached) $ECHO_C" >&6
16723fi
16724ac_res=`eval echo '${'$as_ac_Header'}'`
16725	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16726echo "${ECHO_T}$ac_res" >&6; }
16727else
16728  # Is the header compilable?
16729{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16731cat >conftest.$ac_ext <<_ACEOF
16732/* confdefs.h.  */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h.  */
16737$ac_includes_default
16738#include <$ac_header>
16739_ACEOF
16740rm -f conftest.$ac_objext
16741if { (ac_try="$ac_compile"
16742case "(($ac_try" in
16743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744  *) ac_try_echo=$ac_try;;
16745esac
16746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747  (eval "$ac_compile") 2>conftest.er1
16748  ac_status=$?
16749  grep -v '^ *+' conftest.er1 >conftest.err
16750  rm -f conftest.er1
16751  cat conftest.err >&5
16752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753  (exit $ac_status); } &&
16754	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755  { (case "(($ac_try" in
16756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757  *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760  (eval "$ac_try") 2>&5
16761  ac_status=$?
16762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763  (exit $ac_status); }; } &&
16764	 { ac_try='test -s conftest.$ac_objext'
16765  { (case "(($ac_try" in
16766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767  *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770  (eval "$ac_try") 2>&5
16771  ac_status=$?
16772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773  (exit $ac_status); }; }; then
16774  ac_header_compiler=yes
16775else
16776  echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
16779	ac_header_compiler=no
16780fi
16781
16782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16784echo "${ECHO_T}$ac_header_compiler" >&6; }
16785
16786# Is the header present?
16787{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16789cat >conftest.$ac_ext <<_ACEOF
16790/* confdefs.h.  */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h.  */
16795#include <$ac_header>
16796_ACEOF
16797if { (ac_try="$ac_cpp conftest.$ac_ext"
16798case "(($ac_try" in
16799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800  *) ac_try_echo=$ac_try;;
16801esac
16802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16804  ac_status=$?
16805  grep -v '^ *+' conftest.er1 >conftest.err
16806  rm -f conftest.er1
16807  cat conftest.err >&5
16808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809  (exit $ac_status); } >/dev/null; then
16810  if test -s conftest.err; then
16811    ac_cpp_err=$ac_c_preproc_warn_flag
16812    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16813  else
16814    ac_cpp_err=
16815  fi
16816else
16817  ac_cpp_err=yes
16818fi
16819if test -z "$ac_cpp_err"; then
16820  ac_header_preproc=yes
16821else
16822  echo "$as_me: failed program was:" >&5
16823sed 's/^/| /' conftest.$ac_ext >&5
16824
16825  ac_header_preproc=no
16826fi
16827
16828rm -f conftest.err conftest.$ac_ext
16829{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16830echo "${ECHO_T}$ac_header_preproc" >&6; }
16831
16832# So?  What about this header?
16833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16834  yes:no: )
16835    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16837    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16839    ac_header_preproc=yes
16840    ;;
16841  no:yes:* )
16842    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16844    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16845echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16846    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16848    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16849echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16852    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16854    ( cat <<\_ASBOX
16855## ----------------------------------- ##
16856## Report this to llvmbugs@cs.uiuc.edu ##
16857## ----------------------------------- ##
16858_ASBOX
16859     ) | sed "s/^/$as_me: WARNING:     /" >&2
16860    ;;
16861esac
16862{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16865  echo $ECHO_N "(cached) $ECHO_C" >&6
16866else
16867  eval "$as_ac_Header=\$ac_header_preproc"
16868fi
16869ac_res=`eval echo '${'$as_ac_Header'}'`
16870	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16871echo "${ECHO_T}$ac_res" >&6; }
16872
16873fi
16874if test `eval echo '${'$as_ac_Header'}'` = yes; then
16875  cat >>confdefs.h <<_ACEOF
16876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16877_ACEOF
16878
16879fi
16880
16881done
16882
16883if test "$ENABLE_THREADS" -eq 1 ; then
16884
16885for ac_header in pthread.h
16886do
16887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16892  echo $ECHO_N "(cached) $ECHO_C" >&6
16893fi
16894ac_res=`eval echo '${'$as_ac_Header'}'`
16895	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16896echo "${ECHO_T}$ac_res" >&6; }
16897else
16898  # Is the header compilable?
16899{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16901cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h.  */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h.  */
16907$ac_includes_default
16908#include <$ac_header>
16909_ACEOF
16910rm -f conftest.$ac_objext
16911if { (ac_try="$ac_compile"
16912case "(($ac_try" in
16913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914  *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917  (eval "$ac_compile") 2>conftest.er1
16918  ac_status=$?
16919  grep -v '^ *+' conftest.er1 >conftest.err
16920  rm -f conftest.er1
16921  cat conftest.err >&5
16922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923  (exit $ac_status); } &&
16924	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16925  { (case "(($ac_try" in
16926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927  *) ac_try_echo=$ac_try;;
16928esac
16929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930  (eval "$ac_try") 2>&5
16931  ac_status=$?
16932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933  (exit $ac_status); }; } &&
16934	 { ac_try='test -s conftest.$ac_objext'
16935  { (case "(($ac_try" in
16936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937  *) ac_try_echo=$ac_try;;
16938esac
16939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940  (eval "$ac_try") 2>&5
16941  ac_status=$?
16942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943  (exit $ac_status); }; }; then
16944  ac_header_compiler=yes
16945else
16946  echo "$as_me: failed program was:" >&5
16947sed 's/^/| /' conftest.$ac_ext >&5
16948
16949	ac_header_compiler=no
16950fi
16951
16952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16954echo "${ECHO_T}$ac_header_compiler" >&6; }
16955
16956# Is the header present?
16957{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16959cat >conftest.$ac_ext <<_ACEOF
16960/* confdefs.h.  */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h.  */
16965#include <$ac_header>
16966_ACEOF
16967if { (ac_try="$ac_cpp conftest.$ac_ext"
16968case "(($ac_try" in
16969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970  *) ac_try_echo=$ac_try;;
16971esac
16972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16974  ac_status=$?
16975  grep -v '^ *+' conftest.er1 >conftest.err
16976  rm -f conftest.er1
16977  cat conftest.err >&5
16978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979  (exit $ac_status); } >/dev/null; then
16980  if test -s conftest.err; then
16981    ac_cpp_err=$ac_c_preproc_warn_flag
16982    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16983  else
16984    ac_cpp_err=
16985  fi
16986else
16987  ac_cpp_err=yes
16988fi
16989if test -z "$ac_cpp_err"; then
16990  ac_header_preproc=yes
16991else
16992  echo "$as_me: failed program was:" >&5
16993sed 's/^/| /' conftest.$ac_ext >&5
16994
16995  ac_header_preproc=no
16996fi
16997
16998rm -f conftest.err conftest.$ac_ext
16999{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17000echo "${ECHO_T}$ac_header_preproc" >&6; }
17001
17002# So?  What about this header?
17003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17004  yes:no: )
17005    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17007    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17008echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17009    ac_header_preproc=yes
17010    ;;
17011  no:yes:* )
17012    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17014    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17015echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17016    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17017echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17018    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17019echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17020    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17022    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17023echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17024    ( cat <<\_ASBOX
17025## ----------------------------------- ##
17026## Report this to llvmbugs@cs.uiuc.edu ##
17027## ----------------------------------- ##
17028_ASBOX
17029     ) | sed "s/^/$as_me: WARNING:     /" >&2
17030    ;;
17031esac
17032{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035  echo $ECHO_N "(cached) $ECHO_C" >&6
17036else
17037  eval "$as_ac_Header=\$ac_header_preproc"
17038fi
17039ac_res=`eval echo '${'$as_ac_Header'}'`
17040	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17041echo "${ECHO_T}$ac_res" >&6; }
17042
17043fi
17044if test `eval echo '${'$as_ac_Header'}'` = yes; then
17045  cat >>confdefs.h <<_ACEOF
17046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17047_ACEOF
17048 HAVE_PTHREAD=1
17049
17050else
17051  HAVE_PTHREAD=0
17052
17053fi
17054
17055done
17056
17057else
17058  HAVE_PTHREAD=0
17059
17060fi
17061
17062if test "$llvm_cv_enable_libffi" = "yes" ; then
17063
17064
17065for ac_header in ffi.h ffi/ffi.h
17066do
17067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17072  echo $ECHO_N "(cached) $ECHO_C" >&6
17073fi
17074ac_res=`eval echo '${'$as_ac_Header'}'`
17075	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17076echo "${ECHO_T}$ac_res" >&6; }
17077else
17078  # Is the header compilable?
17079{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17081cat >conftest.$ac_ext <<_ACEOF
17082/* confdefs.h.  */
17083_ACEOF
17084cat confdefs.h >>conftest.$ac_ext
17085cat >>conftest.$ac_ext <<_ACEOF
17086/* end confdefs.h.  */
17087$ac_includes_default
17088#include <$ac_header>
17089_ACEOF
17090rm -f conftest.$ac_objext
17091if { (ac_try="$ac_compile"
17092case "(($ac_try" in
17093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094  *) ac_try_echo=$ac_try;;
17095esac
17096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097  (eval "$ac_compile") 2>conftest.er1
17098  ac_status=$?
17099  grep -v '^ *+' conftest.er1 >conftest.err
17100  rm -f conftest.er1
17101  cat conftest.err >&5
17102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103  (exit $ac_status); } &&
17104	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105  { (case "(($ac_try" in
17106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107  *) ac_try_echo=$ac_try;;
17108esac
17109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110  (eval "$ac_try") 2>&5
17111  ac_status=$?
17112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113  (exit $ac_status); }; } &&
17114	 { ac_try='test -s conftest.$ac_objext'
17115  { (case "(($ac_try" in
17116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117  *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120  (eval "$ac_try") 2>&5
17121  ac_status=$?
17122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123  (exit $ac_status); }; }; then
17124  ac_header_compiler=yes
17125else
17126  echo "$as_me: failed program was:" >&5
17127sed 's/^/| /' conftest.$ac_ext >&5
17128
17129	ac_header_compiler=no
17130fi
17131
17132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17134echo "${ECHO_T}$ac_header_compiler" >&6; }
17135
17136# Is the header present?
17137{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17139cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h.  */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h.  */
17145#include <$ac_header>
17146_ACEOF
17147if { (ac_try="$ac_cpp conftest.$ac_ext"
17148case "(($ac_try" in
17149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150  *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17154  ac_status=$?
17155  grep -v '^ *+' conftest.er1 >conftest.err
17156  rm -f conftest.er1
17157  cat conftest.err >&5
17158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159  (exit $ac_status); } >/dev/null; then
17160  if test -s conftest.err; then
17161    ac_cpp_err=$ac_c_preproc_warn_flag
17162    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17163  else
17164    ac_cpp_err=
17165  fi
17166else
17167  ac_cpp_err=yes
17168fi
17169if test -z "$ac_cpp_err"; then
17170  ac_header_preproc=yes
17171else
17172  echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175  ac_header_preproc=no
17176fi
17177
17178rm -f conftest.err conftest.$ac_ext
17179{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17180echo "${ECHO_T}$ac_header_preproc" >&6; }
17181
17182# So?  What about this header?
17183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17184  yes:no: )
17185    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17187    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17189    ac_header_preproc=yes
17190    ;;
17191  no:yes:* )
17192    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17194    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17195echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17196    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17198    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17199echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17200    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17202    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17204    ( cat <<\_ASBOX
17205## ----------------------------------- ##
17206## Report this to llvmbugs@cs.uiuc.edu ##
17207## ----------------------------------- ##
17208_ASBOX
17209     ) | sed "s/^/$as_me: WARNING:     /" >&2
17210    ;;
17211esac
17212{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215  echo $ECHO_N "(cached) $ECHO_C" >&6
17216else
17217  eval "$as_ac_Header=\$ac_header_preproc"
17218fi
17219ac_res=`eval echo '${'$as_ac_Header'}'`
17220	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17221echo "${ECHO_T}$ac_res" >&6; }
17222
17223fi
17224if test `eval echo '${'$as_ac_Header'}'` = yes; then
17225  cat >>confdefs.h <<_ACEOF
17226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17227_ACEOF
17228
17229fi
17230
17231done
17232
17233fi
17234
17235
17236for ac_header in CrashReporterClient.h
17237do
17238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240  { echo "$as_me:$LINENO: checking for $ac_header" >&5
17241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17243  echo $ECHO_N "(cached) $ECHO_C" >&6
17244fi
17245ac_res=`eval echo '${'$as_ac_Header'}'`
17246	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17247echo "${ECHO_T}$ac_res" >&6; }
17248else
17249  # Is the header compilable?
17250{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17252cat >conftest.$ac_ext <<_ACEOF
17253/* confdefs.h.  */
17254_ACEOF
17255cat confdefs.h >>conftest.$ac_ext
17256cat >>conftest.$ac_ext <<_ACEOF
17257/* end confdefs.h.  */
17258$ac_includes_default
17259#include <$ac_header>
17260_ACEOF
17261rm -f conftest.$ac_objext
17262if { (ac_try="$ac_compile"
17263case "(($ac_try" in
17264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265  *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268  (eval "$ac_compile") 2>conftest.er1
17269  ac_status=$?
17270  grep -v '^ *+' conftest.er1 >conftest.err
17271  rm -f conftest.er1
17272  cat conftest.err >&5
17273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274  (exit $ac_status); } &&
17275	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276  { (case "(($ac_try" in
17277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278  *) ac_try_echo=$ac_try;;
17279esac
17280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281  (eval "$ac_try") 2>&5
17282  ac_status=$?
17283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284  (exit $ac_status); }; } &&
17285	 { ac_try='test -s conftest.$ac_objext'
17286  { (case "(($ac_try" in
17287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288  *) ac_try_echo=$ac_try;;
17289esac
17290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291  (eval "$ac_try") 2>&5
17292  ac_status=$?
17293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294  (exit $ac_status); }; }; then
17295  ac_header_compiler=yes
17296else
17297  echo "$as_me: failed program was:" >&5
17298sed 's/^/| /' conftest.$ac_ext >&5
17299
17300	ac_header_compiler=no
17301fi
17302
17303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17305echo "${ECHO_T}$ac_header_compiler" >&6; }
17306
17307# Is the header present?
17308{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17310cat >conftest.$ac_ext <<_ACEOF
17311/* confdefs.h.  */
17312_ACEOF
17313cat confdefs.h >>conftest.$ac_ext
17314cat >>conftest.$ac_ext <<_ACEOF
17315/* end confdefs.h.  */
17316#include <$ac_header>
17317_ACEOF
17318if { (ac_try="$ac_cpp conftest.$ac_ext"
17319case "(($ac_try" in
17320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321  *) ac_try_echo=$ac_try;;
17322esac
17323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17325  ac_status=$?
17326  grep -v '^ *+' conftest.er1 >conftest.err
17327  rm -f conftest.er1
17328  cat conftest.err >&5
17329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330  (exit $ac_status); } >/dev/null; then
17331  if test -s conftest.err; then
17332    ac_cpp_err=$ac_c_preproc_warn_flag
17333    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17334  else
17335    ac_cpp_err=
17336  fi
17337else
17338  ac_cpp_err=yes
17339fi
17340if test -z "$ac_cpp_err"; then
17341  ac_header_preproc=yes
17342else
17343  echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346  ac_header_preproc=no
17347fi
17348
17349rm -f conftest.err conftest.$ac_ext
17350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17351echo "${ECHO_T}$ac_header_preproc" >&6; }
17352
17353# So?  What about this header?
17354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17355  yes:no: )
17356    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17360    ac_header_preproc=yes
17361    ;;
17362  no:yes:* )
17363    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17365    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17366echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17367    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17369    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17370echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17371    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17373    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17375    ( cat <<\_ASBOX
17376## ----------------------------------- ##
17377## Report this to llvmbugs@cs.uiuc.edu ##
17378## ----------------------------------- ##
17379_ASBOX
17380     ) | sed "s/^/$as_me: WARNING:     /" >&2
17381    ;;
17382esac
17383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17386  echo $ECHO_N "(cached) $ECHO_C" >&6
17387else
17388  eval "$as_ac_Header=\$ac_header_preproc"
17389fi
17390ac_res=`eval echo '${'$as_ac_Header'}'`
17391	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17392echo "${ECHO_T}$ac_res" >&6; }
17393
17394fi
17395if test `eval echo '${'$as_ac_Header'}'` = yes; then
17396  cat >>confdefs.h <<_ACEOF
17397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17398_ACEOF
17399
17400fi
17401
17402done
17403
17404
17405
17406
17407
17408  { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17409echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17410if test "${ac_cv_huge_val_sanity+set}" = set; then
17411  echo $ECHO_N "(cached) $ECHO_C" >&6
17412else
17413
17414    ac_ext=cpp
17415ac_cpp='$CXXCPP $CPPFLAGS'
17416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17419
17420    ac_save_CXXFLAGS=$CXXFLAGS
17421    CXXFLAGS=-pedantic
17422    if test "$cross_compiling" = yes; then
17423  ac_cv_huge_val_sanity=yes
17424else
17425  cat >conftest.$ac_ext <<_ACEOF
17426/* confdefs.h.  */
17427_ACEOF
17428cat confdefs.h >>conftest.$ac_ext
17429cat >>conftest.$ac_ext <<_ACEOF
17430/* end confdefs.h.  */
17431#include <math.h>
17432int
17433main ()
17434{
17435double x = HUGE_VAL; return x != x;
17436  ;
17437  return 0;
17438}
17439_ACEOF
17440rm -f conftest$ac_exeext
17441if { (ac_try="$ac_link"
17442case "(($ac_try" in
17443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444  *) ac_try_echo=$ac_try;;
17445esac
17446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447  (eval "$ac_link") 2>&5
17448  ac_status=$?
17449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17451  { (case "(($ac_try" in
17452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453  *) ac_try_echo=$ac_try;;
17454esac
17455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456  (eval "$ac_try") 2>&5
17457  ac_status=$?
17458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459  (exit $ac_status); }; }; then
17460  ac_cv_huge_val_sanity=yes
17461else
17462  echo "$as_me: program exited with status $ac_status" >&5
17463echo "$as_me: failed program was:" >&5
17464sed 's/^/| /' conftest.$ac_ext >&5
17465
17466( exit $ac_status )
17467ac_cv_huge_val_sanity=no
17468fi
17469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17470fi
17471
17472
17473    CXXFLAGS=$ac_save_CXXFLAGS
17474    ac_ext=c
17475ac_cpp='$CPP $CPPFLAGS'
17476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478ac_compiler_gnu=$ac_cv_c_compiler_gnu
17479
17480
17481fi
17482{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17483echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17484  HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17485
17486
17487{ echo "$as_me:$LINENO: checking for pid_t" >&5
17488echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17489if test "${ac_cv_type_pid_t+set}" = set; then
17490  echo $ECHO_N "(cached) $ECHO_C" >&6
17491else
17492  cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h.  */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h.  */
17498$ac_includes_default
17499typedef pid_t ac__type_new_;
17500int
17501main ()
17502{
17503if ((ac__type_new_ *) 0)
17504  return 0;
17505if (sizeof (ac__type_new_))
17506  return 0;
17507  ;
17508  return 0;
17509}
17510_ACEOF
17511rm -f conftest.$ac_objext
17512if { (ac_try="$ac_compile"
17513case "(($ac_try" in
17514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515  *) ac_try_echo=$ac_try;;
17516esac
17517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518  (eval "$ac_compile") 2>conftest.er1
17519  ac_status=$?
17520  grep -v '^ *+' conftest.er1 >conftest.err
17521  rm -f conftest.er1
17522  cat conftest.err >&5
17523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524  (exit $ac_status); } &&
17525	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17526  { (case "(($ac_try" in
17527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528  *) ac_try_echo=$ac_try;;
17529esac
17530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531  (eval "$ac_try") 2>&5
17532  ac_status=$?
17533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534  (exit $ac_status); }; } &&
17535	 { ac_try='test -s conftest.$ac_objext'
17536  { (case "(($ac_try" in
17537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538  *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541  (eval "$ac_try") 2>&5
17542  ac_status=$?
17543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544  (exit $ac_status); }; }; then
17545  ac_cv_type_pid_t=yes
17546else
17547  echo "$as_me: failed program was:" >&5
17548sed 's/^/| /' conftest.$ac_ext >&5
17549
17550	ac_cv_type_pid_t=no
17551fi
17552
17553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554fi
17555{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17556echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17557if test $ac_cv_type_pid_t = yes; then
17558  :
17559else
17560
17561cat >>confdefs.h <<_ACEOF
17562#define pid_t int
17563_ACEOF
17564
17565fi
17566
17567{ echo "$as_me:$LINENO: checking for size_t" >&5
17568echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17569if test "${ac_cv_type_size_t+set}" = set; then
17570  echo $ECHO_N "(cached) $ECHO_C" >&6
17571else
17572  cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h.  */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h.  */
17578$ac_includes_default
17579typedef size_t ac__type_new_;
17580int
17581main ()
17582{
17583if ((ac__type_new_ *) 0)
17584  return 0;
17585if (sizeof (ac__type_new_))
17586  return 0;
17587  ;
17588  return 0;
17589}
17590_ACEOF
17591rm -f conftest.$ac_objext
17592if { (ac_try="$ac_compile"
17593case "(($ac_try" in
17594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595  *) ac_try_echo=$ac_try;;
17596esac
17597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598  (eval "$ac_compile") 2>conftest.er1
17599  ac_status=$?
17600  grep -v '^ *+' conftest.er1 >conftest.err
17601  rm -f conftest.er1
17602  cat conftest.err >&5
17603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604  (exit $ac_status); } &&
17605	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606  { (case "(($ac_try" in
17607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608  *) ac_try_echo=$ac_try;;
17609esac
17610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611  (eval "$ac_try") 2>&5
17612  ac_status=$?
17613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614  (exit $ac_status); }; } &&
17615	 { ac_try='test -s conftest.$ac_objext'
17616  { (case "(($ac_try" in
17617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618  *) ac_try_echo=$ac_try;;
17619esac
17620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621  (eval "$ac_try") 2>&5
17622  ac_status=$?
17623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624  (exit $ac_status); }; }; then
17625  ac_cv_type_size_t=yes
17626else
17627  echo "$as_me: failed program was:" >&5
17628sed 's/^/| /' conftest.$ac_ext >&5
17629
17630	ac_cv_type_size_t=no
17631fi
17632
17633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634fi
17635{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17636echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17637if test $ac_cv_type_size_t = yes; then
17638  :
17639else
17640
17641cat >>confdefs.h <<_ACEOF
17642#define size_t unsigned int
17643_ACEOF
17644
17645fi
17646
17647
17648cat >>confdefs.h <<_ACEOF
17649#define RETSIGTYPE void
17650_ACEOF
17651
17652{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17653echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17654if test "${ac_cv_struct_tm+set}" = set; then
17655  echo $ECHO_N "(cached) $ECHO_C" >&6
17656else
17657  cat >conftest.$ac_ext <<_ACEOF
17658/* confdefs.h.  */
17659_ACEOF
17660cat confdefs.h >>conftest.$ac_ext
17661cat >>conftest.$ac_ext <<_ACEOF
17662/* end confdefs.h.  */
17663#include <sys/types.h>
17664#include <time.h>
17665
17666int
17667main ()
17668{
17669struct tm *tp; tp->tm_sec;
17670  ;
17671  return 0;
17672}
17673_ACEOF
17674rm -f conftest.$ac_objext
17675if { (ac_try="$ac_compile"
17676case "(($ac_try" in
17677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678  *) ac_try_echo=$ac_try;;
17679esac
17680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681  (eval "$ac_compile") 2>conftest.er1
17682  ac_status=$?
17683  grep -v '^ *+' conftest.er1 >conftest.err
17684  rm -f conftest.er1
17685  cat conftest.err >&5
17686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687  (exit $ac_status); } &&
17688	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17689  { (case "(($ac_try" in
17690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691  *) ac_try_echo=$ac_try;;
17692esac
17693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694  (eval "$ac_try") 2>&5
17695  ac_status=$?
17696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697  (exit $ac_status); }; } &&
17698	 { ac_try='test -s conftest.$ac_objext'
17699  { (case "(($ac_try" in
17700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701  *) ac_try_echo=$ac_try;;
17702esac
17703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704  (eval "$ac_try") 2>&5
17705  ac_status=$?
17706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707  (exit $ac_status); }; }; then
17708  ac_cv_struct_tm=time.h
17709else
17710  echo "$as_me: failed program was:" >&5
17711sed 's/^/| /' conftest.$ac_ext >&5
17712
17713	ac_cv_struct_tm=sys/time.h
17714fi
17715
17716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717fi
17718{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17719echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17720if test $ac_cv_struct_tm = sys/time.h; then
17721
17722cat >>confdefs.h <<\_ACEOF
17723#define TM_IN_SYS_TIME 1
17724_ACEOF
17725
17726fi
17727
17728{ echo "$as_me:$LINENO: checking for int64_t" >&5
17729echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17730if test "${ac_cv_type_int64_t+set}" = set; then
17731  echo $ECHO_N "(cached) $ECHO_C" >&6
17732else
17733  cat >conftest.$ac_ext <<_ACEOF
17734/* confdefs.h.  */
17735_ACEOF
17736cat confdefs.h >>conftest.$ac_ext
17737cat >>conftest.$ac_ext <<_ACEOF
17738/* end confdefs.h.  */
17739$ac_includes_default
17740typedef int64_t ac__type_new_;
17741int
17742main ()
17743{
17744if ((ac__type_new_ *) 0)
17745  return 0;
17746if (sizeof (ac__type_new_))
17747  return 0;
17748  ;
17749  return 0;
17750}
17751_ACEOF
17752rm -f conftest.$ac_objext
17753if { (ac_try="$ac_compile"
17754case "(($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_compile") 2>conftest.er1
17760  ac_status=$?
17761  grep -v '^ *+' conftest.er1 >conftest.err
17762  rm -f conftest.er1
17763  cat conftest.err >&5
17764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765  (exit $ac_status); } &&
17766	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767  { (case "(($ac_try" in
17768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769  *) ac_try_echo=$ac_try;;
17770esac
17771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772  (eval "$ac_try") 2>&5
17773  ac_status=$?
17774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775  (exit $ac_status); }; } &&
17776	 { ac_try='test -s conftest.$ac_objext'
17777  { (case "(($ac_try" in
17778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779  *) ac_try_echo=$ac_try;;
17780esac
17781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782  (eval "$ac_try") 2>&5
17783  ac_status=$?
17784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785  (exit $ac_status); }; }; then
17786  ac_cv_type_int64_t=yes
17787else
17788  echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791	ac_cv_type_int64_t=no
17792fi
17793
17794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795fi
17796{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17797echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17798if test $ac_cv_type_int64_t = yes; then
17799
17800cat >>confdefs.h <<_ACEOF
17801#define HAVE_INT64_T 1
17802_ACEOF
17803
17804
17805else
17806  { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17807echo "$as_me: error: Type int64_t required but not found" >&2;}
17808   { (exit 1); exit 1; }; }
17809fi
17810
17811{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17812echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17813if test "${ac_cv_type_uint64_t+set}" = set; then
17814  echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816  cat >conftest.$ac_ext <<_ACEOF
17817/* confdefs.h.  */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
17821/* end confdefs.h.  */
17822$ac_includes_default
17823typedef uint64_t ac__type_new_;
17824int
17825main ()
17826{
17827if ((ac__type_new_ *) 0)
17828  return 0;
17829if (sizeof (ac__type_new_))
17830  return 0;
17831  ;
17832  return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext
17836if { (ac_try="$ac_compile"
17837case "(($ac_try" in
17838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839  *) ac_try_echo=$ac_try;;
17840esac
17841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842  (eval "$ac_compile") 2>conftest.er1
17843  ac_status=$?
17844  grep -v '^ *+' conftest.er1 >conftest.err
17845  rm -f conftest.er1
17846  cat conftest.err >&5
17847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848  (exit $ac_status); } &&
17849	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850  { (case "(($ac_try" in
17851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852  *) ac_try_echo=$ac_try;;
17853esac
17854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855  (eval "$ac_try") 2>&5
17856  ac_status=$?
17857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858  (exit $ac_status); }; } &&
17859	 { ac_try='test -s conftest.$ac_objext'
17860  { (case "(($ac_try" in
17861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862  *) ac_try_echo=$ac_try;;
17863esac
17864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865  (eval "$ac_try") 2>&5
17866  ac_status=$?
17867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868  (exit $ac_status); }; }; then
17869  ac_cv_type_uint64_t=yes
17870else
17871  echo "$as_me: failed program was:" >&5
17872sed 's/^/| /' conftest.$ac_ext >&5
17873
17874	ac_cv_type_uint64_t=no
17875fi
17876
17877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878fi
17879{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17880echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17881if test $ac_cv_type_uint64_t = yes; then
17882
17883cat >>confdefs.h <<_ACEOF
17884#define HAVE_UINT64_T 1
17885_ACEOF
17886
17887
17888else
17889  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17890echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17891if test "${ac_cv_type_u_int64_t+set}" = set; then
17892  echo $ECHO_N "(cached) $ECHO_C" >&6
17893else
17894  cat >conftest.$ac_ext <<_ACEOF
17895/* confdefs.h.  */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h.  */
17900$ac_includes_default
17901typedef u_int64_t ac__type_new_;
17902int
17903main ()
17904{
17905if ((ac__type_new_ *) 0)
17906  return 0;
17907if (sizeof (ac__type_new_))
17908  return 0;
17909  ;
17910  return 0;
17911}
17912_ACEOF
17913rm -f conftest.$ac_objext
17914if { (ac_try="$ac_compile"
17915case "(($ac_try" in
17916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917  *) ac_try_echo=$ac_try;;
17918esac
17919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920  (eval "$ac_compile") 2>conftest.er1
17921  ac_status=$?
17922  grep -v '^ *+' conftest.er1 >conftest.err
17923  rm -f conftest.er1
17924  cat conftest.err >&5
17925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926  (exit $ac_status); } &&
17927	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17928  { (case "(($ac_try" in
17929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930  *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933  (eval "$ac_try") 2>&5
17934  ac_status=$?
17935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936  (exit $ac_status); }; } &&
17937	 { ac_try='test -s conftest.$ac_objext'
17938  { (case "(($ac_try" in
17939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940  *) ac_try_echo=$ac_try;;
17941esac
17942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943  (eval "$ac_try") 2>&5
17944  ac_status=$?
17945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946  (exit $ac_status); }; }; then
17947  ac_cv_type_u_int64_t=yes
17948else
17949  echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952	ac_cv_type_u_int64_t=no
17953fi
17954
17955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956fi
17957{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17958echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17959if test $ac_cv_type_u_int64_t = yes; then
17960
17961cat >>confdefs.h <<_ACEOF
17962#define HAVE_U_INT64_T 1
17963_ACEOF
17964
17965
17966else
17967  { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17968echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17969   { (exit 1); exit 1; }; }
17970fi
17971
17972fi
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17984do
17985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17989  echo $ECHO_N "(cached) $ECHO_C" >&6
17990else
17991  cat >conftest.$ac_ext <<_ACEOF
17992/* confdefs.h.  */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h.  */
17997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17998   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17999#define $ac_func innocuous_$ac_func
18000
18001/* System header to define __stub macros and hopefully few prototypes,
18002    which can conflict with char $ac_func (); below.
18003    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18004    <limits.h> exists even on freestanding compilers.  */
18005
18006#ifdef __STDC__
18007# include <limits.h>
18008#else
18009# include <assert.h>
18010#endif
18011
18012#undef $ac_func
18013
18014/* Override any GCC internal prototype to avoid an error.
18015   Use char because int might match the return type of a GCC
18016   builtin and then its argument prototype would still apply.  */
18017#ifdef __cplusplus
18018extern "C"
18019#endif
18020char $ac_func ();
18021/* The GNU C library defines this for functions which it implements
18022    to always fail with ENOSYS.  Some functions are actually named
18023    something starting with __ and the normal name is an alias.  */
18024#if defined __stub_$ac_func || defined __stub___$ac_func
18025choke me
18026#endif
18027
18028int
18029main ()
18030{
18031return $ac_func ();
18032  ;
18033  return 0;
18034}
18035_ACEOF
18036rm -f conftest.$ac_objext conftest$ac_exeext
18037if { (ac_try="$ac_link"
18038case "(($ac_try" in
18039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040  *) ac_try_echo=$ac_try;;
18041esac
18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043  (eval "$ac_link") 2>conftest.er1
18044  ac_status=$?
18045  grep -v '^ *+' conftest.er1 >conftest.err
18046  rm -f conftest.er1
18047  cat conftest.err >&5
18048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049  (exit $ac_status); } &&
18050	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051  { (case "(($ac_try" in
18052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053  *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056  (eval "$ac_try") 2>&5
18057  ac_status=$?
18058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059  (exit $ac_status); }; } &&
18060	 { ac_try='test -s conftest$ac_exeext'
18061  { (case "(($ac_try" in
18062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063  *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066  (eval "$ac_try") 2>&5
18067  ac_status=$?
18068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069  (exit $ac_status); }; }; then
18070  eval "$as_ac_var=yes"
18071else
18072  echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075	eval "$as_ac_var=no"
18076fi
18077
18078rm -f core conftest.err conftest.$ac_objext \
18079      conftest$ac_exeext conftest.$ac_ext
18080fi
18081ac_res=`eval echo '${'$as_ac_var'}'`
18082	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18083echo "${ECHO_T}$ac_res" >&6; }
18084if test `eval echo '${'$as_ac_var'}'` = yes; then
18085  cat >>confdefs.h <<_ACEOF
18086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18087_ACEOF
18088
18089fi
18090done
18091
18092
18093
18094
18095
18096for ac_func in powf fmodf strtof round
18097do
18098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18102  echo $ECHO_N "(cached) $ECHO_C" >&6
18103else
18104  cat >conftest.$ac_ext <<_ACEOF
18105/* confdefs.h.  */
18106_ACEOF
18107cat confdefs.h >>conftest.$ac_ext
18108cat >>conftest.$ac_ext <<_ACEOF
18109/* end confdefs.h.  */
18110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18111   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18112#define $ac_func innocuous_$ac_func
18113
18114/* System header to define __stub macros and hopefully few prototypes,
18115    which can conflict with char $ac_func (); below.
18116    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18117    <limits.h> exists even on freestanding compilers.  */
18118
18119#ifdef __STDC__
18120# include <limits.h>
18121#else
18122# include <assert.h>
18123#endif
18124
18125#undef $ac_func
18126
18127/* Override any GCC internal prototype to avoid an error.
18128   Use char because int might match the return type of a GCC
18129   builtin and then its argument prototype would still apply.  */
18130#ifdef __cplusplus
18131extern "C"
18132#endif
18133char $ac_func ();
18134/* The GNU C library defines this for functions which it implements
18135    to always fail with ENOSYS.  Some functions are actually named
18136    something starting with __ and the normal name is an alias.  */
18137#if defined __stub_$ac_func || defined __stub___$ac_func
18138choke me
18139#endif
18140
18141int
18142main ()
18143{
18144return $ac_func ();
18145  ;
18146  return 0;
18147}
18148_ACEOF
18149rm -f conftest.$ac_objext conftest$ac_exeext
18150if { (ac_try="$ac_link"
18151case "(($ac_try" in
18152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153  *) ac_try_echo=$ac_try;;
18154esac
18155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156  (eval "$ac_link") 2>conftest.er1
18157  ac_status=$?
18158  grep -v '^ *+' conftest.er1 >conftest.err
18159  rm -f conftest.er1
18160  cat conftest.err >&5
18161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162  (exit $ac_status); } &&
18163	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18164  { (case "(($ac_try" in
18165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166  *) ac_try_echo=$ac_try;;
18167esac
18168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169  (eval "$ac_try") 2>&5
18170  ac_status=$?
18171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172  (exit $ac_status); }; } &&
18173	 { ac_try='test -s conftest$ac_exeext'
18174  { (case "(($ac_try" in
18175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176  *) ac_try_echo=$ac_try;;
18177esac
18178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179  (eval "$ac_try") 2>&5
18180  ac_status=$?
18181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182  (exit $ac_status); }; }; then
18183  eval "$as_ac_var=yes"
18184else
18185  echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188	eval "$as_ac_var=no"
18189fi
18190
18191rm -f core conftest.err conftest.$ac_objext \
18192      conftest$ac_exeext conftest.$ac_ext
18193fi
18194ac_res=`eval echo '${'$as_ac_var'}'`
18195	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18196echo "${ECHO_T}$ac_res" >&6; }
18197if test `eval echo '${'$as_ac_var'}'` = yes; then
18198  cat >>confdefs.h <<_ACEOF
18199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18200_ACEOF
18201
18202fi
18203done
18204
18205
18206
18207
18208
18209
18210for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18211do
18212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18216  echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218  cat >conftest.$ac_ext <<_ACEOF
18219/* confdefs.h.  */
18220_ACEOF
18221cat confdefs.h >>conftest.$ac_ext
18222cat >>conftest.$ac_ext <<_ACEOF
18223/* end confdefs.h.  */
18224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18225   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18226#define $ac_func innocuous_$ac_func
18227
18228/* System header to define __stub macros and hopefully few prototypes,
18229    which can conflict with char $ac_func (); below.
18230    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18231    <limits.h> exists even on freestanding compilers.  */
18232
18233#ifdef __STDC__
18234# include <limits.h>
18235#else
18236# include <assert.h>
18237#endif
18238
18239#undef $ac_func
18240
18241/* Override any GCC internal prototype to avoid an error.
18242   Use char because int might match the return type of a GCC
18243   builtin and then its argument prototype would still apply.  */
18244#ifdef __cplusplus
18245extern "C"
18246#endif
18247char $ac_func ();
18248/* The GNU C library defines this for functions which it implements
18249    to always fail with ENOSYS.  Some functions are actually named
18250    something starting with __ and the normal name is an alias.  */
18251#if defined __stub_$ac_func || defined __stub___$ac_func
18252choke me
18253#endif
18254
18255int
18256main ()
18257{
18258return $ac_func ();
18259  ;
18260  return 0;
18261}
18262_ACEOF
18263rm -f conftest.$ac_objext conftest$ac_exeext
18264if { (ac_try="$ac_link"
18265case "(($ac_try" in
18266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267  *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270  (eval "$ac_link") 2>conftest.er1
18271  ac_status=$?
18272  grep -v '^ *+' conftest.er1 >conftest.err
18273  rm -f conftest.er1
18274  cat conftest.err >&5
18275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276  (exit $ac_status); } &&
18277	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278  { (case "(($ac_try" in
18279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280  *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283  (eval "$ac_try") 2>&5
18284  ac_status=$?
18285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286  (exit $ac_status); }; } &&
18287	 { ac_try='test -s conftest$ac_exeext'
18288  { (case "(($ac_try" in
18289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290  *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293  (eval "$ac_try") 2>&5
18294  ac_status=$?
18295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296  (exit $ac_status); }; }; then
18297  eval "$as_ac_var=yes"
18298else
18299  echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302	eval "$as_ac_var=no"
18303fi
18304
18305rm -f core conftest.err conftest.$ac_objext \
18306      conftest$ac_exeext conftest.$ac_ext
18307fi
18308ac_res=`eval echo '${'$as_ac_var'}'`
18309	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18310echo "${ECHO_T}$ac_res" >&6; }
18311if test `eval echo '${'$as_ac_var'}'` = yes; then
18312  cat >>confdefs.h <<_ACEOF
18313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18314_ACEOF
18315
18316fi
18317done
18318
18319
18320
18321
18322for ac_func in isatty mkdtemp mkstemp
18323do
18324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18328  echo $ECHO_N "(cached) $ECHO_C" >&6
18329else
18330  cat >conftest.$ac_ext <<_ACEOF
18331/* confdefs.h.  */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h.  */
18336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18337   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18338#define $ac_func innocuous_$ac_func
18339
18340/* System header to define __stub macros and hopefully few prototypes,
18341    which can conflict with char $ac_func (); below.
18342    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18343    <limits.h> exists even on freestanding compilers.  */
18344
18345#ifdef __STDC__
18346# include <limits.h>
18347#else
18348# include <assert.h>
18349#endif
18350
18351#undef $ac_func
18352
18353/* Override any GCC internal prototype to avoid an error.
18354   Use char because int might match the return type of a GCC
18355   builtin and then its argument prototype would still apply.  */
18356#ifdef __cplusplus
18357extern "C"
18358#endif
18359char $ac_func ();
18360/* The GNU C library defines this for functions which it implements
18361    to always fail with ENOSYS.  Some functions are actually named
18362    something starting with __ and the normal name is an alias.  */
18363#if defined __stub_$ac_func || defined __stub___$ac_func
18364choke me
18365#endif
18366
18367int
18368main ()
18369{
18370return $ac_func ();
18371  ;
18372  return 0;
18373}
18374_ACEOF
18375rm -f conftest.$ac_objext conftest$ac_exeext
18376if { (ac_try="$ac_link"
18377case "(($ac_try" in
18378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379  *) ac_try_echo=$ac_try;;
18380esac
18381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382  (eval "$ac_link") 2>conftest.er1
18383  ac_status=$?
18384  grep -v '^ *+' conftest.er1 >conftest.err
18385  rm -f conftest.er1
18386  cat conftest.err >&5
18387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388  (exit $ac_status); } &&
18389	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18390  { (case "(($ac_try" in
18391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392  *) ac_try_echo=$ac_try;;
18393esac
18394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395  (eval "$ac_try") 2>&5
18396  ac_status=$?
18397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398  (exit $ac_status); }; } &&
18399	 { ac_try='test -s conftest$ac_exeext'
18400  { (case "(($ac_try" in
18401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402  *) ac_try_echo=$ac_try;;
18403esac
18404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405  (eval "$ac_try") 2>&5
18406  ac_status=$?
18407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408  (exit $ac_status); }; }; then
18409  eval "$as_ac_var=yes"
18410else
18411  echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414	eval "$as_ac_var=no"
18415fi
18416
18417rm -f core conftest.err conftest.$ac_objext \
18418      conftest$ac_exeext conftest.$ac_ext
18419fi
18420ac_res=`eval echo '${'$as_ac_var'}'`
18421	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18422echo "${ECHO_T}$ac_res" >&6; }
18423if test `eval echo '${'$as_ac_var'}'` = yes; then
18424  cat >>confdefs.h <<_ACEOF
18425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18426_ACEOF
18427
18428fi
18429done
18430
18431
18432
18433
18434
18435
18436
18437for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18438do
18439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18440{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18442if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18443  echo $ECHO_N "(cached) $ECHO_C" >&6
18444else
18445  cat >conftest.$ac_ext <<_ACEOF
18446/* confdefs.h.  */
18447_ACEOF
18448cat confdefs.h >>conftest.$ac_ext
18449cat >>conftest.$ac_ext <<_ACEOF
18450/* end confdefs.h.  */
18451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18452   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18453#define $ac_func innocuous_$ac_func
18454
18455/* System header to define __stub macros and hopefully few prototypes,
18456    which can conflict with char $ac_func (); below.
18457    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18458    <limits.h> exists even on freestanding compilers.  */
18459
18460#ifdef __STDC__
18461# include <limits.h>
18462#else
18463# include <assert.h>
18464#endif
18465
18466#undef $ac_func
18467
18468/* Override any GCC internal prototype to avoid an error.
18469   Use char because int might match the return type of a GCC
18470   builtin and then its argument prototype would still apply.  */
18471#ifdef __cplusplus
18472extern "C"
18473#endif
18474char $ac_func ();
18475/* The GNU C library defines this for functions which it implements
18476    to always fail with ENOSYS.  Some functions are actually named
18477    something starting with __ and the normal name is an alias.  */
18478#if defined __stub_$ac_func || defined __stub___$ac_func
18479choke me
18480#endif
18481
18482int
18483main ()
18484{
18485return $ac_func ();
18486  ;
18487  return 0;
18488}
18489_ACEOF
18490rm -f conftest.$ac_objext conftest$ac_exeext
18491if { (ac_try="$ac_link"
18492case "(($ac_try" in
18493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494  *) ac_try_echo=$ac_try;;
18495esac
18496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497  (eval "$ac_link") 2>conftest.er1
18498  ac_status=$?
18499  grep -v '^ *+' conftest.er1 >conftest.err
18500  rm -f conftest.er1
18501  cat conftest.err >&5
18502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503  (exit $ac_status); } &&
18504	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18505  { (case "(($ac_try" in
18506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507  *) ac_try_echo=$ac_try;;
18508esac
18509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510  (eval "$ac_try") 2>&5
18511  ac_status=$?
18512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513  (exit $ac_status); }; } &&
18514	 { ac_try='test -s conftest$ac_exeext'
18515  { (case "(($ac_try" in
18516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517  *) ac_try_echo=$ac_try;;
18518esac
18519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520  (eval "$ac_try") 2>&5
18521  ac_status=$?
18522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523  (exit $ac_status); }; }; then
18524  eval "$as_ac_var=yes"
18525else
18526  echo "$as_me: failed program was:" >&5
18527sed 's/^/| /' conftest.$ac_ext >&5
18528
18529	eval "$as_ac_var=no"
18530fi
18531
18532rm -f core conftest.err conftest.$ac_objext \
18533      conftest$ac_exeext conftest.$ac_ext
18534fi
18535ac_res=`eval echo '${'$as_ac_var'}'`
18536	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18537echo "${ECHO_T}$ac_res" >&6; }
18538if test `eval echo '${'$as_ac_var'}'` = yes; then
18539  cat >>confdefs.h <<_ACEOF
18540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18541_ACEOF
18542
18543fi
18544done
18545
18546
18547
18548
18549
18550for ac_func in strerror strerror_r strerror_s setenv
18551do
18552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18553{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18555if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18556  echo $ECHO_N "(cached) $ECHO_C" >&6
18557else
18558  cat >conftest.$ac_ext <<_ACEOF
18559/* confdefs.h.  */
18560_ACEOF
18561cat confdefs.h >>conftest.$ac_ext
18562cat >>conftest.$ac_ext <<_ACEOF
18563/* end confdefs.h.  */
18564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18565   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18566#define $ac_func innocuous_$ac_func
18567
18568/* System header to define __stub macros and hopefully few prototypes,
18569    which can conflict with char $ac_func (); below.
18570    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18571    <limits.h> exists even on freestanding compilers.  */
18572
18573#ifdef __STDC__
18574# include <limits.h>
18575#else
18576# include <assert.h>
18577#endif
18578
18579#undef $ac_func
18580
18581/* Override any GCC internal prototype to avoid an error.
18582   Use char because int might match the return type of a GCC
18583   builtin and then its argument prototype would still apply.  */
18584#ifdef __cplusplus
18585extern "C"
18586#endif
18587char $ac_func ();
18588/* The GNU C library defines this for functions which it implements
18589    to always fail with ENOSYS.  Some functions are actually named
18590    something starting with __ and the normal name is an alias.  */
18591#if defined __stub_$ac_func || defined __stub___$ac_func
18592choke me
18593#endif
18594
18595int
18596main ()
18597{
18598return $ac_func ();
18599  ;
18600  return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext conftest$ac_exeext
18604if { (ac_try="$ac_link"
18605case "(($ac_try" in
18606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607  *) ac_try_echo=$ac_try;;
18608esac
18609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610  (eval "$ac_link") 2>conftest.er1
18611  ac_status=$?
18612  grep -v '^ *+' conftest.er1 >conftest.err
18613  rm -f conftest.er1
18614  cat conftest.err >&5
18615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616  (exit $ac_status); } &&
18617	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18618  { (case "(($ac_try" in
18619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620  *) ac_try_echo=$ac_try;;
18621esac
18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623  (eval "$ac_try") 2>&5
18624  ac_status=$?
18625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626  (exit $ac_status); }; } &&
18627	 { ac_try='test -s conftest$ac_exeext'
18628  { (case "(($ac_try" in
18629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630  *) ac_try_echo=$ac_try;;
18631esac
18632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633  (eval "$ac_try") 2>&5
18634  ac_status=$?
18635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636  (exit $ac_status); }; }; then
18637  eval "$as_ac_var=yes"
18638else
18639  echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642	eval "$as_ac_var=no"
18643fi
18644
18645rm -f core conftest.err conftest.$ac_objext \
18646      conftest$ac_exeext conftest.$ac_ext
18647fi
18648ac_res=`eval echo '${'$as_ac_var'}'`
18649	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18650echo "${ECHO_T}$ac_res" >&6; }
18651if test `eval echo '${'$as_ac_var'}'` = yes; then
18652  cat >>confdefs.h <<_ACEOF
18653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18654_ACEOF
18655
18656fi
18657done
18658
18659
18660
18661
18662
18663for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18664do
18665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18666{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18668if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18669  echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
18671  cat >conftest.$ac_ext <<_ACEOF
18672/* confdefs.h.  */
18673_ACEOF
18674cat confdefs.h >>conftest.$ac_ext
18675cat >>conftest.$ac_ext <<_ACEOF
18676/* end confdefs.h.  */
18677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18678   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18679#define $ac_func innocuous_$ac_func
18680
18681/* System header to define __stub macros and hopefully few prototypes,
18682    which can conflict with char $ac_func (); below.
18683    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18684    <limits.h> exists even on freestanding compilers.  */
18685
18686#ifdef __STDC__
18687# include <limits.h>
18688#else
18689# include <assert.h>
18690#endif
18691
18692#undef $ac_func
18693
18694/* Override any GCC internal prototype to avoid an error.
18695   Use char because int might match the return type of a GCC
18696   builtin and then its argument prototype would still apply.  */
18697#ifdef __cplusplus
18698extern "C"
18699#endif
18700char $ac_func ();
18701/* The GNU C library defines this for functions which it implements
18702    to always fail with ENOSYS.  Some functions are actually named
18703    something starting with __ and the normal name is an alias.  */
18704#if defined __stub_$ac_func || defined __stub___$ac_func
18705choke me
18706#endif
18707
18708int
18709main ()
18710{
18711return $ac_func ();
18712  ;
18713  return 0;
18714}
18715_ACEOF
18716rm -f conftest.$ac_objext conftest$ac_exeext
18717if { (ac_try="$ac_link"
18718case "(($ac_try" in
18719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720  *) ac_try_echo=$ac_try;;
18721esac
18722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723  (eval "$ac_link") 2>conftest.er1
18724  ac_status=$?
18725  grep -v '^ *+' conftest.er1 >conftest.err
18726  rm -f conftest.er1
18727  cat conftest.err >&5
18728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729  (exit $ac_status); } &&
18730	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18731  { (case "(($ac_try" in
18732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733  *) ac_try_echo=$ac_try;;
18734esac
18735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736  (eval "$ac_try") 2>&5
18737  ac_status=$?
18738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739  (exit $ac_status); }; } &&
18740	 { ac_try='test -s conftest$ac_exeext'
18741  { (case "(($ac_try" in
18742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743  *) ac_try_echo=$ac_try;;
18744esac
18745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746  (eval "$ac_try") 2>&5
18747  ac_status=$?
18748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749  (exit $ac_status); }; }; then
18750  eval "$as_ac_var=yes"
18751else
18752  echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755	eval "$as_ac_var=no"
18756fi
18757
18758rm -f core conftest.err conftest.$ac_objext \
18759      conftest$ac_exeext conftest.$ac_ext
18760fi
18761ac_res=`eval echo '${'$as_ac_var'}'`
18762	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18763echo "${ECHO_T}$ac_res" >&6; }
18764if test `eval echo '${'$as_ac_var'}'` = yes; then
18765  cat >>confdefs.h <<_ACEOF
18766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18767_ACEOF
18768
18769fi
18770done
18771
18772
18773
18774
18775
18776for ac_func in setjmp longjmp sigsetjmp siglongjmp
18777do
18778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18779{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18781if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18782  echo $ECHO_N "(cached) $ECHO_C" >&6
18783else
18784  cat >conftest.$ac_ext <<_ACEOF
18785/* confdefs.h.  */
18786_ACEOF
18787cat confdefs.h >>conftest.$ac_ext
18788cat >>conftest.$ac_ext <<_ACEOF
18789/* end confdefs.h.  */
18790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18791   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18792#define $ac_func innocuous_$ac_func
18793
18794/* System header to define __stub macros and hopefully few prototypes,
18795    which can conflict with char $ac_func (); below.
18796    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18797    <limits.h> exists even on freestanding compilers.  */
18798
18799#ifdef __STDC__
18800# include <limits.h>
18801#else
18802# include <assert.h>
18803#endif
18804
18805#undef $ac_func
18806
18807/* Override any GCC internal prototype to avoid an error.
18808   Use char because int might match the return type of a GCC
18809   builtin and then its argument prototype would still apply.  */
18810#ifdef __cplusplus
18811extern "C"
18812#endif
18813char $ac_func ();
18814/* The GNU C library defines this for functions which it implements
18815    to always fail with ENOSYS.  Some functions are actually named
18816    something starting with __ and the normal name is an alias.  */
18817#if defined __stub_$ac_func || defined __stub___$ac_func
18818choke me
18819#endif
18820
18821int
18822main ()
18823{
18824return $ac_func ();
18825  ;
18826  return 0;
18827}
18828_ACEOF
18829rm -f conftest.$ac_objext conftest$ac_exeext
18830if { (ac_try="$ac_link"
18831case "(($ac_try" in
18832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833  *) ac_try_echo=$ac_try;;
18834esac
18835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836  (eval "$ac_link") 2>conftest.er1
18837  ac_status=$?
18838  grep -v '^ *+' conftest.er1 >conftest.err
18839  rm -f conftest.er1
18840  cat conftest.err >&5
18841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842  (exit $ac_status); } &&
18843	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18844  { (case "(($ac_try" in
18845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846  *) ac_try_echo=$ac_try;;
18847esac
18848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849  (eval "$ac_try") 2>&5
18850  ac_status=$?
18851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852  (exit $ac_status); }; } &&
18853	 { ac_try='test -s conftest$ac_exeext'
18854  { (case "(($ac_try" in
18855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856  *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859  (eval "$ac_try") 2>&5
18860  ac_status=$?
18861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862  (exit $ac_status); }; }; then
18863  eval "$as_ac_var=yes"
18864else
18865  echo "$as_me: failed program was:" >&5
18866sed 's/^/| /' conftest.$ac_ext >&5
18867
18868	eval "$as_ac_var=no"
18869fi
18870
18871rm -f core conftest.err conftest.$ac_objext \
18872      conftest$ac_exeext conftest.$ac_ext
18873fi
18874ac_res=`eval echo '${'$as_ac_var'}'`
18875	       { echo "$as_me:$LINENO: result: $ac_res" >&5
18876echo "${ECHO_T}$ac_res" >&6; }
18877if test `eval echo '${'$as_ac_var'}'` = yes; then
18878  cat >>confdefs.h <<_ACEOF
18879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18880_ACEOF
18881
18882fi
18883done
18884
18885{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18886echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18887if test "${llvm_cv_c_printf_a+set}" = set; then
18888  echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890  ac_ext=c
18891ac_cpp='$CPP $CPPFLAGS'
18892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894ac_compiler_gnu=$ac_cv_c_compiler_gnu
18895
18896 if test "$cross_compiling" = yes; then
18897  llvmac_cv_c_printf_a=no
18898else
18899  cat >conftest.$ac_ext <<_ACEOF
18900
18901  /* confdefs.h.  */
18902_ACEOF
18903cat confdefs.h >>conftest.$ac_ext
18904cat >>conftest.$ac_ext <<_ACEOF
18905/* end confdefs.h.  */
18906
18907#include <stdio.h>
18908#include <stdlib.h>
18909
18910int
18911main ()
18912{
18913
18914volatile double A, B;
18915char Buffer[100];
18916A = 1;
18917A /= 10.0;
18918sprintf(Buffer, "%a", A);
18919B = atof(Buffer);
18920if (A != B)
18921  return (1);
18922if (A != 0x1.999999999999ap-4)
18923  return (1);
18924return (0);
18925  ;
18926  return 0;
18927}
18928_ACEOF
18929rm -f conftest$ac_exeext
18930if { (ac_try="$ac_link"
18931case "(($ac_try" in
18932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933  *) ac_try_echo=$ac_try;;
18934esac
18935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936  (eval "$ac_link") 2>&5
18937  ac_status=$?
18938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18940  { (case "(($ac_try" in
18941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942  *) ac_try_echo=$ac_try;;
18943esac
18944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945  (eval "$ac_try") 2>&5
18946  ac_status=$?
18947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948  (exit $ac_status); }; }; then
18949  llvm_cv_c_printf_a=yes
18950else
18951  echo "$as_me: program exited with status $ac_status" >&5
18952echo "$as_me: failed program was:" >&5
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
18955( exit $ac_status )
18956llvmac_cv_c_printf_a=no
18957fi
18958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18959fi
18960
18961
18962 ac_ext=c
18963ac_cpp='$CPP $CPPFLAGS'
18964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966ac_compiler_gnu=$ac_cv_c_compiler_gnu
18967
18968fi
18969{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18970echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18971 if test "$llvm_cv_c_printf_a" = "yes"; then
18972
18973cat >>confdefs.h <<\_ACEOF
18974#define HAVE_PRINTF_A 1
18975_ACEOF
18976
18977 fi
18978
18979
18980{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18981echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18982if test "${ac_cv_func_rand48+set}" = set; then
18983  echo $ECHO_N "(cached) $ECHO_C" >&6
18984else
18985  ac_ext=cpp
18986ac_cpp='$CXXCPP $CPPFLAGS'
18987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18990
18991   cat >conftest.$ac_ext <<_ACEOF
18992/* confdefs.h.  */
18993_ACEOF
18994cat confdefs.h >>conftest.$ac_ext
18995cat >>conftest.$ac_ext <<_ACEOF
18996/* end confdefs.h.  */
18997#include <stdlib.h>
18998int
18999main ()
19000{
19001srand48(0);lrand48();drand48();
19002  ;
19003  return 0;
19004}
19005_ACEOF
19006rm -f conftest.$ac_objext
19007if { (ac_try="$ac_compile"
19008case "(($ac_try" in
19009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010  *) ac_try_echo=$ac_try;;
19011esac
19012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013  (eval "$ac_compile") 2>conftest.er1
19014  ac_status=$?
19015  grep -v '^ *+' conftest.er1 >conftest.err
19016  rm -f conftest.er1
19017  cat conftest.err >&5
19018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019  (exit $ac_status); } &&
19020	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19021  { (case "(($ac_try" in
19022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023  *) ac_try_echo=$ac_try;;
19024esac
19025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026  (eval "$ac_try") 2>&5
19027  ac_status=$?
19028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029  (exit $ac_status); }; } &&
19030	 { ac_try='test -s conftest.$ac_objext'
19031  { (case "(($ac_try" in
19032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033  *) ac_try_echo=$ac_try;;
19034esac
19035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036  (eval "$ac_try") 2>&5
19037  ac_status=$?
19038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039  (exit $ac_status); }; }; then
19040  ac_cv_func_rand48=yes
19041else
19042  echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045	ac_cv_func_rand48=no
19046fi
19047
19048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19049  ac_ext=c
19050ac_cpp='$CPP $CPPFLAGS'
19051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19053ac_compiler_gnu=$ac_cv_c_compiler_gnu
19054
19055fi
19056{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19057echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19058
19059if test "$ac_cv_func_rand48" = "yes" ; then
19060
19061cat >>confdefs.h <<\_ACEOF
19062#define HAVE_RAND48 1
19063_ACEOF
19064
19065fi
19066
19067
19068
19069{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19070echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19071if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19072  echo $ECHO_N "(cached) $ECHO_C" >&6
19073else
19074  ac_ext=cpp
19075ac_cpp='$CXXCPP $CPPFLAGS'
19076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19079
19080   cat >conftest.$ac_ext <<_ACEOF
19081/* confdefs.h.  */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
19085/* end confdefs.h.  */
19086#include <math.h>
19087int
19088main ()
19089{
19090float f; isnan(f);
19091  ;
19092  return 0;
19093}
19094_ACEOF
19095rm -f conftest.$ac_objext
19096if { (ac_try="$ac_compile"
19097case "(($ac_try" in
19098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099  *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102  (eval "$ac_compile") 2>conftest.er1
19103  ac_status=$?
19104  grep -v '^ *+' conftest.er1 >conftest.err
19105  rm -f conftest.er1
19106  cat conftest.err >&5
19107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108  (exit $ac_status); } &&
19109	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19110  { (case "(($ac_try" in
19111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112  *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115  (eval "$ac_try") 2>&5
19116  ac_status=$?
19117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118  (exit $ac_status); }; } &&
19119	 { ac_try='test -s conftest.$ac_objext'
19120  { (case "(($ac_try" in
19121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122  *) ac_try_echo=$ac_try;;
19123esac
19124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125  (eval "$ac_try") 2>&5
19126  ac_status=$?
19127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128  (exit $ac_status); }; }; then
19129  ac_cv_func_isnan_in_math_h=yes
19130else
19131  echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134	ac_cv_func_isnan_in_math_h=no
19135fi
19136
19137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19138  ac_ext=c
19139ac_cpp='$CPP $CPPFLAGS'
19140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19142ac_compiler_gnu=$ac_cv_c_compiler_gnu
19143
19144fi
19145{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19146echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19147
19148
19149if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19150
19151cat >>confdefs.h <<\_ACEOF
19152#define HAVE_ISNAN_IN_MATH_H 1
19153_ACEOF
19154
19155fi
19156
19157{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19158echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19159if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19160  echo $ECHO_N "(cached) $ECHO_C" >&6
19161else
19162  ac_ext=cpp
19163ac_cpp='$CXXCPP $CPPFLAGS'
19164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19167
19168   cat >conftest.$ac_ext <<_ACEOF
19169/* confdefs.h.  */
19170_ACEOF
19171cat confdefs.h >>conftest.$ac_ext
19172cat >>conftest.$ac_ext <<_ACEOF
19173/* end confdefs.h.  */
19174#include <cmath>
19175int
19176main ()
19177{
19178float f; isnan(f);
19179  ;
19180  return 0;
19181}
19182_ACEOF
19183rm -f conftest.$ac_objext
19184if { (ac_try="$ac_compile"
19185case "(($ac_try" in
19186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187  *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190  (eval "$ac_compile") 2>conftest.er1
19191  ac_status=$?
19192  grep -v '^ *+' conftest.er1 >conftest.err
19193  rm -f conftest.er1
19194  cat conftest.err >&5
19195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196  (exit $ac_status); } &&
19197	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19198  { (case "(($ac_try" in
19199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200  *) ac_try_echo=$ac_try;;
19201esac
19202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203  (eval "$ac_try") 2>&5
19204  ac_status=$?
19205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206  (exit $ac_status); }; } &&
19207	 { ac_try='test -s conftest.$ac_objext'
19208  { (case "(($ac_try" in
19209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210  *) ac_try_echo=$ac_try;;
19211esac
19212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213  (eval "$ac_try") 2>&5
19214  ac_status=$?
19215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216  (exit $ac_status); }; }; then
19217  ac_cv_func_isnan_in_cmath=yes
19218else
19219  echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
19222	ac_cv_func_isnan_in_cmath=no
19223fi
19224
19225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226  ac_ext=c
19227ac_cpp='$CPP $CPPFLAGS'
19228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231
19232fi
19233{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19234echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19235
19236if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19237
19238cat >>confdefs.h <<\_ACEOF
19239#define HAVE_ISNAN_IN_CMATH 1
19240_ACEOF
19241
19242fi
19243
19244{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19245echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19246if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19247  echo $ECHO_N "(cached) $ECHO_C" >&6
19248else
19249  ac_ext=cpp
19250ac_cpp='$CXXCPP $CPPFLAGS'
19251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19254
19255   cat >conftest.$ac_ext <<_ACEOF
19256/* confdefs.h.  */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
19260/* end confdefs.h.  */
19261#include <cmath>
19262int
19263main ()
19264{
19265float f; std::isnan(f);
19266  ;
19267  return 0;
19268}
19269_ACEOF
19270rm -f conftest.$ac_objext
19271if { (ac_try="$ac_compile"
19272case "(($ac_try" in
19273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274  *) ac_try_echo=$ac_try;;
19275esac
19276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277  (eval "$ac_compile") 2>conftest.er1
19278  ac_status=$?
19279  grep -v '^ *+' conftest.er1 >conftest.err
19280  rm -f conftest.er1
19281  cat conftest.err >&5
19282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283  (exit $ac_status); } &&
19284	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19285  { (case "(($ac_try" in
19286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287  *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290  (eval "$ac_try") 2>&5
19291  ac_status=$?
19292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293  (exit $ac_status); }; } &&
19294	 { ac_try='test -s conftest.$ac_objext'
19295  { (case "(($ac_try" in
19296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297  *) ac_try_echo=$ac_try;;
19298esac
19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300  (eval "$ac_try") 2>&5
19301  ac_status=$?
19302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303  (exit $ac_status); }; }; then
19304  ac_cv_func_std_isnan_in_cmath=yes
19305else
19306  echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
19309	ac_cv_func_std_isnan_in_cmath=no
19310fi
19311
19312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313  ac_ext=c
19314ac_cpp='$CPP $CPPFLAGS'
19315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317ac_compiler_gnu=$ac_cv_c_compiler_gnu
19318
19319fi
19320{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19321echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19322
19323if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19324
19325cat >>confdefs.h <<\_ACEOF
19326#define HAVE_STD_ISNAN_IN_CMATH 1
19327_ACEOF
19328
19329fi
19330
19331
19332{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19333echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19334if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19335  echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337  ac_ext=cpp
19338ac_cpp='$CXXCPP $CPPFLAGS'
19339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19342
19343   cat >conftest.$ac_ext <<_ACEOF
19344/* confdefs.h.  */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
19348/* end confdefs.h.  */
19349#include <math.h>
19350int
19351main ()
19352{
19353float f; isinf(f);
19354  ;
19355  return 0;
19356}
19357_ACEOF
19358rm -f conftest.$ac_objext
19359if { (ac_try="$ac_compile"
19360case "(($ac_try" in
19361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362  *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365  (eval "$ac_compile") 2>conftest.er1
19366  ac_status=$?
19367  grep -v '^ *+' conftest.er1 >conftest.err
19368  rm -f conftest.er1
19369  cat conftest.err >&5
19370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371  (exit $ac_status); } &&
19372	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373  { (case "(($ac_try" in
19374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375  *) ac_try_echo=$ac_try;;
19376esac
19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378  (eval "$ac_try") 2>&5
19379  ac_status=$?
19380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381  (exit $ac_status); }; } &&
19382	 { ac_try='test -s conftest.$ac_objext'
19383  { (case "(($ac_try" in
19384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385  *) ac_try_echo=$ac_try;;
19386esac
19387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388  (eval "$ac_try") 2>&5
19389  ac_status=$?
19390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391  (exit $ac_status); }; }; then
19392  ac_cv_func_isinf_in_math_h=yes
19393else
19394  echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
19397	ac_cv_func_isinf_in_math_h=no
19398fi
19399
19400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401  ac_ext=c
19402ac_cpp='$CPP $CPPFLAGS'
19403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407fi
19408{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19409echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19410
19411if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19412
19413cat >>confdefs.h <<\_ACEOF
19414#define HAVE_ISINF_IN_MATH_H 1
19415_ACEOF
19416
19417fi
19418
19419{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19420echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19421if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19422  echo $ECHO_N "(cached) $ECHO_C" >&6
19423else
19424  ac_ext=cpp
19425ac_cpp='$CXXCPP $CPPFLAGS'
19426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19429
19430   cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h.  */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h.  */
19436#include <cmath>
19437int
19438main ()
19439{
19440float f; isinf(f);
19441  ;
19442  return 0;
19443}
19444_ACEOF
19445rm -f conftest.$ac_objext
19446if { (ac_try="$ac_compile"
19447case "(($ac_try" in
19448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449  *) ac_try_echo=$ac_try;;
19450esac
19451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452  (eval "$ac_compile") 2>conftest.er1
19453  ac_status=$?
19454  grep -v '^ *+' conftest.er1 >conftest.err
19455  rm -f conftest.er1
19456  cat conftest.err >&5
19457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458  (exit $ac_status); } &&
19459	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19460  { (case "(($ac_try" in
19461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462  *) ac_try_echo=$ac_try;;
19463esac
19464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465  (eval "$ac_try") 2>&5
19466  ac_status=$?
19467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468  (exit $ac_status); }; } &&
19469	 { ac_try='test -s conftest.$ac_objext'
19470  { (case "(($ac_try" in
19471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472  *) ac_try_echo=$ac_try;;
19473esac
19474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475  (eval "$ac_try") 2>&5
19476  ac_status=$?
19477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478  (exit $ac_status); }; }; then
19479  ac_cv_func_isinf_in_cmath=yes
19480else
19481  echo "$as_me: failed program was:" >&5
19482sed 's/^/| /' conftest.$ac_ext >&5
19483
19484	ac_cv_func_isinf_in_cmath=no
19485fi
19486
19487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488  ac_ext=c
19489ac_cpp='$CPP $CPPFLAGS'
19490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494fi
19495{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19496echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19497
19498if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19499
19500cat >>confdefs.h <<\_ACEOF
19501#define HAVE_ISINF_IN_CMATH 1
19502_ACEOF
19503
19504fi
19505
19506{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19507echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19508if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19509  echo $ECHO_N "(cached) $ECHO_C" >&6
19510else
19511  ac_ext=cpp
19512ac_cpp='$CXXCPP $CPPFLAGS'
19513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19516
19517   cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h.  */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h.  */
19523#include <cmath>
19524int
19525main ()
19526{
19527float f; std::isinf(f)}
19528  ;
19529  return 0;
19530}
19531_ACEOF
19532rm -f conftest.$ac_objext
19533if { (ac_try="$ac_compile"
19534case "(($ac_try" in
19535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536  *) ac_try_echo=$ac_try;;
19537esac
19538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539  (eval "$ac_compile") 2>conftest.er1
19540  ac_status=$?
19541  grep -v '^ *+' conftest.er1 >conftest.err
19542  rm -f conftest.er1
19543  cat conftest.err >&5
19544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545  (exit $ac_status); } &&
19546	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19547  { (case "(($ac_try" in
19548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549  *) ac_try_echo=$ac_try;;
19550esac
19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552  (eval "$ac_try") 2>&5
19553  ac_status=$?
19554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555  (exit $ac_status); }; } &&
19556	 { ac_try='test -s conftest.$ac_objext'
19557  { (case "(($ac_try" in
19558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559  *) ac_try_echo=$ac_try;;
19560esac
19561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562  (eval "$ac_try") 2>&5
19563  ac_status=$?
19564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565  (exit $ac_status); }; }; then
19566  ac_cv_func_std_isinf_in_cmath=yes
19567else
19568  echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571	ac_cv_func_std_isinf_in_cmath=no
19572fi
19573
19574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575  ac_ext=c
19576ac_cpp='$CPP $CPPFLAGS'
19577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19579ac_compiler_gnu=$ac_cv_c_compiler_gnu
19580
19581fi
19582{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19583echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19584
19585if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19586
19587cat >>confdefs.h <<\_ACEOF
19588#define HAVE_STD_ISINF_IN_CMATH 1
19589_ACEOF
19590
19591fi
19592
19593{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19594echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19595if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19596  echo $ECHO_N "(cached) $ECHO_C" >&6
19597else
19598  ac_ext=cpp
19599ac_cpp='$CXXCPP $CPPFLAGS'
19600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19603
19604   cat >conftest.$ac_ext <<_ACEOF
19605/* confdefs.h.  */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h.  */
19610#include <ieeefp.h>
19611int
19612main ()
19613{
19614float f; finite(f);
19615  ;
19616  return 0;
19617}
19618_ACEOF
19619rm -f conftest.$ac_objext
19620if { (ac_try="$ac_compile"
19621case "(($ac_try" in
19622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623  *) ac_try_echo=$ac_try;;
19624esac
19625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626  (eval "$ac_compile") 2>conftest.er1
19627  ac_status=$?
19628  grep -v '^ *+' conftest.er1 >conftest.err
19629  rm -f conftest.er1
19630  cat conftest.err >&5
19631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632  (exit $ac_status); } &&
19633	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19634  { (case "(($ac_try" in
19635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636  *) ac_try_echo=$ac_try;;
19637esac
19638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639  (eval "$ac_try") 2>&5
19640  ac_status=$?
19641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642  (exit $ac_status); }; } &&
19643	 { ac_try='test -s conftest.$ac_objext'
19644  { (case "(($ac_try" in
19645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646  *) ac_try_echo=$ac_try;;
19647esac
19648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649  (eval "$ac_try") 2>&5
19650  ac_status=$?
19651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652  (exit $ac_status); }; }; then
19653  ac_cv_func_finite_in_ieeefp_h=yes
19654else
19655  echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658	ac_cv_func_finite_in_ieeefp_h=no
19659fi
19660
19661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662  ac_ext=c
19663ac_cpp='$CPP $CPPFLAGS'
19664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666ac_compiler_gnu=$ac_cv_c_compiler_gnu
19667
19668fi
19669{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19670echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19671
19672if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19673
19674cat >>confdefs.h <<\_ACEOF
19675#define HAVE_FINITE_IN_IEEEFP_H 1
19676_ACEOF
19677
19678fi
19679
19680
19681
19682if test "$llvm_cv_platform_type" = "Unix" ; then
19683
19684
19685for ac_header in stdlib.h unistd.h
19686do
19687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19689  { echo "$as_me:$LINENO: checking for $ac_header" >&5
19690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19692  echo $ECHO_N "(cached) $ECHO_C" >&6
19693fi
19694ac_res=`eval echo '${'$as_ac_Header'}'`
19695	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19696echo "${ECHO_T}$ac_res" >&6; }
19697else
19698  # Is the header compilable?
19699{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19701cat >conftest.$ac_ext <<_ACEOF
19702/* confdefs.h.  */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h.  */
19707$ac_includes_default
19708#include <$ac_header>
19709_ACEOF
19710rm -f conftest.$ac_objext
19711if { (ac_try="$ac_compile"
19712case "(($ac_try" in
19713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714  *) ac_try_echo=$ac_try;;
19715esac
19716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717  (eval "$ac_compile") 2>conftest.er1
19718  ac_status=$?
19719  grep -v '^ *+' conftest.er1 >conftest.err
19720  rm -f conftest.er1
19721  cat conftest.err >&5
19722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723  (exit $ac_status); } &&
19724	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725  { (case "(($ac_try" in
19726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727  *) ac_try_echo=$ac_try;;
19728esac
19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730  (eval "$ac_try") 2>&5
19731  ac_status=$?
19732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733  (exit $ac_status); }; } &&
19734	 { ac_try='test -s conftest.$ac_objext'
19735  { (case "(($ac_try" in
19736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737  *) ac_try_echo=$ac_try;;
19738esac
19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740  (eval "$ac_try") 2>&5
19741  ac_status=$?
19742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743  (exit $ac_status); }; }; then
19744  ac_header_compiler=yes
19745else
19746  echo "$as_me: failed program was:" >&5
19747sed 's/^/| /' conftest.$ac_ext >&5
19748
19749	ac_header_compiler=no
19750fi
19751
19752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19753{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19754echo "${ECHO_T}$ac_header_compiler" >&6; }
19755
19756# Is the header present?
19757{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19759cat >conftest.$ac_ext <<_ACEOF
19760/* confdefs.h.  */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
19764/* end confdefs.h.  */
19765#include <$ac_header>
19766_ACEOF
19767if { (ac_try="$ac_cpp conftest.$ac_ext"
19768case "(($ac_try" in
19769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770  *) ac_try_echo=$ac_try;;
19771esac
19772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19774  ac_status=$?
19775  grep -v '^ *+' conftest.er1 >conftest.err
19776  rm -f conftest.er1
19777  cat conftest.err >&5
19778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779  (exit $ac_status); } >/dev/null; then
19780  if test -s conftest.err; then
19781    ac_cpp_err=$ac_c_preproc_warn_flag
19782    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19783  else
19784    ac_cpp_err=
19785  fi
19786else
19787  ac_cpp_err=yes
19788fi
19789if test -z "$ac_cpp_err"; then
19790  ac_header_preproc=yes
19791else
19792  echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795  ac_header_preproc=no
19796fi
19797
19798rm -f conftest.err conftest.$ac_ext
19799{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19800echo "${ECHO_T}$ac_header_preproc" >&6; }
19801
19802# So?  What about this header?
19803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19804  yes:no: )
19805    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19807    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19809    ac_header_preproc=yes
19810    ;;
19811  no:yes:* )
19812    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19814    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19815echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19816    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19818    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19819echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19820    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19822    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19824    ( cat <<\_ASBOX
19825## ----------------------------------- ##
19826## Report this to llvmbugs@cs.uiuc.edu ##
19827## ----------------------------------- ##
19828_ASBOX
19829     ) | sed "s/^/$as_me: WARNING:     /" >&2
19830    ;;
19831esac
19832{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19835  echo $ECHO_N "(cached) $ECHO_C" >&6
19836else
19837  eval "$as_ac_Header=\$ac_header_preproc"
19838fi
19839ac_res=`eval echo '${'$as_ac_Header'}'`
19840	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19841echo "${ECHO_T}$ac_res" >&6; }
19842
19843fi
19844if test `eval echo '${'$as_ac_Header'}'` = yes; then
19845  cat >>confdefs.h <<_ACEOF
19846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19847_ACEOF
19848
19849fi
19850
19851done
19852
19853
19854for ac_func in getpagesize
19855do
19856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19857{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19860  echo $ECHO_N "(cached) $ECHO_C" >&6
19861else
19862  cat >conftest.$ac_ext <<_ACEOF
19863/* confdefs.h.  */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h.  */
19868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19869   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19870#define $ac_func innocuous_$ac_func
19871
19872/* System header to define __stub macros and hopefully few prototypes,
19873    which can conflict with char $ac_func (); below.
19874    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19875    <limits.h> exists even on freestanding compilers.  */
19876
19877#ifdef __STDC__
19878# include <limits.h>
19879#else
19880# include <assert.h>
19881#endif
19882
19883#undef $ac_func
19884
19885/* Override any GCC internal prototype to avoid an error.
19886   Use char because int might match the return type of a GCC
19887   builtin and then its argument prototype would still apply.  */
19888#ifdef __cplusplus
19889extern "C"
19890#endif
19891char $ac_func ();
19892/* The GNU C library defines this for functions which it implements
19893    to always fail with ENOSYS.  Some functions are actually named
19894    something starting with __ and the normal name is an alias.  */
19895#if defined __stub_$ac_func || defined __stub___$ac_func
19896choke me
19897#endif
19898
19899int
19900main ()
19901{
19902return $ac_func ();
19903  ;
19904  return 0;
19905}
19906_ACEOF
19907rm -f conftest.$ac_objext conftest$ac_exeext
19908if { (ac_try="$ac_link"
19909case "(($ac_try" in
19910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911  *) ac_try_echo=$ac_try;;
19912esac
19913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914  (eval "$ac_link") 2>conftest.er1
19915  ac_status=$?
19916  grep -v '^ *+' conftest.er1 >conftest.err
19917  rm -f conftest.er1
19918  cat conftest.err >&5
19919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920  (exit $ac_status); } &&
19921	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19931	 { ac_try='test -s conftest$ac_exeext'
19932  { (case "(($ac_try" in
19933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934  *) ac_try_echo=$ac_try;;
19935esac
19936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937  (eval "$ac_try") 2>&5
19938  ac_status=$?
19939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940  (exit $ac_status); }; }; then
19941  eval "$as_ac_var=yes"
19942else
19943  echo "$as_me: failed program was:" >&5
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
19946	eval "$as_ac_var=no"
19947fi
19948
19949rm -f core conftest.err conftest.$ac_objext \
19950      conftest$ac_exeext conftest.$ac_ext
19951fi
19952ac_res=`eval echo '${'$as_ac_var'}'`
19953	       { echo "$as_me:$LINENO: result: $ac_res" >&5
19954echo "${ECHO_T}$ac_res" >&6; }
19955if test `eval echo '${'$as_ac_var'}'` = yes; then
19956  cat >>confdefs.h <<_ACEOF
19957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19958_ACEOF
19959
19960fi
19961done
19962
19963{ echo "$as_me:$LINENO: checking for working mmap" >&5
19964echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19965if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19966  echo $ECHO_N "(cached) $ECHO_C" >&6
19967else
19968  if test "$cross_compiling" = yes; then
19969  ac_cv_func_mmap_fixed_mapped=no
19970else
19971  cat >conftest.$ac_ext <<_ACEOF
19972/* confdefs.h.  */
19973_ACEOF
19974cat confdefs.h >>conftest.$ac_ext
19975cat >>conftest.$ac_ext <<_ACEOF
19976/* end confdefs.h.  */
19977$ac_includes_default
19978/* malloc might have been renamed as rpl_malloc. */
19979#undef malloc
19980
19981/* Thanks to Mike Haertel and Jim Avera for this test.
19982   Here is a matrix of mmap possibilities:
19983	mmap private not fixed
19984	mmap private fixed at somewhere currently unmapped
19985	mmap private fixed at somewhere already mapped
19986	mmap shared not fixed
19987	mmap shared fixed at somewhere currently unmapped
19988	mmap shared fixed at somewhere already mapped
19989   For private mappings, we should verify that changes cannot be read()
19990   back from the file, nor mmap's back from the file at a different
19991   address.  (There have been systems where private was not correctly
19992   implemented like the infamous i386 svr4.0, and systems where the
19993   VM page cache was not coherent with the file system buffer cache
19994   like early versions of FreeBSD and possibly contemporary NetBSD.)
19995   For shared mappings, we should conversely verify that changes get
19996   propagated back to all the places they're supposed to be.
19997
19998   Grep wants private fixed already mapped.
19999   The main things grep needs to know about mmap are:
20000   * does it exist and is it safe to write into the mmap'd area
20001   * how to use it (BSD variants)  */
20002
20003#include <fcntl.h>
20004#include <sys/mman.h>
20005
20006#if !STDC_HEADERS && !HAVE_STDLIB_H
20007char *malloc ();
20008#endif
20009
20010/* This mess was copied from the GNU getpagesize.h.  */
20011#if !HAVE_GETPAGESIZE
20012/* Assume that all systems that can run configure have sys/param.h.  */
20013# if !HAVE_SYS_PARAM_H
20014#  define HAVE_SYS_PARAM_H 1
20015# endif
20016
20017# ifdef _SC_PAGESIZE
20018#  define getpagesize() sysconf(_SC_PAGESIZE)
20019# else /* no _SC_PAGESIZE */
20020#  if HAVE_SYS_PARAM_H
20021#   include <sys/param.h>
20022#   ifdef EXEC_PAGESIZE
20023#    define getpagesize() EXEC_PAGESIZE
20024#   else /* no EXEC_PAGESIZE */
20025#    ifdef NBPG
20026#     define getpagesize() NBPG * CLSIZE
20027#     ifndef CLSIZE
20028#      define CLSIZE 1
20029#     endif /* no CLSIZE */
20030#    else /* no NBPG */
20031#     ifdef NBPC
20032#      define getpagesize() NBPC
20033#     else /* no NBPC */
20034#      ifdef PAGESIZE
20035#       define getpagesize() PAGESIZE
20036#      endif /* PAGESIZE */
20037#     endif /* no NBPC */
20038#    endif /* no NBPG */
20039#   endif /* no EXEC_PAGESIZE */
20040#  else /* no HAVE_SYS_PARAM_H */
20041#   define getpagesize() 8192	/* punt totally */
20042#  endif /* no HAVE_SYS_PARAM_H */
20043# endif /* no _SC_PAGESIZE */
20044
20045#endif /* no HAVE_GETPAGESIZE */
20046
20047int
20048main ()
20049{
20050  char *data, *data2, *data3;
20051  int i, pagesize;
20052  int fd;
20053
20054  pagesize = getpagesize ();
20055
20056  /* First, make a file with some known garbage in it. */
20057  data = (char *) malloc (pagesize);
20058  if (!data)
20059    return 1;
20060  for (i = 0; i < pagesize; ++i)
20061    *(data + i) = rand ();
20062  umask (0);
20063  fd = creat ("conftest.mmap", 0600);
20064  if (fd < 0)
20065    return 1;
20066  if (write (fd, data, pagesize) != pagesize)
20067    return 1;
20068  close (fd);
20069
20070  /* Next, try to mmap the file at a fixed address which already has
20071     something else allocated at it.  If we can, also make sure that
20072     we see the same garbage.  */
20073  fd = open ("conftest.mmap", O_RDWR);
20074  if (fd < 0)
20075    return 1;
20076  data2 = (char *) malloc (2 * pagesize);
20077  if (!data2)
20078    return 1;
20079  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20080  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20081		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20082    return 1;
20083  for (i = 0; i < pagesize; ++i)
20084    if (*(data + i) != *(data2 + i))
20085      return 1;
20086
20087  /* Finally, make sure that changes to the mapped area do not
20088     percolate back to the file as seen by read().  (This is a bug on
20089     some variants of i386 svr4.0.)  */
20090  for (i = 0; i < pagesize; ++i)
20091    *(data2 + i) = *(data2 + i) + 1;
20092  data3 = (char *) malloc (pagesize);
20093  if (!data3)
20094    return 1;
20095  if (read (fd, data3, pagesize) != pagesize)
20096    return 1;
20097  for (i = 0; i < pagesize; ++i)
20098    if (*(data + i) != *(data3 + i))
20099      return 1;
20100  close (fd);
20101  return 0;
20102}
20103_ACEOF
20104rm -f conftest$ac_exeext
20105if { (ac_try="$ac_link"
20106case "(($ac_try" in
20107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108  *) ac_try_echo=$ac_try;;
20109esac
20110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111  (eval "$ac_link") 2>&5
20112  ac_status=$?
20113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20115  { (case "(($ac_try" in
20116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117  *) ac_try_echo=$ac_try;;
20118esac
20119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120  (eval "$ac_try") 2>&5
20121  ac_status=$?
20122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123  (exit $ac_status); }; }; then
20124  ac_cv_func_mmap_fixed_mapped=yes
20125else
20126  echo "$as_me: program exited with status $ac_status" >&5
20127echo "$as_me: failed program was:" >&5
20128sed 's/^/| /' conftest.$ac_ext >&5
20129
20130( exit $ac_status )
20131ac_cv_func_mmap_fixed_mapped=no
20132fi
20133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134fi
20135
20136
20137fi
20138{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20139echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20140if test $ac_cv_func_mmap_fixed_mapped = yes; then
20141
20142cat >>confdefs.h <<\_ACEOF
20143#define HAVE_MMAP 1
20144_ACEOF
20145
20146fi
20147rm -f conftest.mmap
20148
20149  { echo "$as_me:$LINENO: checking for mmap of files" >&5
20150echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20151if test "${ac_cv_func_mmap_file+set}" = set; then
20152  echo $ECHO_N "(cached) $ECHO_C" >&6
20153else
20154   ac_ext=c
20155ac_cpp='$CPP $CPPFLAGS'
20156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159
20160  if test "$cross_compiling" = yes; then
20161  ac_cv_func_mmap_file=no
20162else
20163  cat >conftest.$ac_ext <<_ACEOF
20164
20165    /* confdefs.h.  */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h.  */
20170
20171#include <sys/types.h>
20172#include <sys/mman.h>
20173#include <fcntl.h>
20174
20175int
20176main ()
20177{
20178
20179  int fd;
20180  fd = creat ("foo",0777);
20181  fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20182  unlink ("foo");
20183  return (fd != (int) MAP_FAILED);
20184  ;
20185  return 0;
20186}
20187_ACEOF
20188rm -f conftest$ac_exeext
20189if { (ac_try="$ac_link"
20190case "(($ac_try" in
20191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192  *) ac_try_echo=$ac_try;;
20193esac
20194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195  (eval "$ac_link") 2>&5
20196  ac_status=$?
20197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20199  { (case "(($ac_try" in
20200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201  *) ac_try_echo=$ac_try;;
20202esac
20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204  (eval "$ac_try") 2>&5
20205  ac_status=$?
20206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207  (exit $ac_status); }; }; then
20208  ac_cv_func_mmap_file=yes
20209else
20210  echo "$as_me: program exited with status $ac_status" >&5
20211echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
20214( exit $ac_status )
20215ac_cv_func_mmap_file=no
20216fi
20217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20218fi
20219
20220
20221  ac_ext=c
20222ac_cpp='$CPP $CPPFLAGS'
20223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20225ac_compiler_gnu=$ac_cv_c_compiler_gnu
20226
20227
20228fi
20229{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20230echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20231if test "$ac_cv_func_mmap_file" = yes; then
20232
20233cat >>confdefs.h <<\_ACEOF
20234#define HAVE_MMAP_FILE
20235_ACEOF
20236
20237   MMAP_FILE=yes
20238
20239fi
20240
20241  { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20242echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20243if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20244  echo $ECHO_N "(cached) $ECHO_C" >&6
20245else
20246  if test "$llvm_cv_os_type" = "Interix" ; then
20247   ac_cv_need_dev_zero_for_mmap=yes
20248 else
20249   ac_cv_need_dev_zero_for_mmap=no
20250 fi
20251
20252fi
20253{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20254echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20255if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20256
20257cat >>confdefs.h <<\_ACEOF
20258#define NEED_DEV_ZERO_FOR_MMAP 1
20259_ACEOF
20260
20261fi
20262
20263  if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20264  then
20265    { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20266echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20267  fi
20268  if test "$ac_cv_func_mmap_file" = "no"
20269  then
20270    { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20271echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20272  fi
20273fi
20274
20275{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20276echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20277ac_ext=cpp
20278ac_cpp='$CXXCPP $CPPFLAGS'
20279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20282
20283cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h.  */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h.  */
20289int main() {
20290        volatile unsigned long val = 1;
20291        __sync_synchronize();
20292        __sync_val_compare_and_swap(&val, 1, 0);
20293        __sync_add_and_fetch(&val, 1);
20294        __sync_sub_and_fetch(&val, 1);
20295        return 0;
20296      }
20297
20298_ACEOF
20299rm -f conftest.$ac_objext conftest$ac_exeext
20300if { (ac_try="$ac_link"
20301case "(($ac_try" in
20302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303  *) ac_try_echo=$ac_try;;
20304esac
20305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306  (eval "$ac_link") 2>conftest.er1
20307  ac_status=$?
20308  grep -v '^ *+' conftest.er1 >conftest.err
20309  rm -f conftest.er1
20310  cat conftest.err >&5
20311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312  (exit $ac_status); } &&
20313	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314  { (case "(($ac_try" in
20315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316  *) ac_try_echo=$ac_try;;
20317esac
20318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319  (eval "$ac_try") 2>&5
20320  ac_status=$?
20321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322  (exit $ac_status); }; } &&
20323	 { ac_try='test -s conftest$ac_exeext'
20324  { (case "(($ac_try" in
20325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326  *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329  (eval "$ac_try") 2>&5
20330  ac_status=$?
20331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332  (exit $ac_status); }; }; then
20333  ac_ext=c
20334ac_cpp='$CPP $CPPFLAGS'
20335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20337ac_compiler_gnu=$ac_cv_c_compiler_gnu
20338
20339  { echo "$as_me:$LINENO: result: yes" >&5
20340echo "${ECHO_T}yes" >&6; }
20341
20342cat >>confdefs.h <<\_ACEOF
20343#define LLVM_MULTITHREADED 1
20344_ACEOF
20345
20346else
20347  echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350	{ echo "$as_me:$LINENO: result: no" >&5
20351echo "${ECHO_T}no" >&6; }
20352
20353cat >>confdefs.h <<\_ACEOF
20354#define LLVM_MULTITHREADED 0
20355_ACEOF
20356
20357  { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20358echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20359fi
20360
20361rm -f core conftest.err conftest.$ac_objext \
20362      conftest$ac_exeext conftest.$ac_ext
20363
20364
20365if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20366  { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20367echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20368if test "${llvm_cv_linux_mixed+set}" = set; then
20369  echo $ECHO_N "(cached) $ECHO_C" >&6
20370else
20371   ac_ext=c
20372ac_cpp='$CPP $CPPFLAGS'
20373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20375ac_compiler_gnu=$ac_cv_c_compiler_gnu
20376
20377  cat >conftest.$ac_ext <<_ACEOF
20378/* confdefs.h.  */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
20382/* end confdefs.h.  */
20383#ifndef __x86_64__
20384       error: Not x86-64 even if uname says so!
20385      #endif
20386
20387int
20388main ()
20389{
20390
20391  ;
20392  return 0;
20393}
20394_ACEOF
20395rm -f conftest.$ac_objext
20396if { (ac_try="$ac_compile"
20397case "(($ac_try" in
20398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399  *) ac_try_echo=$ac_try;;
20400esac
20401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402  (eval "$ac_compile") 2>conftest.er1
20403  ac_status=$?
20404  grep -v '^ *+' conftest.er1 >conftest.err
20405  rm -f conftest.er1
20406  cat conftest.err >&5
20407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408  (exit $ac_status); } &&
20409	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20410  { (case "(($ac_try" in
20411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412  *) ac_try_echo=$ac_try;;
20413esac
20414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415  (eval "$ac_try") 2>&5
20416  ac_status=$?
20417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418  (exit $ac_status); }; } &&
20419	 { ac_try='test -s conftest.$ac_objext'
20420  { (case "(($ac_try" in
20421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422  *) ac_try_echo=$ac_try;;
20423esac
20424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425  (eval "$ac_try") 2>&5
20426  ac_status=$?
20427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428  (exit $ac_status); }; }; then
20429  llvm_cv_linux_mixed=no
20430else
20431  echo "$as_me: failed program was:" >&5
20432sed 's/^/| /' conftest.$ac_ext >&5
20433
20434	llvm_cv_linux_mixed=yes
20435fi
20436
20437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438  ac_ext=c
20439ac_cpp='$CPP $CPPFLAGS'
20440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20442ac_compiler_gnu=$ac_cv_c_compiler_gnu
20443
20444
20445fi
20446{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20447echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20448
20449  if test "$llvm_cv_linux_mixed" = "yes"; then
20450    llvm_cv_target_arch="x86"
20451    ARCH="x86"
20452  fi
20453fi
20454
20455
20456for ac_func in __dso_handle
20457do
20458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20459{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20461if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20462  echo $ECHO_N "(cached) $ECHO_C" >&6
20463else
20464  cat >conftest.$ac_ext <<_ACEOF
20465/* confdefs.h.  */
20466_ACEOF
20467cat confdefs.h >>conftest.$ac_ext
20468cat >>conftest.$ac_ext <<_ACEOF
20469/* end confdefs.h.  */
20470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20471   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20472#define $ac_func innocuous_$ac_func
20473
20474/* System header to define __stub macros and hopefully few prototypes,
20475    which can conflict with char $ac_func (); below.
20476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20477    <limits.h> exists even on freestanding compilers.  */
20478
20479#ifdef __STDC__
20480# include <limits.h>
20481#else
20482# include <assert.h>
20483#endif
20484
20485#undef $ac_func
20486
20487/* Override any GCC internal prototype to avoid an error.
20488   Use char because int might match the return type of a GCC
20489   builtin and then its argument prototype would still apply.  */
20490#ifdef __cplusplus
20491extern "C"
20492#endif
20493char $ac_func ();
20494/* The GNU C library defines this for functions which it implements
20495    to always fail with ENOSYS.  Some functions are actually named
20496    something starting with __ and the normal name is an alias.  */
20497#if defined __stub_$ac_func || defined __stub___$ac_func
20498choke me
20499#endif
20500
20501int
20502main ()
20503{
20504return $ac_func ();
20505  ;
20506  return 0;
20507}
20508_ACEOF
20509rm -f conftest.$ac_objext conftest$ac_exeext
20510if { (ac_try="$ac_link"
20511case "(($ac_try" in
20512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513  *) ac_try_echo=$ac_try;;
20514esac
20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516  (eval "$ac_link") 2>conftest.er1
20517  ac_status=$?
20518  grep -v '^ *+' conftest.er1 >conftest.err
20519  rm -f conftest.er1
20520  cat conftest.err >&5
20521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522  (exit $ac_status); } &&
20523	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20524  { (case "(($ac_try" in
20525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526  *) ac_try_echo=$ac_try;;
20527esac
20528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529  (eval "$ac_try") 2>&5
20530  ac_status=$?
20531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532  (exit $ac_status); }; } &&
20533	 { ac_try='test -s conftest$ac_exeext'
20534  { (case "(($ac_try" in
20535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536  *) ac_try_echo=$ac_try;;
20537esac
20538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539  (eval "$ac_try") 2>&5
20540  ac_status=$?
20541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542  (exit $ac_status); }; }; then
20543  eval "$as_ac_var=yes"
20544else
20545  echo "$as_me: failed program was:" >&5
20546sed 's/^/| /' conftest.$ac_ext >&5
20547
20548	eval "$as_ac_var=no"
20549fi
20550
20551rm -f core conftest.err conftest.$ac_objext \
20552      conftest$ac_exeext conftest.$ac_ext
20553fi
20554ac_res=`eval echo '${'$as_ac_var'}'`
20555	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20556echo "${ECHO_T}$ac_res" >&6; }
20557if test `eval echo '${'$as_ac_var'}'` = yes; then
20558  cat >>confdefs.h <<_ACEOF
20559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20560_ACEOF
20561
20562fi
20563done
20564
20565
20566{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20567echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20568if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20569  echo $ECHO_N "(cached) $ECHO_C" >&6
20570else
20571  llvm_cv_llvmgcc_dragonegg="no"
20572if test -x "$LLVMGCC" ; then
20573  cp /dev/null conftest.c
20574  "$LLVMGCC" -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c | \
20575  grep 'target datalayout =' > /dev/null 2>&1
20576  if test $? -eq 0 ; then
20577    llvm_cv_llvmgcc_dragonegg="yes"
20578  fi
20579  rm conftest.c
20580fi
20581fi
20582{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20583echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20584
20585if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20586  LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20587  LLVMGCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20588else
20589  LLVMCC_EMITIR_FLAG="-emit-llvm"
20590  LLVMGCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20591fi
20592
20593
20594
20595{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20596echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20597if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20598  echo $ECHO_N "(cached) $ECHO_C" >&6
20599else
20600  llvm_cv_llvmgcc_sanity="no"
20601if test -x "$LLVMGCC" ; then
20602  cp /dev/null conftest.c
20603  "$LLVMGCC" "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20604      grep 'target datalayout =' > /dev/null 2>&1
20605  if test $? -eq 0 ; then
20606    llvm_cv_llvmgcc_sanity="yes"
20607  fi
20608  rm conftest.c
20609fi
20610fi
20611{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20612echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20613
20614if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20615  { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20616echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20617  llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20618  LLVMCC1=$llvmcc1path
20619
20620  llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20621  LLVMCC1PLUS=$llvmcc1pluspath
20622
20623  llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20624  LLVMGCCDIR=$llvmgccdir
20625
20626  llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20627  LLVMGCC_LANGS=$llvmgcclangs
20628
20629  LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20630
20631
20632  { echo "$as_me:$LINENO: result: ok" >&5
20633echo "${ECHO_T}ok" >&6; }
20634fi
20635
20636SHLIBEXT=$libltdl_cv_shlibext
20637
20638
20639SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20640
20641
20642# Translate the various configuration directories and other basic
20643# information into substitutions that will end up in Makefile.config.in
20644# that these configured values can be used by the makefiles
20645if test "${prefix}" = "NONE" ; then
20646  prefix="/usr/local"
20647fi
20648eval LLVM_PREFIX="${prefix}";
20649eval LLVM_BINDIR="${prefix}/bin";
20650eval LLVM_LIBDIR="${prefix}/lib";
20651eval LLVM_DATADIR="${prefix}/share/llvm";
20652eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20653eval LLVM_ETCDIR="${prefix}/etc/llvm";
20654eval LLVM_INCLUDEDIR="${prefix}/include";
20655eval LLVM_INFODIR="${prefix}/info";
20656eval LLVM_MANDIR="${prefix}/man";
20657LLVM_CONFIGTIME=`date`
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669# Place the various directores into the config.h file as #defines so that we
20670# can know about the installation paths within LLVM.
20671
20672cat >>confdefs.h <<_ACEOF
20673#define LLVM_PREFIX "$LLVM_PREFIX"
20674_ACEOF
20675
20676
20677cat >>confdefs.h <<_ACEOF
20678#define LLVM_BINDIR "$LLVM_BINDIR"
20679_ACEOF
20680
20681
20682cat >>confdefs.h <<_ACEOF
20683#define LLVM_LIBDIR "$LLVM_LIBDIR"
20684_ACEOF
20685
20686
20687cat >>confdefs.h <<_ACEOF
20688#define LLVM_DATADIR "$LLVM_DATADIR"
20689_ACEOF
20690
20691
20692cat >>confdefs.h <<_ACEOF
20693#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20694_ACEOF
20695
20696
20697cat >>confdefs.h <<_ACEOF
20698#define LLVM_ETCDIR "$LLVM_ETCDIR"
20699_ACEOF
20700
20701
20702cat >>confdefs.h <<_ACEOF
20703#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20704_ACEOF
20705
20706
20707cat >>confdefs.h <<_ACEOF
20708#define LLVM_INFODIR "$LLVM_INFODIR"
20709_ACEOF
20710
20711
20712cat >>confdefs.h <<_ACEOF
20713#define LLVM_MANDIR "$LLVM_MANDIR"
20714_ACEOF
20715
20716
20717cat >>confdefs.h <<_ACEOF
20718#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20719_ACEOF
20720
20721
20722cat >>confdefs.h <<_ACEOF
20723#define LLVM_HOSTTRIPLE "$host"
20724_ACEOF
20725
20726
20727# Determine which bindings to build.
20728if test "$BINDINGS_TO_BUILD" = auto ; then
20729  BINDINGS_TO_BUILD=""
20730  if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20731    BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20732  fi
20733fi
20734BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20735
20736
20737# This isn't really configurey, but it avoids having to repeat the list in
20738# other files.
20739ALL_BINDINGS=ocaml
20740
20741
20742# Do any work necessary to ensure that bindings have what they need.
20743binding_prereqs_failed=0
20744for a_binding in $BINDINGS_TO_BUILD ; do
20745  case "$a_binding" in
20746  ocaml)
20747    if test "x$OCAMLC" = x ; then
20748      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20749echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20750      binding_prereqs_failed=1
20751    fi
20752    if test "x$OCAMLDEP" = x ; then
20753      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20754echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20755      binding_prereqs_failed=1
20756    fi
20757    if test "x$OCAMLOPT" = x ; then
20758      { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20759echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20760          fi
20761    if test "x$with_ocaml_libdir" != xauto ; then
20762      OCAML_LIBDIR=$with_ocaml_libdir
20763
20764    else
20765      ocaml_stdlib="`"$OCAMLC" -where`"
20766      if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20767      then
20768        # ocaml stdlib is beneath our prefix; use stdlib
20769        OCAML_LIBDIR=$ocaml_stdlib
20770
20771      else
20772        # ocaml stdlib is outside our prefix; use libdir/ocaml
20773        OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20774
20775      fi
20776    fi
20777    ;;
20778  esac
20779done
20780if test "$binding_prereqs_failed" = 1 ; then
20781  { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20782echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20783   { (exit 1); exit 1; }; }
20784fi
20785
20786{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20787echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20788if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20789  echo $ECHO_N "(cached) $ECHO_C" >&6
20790else
20791   ac_ext=cpp
20792ac_cpp='$CXXCPP $CPPFLAGS'
20793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20796
20797  oldcxxflags="$CXXFLAGS"
20798  CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20799  cat >conftest.$ac_ext <<_ACEOF
20800/* confdefs.h.  */
20801_ACEOF
20802cat confdefs.h >>conftest.$ac_ext
20803cat >>conftest.$ac_ext <<_ACEOF
20804/* end confdefs.h.  */
20805
20806int
20807main ()
20808{
20809
20810  ;
20811  return 0;
20812}
20813_ACEOF
20814rm -f conftest.$ac_objext
20815if { (ac_try="$ac_compile"
20816case "(($ac_try" in
20817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818  *) ac_try_echo=$ac_try;;
20819esac
20820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821  (eval "$ac_compile") 2>conftest.er1
20822  ac_status=$?
20823  grep -v '^ *+' conftest.er1 >conftest.err
20824  rm -f conftest.er1
20825  cat conftest.err >&5
20826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827  (exit $ac_status); } &&
20828	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20829  { (case "(($ac_try" in
20830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831  *) ac_try_echo=$ac_try;;
20832esac
20833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834  (eval "$ac_try") 2>&5
20835  ac_status=$?
20836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837  (exit $ac_status); }; } &&
20838	 { ac_try='test -s conftest.$ac_objext'
20839  { (case "(($ac_try" in
20840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841  *) ac_try_echo=$ac_try;;
20842esac
20843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844  (eval "$ac_try") 2>&5
20845  ac_status=$?
20846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847  (exit $ac_status); }; }; then
20848  llvm_cv_cxx_visibility_inlines_hidden=yes
20849else
20850  echo "$as_me: failed program was:" >&5
20851sed 's/^/| /' conftest.$ac_ext >&5
20852
20853	llvm_cv_cxx_visibility_inlines_hidden=no
20854fi
20855
20856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857  CXXFLAGS="$oldcxxflags"
20858  ac_ext=c
20859ac_cpp='$CPP $CPPFLAGS'
20860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
20864
20865fi
20866{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20867echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20868if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20869  ENABLE_VISIBILITY_INLINES_HIDDEN=1
20870
20871else
20872  ENABLE_VISIBILITY_INLINES_HIDDEN=0
20873
20874fi
20875
20876
20877if test "$llvm_cv_link_use_r" = "yes" ; then
20878  RPATH="-Wl,-R"
20879else
20880  RPATH="-Wl,-rpath"
20881fi
20882
20883
20884if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20885  RDYNAMIC="-Wl,-export-dynamic"
20886else
20887  RDYNAMIC=""
20888fi
20889
20890
20891
20892ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20893
20894
20895
20896
20897
20898
20899ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20900
20901ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20902
20903ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20904
20905ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20906
20907ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20908
20909
20910ac_config_files="$ac_config_files Makefile.config"
20911
20912
20913ac_config_files="$ac_config_files llvm.spec"
20914
20915
20916ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20917
20918
20919ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20920
20921
20922ac_config_commands="$ac_config_commands setup"
20923
20924ac_config_commands="$ac_config_commands Makefile"
20925
20926
20927ac_config_commands="$ac_config_commands Makefile.common"
20928
20929
20930ac_config_commands="$ac_config_commands examples/Makefile"
20931
20932
20933ac_config_commands="$ac_config_commands lib/Makefile"
20934
20935
20936ac_config_commands="$ac_config_commands runtime/Makefile"
20937
20938
20939ac_config_commands="$ac_config_commands test/Makefile"
20940
20941
20942ac_config_commands="$ac_config_commands test/Makefile.tests"
20943
20944
20945ac_config_commands="$ac_config_commands unittests/Makefile"
20946
20947
20948ac_config_commands="$ac_config_commands tools/Makefile"
20949
20950
20951ac_config_commands="$ac_config_commands utils/Makefile"
20952
20953
20954ac_config_commands="$ac_config_commands projects/Makefile"
20955
20956
20957ac_config_commands="$ac_config_commands bindings/Makefile"
20958
20959
20960ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20961
20962
20963
20964cat >confcache <<\_ACEOF
20965# This file is a shell script that caches the results of configure
20966# tests run on this system so they can be shared between configure
20967# scripts and configure runs, see configure's option --config-cache.
20968# It is not useful on other systems.  If it contains results you don't
20969# want to keep, you may remove or edit it.
20970#
20971# config.status only pays attention to the cache file if you give it
20972# the --recheck option to rerun configure.
20973#
20974# `ac_cv_env_foo' variables (set or unset) will be overridden when
20975# loading this file, other *unset* `ac_cv_foo' will be assigned the
20976# following values.
20977
20978_ACEOF
20979
20980# The following way of writing the cache mishandles newlines in values,
20981# but we know of no workaround that is simple, portable, and efficient.
20982# So, we kill variables containing newlines.
20983# Ultrix sh set writes to stderr and can't be redirected directly,
20984# and sets the high bit in the cache file unless we assign to the vars.
20985(
20986  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20987    eval ac_val=\$$ac_var
20988    case $ac_val in #(
20989    *${as_nl}*)
20990      case $ac_var in #(
20991      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20992echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20993      esac
20994      case $ac_var in #(
20995      _ | IFS | as_nl) ;; #(
20996      *) $as_unset $ac_var ;;
20997      esac ;;
20998    esac
20999  done
21000
21001  (set) 2>&1 |
21002    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21003    *${as_nl}ac_space=\ *)
21004      # `set' does not quote correctly, so add quotes (double-quote
21005      # substitution turns \\\\ into \\, and sed turns \\ into \).
21006      sed -n \
21007	"s/'/'\\\\''/g;
21008	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21009      ;; #(
21010    *)
21011      # `set' quotes correctly as required by POSIX, so do not add quotes.
21012      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21013      ;;
21014    esac |
21015    sort
21016) |
21017  sed '
21018     /^ac_cv_env_/b end
21019     t clear
21020     :clear
21021     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21022     t end
21023     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21024     :end' >>confcache
21025if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21026  if test -w "$cache_file"; then
21027    test "x$cache_file" != "x/dev/null" &&
21028      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21029echo "$as_me: updating cache $cache_file" >&6;}
21030    cat confcache >$cache_file
21031  else
21032    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21033echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21034  fi
21035fi
21036rm -f confcache
21037
21038test "x$prefix" = xNONE && prefix=$ac_default_prefix
21039# Let make expand exec_prefix.
21040test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21041
21042DEFS=-DHAVE_CONFIG_H
21043
21044ac_libobjs=
21045ac_ltlibobjs=
21046for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21047  # 1. Remove the extension, and $U if already installed.
21048  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21049  ac_i=`echo "$ac_i" | sed "$ac_script"`
21050  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21051  #    will be set to the directory where LIBOBJS objects are built.
21052  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21053  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21054done
21055LIBOBJS=$ac_libobjs
21056
21057LTLIBOBJS=$ac_ltlibobjs
21058
21059
21060if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21061  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21062Usually this means the macro was only invoked conditionally." >&5
21063echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21064Usually this means the macro was only invoked conditionally." >&2;}
21065   { (exit 1); exit 1; }; }
21066fi
21067if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21068  { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21069Usually this means the macro was only invoked conditionally." >&5
21070echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21071Usually this means the macro was only invoked conditionally." >&2;}
21072   { (exit 1); exit 1; }; }
21073fi
21074
21075: ${CONFIG_STATUS=./config.status}
21076ac_clean_files_save=$ac_clean_files
21077ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21078{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21079echo "$as_me: creating $CONFIG_STATUS" >&6;}
21080cat >$CONFIG_STATUS <<_ACEOF
21081#! $SHELL
21082# Generated by $as_me.
21083# Run this file to recreate the current configuration.
21084# Compiler output produced by configure, useful for debugging
21085# configure, is in config.log if it exists.
21086
21087debug=false
21088ac_cs_recheck=false
21089ac_cs_silent=false
21090SHELL=\${CONFIG_SHELL-$SHELL}
21091_ACEOF
21092
21093cat >>$CONFIG_STATUS <<\_ACEOF
21094## --------------------- ##
21095## M4sh Initialization.  ##
21096## --------------------- ##
21097
21098# Be Bourne compatible
21099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21100  emulate sh
21101  NULLCMD=:
21102  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21103  # is contrary to our usage.  Disable this feature.
21104  alias -g '${1+"$@"}'='"$@"'
21105  setopt NO_GLOB_SUBST
21106else
21107  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21108fi
21109BIN_SH=xpg4; export BIN_SH # for Tru64
21110DUALCASE=1; export DUALCASE # for MKS sh
21111
21112
21113# PATH needs CR
21114# Avoid depending upon Character Ranges.
21115as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21117as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21118as_cr_digits='0123456789'
21119as_cr_alnum=$as_cr_Letters$as_cr_digits
21120
21121# The user is always right.
21122if test "${PATH_SEPARATOR+set}" != set; then
21123  echo "#! /bin/sh" >conf$$.sh
21124  echo  "exit 0"   >>conf$$.sh
21125  chmod +x conf$$.sh
21126  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21127    PATH_SEPARATOR=';'
21128  else
21129    PATH_SEPARATOR=:
21130  fi
21131  rm -f conf$$.sh
21132fi
21133
21134# Support unset when possible.
21135if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21136  as_unset=unset
21137else
21138  as_unset=false
21139fi
21140
21141
21142# IFS
21143# We need space, tab and new line, in precisely that order.  Quoting is
21144# there to prevent editors from complaining about space-tab.
21145# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21146# splitting by setting IFS to empty value.)
21147as_nl='
21148'
21149IFS=" ""	$as_nl"
21150
21151# Find who we are.  Look in the path if we contain no directory separator.
21152case $0 in
21153  *[\\/]* ) as_myself=$0 ;;
21154  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21155for as_dir in $PATH
21156do
21157  IFS=$as_save_IFS
21158  test -z "$as_dir" && as_dir=.
21159  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21160done
21161IFS=$as_save_IFS
21162
21163     ;;
21164esac
21165# We did not find ourselves, most probably we were run as `sh COMMAND'
21166# in which case we are not to be found in the path.
21167if test "x$as_myself" = x; then
21168  as_myself=$0
21169fi
21170if test ! -f "$as_myself"; then
21171  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21172  { (exit 1); exit 1; }
21173fi
21174
21175# Work around bugs in pre-3.0 UWIN ksh.
21176for as_var in ENV MAIL MAILPATH
21177do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21178done
21179PS1='$ '
21180PS2='> '
21181PS4='+ '
21182
21183# NLS nuisances.
21184for as_var in \
21185  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21186  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21187  LC_TELEPHONE LC_TIME
21188do
21189  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21190    eval $as_var=C; export $as_var
21191  else
21192    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21193  fi
21194done
21195
21196# Required to use basename.
21197if expr a : '\(a\)' >/dev/null 2>&1 &&
21198   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21199  as_expr=expr
21200else
21201  as_expr=false
21202fi
21203
21204if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21205  as_basename=basename
21206else
21207  as_basename=false
21208fi
21209
21210
21211# Name of the executable.
21212as_me=`$as_basename -- "$0" ||
21213$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21214	 X"$0" : 'X\(//\)$' \| \
21215	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21216echo X/"$0" |
21217    sed '/^.*\/\([^/][^/]*\)\/*$/{
21218	    s//\1/
21219	    q
21220	  }
21221	  /^X\/\(\/\/\)$/{
21222	    s//\1/
21223	    q
21224	  }
21225	  /^X\/\(\/\).*/{
21226	    s//\1/
21227	    q
21228	  }
21229	  s/.*/./; q'`
21230
21231# CDPATH.
21232$as_unset CDPATH
21233
21234
21235
21236  as_lineno_1=$LINENO
21237  as_lineno_2=$LINENO
21238  test "x$as_lineno_1" != "x$as_lineno_2" &&
21239  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21240
21241  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21242  # uniformly replaced by the line number.  The first 'sed' inserts a
21243  # line-number line after each line using $LINENO; the second 'sed'
21244  # does the real work.  The second script uses 'N' to pair each
21245  # line-number line with the line containing $LINENO, and appends
21246  # trailing '-' during substitution so that $LINENO is not a special
21247  # case at line end.
21248  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21249  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21250  # E. McMahon (1931-1989) for sed's syntax.  :-)
21251  sed -n '
21252    p
21253    /[$]LINENO/=
21254  ' <$as_myself |
21255    sed '
21256      s/[$]LINENO.*/&-/
21257      t lineno
21258      b
21259      :lineno
21260      N
21261      :loop
21262      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21263      t loop
21264      s/-\n.*//
21265    ' >$as_me.lineno &&
21266  chmod +x "$as_me.lineno" ||
21267    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21268   { (exit 1); exit 1; }; }
21269
21270  # Don't try to exec as it changes $[0], causing all sort of problems
21271  # (the dirname of $[0] is not the place where we might find the
21272  # original and so on.  Autoconf is especially sensitive to this).
21273  . "./$as_me.lineno"
21274  # Exit status is that of the last command.
21275  exit
21276}
21277
21278
21279if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21280  as_dirname=dirname
21281else
21282  as_dirname=false
21283fi
21284
21285ECHO_C= ECHO_N= ECHO_T=
21286case `echo -n x` in
21287-n*)
21288  case `echo 'x\c'` in
21289  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21290  *)   ECHO_C='\c';;
21291  esac;;
21292*)
21293  ECHO_N='-n';;
21294esac
21295
21296if expr a : '\(a\)' >/dev/null 2>&1 &&
21297   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21298  as_expr=expr
21299else
21300  as_expr=false
21301fi
21302
21303rm -f conf$$ conf$$.exe conf$$.file
21304if test -d conf$$.dir; then
21305  rm -f conf$$.dir/conf$$.file
21306else
21307  rm -f conf$$.dir
21308  mkdir conf$$.dir
21309fi
21310echo >conf$$.file
21311if ln -s conf$$.file conf$$ 2>/dev/null; then
21312  as_ln_s='ln -s'
21313  # ... but there are two gotchas:
21314  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21315  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21316  # In both cases, we have to default to `cp -p'.
21317  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21318    as_ln_s='cp -p'
21319elif ln conf$$.file conf$$ 2>/dev/null; then
21320  as_ln_s=ln
21321else
21322  as_ln_s='cp -p'
21323fi
21324rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21325rmdir conf$$.dir 2>/dev/null
21326
21327if mkdir -p . 2>/dev/null; then
21328  as_mkdir_p=:
21329else
21330  test -d ./-p && rmdir ./-p
21331  as_mkdir_p=false
21332fi
21333
21334# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21335# systems may use methods other than mode bits to determine executability.
21336cat >conf$$.file <<_ASEOF
21337#! /bin/sh
21338exit 0
21339_ASEOF
21340chmod +x conf$$.file
21341if test -x conf$$.file >/dev/null 2>&1; then
21342  as_executable_p="test -x"
21343else
21344  as_executable_p=:
21345fi
21346rm -f conf$$.file
21347
21348# Sed expression to map a string onto a valid CPP name.
21349as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21350
21351# Sed expression to map a string onto a valid variable name.
21352as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21353
21354
21355exec 6>&1
21356
21357# Save the log message, to keep $[0] and so on meaningful, and to
21358# report actual input values of CONFIG_FILES etc. instead of their
21359# values after options handling.
21360ac_log="
21361This file was extended by llvm $as_me 2.9svn, which was
21362generated by GNU Autoconf 2.60.  Invocation command line was
21363
21364  CONFIG_FILES    = $CONFIG_FILES
21365  CONFIG_HEADERS  = $CONFIG_HEADERS
21366  CONFIG_LINKS    = $CONFIG_LINKS
21367  CONFIG_COMMANDS = $CONFIG_COMMANDS
21368  $ $0 $@
21369
21370on `(hostname || uname -n) 2>/dev/null | sed 1q`
21371"
21372
21373_ACEOF
21374
21375cat >>$CONFIG_STATUS <<_ACEOF
21376# Files that config.status was made for.
21377config_files="$ac_config_files"
21378config_headers="$ac_config_headers"
21379config_commands="$ac_config_commands"
21380
21381_ACEOF
21382
21383cat >>$CONFIG_STATUS <<\_ACEOF
21384ac_cs_usage="\
21385\`$as_me' instantiates files from templates according to the
21386current configuration.
21387
21388Usage: $0 [OPTIONS] [FILE]...
21389
21390  -h, --help       print this help, then exit
21391  -V, --version    print version number, then exit
21392  -q, --quiet      do not print progress messages
21393  -d, --debug      don't remove temporary files
21394      --recheck    update $as_me by reconfiguring in the same conditions
21395  --file=FILE[:TEMPLATE]
21396		   instantiate the configuration file FILE
21397  --header=FILE[:TEMPLATE]
21398		   instantiate the configuration header FILE
21399
21400Configuration files:
21401$config_files
21402
21403Configuration headers:
21404$config_headers
21405
21406Configuration commands:
21407$config_commands
21408
21409Report bugs to <bug-autoconf@gnu.org>."
21410
21411_ACEOF
21412cat >>$CONFIG_STATUS <<_ACEOF
21413ac_cs_version="\\
21414llvm config.status 2.9svn
21415configured by $0, generated by GNU Autoconf 2.60,
21416  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21417
21418Copyright (C) 2006 Free Software Foundation, Inc.
21419This config.status script is free software; the Free Software Foundation
21420gives unlimited permission to copy, distribute and modify it."
21421
21422ac_pwd='$ac_pwd'
21423srcdir='$srcdir'
21424INSTALL='$INSTALL'
21425_ACEOF
21426
21427cat >>$CONFIG_STATUS <<\_ACEOF
21428# If no file are specified by the user, then we need to provide default
21429# value.  By we need to know if files were specified by the user.
21430ac_need_defaults=:
21431while test $# != 0
21432do
21433  case $1 in
21434  --*=*)
21435    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21436    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21437    ac_shift=:
21438    ;;
21439  *)
21440    ac_option=$1
21441    ac_optarg=$2
21442    ac_shift=shift
21443    ;;
21444  esac
21445
21446  case $ac_option in
21447  # Handling of the options.
21448  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21449    ac_cs_recheck=: ;;
21450  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21451    echo "$ac_cs_version"; exit ;;
21452  --debug | --debu | --deb | --de | --d | -d )
21453    debug=: ;;
21454  --file | --fil | --fi | --f )
21455    $ac_shift
21456    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21457    ac_need_defaults=false;;
21458  --header | --heade | --head | --hea )
21459    $ac_shift
21460    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21461    ac_need_defaults=false;;
21462  --he | --h)
21463    # Conflict between --help and --header
21464    { echo "$as_me: error: ambiguous option: $1
21465Try \`$0 --help' for more information." >&2
21466   { (exit 1); exit 1; }; };;
21467  --help | --hel | -h )
21468    echo "$ac_cs_usage"; exit ;;
21469  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21470  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21471    ac_cs_silent=: ;;
21472
21473  # This is an error.
21474  -*) { echo "$as_me: error: unrecognized option: $1
21475Try \`$0 --help' for more information." >&2
21476   { (exit 1); exit 1; }; } ;;
21477
21478  *) ac_config_targets="$ac_config_targets $1"
21479     ac_need_defaults=false ;;
21480
21481  esac
21482  shift
21483done
21484
21485ac_configure_extra_args=
21486
21487if $ac_cs_silent; then
21488  exec 6>/dev/null
21489  ac_configure_extra_args="$ac_configure_extra_args --silent"
21490fi
21491
21492_ACEOF
21493cat >>$CONFIG_STATUS <<_ACEOF
21494if \$ac_cs_recheck; then
21495  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21496  CONFIG_SHELL=$SHELL
21497  export CONFIG_SHELL
21498  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21499fi
21500
21501_ACEOF
21502cat >>$CONFIG_STATUS <<\_ACEOF
21503exec 5>>config.log
21504{
21505  echo
21506  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21507## Running $as_me. ##
21508_ASBOX
21509  echo "$ac_log"
21510} >&5
21511
21512_ACEOF
21513cat >>$CONFIG_STATUS <<_ACEOF
21514#
21515# INIT-COMMANDS
21516#
21517llvm_src="${srcdir}"
21518
21519_ACEOF
21520
21521cat >>$CONFIG_STATUS <<\_ACEOF
21522
21523# Handling of arguments.
21524for ac_config_target in $ac_config_targets
21525do
21526  case $ac_config_target in
21527    "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21528    "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21529    "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21530    "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21531    "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21532    "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21533    "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21534    "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21535    "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21536    "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21537    "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21538    "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21539    "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21540    "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21541    "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21542    "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21543    "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21544    "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21545    "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21546    "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21547    "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21548    "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21549    "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21550    "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21551    "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21552
21553  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21554echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21555   { (exit 1); exit 1; }; };;
21556  esac
21557done
21558
21559
21560# If the user did not use the arguments to specify the items to instantiate,
21561# then the envvar interface is used.  Set only those that are not.
21562# We use the long form for the default assignment because of an extremely
21563# bizarre bug on SunOS 4.1.3.
21564if $ac_need_defaults; then
21565  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21566  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21567  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21568fi
21569
21570# Have a temporary directory for convenience.  Make it in the build tree
21571# simply because there is no reason against having it here, and in addition,
21572# creating and moving files from /tmp can sometimes cause problems.
21573# Hook for its removal unless debugging.
21574# Note that there is a small window in which the directory will not be cleaned:
21575# after its creation but before its name has been assigned to `$tmp'.
21576$debug ||
21577{
21578  tmp=
21579  trap 'exit_status=$?
21580  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21581' 0
21582  trap '{ (exit 1); exit 1; }' 1 2 13 15
21583}
21584# Create a (secure) tmp directory for tmp files.
21585
21586{
21587  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21588  test -n "$tmp" && test -d "$tmp"
21589}  ||
21590{
21591  tmp=./conf$$-$RANDOM
21592  (umask 077 && mkdir "$tmp")
21593} ||
21594{
21595   echo "$me: cannot create a temporary directory in ." >&2
21596   { (exit 1); exit 1; }
21597}
21598
21599#
21600# Set up the sed scripts for CONFIG_FILES section.
21601#
21602
21603# No need to generate the scripts if there are no CONFIG_FILES.
21604# This happens for instance when ./config.status config.h
21605if test -n "$CONFIG_FILES"; then
21606
21607_ACEOF
21608
21609
21610
21611ac_delim='%!_!# '
21612for ac_last_try in false false false false false :; do
21613  cat >conf$$subs.sed <<_ACEOF
21614SHELL!$SHELL$ac_delim
21615PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21616PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21617PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21618PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21619PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21620PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21621exec_prefix!$exec_prefix$ac_delim
21622prefix!$prefix$ac_delim
21623program_transform_name!$program_transform_name$ac_delim
21624bindir!$bindir$ac_delim
21625sbindir!$sbindir$ac_delim
21626libexecdir!$libexecdir$ac_delim
21627datarootdir!$datarootdir$ac_delim
21628datadir!$datadir$ac_delim
21629sysconfdir!$sysconfdir$ac_delim
21630sharedstatedir!$sharedstatedir$ac_delim
21631localstatedir!$localstatedir$ac_delim
21632includedir!$includedir$ac_delim
21633oldincludedir!$oldincludedir$ac_delim
21634docdir!$docdir$ac_delim
21635infodir!$infodir$ac_delim
21636htmldir!$htmldir$ac_delim
21637dvidir!$dvidir$ac_delim
21638pdfdir!$pdfdir$ac_delim
21639psdir!$psdir$ac_delim
21640libdir!$libdir$ac_delim
21641localedir!$localedir$ac_delim
21642mandir!$mandir$ac_delim
21643DEFS!$DEFS$ac_delim
21644ECHO_C!$ECHO_C$ac_delim
21645ECHO_N!$ECHO_N$ac_delim
21646ECHO_T!$ECHO_T$ac_delim
21647LIBS!$LIBS$ac_delim
21648build_alias!$build_alias$ac_delim
21649host_alias!$host_alias$ac_delim
21650target_alias!$target_alias$ac_delim
21651LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21652subdirs!$subdirs$ac_delim
21653ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21654LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21655build!$build$ac_delim
21656build_cpu!$build_cpu$ac_delim
21657build_vendor!$build_vendor$ac_delim
21658build_os!$build_os$ac_delim
21659host!$host$ac_delim
21660host_cpu!$host_cpu$ac_delim
21661host_vendor!$host_vendor$ac_delim
21662host_os!$host_os$ac_delim
21663target!$target$ac_delim
21664target_cpu!$target_cpu$ac_delim
21665target_vendor!$target_vendor$ac_delim
21666target_os!$target_os$ac_delim
21667OS!$OS$ac_delim
21668HOST_OS!$HOST_OS$ac_delim
21669TARGET_OS!$TARGET_OS$ac_delim
21670LINKALL!$LINKALL$ac_delim
21671NOLINKALL!$NOLINKALL$ac_delim
21672LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21673LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21674ARCH!$ARCH$ac_delim
21675ENDIAN!$ENDIAN$ac_delim
21676CC!$CC$ac_delim
21677CFLAGS!$CFLAGS$ac_delim
21678LDFLAGS!$LDFLAGS$ac_delim
21679CPPFLAGS!$CPPFLAGS$ac_delim
21680ac_ct_CC!$ac_ct_CC$ac_delim
21681EXEEXT!$EXEEXT$ac_delim
21682OBJEXT!$OBJEXT$ac_delim
21683CPP!$CPP$ac_delim
21684GREP!$GREP$ac_delim
21685EGREP!$EGREP$ac_delim
21686LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21687BUILD_CC!$BUILD_CC$ac_delim
21688BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21689BUILD_CXX!$BUILD_CXX$ac_delim
21690CVSBUILD!$CVSBUILD$ac_delim
21691ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21692ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21693DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21694ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21695EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21696DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21697DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21698JIT!$JIT$ac_delim
21699TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21700ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21701ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21702ENABLE_PIC!$ENABLE_PIC$ac_delim
21703ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21704ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21705TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21706LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21707LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21708LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21709LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21710ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21711_ACEOF
21712
21713  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21714    break
21715  elif $ac_last_try; then
21716    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21717echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21718   { (exit 1); exit 1; }; }
21719  else
21720    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21721  fi
21722done
21723
21724ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21725if test -n "$ac_eof"; then
21726  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21727  ac_eof=`expr $ac_eof + 1`
21728fi
21729
21730cat >>$CONFIG_STATUS <<_ACEOF
21731cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21732/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21733_ACEOF
21734sed '
21735s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21736s/^/s,@/; s/!/@,|#_!!_#|/
21737:n
21738t n
21739s/'"$ac_delim"'$/,g/; t
21740s/$/\\/; p
21741N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21742' >>$CONFIG_STATUS <conf$$subs.sed
21743rm -f conf$$subs.sed
21744cat >>$CONFIG_STATUS <<_ACEOF
21745CEOF$ac_eof
21746_ACEOF
21747
21748
21749ac_delim='%!_!# '
21750for ac_last_try in false false false false false :; do
21751  cat >conf$$subs.sed <<_ACEOF
21752CLANGPATH!$CLANGPATH$ac_delim
21753CLANGXXPATH!$CLANGXXPATH$ac_delim
21754ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21755OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21756EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21757BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21758CXX!$CXX$ac_delim
21759CXXFLAGS!$CXXFLAGS$ac_delim
21760ac_ct_CXX!$ac_ct_CXX$ac_delim
21761NM!$NM$ac_delim
21762ifGNUmake!$ifGNUmake$ac_delim
21763LN_S!$LN_S$ac_delim
21764CMP!$CMP$ac_delim
21765CP!$CP$ac_delim
21766DATE!$DATE$ac_delim
21767FIND!$FIND$ac_delim
21768MKDIR!$MKDIR$ac_delim
21769MV!$MV$ac_delim
21770RANLIB!$RANLIB$ac_delim
21771AR!$AR$ac_delim
21772RM!$RM$ac_delim
21773SED!$SED$ac_delim
21774TAR!$TAR$ac_delim
21775BINPWD!$BINPWD$ac_delim
21776GRAPHVIZ!$GRAPHVIZ$ac_delim
21777DOT!$DOT$ac_delim
21778FDP!$FDP$ac_delim
21779NEATO!$NEATO$ac_delim
21780TWOPI!$TWOPI$ac_delim
21781CIRCO!$CIRCO$ac_delim
21782GV!$GV$ac_delim
21783DOTTY!$DOTTY$ac_delim
21784XDOT_PY!$XDOT_PY$ac_delim
21785PERL!$PERL$ac_delim
21786HAVE_PERL!$HAVE_PERL$ac_delim
21787INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21788INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21789INSTALL_DATA!$INSTALL_DATA$ac_delim
21790BZIP2!$BZIP2$ac_delim
21791CAT!$CAT$ac_delim
21792DOXYGEN!$DOXYGEN$ac_delim
21793GROFF!$GROFF$ac_delim
21794GZIP!$GZIP$ac_delim
21795POD2HTML!$POD2HTML$ac_delim
21796POD2MAN!$POD2MAN$ac_delim
21797PDFROFF!$PDFROFF$ac_delim
21798RUNTEST!$RUNTEST$ac_delim
21799TCLSH!$TCLSH$ac_delim
21800ZIP!$ZIP$ac_delim
21801OCAMLC!$OCAMLC$ac_delim
21802OCAMLOPT!$OCAMLOPT$ac_delim
21803OCAMLDEP!$OCAMLDEP$ac_delim
21804OCAMLDOC!$OCAMLDOC$ac_delim
21805GAS!$GAS$ac_delim
21806HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21807INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21808INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21809CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21810CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21811LIBADD_DL!$LIBADD_DL$ac_delim
21812LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21813LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21814LLVMGCC!$LLVMGCC$ac_delim
21815LLVMGXX!$LLVMGXX$ac_delim
21816LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21817NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21818NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21819USE_UDIS86!$USE_UDIS86$ac_delim
21820USE_OPROFILE!$USE_OPROFILE$ac_delim
21821HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21822HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21823MMAP_FILE!$MMAP_FILE$ac_delim
21824LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21825LLVMCC1!$LLVMCC1$ac_delim
21826LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21827LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21828LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21829LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21830LLVMGCC_DISABLEOPT_FLAGS!$LLVMGCC_DISABLEOPT_FLAGS$ac_delim
21831SHLIBEXT!$SHLIBEXT$ac_delim
21832SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21833LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21834LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21835LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21836LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21837LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21838LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21839LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21840LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21841LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21842LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21843BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21844ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21845OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21846ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21847RPATH!$RPATH$ac_delim
21848RDYNAMIC!$RDYNAMIC$ac_delim
21849_ACEOF
21850
21851  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21852    break
21853  elif $ac_last_try; then
21854    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21855echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21856   { (exit 1); exit 1; }; }
21857  else
21858    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21859  fi
21860done
21861
21862ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21863if test -n "$ac_eof"; then
21864  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21865  ac_eof=`expr $ac_eof + 1`
21866fi
21867
21868cat >>$CONFIG_STATUS <<_ACEOF
21869cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21870/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21871_ACEOF
21872sed '
21873s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21874s/^/s,@/; s/!/@,|#_!!_#|/
21875:n
21876t n
21877s/'"$ac_delim"'$/,g/; t
21878s/$/\\/; p
21879N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21880' >>$CONFIG_STATUS <conf$$subs.sed
21881rm -f conf$$subs.sed
21882cat >>$CONFIG_STATUS <<_ACEOF
21883CEOF$ac_eof
21884_ACEOF
21885
21886
21887ac_delim='%!_!# '
21888for ac_last_try in false false false false false :; do
21889  cat >conf$$subs.sed <<_ACEOF
21890LIBOBJS!$LIBOBJS$ac_delim
21891LTLIBOBJS!$LTLIBOBJS$ac_delim
21892_ACEOF
21893
21894  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
21895    break
21896  elif $ac_last_try; then
21897    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21898echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21899   { (exit 1); exit 1; }; }
21900  else
21901    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21902  fi
21903done
21904
21905ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21906if test -n "$ac_eof"; then
21907  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21908  ac_eof=`expr $ac_eof + 1`
21909fi
21910
21911cat >>$CONFIG_STATUS <<_ACEOF
21912cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21913/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21914_ACEOF
21915sed '
21916s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21917s/^/s,@/; s/!/@,|#_!!_#|/
21918:n
21919t n
21920s/'"$ac_delim"'$/,g/; t
21921s/$/\\/; p
21922N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21923' >>$CONFIG_STATUS <conf$$subs.sed
21924rm -f conf$$subs.sed
21925cat >>$CONFIG_STATUS <<_ACEOF
21926:end
21927s/|#_!!_#|//g
21928CEOF$ac_eof
21929_ACEOF
21930
21931
21932# VPATH may cause trouble with some makes, so we remove $(srcdir),
21933# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21934# trailing colons and then remove the whole line if VPATH becomes empty
21935# (actually we leave an empty line to preserve line numbers).
21936if test "x$srcdir" = x.; then
21937  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21938s/:*\$(srcdir):*/:/
21939s/:*\${srcdir}:*/:/
21940s/:*@srcdir@:*/:/
21941s/^\([^=]*=[	 ]*\):*/\1/
21942s/:*$//
21943s/^[^=]*=[	 ]*$//
21944}'
21945fi
21946
21947cat >>$CONFIG_STATUS <<\_ACEOF
21948fi # test -n "$CONFIG_FILES"
21949
21950
21951for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21952do
21953  case $ac_tag in
21954  :[FHLC]) ac_mode=$ac_tag; continue;;
21955  esac
21956  case $ac_mode$ac_tag in
21957  :[FHL]*:*);;
21958  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21959echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21960   { (exit 1); exit 1; }; };;
21961  :[FH]-) ac_tag=-:-;;
21962  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21963  esac
21964  ac_save_IFS=$IFS
21965  IFS=:
21966  set x $ac_tag
21967  IFS=$ac_save_IFS
21968  shift
21969  ac_file=$1
21970  shift
21971
21972  case $ac_mode in
21973  :L) ac_source=$1;;
21974  :[FH])
21975    ac_file_inputs=
21976    for ac_f
21977    do
21978      case $ac_f in
21979      -) ac_f="$tmp/stdin";;
21980      *) # Look for the file first in the build tree, then in the source tree
21981	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21982	 # because $ac_f cannot contain `:'.
21983	 test -f "$ac_f" ||
21984	   case $ac_f in
21985	   [\\/$]*) false;;
21986	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21987	   esac ||
21988	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21989echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21990   { (exit 1); exit 1; }; };;
21991      esac
21992      ac_file_inputs="$ac_file_inputs $ac_f"
21993    done
21994
21995    # Let's still pretend it is `configure' which instantiates (i.e., don't
21996    # use $as_me), people would be surprised to read:
21997    #    /* config.h.  Generated by config.status.  */
21998    configure_input="Generated from "`IFS=:
21999	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22000    if test x"$ac_file" != x-; then
22001      configure_input="$ac_file.  $configure_input"
22002      { echo "$as_me:$LINENO: creating $ac_file" >&5
22003echo "$as_me: creating $ac_file" >&6;}
22004    fi
22005
22006    case $ac_tag in
22007    *:-:* | *:-) cat >"$tmp/stdin";;
22008    esac
22009    ;;
22010  esac
22011
22012  ac_dir=`$as_dirname -- "$ac_file" ||
22013$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22014	 X"$ac_file" : 'X\(//\)[^/]' \| \
22015	 X"$ac_file" : 'X\(//\)$' \| \
22016	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22017echo X"$ac_file" |
22018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22019	    s//\1/
22020	    q
22021	  }
22022	  /^X\(\/\/\)[^/].*/{
22023	    s//\1/
22024	    q
22025	  }
22026	  /^X\(\/\/\)$/{
22027	    s//\1/
22028	    q
22029	  }
22030	  /^X\(\/\).*/{
22031	    s//\1/
22032	    q
22033	  }
22034	  s/.*/./; q'`
22035  { as_dir="$ac_dir"
22036  case $as_dir in #(
22037  -*) as_dir=./$as_dir;;
22038  esac
22039  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22040    as_dirs=
22041    while :; do
22042      case $as_dir in #(
22043      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22044      *) as_qdir=$as_dir;;
22045      esac
22046      as_dirs="'$as_qdir' $as_dirs"
22047      as_dir=`$as_dirname -- "$as_dir" ||
22048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22049	 X"$as_dir" : 'X\(//\)[^/]' \| \
22050	 X"$as_dir" : 'X\(//\)$' \| \
22051	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22052echo X"$as_dir" |
22053    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22054	    s//\1/
22055	    q
22056	  }
22057	  /^X\(\/\/\)[^/].*/{
22058	    s//\1/
22059	    q
22060	  }
22061	  /^X\(\/\/\)$/{
22062	    s//\1/
22063	    q
22064	  }
22065	  /^X\(\/\).*/{
22066	    s//\1/
22067	    q
22068	  }
22069	  s/.*/./; q'`
22070      test -d "$as_dir" && break
22071    done
22072    test -z "$as_dirs" || eval "mkdir $as_dirs"
22073  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22074echo "$as_me: error: cannot create directory $as_dir" >&2;}
22075   { (exit 1); exit 1; }; }; }
22076  ac_builddir=.
22077
22078case "$ac_dir" in
22079.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22080*)
22081  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22082  # A ".." for each directory in $ac_dir_suffix.
22083  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22084  case $ac_top_builddir_sub in
22085  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22086  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22087  esac ;;
22088esac
22089ac_abs_top_builddir=$ac_pwd
22090ac_abs_builddir=$ac_pwd$ac_dir_suffix
22091# for backward compatibility:
22092ac_top_builddir=$ac_top_build_prefix
22093
22094case $srcdir in
22095  .)  # We are building in place.
22096    ac_srcdir=.
22097    ac_top_srcdir=$ac_top_builddir_sub
22098    ac_abs_top_srcdir=$ac_pwd ;;
22099  [\\/]* | ?:[\\/]* )  # Absolute name.
22100    ac_srcdir=$srcdir$ac_dir_suffix;
22101    ac_top_srcdir=$srcdir
22102    ac_abs_top_srcdir=$srcdir ;;
22103  *) # Relative name.
22104    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22105    ac_top_srcdir=$ac_top_build_prefix$srcdir
22106    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22107esac
22108ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22109
22110
22111  case $ac_mode in
22112  :F)
22113  #
22114  # CONFIG_FILE
22115  #
22116
22117  case $INSTALL in
22118  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22119  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22120  esac
22121_ACEOF
22122
22123cat >>$CONFIG_STATUS <<\_ACEOF
22124# If the template does not know about datarootdir, expand it.
22125# FIXME: This hack should be removed a few years after 2.60.
22126ac_datarootdir_hack=; ac_datarootdir_seen=
22127
22128case `sed -n '/datarootdir/ {
22129  p
22130  q
22131}
22132/@datadir@/p
22133/@docdir@/p
22134/@infodir@/p
22135/@localedir@/p
22136/@mandir@/p
22137' $ac_file_inputs` in
22138*datarootdir*) ac_datarootdir_seen=yes;;
22139*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22140  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22141echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22142_ACEOF
22143cat >>$CONFIG_STATUS <<_ACEOF
22144  ac_datarootdir_hack='
22145  s&@datadir@&$datadir&g
22146  s&@docdir@&$docdir&g
22147  s&@infodir@&$infodir&g
22148  s&@localedir@&$localedir&g
22149  s&@mandir@&$mandir&g
22150    s&\\\${datarootdir}&$datarootdir&g' ;;
22151esac
22152_ACEOF
22153
22154# Neutralize VPATH when `$srcdir' = `.'.
22155# Shell code in configure.ac might set extrasub.
22156# FIXME: do we really want to maintain this feature?
22157cat >>$CONFIG_STATUS <<_ACEOF
22158  sed "$ac_vpsub
22159$extrasub
22160_ACEOF
22161cat >>$CONFIG_STATUS <<\_ACEOF
22162:t
22163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22164s&@configure_input@&$configure_input&;t t
22165s&@top_builddir@&$ac_top_builddir_sub&;t t
22166s&@srcdir@&$ac_srcdir&;t t
22167s&@abs_srcdir@&$ac_abs_srcdir&;t t
22168s&@top_srcdir@&$ac_top_srcdir&;t t
22169s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22170s&@builddir@&$ac_builddir&;t t
22171s&@abs_builddir@&$ac_abs_builddir&;t t
22172s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22173s&@INSTALL@&$ac_INSTALL&;t t
22174$ac_datarootdir_hack
22175" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22176
22177test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22178  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22179  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22180  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22181which seems to be undefined.  Please make sure it is defined." >&5
22182echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22183which seems to be undefined.  Please make sure it is defined." >&2;}
22184
22185  rm -f "$tmp/stdin"
22186  case $ac_file in
22187  -) cat "$tmp/out"; rm -f "$tmp/out";;
22188  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22189  esac
22190 ;;
22191  :H)
22192  #
22193  # CONFIG_HEADER
22194  #
22195_ACEOF
22196
22197# Transform confdefs.h into a sed script `conftest.defines', that
22198# substitutes the proper values into config.h.in to produce config.h.
22199rm -f conftest.defines conftest.tail
22200# First, append a space to every undef/define line, to ease matching.
22201echo 's/$/ /' >conftest.defines
22202# Then, protect against being on the right side of a sed subst, or in
22203# an unquoted here document, in config.status.  If some macros were
22204# called several times there might be several #defines for the same
22205# symbol, which is useless.  But do not sort them, since the last
22206# AC_DEFINE must be honored.
22207ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22208# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22209# NAME is the cpp macro being defined, VALUE is the value it is being given.
22210# PARAMS is the parameter list in the macro definition--in most cases, it's
22211# just an empty string.
22212ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22213ac_dB='\\)[	 (].*,\\1define\\2'
22214ac_dC=' '
22215ac_dD=' ,'
22216
22217uniq confdefs.h |
22218  sed -n '
22219	t rset
22220	:rset
22221	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22222	t ok
22223	d
22224	:ok
22225	s/[\\&,]/\\&/g
22226	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22227	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22228  ' >>conftest.defines
22229
22230# Remove the space that was appended to ease matching.
22231# Then replace #undef with comments.  This is necessary, for
22232# example, in the case of _POSIX_SOURCE, which is predefined and required
22233# on some systems where configure will not decide to define it.
22234# (The regexp can be short, since the line contains either #define or #undef.)
22235echo 's/ $//
22236s,^[	 #]*u.*,/* & */,' >>conftest.defines
22237
22238# Break up conftest.defines:
22239ac_max_sed_lines=50
22240
22241# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22242# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22243# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22244# et cetera.
22245ac_in='$ac_file_inputs'
22246ac_out='"$tmp/out1"'
22247ac_nxt='"$tmp/out2"'
22248
22249while :
22250do
22251  # Write a here document:
22252    cat >>$CONFIG_STATUS <<_ACEOF
22253    # First, check the format of the line:
22254    cat >"\$tmp/defines.sed" <<\\CEOF
22255/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22256/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22257b
22258:def
22259_ACEOF
22260  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22261  echo 'CEOF
22262    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22263  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22264  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22265  grep . conftest.tail >/dev/null || break
22266  rm -f conftest.defines
22267  mv conftest.tail conftest.defines
22268done
22269rm -f conftest.defines conftest.tail
22270
22271echo "ac_result=$ac_in" >>$CONFIG_STATUS
22272cat >>$CONFIG_STATUS <<\_ACEOF
22273  if test x"$ac_file" != x-; then
22274    echo "/* $configure_input  */" >"$tmp/config.h"
22275    cat "$ac_result" >>"$tmp/config.h"
22276    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22277      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22278echo "$as_me: $ac_file is unchanged" >&6;}
22279    else
22280      rm -f $ac_file
22281      mv "$tmp/config.h" $ac_file
22282    fi
22283  else
22284    echo "/* $configure_input  */"
22285    cat "$ac_result"
22286  fi
22287  rm -f "$tmp/out12"
22288 ;;
22289
22290  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22291echo "$as_me: executing $ac_file commands" >&6;}
22292 ;;
22293  esac
22294
22295
22296  case $ac_file$ac_mode in
22297    "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22298   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22299    "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22300   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22301    "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22302   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22303    "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22304   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22305    "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22306   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22307    "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22308   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22309    "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22310   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22311    "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22312   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22313    "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22314   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22315    "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22316   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22317    "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22318   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22319    "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22320   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22321    "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22322   ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22323
22324  esac
22325done # for ac_tag
22326
22327
22328{ (exit 0); exit 0; }
22329_ACEOF
22330chmod +x $CONFIG_STATUS
22331ac_clean_files=$ac_clean_files_save
22332
22333
22334# configure is writing to config.log, and then calls config.status.
22335# config.status does its own redirection, appending to config.log.
22336# Unfortunately, on DOS this fails, as config.log is still kept open
22337# by configure, so config.status won't be able to write to it; its
22338# output is simply discarded.  So we exec the FD to /dev/null,
22339# effectively closing config.log, so it can be properly (re)opened and
22340# appended to by config.status.  When coming back to configure, we
22341# need to make the FD available again.
22342if test "$no_create" != yes; then
22343  ac_cs_success=:
22344  ac_config_status_args=
22345  test "$silent" = yes &&
22346    ac_config_status_args="$ac_config_status_args --quiet"
22347  exec 5>/dev/null
22348  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22349  exec 5>>config.log
22350  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22351  # would make configure fail if this is the last instruction.
22352  $ac_cs_success || { (exit 1); exit 1; }
22353fi
22354
22355#
22356# CONFIG_SUBDIRS section.
22357#
22358if test "$no_recursion" != yes; then
22359
22360  # Remove --cache-file and --srcdir arguments so they do not pile up.
22361  ac_sub_configure_args=
22362  ac_prev=
22363  eval "set x $ac_configure_args"
22364  shift
22365  for ac_arg
22366  do
22367    if test -n "$ac_prev"; then
22368      ac_prev=
22369      continue
22370    fi
22371    case $ac_arg in
22372    -cache-file | --cache-file | --cache-fil | --cache-fi \
22373    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22374      ac_prev=cache_file ;;
22375    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22376    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22377    | --c=*)
22378      ;;
22379    --config-cache | -C)
22380      ;;
22381    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22382      ac_prev=srcdir ;;
22383    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22384      ;;
22385    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22386      ac_prev=prefix ;;
22387    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22388      ;;
22389    *)
22390      case $ac_arg in
22391      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22392      esac
22393      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22394    esac
22395  done
22396
22397  # Always prepend --prefix to ensure using the same prefix
22398  # in subdir configurations.
22399  ac_arg="--prefix=$prefix"
22400  case $ac_arg in
22401  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22402  esac
22403  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22404
22405  ac_popdir=`pwd`
22406  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22407
22408    # Do not complain, so a configure script can configure whichever
22409    # parts of a large source tree are present.
22410    test -d "$srcdir/$ac_dir" || continue
22411
22412    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22413    echo "$as_me:$LINENO: $ac_msg" >&5
22414    echo "$ac_msg" >&6
22415    { as_dir="$ac_dir"
22416  case $as_dir in #(
22417  -*) as_dir=./$as_dir;;
22418  esac
22419  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22420    as_dirs=
22421    while :; do
22422      case $as_dir in #(
22423      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22424      *) as_qdir=$as_dir;;
22425      esac
22426      as_dirs="'$as_qdir' $as_dirs"
22427      as_dir=`$as_dirname -- "$as_dir" ||
22428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22429	 X"$as_dir" : 'X\(//\)[^/]' \| \
22430	 X"$as_dir" : 'X\(//\)$' \| \
22431	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22432echo X"$as_dir" |
22433    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22434	    s//\1/
22435	    q
22436	  }
22437	  /^X\(\/\/\)[^/].*/{
22438	    s//\1/
22439	    q
22440	  }
22441	  /^X\(\/\/\)$/{
22442	    s//\1/
22443	    q
22444	  }
22445	  /^X\(\/\).*/{
22446	    s//\1/
22447	    q
22448	  }
22449	  s/.*/./; q'`
22450      test -d "$as_dir" && break
22451    done
22452    test -z "$as_dirs" || eval "mkdir $as_dirs"
22453  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22454echo "$as_me: error: cannot create directory $as_dir" >&2;}
22455   { (exit 1); exit 1; }; }; }
22456    ac_builddir=.
22457
22458case "$ac_dir" in
22459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22460*)
22461  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22462  # A ".." for each directory in $ac_dir_suffix.
22463  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22464  case $ac_top_builddir_sub in
22465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22467  esac ;;
22468esac
22469ac_abs_top_builddir=$ac_pwd
22470ac_abs_builddir=$ac_pwd$ac_dir_suffix
22471# for backward compatibility:
22472ac_top_builddir=$ac_top_build_prefix
22473
22474case $srcdir in
22475  .)  # We are building in place.
22476    ac_srcdir=.
22477    ac_top_srcdir=$ac_top_builddir_sub
22478    ac_abs_top_srcdir=$ac_pwd ;;
22479  [\\/]* | ?:[\\/]* )  # Absolute name.
22480    ac_srcdir=$srcdir$ac_dir_suffix;
22481    ac_top_srcdir=$srcdir
22482    ac_abs_top_srcdir=$srcdir ;;
22483  *) # Relative name.
22484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22485    ac_top_srcdir=$ac_top_build_prefix$srcdir
22486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22487esac
22488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22489
22490
22491    cd "$ac_dir"
22492
22493    # Check for guested configure; otherwise get Cygnus style configure.
22494    if test -f "$ac_srcdir/configure.gnu"; then
22495      ac_sub_configure=$ac_srcdir/configure.gnu
22496    elif test -f "$ac_srcdir/configure"; then
22497      ac_sub_configure=$ac_srcdir/configure
22498    elif test -f "$ac_srcdir/configure.in"; then
22499      # This should be Cygnus configure.
22500      ac_sub_configure=$ac_aux_dir/configure
22501    else
22502      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22503echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22504      ac_sub_configure=
22505    fi
22506
22507    # The recursion is here.
22508    if test -n "$ac_sub_configure"; then
22509      # Make the cache file name correct relative to the subdirectory.
22510      case $cache_file in
22511      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22512      *) # Relative name.
22513	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22514      esac
22515
22516      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22517echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22518      # The eval makes quoting arguments work.
22519      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22520	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22521	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22522echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22523   { (exit 1); exit 1; }; }
22524    fi
22525
22526    cd "$ac_popdir"
22527  done
22528fi
22529
22530